kendoui-rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -1
- data/lib/kendoui-rails/version.rb +2 -2
- data/vendor/assets/changelog.html +41 -632
- data/vendor/assets/javascripts/jquery.min.js +2 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.af-ZA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.af.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.am-ET.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.am.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-AE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-BH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-DZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-EG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-IQ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-JO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-KW.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-LB.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-LY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-MA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-OM.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-QA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-SA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-SY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-TN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-YE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.arn-CL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.arn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.as-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.as.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Cyrl-AZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Cyrl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Latn-AZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ba-RU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ba.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.be-BY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.be.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bg-BG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bg.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn-BD.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bo-CN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bo.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.br-FR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.br.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Cyrl-BA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Cyrl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Latn-BA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ca-ES.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ca.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.co-FR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.co.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cs-CZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cs.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cy-GB.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cy.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.da-DK.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.da.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-AT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-CH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-DE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-LI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-LU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dsb-DE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dsb.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dv-MV.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dv.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.el-GR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.el.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-029.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-AU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-BZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-CA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-GB.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-IE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-JM.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-MY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-NZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-PH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-SG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-TT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-US.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-ZA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-ZW.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-AR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-BO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-DO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-EC.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-ES.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-GT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-HN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-MX.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-NI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-SV.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-US.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-UY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-VE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.et-EE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.et.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.eu-ES.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.eu.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fa-IR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fa.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fi-FI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fi.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fil-PH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fil.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fo-FO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fo.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-BE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-CA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-CH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-FR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-LU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-MC.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fy-NL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fy.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ga-IE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ga.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gd-GB.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gd.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gl-ES.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gsw-FR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gsw.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gu-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gu.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha-Latn-NG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.he-IL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.he.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hi-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hi.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr-BA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr-HR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hsb-DE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hsb.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hu-HU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hu.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hy-AM.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hy.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.id-ID.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.id.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ig-NG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ig.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ii-CN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ii.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.is-IS.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.is.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it-CH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it-IT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Cans-CA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Cans.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Latn-CA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ja-JP.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ja.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ka-GE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ka.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kk-KZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kk.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kl-GL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.km-KH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.km.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kn-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ko-KR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ko.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kok-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kok.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ky-KG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ky.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lb-LU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lb.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lo-LA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lo.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lt-LT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lt.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lv-LV.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lv.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mi-NZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mi.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mk-MK.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mk.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ml-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ml.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Cyrl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-MN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Mong-CN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Mong.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.moh-CA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.moh.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mr-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mr.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms-BN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms-MY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mt-MT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mt.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nb-NO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nb.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ne-NP.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ne.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl-BE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl-NL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nn-NO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.no.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nso-ZA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nso.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.oc-FR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.oc.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.or-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.or.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pa-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pa.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pl-PL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.prs-AF.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.prs.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ps-AF.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ps.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt-BR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt-PT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.qut-GT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.qut.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-BO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-EC.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-PE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rm-CH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rm.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ro-RO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ro.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-RU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-UA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rw-RW.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rw.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sa-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sa.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sah-RU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sah.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-FI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-NO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-SE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.si-LK.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.si.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sk-SK.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sk.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sl-SI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma-NO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma-SE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj-NO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj-SE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smn-FI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sms-FI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sms.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sq-AL.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sq.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-BA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-CS.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-ME.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-RS.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-BA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-CS.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-ME.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-RS.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv-FI.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv-SE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sw-KE.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sw.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.syr-SY.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.syr.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ta-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ta.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.te-IN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.te.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg-Cyrl-TJ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg-Cyrl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.th-TH.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.th.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tk-TM.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tk.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tn-ZA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tr-TR.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tr.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tt-RU.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tt.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm-Latn-DZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ug-CN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ug.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uk-UA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uk.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ur-PK.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ur.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Cyrl-UZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Cyrl.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Latn-UZ.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Latn.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.vi-VN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.vi.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.wo-SN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.wo.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.xh-ZA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.xh.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.yo-NG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.yo.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CHS.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CHT.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CN.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-HK.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-Hans.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-Hant.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-MO.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-SG.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-TW.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zu-ZA.min.js +5 -4
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zu.min.js +5 -4
- data/vendor/assets/javascripts/kendo/kendo.autocomplete.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.binder.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.calendar.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.columnmenu.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.combobox.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.core.min.js +5 -3
- data/vendor/assets/javascripts/kendo/kendo.data.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.data.odata.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.data.xml.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.datepicker.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.datetimepicker.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.draganddrop.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.dropdownlist.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.editable.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.editor.min.js +6 -3
- data/vendor/assets/javascripts/kendo/kendo.filtermenu.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.fx.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.grid.min.js +5 -3
- data/vendor/assets/javascripts/kendo/kendo.groupable.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.imagebrowser.min.js +11 -0
- data/vendor/assets/javascripts/kendo/kendo.list.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.listview.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.menu.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.mobile.scroller.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.numerictextbox.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.pager.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.panelbar.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.popup.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.reorderable.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.resizable.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.selectable.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.slider.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.sortable.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.splitter.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.tabstrip.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.timepicker.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.treeview.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.upload.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.userevents.min.js +11 -0
- data/vendor/assets/javascripts/kendo/kendo.validator.min.js +4 -3
- data/vendor/assets/javascripts/kendo/kendo.web.min.js +20 -3
- data/vendor/assets/javascripts/kendo/kendo.window.min.js +4 -3
- data/vendor/assets/stylesheets/kendo/Black/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Black/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/BlueOpal/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/BlueOpal/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/editor.png +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/loading-image.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/loading.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/slider-h.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/slider-v.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Bootstrap/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Default/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Default/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/editor.png +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/loading-image.gif +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/loading.gif +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/slider-h.gif +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/slider-v.gif +0 -0
- data/vendor/assets/stylesheets/kendo/HighContrast/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Metro/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Metro/slider-h.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Metro/slider-v.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Metro/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/editor.png +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/loading-image.gif +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/loading.gif +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/slider-h.gif +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/slider-v.gif +0 -0
- data/vendor/assets/stylesheets/kendo/MetroBlack/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/editor.png +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/loading-image.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/loading.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/slider-h.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/slider-v.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Moonlight/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Silver/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Silver/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/editor.png +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/imagebrowser.png +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/loading-image.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/loading.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/slider-h.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/slider-v.gif +0 -0
- data/vendor/assets/stylesheets/kendo/Uniform/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/kendo.black.min.css +4 -3
- data/vendor/assets/stylesheets/kendo/kendo.blueopal.min.css +4 -3
- data/vendor/assets/stylesheets/kendo/kendo.bootstrap.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.common.min.css +4 -3
- data/vendor/assets/stylesheets/kendo/kendo.default.min.css +4 -3
- data/vendor/assets/stylesheets/kendo/kendo.highcontrast.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.metro.min.css +4 -3
- data/vendor/assets/stylesheets/kendo/kendo.metroblack.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.moonlight.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.rtl.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.silver.min.css +4 -3
- data/vendor/assets/stylesheets/kendo/kendo.uniform.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/textures/brushed-metal.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots1.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots10.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots11.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots12.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots13.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots2.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots3.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots4.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots5.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots6.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots7.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots8.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/dots9.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/glass-lighter.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/leather1.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/leather2.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/noise.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/stripe1.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/stripe2.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/stripe3.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/stripe4.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/stripe5.png +0 -0
- data/vendor/assets/stylesheets/kendo/textures/stripe6.png +0 -0
- metadata +77 -5
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e,t){function a(e,t,a,n){return e({idx:t,text:a,ns:p.ns,numeric:n})}function n(e,t){return z({className:e.substring(1),text:t})}function s(e,t,a,n){e.find(t).parent().attr(p.attr("page"),a).attr("tabindex",-1).toggleClass("k-state-disabled",n)}function i(e,t){s(e,u,1,1>=t)}function r(e,t){s(e,f,Math.max(1,t-1),1>=t)}function l(e,t,a){s(e,h,Math.min(a,t+1),t>=a)}function o(e,t,a){s(e,c,a,t>=a)}var p=window.kendo,d=p.ui,g=d.Widget,m=e.proxy,u=".k-i-seek-w",c=".k-i-seek-e",f=".k-i-arrow-w",h=".k-i-arrow-e",k="change",S=".kendoPager",x="click",v="keydown",b="disabled",z=p.template('<a href="\\#" title="#=text#" class="k-link"><span class="k-icon #= className #">#=text#</span></a>'),w=g.extend({init:function(t,a){var s,d,b=this;g.fn.init.call(b,t,a),a=b.options,b.dataSource=p.data.DataSource.create(a.dataSource),b.linkTemplate=p.template(b.options.linkTemplate),b.selectTemplate=p.template(b.options.selectTemplate),s=b.page(),d=b.totalPages(),b._refreshHandler=m(b.refresh,b),b.dataSource.bind(k,b._refreshHandler),a.previousNext&&(b.element.find(u).length||(b.element.append(n(u,a.messages.first)),i(b.element,s,d)),b.element.find(f).length||(b.element.append(n(f,a.messages.previous)),r(b.element,s,d))),a.numeric&&(b.list=b.element.find(".k-pager-numbers"),b.list.length||(b.list=e('<ul class="k-pager-numbers k-reset" />').appendTo(b.element))),a.input&&(b.element.find(".k-pager-input").length||b.element.append('<span class="k-pager-input k-label">'+a.messages.page+'<input class="k-textbox">'+p.format(a.messages.of,d)+"</span>"),b.element.on(v+S,".k-pager-input input",m(b._keydown,b))),a.previousNext&&(b.element.find(h).length||(b.element.append(n(h,a.messages.next)),l(b.element,s,d)),b.element.find(c).length||(b.element.append(n(c,a.messages.last)),o(b.element,s,d))),a.pageSizes&&(b.element.find(".k-pager-sizes").length||e('<span class="k-pager-sizes k-label"><select/>'+a.messages.itemsPerPage+"</span>").appendTo(b.element).find("select").html(e.map(e.isArray(a.pageSizes)?a.pageSizes:[5,10,20],function(e){return"<option>"+e+"</option>"}).join("")).end().appendTo(b.element),b.element.find(".k-pager-sizes select").val(b.pageSize()),p.ui.DropDownList&&b.element.find(".k-pager-sizes select").show().kendoDropDownList(),b.element.on(k+S,".k-pager-sizes select",m(b._change,b))),a.refresh&&(b.element.find(".k-pager-refresh").length||b.element.append('<a href="#" class="k-pager-refresh k-link" title="'+a.messages.refresh+'"><span class="k-icon k-i-refresh">'+a.messages.refresh+"</span></a>"),b.element.on("touchend"+S+" "+x+S,".k-pager-refresh",m(b._refreshClick,b))),a.info&&(b.element.find(".k-pager-info").length||b.element.append('<span class="k-pager-info k-label" />')),b.element.on("touchend"+S+" "+x+S,"a",m(b._click,b)).addClass("k-pager-wrap k-widget"),a.autoBind&&b.refresh(),p.notify(b)},destroy:function(){var e=this;g.fn.destroy.call(e),e.element.off(S),e.dataSource.unbind(k,e._refreshHandler)},events:[k],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',linkTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh"}},setDataSource:function(e){var t=this;t.dataSource.unbind(k,t._refreshHandler),t.dataSource=t.options.dataSource=e,e.bind(k,t._refreshHandler),t.options.autoBind&&e.fetch()},refresh:function(){var e,t,n,s=this,d=1,g="",m=s.page(),u=s.options,c=s.pageSize(),f=s.dataSource.total(),h=s.totalPages(),k=s.linkTemplate,S=u.buttonCount;if(u.numeric){for(m>S&&(n=m%S,d=0===n?m-S+1:m-n+1),t=Math.min(d+S-1,h),d>1&&(g+=a(k,d-1,"...",!1)),e=d;t>=e;e++)g+=a(e==m?s.selectTemplate:k,e,e,!0);h>t&&(g+=a(k,e,"...",!1)),""===g&&(g=s.selectTemplate({text:0})),s.list.html(g)}u.info&&(g=f>0?p.format(u.messages.display,(m-1)*c+1,Math.min(m*c,f),f):u.messages.empty,s.element.find(".k-pager-info").html(g)),u.input&&s.element.find(".k-pager-input").html(s.options.messages.page+'<input class="k-textbox">'+p.format(u.messages.of,h)).find("input").val(m).attr(b,1>f).toggleClass("k-state-disabled",1>f),u.previousNext&&(i(s.element,m,h),r(s.element,m,h),l(s.element,m,h),o(s.element,m,h)),u.pageSizes&&s.element.find(".k-pager-sizes select").val(c)},_keydown:function(e){if(e.keyCode===p.keys.ENTER){var t=this.element.find(".k-pager-input").find("input"),a=parseInt(t.val(),10);(isNaN(a)||1>a||a>this.totalPages())&&(a=this.page()),t.val(a),this.page(a)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var t=parseInt(e.currentTarget.value,10);isNaN(t)||this.dataSource.pageSize(t)},_click:function(t){var a=e(t.currentTarget);t.preventDefault(),a.is(".k-state-disabled")||this.page(a.attr(p.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e===t?this.dataSource.total()>0?this.dataSource.page():0:(this.dataSource.page(e),this.trigger(k,{index:e}),t)}});d.plugin(w)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function U(a,b){a.find(J).removeClass(E.substr(1)),a.find(K).removeClass(G.substr(1)),b.addClass(E.substr(1)),b.parentsUntil(a,p).filter(":has(.k-header)").addClass(G.substr(1))}function T(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(r),b.filter(".k-last:not(:last-child)").removeClass(l),b.filter(":first-child").addClass(r),b.filter(":last-child").addClass(l)}function S(b){b=a(b),b.children(".k-link").children(".k-icon").remove(),b.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent();b.append("<span class='k-icon "+(c.hasClass(B.substr(1))?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function R(b,c){b=a(b).addClass("k-item"),b.children(j).addClass(q),b.children("a").addClass(m).children(j).addClass(q),b.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),b.filter("li[disabled]").addClass("k-state-disabled").removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(B.substr(1)),b.find(">div").addClass(u).css({display:"none"}),b.each(function(){var b=a(this);b.children("."+m).length||b.contents().filter(function(){return!this.nodeName.match(i)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+m+"'/>")}),c.find(" > li > ."+m).addClass("k-header")}var c=window.kendo,d=c.ui,e=a.extend,f=a.each,g=c.template,h=d.Widget,i=/^(ul|a|div)$/i,j="img",k="href",l="k-last",m="k-link",n="error",o="click",p=".k-item",q="k-image",r="k-first",s="expand",t="select",u="k-content",v="activate",w="collapse",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-state-active",C="> .k-panel",D="> .k-content",E=".k-state-selected",F=".k-state-disabled",G=".k-state-highlighted",H=p+":not(.k-state-disabled) .k-link",I=p+".k-state-disabled .k-link",J="> li > .k-state-selected, .k-panel > li > .k-state-selected",K="> .k-state-highlighted, .k-panel > .k-state-highlighted",L="k-state-default",M=":visible",N=":empty",O="single",P={content:g("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:g("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:g("<#= tag(item) # class='#= textClass(item, group) #'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:g("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:g("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:g("<span class='#= arrowClass(item) #'></span>"),sprite:g("<span class='k-sprite #= spriteCssClass #'></span>"),empty:g("")},Q={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":b.expanded===!0?c+=" k-state-active":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a,b){var c=m;b.firstLevel&&(c+=" k-header");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a){var b="k-icon";b+=a.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand";return b},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group k-panel"},contentAttributes:function(a){return a.item.expanded!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},V=h.extend({init:function(b,d){var e=this,f;h.fn.init.call(e,b,d),b=e.wrapper=e.element,d=e.options,d.dataSource&&(e.element.empty(),e.append(d.dataSource,b)),e._updateClasses(),d.animation===!1&&(d.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),b.delegate(H,o,a.proxy(e._click,e)).delegate(H,y+" "+z,e._toggleHover).delegate(I,o,!1),d.contentUrls&&b.find("> .k-item").each(function(b,c){a(c).find("."+m).data(x,d.contentUrls[b])}),f=b.find("li"+B+" > ."+u),f.length>0&&e.expand(f.parent(),!1),c.notify(e)},events:[s,w,t,v,n,A],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:200}},expandMode:"multiple"},expand:function(b,c){var d=this,e={};c=c!==!1,b=this.element.find(b),b.each(function(f,g){g=a(g);var h=g.find(C).add(g.find(D));if(!g.hasClass(F)&&h.length>0){if(d.options.expandMode==O&&d._collapseAllExpanded(g))return d;b.find(G).removeClass(G.substr(1)),g.addClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(s,g)||d._toggleItem(g,!1,null),c||(d.options.animation=e)}});return d},collapse:function(b,c){var d=this,e={};c=c!==!1,b=d.element.find(b),b.each(function(b,f){f=a(f);var g=f.find(C).add(f.find(D));!f.hasClass(F)&&g.is(M)&&(f.removeClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(w,f)||d._toggleItem(f,!0,null),c||(d.options.animation=e))});return d},_toggleDisabled:function(a,b){a=this.element.find(a),a.toggleClass(L,b).toggleClass(F.substr(1),!b)},select:function(b){var c=this;b=c.element.find(b);if(arguments.length===0)return c.element.find(J).parent();b.each(function(b,d){d=a(d);var e=d.children("."+m);if(d.is(F))return c;U(c.element,e)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find(C):null);f(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),T(this)}),S(c),T(d.group.find(".k-first, .k-last")),d.group.height("auto");return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,p),d=a.parent("ul");a.remove(),d&&!d.hasClass("k-panelbar")&&!d.children(p).length&&d.remove(),c.length&&(c=c.eq(0),S(c),T(c));return b},reload:function(b){var c=this;b=c.element.find(b),b.each(function(){var b=a(this);c._ajaxRequest(b,b.children("."+u),!b.is(M))})},_insert:function(b,c,d){var f=this,g,h=[];if(!c||!c.length)d=f.element;var i=a.isPlainObject(b),j={firstLevel:d.hasClass("k-panelbar"),expanded:d.parent().hasClass("k-state-active"),length:d.children().length};c&&!d.length&&(d=a(V.renderGroup({group:j})).appendTo(c)),i||a.isArray(b)?(g=a.map(i?[b]:b,function(b,c){return typeof b=="string"?a(b):a(V.renderItem({group:j,item:e(b,{index:c})}))}),h=a.map(i?[b]:b,function(b,c){return b.content||b.contentUrl?a(V.renderContent({item:e(b,{index:c})})):!1})):(g=a(b),R(g,f.element));return{items:g,group:d,contents:h}},_toggleHover:function(b){var c=a(b.currentTarget);c.parents("li"+F).length||c.toggleClass("k-state-hover",b.type==y)},_updateClasses:function(){var b=this;b.element.addClass("k-widget k-reset k-header k-panelbar");var c=b.element.find("li > ul").not(function(){return a(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").add(b.element),d=c.find("> li:not("+B+") > ul").css({display:"none"}).end().find("> li");d.each(function(){R(this,b.element)}),S(d),T(d)},_click:function(b){var c=this,d=a(b.currentTarget),e=c.element;if(!d.parents("li"+F).length){if(d.closest(".k-widget")[0]!=e[0])return;var f=d.closest("."+m),g=f.closest(p);U(e,f);var h=g.find(C).add(g.find(D)),i=f.attr(k),j=f.data(x)||i&&(i.charAt(i.length-1)=="#"||i.indexOf("#"+c.element[0].id+"-")!=-1);if(h.data("animating"))return;c._triggerEvent(t,g)&&b.preventDefault();if(j||h.length)b.preventDefault();else return;if(c.options.expandMode==O&&c._collapseAllExpanded(g))return;if(h.length){var l=h.is(M);c._triggerEvent(l?w:s,g)||c._toggleItem(g,l,b)}}},_toggleItem:function(a,b,c){var d=this,e=a.find(C);if(e.length)this._toggleGroup(e,b),c&&c.preventDefault();else{var f=a.find("> ."+u);f.length&&(c&&c.preventDefault(),f.is(N)?d._ajaxRequest(a,f,b):d._toggleGroup(f,b))}},_toggleGroup:function(a,b){var c=this,d=c.options.animation,f=d.expand,g=e({},d.collapse),h=g&&"effects"in g;a.is(M)==b&&(a.parent().toggleClass(L,b).toggleClass(B.substr(1),!b).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!b).toggleClass("k-panelbar-collapse",!b).toggleClass("k-i-arrow-s",b).toggleClass("k-panelbar-expand",b),b?f=e(h?g:e({reverse:!0},f),{show:!1,hide:!0}):f=e({complete:function(a){c._triggerEvent(v,a.closest(p))}},f),a.kendoStop(!0,!0).kendoAnimate(f))},_collapseAllExpanded:function(b){var c=this,d,e=!1;if(b.find("> ."+m).hasClass("k-header")){var f=b.find(C).add(b.find(D));f.is(M)&&(e=!0),!f.is(M)&&f.length!==0&&(d=a(c.element).children(),d.find(C).add(d.find(D)).filter(function(){return a(this).is(M)}).each(function(b,d){d=a(d),e=c._triggerEvent(w,d.closest(p)),e||c._toggleGroup(d,!0)}));return e}},_ajaxRequest:function(b,c,d){var e=this,f=b.find(".k-panelbar-collapse, .k-panelbar-expand"),g=b.find("."+m),h=setTimeout(function(){f.addClass("k-loading")},100),i={};a.ajax({type:"GET",cache:!1,url:g.data(x)||g.attr(k),dataType:"html",data:i,error:function(a,b){f.removeClass("k-loading"),e.trigger(n,{xhr:a,status:b})&&this.complete()},complete:function(){clearTimeout(h),f.removeClass("k-loading")},success:function(a,f){c.html(a),e._toggleGroup(c,d),e.trigger(A,{item:b[0],contentElement:c[0]})}})},_triggerEvent:function(a,b){var c=this;return c.trigger(a,{item:b[0]})}});e(V,{renderItem:function(a){a=e({panelBar:{},group:{}},a);var b=P.empty,c=a.item;return P.item(e(a,{image:c.imageUrl?P.image:b,sprite:c.spriteCssClass?P.sprite:b,itemWrapper:P.itemWrapper,arrow:c.items||c.content||c.contentUrl?P.arrow:b,subGroup:V.renderGroup},Q))},renderGroup:function(a){return P.group(e({renderItems:function(a){var b="",c=0,d=a.items,f=d?d.length:0,g=e({length:f},a.group);for(;c<f;c++)b+=V.renderItem(e(a,{group:g,item:e({index:c},d[c])}));return b}},a,Q))},renderContent:function(a){return P.content(e(a,Q))}}),c.ui.plugin(V)})(jQuery);
|
11
|
+
(function(e,t){function n(t){t=e(t),t.children(v).children(".k-icon").remove(),t.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent();t.append("<span class='k-icon "+(n.hasClass(S)?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function r(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(w),t.filter(".k-last:not(:last-child)").removeClass(m),t.filter(":first-child").addClass(w),t.filter(":last-child").addClass(m)}var a=window.kendo,i=a.ui,s=a.keys,l=e.extend,o=e.each,d=a.template,c=i.Widget,u=/^(ul|a|div)$/i,p=".kendoPanelBar",f="img",h="href",m="k-last",g="k-link",v="."+g,k="error",_=".k-item",C=".k-group",x=C+":visible",b="k-image",w="k-first",y="expand",I="select",A="k-content",E="activate",U="collapse",G="contentUrl",T="mouseenter",D="mouseleave",B="contentLoad",S="k-state-active",j="> .k-panel",R="> .k-content",W="k-state-focused",P="k-state-disabled",q="k-state-selected",H="."+q,L="k-state-highlighted",M=_+":not(.k-state-disabled)",N=M+" > .k-link",O=_+".k-state-disabled > .k-link",F="> li > "+H+", .k-panel > li > "+H,Q="k-state-default",V="aria-disabled",$="aria-expanded",z="aria-hidden",J="aria-selected",K=":visible",X=":empty",Y="single",Z={content:d("<div role='region' class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:d("<ul role='group' aria-hidden='true' class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:d("<#= tag(item) # class='#= textClass(item, group) #' #= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:d("<li role='menuitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:d("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:d("<span class='#= arrowClass(item) #'></span>"),sprite:d("<span class='k-sprite #= spriteCssClass #'></span>"),empty:d("")},et={aria:function(e){var t="";return(e.items||e.content||e.contentUrl)&&(t+=$+"='"+(e.expanded?"true":"false")+"' "),e.enabled===!1&&(t+=V+"='true'"),t},wrapperCssClass:function(e,t){var n="k-item",r=t.index;return n+=t.enabled===!1?" "+P:t.expanded===!0?" "+S:" k-state-default",0===r&&(n+=" k-first"),r==e.length-1&&(n+=" k-last"),n},textClass:function(e,t){var n=g;return t.firstLevel&&(n+=" k-header"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e){var t="k-icon";return t+=e.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand"},text:function(e){return e.encoded===!1?e.text:a.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-panel"},contentAttributes:function(e){return e.item.expanded!==!0?" style='display:none'":""},content:function(e){return e.content?e.content:e.contentUrl?"":" "},contentUrl:function(e){return e.contentUrl?a.attr("content-url")+'="'+e.contentUrl+'"':""}},tt=c.extend({init:function(t,n){var r,i=this;c.fn.init.call(i,t,n),t=i.wrapper=i.element.addClass("k-widget k-reset k-header k-panelbar"),n=i.options,n.dataSource&&(i.element.empty(),i.append(n.dataSource,t)),t[0].id&&(i._itemId=t[0].id+"_pb_active"),i._tabindex(),i._updateClasses(),n.animation===!1&&(n.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),t.on("touchend"+p+" click"+p,N,function(t){i._click(e(t.currentTarget))&&t.preventDefault()}).on(T+p+" "+D+p,N,i._toggleHover).on("touchend"+p+" click"+p,O,!1).on("keydown"+p,e.proxy(i._keydown,i)).on("focus"+p,function(){var e=i.select();i._current(e[0]?e:i._first())}).on("blur"+p,function(){i._current(null)}).attr("role","menu"),n.contentUrls&&t.find("> .k-item").each(function(t,r){e(r).find(v).data(G,n.contentUrls[t])}),r=t.find("li."+S+" > ."+A),r[0]&&i.expand(r.parent(),!1),a.notify(i)},events:[y,U,I,E,k,B],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:200}},expandMode:"multiple"},destroy:function(){c.fn.destroy.call(this),this.element.off(p),a.destroy(this.element)},expand:function(t,n){var r=this,a={};return n=n!==!1,t=this.element.find(t),t.each(function(i,s){s=e(s);var l=s.find(j).add(s.find(R));if(!s.hasClass(P)&&l.length>0){if(r.options.expandMode==Y&&r._collapseAllExpanded(s))return r;t.find("."+L).removeClass(L),s.addClass(L),n||(a=r.options.animation,r.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),r._triggerEvent(y,s)||r._toggleItem(s,!1),n||(r.options.animation=a)}}),r},collapse:function(t,n){var r=this,a={};return n=n!==!1,t=r.element.find(t),t.each(function(t,i){i=e(i);var s=i.find(j).add(i.find(R));!i.hasClass(P)&&s.is(K)&&(i.removeClass(L),n||(a=r.options.animation,r.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),r._triggerEvent(U,i)||r._toggleItem(i,!0),n||(r.options.animation=a))}),r},_toggleDisabled:function(e,t){e=this.element.find(e),e.toggleClass(Q,t).toggleClass(P,!t).attr(V,!t)},select:function(n){var r=this;return n===t?r.element.find(F).parent():(r.element.find(n).each(function(){var n=e(this),a=n.children(v);return n.hasClass(P)?r:(r._updateSelected(a),t)}),r)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(t,a){a=this.element.find(a);var i=this._insert(t,a,a.length?a.find(j):null);return o(i.items,function(t){i.group.append(this);var n=i.contents[t];n&&e(this).append(n),r(this)}),n(a),r(i.group.find(".k-first, .k-last")),i.group.height("auto"),this},insertBefore:function(t,n){n=this.element.find(n);var a=this._insert(t,n,n.parent());return o(a.items,function(t){n.before(this);var i=a.contents[t];i&&e(this).append(i),r(this)}),r(n),a.group.height("auto"),this},insertAfter:function(t,n){n=this.element.find(n);var a=this._insert(t,n,n.parent());return o(a.items,function(t){n.after(this);var i=a.contents[t];i&&e(this).append(i),r(this)}),r(n),a.group.height("auto"),this},remove:function(e){e=this.element.find(e);var t=this,a=e.parentsUntil(t.element,_),i=e.parent("ul");return e.remove(),!i||i.hasClass("k-panelbar")||i.children(_).length||i.remove(),a.length&&(a=a.eq(0),n(a),r(a)),t},reload:function(t){var n=this;t=n.element.find(t),t.each(function(){var t=e(this);n._ajaxRequest(t,t.children("."+A),!t.is(K))})},_first:function(){return this.element.children(M).first()},_last:function(){var e=this.element.children(M).last(),t=e.children(x);return t[0]?t.children(M).last():e},_current:function(e){var n=this,r=n._focused;return e===t?r:(n.element.removeAttr("aria-activedescendant"),r&&r.removeAttr("id").children(v).removeClass(W),e&&(e.attr("id",n._itemId).children(v).addClass(W),n.element.attr("aria-activedescendant",n._itemId)),n._focused=e,t)},_keydown:function(e){var t=this,n=e.keyCode,r=t._current();e.target==e.currentTarget&&(n==s.DOWN||n==s.RIGHT?(t._current(t._nextItem(r)),e.preventDefault()):n==s.UP||n==s.LEFT?(t._current(t._prevItem(r)),e.preventDefault()):n==s.ENTER||n==s.SPACEBAR?(t._click(r.children(v)),e.preventDefault()):n==s.HOME?(t._current(t._first()),e.preventDefault()):n==s.END&&(t._current(t._last()),e.preventDefault()))},_nextItem:function(e){if(!e)return this._first();var t=e.children(x),n=e.next();return t[0]&&(n=t.children("."+w)),n[0]||(n=e.parent(x).parent(_).next()),n[0]&&n.is(":visible")||(n=this._first()),n.hasClass(P)&&(n=this._nextItem(n)),n},_prevItem:function(e){if(!e)return this._last();var t,n=e.prev();if(n[0])for(t=n;t[0];)t=t.children(x).children("."+m),t[0]&&(n=t);else n=e.parent(x).parent(_),n[0]||(n=this._last());return n.hasClass(P)&&(n=this._prevItem(n)),n},_insert:function(t,n,r){var a,i,s=this,o=[],d=e.isPlainObject(t),c=n&&n[0];return c||(r=s.element),i={firstLevel:r.hasClass("k-panelbar"),expanded:r.parent().hasClass(S),length:r.children().length},c&&!r.length&&(r=e(tt.renderGroup({group:i})).appendTo(n)),d||e.isArray(t)?(a=e.map(d?[t]:t,function(t,n){return"string"==typeof t?e(t):e(tt.renderItem({group:i,item:l(t,{index:n})}))}),o=e.map(d?[t]:t,function(t,n){return t.content||t.contentUrl?e(tt.renderContent({item:l(t,{index:n})})):!1}),c&&n.attr($,!1)):(a=e(t),s._updateItemsClasses(a)),{items:a,group:r,contents:o}},_toggleHover:function(t){var n=e(t.currentTarget);n.parents("li."+P).length||n.toggleClass("k-state-hover",t.type==T)},_updateClasses:function(){var t,a,i=this;t=i.element.find("li > ul").not(function(){return e(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").attr("role","group"),t.parent().attr($,!1).not("."+S).children("ul").attr(z,!0).hide(),a=i.element.add(t).children(),i._updateItemsClasses(a),n(a),r(a)},_updateItemsClasses:function(e){for(var t=e.length,n=0;t>n;n++)this._updateItemClasses(e[n])},_updateItemClasses:function(t){var n,r=this._selected;t=e(t).addClass("k-item").attr("role","menuitem"),t.children(f).addClass(b),t.children("a").addClass(g).children(f).addClass(b),t.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),t.filter("li[disabled]").addClass("k-state-disabled").attr(V,!0).removeAttr("disabled"),t.children("div").addClass(A).attr("role","region").attr(z,!0).hide().parent().attr($,!1),n=t.children(H),n[0]&&(r&&r.removeAttr(J).children(H).removeClass(q),n.addClass(q),this._selected=t.attr(J,!0)),t.children(v)[0]||t.contents().filter(function(){return!(this.nodeName.match(u)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll("<span class='"+g+"'/>"),t.parent(".k-panelbar")[0]&&t.children(v).addClass("k-header")},_click:function(e){var t,n=this,r=n.element;if(!e.parents("li."+P).length&&e.closest(".k-widget")[0]==r[0]){var a=e.closest(v),i=a.closest(_);n._updateSelected(a);var s=i.find(j).add(i.find(R)),l=a.attr(h),o=a.data(G)||l&&("#"==l.charAt(l.length-1)||-1!=l.indexOf("#"+n.element[0].id+"-"));if(!s.data("animating")&&(n._triggerEvent(I,i)&&(t=!0),(o||s.length)&&(t=!0,n.options.expandMode!=Y||!n._collapseAllExpanded(i)))){if(s.length){var d=s.is(K);n._triggerEvent(d?U:y,i)||(t=n._toggleItem(i,d))}return t}}},_toggleItem:function(e,t){var n,r,a=this,i=e.find(j);return i.length?(this._toggleGroup(i,t),n=!0):(r=e.children("."+A),r.length&&(n=!0,r.is(X)?a._ajaxRequest(e,r,t):a._toggleGroup(r,t))),n},_toggleGroup:function(e,t){var n=this,r=n.options.animation,a=r.expand,i=l({},r.collapse),s=i&&"effects"in i;e.is(K)==t&&(e.parent().attr($,!t).attr(z,t).toggleClass(Q,t).toggleClass(S,!t).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!t).toggleClass("k-panelbar-collapse",!t).toggleClass("k-i-arrow-s",t).toggleClass("k-panelbar-expand",t),a=t?l(s?i:l({reverse:!0},a),{hide:!0}):l({complete:function(e){n._triggerEvent(E,e.closest(_))}},a),e.kendoStop(!0,!0).kendoAnimate(a))},_collapseAllExpanded:function(t){var n,r=this,a=!1;if(t.children(v).hasClass("k-header")){var i=t.find(j).add(t.find(R));return i.is(K)&&(a=!0),i.is(K)||0===i.length||(n=e(r.element).children(),n.find(j).add(n.find(R)).filter(function(){return e(this).is(K)}).each(function(t,n){n=e(n),a=r._triggerEvent(U,n.closest(_)),a||r._toggleGroup(n,!0)})),a}},_ajaxRequest:function(t,n,r){var a=this,i=t.find(".k-panelbar-collapse, .k-panelbar-expand"),s=t.find(v),l=setTimeout(function(){i.addClass("k-loading")},100),o={};e.ajax({type:"GET",cache:!1,url:s.data(G)||s.attr(h),dataType:"html",data:o,error:function(e,t){i.removeClass("k-loading"),a.trigger(k,{xhr:e,status:t})&&this.complete()},complete:function(){clearTimeout(l),i.removeClass("k-loading")},success:function(e){n.html(e),a._toggleGroup(n,r),a.trigger(B,{item:t[0],contentElement:n[0]})}})},_triggerEvent:function(e,t){var n=this;return n.trigger(e,{item:t[0]})},_updateSelected:function(e){var t=this,n=t.element,r=e.parent(_),a=t._selected;a&&a.removeAttr(J),t._selected=r.attr(J,!0),n.find(F).removeClass(q),n.find("> .k-state-highlighted, .k-panel > .k-state-highlighted").removeClass(L),e.addClass(q),e.parentsUntil(n,_).filter(":has(.k-header)").addClass(L),t._current(r)}});l(tt,{renderItem:function(e){e=l({panelBar:{},group:{}},e);var t=Z.empty,n=e.item;return Z.item(l(e,{image:n.imageUrl?Z.image:t,sprite:n.spriteCssClass?Z.sprite:t,itemWrapper:Z.itemWrapper,arrow:n.items||n.content||n.contentUrl?Z.arrow:t,subGroup:tt.renderGroup},et))},renderGroup:function(e){return Z.group(l({renderItems:function(e){for(var t="",n=0,r=e.items,a=r?r.length:0,i=l({length:a},e.group);a>n;n++)t+=tt.renderItem(l(e,{group:i,item:l({index:n},r[n])}));return t}},e,et))},renderContent:function(e){return Z.content(l(e,et))}}),a.ui.plugin(tt)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e){function o(o,t){return o===t||e.contains(o,t)}var t=window.kendo,n=t.ui,i=n.Widget,s=t.support,r=t.getOffset,a=t.support.browser,l=a.msie&&9>a.version,p="open",d="close",c="deactivate",f="activate",u="center",g="left",m="right",h="top",w="bottom",v="absolute",_="hidden",k="body",b="location",y="position",x="visible",z="fitted",C="effects",P="k-state-active",T="k-state-border",W=".k-picker-wrap, .k-dropdown-wrap, .k-link",E="down",H=e(document),I=e(window),O=e(document.documentElement),S="resize scroll",L=s.transitions.css,N=L+"transform",A=e.extend,F=".kendoPopup",R=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],j=i.extend({init:function(o,n){var s,r=this;n=n||{},n.isRtl&&(n.origin=n.origin||w+" "+m,n.position=n.position||h+" "+m),i.fn.init.call(r,o,n),o=r.element,n=r.options,r.collisions=n.collision?n.collision.split(" "):[],1===r.collisions.length&&r.collisions.push(r.collisions[0]),s=e(r.options.anchor).closest(".k-popup,.k-group"),n.appendTo=e(e(n.appendTo)[0]||s[0]||k),r.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!n.isRtl).css({position:v}).appendTo(n.appendTo).on("mouseenter"+F,function(){r._hovered=!0}).on("mouseleave"+F,function(){r._hovered=!1}),r.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),A(n.animation.open,{complete:function(){r.wrapper.css({overflow:x}),r.trigger(f)}}),A(n.animation.close,{complete:function(){r.wrapper.hide();var i,s,a=r.wrapper.data(b),l=e(n.anchor);a&&r.wrapper.css(a),n.anchor!=k&&(i=l.hasClass(T+"-down")?"down":"up",s=T+"-"+i,l.removeClass(s).children(W).removeClass(P).removeClass(s),o.removeClass(T+"-"+t.directions[i].reverse)),r._closing=!1,r.trigger(c)}}),r._mousedownProxy=function(e){r._mousedown(e)},r._currentWidth=H.width(),r._resizeProxy=function(e){r._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+F,e.proxy(r.toggle,r))},events:[p,f,d,c],options:{name:"Popup",toggleEvent:"click",origin:w+" "+g,position:h+" "+g,anchor:k,collision:"flip fit",viewport:window,animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}}},destroy:function(){var o,n=this,s=n.options,r=n.element.off(F);i.fn.destroy.call(n),s.toggleTarget&&e(s.toggleTarget).off(F),O.unbind(E,n._mousedownProxy),I.unbind(S,n._resizeProxy),s.appendTo[0]===document.body&&(o=r.parent(".k-animation-container"),o[0]?o.remove():r.remove()),t.destroy(n.element.children())},open:function(o,n){var i,r,a=this,l={isFixed:!isNaN(parseInt(n,10)),x:o,y:n},d=a.element,c=a.options,f="down",u=e(c.anchor);if(!a.visible()){if(d.css(t.getComputedStyles(u[0],R)),d.data("animating")||a.trigger(p))return;if(O.unbind(E,a._mousedownProxy).bind(E,a._mousedownProxy),s.mobileOS.ios||I.unbind(S,a._resizeProxy).bind(S,a._resizeProxy),a.wrapper=r=t.wrap(d).css({overflow:_,display:"block",position:v}),s.mobileOS.android&&r.add(u).css(N,"translatez(0)"),r.css(y),e(c.appendTo)[0]==document.body&&r.css(h,"-10000px"),i=A(!0,{},c.animation.open),a.flipped=a._position(l),i.effects=t.parseEffects(i.effects,a.flipped),f=i.effects.slideIn?i.effects.slideIn.direction:f,c.anchor!=k){var g=T+"-"+f;d.addClass(T+"-"+t.directions[f].reverse),u.addClass(g).children(W).addClass(P).addClass(g)}d.data(C,i.effects).kendoStop(!0).kendoAnimate(i)}},toggle:function(){var e=this;e[e.visible()?d:p]()},visible:function(){return this.element.is(":"+x)},close:function(){var o,n,i,s=this,r=s.options;if(s.visible()){if(s._closing||s.trigger(d))return;s.element.find(".k-popup").each(function(){var o=e(this),t=o.data("kendoPopup");t&&t.close()}),O.unbind(E,s._mousedownProxy),I.unbind(S,s._resizeProxy),o=A(!0,{},r.animation.close),n=s.element.data(C),i=o.effects,s.wrapper=t.wrap(s.element).css({overflow:_}),!i&&!t.size(i)&&n&&t.size(n)&&(o.effects=n,o.reverse=!0),s._closing=!0,s.element.kendoStop(!0).kendoAnimate(o)}},_resize:function(){var e=this;if(l){var o=H.width();if(o==e._currentWidth)return;e._currentWidth=o}e._hovered||e.close()},_mousedown:function(n){var i=this,s=i.element[0],r=i.options,a=e(r.anchor)[0],l=r.toggleTarget,p=t.eventTarget(n),d=e(p).closest(".k-popup")[0];d&&d!==i.element[0]||o(s,p)||o(a,p)||l&&o(e(l)[0],p)||i.close()},_fit:function(e,o,t){var n=0;return e+o>t&&(n=t-(e+o)),0>e&&(n=-e),n},_flip:function(e,o,t,n,i,s,r){var a=0;return r=r||o,s!==i&&s!==u&&i!==u&&(e+r>n&&(a+=-(t+o)),0>e+a&&(a+=t+o)),a},_position:function(o){var t=this,n=t.element.css(y,""),i=t.wrapper,a=t.options,l=e(a.viewport),p=e(l).offset(),d=e(a.anchor),c=a.origin.toLowerCase().split(" "),f=a.position.toLowerCase().split(" "),u=t.collisions,g=s.zoomLevel(),m=10002,h=d.parents().filter(i.siblings());if(h[0]){var w=Number(e(h).css("zIndex"));w&&(m=w+1)}i.css("zIndex",m),o&&o.isFixed?i.css({left:o.x,top:o.y}):i.css(t._align(c,f));var _=r(i,y),k=r(i),x=d.offsetParent().parent(".k-animation-container");x.length&&x.data(z)&&(_=r(i,y),k=r(i)),l[0]===window?(k.top-=window.pageYOffset||document.documentElement.scrollTop||0,k.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(k.top-=p.top,k.left-=p.left),t.wrapper.data(b)||i.data(b,A({},_));var C=A({},k),P=A({},_);"fit"===u[0]&&(P.top+=t._fit(C.top,i.outerHeight(),l.height()/g)),"fit"===u[1]&&(P.left+=t._fit(C.left,i.outerWidth(),l.width()/g)),P.left!=_.left||P.top!=_.top?i.data(z,!0):i.removeData(z);var T=A({},P);return"flip"===u[0]&&(P.top+=t._flip(C.top,n.outerHeight(),d.outerHeight(),l.height()/g,c[0],f[0],i.outerHeight())),"flip"===u[1]&&(P.left+=t._flip(C.left,n.outerWidth(),d.outerWidth(),l.width()/g,c[1],f[1],i.outerWidth())),n.css(y,v),i.css(P),P.left!=T.left||P.top!=T.top},_align:function(o,t){var n,i=this,s=i.wrapper,a=e(i.options.anchor),l=o[0],p=o[1],d=t[0],c=t[1],f=r(a),g=e(i.options.appendTo),h=s.outerWidth(),v=s.outerHeight(),_=a.outerWidth(),k=a.outerHeight(),b=f.top,y=f.left,x=Math.round;return g[0]!=document.body&&(n=r(g),b-=n.top,y-=n.left),l===w&&(b+=k),l===u&&(b+=x(k/2)),d===w&&(b-=v),d===u&&(b-=x(v/2)),p===m&&(y+=_),p===u&&(y+=x(_/2)),c===m&&(y-=h),c===u&&(y-=x(h/2)),{top:b,left:y}}});n.plugin(j)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e){function r(r,d){r=e(r),d?r.find(".k-drag-status").removeClass("k-add").addClass("k-denied"):r.find(".k-drag-status").removeClass("k-denied").addClass("k-add")}var d=window.kendo,a=d.ui.Widget,n="change",i="k-reorderable",o=a.extend({init:function(o,t){var g,l=this,s=d.guid()+"-reorderable";a.fn.init.call(l,o,t),o=l.element.addClass(i),t=l.options,l.draggable=g=t.draggable||new d.ui.Draggable(o,{group:s,filter:t.filter,hint:t.hint}),l.reorderDropCue=e('<div class="k-reorder-cue"><div class="k-icon k-i-arrow-s"></div><div class="k-icon k-i-arrow-n"></div></div>'),o.find(g.options.filter).kendoDropTarget({group:g.options.group,dragenter:function(e){if(l._draggable){var d=this.element,a=d[0]===l._draggable[0];r(e.draggable.hint,a),a||l.reorderDropCue.css({height:d.outerHeight(),top:o.offset().top,left:d.offset().left+(d.index()>l._draggable.index()?d.outerWidth():0)}).appendTo(document.body)}},dragleave:function(e){r(e.draggable.hint,!0),l.reorderDropCue.remove()},drop:function(){if(l._draggable){var e,r=l._draggable[0],d=this.element[0];r!==d&&(e=o.find(g.options.filter),l.trigger(n,{element:l._draggable,oldIndex:e.index(r),newIndex:e.index(d)}))}}}),g.bind(["dragcancel","dragend","dragstart"],{dragcancel:function(){l.reorderDropCue.remove(),l._draggable=null},dragend:function(){l.reorderDropCue.remove(),l._draggable=null},dragstart:function(e){l._draggable=e.currentTarget}})},options:{name:"Reorderable",filter:"*"},events:[n],destroy:function(){var e=this;a.fn.destroy.call(e),e.draggable&&e.draggable.destroy(),d.destroy(e.element)}});d.ui.plugin(o)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(i,t){var n=window.kendo,o=n.ui,s=o.Widget,e=i.proxy,r=i.isFunction,a=i.extend,l="horizontal",c="vertical",u="start",p="resize",_="resizeend",g=s.extend({init:function(i,t){var n=this;s.fn.init.call(n,i,t),n.orientation=n.options.orientation.toLowerCase()!=c?l:c,n._positionMouse=n.orientation==l?"x":"y",n._position=n.orientation==l?"left":"top",n._sizingDom=n.orientation==l?"outerWidth":"outerHeight",n.draggable=new o.Draggable(i,{distance:0,filter:t.handle,drag:e(n._resize,n),dragcancel:e(n._cancel,n),dragstart:e(n._start,n),dragend:e(n._stop,n)}),n.userEvents=n.draggable.userEvents},events:[p,_,u],options:{name:"Resizable",orientation:l},_max:function(i){var n=this,o=n.hint?n.hint[n._sizingDom]():0,s=n.options.max;return r(s)?s(i):s!==t?n._initialElementPosition+s-o:s},_min:function(i){var n=this,o=n.options.min;return r(o)?o(i):o!==t?n._initialElementPosition+o:o},_start:function(t){var n=this,o=n.options.hint,s=i(t.currentTarget);n._initialElementPosition=s.position()[n._position],n._initialMousePosition=t[n._positionMouse].startLocation,o&&(n.hint=r(o)?i(o(s)):o,n.hint.css({position:"absolute"}).css(n._position,n._initialElementPosition).appendTo(n.element)),n.trigger(u,t),n._maxPosition=n._max(t),n._minPosition=n._min(t),i(document.body).css("cursor",s.css("cursor"))},_resize:function(n){var o,s=this,e=(i(n.currentTarget),s._maxPosition),r=s._minPosition,l=s._initialElementPosition+(n[s._positionMouse].location-s._initialMousePosition);o=r!==t?Math.max(r,l):l,s.position=o=e!==t?Math.min(e,o):o,s.hint&&s.hint.toggleClass(s.options.invalidClass||"",o==e||o==r).css(s._position,o),s.resizing=!0,s.trigger(p,a(n,{position:o}))},_stop:function(t){var n=this;n.hint&&n.hint.remove(),n.resizing=!1,n.trigger(_,a(t,{position:n.position})),i(document.body).css("cursor","")},_cancel:function(i){var n=this;n.hint&&(n.position=t,n.hint.css(n._position,n._initialElementPosition),n._stop(i))},destroy:function(){var i=this;s.fn.destroy.call(i),i.draggable&&i.draggable.destroy()},press:function(i){if(i){var t=i.position(),n=this;n.userEvents.press(t.left,t.top,i[0]),n.targetPosition=t,n.target=i}},move:function(i){var n=this,o=n._position,s=n.targetPosition,e=n.position;e===t&&(e=s[o]),s[o]=e+i,n.userEvents.move(s.left,s.top)},end:function(){this.userEvents.end(),this.target=this.position=t}});n.ui.plugin(g)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e){var t=window.kendo,s=t.support.touch,n=t.ui.Widget,i=e.proxy,o=s?"touchend":"mouseup",a=s?"touchstart":"mousedown",l=s?"touchmove":"mousemove",r="k-state-selected",d="k-state-selecting",u="k-selectable",c="selectstart",f=e(document),h="change",m=".kendoSelectable",p="k-state-unselecting",_=!1;(function(e){(function(){e('<div class="parent"><span /></div>').on("click",">*",function(){_=!0}).find("span").click()})()})(e);var g=n.extend({init:function(t,s){var o=this;n.fn.init.call(o,t,s),o._marquee=e("<div class='k-marquee'></div>"),o._lastActive=null,o._moveDelegate=i(o._move,o),o._upDelegate=i(o._up,o),o.element.addClass(u),o.element.on(a+m,(_?"":"."+u+" ")+o.options.filter,i(o._down,o))},events:[h],options:{name:"Selectable",filter:">*",multiple:!1},_collide:function(e,t){var s=e.offset(),n={left:s.left,top:s.top,right:s.left+e.outerWidth(),bottom:s.top+e.outerHeight()};return!(n.left>t.right||t.left>n.right||n.top>t.bottom||t.top>n.bottom)},_position:function(e){var t,s=this._originalPosition,n=s.x,i=s.y,o=e.pageX,a=e.pageY;return n>o&&(t=o,o=n,n=t),i>a&&(t=a,a=i,i=t),{top:i,right:o,left:n,bottom:a}},_down:function(s){var n,i=this,a=s.ctrlKey,h=s.shiftKey,m=!i.options.multiple;i._downTarget=e(s.currentTarget),i._shiftPressed=h,i._downTarget.closest("."+u)[0]===i.element[0]&&(f.unbind(o,i._upDelegate).bind(o,i._upDelegate),i._originalPosition={x:s.pageX,y:s.pageY},!m&&e(s.target).is(":not(:input, a)")&&(f.unbind(l,i._moveDelegate).bind(l,i._moveDelegate).unbind(c,!1).bind(c,!1),t.support.touch||s.preventDefault()),m||(e("body").append(i._marquee),i._marquee.css({left:s.clientX+1,top:s.clientY+1,width:0,height:0})),n=i._downTarget.hasClass(r),(m||!a&&!h)&&i.element.find(i.options.filter+"."+r).not(i._downTarget).removeClass(r),a&&(i._lastActive=i._downTarget),n&&(a||h)?(i._downTarget.addClass(r),h||i._downTarget.addClass(p)):t.support.touch&&m||(i._downTarget.addClass(d),m&&i._downTarget.hasClass(r)&&i._downTarget.removeClass(d)))},_move:function(t){var s,n,i=this,o=i._position(t),a=t.ctrlKey;i._marquee.css({left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top}),i.element.find(i.options.filter).each(function(){s=e(this),n=i._collide(s,o),n?s.hasClass(r)?i._downTarget[0]!==s[0]&&a&&s.removeClass(r).addClass(p):s.hasClass(d)||s.hasClass(p)||s.addClass(d):s.hasClass(d)?s.removeClass(d):a&&s.hasClass(p)&&s.removeClass(p).addClass(r)})},_up:function(){var e=this,s=e.options,n=!s.multiple;f.unbind(c,!1).unbind(l,e._moveDelegate).unbind(o,e._upDelegate),n||e._marquee.remove(),t.support.touch&&n&&e._downTarget.addClass(d),n||e._shiftPressed!==!0?(e.element.find(s.filter+"."+p).removeClass(p).removeClass(r),e.value(e.element.find(s.filter+"."+d))):e.selectRange(e._firstSelectee(),e._downTarget),e._shiftPressed||(e._lastActive=e._downTarget),e._downTarget=null,e._shiftPressed=!1},value:function(e){var t=this,s=i(t._selectElement,t);return e?(e.each(function(){s(this)}),t.trigger(h,{}),undefined):t.element.find(t.options.filter+"."+r)},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter))},_selectElement:function(t){var s=e(t),n=this.trigger("select",{element:t});s.removeClass(d),n||(s.addClass(r),this.options.aria&&s.attr("aria-selected",!0))},clear:function(){var e=this;e.element.find(e.options.filter+"."+r).removeClass(r),e.options.aria&&e.element.children("[aria-selected=true]").attr("aria-selected",!1)},selectRange:function(t,s){var n,o=this,a=!1,l=i(o._selectElement,o);t=e(t)[0],s=e(s)[0],o.element.find(o.options.filter).each(function(){if(n=e(this),a)l(this),a=this!==s;else if(this===t)a=t!==s,l(this);else if(this===s){var i=t;t=s,s=i,a=!0,l(this)}else n.removeClass(r)}),o.trigger(h,{})},destroy:function(){var e=this;n.fn.destroy.call(e),e.element.off(m)}});t.ui.plugin(g)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function R(a){return typeof a!==F}function P(a,c){var d=h(a.getAttribute(c));d===null&&(d=b);return d}function O(a){a=parseFloat(a,10);var b=k.pow(10,D||0);return k.round(a*b)/b}function N(a){return(a+"").replace(".",c.cultures.current.numberFormat["."])}function M(a){return function(){return a}}function L(a){return function(b){return b+a}}function K(a){var b=a.is("input")?1:2;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='Drag'>Drag</a>"+(b>1?"<a href='#' class='k-draghandle' title='Drag'>Drag</a>":"")+"</div>"}function J(a,b){var c="<ul class='k-reset k-slider-items'>",d=k.floor(O(b/a.smallStep))+1,e;for(e=0;e<d;e++)c+="<li class='k-tick'> </li>";c+="</ul>";return c}function I(a,b,c){var d="";b=="increase"?d=c?"k-i-arrow-e":"k-i-arrow-n":d=c?"k-i-arrow-w":"k-i-arrow-s";return"<a class='k-button k-button-"+b+"'><span class='k-icon "+d+"' title='"+a[b+"ButtonTitle"]+"'>"+a[b+"ButtonTitle"]+"</span></a>"}function H(a,b,c){var d=c?" k-slider-horizontal":" k-slider-vertical",e=a.style?a.style:b.attr("style"),f=b.attr("class")?" "+b.attr("class"):"",g="";a.tickPlacement=="bottomRight"?g=" k-slider-bottomright":a.tickPlacement=="topLeft"&&(g=" k-slider-topleft"),e=e?" style='"+e+"'":"";return"<div class='k-widget k-slider"+d+f+"'"+e+">"+"<div class='k-slider-wrap"+(a.showButtons?" k-slider-buttons":"")+g+"'></div></div>"}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.extend,g=c.format,h=c.parseFloat,i=a.proxy,j=a.isArray,k=Math,l=c.support,m=l.touch,n=l.pointers,o="change",p="slide",q=m?"touchstart":"mousedown",r=m?"touchstart":n?"MSPointerDown":"mousedown",s=m?"touchend":"mouseup",t="moveSelection",u="keydown",v="click",w="mouseover",x=".k-draghandle",y=".k-slider-track",z=".k-tick",A="k-state-selected",B="k-state-default",C="k-state-disabled",D=3,E="disabled",F="undefined",G=d.extend({init:function(a,b){var e=this;d.fn.init.call(e,a,b),b=e.options,e._distance=b.max-b.min,e._isHorizontal=b.orientation=="horizontal",e._position=e._isHorizontal?"left":"bottom",e._size=e._isHorizontal?"width":"height",e._outerSize=e._isHorizontal?"outerWidth":"outerHeight",b.tooltip.format=b.tooltip.enabled?b.tooltip.format||"{0}":"{0}",e._createHtml(),e.wrapper=e.element.closest(".k-slider"),e._trackDiv=e.wrapper.find(y),e._setTrackDivWidth(),e._maxSelection=e._trackDiv[e._size]();var f=e._maxSelection/((b.max-b.min)/b.smallStep),g=e._calculateItemsWidth(k.floor(e._distance/b.smallStep));b.tickPlacement!="none"&&f>=2&&(e._trackDiv.before(J(b,e._distance)),e._setItemsWidth(g),e._setItemsTitle(),e._setItemsLargeTick()),e._calculateSteps(g),e[b.enabled?"enable":"disable"](),e._keyMap={37:L(-b.smallStep),40:L(-b.smallStep),39:L(+b.smallStep),38:L(+b.smallStep),35:M(b.max),36:M(b.min),33:L(+b.largeStep),34:L(-b.largeStep)},c.notify(e)},events:[o,p],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var a=this,b=parseFloat(a._trackDiv.css(a._position),10)*2;a._trackDiv[a._size](a.wrapper[a._size]()-2-b)},_setItemsWidth:function(b){var c=this,d=c.options,e=0,f=b.length-1,g=c.wrapper.find(z),h,i=0,j=2,k=g.length,l=0;for(h=0;h<k-2;h++)a(g[h+1])[c._size](b[h]);c._isHorizontal?(a(g[e]).addClass("k-first")[c._size](b[f-1]),a(g[f]).addClass("k-last")[c._size](b[f])):(a(g[f]).addClass("k-first")[c._size](b[f]),a(g[e]).addClass("k-last")[c._size](b[f-1]));if(c._distance%d.smallStep!==0&&!c._isHorizontal){for(h=0;h<b.length;h++)l+=b[h];i=c._maxSelection-l,i+=parseFloat(c._trackDiv.css(c._position),10)+j,c.wrapper.find(".k-slider-items").css("padding-top",i)}},_setItemsTitle:function(){var b=this,c=b.options,d=b.wrapper.find(z),e=c.min,f=d.length,h=b._isHorizontal?0:f-1,i=b._isHorizontal?f:-1,j=b._isHorizontal?1:-1;for(;h-i!==0;h+=j)a(d[h]).attr("title",g(c.tooltip.format,O(e))),e+=c.smallStep},_setItemsLargeTick:function(){var b=this,c=b.options,d,e=b.wrapper.find(z),f={},g=O(c.largeStep/c.smallStep);if(1e3*c.largeStep%(1e3*c.smallStep)===0)if(b._isHorizontal)for(d=0;d<e.length;d=O(d+g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>");else for(d=e.length-1;d>=0;d=O(d-g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>"),d!==0&&d!==e.length-1&&f.css("line-height",f[b._size]()+"px")},_calculateItemsWidth:function(a){var b=this,c=b.options,d=parseFloat(b._trackDiv.css(b._size))+1,e=d/b._distance,f,g,h;b._distance/c.smallStep-k.floor(b._distance/c.smallStep)>0&&(d-=b._distance%c.smallStep*e),f=d/a,g=[];for(h=0;h<a-1;h++)g[h]=f;g[a-1]=g[a]=f/2;return b._roundWidths(g)},_roundWidths:function(a){var b=0,c=a.length,d;for(d=0;d<c;d++)b+=a[d]-k.floor(a[d]),a[d]=k.floor(a[d]);b=k.round(b);return this._addAdditionalSize(b,a)},_addAdditionalSize:function(a,b){if(a===0)return b;var c=parseFloat(b.length-1)/parseFloat(a==1?a:a-1),d;for(d=0;d<a;d++)b[parseInt(k.round(c*d),10)]+=1;return b},_calculateSteps:function(a){var b=this,c=b.options,d=c.min,e=0,f=k.ceil(b._distance/c.smallStep),g=1,h;f+=b._distance/c.smallStep%1===0?1:0,a.splice(0,0,a[f-2]*2),a.splice(f-1,1,a.pop()*2),b._pixelSteps=[e],b._values=[d];if(f!==0){while(g<f)e+=(a[g-1]+a[g])/2,b._pixelSteps[g]=e,b._values[g]=d+=c.smallStep,g++;h=b._distance%c.smallStep===0?f-1:f,b._pixelSteps[h]=b._maxSelection,b._values[h]=c.max}},_getValueFromPosition:function(a,b){var c=this,d=c.options,e=k.max(d.smallStep*(c._maxSelection/c._distance),0),f=0,g=e/2,h;c._isHorizontal?f=a-b.startPoint:f=b.startPoint-a;if(c._maxSelection-(parseInt(c._maxSelection%e,10)-3)/2<f)return d.max;for(h=0;h<c._pixelSteps.length;h++)if(k.abs(c._pixelSteps[h]-f)-1<=g)return O(c._values[h])},_getDragableArea:function(){var a=this,b=a._trackDiv.offset().left,c=a._trackDiv.offset().top;return{startPoint:a._isHorizontal?b:c+a._maxSelection,endPoint:a._isHorizontal?b+a._maxSelection:c}},_createHtml:function(){var a=this,b=a.element,c=a.options,d=b.find("input");d.length==2?(d.eq(0).val(c.selectionStart),d.eq(1).val(c.selectionEnd)):b.val(c.value),b.wrap(H(c,b,a._isHorizontal)).hide(),c.showButtons&&b.before(I(c,"increase",a._isHorizontal)).before(I(c,"decrease",a._isHorizontal)),b.before(K(b))}}),Q=function(a){return{idx:0,x:a.pageX,y:a.pageY}};l.pointers&&(Q=function(a){return{idx:0,x:a.originalEvent.clientX,y:a.originalEvent.clientY}}),l.touch&&(Q=function(b,c){var d=b.changedTouches||b.originalEvent.changedTouches;if(c){var e=null;a.each(d,function(a,b){c==b.identifier&&(e={idx:b.identifier,x:b.pageX,y:b.pageY})});return e}return{idx:d[0].identifier,x:d[0].pageX,y:d[0].pageY}});var S=G.extend({init:function(c,d){var e=this,g;c.type="text",d=f({},{value:P(c,"value"),min:P(c,"min"),max:P(c,"max"),smallStep:P(c,"step")},d),c=a(c),d&&d.enabled===b&&(d.enabled=!c.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.value)||(d.value=d.min,c.val(d.min)),g=e.wrapper.find(x),new S.Selection(g,e,d),e._drag=new S.Drag(g,"",e,d)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f,g;d.disable();if(b!==!1){d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),e=d._isHorizontal?c.x:c.y,f=d._getDragableArea(),g=a(b.target);g.hasClass("k-draghandle")?g.addClass(A):(d._update(d._getValueFromPosition(e,f)),d._drag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),g=i(function(a){d._setValueInRange(d._nextValueByIndex(d._valueIndex+a*1))},d);if(e.showButtons){var h=i(function(a,b){if(a.which===1||m&&a.which===0)g(b),this.timeout=setTimeout(i(function(){this.timer=setInterval(function(){g(b)},60)},this),200)},d);d.wrapper.find(".k-button").bind(s,i(function(a){this._clearTimer()},d)).bind(w,function(b){a(b.currentTarget).addClass("k-state-hover")}).bind("mouseout",i(function(b){a(b.currentTarget).removeClass("k-state-hover"),this._clearTimer()},d)).eq(0).bind(q,i(function(a){h(a,1)},d)).click(!1).end().eq(1).bind(q,i(function(a){h(a,-1)},d)).click(!1)}d.wrapper.find(x).bind(u,i(this._keydown,d)),e.enabled=!0}},disable:function(){var b=this;b.wrapper.removeClass(B).addClass(C),a(b.element).attr(E,E),b.wrapper.find(".k-button").unbind(q).bind(q,c.preventDefault).unbind(s).bind(s,c.preventDefault).unbind("mouseleave").bind("mouseleave",c.preventDefault).unbind(w).bind(w,c.preventDefault),b.wrapper.find(z+", "+y).unbind(r),b.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,!1),b.options.enabled=!1},_update:function(a){var b=this,c=b.value()!=a;b.value(a),c&&b.trigger(o,{value:b.options.value})},value:function(a){var b=this,c=b.options;a=O(a);if(isNaN(a))return c.value;a>=c.min&&a<=c.max&&c.value!=a&&(b.element.attr("value",N(a)),c.value=a,b._refresh())},_refresh:function(){this.trigger(t,{value:this.options.value})},_clearTimer:function(a){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(a){var b=this;a.keyCode in b._keyMap&&(b._setValueInRange(b._keyMap[a.keyCode](b.options.value)),a.preventDefault())},_setValueInRange:function(a){var b=this,c=b.options;a=O(a);isNaN(a)?b._update(c.min):(a=k.max(k.min(a,c.max),c.min),b._update(a))},_nextValueByIndex:function(a){var b=this._values.length;return this._values[k.max(0,k.min(a,b-1))]}});S.Selection=function(a,b,c){function d(d){var e=d-c.min,f=b._valueIndex=k.ceil(O(e/c.smallStep)),g=parseInt(b._pixelSteps[f],10),h=b._trackDiv.find(".k-slider-selection"),i=parseInt(a[b._outerSize]()/2,10);h[b._size](g),a.css(b._position,g-i)}d(c.value),b.bind([o,p,t],function(a){d(parseFloat(a.value,10))})},S.Drag=function(a,b,c,d){var f=this;f.owner=c,f.options=d,f.dragHandle=a,f.dragHandleSize=a[c._outerSize](),f.type=b,f.draggable=new e(a,{threshold:0,dragstart:i(f._dragstart,f),drag:i(f.drag,f),dragend:i(f.dragend,f),dragcancel:i(f.dragcancel,f)}),a.click(!1)},S.Drag.prototype={dragstart:function(a){this.draggable.drag._start(a)},_dragstart:function(b){var d=this,e=d.owner,f=d.options,h=f.tooltip,i="",j,l,m;f.enabled?(e.element.unbind(w),d.dragHandle.addClass(A),d.dragableArea=e._getDragableArea(),d.step=k.max(f.smallStep*(e._maxSelection/e._distance),0),d.type?(d.selectionStart=f.selectionStart,d.selectionEnd=f.selectionEnd,e._setZIndex(d.type)):d.oldVal=d.val=f.value,h.enabled&&(h.template&&(j=d.tooltipTemplate=c.template(h.template)),d.tooltipDiv=a("<div class='k-widget k-tooltip'><!-- --></div>").appendTo(document.body),d.type?d.tooltipTemplate?i=j({selectionStart:d.selectionStart,selectionEnd:d.selectionEnd}):(l=g(h.format,d.selectionStart),m=g(h.format,d.selectionEnd),i=l+" - "+m):(d.tooltipInnerDiv="<div class='k-callout k-callout-"+(e._isHorizontal?"s":"e")+"'><!-- --></div>",d.tooltipTemplate?i=j({value:d.val}):i=g(h.format,d.val),i+=d.tooltipInnerDiv),d.tooltipDiv.html(i),d.moveTooltip())):b.preventDefault()},drag:function(a){var b=this,c=b.owner,d=b.options,e=a.x.location,f=a.y.location,h=b.dragableArea.startPoint,i=b.dragableArea.endPoint,j=d.tooltip,k="",l=b.tooltipTemplate,m,n,o;a.preventDefault(),c._isHorizontal?b.val=b.constrainValue(e,h,i,e>=i):b.val=b.constrainValue(f,i,h,f<=i),b.oldVal!=b.val&&(b.oldVal=b.val,b.type?(b.type=="firstHandle"?b.val<b.selectionEnd?b.selectionStart=b.val:b.selectionStart=b.selectionEnd=b.val:b.val>b.selectionStart?b.selectionEnd=b.val:b.selectionStart=b.selectionEnd=b.val,m={values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}):m={value:b.val},c.trigger(p,m),j.enabled&&(b.type?b.tooltipTemplate?k=l({selectionStart:b.selectionStart,selectionEnd:b.selectionEnd}):(n=g(j.format,b.selectionStart),o=g(j.format,b.selectionEnd),k=n+" - "+o):(b.tooltipTemplate?k=l({value:b.val}):k=g(j.format,b.val),k+=b.tooltipInnerDiv),b.tooltipDiv.html(k),b.moveTooltip()))},dragcancel:function(a){this.owner._refresh();return this._end()},dragend:function(a){var b=this,c=b.owner;b.type?c._update(b.selectionStart,b.selectionEnd):c._update(b.val);return b._end()},_end:function(){var a=this,b=a.owner;b.options.tooltip.enabled&&b.options.enabled&&a.tooltipDiv.remove(),a.dragHandle.removeClass(A),b.element.bind(w);return!1},moveTooltip:function(){var a=this,b=a.owner,c=0,d=0,e=a.dragHandle.offset(),f=4,g=a.tooltipDiv.find(".k-callout"),h,i,j;a.type?(h=b.wrapper.find(x),i=h.eq(0).offset(),j=h.eq(1).offset(),b._isHorizontal?(c=j.top,d=i.left+(j.left-i.left)/2):(c=i.top+(j.top-i.top)/2,d=j.left)):(c=e.top,d=e.left),b._isHorizontal?(d-=parseInt((a.tooltipDiv.outerWidth()-a.dragHandle[b._outerSize]())/2,10),c-=a.tooltipDiv.outerHeight()+g.height()+f):(c-=parseInt((a.tooltipDiv.outerHeight()-a.dragHandle[b._outerSize]())/2,10),d-=a.tooltipDiv.outerWidth()+g.width()+f),a.tooltipDiv.css({top:c,left:d})},constrainValue:function(a,b,c,d){var e=this,f=0;b<a&&a<c?f=e.owner._getValueFromPosition(a,e.dragableArea):d?f=e.options.max:f=e.options.min;return f}},c.ui.plugin(S);var T=G.extend({init:function(c,d){var e=this,g=a(c).find("input"),h=g.eq(0)[0],i=g.eq(1)[0];h.type="text",i.type="text",d=f({},{selectionStart:P(h,"value"),min:P(h,"min"),max:P(h,"max"),smallStep:P(h,"step")},{selectionEnd:P(i,"value"),min:P(i,"min"),max:P(i,"max"),smallStep:P(i,"step")},d),d&&d.enabled===b&&(d.enabled=!g.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.selectionStart)||(d.selectionStart=d.min,g.eq(0).val(d.min)),R(d.selectionEnd)||(d.selectionEnd=d.max,g.eq(1).val(d.max));var j=e.wrapper.find(x);new T.Selection(j,e,d),e._firstHandleDrag=new S.Drag(j.eq(0),"firstHandle",e,d),e._lastHandleDrag=new S.Drag(j.eq(1),"lastHandle",e,d)},options:{name:"RangeSlider",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f;d.disable();b!==!1&&(d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),f=d._isHorizontal?c.x:c.y,g=d._getDragableArea(),h=d._getValueFromPosition(f,g),i=a(b.target);i.hasClass("k-draghandle")?i.addClass(A):h<e.selectionStart?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):h>d.selectionEnd?(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b)):h-e.selectionStart<=e.selectionEnd-h?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),d.wrapper.find(x).eq(0).bind(u,i(function(a){this._keydown(a,"firstHandle")},d)).end().eq(1).bind(u,i(function(a){this._keydown(a,"lastHandle")},d)),d.options.enabled=!0)},disable:function(){var a=this;a.wrapper.removeClass(B).addClass(C),a.wrapper.find("input").attr(E,E),a.wrapper.find(z+", "+y).unbind(r),a.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,c.preventDefault),a.options.enabled=!1},_keydown:function(a,b){var c=this,d=c.options.selectionStart,e=c.options.selectionEnd;a.keyCode in c._keyMap&&(b=="firstHandle"?(d=c._keyMap[a.keyCode](d),d>e&&(e=d)):(e=c._keyMap[a.keyCode](e),d>e&&(d=e)),c._setValueInRange(d,e),a.preventDefault())},_update:function(a,b){var c=this,d=c.value(),e=d[0]!=a||d[1]!=b;c.value([a,b]),e&&c.trigger(o,{values:[a,b],value:[a,b]})},value:function(a){return a&&a.length?this._value(a[0],a[1]):this._value()},_value:function(a,b){var c=this,d=c.options,e=d.selectionStart,f=d.selectionEnd;if(isNaN(a)&&isNaN(b))return[e,f];a=O(a),b=O(b),a>=d.min&&a<=d.max&&b>=d.min&&b<=d.max&&a<=b&&(e!=a||f!=b)&&(c.element.find("input").eq(0).attr("value",N(a)).end().eq(1).attr("value",N(b)),d.selectionStart=a,d.selectionEnd=b,c._refresh())},values:function(a,b){return j(a)?this._value(a[0],a[1]):this._value(a,b)},_refresh:function(){var a=this,b=a.options;a.trigger(t,{values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}),b.selectionStart==b.max&&b.selectionEnd==b.max&&a._setZIndex("firstHandle")},_setValueInRange:function(a,b){var c=this.options;a=k.max(k.min(a,c.max),c.min),b=k.max(k.min(b,c.max),c.min),a==c.max&&b==c.max&&this._setZIndex("firstHandle"),this._update(k.min(a,b),k.max(a,b))},_setZIndex:function(b){this.wrapper.find(x).each(function(c){a(this).css("z-index",b=="firstHandle"?1-c:c)})}});T.Selection=function(a,b,c){function e(a,c){var d=0,e=0,f=b._trackDiv.find(".k-slider-selection");d=k.abs(a-c),e=a<c?a:c,f[b._size](d),f.css(b._position,e-1)}function d(d){d=d||[];var f=d[0]-c.min,g=d[1]-c.min,h=k.ceil(O(f/c.smallStep)),i=k.ceil(O(g/c.smallStep)),j=b._pixelSteps[h],l=b._pixelSteps[i],m=parseInt(a.eq(0)[b._outerSize]()/2,10);a.eq(0).css(b._position,j-m).end().eq(1).css(b._position,l-m),e(j,l)}d(b.value()),b.bind([o,p,t],function(a){d(a.values)})},c.ui.plugin(T)})(jQuery);
|
11
|
+
(function(t,e){function a(t,e,a){var i=a?" k-slider-horizontal":" k-slider-vertical",n=t.style?t.style:e.attr("style"),o=e.attr("class")?" "+e.attr("class"):"",r="";return"bottomRight"==t.tickPlacement?r=" k-slider-bottomright":"topLeft"==t.tickPlacement&&(r=" k-slider-topleft"),n=n?" style='"+n+"'":"","<div class='k-widget k-slider"+i+o+"'"+n+">"+"<div class='k-slider-wrap"+(t.showButtons?" k-slider-buttons":"")+r+"'></div></div>"}function i(t,e,a){var i="";return i="increase"==e?a?"k-i-arrow-e":"k-i-arrow-n":a?"k-i-arrow-w":"k-i-arrow-s","<a class='k-button k-button-"+e+"'><span class='k-icon "+i+"' title='"+t[e+"ButtonTitle"]+"'>"+t[e+"ButtonTitle"]+"</span></a>"}function n(t,e){var a,i="<ul class='k-reset k-slider-items'>",n=k.floor(d(e/t.smallStep))+1;for(a=0;n>a;a++)i+="<li class='k-tick' role='presentation'> </li>";return i+="</ul>"}function o(t,e){var a=e.is("input")?1:2,i=2==a?t.leftDragHandleTitle:t.dragHandleTitle;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='"+i+"' role='slider' aria-valuemin='"+t.min+"' aria-valuemax='"+t.max+"' aria-valuenow='"+(a>1?t.selectionStart||t.min:t.value||t.min)+"'>Drag</a>"+(a>1?"<a href='#' class='k-draghandle' title='"+t.rightDragHandleTitle+"'role='slider' aria-valuemin='"+t.min+"' aria-valuemax='"+t.max+"' aria-valuenow='"+(t.selectionEnd||t.max)+"'>Drag</a>":"")+"</div>"}function r(t){return function(e){return e+t}}function l(t){return function(){return t}}function s(t){return(t+"").replace(".",c.cultures.current.numberFormat["."])}function d(t){t=parseFloat(t,10);var e=k.pow(10,N||0);return k.round(t*e)/e}function u(t,a){var i=g(t.getAttribute(a));return null===i&&(i=e),i}function p(t){return typeof t!==Y}var c=window.kendo,f=c.ui.Widget,_=c.ui.Draggable,v=t.extend,m=c.format,g=c.parseFloat,h=t.proxy,S=t.isArray,k=Math,w=c.support,x=w.pointers,D="change",H="slide",b=".slider",T="touchstart"+b+" mousedown"+b,y=x?"MSPointerDown"+b:"mousedown"+b+" touchstart"+b,z="touchend"+b+" mouseup"+b,I="moveSelection",E="keydown"+b,C="click"+b,R="mouseover"+b,V="focus"+b,q="blur"+b,A=".k-draghandle",M=".k-slider-track",W=".k-tick",F="k-state-selected",P="k-state-default",B="k-state-disabled",N=3,X="disabled",Y="undefined",Z=f.extend({init:function(t,e){var a=this;f.fn.init.call(a,t,e),e=a.options,a._distance=e.max-e.min,a._isHorizontal="horizontal"==e.orientation,a._isRtl=a._isHorizontal&&c.support.isRtl(t),a._position=a._isHorizontal?"left":"bottom",a._size=a._isHorizontal?"width":"height",a._outerSize=a._isHorizontal?"outerWidth":"outerHeight",e.tooltip.format=e.tooltip.enabled?e.tooltip.format||"{0}":"{0}",a._createHtml(),a.wrapper=a.element.closest(".k-slider"),a._trackDiv=a.wrapper.find(M),a._setTrackDivWidth(),a._maxSelection=a._trackDiv[a._size]();var i=a._maxSelection/((e.max-e.min)/e.smallStep),o=a._calculateItemsWidth(k.floor(a._distance/e.smallStep));"none"!=e.tickPlacement&&i>=2&&(a._trackDiv.before(n(e,a._distance)),a._setItemsWidth(o),a._setItemsTitle(),a._setItemsLargeTick()),a._calculateSteps(o),a._tabindex(a.wrapper.find(A)),a[e.enabled?"enable":"disable"]();var s=c.support.isRtl(a.wrapper)?-1:1;a._keyMap={37:r(-1*s*e.smallStep),40:r(-e.smallStep),39:r(1*s*e.smallStep),38:r(+e.smallStep),35:l(e.max),36:l(e.min),33:r(+e.largeStep),34:r(-e.largeStep)},c.notify(a)},events:[D,H],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var t=this,e=2*parseFloat(t._trackDiv.css(t._isRtl?"right":t._position),10);t._trackDiv[t._size](t.wrapper[t._size]()-2-e)},_setItemsWidth:function(e){var a,i=this,n=i.options,o=0,r=e.length-1,l=i.wrapper.find(W),s=0,d=2,u=l.length,p=0;for(a=0;u-2>a;a++)t(l[a+1])[i._size](e[a]);if(i._isHorizontal?(t(l[o]).addClass("k-first")[i._size](e[r-1]),t(l[r]).addClass("k-last")[i._size](e[r])):(t(l[r]).addClass("k-first")[i._size](e[r]),t(l[o]).addClass("k-last")[i._size](e[r-1])),0!==i._distance%n.smallStep&&!i._isHorizontal){for(a=0;e.length>a;a++)p+=e[a];s=i._maxSelection-p,s+=parseFloat(i._trackDiv.css(i._position),10)+d,i.wrapper.find(".k-slider-items").css("padding-top",s)}},_setItemsTitle:function(){for(var e=this,a=e.options,i=e.wrapper.find(W),n=a.min,o=i.length,r=e._isHorizontal&&!e._isRtl?0:o-1,l=e._isHorizontal&&!e._isRtl?o:-1,s=e._isHorizontal&&!e._isRtl?1:-1;0!==r-l;r+=s)t(i[r]).attr("title",m(a.tooltip.format,d(n))),n+=a.smallStep},_setItemsLargeTick:function(){var e,a=this,i=a.options,n=a.wrapper.find(W),o={},r=d(i.largeStep/i.smallStep);if(0===1e3*i.largeStep%(1e3*i.smallStep))if(a._isHorizontal&&!a._isRtl)for(e=0;n.length>e;e=d(e+r))o=t(n[e]),o.addClass("k-tick-large").html("<span class='k-label'>"+o.attr("title")+"</span>");else for(e=n.length-1;e>=0;e=d(e-r))o=t(n[e]),o.addClass("k-tick-large").html("<span class='k-label'>"+o.attr("title")+"</span>"),a._isRtl||0!==e&&e!==n.length-1&&o.css("line-height",o[a._size]()+"px")},_calculateItemsWidth:function(t){var e,a,i,n=this,o=n.options,r=parseFloat(n._trackDiv.css(n._size))+1,l=r/n._distance;for(n._distance/o.smallStep-k.floor(n._distance/o.smallStep)>0&&(r-=n._distance%o.smallStep*l),e=r/t,a=[],i=0;t-1>i;i++)a[i]=e;return a[t-1]=a[t]=e/2,n._roundWidths(a)},_roundWidths:function(t){var e,a=0,i=t.length;for(e=0;i>e;e++)a+=t[e]-k.floor(t[e]),t[e]=k.floor(t[e]);return a=k.round(a),this._addAdditionalSize(a,t)},_addAdditionalSize:function(t,e){if(0===t)return e;var a,i=parseFloat(e.length-1)/parseFloat(1==t?t:t-1);for(a=0;t>a;a++)e[parseInt(k.round(i*a),10)]+=1;return e},_calculateSteps:function(t){var e,a=this,i=a.options,n=i.min,o=0,r=k.ceil(a._distance/i.smallStep),l=1;if(r+=0===a._distance/i.smallStep%1?1:0,t.splice(0,0,2*t[r-2]),t.splice(r-1,1,2*t.pop()),a._pixelSteps=[o],a._values=[n],0!==r){for(;r>l;)o+=(t[l-1]+t[l])/2,a._pixelSteps[l]=o,a._values[l]=n+=i.smallStep,l++;e=0===a._distance%i.smallStep?r-1:r,a._pixelSteps[e]=a._maxSelection,a._values[e]=i.max,a._isRtl&&(a._pixelSteps.reverse(),a._values.reverse())}},_getValueFromPosition:function(t,e){var a,i=this,n=i.options,o=k.max(n.smallStep*(i._maxSelection/i._distance),0),r=0,l=o/2;if(i._isHorizontal?(r=t-e.startPoint,i._isRtl&&(r=i._maxSelection-r)):r=e.startPoint-t,r>i._maxSelection-(parseInt(i._maxSelection%o,10)-3)/2)return n.max;for(a=0;i._pixelSteps.length>a;a++)if(l>=k.abs(i._pixelSteps[a]-r)-1)return d(i._values[a])},_getFormattedValue:function(t,e){var a,i,n,o=this,r="",l=o.options.tooltip;return S(t)?(i=t[0],n=t[1]):e&&e.type&&(i=e.selectionStart,n=e.selectionEnd),e&&(a=e.tooltipTemplate),!a&&l.template&&(a=c.template(l.template)),S(t)||e&&e.type?a?r=a({selectionStart:i,selectionEnd:n}):(i=m(l.format,i),n=m(l.format,n),r=i+" - "+n):(e&&(e.val=t),r=a?a({value:t}):m(l.format,t)),r},_getDragableArea:function(){var t=this,e=t._trackDiv.offset().left,a=t._trackDiv.offset().top;return{startPoint:t._isHorizontal?e:a+t._maxSelection,endPoint:t._isHorizontal?e+t._maxSelection:a}},_createHtml:function(){var t=this,e=t.element,n=t.options,r=e.find("input");2==r.length?(r.eq(0).val(n.selectionStart),r.eq(1).val(n.selectionEnd)):e.val(n.value),e.wrap(a(n,e,t._isHorizontal)).hide(),n.showButtons&&e.before(i(n,"increase",t._isHorizontal)).before(i(n,"decrease",t._isHorizontal)),e.before(o(n,e))},_focus:function(e){var a=this,i=e.target,n=a.value(),o=a._drag;o||(i==a.wrapper.find(A).eq(0)[0]?(o=a._firstHandleDrag,a._activeHandle=0):(o=a._lastHandleDrag,a._activeHandle=1),n=n[a._activeHandle]),t(i).addClass(F),o&&(a._activeHandleDrag=o,o.selectionStart=a.options.selectionStart,o.selectionEnd=a.options.selectionEnd,o._updateTooltip(n))},_focusWithMouse:function(e){var a=this,i=t(e.target),n=i.is(A)?i.index():0;window.setTimeout(function(){a.wrapper.find(A)[2==n?1:0].focus()},1),a._setTooltipTimeout()},_blur:function(e){var a=this,i=a._activeHandleDrag;t(e.target).removeClass(F),i&&(i._removeTooltip(),delete a._activeHandleDrag,delete a._activeHandle)},_setTooltipTimeout:function(){var t=this;t._tooltipTimeout=window.setTimeout(function(){var e=t._drag||t._activeHandleDrag;e&&e._removeTooltip()},300)},_clearTooltipTimeout:function(){var t=this;window.clearTimeout(this._tooltipTimeout);var e=t._drag||t._activeHandleDrag;e&&e.tooltipDiv&&e.tooltipDiv.stop(!0,!1).css("opacity",1)}}),L=function(t){return{idx:0,x:t.pageX,y:t.pageY}};w.pointers&&(L=function(t){return{idx:0,x:t.originalEvent.clientX,y:t.originalEvent.clientY}}),w.touch&&(L=function(e,a){var i=e.changedTouches||e.originalEvent.changedTouches;if(a){var n=null;return t.each(i,function(t,e){a==e.identifier&&(n={idx:e.identifier,x:e.pageX,y:e.pageY})}),n}return{idx:i[0].identifier,x:i[0].pageX,y:i[0].pageY}});var j=Z.extend({init:function(a,i){var n,o=this;a.type="text",i=v({},{value:u(a,"value"),min:u(a,"min"),max:u(a,"max"),smallStep:u(a,"step")},i),a=t(a),i&&i.enabled===e&&(i.enabled=!a.is("[disabled]")),Z.fn.init.call(o,a,i),i=o.options,p(i.value)||(i.value=i.min,a.val(i.min)),n=o.wrapper.find(A),new j.Selection(n,o,i),o._drag=new j.Drag(n,"",o,i)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",dragHandleTitle:"drag",tooltip:{format:"{0}"}},enable:function(a){var i,n,o=this,r=o.options;if(o.disable(),a!==!1){if(o.wrapper.removeClass(B).addClass(P),o.wrapper.find("input").removeAttr(X),i=function(a){var i=L(a),n=o._isHorizontal?i.x:i.y,r=o._getDragableArea(),l=t(a.target);return l.hasClass("k-draghandle")?(l.addClass(F),e):(o._update(o._getValueFromPosition(n,r)),o._focusWithMouse(a),o._drag.dragstart(a),e)},o.wrapper.find(W+", "+M).on(y,i).end().on(y,function(){t(document.documentElement).one("selectstart",c.preventDefault)}),o.wrapper.find(A).on(z,function(){o._setTooltipTimeout()}).on(C,function(t){o._focusWithMouse(t),t.preventDefault()}).on(V,h(o._focus,o)).on(q,h(o._blur,o)),n=h(function(t){var e=o._nextValueByIndex(o._valueIndex+1*t);o._setValueInRange(e),o._drag._updateTooltip(e)},o),r.showButtons){var l=h(function(t,e){this._clearTooltipTimeout(),(1===t.which||w.touch&&0===t.which)&&(n(e),this.timeout=setTimeout(h(function(){this.timer=setInterval(function(){n(e)},60)},this),200))},o);o.wrapper.find(".k-button").on(z,h(function(t){this._clearTimer(),o._focusWithMouse(t)},o)).on(R,function(e){t(e.currentTarget).addClass("k-state-hover")}).on("mouseout"+b,h(function(e){t(e.currentTarget).removeClass("k-state-hover"),this._clearTimer()},o)).eq(0).on(T,h(function(t){l(t,1)},o)).click(!1).end().eq(1).on(T,h(function(t){l(t,-1)},o)).click(c.preventDefault)}o.wrapper.find(A).off(E,!1).on(E,h(this._keydown,o)),r.enabled=!0}},disable:function(){var e=this;e.wrapper.removeClass(P).addClass(B),t(e.element).attr(X,X),e.wrapper.find(".k-button").off(T).on(T,c.preventDefault).off(z).on(z,c.preventDefault).off("mouseleave"+b).on("mouseleave"+b,c.preventDefault).off(R).on(R,c.preventDefault),e.wrapper.find(W+", "+M).off(y),e.wrapper.find(A).off(z).off(E).off(C).off(V).off(q),e.options.enabled=!1},_update:function(t){var e=this,a=e.value()!=t;e.value(t),a&&e.trigger(D,{value:e.options.value})},value:function(t){var a=this,i=a.options;return t=d(t),isNaN(t)?i.value:(t>=i.min&&i.max>=t&&i.value!=t&&(a.element.attr("value",s(t)),i.value=t,a._refreshAriaAttr(t),a._refresh()),e)},_refresh:function(){this.trigger(I,{value:this.options.value})},_refreshAriaAttr:function(t){var e,a=this,i=a._drag;e=i&&i._tooltipDiv?i._tooltipDiv.text():a._getFormattedValue(t,null),this.wrapper.find(A).attr("aria-valuenow",t).attr("aria-valuetext",e)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(t){var e=this;t.keyCode in e._keyMap&&(e._clearTooltipTimeout(),e._setValueInRange(e._keyMap[t.keyCode](e.options.value)),e._drag._updateTooltip(e.value()),t.preventDefault())},_setValueInRange:function(t){var a=this,i=a.options;return t=d(t),isNaN(t)?(a._update(i.min),e):(t=k.max(k.min(t,i.max),i.min),a._update(t),e)},_nextValueByIndex:function(t){var e=this._values.length;return this._isRtl&&(t=e-1-t),this._values[k.max(0,k.min(t,e-1))]},destroy:function(){var t=this;f.fn.destroy.call(t),t.wrapper.off(b).find(".k-button").off(b).end().find(A).off(b).end().find(W+", "+M).off(b).end(),t._drag.draggable.destroy()}});j.Selection=function(t,e,a){function i(i){var n=i-a.min,o=e._valueIndex=k.ceil(d(n/a.smallStep)),r=parseInt(e._pixelSteps[o],10),l=e._trackDiv.find(".k-slider-selection"),s=parseInt(t[e._outerSize]()/2,10),u=e._isRtl?2:0;l[e._size](e._isRtl?e._maxSelection-r:r),t.css(e._position,r-s-u)}i(a.value),e.bind([D,H,I],function(t){i(parseFloat(t.value,10))})},j.Drag=function(t,e,a,i){var n=this;n.owner=a,n.options=i,n.dragHandle=t,n.dragHandleSize=t[a._outerSize](),n.type=e,n.draggable=new _(t,{threshold:0,dragstart:h(n._dragstart,n),drag:h(n.drag,n),dragend:h(n.dragend,n),dragcancel:h(n.dragcancel,n)}),t.click(!1)},j.Drag.prototype={dragstart:function(t){this.draggable.userEvents._start(t)},_dragstart:function(t){var a=this,i=a.owner,n=a.options;return n.enabled?(i.element.off(R),a.dragHandle.addClass(F),a.dragableArea=i._getDragableArea(),a.step=k.max(n.smallStep*(i._maxSelection/i._distance),0),a.type?(a.selectionStart=n.selectionStart,a.selectionEnd=n.selectionEnd,i._setZIndex(a.type)):a.oldVal=a.val=n.value,a._removeTooltip(!0),a._createTooltip(),e):(t.preventDefault(),e)},_createTooltip:function(){var e,a=this,i=a.owner,n=a.options.tooltip,o="";n.enabled&&(n.template&&(e=a.tooltipTemplate=c.template(n.template)),t(".k-slider-tooltip").remove(),a.tooltipDiv=t("<div class='k-widget k-tooltip k-slider-tooltip'><!-- --></div>").appendTo(document.body),o=i._getFormattedValue(a.val||i.value(),a),a.type||(a.tooltipInnerDiv="<div class='k-callout k-callout-"+(i._isHorizontal?"s":"e")+"'><!-- --></div>",o+=a.tooltipInnerDiv),a.tooltipDiv.html(o),a.moveTooltip())},drag:function(t){var e,a=this,i=a.owner,n=t.x.location,o=t.y.location,r=a.dragableArea.startPoint,l=a.dragableArea.endPoint;t.preventDefault(),a.val=i._isHorizontal?i._isRtl?a.constrainValue(n,r,l,l>n):a.constrainValue(n,r,l,n>=l):a.constrainValue(o,l,r,l>=o),a.oldVal!=a.val&&(a.oldVal=a.val,a.type?("firstHandle"==a.type?a.selectionStart=a.selectionEnd>a.val?a.val:a.selectionEnd=a.val:a.val>a.selectionStart?a.selectionEnd=a.val:a.selectionStart=a.selectionEnd=a.val,e={values:[a.selectionStart,a.selectionEnd],value:[a.selectionStart,a.selectionEnd]}):e={value:a.val},i.trigger(H,e)),a._updateTooltip(a.val)},_updateTooltip:function(t){var e=this,a=e.options,i=a.tooltip,n="";i.enabled&&(e.tooltipDiv||e._createTooltip(),n=e.owner._getFormattedValue(t,e),e.type||(n+=e.tooltipInnerDiv),e.tooltipDiv.html(n),e.moveTooltip())},dragcancel:function(){return this.owner._refresh(),this._end()},dragend:function(){var t=this,e=t.owner;return t.type?e._update(t.selectionStart,t.selectionEnd):e._update(t.val),t._end()},_end:function(){var t=this,e=t.owner;return e._focusWithMouse({target:t.dragHandle[0]}),e.element.on(R),!1},_removeTooltip:function(e){var a=this,i=a.owner;a.tooltipDiv&&i.options.tooltip.enabled&&i.options.enabled&&(e?(a.tooltipDiv.remove(),a.tooltipDiv=null):a.tooltipDiv.fadeOut("slow",function(){t(this).remove(),a.tooltipDiv=null}))},moveTooltip:function(){var t,e,a,i=this,n=i.owner,o=0,r=0,l=i.dragHandle.offset(),s=4,d=i.tooltipDiv.find(".k-callout");i.type?(t=n.wrapper.find(A),e=t.eq(0).offset(),a=t.eq(1).offset(),n._isHorizontal?(o=a.top,r=e.left+(a.left-e.left)/2):(o=e.top+(a.top-e.top)/2,r=a.left)):(o=l.top,r=l.left),n._isHorizontal?(r-=parseInt((i.tooltipDiv.outerWidth()-i.dragHandle[n._outerSize]())/2,10),o-=i.tooltipDiv.outerHeight()+(d.height()||0)+s):(o-=parseInt((i.tooltipDiv.outerHeight()-i.dragHandle[n._outerSize]())/2,10),r-=i.tooltipDiv.outerWidth()+(d.width()||0)+s),i.tooltipDiv.css({top:o,left:r})},constrainValue:function(t,e,a,i){var n=this,o=0;return o=t>e&&a>t?n.owner._getValueFromPosition(t,n.dragableArea):i?n.options.max:n.options.min}},c.ui.plugin(j);var O=Z.extend({init:function(a,i){var n=this,o=t(a).find("input"),r=o.eq(0)[0],l=o.eq(1)[0];r.type="text",l.type="text",i=v({},{selectionStart:u(r,"value"),min:u(r,"min"),max:u(r,"max"),smallStep:u(r,"step")},{selectionEnd:u(l,"value"),min:u(l,"min"),max:u(l,"max"),smallStep:u(l,"step")},i),i&&i.enabled===e&&(i.enabled=!o.is("[disabled]")),Z.fn.init.call(n,a,i),i=n.options,p(i.selectionStart)||(i.selectionStart=i.min,o.eq(0).val(i.min)),p(i.selectionEnd)||(i.selectionEnd=i.max,o.eq(1).val(i.max));var s=n.wrapper.find(A);new O.Selection(s,n,i),n._firstHandleDrag=new j.Drag(s.eq(0),"firstHandle",n,i),n._lastHandleDrag=new j.Drag(s.eq(1),"lastHandle",n,i)},options:{name:"RangeSlider",leftDragHandleTitle:"drag",rightDragHandleTitle:"drag",tooltip:{format:"{0}"}},enable:function(a){var i,n=this,o=n.options;n.disable(),a!==!1&&(n.wrapper.removeClass(B).addClass(P),n.wrapper.find("input").removeAttr(X),i=function(a){var i,r=L(a),l=n._isHorizontal?r.x:r.y,s=n._getDragableArea(),d=n._getValueFromPosition(l,s),u=t(a.target);return u.hasClass("k-draghandle")?(u.addClass(F),e):(o.selectionStart>d?(n._setValueInRange(d,o.selectionEnd),n._firstHandleDrag.dragstart(a),i=0):d>n.selectionEnd?(n._setValueInRange(o.selectionStart,d),n._lastHandleDrag.dragstart(a),i=1):o.selectionEnd-d>=d-o.selectionStart?(n._setValueInRange(d,o.selectionEnd),n._firstHandleDrag.dragstart(a),i=0):(n._setValueInRange(o.selectionStart,d),n._lastHandleDrag.dragstart(a),i=1),n._focusWithMouse({target:n.wrapper.find(A)[i]}),e)},n.wrapper.find(W+", "+M).on(y,i).end().on(y,function(){t(document.documentElement).one("selectstart",c.preventDefault)}),n.wrapper.find(A).on(z,function(){n._setTooltipTimeout()}).on(C,function(t){n._focusWithMouse(t),t.preventDefault()}).on(V,h(n._focus,n)).on(q,h(n._blur,n)),n.wrapper.find(A).off(E,c.preventDefault).eq(0).on(E,h(function(t){this._keydown(t,"firstHandle")},n)).end().eq(1).on(E,h(function(t){this._keydown(t,"lastHandle")},n)),n.options.enabled=!0)},disable:function(){var t=this;t.wrapper.removeClass(P).addClass(B),t.wrapper.find("input").attr(X,X),t.wrapper.find(W+", "+M).off(y),t.wrapper.find(A).off(z).off(E).off(C).off(V).off(q),t.options.enabled=!1},_keydown:function(t,e){var a,i,n,o=this,r=o.options.selectionStart,l=o.options.selectionEnd;t.keyCode in o._keyMap&&(o._clearTooltipTimeout(),"firstHandle"==e?(n=o._activeHandleDrag=o._firstHandleDrag,r=o._keyMap[t.keyCode](r),r>l&&(l=r)):(n=o._activeHandleDrag=o._lastHandleDrag,l=o._keyMap[t.keyCode](l),r>l&&(r=l)),o._setValueInRange(r,l),a=Math.max(r,o.options.selectionStart),i=Math.min(l,o.options.selectionEnd),n.selectionEnd=Math.max(i,o.options.selectionStart),n.selectionStart=Math.min(a,o.options.selectionEnd),n._updateTooltip(o.value()[o._activeHandle]),t.preventDefault())},_update:function(t,e){var a=this,i=a.value(),n=i[0]!=t||i[1]!=e;a.value([t,e]),n&&a.trigger(D,{values:[t,e],value:[t,e]})},value:function(t){return t&&t.length?this._value(t[0],t[1]):this._value()},_value:function(t,a){var i=this,n=i.options,o=n.selectionStart,r=n.selectionEnd;return isNaN(t)&&isNaN(a)?[o,r]:(t=d(t),a=d(a),t>=n.min&&n.max>=t&&a>=n.min&&n.max>=a&&a>=t&&(o!=t||r!=a)&&(i.element.find("input").eq(0).attr("value",s(t)).end().eq(1).attr("value",s(a)),n.selectionStart=t,n.selectionEnd=a,i._refresh(),i._refreshAriaAttr(t,a)),e)},values:function(t,e){return S(t)?this._value(t[0],t[1]):this._value(t,e)},_refresh:function(){var t=this,e=t.options;t.trigger(I,{values:[e.selectionStart,e.selectionEnd],value:[e.selectionStart,e.selectionEnd]}),e.selectionStart==e.max&&e.selectionEnd==e.max&&t._setZIndex("firstHandle")},_refreshAriaAttr:function(t,e){var a,i=this,n=i.wrapper.find(A),o=i._activeHandleDrag;a=i._getFormattedValue([t,e],o),n.eq(0).attr("aria-valuenow",t),n.eq(1).attr("aria-valuenow",e),n.attr("aria-valuetext",a)},_setValueInRange:function(t,e){var a=this.options;t=k.max(k.min(t,a.max),a.min),e=k.max(k.min(e,a.max),a.min),t==a.max&&e==a.max&&this._setZIndex("firstHandle"),this._update(k.min(t,e),k.max(t,e))},_setZIndex:function(e){this.wrapper.find(A).each(function(a){t(this).css("z-index","firstHandle"==e?1-a:a)})},destroy:function(){var t=this;f.fn.destroy.call(t),t.wrapper.off(b).find(W+", "+M).off(b).end().find(A).off(b),t._firstHandleDrag.draggable.destroy(),t._lastHandleDrag.draggable.destroy()}});O.Selection=function(t,e,a){function i(i){i=i||[];var o=i[0]-a.min,r=i[1]-a.min,l=k.ceil(d(o/a.smallStep)),s=k.ceil(d(r/a.smallStep)),u=e._pixelSteps[l],p=e._pixelSteps[s],c=parseInt(t.eq(0)[e._outerSize]()/2,10),f=e._isRtl?2:0;t.eq(0).css(e._position,u-c-f).end().eq(1).css(e._position,p-c-f),n(u,p)}function n(t,a){var i,n,o=e._trackDiv.find(".k-slider-selection");i=k.abs(t-a),o[e._size](i),e._isRtl?(n=k.max(t,a),o.css("right",e._maxSelection-n-1)):(n=k.min(t,a),o.css(e._position,n-1))}i(e.value()),e.bind([D,H,I],function(t){i(t.values)})},c.ui.plugin(O)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e,n){var r=window.kendo,t=e.proxy,a="data-dir",i="asc",o="single",l="data-field",d="desc",s=".kendoSortable",c=".k-link",f="aria-sort",k=r.ui.Widget,u=k.extend({init:function(e,n){var r,a=this;k.fn.init.call(a,e,n),a._refreshHandler=t(a.refresh,a),a.dataSource=a.options.dataSource.bind("change",a._refreshHandler),r=a.element.find(c),r[0]||(r=a.element.wrapInner('<a class="k-link" href="#"/>').find(c)),a.link=r,a.element.on("click"+s,t(a._click,a))},options:{name:"Sortable",mode:o,allowUnsort:!0},destroy:function(){var e=this;k.fn.destroy.call(e),e.element.off(s),e.dataSource.unbind("change",e._refreshHandler)},refresh:function(){var n,r,t,o,s=this,c=s.dataSource.sort()||[],k=s.element,u=k.attr(l);for(k.removeAttr(a),k.removeAttr(f),n=0,r=c.length;r>n;n++)t=c[n],u==t.field&&k.attr(a,t.dir);o=k.attr(a),k.find(".k-i-arrow-n,.k-i-arrow-s").remove(),o===i?(e('<span class="k-icon k-i-arrow-n" />').appendTo(s.link),k.attr(f,"ascending")):o===d&&(e('<span class="k-icon k-i-arrow-s" />').appendTo(s.link),k.attr(f,"descending"))},_click:function(e){var r,t,s=this,c=s.element,f=c.attr(l),k=c.attr(a),u=s.options,p=s.dataSource.sort()||[];if(k=k===i?d:k===d&&u.allowUnsort?n:i,u.mode===o)p=[{field:f,dir:k}];else if("multiple"===u.mode){for(r=0,t=p.length;t>r;r++)if(p[r].field===f){p.splice(r,1);break}p.push({field:f,dir:k})}e.preventDefault(),s.dataSource.sort(p)}});r.ui.plugin(u)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e,t){function i(e){return u.test(e)}function n(e){return h.test(e)}function r(e){return!i(e)&&!n(e)}function s(t,i){return function(n,r){var s=e(n).data(w);if(1==arguments.length)return s[t];if(s[t]=r,i){var a=this.element.data("kendoSplitter");a.trigger(_)}}}function a(e){var t=this,i=e.orientation;t.owner=e,t._element=e.element,t.orientation=i,c(t,i===y?E:A),t._resizable=new o.ui.Resizable(e.element,{orientation:i,handle:".k-splitbar-draggable-"+i+"[data-marker="+e._marker+"]",hint:d(t._createHint,t),start:d(t._start,t),max:d(t._max,t),min:d(t._min,t),invalidClass:"k-restricted-size-"+i,resizeend:d(t._stop,t)})}var o=window.kendo,l=o.ui,p=o.keys,c=e.extend,d=e.proxy,g=l.Widget,h=/^\d+(\.\d+)?px$/i,u=/^\d+(\.\d+)?%$/i,f=".kendoSplitter",k="expand",v="collapse",m="contentLoad",_="resize",z="layoutChange",y="horizontal",b="vertical",x="mouseenter",P="click",w="pane",C="mouseleave",S="k-state-focused",H="k-"+w,T="."+H,D=g.extend({init:function(t,i){var n,r=this;g.fn.init.call(r,t,i),r.wrapper=r.element,n=r.options.orientation.toLowerCase()!=b,r.orientation=n?y:b,r._dimension=n?"width":"height",r._keys={decrease:n?p.LEFT:p.UP,increase:n?p.RIGHT:p.DOWN},r._resizeStep=10,r.bind(_,d(r._resize,r)),r._marker=o.guid().substring(0,8),r._initPanes(),r._resizeHandler=function(){r.trigger(_)},r._attachEvents(),e(window).on("resize",r._resizeHandler),r.resizing=new a(r),r.element.triggerHandler("init.kendoSplitter")},events:[k,v,m,_,z],_attachEvents:function(){var t=this,i=t.options.orientation,n=".k-splitbar-"+i,r=".k-splitbar-draggable-"+i,s=".k-splitbar .k-icon:not(.k-resize-handle)";t.element.on("keydown"+f,n,"_keydown").on("mousedown"+f,n,function(e){e.currentTarget.focus()}).on("focus"+f,n,function(t){e(t.currentTarget).addClass(S)}).on("blur"+f,n,function(i){e(i.currentTarget).removeClass(S),t.resizing.end()}).on(x+f,r,function(){e(this).addClass("k-splitbar-"+t.orientation+"-hover")}).on(C+f,r,function(){e(this).removeClass("k-splitbar-"+t.orientation+"-hover")}).on("mousedown"+f,r,function(){t.resizing.end(),t._panes().append("<div class='k-splitter-overlay k-overlay' />")}).on("mouseup"+f,r,function(){t._panes().children(".k-splitter-overlay").remove()}).on(x+f,s,function(){e(this).addClass("k-state-hover")}).on(C+f,s,function(){e(this).removeClass("k-state-hover")}).on(P+f,".k-splitbar .k-collapse-next, .k-splitbar .k-collapse-prev",t._arrowClick(v)).on(P+f,".k-splitbar .k-expand-next, .k-splitbar .k-expand-prev",t._arrowClick(k)).on("dblclick"+f,".k-splitbar",d(t._togglePane,t)).parent().closest(".k-splitter").each(function(){var i=e(this),n=i.data("kendoSplitter");n?n.bind(_,t._resizeHandler):i.one("init"+f,function(){e(this).data("kendoSplitter").bind(_,t._resizeHandler),t._resizeHandler()})})},options:{name:"Splitter",orientation:y},destroy:function(){var t=this;g.fn.destroy.call(t),t.element.off(f),t.resizing.destroy(),e(window).off("resize",t._resizeHandler),o.destroy(t.element)},_keydown:function(t){var i,n=this,r=t.keyCode,s=n.resizing,a=e(t.currentTarget),o=n._keys,l=r===o.increase,c=r===o.decrease;l||c?(t.ctrlKey?(i=a[c?"next":"prev"](),s.isResizing()&&s.end(),i[n._dimension]()?n._triggerAction(v,a[c?"prev":"next"]()):n._triggerAction(k,i)):s.move((c?-1:1)*n._resizeStep,a),t.preventDefault()):r===p.ENTER&&(s.end(),t.preventDefault())},_initPanes:function(){var t=this,i=t.options.panes||[];t.element.addClass("k-widget").addClass("k-splitter").children().each(function(n,r){var s=i&&i[n];r=e(r).attr("role","group").addClass(H),r.data(w,s?s:{}).toggleClass("k-scrollable",s?s.scrollable!==!1:!0),t.ajaxRequest(r)}).end(),t.trigger(_)},ajaxRequest:function(t,i,n){t=e(t);var r=this,s=t.data(w);i=i||s.contentUrl,i&&(t.append("<span class='k-icon k-loading k-pane-loading' />"),o.isLocalUrl(i)?jQuery.ajax({url:i,data:n||{},type:"GET",dataType:"html",success:function(e){t.html(e),r.trigger(m,{pane:t[0]})}}):t.removeClass("k-scrollable").html("<iframe src='"+i+"' frameborder='0' class='k-content-frame'>"+"This page requires frames in order to show content"+"</iframe>"))},_triggerAction:function(e,t){this.trigger(e,{pane:t[0]})||this[e](t[0])},_togglePane:function(t){var i,n=this,r=e(t.target);r.closest(".k-splitter")[0]==n.element[0]&&(i=r.children(".k-icon:not(.k-resize-handle)"),1===i.length&&(i.is(".k-collapse-prev")?n._triggerAction(v,r.prev()):i.is(".k-collapse-next")?n._triggerAction(v,r.next()):i.is(".k-expand-prev")?n._triggerAction(k,r.prev()):i.is(".k-expand-next")&&n._triggerAction(k,r.next())))},_arrowClick:function(t){var i=this;return function(n){var r,s=e(n.target);s.closest(".k-splitter")[0]==i.element[0]&&(r=s.is(".k-"+t+"-prev")?s.parent().prev():s.parent().next(),i._triggerAction(t,r))}},_updateSplitBar:function(e,t,i){var n=function(e,t){return t?"<div class='k-icon "+e+"' />":""},r=this.orientation,s=t.resizable!==!1&&i.resizable!==!1,a=t.collapsible,o=t.collapsed,l=i.collapsible,p=i.collapsed;e.addClass("k-splitbar k-state-default k-splitbar-"+r).attr("role","separator").attr("aria-expanded",!(o||p)).removeClass("k-splitbar-"+r+"-hover").toggleClass("k-splitbar-draggable-"+r,s&&!o&&!p).toggleClass("k-splitbar-static-"+r,!s&&!a&&!l).html(n("k-collapse-prev",a&&!o&&!p)+n("k-expand-prev",a&&o&&!p)+n("k-resize-handle",s)+n("k-collapse-next",l&&!p&&!o)+n("k-expand-next",l&&p&&!o))},_updateSplitBars:function(){var t=this;this.element.children(".k-splitbar").each(function(){var i=e(this),n=i.prev(T).data(w),r=i.next(T).data(w);r&&t._updateSplitBar(i,n,r)})},_panes:function(){return this.element.children(T)},_resize:function(){var n=this,s=n.element,a=s.children(":not(.k-splitbar)"),o=n.orientation==y,l=s.children(".k-splitbar"),p=l.length,c=o?"width":"height",d=s[c]();0===p?(p=a.length-1,a.slice(0,p).after("<div tabindex='0' class='k-splitbar' data-marker='"+n._marker+"' />"),n._updateSplitBars(),l=s.children(".k-splitbar")):n._updateSplitBars(),l.each(function(){d-=this[o?"offsetWidth":"offsetHeight"]});var g=0,h=0,u=e();a.css({position:"absolute",top:0})[c](function(){var n,s=e(this).data(w)||{};if(s.collapsed)n=0,e(this).css("overflow","hidden");else{if(r(s.size))return u=u.add(this),t;n=parseInt(s.size,10),i(s.size)&&(n=Math.floor(n*d/100))}return h++,g+=n,n}),d-=g;var f=u.length,k=Math.floor(d/f);u.slice(0,f-1).css(c,k).end().eq(f-1).css(c,d-(f-1)*k);var v=0,m=o?"height":"width",_=o?"left":"top",b=o?"offsetWidth":"offsetHeight";if(0===f){var x=a.filter(function(){return!(e(this).data(w)||{}).collapsed}).last();x[c](d+x[0][b])}s.children().css(m,s[m]()).each(function(e,t){t.style[_]=Math.floor(v)+"px",v+=t[b]}),n.trigger(z)},toggle:function(i,n){var r;i=e(i),r=i.data(w),(n||r.collapsible)&&(1==arguments.length&&(n=r.collapsed===t?!1:r.collapsed),r.collapsed=!n,r.collapsed?i.css("overflow","hidden"):i.css("overflow",""),this.trigger(_),this.resizing.destroy(),this.resizing=new a(this))},collapse:function(e){this.toggle(e,!1)},expand:function(e){this.toggle(e,!0)},size:s("size",!0),min:s("min"),max:s("max")});l.plugin(D);var A={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},E={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};a.prototype={press:function(e){this._resizable.press(e)},move:function(e,t){this._resizable.target||this._resizable.press(t),this._resizable.move(e)},end:function(){this._resizable.end()},destroy:function(){this._resizable.destroy()},isResizing:function(){return this._resizable.resizing},_createHint:function(t){var i=this;return e("<div class='k-ghost-splitbar k-ghost-splitbar-"+i.orientation+" k-state-default' />").css(i.alternateSizingProperty,t[i.alternateSizingProperty]())},_start:function(t){var i=this,r=e(t.currentTarget),s=r.prev(),a=r.next(),o=s.data(w),l=a.data(w),p=parseInt(s[0].style[i.positioningProperty],10),c=parseInt(a[0].style[i.positioningProperty],10)+a[0][i.sizingDomProperty]-r[0][i.sizingDomProperty],d=i._element.css(i.sizingProperty),g=function(e){var t=parseInt(e,10);return(n(e)?t:d*t/100)||0},h=g(o.min),u=g(o.max)||c-p,f=g(l.min),k=g(l.max)||c-p;i.previousPane=s,i.nextPane=a,i._maxPosition=Math.min(c-f,p+u),i._minPosition=Math.max(p+h,c-k)},_max:function(){return this._maxPosition},_min:function(){return this._minPosition},_stop:function(t){var i=this,n=e(t.currentTarget),s=i.owner;if(s._panes().children(".k-splitter-overlay").remove(),t.keyCode!==o.keys.ESC){var a=t.position,l=n.prev(),p=n.next(),c=l.data(w),d=p.data(w),g=a-parseInt(l[0].style[i.positioningProperty],10),h=parseInt(p[0].style[i.positioningProperty],10)+p[0][i.sizingDomProperty]-a-n[0][i.sizingDomProperty],u=i._element.children(T).filter(function(){return r(e(this).data(w).size)}).length;(!r(c.size)||u>1)&&(r(c.size)&&u--,c.size=g+"px"),(!r(d.size)||u>1)&&(d.size=h+"px"),s.trigger(_)}return setTimeout(function(){i.press(n)}),!1}}})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function M(a){var b=a.children(".k-item");b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(o),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(o)}function L(b){b.children(l).addClass(s),b.children("a").addClass(n).children(l).addClass(s),b.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(F),b.filter("li[disabled]").addClass(E).removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(G+" "+I),b.each(function(){var b=a(this);b.children("."+n).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!g(this.nodeValue))}).wrapAll("<a class='"+n+"'/>")})}var c=window.kendo,d=c.ui,e=a.map,f=a.each,g=a.trim,h=a.extend,i=c.template,j=d.Widget,k=/^(a|div)$/i,l="img",m="href",n="k-link",o="k-last",p="click",q="error",r=":empty",s="k-image",t="k-first",u="select",v="activate",w="k-content",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-tabstrip-items > .k-item:not(.k-state-disabled)",C=".k-tabstrip-items > .k-item:not(.k-state-disabled):not(.k-state-active)",D=".k-tabstrip-items > .k-state-disabled .k-link",E="k-state-disabled",F="k-state-default",G="k-state-active",H="k-state-hover",I="k-tab-on-top",J={content:i("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),itemWrapper:i("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},K={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},contentAttributes:function(a){return a.active!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},N=j.extend({init:function(b,d){var e=this;e._animations(d),j.fn.init.call(e,b,d),e.element.is("ul")?e.wrapper=e.element.wrapAll("<div />").parent():e.wrapper=e.element,d=e.options,e.wrapper.delegate(B,p,a.proxy(e._click,e)).delegate(C,y+" "+z,e._toggleHover).delegate(D,p,!1),e._updateClasses(),e._dataSource(),d.dataSource&&e.dataSource.fetch(),e.options.contentUrls&&e.wrapper.find(".k-tabstrip-items > .k-item").each(function(b,c){a(c).find(">."+n).data(x,e.options.contentUrls[b])});var f=e.wrapper.find("li."+G),g=a(e.contentElement(f.parent().children().index(f)));g.length>0&&g[0].childNodes.length===0&&e.activateTab(f.eq(0)),c.notify(e)},_dataSource:function(){var b=this;b.dataSource&&b._refreshHandler?b.dataSource.unbind("change",b._refreshHandler):b._refreshHandler=a.proxy(b.refresh,b),b.dataSource=c.data.DataSource.create(b.options.dataSource).bind("change",b._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),a.fetch()},_animations:function(a){a&&"animation"in a&&!a.animation&&(a.animation={open:{effects:{},show:!0},close:{effects:{}}})},refresh:function(a){var b=this,d=b.options,e=c.getter(d.dataTextField),f=c.getter(d.dataContentField),g=c.getter(d.dataContentUrlField),h=c.getter(d.dataImageUrlField),i=c.getter(d.dataUrlField),j=c.getter(d.dataSpriteCssClass),k,l=[],m,n,o=b.dataSource.view(),p;a=a||{},n=a.action,n&&(o=a.items);for(k=0,p=o.length;k<p;k++)m={text:e(o[k])},d.dataContentField&&(m.content=f(o[k])),d.dataContentUrlField&&(m.contentUrl=g(o[k])),d.dataUrlField&&(m.url=i(o[k])),d.dataImageUrlField&&(m.imageUrl=h(o[k])),d.dataSpriteCssClass&&(m.spriteCssClass=j(o[k])),l[k]=m;if(a.action=="add")a.index<b.tabGroup.children().length?b.insertBefore(l,b.tabGroup.children().eq(a.index)):b.append(l);else if(a.action=="remove")for(k=0;k<o.length;k++)b.remove(a.index);else a.action=="itemchange"?(k=b.dataSource.view().indexOf(o[0]),a.field===d.dataTextField&&b.tabGroup.children().eq(k).find(".k-link").text(o[0].get(a.field))):(b.trigger("dataBinding"),b.append(l),b.trigger("dataBound"))},value:function(c){var d=this;if(c!==b)c!=d.value()&&d.tabGroup.children().each(function(){a.trim(a(this).text())==c&&d.select(this)});else return d.select().text()},items:function(){return this.tabGroup[0].children},setOptions:function(a){var b=this.options.animation;this._animations(a),a.animation=h(!0,b,a.animation),j.fn.setOptions.call(this,a)},events:[u,v,q,A,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200,show:!0},close:{duration:200}},collapsible:!1},select:function(b){var c=this;if(arguments.length===0)return c.wrapper.find("li."+G);isNaN(b)||(b=c.tabGroup.children().get(b)),b=c.element.find(b),a(b).each(function(b,d){d=a(d),!d.hasClass(G)&&!c.trigger(u,{item:d[0],contentElement:c.contentElement(d.index())})&&c.activateTab(d)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},reload:function(b){b=this.tabGroup.find(b);var c=this;b.each(function(){var b=a(this),d=b.find("."+n).data(x);d&&c.ajaxRequest(b,a(c.contentElement(b.index())),null,d)});return c},append:function(a){var b=this,c=b._create(a);f(c.tabs,function(a){b.tabGroup.append(this),b.wrapper.append(c.contents[a])}),M(b.tabGroup),b._updateContentElements();return b},insertBefore:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.before(this),g.before(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},insertAfter:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.after(this),g.after(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},remove:function(b){var c=this,d=typeof b,e;d==="string"?b=c.tabGroup.find(b):d==="number"&&(b=c.tabGroup.children().eq(b)),e=a(c.contentElement(b.index())),e.remove(),b.remove(),c._updateContentElements();return c},_create:function(b){var c=a.isPlainObject(b),d=this,f,g;c||a.isArray(b)?(b=a.isArray(b)?b:[b],f=e(b,function(b,c){return a(N.renderItem({group:d.tabGroup,item:h(b,{index:c})}))}),g=e(b,function(b,c){if(b.content||b.contentUrl)return a(N.renderContent({item:h(b,{index:c})}))})):(f=a(b),g=a("<div class='"+w+"'/>"),L(f));return{tabs:f,contents:g}},_toggleDisabled:function(b,c){b=this.tabGroup.find(b),b.each(function(){a(this).toggleClass(F,c).toggleClass(E,!c)})},_updateClasses:function(){var c=this,d,e,f;c.wrapper.addClass("k-widget k-header k-tabstrip"),c.tabGroup=c.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),c.tabGroup[0]||(c.tabGroup=a("<ul class='k-tabstrip-items k-reset'/>").appendTo(c.wrapper)),d=c.tabGroup.find("li").addClass("k-item"),d.length&&(e=d.filter("."+G).index(),f=e>=0?e:b,c.tabGroup.contents().filter(function(){return this.nodeType==3&&!g(this.nodeValue)}).remove()),d.eq(e).addClass(I),c.contentElements=c.wrapper.children("div"),c.contentElements.addClass(w).eq(f).addClass(G).css({display:"block"}),d.length&&(L(d),M(c.tabGroup),c._updateContentElements())},_updateContentElements:function(){var b=this,d=b.options.contentUrls||[],e=b.element.attr("id"),f=b.wrapper.children("div");b.tabGroup.find(".k-item").each(function(c){var g=f.eq(c),h=e+"-"+(c+1);!g.length&&d[c]?a("<div id='"+h+"' class='"+w+"'/>").appendTo(b.wrapper):g.attr("id",h)}),b.contentElements=b.contentAnimators=b.wrapper.children("div"),c.support.touch&&c.mobile.ui.Scroller&&(c.touchScroller(b.contentElements),b.contentElements=b.contentElements.children(".km-scroll-container"))},_toggleHover:function(b){a(b.currentTarget).toggleClass(H,b.type==y)},_click:function(b){var c=this,d=a(b.currentTarget),e=d.find("."+n),f=e.attr(m),g=c.options.collapsible,h=a(c.contentElement(d.index()));if(d.closest(".k-widget")[0]==c.wrapper[0]){if(d.is("."+E+(g?"":",."+G))){b.preventDefault();return}if(c.tabGroup.children("[data-animating], [data-in-request]").length)return;if(c.trigger(u,{item:d[0],contentElement:h[0]}))b.preventDefault();else{var i=e.data(x)||f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+c.element[0].id+"-")!=-1);if(!f||i)b.preventDefault();else return;if(g&&d.is("."+G)){c.deactivateTab(d),b.preventDefault();return}c.activateTab(d)&&b.preventDefault()}}},deactivateTab:function(a){var b=this,d=b.options.animation,e=d.open,f=h({},d.close),g=f&&"effects"in f;a=b.tabGroup.find(a),f=h(g?f:h({reverse:!0},e),{show:!1,hide:!0}),c.size(e.effects)?(a.kendoAddClass(F,{duration:e.duration}),a.kendoRemoveClass(G,{duration:e.duration})):(a.addClass(F),a.removeClass(G)),b.contentAnimators.filter("."+G).kendoStop(!0,!0).kendoAnimate(f).removeClass(G)},activateTab:function(b){b=this.tabGroup.find(b);var d=this,e=d.options.animation,f=e.open,g=h({},e.close),i=g&&"effects"in g,j=b.parent().children(),k=j.filter("."+G),l=j.index(b);g=h(i?g:h({reverse:!0},f),{show:!1,hide:!0}),c.size(f.effects)?(k.kendoRemoveClass(G,{duration:g.duration}),b.kendoRemoveClass(H,{duration:g.duration})):(k.removeClass(G),b.removeClass(H));var m=d.contentAnimators;if(m.length===0){k.removeClass(I),b.addClass(I).css("z-index"),b.addClass(G),d.trigger("change");return!1}var o=m.filter("."+G),p=a(d.contentElement(l));if(p.length===0){o.removeClass(G).kendoStop(!0,!0).kendoAnimate(g);return!1}b.attr("data-animating",!0);var q=(b.children("."+n).data(x)||!1)&&p.is(r),s=function(){k.removeClass(I),b.addClass(I).css("z-index"),c.size(f.effects)?(k.kendoAddClass(F,{duration:f.duration}),b.kendoAddClass(G,{duration:f.duration})):(k.addClass(F),b.addClass(G)),p.closest(".k-content").addClass(G).kendoStop(!0,!0).kendoAnimate(h({init:function(){d.trigger(v,{item:b[0],contentElement:p[0]})}},f,{complete:function(){b.removeAttr("data-animating")}}))},t=function(){q?d.ajaxRequest(b,p,function(){s(),d.trigger("change")}):(s(),d.trigger("change"))};o.removeClass(G),o.length?o.kendoStop(!0,!0).kendoAnimate(h({complete:t},g)):t();return!0},contentElement:function(a){if(!isNaN(a-0)){var b=this.contentElements,c=new RegExp("-"+(a+1)+"$");for(var d=0,e=b.length;d<e;d++)if(c.test(b.closest(".k-content")[d].id))return b[d]}},ajaxRequest:function(b,c,d,e){b=this.tabGroup.find(b);if(!b.find(".k-loading").length){var f=this,g=b.find("."+n),h={},i=null,j=setTimeout(function(){i=a("<span class='k-icon k-loading'/>").prependTo(g)},100);b.attr("data-in-request",!0),a.ajax({type:"GET",cache:!1,url:e||g.data(x)||g.attr(m),dataType:"html",data:h,error:function(a,c){b.removeAttr("data-animating"),f.trigger("error",{xhr:a,status:c})&&this.complete()},complete:function(){b.removeAttr("data-in-request"),clearTimeout(j),i!==null&&i.remove()},success:function(a,e){c.html(a),d&&d.call(f,c),f.trigger(A,{item:b[0],contentElement:c[0]})}})}}});h(N,{renderItem:function(a){a=h({tabStrip:{},group:{}},a);var b=J.empty,c=a.item;return J.item(h(a,{image:c.imageUrl?J.image:b,sprite:c.spriteCssClass?J.sprite:b,itemWrapper:J.itemWrapper},K))},renderContent:function(a){return J.content(h(a,K))}}),c.ui.plugin(N)})(jQuery);
|
11
|
+
(function(t,e){function n(e){e.children(h).addClass(E),e.children("a").addClass(b).children(h).addClass(E),e.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(q),e.filter("li[disabled]").addClass(I).removeAttr("disabled"),e.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(R+" "+H),e.attr("role","tab"),e.filter("."+R).attr("aria-selected",!0),e.each(function(){var e=t(this);e.children("."+b).length||e.contents().filter(function(){return!(this.nodeName.match(f)||3==this.nodeType&&!d(this.nodeValue))}).wrapAll("<a class='"+b+"'/>")})}function a(t){var e=t.children(".k-item");e.filter(".k-first:not(:first-child)").removeClass(A),e.filter(".k-last:not(:last-child)").removeClass(k),e.filter(":first-child").addClass(A),e.filter(":last-child").addClass(k)}var i=window.kendo,r=i.ui,s=i.keys,o=t.map,l=t.each,d=t.trim,c=t.extend,u=i.template,p=r.Widget,f=/^(a|div)$/i,m=".kendoTabStrip",h="img",g="href",v="prev",b="k-link",k="k-last",C="click",_="error",x=":empty",E="k-image",A="k-first",G="select",w="activate",S="k-content",y="contentUrl",T="mouseenter",U="mouseleave",F="contentLoad",I="k-state-disabled",q="k-state-default",R="k-state-active",D="k-state-focused",N="k-state-hover",H="k-tab-on-top",B=".k-item:not(."+I+")",O=".k-tabstrip-items > "+B,j=".k-tabstrip-items > "+B+":not(."+R+")",W=".k-tabstrip-items > .k-state-disabled .k-link",z={content:u("<div class='k-content'#= contentAttributes(data) # role='tabpanel'>#= content(item) #</div>"),itemWrapper:u("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:u("<li class='#= wrapperCssClass(group, item) #' role='tab' #=item.active ? \"aria-selected='true'\" : ''#>#= itemWrapper(data) #</li>"),image:u("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:u("<span class='k-sprite #= spriteCssClass #'></span>"),empty:u("")},P={wrapperCssClass:function(t,e){var n="k-item",a=e.index;return n+=e.enabled===!1?" k-state-disabled":" k-state-default",0===a&&(n+=" k-first"),a==t.length-1&&(n+=" k-last"),n},textAttributes:function(t){return t.url?" href='"+t.url+"'":""},text:function(t){return t.encoded===!1?t.text:i.htmlEncode(t.text)},tag:function(t){return t.url?"a":"span"},contentAttributes:function(t){return t.active!==!0?" style='display:none' aria-hidden='true' aria-expanded='false'":""},content:function(t){return t.content?t.content:t.contentUrl?"":" "},contentUrl:function(t){return t.contentUrl?i.attr("content-url")+'="'+t.contentUrl+'"':""}},L=p.extend({init:function(e,n){var a=this;p.fn.init.call(a,e,n),a._animations(a.options),a.wrapper=a.element.is("ul")?a.element.wrapAll("<div />").parent():a.element,n=a.options,a.wrapper.on(C+m,W,!1).on("touchend"+m+" click"+m,O,function(e){a._click(t(e.currentTarget))&&e.preventDefault()}).on(T+m+" "+U+m,j,a._toggleHover).on("keydown"+m,t.proxy(a._keydown,a)).on("focus"+m,t.proxy(a._active,a)).on("blur"+m,function(){a._current(null)}),a._isRtl=i.support.isRtl(a.wrapper),a._tabindex(),a._updateClasses(),a._dataSource(),n.dataSource&&a.dataSource.fetch(),a.options.contentUrls&&a.wrapper.find(".k-tabstrip-items > .k-item").each(function(e,n){t(n).find(">."+b).data(y,a.options.contentUrls[e])});var r=a.wrapper.find("li."+R),s=t(a.contentElement(r.parent().children().index(r)));s.length>0&&0===s[0].childNodes.length&&a.activateTab(r.eq(0)),a.element.attr("role","tablist"),a.element[0].id&&(a._ariaId=a.element[0].id+"_ts_active"),i.notify(a)},_active:function(){var t=this.tabGroup.children().filter("."+R);this._current(t[0]?t:this._endItem("first"))},_endItem:function(t){return this.tabGroup.children(B)[t]()},_item:function(t,e){var n;return n=e===v?"last":"first",t?(t=t[e](),t[0]||(t=this._endItem(n)),t.hasClass(I)&&(t=this._item(t,e)),t):this._endItem(n)},_current:function(t){var n=this,a=n._focused,i=n._ariaId;return t===e?a:(a&&(a.removeClass(D),a.removeAttr("id")),t&&(t.hasClass(R)||t.addClass(D),n.element.removeAttr("aria-activedescendant"),i&&(t.attr("id",i),n.element.attr("aria-activedescendant",i))),n._focused=t,e)},_keydown:function(t){var n,a=this,i=t.keyCode,r=a._current(),o=a._isRtl;if(t.target==t.currentTarget){if(i==s.DOWN||i==s.RIGHT)n=o?v:"next";else if(i==s.UP||i==s.LEFT)n=o?"next":v;else if(i==s.ENTER||i==s.SPACEBAR)a._click(r),t.preventDefault();else{if(i==s.HOME)return a._click(a._endItem("first")),t.preventDefault(),e;if(i==s.END)return a._click(a._endItem("last")),t.preventDefault(),e}n&&(a._click(a._item(r,n)),t.preventDefault())}},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e.dataSource.unbind("change",e._refreshHandler):e._refreshHandler=t.proxy(e.refresh,e),e.dataSource=i.data.DataSource.create(e.options.dataSource).bind("change",e._refreshHandler)},setDataSource:function(t){this.options.dataSource=t,this._dataSource(),t.fetch()},_animations:function(t){t&&"animation"in t&&!t.animation&&(t.animation={open:{effects:{}},close:{effects:{}}})},refresh:function(t){var e,n,a,r,s=this,o=s.options,l=i.getter(o.dataTextField),d=i.getter(o.dataContentField),c=i.getter(o.dataContentUrlField),u=i.getter(o.dataImageUrlField),p=i.getter(o.dataUrlField),f=i.getter(o.dataSpriteCssClass),m=[],h=s.dataSource.view();for(t=t||{},a=t.action,a&&(h=t.items),e=0,r=h.length;r>e;e++)n={text:l(h[e])},o.dataContentField&&(n.content=d(h[e])),o.dataContentUrlField&&(n.contentUrl=c(h[e])),o.dataUrlField&&(n.url=p(h[e])),o.dataImageUrlField&&(n.imageUrl=u(h[e])),o.dataSpriteCssClass&&(n.spriteCssClass=f(h[e])),m[e]=n;if("add"==t.action)s.tabGroup.children().length>t.index?s.insertBefore(m,s.tabGroup.children().eq(t.index)):s.append(m);else if("remove"==t.action)for(e=0;h.length>e;e++)s.remove(t.index);else"itemchange"==t.action?(e=s.dataSource.view().indexOf(h[0]),t.field===o.dataTextField&&s.tabGroup.children().eq(e).find(".k-link").text(h[0].get(t.field))):(s.trigger("dataBinding"),s.remove("li"),s.append(m),s.trigger("dataBound"))},value:function(n){var a=this;return n===e?a.select().text():(n!=a.value()&&a.tabGroup.children().each(function(){t.trim(t(this).text())==n&&a.select(this)}),e)},items:function(){return this.tabGroup[0].children},setOptions:function(t){var e=this.options.animation;this._animations(t),t.animation=c(!0,e,t.animation),p.fn.setOptions.call(this,t)},events:[G,w,_,F,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200},close:{duration:200}},collapsible:!1},destroy:function(){var t=this;p.fn.destroy.call(t),t._refreshHandler&&t.dataSource.unbind("change",t._refreshHandler),t.wrapper.off(m),i.destroy(t.wrapper)},select:function(e){var n=this;return 0===arguments.length?n.tabGroup.find("li."+R):(isNaN(e)||(e=n.tabGroup.children().get(e)),e=n.tabGroup.find(e),t(e).each(function(e,a){a=t(a),a.hasClass(R)||n.trigger(G,{item:a[0],contentElement:n.contentElement(a.index())})||n.activateTab(a)}),n)},enable:function(t,e){return this._toggleDisabled(t,e!==!1),this},disable:function(t){return this._toggleDisabled(t,!1),this},reload:function(e){e=this.tabGroup.find(e);var n=this;return e.each(function(){var e=t(this),a=e.find("."+b).data(y),i=t(n.contentElement(e.index()));a&&n.ajaxRequest(e,i,null,a)}),n},append:function(t){var e=this,n=e._create(t);return l(n.tabs,function(t){e.tabGroup.append(this),e.wrapper.append(n.contents[t])}),a(e.tabGroup),e._updateContentElements(),e},insertBefore:function(e,n){var i=this,r=i._create(e),s=t(i.contentElement(n.index()));return l(r.tabs,function(t){n.before(this),s.before(r.contents[t])}),a(i.tabGroup),i._updateContentElements(),i},insertAfter:function(e,n){var i=this,r=i._create(e),s=t(i.contentElement(n.index()));return l(r.tabs,function(t){n.after(this),s.after(r.contents[t])}),a(i.tabGroup),i._updateContentElements(),i},remove:function(e){var n=this,a=typeof e,i=t();return"string"===a?e=n.tabGroup.find(e):"number"===a&&(e=n.tabGroup.children().eq(e)),e.each(function(){i.push(n.contentElement(t(this).index()))}),e.remove(),i.remove(),n._updateContentElements(),n},_create:function(a){var i,r,s=t.isPlainObject(a),l=this;return s||t.isArray(a)?(a=t.isArray(a)?a:[a],i=o(a,function(e,n){return t(L.renderItem({group:l.tabGroup,item:c(e,{index:n})}))}),r=o(a,function(n,a){return n.content||n.contentUrl?t(L.renderContent({item:c(n,{index:a})})):e})):(i=t(a),r=t("<div class='"+S+"'/>"),n(i)),{tabs:i,contents:r}},_toggleDisabled:function(e,n){e=this.tabGroup.find(e),e.each(function(){t(this).toggleClass(q,n).toggleClass(I,!n)})},_updateClasses:function(){var i,r,s,o=this;o.wrapper.addClass("k-widget k-header k-tabstrip"),o.tabGroup=o.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),o.tabGroup[0]||(o.tabGroup=t("<ul class='k-tabstrip-items k-reset'/>").appendTo(o.wrapper)),i=o.tabGroup.find("li").addClass("k-item"),i.length&&(r=i.filter("."+R).index(),s=r>=0?r:e,o.tabGroup.contents().filter(function(){return 3==this.nodeType&&!d(this.nodeValue)}).remove()),i.eq(r).addClass(H),o.contentElements=o.wrapper.children("div"),o.contentElements.addClass(S).eq(s).addClass(R).css({display:"block"}),i.length&&(n(i),a(o.tabGroup),o._updateContentElements())},_updateContentElements:function(){var e=this,n=e.options.contentUrls||[],a=e.element.attr("id"),r=e.wrapper.children("div");e.tabGroup.find(".k-item").each(function(i){var s=r.eq(i),o=a+"-"+(i+1);this.setAttribute("aria-controls",o),!s.length&&n[i]?t("<div id='"+o+"' class='"+S+"'/>").appendTo(e.wrapper):s.attr("id",o),s.attr("role","tabpanel"),s.filter(":not(."+R+")").attr("aria-hidden",!0).attr("aria-expanded",!1),s.filter("."+R).attr("aria-expanded",!0)}),e.contentElements=e.contentAnimators=e.wrapper.children("div"),i.kineticScrollNeeded&&i.mobile.ui.Scroller&&(i.touchScroller(e.contentElements),e.contentElements=e.contentElements.children(".km-scroll-container"))},_toggleHover:function(e){t(e.currentTarget).toggleClass(N,e.type==T)},_click:function(e){var n,a,i=this,r=e.find("."+b),s=r.attr(g),o=i.options.collapsible,l=t(i.contentElement(e.index()));if(e.closest(".k-widget")[0]==i.wrapper[0]){if(e.is("."+I+(o?"":",."+R)))return!0;if(!i.tabGroup.children("[data-animating], [data-in-request]").length){if(i.trigger(G,{item:e[0],contentElement:l[0]}))return!0;if(a=r.data(y)||s&&("#"==s.charAt(s.length-1)||-1!=s.indexOf("#"+i.element[0].id+"-")),!s||a)return n=!0,o&&e.is("."+R)?(i.deactivateTab(e),!0):(i.activateTab(e)&&(n=!0),n)}}},deactivateTab:function(t){var e=this,n=e.options.animation,a=n.open,r=c({},n.close),s=r&&"effects"in r;t=e.tabGroup.find(t),r=c(s?r:c({reverse:!0},a),{hide:!0}),i.size(a.effects)?(t.kendoAddClass(q,{duration:a.duration}),t.kendoRemoveClass(R,{duration:a.duration})):(t.addClass(q),t.removeClass(R)),t.removeAttr("aria-selected"),e.contentAnimators.filter("."+R).kendoStop(!0,!0).kendoAnimate(r).removeClass(R).attr("aria-hidden",!0)},activateTab:function(e){e=this.tabGroup.find(e);var n=this,a=n.options.animation,r=a.open,s=c({},a.close),o=s&&"effects"in s,l=e.parent().children(),d=l.filter("."+R),u=l.index(e);s=c(o?s:c({reverse:!0},r),{hide:!0}),i.size(r.effects)?(d.kendoRemoveClass(R,{duration:s.duration}),e.kendoRemoveClass(N,{duration:s.duration})):(d.removeClass(R),e.removeClass(N));var p=n.contentAnimators;if(0===p.length)return d.removeClass(H),e.addClass(H).css("z-index"),e.addClass(R),n._current(e),n.trigger("change"),!1;var f=p.filter("."+R),m=t(n.contentElement(u));if(0===m.length)return f.removeClass(R).attr("aria-hidden",!0).kendoStop(!0,!0).kendoAnimate(s),!1;e.attr("data-animating",!0);var h=(e.children("."+b).data(y)||!1)&&m.is(x),g=function(){d.removeClass(H),e.addClass(H).css("z-index"),i.size(r.effects)?(d.kendoAddClass(q,{duration:r.duration}),e.kendoAddClass(R,{duration:r.duration})):(d.addClass(q),e.addClass(R)),d.removeAttr("aria-selected"),e.attr("aria-selected",!0),n._current(e),m.closest(".k-content").addClass(R).removeAttr("aria-hidden").kendoStop(!0,!0).attr("aria-expanded",!0).kendoAnimate(c({init:function(){n.trigger(w,{item:e[0],contentElement:m[0]})}},r,{complete:function(){e.removeAttr("data-animating")}}))},v=function(){h?n.ajaxRequest(e,m,function(){g(),n.trigger("change")}):(g(),n.trigger("change"))};return f.removeClass(R),f.attr("aria-hidden",!0),f.attr("aria-expanded",!1),f.length?f.kendoStop(!0,!0).kendoAnimate(c({complete:v},s)):v(),!0},contentElement:function(t){if(isNaN(t-0))return e;var n=this.contentElements&&this.contentElements[0]&&!i.kineticScrollNeeded?this.contentElements:this.contentAnimators,a=RegExp("-"+(t+1)+"$");if(n)for(var r=0,s=n.length;s>r;r++)if(a.test(n.closest(".k-content")[r].id))return n[r];return e},ajaxRequest:function(e,n,a,i){if(e=this.tabGroup.find(e),!e.find(".k-loading").length){var r=this,s=e.find("."+b),o={},l=null,d=setTimeout(function(){l=t("<span class='k-icon k-loading'/>").prependTo(s)},100);e.attr("data-in-request",!0),t.ajax({type:"GET",cache:!1,url:i||s.data(y)||s.attr(g),dataType:"html",data:o,error:function(t,n){e.removeAttr("data-animating"),r.trigger("error",{xhr:t,status:n})&&this.complete()},complete:function(){e.removeAttr("data-in-request"),clearTimeout(d),null!==l&&l.remove()},success:function(t){n.html(t),a&&a.call(r,n),r.trigger(F,{item:e[0],contentElement:n[0]})}})}}});c(L,{renderItem:function(t){t=c({tabStrip:{},group:{}},t);var e=z.empty,n=t.item;return z.item(c(t,{image:n.imageUrl?z.image:e,sprite:n.spriteCssClass?z.sprite:e,itemWrapper:z.itemWrapper},P))},renderContent:function(t){return z.content(c(t,P))}}),i.ui.plugin(L)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(e,t){function n(e,t,n){var i,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-o,e.setTime(e.getTime()+i*D))}function i(){var e=new N,t=new N(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=new N(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);return-1*(t.getTimezoneOffset()-n.getTimezoneOffset())}function o(e){return 60*e.getHours()*D+e.getMinutes()*D+1e3*e.getSeconds()+e.getMilliseconds()}function r(e,t,n){var i,r=o(t),a=o(n);return e&&r!=a?(i=o(e),r>i&&(i+=V),r>a&&(a+=V),i>=r&&a>=i):!0}function a(e){var t=e.parseFormats;e.format=c(e.format||l.getCulture(e.culture).calendars.standard.patterns.t),t=O(t)?t:[t],t.splice(0,0,e.format),e.parseFormats=t}function s(e){e.preventDefault()}var l=window.kendo,u=l.keys,c=l._extractFormat,p=l.ui,f=p.Widget,d="open",m="close",h="change",v=".kendoTimePicker",g="touchend"+v+" click"+v,_="k-state-default",w="disabled",k="li",x="<span/>",y="k-state-focused",C="k-state-hover",b="mouseenter"+v+" mouseleave"+v,T="mousedown"+v,D=6e4,V=864e5,H="k-state-selected",M="k-state-disabled",S="aria-selected",F="aria-expanded",W="aria-hidden",A="aria-activedescendant",I="id",O=e.isArray,B=e.extend,E=e.proxy,N=Date,P=new N;P=new N(P.getFullYear(),P.getMonth(),P.getDate(),0,0,0);var z=function(t){var n=this,i=t.id;n.options=t,n.ul=e('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:l.support.kineticScrollNeeded?"":"auto"}).on(g,k,E(n._click,n)).on("mouseenter"+v,k,function(){e(this).addClass(C)}).on("mouseleave"+v,k,function(){e(this).removeClass(C)}),n.list=e("<div class='k-list-container'/>").append(n.ul).on(T,s),i&&(n._timeViewID=i+"_timeview",n._optionID=i+"_option_selected",n.ul.attr(I,n._timeViewID)),n._popup(),n.template=l.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};z.prototype={current:function(n){var i=this,o=i.options.active;return n===t?i._current:(i._current&&i._current.removeClass(H).removeAttr(S).removeAttr(I),n&&(n=e(n).addClass(H).attr(I,i._optionID).attr(S,!0),i.scroll(n[0])),i._current=n,o&&o(n),t)},close:function(){this.popup.close()},destroy:function(){var e=this;e.ul.off(v),e.list.off(v),e.popup.destroy()},open:function(){var e=this;e.ul[0].firstChild||e.bind(),e.popup.open(),e._current&&e.scroll(e._current[0])},dataBind:function(e){for(var t,n=this,i=n.options,o=i.format,a=l.toString,s=n.template,u=e.length,c=0,p="";u>c;c++)t=e[c],r(t,i.min,i.max)&&(p+=s(a(t,o,i.culture)));n._html(p,u)},refresh:function(){var e,t=this,r=t.options,a=r.format,s=i(),u=0>s,c=r.min,p=r.max,f=o(c),d=o(p),m=r.interval*D,h=l.toString,v=t.template,g=new N(+c),_=0,w="";for(e=u?(V+s*D)/m:V/m,f!=d&&(f>d&&(d+=V),e=(d-f)/m+1);e>_;_++)_&&n(g,m,u),d&&o(g)>d&&(g=new N(+p)),w+=v(h(g,a,r.culture));t._html(w,e)},bind:function(){var e=this,t=e.options.dates;t&&t[0]?e.dataBind(t):e.refresh()},_html:function(e,t){var n=this;n.ul[0].innerHTML=e,n._height(t),n.current(null),n.select(n._value)},scroll:function(e){if(e){var t=this.ul[0],n=e.offsetTop,i=e.offsetHeight,o=t.scrollTop,r=t.clientHeight,a=n+i;t.scrollTop=o>n?n:a>o+r?a-r:o}},select:function(t){var n=this,i=n.options,o=n._current;t instanceof Date&&(t=l.toString(t,i.format,i.culture)),"string"==typeof t&&(o&&o.text()===t?t=o:(t=e.grep(n.ul[0].childNodes,function(e){return(e.textContent||e.innerText)==t}),t=t[0]?t:null)),n.current(t)},toggle:function(){var e=this;e.popup.visible()?e.close():e.open()},value:function(e){var t=this;t._value=e,t.ul[0].firstChild&&t.select(e)},_click:function(t){var n=this,i=e(t.currentTarget);t.isDefaultPrevented()||(n.select(i),n.options.change(i.text(),!0),n.close())},_height:function(e){if(e){var t=this,n=t.list,i=n.parent(".k-animation-container"),o=t.options.height;n.add(i).show().height(t.ul[0].scrollHeight>o?o:"auto").hide()}},_parse:function(e){var t=this,n=t.options,i=t._value||P;return e instanceof N?e:(e=l.parseDate(e,n.parseFormats,n.culture),e&&(e=new N(i.getFullYear(),i.getMonth(),i.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),e)},_popup:function(){var e,t=this,n=t.list,i=t.options,o=i.anchor;t.popup=new p.Popup(n,B(i.popup,{anchor:o,open:i.open,close:i.close,animation:i.animation,isRtl:l.support.isRtl(i.anchor)})),e=o.outerWidth()-(n.outerWidth()-n.width()),n.css({fontFamily:o.css("font-family"),width:e}),l.touchScroller(t.popup.element)},move:function(e){var n=this,i=e.keyCode,o=n.ul[0],r=n._current,a=i===u.DOWN;if(i===u.UP||a){if(e.altKey)return n.toggle(a),t;r=a?r?r[0].nextSibling:o.firstChild:r?r[0].previousSibling:o.lastChild,r&&n.select(r),n.options.change(n._current.text()),e.preventDefault()}else(i===u.ENTER||i===u.TAB||i===u.ESC)&&(e.preventDefault(),r&&n.options.change(r.text(),!0),n.close())}},z.getMilliseconds=o,l.TimeView=z;var R=f.extend({init:function(e,t){var n,i,o=this;f.fn.init.call(o,e,t),e=o.element,t=o.options,a(t),o._wrapper(),o.timeView=i=new z(B({},t,{id:e.attr(I),anchor:o.wrapper,format:t.format,change:function(t,n){n?o._change(t):e.val(t)},open:function(t){o.trigger(d)?t.preventDefault():(e.attr(F,!0),n.attr(W,!1))},close:function(t){o.trigger(m)?t.preventDefault():(e.attr(F,!1),n.attr(W,!0))},active:function(t){e.removeAttr(A),t&&e.attr(A,i._optionID)}})),n=i.ul,o._icon(),o._reset(),e[0].type="text",e.addClass("k-input").on("keydown"+v,E(o._keydown,o)).on("blur"+v,E(o._blur,o)).on("focus"+v,function(){o._inputWrapper.addClass(y)}).attr({role:"textbox","aria-haspopup":!0,"aria-expanded":!1,"aria-owns":i._timeViewID}),o.enable(!e.is("[disabled]")),o.value(t.value||e.val()),l.notify(o)},options:{name:"TimePicker",min:P,max:P,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[d,m,h],setOptions:function(e){var t=this,n=t.timeView,i=n.options;f.fn.setOptions.call(t,e),a(t.options),n.options=B(i,t.options,{active:i.active,change:i.change,close:i.close,open:i.open}),n.ul[0].innerHTML=""},dataBind:function(e){O(e)&&this.timeView.dataBind(e)},enable:function(e){var t=this,n=t.element,i=t._arrow.off(v),o=t._inputWrapper.off(b);e===!1?(o.removeClass(_).addClass(M),n.attr(w,w)):(o.removeClass(M).addClass(_).on(b,t._toggleHover),n.removeAttr(w),i.on(g,E(t._click,t)).on(T,s))},destroy:function(){var e=this;f.fn.destroy.call(e),e.timeView.destroy(),e.element.off(v),e._arrow.off(v),e._inputWrapper.off(v),e._form&&e._form.off("reset",e._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),t)},_blur:function(){var e=this;e.close(),e._change(e.element.val()),e._inputWrapper.removeClass(y)},_click:function(e){var t=this,n=t.element;t.timeView.toggle(),"click"===e.type&&n[0]!==document.activeElement&&n.focus()},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t.trigger(h),t.element.trigger(h))},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),n._arrow=t.attr({role:"button","aria-controls":n.timeView._timeViewID})},_keydown:function(e){var t=this,n=e.keyCode,i=t.timeView;i.popup.visible()||e.altKey?i.move(e):n===u.ENTER&&t._change(t.element.val())},_option:function(e,n){var i=this,o=i.options;return n===t?o[e]:(n=i.timeView._parse(n),n&&(n=new N(+n),o[e]=n,i.timeView.options[e]=n,i.timeView.bind()),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_update:function(e){var t=this,n=t.options,i=t.timeView,o=i._parse(e);return r(o,n.min,n.max)||(o=null),t._value=o,t.element.val(o?l.toString(o,n.format,n.culture):e),i.value(o),o},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-timepicker"),t[0]||(t=i.wrap(x).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(x).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-timepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var e=this,t=e.element,n=t.closest("form");n[0]&&(e._resetHandler=function(){e.value(t[0].defaultValue)},e._form=n.on("reset",e._resetHandler))}});p.plugin(R)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function K(a){var b=this;b.treeview=a,b._draggable=new d.Draggable(a.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(a){return z.dragClue({text:a.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:k(b.dragstart,b),dragcancel:k(b.dragcancel,b),drag:k(b.drag,b),dragend:k(b.dragend,b)})}function J(a,b,c){var d=a.children("div"),e=a.children("ul");a.hasClass("k-treeview")||(c=f({expanded:e.css("display")!="none",index:a.index(),enabled:!d.children(".k-in").hasClass("k-state-disabled")},c),b=f({firstLevel:a.parent().parent().hasClass(w),length:a.parent().children().length},b),a.removeClass("k-first k-last").addClass(A.wrapperCssClass(b,c)),d.removeClass("k-top k-mid k-bot").addClass(A.cssClass(b,c)),d.children(".k-in").removeClass("k-in k-state-default k-state-disabled").addClass(A.textClass(c)),e.length&&(d.children(".k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(A.toggleButtonClass(c)),e.addClass("k-group")))}function I(b){var c=b.children("div"),d=b.children("ul"),e=c.children(".k-icon"),f=c.children(".k-in"),g,h;if(!b.hasClass("k-treeview")){c.length||(c=a("<div />").prependTo(b));if(!e.length&&d.length)e=a("<span class='k-icon' />").prependTo(c);else if(!d.length||!d.children().length)e.remove(),d.remove();if(!f.length){f=a("<span class='k-in' />").appendTo(c)[0],g=c[0].nextSibling,f=c.find(".k-in")[0];while(g&&g.nodeName.toLowerCase()!="ul")h=g,g=g.nextSibling,h.nodeType==3&&(h.nodeValue=a.trim(h.nodeValue)),f.appendChild(h)}}}function H(b){return a(b).closest("[data-role=treeview]").data("kendoTreeView")}function G(a){return function(b){var c=b.children(".k-animation-container");c.length||(c=b);return c.children(a)}}var c=window.kendo,d=c.ui,e=c.data,f=a.extend,g=c.template,h=a.isArray,i=d.Widget,j=e.HierarchicalDataSource,k=a.proxy,l="select",m="expand",n="change",o="collapse",p="dragstart",q="drag",r="drop",s="dragend",t="click",u="visibility",v="k-state-hover",w="k-treeview",x=":visible",y=".k-item",z,A,B,C,D,E={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},F=function(a){return typeof HTMLElement=="object"?a instanceof HTMLElement:a&&typeof a=="object"&&a.nodeType===1&&typeof a.nodeName=="string"};C=G(".k-group"),D=G(".k-group,.k-content"),z={dragClue:g("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:g("<ul class='#= r.groupCssClass(group) #'#= r.groupAttributes(group) #>#= renderItems(data) #</ul>")},B=i.extend({init:function(b,c){var d=this,e=".k-in:not(.k-state-selected,.k-state-disabled)",f="mouseenter",j,l=!1;h(c)&&(j=!0,c={dataSource:c}),c&&typeof c.loadOnDemand=="undefined"&&h(c.dataSource)&&(c.loadOnDemand=!1),i.prototype.init.call(d,b,c),b=d.element,c=d.options,l=b.is("ul")||b.hasClass(w),l&&(c.dataSource.list=b.is("ul")?b:b.children("ul")),d._animation(),d._accessors(),c.template&&typeof c.template=="string"?c.template=g(c.template):c.template||(c.template=d._textTemplate()),c.checkboxTemplate&&typeof c.checkboxTemplate=="string"&&(c.checkboxTemplate=g(c.checkboxTemplate)),d.templates={item:d._itemTemplate(),loading:d._loadingTemplate()},b.hasClass(w)?(d.wrapper=b,d.root=b.children("ul").eq(0)):(d._wrapper(),l&&(d.root=b,d._group(d.wrapper))),d._dataSource(l),d.wrapper.on(f,".k-in.k-state-selected",function(a){a.preventDefault()}).on(f,e,function(){a(this).addClass(v)}).on("mouseleave",e,function(){a(this).removeClass(v)}).on(t,e,k(d._nodeClick,d)).on("dblclick","div:not(.k-state-disabled) .k-in",k(d._toggleButtonClick,d)).on(t,".k-plus,.k-minus",k(d._toggleButtonClick,d)),c.dragAndDrop&&(d.dragging=new K(d)),l?d._attachUids():c.autoBind&&(d._progress(!0),d.dataSource.read())},_attachUids:function(b,d){var e=this,f,g=c.attr("uid");b=b||e.root,d=d||e.dataSource,f=d.view(),b.children("li").each(function(b,c){c=a(c).attr(g,f[b].uid),e._attachUids(c.children("ul"),f[b].children)})},_animation:function(){var a=this.options;a.animation===!1&&(a.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}})},_dataSource:function(a){function e(a){for(var b=0;b<a.length;b++)a[b].children.read(),e(a[b].children.view())}var b=this,c=b.options,d=c.dataSource;d=h(d)?{data:d}:d,b.dataSource&&b._refreshHandler?b.dataSource.unbind(n,b._refreshHandler):b._refreshHandler=k(b.refresh,b),d.fields||(d.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),b.dataSource=j.create(d),a&&(b.dataSource.read(),e(b.dataSource.view())),b.dataSource.bind(n,b._refreshHandler)},events:[p,q,r,s,m,o,l],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:100}},dragAndDrop:!1,autoBind:!0,loadOnDemand:!0},_accessors:function(){var a=this,b=a.options,d,e,f,g=a.element;for(d in E)e=b[E[d]],f=g.attr(c.attr(d+"-field")),f&&(e=f),e||(e=d),h(e)||(e=[e]),b[E[d]]=e},_fieldFor:function(a){var b=this.options[E[a]],c=b.length;return c===0?"'"+a+"'":c==1?"'"+b[0]+"'":"['"+b.join("','")+"']"+"[item.level() < "+c+" ? item.level() : "+(c-1)+"]"},_textTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},c="# var text = "+b("text")+"; #"+"# if (typeof item.encoded != 'undefined' && item.encoded === false) {#"+"#= text #"+"# } else { #"+"#: text #"+"# } #";return g(c)},_loadingTemplate:function(){return g("<div class='k-icon k-loading' /> Loading...")},_itemTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},d="<li class='#= r.wrapperCssClass(group, item) #' "+c.attr("uid")+"='#= item.uid #'"+">"+"<div class='#= r.cssClass(group, item) #'>"+"# if (item.hasChildren) { #"+"<span class='#= r.toggleButtonClass(item) #'></span>"+"# } #"+"# if (treeview.checkboxTemplate) { #"+"<span class='k-checkbox'>"+"#= treeview.checkboxTemplate(data) #"+"</span>"+"# } #"+"# var url = "+b("url")+"; #"+"# var tag = url ? 'a' : 'span'; #"+"# var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #"+"<#=tag# class='#= r.textClass(item) #'#= textAttr #>"+"# var imageUrl = "+b("imageUrl")+"; #"+"# if (imageUrl) { #"+"<img class='k-image' alt='' src='#= imageUrl #'>"+"# } #"+"# var spriteCssClass = "+b("spriteCssClass")+"; #"+"# if (spriteCssClass) { #"+"<span class='k-sprite #= spriteCssClass #'></span>"+"# } #"+"#= treeview.template(data) #"+"</#=tag#>"+"</div>"+"</li>";return g(d)},setOptions:function(a){var b=this;"dragAndDrop"in a&&a.dragAndDrop&&!b.options.dragAndDrop&&(b.dragging=new K(b)),i.fn.setOptions.call(b,a),b._animation()},_trigger:function(a,b){return this.trigger(a,{node:b.closest(y)[0]})},_toggleButtonClick:function(b){this.toggle(a(b.target).closest(y))},_nodeClick:function(b){var c=this,d=a(b.target),e=D(d.closest(y)),f=d.attr("href"),g;f?g=f=="#"||f.indexOf("#"+this.element.id+"-")>=0:g=e.length&&!e.children().length,g&&b.preventDefault(),!d.hasClass(".k-state-selected")&&!c._trigger("select",d)&&c.select(d)},_wrapper:function(){var a=this,b=a.element,c,d,e="k-widget k-treeview k-reset";b.is("div")?(c=b,d=c.children("ul").eq(0)):(c=b.wrap("<div />").parent(),d=b),a.wrapper=c.addClass(e),a.root=d},_group:function(a){var b=this,c=a.hasClass(w),d={firstLevel:c,expanded:c||b._expanded(a)},e=a.children("ul");e.addClass(A.groupCssClass(d)).css("display",d.expanded?"":"none"),b._nodes(e,d)},_nodes:function(b,c){var d=this,e=b.children("li"),g;c=f({length:e.length},c),e.each(function(b,e){e=a(e),g={index:b,expanded:d._expanded(e)},I(e),J(e,c,g),d._group(e)})},_processNodes:function(b,c){var d=this;d.element.find(b).each(function(b,e){c.call(d,b,a(e).closest(y))})},dataItem:function(b){var d=a(b).closest(y).attr(c.attr("uid")),e=this.dataSource;return e&&e.getByUid(d)},_insertNode:function(b,c,d,e,f){var g=this,h=C(d),i=h.children().length+1,j,k={firstLevel:d.hasClass(w),expanded:!f,length:i},l,m,n,o="",p=function(a,b){a.appendTo(b)};for(m=0;m<b.length;m++)n=b[m],n.index=c+m,o+=g._renderItem({group:k,item:n});l=a(o);if(!!l.length){h.length||(h=a(g._renderGroup({group:k})).appendTo(d)),e(l,h),d.hasClass("k-item")&&(I(d),J(d)),J(l.prev()),J(l.next());for(m=0;m<b.length;m++)n=b[m],j=n.children.data(),j.length&&g._insertNode(j,n.index,l.eq(m),p,!g._expanded(l.eq(m)));return l}},refresh:function(a){function j(a,c,d){var e=C(c),f=e.children();typeof g=="undefined"&&(g=f.length),b._insertNode(a,g,c,function(a,b){g==f.length?a.appendTo(b):a.insertBefore(f.eq(g))},d)}var b=this,c=b.wrapper,d=a.node,e=a.action,f=a.items,g=a.index,h=b.options.loadOnDemand,i;if(!a.field){d&&(c=b.findByUid(d.uid),b._progress(c,!1)),e=="add"?j(f,c):e=="remove"?b._remove(b.findByUid(f[0].uid),!1):d?(C(c).empty(),j(f,c,!0),b._expanded(c)&&(J(c,{},{expanded:!0}),C(c).css("display","block"))):b.root=b.wrapper.html(b._renderGroup({items:f,group:{firstLevel:!0,expanded:!0}})).children("ul");if(!h)for(i=0;i<f.length;i++)f[i].load()}},expand:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&!c.is(x)&&this.toggle(b)})},collapse:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&c.is(x)&&this.toggle(b)})},enable:function(a,b){b=arguments.length==2?!!b:!0,this._processNodes(a,function(a,c){var d=!D(c).is(x);b||(this.collapse(c),d=!0),J(c,{},{enabled:b,expanded:!d})})},select:function(b){var c=this.element;if(!arguments.length)return c.find(".k-state-selected").closest(y);b=a(b,c).closest(y),b.length&&(c.find(".k-in").removeClass("k-state-hover k-state-selected"),b.find(".k-in:first").addClass("k-state-selected"))},toggle:function(b){b=a(b);if(!!b.find(">div>.k-icon").is(".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled")){var c=this,d=D(b),e=!d.is(x),g=c.options,h=g.animation||{},i=h.expand,j=f({},h.collapse),k=j&&"effects"in j,l=c.dataItem(b);if(d.data("animating"))return;e||(i=f(k?j:f({reverse:!0},i),{show:!1,hide:!0})),c._trigger(e?"expand":"collapse",b)||(c._expanded(b,e),d.children().length>0?(J(b,{},{expanded:e}),e||d.css("height",d.height()).css("height"),d.kendoStop(!0,!0).kendoAnimate(f(i,{complete:function(){e&&d.css("height","")}}))):l&&(g.loadOnDemand&&c._progress(b,!0),l.load()))}},_expanded:function(a,b){var d=c.attr("expanded"),e=this.dataItem(a);if(arguments.length==1)return a.attr(d)==="true"||e&&e.expanded;e&&e.set("expanded",b),b?a.attr(d,"true"):a.removeAttr(d)},_progress:function(a,b){var c=this.element;arguments.length==1?(b=a,b?c.html(this.templates.loading):c.empty()):a.find("> div > .k-icon").toggleClass("k-loading",b)},text:function(b){return a(b).closest(y).find(">div>.k-in").text()},_dataSourceMove:function(b,d,f,g){var i=this,j=H(b),k,l,m,n,o=H(f||d),p=o.dataSource;f&&(m=o.dataItem(f),m.loaded()||(m.load(),i._expanded(f,!0)),f!=i.root&&(p=m.children));if(b instanceof a||F(b))b=a(b),k=j.dataSource,l=k.getByUid(b.attr(c.attr("uid"))),l=k.remove(l),l=g(p,l);else if(h(b)||b instanceof e.ObservableArray)for(n=0;n<b.length;n++)l=g(p,b[n]);else l=g(p,b);return i.findByUid(l.uid)},insertAfter:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index()+1,c)})},insertBefore:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index(),c)})},append:function(a,b){var c=this,d=c.root;b&&(d=C(b));return c._dataSourceMove(a,d,b,function(a,d){b&&c._expanded(b,!0);return a.add(d)})},_remove:function(b,c){var d,e,f;b=a(b,this.element),d=b.parent().parent(),e=b.prev(),f=b.next(),b[c?"detach":"remove"](),d.hasClass("k-item")&&(I(d),J(d)),J(e),J(f);return b},remove:function(a){var b=this.dataItem(a);b&&this.dataSource.remove(b)},detach:function(a){return this._remove(a,!0)},findByText:function(b){return a(this.element).find(".k-in").filter(function(c,d){return a(d).text()==b}).closest(y)},findByUid:function(a){return this.element.find(".k-item["+c.attr("uid")+"="+a+"]")},_renderItem:function(a){a.group||(a.group={}),a.treeview=this.options,a.r=A;return this.templates.item(a)},_renderGroup:function(a){var b=this;a.renderItems=function(a){var c="",d=0,e=a.items,f=e?e.length:0,g=a.group;g.length=f;for(;d<f;d++)a.group=g,a.item=e[d],a.item.index=d,c+=b._renderItem(a);return c},a.r=A;return z.group(a)}}),K.prototype={_hintStatus:function(b){var c=this._draggable.hint.find(".k-drag-status")[0];if(b)c.className="k-icon k-drag-status "+b;else return a.trim(c.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(b){var c=this,d=c.treeview,e=c.sourceNode=b.currentTarget.closest(y);d.trigger(p,{sourceNode:e[0]})&&b.preventDefault(),c.dropHint=a("<div class='k-drop-hint' />").css(u,"hidden").appendTo(d.element)},drag:function(b){var d=this,e=d.treeview,f=d.sourceNode,g=d.dropTarget=a(c.eventTarget(b)),h,i,j,k,l,m,n,o,p,r;g.closest(".k-treeview").length?a.contains(f[0],g[0])?h="k-denied":(h="k-insert-middle",d.dropHint.css(u,"visible"),i=g.closest(".k-top,.k-mid,.k-bot"),i.length>0?(k=i.outerHeight(),l=i.offset().top,m=g.closest(".k-in"),n=k/(m.length>0?4:2),o=b.pageY<l+n,p=l+k-n<b.pageY,r=m.length>0&&!o&&!p,m.toggleClass(v,r),d.dropHint.css(u,r?"hidden":"visible"),r?h="k-add":(j=i.position(),j.top+=o?0:k,d.dropHint.css(j)[o?"prependTo":"appendTo"](g.closest(y).children("div:first")),o&&i.hasClass("k-top")&&(h="k-insert-top"),p&&i.hasClass("k-bot")&&(h="k-insert-bottom"))):g[0]!=d.dropHint[0]&&(h="k-denied")):h="k-denied",e.trigger(q,{sourceNode:f[0],dropTarget:g[0],pageY:b.pageY,pageX:b.pageX,statusClass:h.substring(2),setStatusClass:function(a){h=a}}),h.indexOf("k-insert")!==0&&d.dropHint.css(u,"hidden"),d._hintStatus(h)},dragcancel:function(a){this.dropHint.remove()},dragend:function(a){var b=this,c=b.treeview,d="over",e=b.sourceNode,f,g=b.dropHint,h,i;g.css(u)=="visible"?(d=g.prevAll(".k-in").length>0?"after":"before",f=g.closest(y)):b.dropTarget&&(f=b.dropTarget.closest(y)),h=b._hintStatus()!="k-denied",i=c.trigger(r,{sourceNode:e[0],destinationNode:f[0],valid:h,setValid:function(a){h=a},dropTarget:a.target,dropPosition:d}),g.remove();!h||i?b._draggable.dropped=h:(b._draggable.dropped=!0,d=="over"?(c.append(e,f),c.expand(f)):d=="before"?c.insertBefore(e,f):d=="after"&&c.insertAfter(e,f),c.trigger(s,{sourceNode:e[0],destinationNode:f[0],dropPosition:d}))}},A={wrapperCssClass:function(a,b){var c="k-item",d=b.index;a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},cssClass:function(a,b){var c="",d=b.index,e=a.length-1;a.firstLevel&&d===0&&(c+="k-top "),d===0&&d!=e?c+="k-top":d==e?c+="k-bot":c+="k-mid";return c},textClass:function(a){var b="k-in";a.enabled===!1&&(b+=" k-state-disabled"),a.selected===!0&&(b+=" k-state-selected");return b},toggleButtonClass:function(a){var b="k-icon";a.expanded!==!0?b+=" k-plus":b+=" k-minus",a.enabled===!1&&(b+="-disabled");return b},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){var b="k-group";a.firstLevel&&(b+=" k-treeview-lines");return b}},d.plugin(B)})(jQuery);
|
11
|
+
(function(e,t){function n(e){return function(t){var n=t.children(".k-animation-container");return n.length||(n=t),n.children(e)}}function r(e){return e.children("div").find(":checkbox:first")}function i(t){var n,r,i=t.children("div"),a=t.children("ul"),s=i.children(".k-icon"),o=t.children(":checkbox"),d=i.children(".k-in");if(!t.hasClass("k-treeview")&&(i.length||(i=e("<div />").prependTo(t)),!s.length&&a.length?s=e("<span class='k-icon' />").prependTo(i):a.length&&a.children().length||(s.remove(),a.remove()),o.length&&e("<span class='k-checkbox' />").appendTo(i).append(o),!d.length))for(d=e("<span class='k-in' />").appendTo(i)[0],n=i[0].nextSibling,d=i.find(".k-in")[0];n&&"ul"!=n.nodeName.toLowerCase();)r=n,n=n.nextSibling,3==r.nodeType&&(r.nodeValue=e.trim(r.nodeValue)),d.appendChild(r)}function a(e){var t=this;t.treeview=e,t.hovered=e.element,t._draggable=new u.Draggable(e.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(t){return e.templates.dragClue({text:t.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:k(t.dragstart,t),dragcancel:k(t.dragcancel,t),drag:k(t.drag,t),dragend:k(t.dragend,t)})}var s,o,d,l,c=window.kendo,u=c.ui,p=c.data,h=e.extend,f=c.template,g=e.isArray,m=u.Widget,v=p.HierarchicalDataSource,k=e.proxy,_=c.keys,x=".kendoTreeView",b="select",C="navigate",w="expand",y="change",T="checked",S="collapse",N="dragstart",A="drag",B="drop",I="dragend",U="dataBound",H="click",D="visibility",V="undefined",L="k-state-hover",O="k-treeview",E=":visible",M=".k-item",j="aria-selected",F="aria-disabled",q={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},G=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName};o=n(".k-group"),d=n(".k-group,.k-content"),l=function(e){return e.children("div").children(".k-icon")},s=m.extend({init:function(t,n){var r,i=this,s=!1;g(n)&&(r=!0,n={dataSource:n}),n&&typeof n.loadOnDemand==V&&g(n.dataSource)&&(n.loadOnDemand=!1),m.prototype.init.call(i,t,n),t=i.element,n=i.options,s=t.is("ul")||t.hasClass(O),s&&(n.dataSource.list=t.is("ul")?t:t.children("ul")),i._animation(),i._accessors(),i._templates(),t.hasClass(O)?(i.wrapper=t,i.root=t.children("ul").eq(0)):(i._wrapper(),s&&(i.root=t,i._group(i.wrapper))),i._tabindex(),i.wrapper.filter("[role=tree]").length||i.wrapper.attr("role","tree"),i._dataSource(s),i._attachEvents(),n.dragAndDrop&&(i.dragging=new a(i)),s?i._attachUids():n.autoBind&&(i._progress(!0),i.dataSource.fetch()),n.checkboxes&&n.checkboxes.checkChildren&&i.wrapper.find(":checkbox").closest(M).each(function(){i._updateIndeterminate(e(this))}),i.element[0].id&&(i._ariaId=c.format("{0}_tv_active",i.element[0].id))},_attachEvents:function(){var t=this,n=".k-in:not(.k-state-selected,.k-state-disabled)",r="mouseenter";t.wrapper.on(r+x,".k-in.k-state-selected",function(e){e.preventDefault()}).on(r+x,n,function(){e(this).addClass(L)}).on("mouseleave"+x,n,function(){e(this).removeClass(L)}).on(H+x,n,k(t._click,t)).on("dblclick"+x,".k-in:not(.k-state-disabled)",k(t._toggleButtonClick,t)).on(H+x,".k-plus,.k-minus",k(t._toggleButtonClick,t)).on("keydown"+x,k(t._keydown,t)).on("focus"+x,k(t._focus,t)).on("blur"+x,k(t._blur,t)).on("mousedown"+x,".k-in,.k-checkbox :checkbox",k(t._mousedown,t)).on("change"+x,".k-checkbox :checkbox",k(t._checkboxChange,t)).on("click"+x,".k-checkbox :checkbox",k(t._checkboxClick,t)).on("click"+x,function(){t.focus()})},_checkboxClick:function(t){var n=e(t.target);n.data("indeterminate")&&(n.data("indeterminate",!1).prop("indeterminate",!1).prop(T,!0),this._checkboxChange(t))},_attachUids:function(t,n){var r,i=this,a=c.attr("uid");t=t||i.root,n=n||i.dataSource,r=n.view(),t.children("li").each(function(t,n){n=e(n).attr(a,r[t].uid),n.attr("role","treeitem"),i._attachUids(n.children("ul"),r[t].children)})},_animation:function(){var e=this.options,t=e.animation;t===!1?t={expand:{effects:{}},collapse:{hide:!0,effects:{}}}:t.collapse&&"effects"in t.collapse||(t.collapse=h({reverse:!0},t.expand)),h(t.collapse,{hide:!0}),e.animation=t},_templates:function(){var e=this,t=e.options,n=k(e._fieldAccessor,e);t.template&&"string"==typeof t.template?t.template=f(t.template):t.template||(t.template=f("# var text = "+n("text")+"(item); #"+"# if (typeof item.encoded != 'undefined' && item.encoded === false) {#"+"#= text #"+"# } else { #"+"#: text #"+"# } #")),e._checkboxes(),e.templates={wrapperCssClass:function(e,t){var n="k-item",r=t.index;return e.firstLevel&&0===r&&(n+=" k-first"),r==e.length-1&&(n+=" k-last"),n},cssClass:function(e,t){var n="",r=t.index,i=e.length-1;return e.firstLevel&&0===r&&(n+="k-top "),n+=0===r&&r!=i?"k-top":r==i?"k-bot":"k-mid"},textClass:function(e){var t="k-in";return e.enabled===!1&&(t+=" k-state-disabled"),e.selected===!0&&(t+=" k-state-selected"),t},toggleButtonClass:function(e){var t="k-icon";return t+=e.expanded!==!0?" k-plus":" k-minus",e.enabled===!1&&(t+="-disabled"),t},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(e){var t="k-group";return e.firstLevel&&(t+=" k-treeview-lines"),t},dragClue:f("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:f("<ul class='#= r.groupCssClass(group) #'#= r.groupAttributes(group) # role='group'>#= renderItems(data) #</ul>"),itemContent:f("# var imageUrl = "+n("imageUrl")+"(item); #"+"# var spriteCssClass = "+n("spriteCssClass")+"(item); #"+"# if (imageUrl) { #"+"<img class='k-image' alt='' src='#= imageUrl #'>"+"# } #"+"# if (spriteCssClass) { #"+"<span class='k-sprite #= spriteCssClass #'></span>"+"# } #"+"#= treeview.template(data) #"),itemElement:f("# var url = "+n("url")+"(item); #"+"<div class='#= r.cssClass(group, item) #'>"+"# if (item.hasChildren) { #"+"<span class='#= r.toggleButtonClass(item) #' role='presentation'></span>"+"# } #"+"# if (treeview.checkboxes) { #"+"<span class='k-checkbox' role='presentation'>"+"#= treeview.checkboxes.template(data) #"+"</span>"+"# } #"+"# var tag = url ? 'a' : 'span'; #"+"# var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #"+"<#=tag# class='#= r.textClass(item) #'#= textAttr #>"+"#= r.itemContent(data) #"+"</#=tag#>"+"</div>"),item:f("<li role='treeitem' class='#= r.wrapperCssClass(group, item) #' "+c.attr("uid")+"='#= item.uid #'"+"#=item.selected ? \"aria-selected='true'\" : ''#"+"#=item.enabled === false ? \"aria-disabled='true'\" : ''#"+">"+"#= r.itemElement(data) #"+"</li>"),loading:f("<div class='k-icon k-loading' /> Loading...")}},items:function(){return this.element.find(".k-item")},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.dataSource.fetch()},_dataSource:function(e){function t(e){for(var n=0;e.length>n;n++)e[n]._initChildren(),e[n].children.fetch(),t(e[n].children.view())}var n=this,r=n.options,i=r.dataSource;i=g(i)?{data:i}:i,n.dataSource&&n._refreshHandler?n.dataSource.unbind(y,n._refreshHandler):n._refreshHandler=k(n.refresh,n),i.fields||(i.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),n.dataSource=v.create(i),e&&(n.dataSource.fetch(),t(n.dataSource.view())),n.dataSource.bind(y,n._refreshHandler)},events:[N,A,B,I,U,w,S,b,C],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:100}},dragAndDrop:!1,checkboxes:!1,autoBind:!0,loadOnDemand:!0,template:""},_accessors:function(){var e,t,n,r=this,i=r.options,a=r.element;for(e in q)t=i[q[e]],n=a.attr(c.attr(e+"-field")),n&&(t=n),t||(t=e),g(t)||(t=[t]),i[q[e]]=t},_fieldAccessor:function(t){var n=this.options[q[t]],r=n.length,i="(function(item) {";return 0===r?i+="return item['"+t+"'];":(i+="var level = item.level();var levels = ["+e.map(n,function(e){return"function(d){ return "+c.expr(e)+"}"}).join(",")+"];",i+="return levels[Math.min(level, "+r+"-1)](item)"),i+="})"},setOptions:function(e){var t=this;"dragAndDrop"in e&&e.dragAndDrop&&!t.options.dragAndDrop&&(t.dragging=new a(t)),m.fn.setOptions.call(t,e),t._animation(),t._templates()},_trigger:function(e,t){return this.trigger(e,{node:t.closest(M)[0]})},_updateIndeterminate:function(e){var t,n,i=e.parent().closest(M),a=!0;if(i.length){for(t=r(e.siblings().andSelf()),n=1;t.length>n;n++)if(t[n].checked!=t[n-1].checked||t[n].indeterminate||t[n-1].indeterminate){a=!1;break}r(i).data("indeterminate",!a).prop("indeterminate",!a).prop(T,a&&t[0].checked),this._updateIndeterminate(i)}},_checkboxChange:function(t){var n=e(t.target),r=n.prop(T),i=n.closest(M),a=this;a.options.checkboxes.checkChildren?(i.find(":checkbox").each(function(){a.dataItem(this).set(T,r)}),a._updateIndeterminate(i)):a.dataItem(i).set(T,r)},_toggleButtonClick:function(t){this.toggle(e(t.target).closest(M))},_mousedown:function(t){this._clickTarget=e(t.currentTarget).closest(M)},_focusable:function(e){return e&&e.length&&e.is(":visible")&&!e.find(".k-in:first").hasClass("k-state-disabled")},_focus:function(){var t=this.select();this._focusable(t)||(t=this._clickTarget),this._focusable(t)||(t=this.current()),this._focusable(t)||(t=this._nextVisible(e())),this.current(t)},focus:function(){this.wrapper.focus()},_blur:function(){this.current().find(".k-in:first").removeClass("k-state-focused")},_enabled:function(e){return!e.children("div").children(".k-in").hasClass("k-state-disabled")},parent:function(t){return e(t).parent().closest(M)},_nextVisible:function(e){var t,n=this,r=n._expanded(e);if(e.length&&e.is(":visible"))if(r)t=o(e).children().first();else{for(;e.length&&!e.next().length;)e=n.parent(e);t=e.next().length?e.next():e}else t=n.root.children().eq(0);return n._enabled(t)||(t=n._nextVisible(t)),t},_previousVisible:function(e){var t,n=this;if(!e.length||e.prev().length)for(t=e.length?e.prev():n.root.children().last();n._expanded(t);)t=o(t).children().last();else t=n.parent(e)||e;return n._enabled(t)||(t=n._previousVisible(t)),t},_keydown:function(n){var r,i=this,a=n.keyCode,s=i.current(),o=i._expanded(s),d=s.find(":checkbox:first"),l=c.support.isRtl(i.element);n.target==n.currentTarget&&(!l&&a==_.RIGHT||l&&a==_.LEFT?o?r=i._nextVisible(s):i.expand(s):!l&&a==_.LEFT||l&&a==_.RIGHT?o?i.collapse(s):(r=i.parent(s),i._enabled(r)||(r=t)):a==_.DOWN?r=i._nextVisible(s):a==_.UP?r=i._previousVisible(s):a==_.HOME?r=i._nextVisible(e()):a==_.END?r=i._previousVisible(e()):a==_.ENTER?s.find(".k-in:first").hasClass("k-state-selected")||i._trigger(b,s)||i.select(s):a==_.SPACEBAR&&d.length&&(d.prop(T,!d.prop(T)).data("indeterminate",!1).prop("indeterminate",!1),i._checkboxChange({target:d}),r=s),r&&(n.preventDefault(),s[0]!=r[0]&&(i._trigger(C,r),i.current(r))))},_click:function(t){var n,r=this,i=e(t.target),a=d(i.closest(M)),s=i.attr("href");n=s?"#"==s||s.indexOf("#"+this.element.id+"-")>=0:a.length&&!a.children().length,n&&t.preventDefault(),i.hasClass(".k-state-selected")||r._trigger(b,i)||r.select(i)},_wrapper:function(){var e,t,n=this,r=n.element,i="k-widget k-treeview";r.is("div")?(e=r,t=e.children("ul").eq(0)):(e=r.wrap("<div />").parent(),t=r),n.wrapper=e.addClass(i),n.root=t},_group:function(e){var t=this,n=e.hasClass(O),r={firstLevel:n,expanded:n||t._expanded(e)},i=e.children("ul");i.addClass(t.templates.groupCssClass(r)).css("display",r.expanded?"":"none"),t._nodes(i,r)},_nodes:function(t,n){var r,a=this,s=t.children("li");n=h({length:s.length},n),s.each(function(t,s){s=e(s),r={index:t,expanded:a._expanded(s)},i(s),a._updateNodeClasses(s,n,r),a._group(s)})},_checkboxes:function(){var e,t=this.options,n=t.checkboxes;(n||t.checkboxTemplate)&&(t.checkboxTemplate?e=t.checkboxTemplate:(e="<input type='checkbox' #= item.checked ? 'checked' : '' #",n.name&&(e+=" name='"+n.name+"'"),e+=" />"),n=h({template:e},t.checkboxes),"string"==typeof n.template&&(n.template=f(n.template)),t.checkboxes=n)},_updateNodeClasses:function(e,t,n){var r=e.children("div"),i=e.children("ul"),a=this.templates;e.hasClass("k-treeview")||(n=n||{},n.expanded=typeof n.expanded!=V?n.expanded:this._expanded(e),n.index=typeof n.index!=V?n.index:e.index(),n.enabled=typeof n.enabled!=V?n.enabled:!r.children(".k-in").hasClass("k-state-disabled"),t=t||{},t.firstLevel=typeof t.firstLevel!=V?t.firstLevel:e.parent().parent().hasClass(O),t.length=typeof t.length!=V?t.length:e.parent().children().length,e.removeClass("k-first k-last").addClass(a.wrapperCssClass(t,n)),r.removeClass("k-top k-mid k-bot").addClass(a.cssClass(t,n)),r.children(".k-in").removeClass("k-in k-state-default k-state-disabled").addClass(a.textClass(n)),(i.length||"true"==e.attr("data-hasChildren"))&&(r.children(".k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(a.toggleButtonClass(n)),i.addClass("k-group")))},_processNodes:function(t,n){var r=this;r.element.find(t).each(function(t,i){n.call(r,t,e(i).closest(M))})},dataItem:function(t){var n=e(t).closest(M).attr(c.attr("uid")),r=this.dataSource;return r&&r.getByUid(n)},_insertNode:function(t,n,r,a,s){var d,l,c,u,p=this,h=o(r),f=h.children().length+1,g={firstLevel:r.hasClass(O),expanded:!s,length:f},m="",v=function(e,t){e.appendTo(t)};for(c=0;t.length>c;c++)u=t[c],u.index=n+c,m+=p._renderItem({group:g,item:u});if(l=e(m),l.length){for(h.length||(h=e(p._renderGroup({group:g})).appendTo(r)),a(l,h),r.hasClass("k-item")&&(i(r),p._updateNodeClasses(r)),p._updateNodeClasses(l.prev().first()),p._updateNodeClasses(l.next().last()),c=0;t.length>c;c++)u=t[c],u.hasChildren&&(d=u.children.data(),d.length&&p._insertNode(d,u.index,l.eq(c),v,!p._expanded(l.eq(c))));return l}},_updateNode:function(t,n){var r,i,a,s=this,o={treeview:s.options,item:a};if("selected"==t)a=n[0],i=s.findByUid(a.uid).find(".k-in:first").removeClass("k-state-hover").toggleClass("k-state-selected",a[t]).end(),a[t]?(s.current(i),i.attr(j,!0)):i.attr(j,!1);else for(r=0;n.length>r;r++)o.item=a=n[r],"spriteCssClass"==t||"imageUrl"==t||e.inArray(t,s.options.dataTextField)>=0?s.findByUid(a.uid).find(">div>.k-in").html(s.templates.itemContent(o)):t==T?(i=s.findByUid(a.uid),i.children("div").find(":checkbox").prop(T,a[t]).data("indeterminate",!1).prop("indeterminate",!1)):"expanded"==t&&s._toggle(s.findByUid(a.uid),a,a[t])},refresh:function(e){function n(e,t){var n=o(t),r=n.children(),a=!i._expanded(t);typeof c==V&&(c=r.length),i._insertNode(e,c,t,function(e,t){c==r.length?e.appendTo(t):e.insertBefore(r.eq(c))},a),i._expanded(t)&&(i._updateNodeClasses(t),o(t).css("display","block"))}var r,i=this,a=i.wrapper,s=e.node,d=e.action,l=e.items,c=e.index,u=i.options.loadOnDemand;if(e.field)return i._updateNode(e.field,l);for(s&&(a=i.findByUid(s.uid),i._progress(a,!1)),"add"==d?n(l,a):"remove"==d?i._remove(i.findByUid(l[0].uid),!1):s?(o(a).empty(),n(l,a)):i.root=i.wrapper.html(i._renderGroup({items:l,group:{firstLevel:!0,expanded:!0}})).children("ul"),r=0;l.length>r;r++)(!u||l[r].expanded)&&l[r].load();i.trigger(U,{node:s?a:t})},expand:function(e){this._processNodes(e,function(e,t){this.toggle(t,!0)})},collapse:function(e){this._processNodes(e,function(e,t){this.toggle(t,!1)})},enable:function(e,t){t=2==arguments.length?!!t:!0,this._processNodes(e,function(e,n){var r=!d(n).is(E);n.removeAttr(F),t||(this.collapse(n),r=!0,n.find(".k-in:first").removeClass("k-state-selected"),n.removeAttr(j),n.attr(F,!0)),this._updateNodeClasses(n,{},{enabled:t,expanded:!r})})},current:function(n){var r=this,i=r._current,a=r.element,s=r._ariaId;return arguments.length>0&&n&&n.length?(i&&i.removeAttr("id").find(".k-in:first").removeClass("k-state-focused"),i=r._current=e(n,a).closest(M),i.find(".k-in:first").addClass("k-state-focused"),s&&(r.wrapper.removeAttr("aria-activedescendant"),i.attr("id",s),r.wrapper.attr("aria-activedescendant",s)),t):(i||(i=r._nextVisible(e())),i)},select:function(n){var r=this,i=r.element;return arguments.length?(n=e(n,i).closest(M),n.length&&(i.find(".k-state-selected").each(function(){var e=r.dataItem(this);e.set("selected",!1),delete e.selected}),r.dataItem(n).set("selected",!0)),t):i.find(".k-state-selected").closest(M)},_toggle:function(e,t,n){var r,i=this,a=i.options,s=d(e),o=n?"expand":"collapse",l=a.animation[o];if(!s.data("animating")&&!i._trigger(o,e))if(i._expanded(e,n),r=t&&t.loaded(),r&&s.children().length>0){if(i._updateNodeClasses(e,{},{expanded:n}),s.is(":visible")==n)return;n||s.css("height",s.height()).css("height"),s.kendoStop(!0,!0).kendoAnimate(h({reset:!0},l,{complete:function(){n&&s.css("height","")}}))}else t&&(a.loadOnDemand&&i._progress(e,!0),s.remove(),t.load())},toggle:function(t,n){t=e(t),l(t).is(".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled")&&(1==arguments.length&&(n=!this._expanded(t)),this._expanded(t,n))},destroy:function(){var e=this;m.fn.destroy.call(e),e.element.off(x),e.dragging&&e.dragging.destroy(),c.destroy(e.element)},_expanded:function(e,n){var r=c.attr("expanded"),i=this.dataItem(e);return 1==arguments.length?"true"===e.attr(r)||i&&i.expanded:(d(e).data("animating")||(i&&i.set("expanded",n),n?(e.attr(r,"true"),e.attr("aria-expanded","true")):(e.removeAttr(r),e.attr("aria-expanded","false"))),t)},_progress:function(e,t){var n=this.element;1==arguments.length?(t=e,t?n.html(this.templates.loading):n.empty()):l(e).toggleClass("k-loading",t)},text:function(e,n){var r=this.dataItem(e),i=this.options[q.text],a=r.level(),s=i.length,o=i[Math.min(a,s-1)];return n?(r.set(o,n),t):r[o]},_objectOrSelf:function(t){return e(t).closest("[data-role=treeview]").data("kendoTreeView")||this},_dataSourceMove:function(t,n,r,i){var a,s,o,d,l=this,u=l._objectOrSelf(t),h=l._objectOrSelf(r||n),f=h.dataSource;if(r&&(o=h.dataItem(r),o.loaded()||(h._progress(r,!0),o.load()),r!=l.root&&(f=o.children)),t instanceof window.jQuery||G(t))t=e(t),a=u.dataSource,s=a.getByUid(t.attr(c.attr("uid"))),s&&(s=a.remove(s)),s=i(f,s);else if(g(t)||t instanceof p.ObservableArray)for(d=0;t.length>d;d++)s=i(f,t[d]);else s=i(f,t);return s&&l.findByUid(s.uid)},insertAfter:function(e,t){var n,r=t.parent();return r.parent().is("li")&&(n=r.parent()),this._dataSourceMove(e,r,n,function(e,n){return e.insert(t.index()+1,n)})},insertBefore:function(e,t){var n,r=t.parent();return r.parent().is("li")&&(n=r.parent()),this._dataSourceMove(e,r,n,function(e,n){return e.insert(t.index(),n)})},append:function(e,t){var n=this,r=n.root;return t&&(r=o(t)),n._dataSourceMove(e,r,t,function(e,r){function i(){return t&&n._expanded(t,!0),e.add(r)}return e.data()?i():(e.one(y,i),null)})},_remove:function(t,n){var r,a,s,o=this;return t=e(t,o.element),r=t.parent().parent(),a=t.prev(),s=t.next(),t[n?"detach":"remove"](),r.hasClass("k-item")&&(i(r),o._updateNodeClasses(r)),o._updateNodeClasses(a),o._updateNodeClasses(s),t},remove:function(e){var t=this.dataItem(e);t&&this.dataSource.remove(t)},detach:function(e){return this._remove(e,!0)},findByText:function(t){return e(this.element).find(".k-in").filter(function(n,r){return e(r).text()==t}).closest(M)},findByUid:function(e){return this.element.find(".k-item["+c.attr("uid")+"="+e+"]")},_renderItem:function(e){return e.group||(e.group={}),e.treeview=this.options,e.r=this.templates,this.templates.item(e)},_renderGroup:function(e){var t=this;return e.renderItems=function(e){var n="",r=0,i=e.items,a=i?i.length:0,s=e.group;for(s.length=a;a>r;r++)e.group=s,e.item=i[r],e.item.index=r,n+=t._renderItem(e);return n},e.r=t.templates,t.templates.group(e)}}),a.prototype={_removeTouchHover:function(){var e=this;c.support.touch&&e.hovered&&(e.hovered.find("."+L).removeClass(L),e.hovered=!1)},_hintStatus:function(n){var r=this._draggable.hint.find(".k-drag-status")[0];return n?(r.className="k-icon k-drag-status "+n,t):e.trim(r.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(t){var n=this,r=n.treeview,i=n.sourceNode=t.currentTarget.closest(M);r.trigger(N,{sourceNode:i[0]})&&t.preventDefault(),n.dropHint=e("<div class='k-drop-hint' />").css(D,"hidden").appendTo(r.element)},drag:function(t){var n,r,i,a,s,o,d,l,u,p,h=this,f=h.treeview,g=h.sourceNode,m=h.dropTarget=e(c.eventTarget(t)),v=m.closest(".k-treeview");v.length?e.contains(g[0],m[0])?n="k-denied":(n="k-insert-middle",r=m.closest(".k-top,.k-mid,.k-bot"),r.length?(a=r.outerHeight(),s=r.offset().top,o=m.closest(".k-in"),d=a/(o.length>0?4:2),l=s+d>t.y.location,u=t.y.location>s+a-d,h._removeTouchHover(),p=o.length&&!l&&!u,h.hovered=p?v:!1,h.dropHint.css(D,p?"hidden":"visible"),o.toggleClass(L,p),p?n="k-add":(i=r.position(),i.top+=l?0:a,h.dropHint.css(i)[l?"prependTo":"appendTo"](m.closest(M).children("div:first")),l&&r.hasClass("k-top")&&(n="k-insert-top"),u&&r.hasClass("k-bot")&&(n="k-insert-bottom"))):m[0]!=h.dropHint[0]&&(n="k-denied")):(n="k-denied",h._removeTouchHover()),f.trigger(A,{sourceNode:g[0],dropTarget:m[0],pageY:t.y.location,pageX:t.x.location,statusClass:n.substring(2),setStatusClass:function(e){n=e}}),0!==n.indexOf("k-insert")&&h.dropHint.css(D,"hidden"),h._hintStatus(n)},dragcancel:function(){this.dropHint.remove()},dragend:function(){var e,n,r,i=this,a=i.treeview,s="over",o=i.sourceNode,d=i.dropHint;return"visible"==d.css(D)?(s=d.prevAll(".k-in").length>0?"after":"before",e=d.closest(M)):i.dropTarget&&(e=i.dropTarget.closest(M)),n="k-denied"!=i._hintStatus(),r=a.trigger(B,{sourceNode:o[0],destinationNode:e[0],valid:n,setValid:function(e){n=e},dropTarget:i.dropTarget[0],dropPosition:s}),d.remove(),i._removeTouchHover(),!n||r?(i._draggable.dropped=n,t):(i._draggable.dropped=!0,"over"==s?o=a.append(o,e):"before"==s?o=a.insertBefore(o,e):"after"==s&&(o=a.insertAfter(o,e)),a.trigger(I,{sourceNode:o&&o[0],destinationNode:e[0],dropPosition:s}),t)},destroy:function(){this._draggable.destroy()}},u.plugin(s)})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function F(){var c={},d=a("meta[name=csrf-token]").attr("content"),e=a("meta[name=csrf-param]").attr("content");a("input[name^='__RequestVerificationToken']").each(function(){c[this.name]=this.value}),e!==b&&d!==b&&(c[e]=d);return c}function E(b){return a(b.target).closest(".k-file")}function D(a){return a.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function C(a,b,c){var d,e;a.bind("dragenter",function(a){b(),e=new Date,d||(d=setInterval(function(){var a=new Date-e;a>100&&(c(),clearInterval(d),d=null)},100))}).bind("dragover",function(a){e=new Date})}function B(a){a.stopPropagation(),a.preventDefault()}function A(b,c,d){var e=!1,f="";try{f=a.parseJSON(b),e=!0}catch(g){d()}e&&c(f)}function z(b,c,d){if(!!c._supportsRemove()){var f=b.data("fileNames"),g=a.map(f,function(a){return a.name});c._submitRemove(g,d,function(a,d,e){c._removeFileEntry(b),c.trigger(i,{operation:"remove",files:f,response:a,XMLHttpRequest:e})},function(a,b,b){var d=c.trigger(j,{operation:"remove",files:f,XMLHttpRequest:a});e("Server response: "+a.responseText)})}}function y(a){var b=a.lastIndexOf("\\");return b!=-1?a.substr(b+1):a}function x(a){var b=a.match(f);return b?b[0]:""}function w(a){var b=a.name||a.fileName;return{name:b,extension:x(b),size:a.size||a.fileSize,rawFile:a}}function v(b){return a.map(b,function(a){return w(a)})}function u(a){var b=a[0];return b.files?v(b.files):[{name:y(b.value),extension:x(b.value),size:null}]}function t(b){return a.map(u(b),function(a){return a.name}).join(", ")}var c=window.kendo,d=c.ui.Widget,e=c.logToConsole,f=/\.([^\.]+)$/,g="select",h="upload",i="success",j="error",k="complete",l="cancel",m="load",n="progress",o="remove",p=d.extend({init:function(c,e){var f=this;d.fn.init.call(f,c,e),f.name=c.name,f.multiple=f.options.multiple,f.localization=f.options.localization;var g=f.element;f.wrapper=g.closest(".k-upload"),f.wrapper.length==0&&(f.wrapper=f._wrapInput(g)),f._activeInput(g),f.toggle(f.options.enabled),g.closest("form").bind({submit:a.proxy(f._onParentFormSubmit,f),reset:a.proxy(f._onParentFormReset,f)}),f.options.async.saveUrl!=b?(f._module=f._supportsFormData()?new s(f):new r(f),f._async=!0):f._module=new q(f),f._supportsDrop()&&f._setupDropZone(),f.wrapper.delegate(".k-upload-action","click",a.proxy(f._onFileAction,f)).delegate(".k-upload-selected","click",a.proxy(f._onUploadSelected,f)).delegate(".k-file","t:progress",a.proxy(f._onFileProgress,f)).delegate(".k-file","t:upload-success",a.proxy(f._onUploadSuccess,f)).delegate(".k-file","t:upload-error",a.proxy(f._onUploadError,f))},events:[g,h,i,j,k,l,n,o],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(a){var b=this,c=b.element;d.fn.setOptions.call(b,a),b.multiple=b.options.multiple,c.attr("multiple",b._supportsMultiple()?b.multiple:!1),b.toggle(b.options.enabled)},enable:function(a){a=typeof a=="undefined"?!0:a,this.toggle(a)},disable:function(){this.toggle(!1)},toggle:function(a){a=typeof a=="undefined"?a:!a,this.wrapper.toggleClass("k-state-disabled",a)},_addInput:function(b){var c=this;b.insertAfter(c.element).data("kendoUpload",c),a(c.element).hide().removeAttr("id"),c._activeInput(b)},_activeInput:function(b){var c=this,d=c.wrapper;c.element=b,b.attr("multiple",c._supportsMultiple()?c.multiple:!1).attr("autocomplete","off").click(function(a){d.hasClass("k-state-disabled")&&a.preventDefault()}).change(a.proxy(c._onInputChange,c))},_onInputChange:function(b){var c=this,d=a(b.target),e=c.trigger(g,{files:u(d)});e?(c._addInput(d.clone().val("")),d.remove()):d.trigger("t:select")},_onDrop:function(b){var c=b.originalEvent.dataTransfer,d=this,e=c.files;B(b);if(e.length>0){var f=d.trigger(g,{files:v(e)});f||a(".k-dropzone",d.wrapper).trigger("t:select",[e])}},_enqueueFile:function(b,c){var d=this,e,f,g=a(".k-upload-files",d.wrapper);g.length==0&&(g=a("<ul class='k-upload-files k-reset'></ul>").appendTo(d.wrapper),d.options.showFileList||g.hide()),e=a(".k-file",g),f=a("<li class='k-file'><span class='k-filename' title='"+b+"'>"+b+"</span></li>").appendTo(g).data(c),d._async&&f.prepend("<span class='k-icon'></span>"),d.multiple||e.trigger("t:remove");return f},_removeFileEntry:function(b){var c=b.closest(".k-upload-files"),d;b.remove(),d=a(".k-file",c),d.find("> .k-fail").length===d.length&&this._hideUploadButton(),d.length==0&&c.remove()},_fileAction:function(a,b){var c={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};!c.hasOwnProperty(b)||(this._clearFileAction(a),a.append(this._renderAction(c[b],this.localization[b]).addClass("k-upload-action")))},_fileState:function(a,b){var c=this.localization,d={uploading:{cssClass:"k-loading",text:c.statusUploading},uploaded:{cssClass:"k-success",text:c.statusUploaded},failed:{cssClass:"k-fail",text:c.statusFailed}},e=d[b];if(e){var f=a.children(".k-icon").text(e.text);f[0].className="k-icon "+e.cssClass}},_renderAction:function(b,c){return b!=""?a("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+b+"'></span>"+c+"</button>"):a("<button type='button' class='k-button'>"+c+"</button>")},_clearFileAction:function(a){a.find(".k-upload-action").remove()},_onFileAction:function(b){var c=this;if(!c.wrapper.hasClass("k-state-disabled")){var d=a(b.target).closest(".k-upload-action"),e=d.find(".k-icon"),f=d.closest(".k-file"),g={files:f.data("fileNames")};e.hasClass("k-delete")?c.trigger(o,g)||f.trigger("t:remove",g.data):e.hasClass("k-cancel")?(c.trigger(l,g),f.trigger("t:cancel"),this._checkAllComplete()):e.hasClass("k-retry")&&f.trigger("t:retry")}return!1},_onUploadSelected:function(){this.wrapper.trigger("t:saveSelected");return!1},_onFileProgress:function(b,c){var d=a(".k-progress-status",b.target);d.length==0&&(d=a("<span class='k-progress'><span class='k-state-selected k-progress-status' style='width: 0;'></span></span>").appendTo(a(".k-filename",b.target)).find(".k-progress-status")),d.width(c+"%"),this.trigger(n,{files:E(b).data("fileNames"),percentComplete:c})},_onUploadSuccess:function(a,b,c){var d=E(a);this._fileState(d,"uploaded"),this.trigger(i,{files:d.data("fileNames"),response:b,operation:"upload",XMLHttpRequest:c}),this._supportsRemove()?this._fileAction(d,o):this._clearFileAction(d),this._checkAllComplete()},_onUploadError:function(a,b){var c=E(a);this._fileState(c,"failed"),this._fileAction(c,"retry");var d=this.trigger(j,{operation:"upload",files:c.data("fileNames"),XMLHttpRequest:b});e("Server response: "+b.responseText),this._checkAllComplete()},_showUploadButton:function(){var b=a(".k-upload-selected",this.wrapper);b.length==0&&(b=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(b)},_hideUploadButton:function(){a(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var b=this,c=b.element;c.trigger("t:abort");if(!c.value){var d=a(c);d.attr("disabled","disabled"),window.setTimeout(function(){d.removeAttr("disabled")},0)}},_onParentFormReset:function(){a(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return typeof FormData!="undefined"},_supportsMultiple:function(){return!a.browser.opera},_supportsDrop:function(){var a=this._userAgent().toLowerCase(),c=/chrome/.test(a),d=!c&&/safari/.test(a),e=d&&/windows/.test(a);return!e&&this._supportsFormData()&&this.options.async.saveUrl!=b},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){a(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var b=a(".k-dropzone",this.wrapper).append(a("<em>"+this.localization.dropFilesHere+"</em>")).bind({dragenter:B,dragover:function(a){a.preventDefault()},drop:a.proxy(this._onDrop,this)});C(b,function(){b.addClass("k-dropzone-hovered")},function(){b.removeClass("k-dropzone-hovered")}),C(a(document),function(){b.addClass("k-dropzone-active")},function(){b.removeClass("k-dropzone-active")})},_supportsRemove:function(){return this.options.async.removeUrl!=b},_submitRemove:function(b,c,d,e){var f=this,g=f.options.async.removeField||"fileNames",h=a.extend(c,F());h[g]=b,a.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:h,success:d,error:e})},_wrapInput:function(a){a.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),a.closest(".k-button").append("<span>"+this.localization.select+"</span>");return a.closest(".k-upload")},_checkAllComplete:function(){a(".k-file .k-icon.k-loading",this.wrapper).length==0&&this.trigger(k)}}),q=function(b){this.name="syncUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:remove",a.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};q.prototype={onSelect:function(b){var c=this.upload,d=a(b.target);c._addInput(d.clone().val(""));var e=c._enqueueFile(t(d),{relatedInput:d,fileNames:u(d)});c._fileAction(e,o)},onRemove:function(a){var b=E(a);b.data("relatedInput").remove(),this.upload._removeFileEntry(b)}};var r=function(b){this.name="iframeUploadModule",this.element=b.wrapper,this.upload=b,this.iframes=[],this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};p._frameId=0,r.prototype={onSelect:function(b){var c=this.upload,d=a(b.target),e=this.prepareUpload(d);c.options.async.autoUpload?this.performUpload(e):(c._supportsRemove()&&this.upload._fileAction(e,o),c._showUploadButton())},prepareUpload:function(b){var c=this.upload,d=a(c.element),e=c.options.async.saveField||b.attr("name");c._addInput(b.clone().val("")),b.attr("name",e);var f=this.createFrame(c.name+"_"+p._frameId++);this.registerFrame(f);var g=this.createForm(c.options.async.saveUrl,f.attr("name")).append(d),h=c._enqueueFile(t(b),{frame:f,relatedInput:d,fileNames:u(b)});f.data({form:g,file:h});return h},performUpload:function(b){var c={files:b.data("fileNames")},d=b.data("frame"),e=this.upload;if(!e.trigger(h,c)){e._hideUploadButton(),d.appendTo(document.body);var f=d.data("form").appendTo(document.body);c.data=a.extend({},c.data,F());for(var g in c.data){var i=f.find("input[name='"+g+"']");i.length==0&&(i=a("<input>",{type:"hidden",name:g}).appendTo(f)),i.val(c.data[g])}e._fileAction(b,l),e._fileState(b,"uploading"),d.one("load",a.proxy(this.onIframeLoad,this)),f[0].submit()}else e._removeFileEntry(d.data("file")),this.cleanupFrame(d),this.unregisterFrame(d)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onIframeLoad:function(b){var c=a(b.target);try{var d=c.contents().text()}catch(b){d="Error trying to get server response: "+b}this.processResponse(c,d)},processResponse:function(b,c){var d=b.data("file"),e=this,f={responseText:c};A(c,function(c){a.extend(f,{statusText:"OK",status:"200"}),d.trigger("t:progress",[100]),d.trigger("t:upload-success",[c,f]),e.cleanupFrame(b),e.unregisterFrame(b)},function(){a.extend(f,{statusText:"error",status:"500"}),d.trigger("t:upload-error",[f])})},onCancel:function(b){var c=a(b.target).data("frame");this.stopFrameSubmit(c),this.cleanupFrame(c),this.unregisterFrame(c),this.upload._removeFileEntry(c.data("file"))},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a),d=c.data("frame");d?(this.unregisterFrame(d),this.upload._removeFileEntry(c),this.cleanupFrame(d)):z(c,this.upload,b)},onAbort:function(){var b=this.element,c=this;a.each(this.iframes,function(){a("input",this.data("form")).appendTo(b),c.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(b){return a("<iframe name='"+b+"'"+" id='"+b+"'"+" style='display:none;' />")},createForm:function(b,c){return a("<form enctype='multipart/form-data' method='POST' action='"+b+"'"+" target='"+c+"'"+"/>")},stopFrameSubmit:function(a){typeof a.stop!="undefined"?a.stop():a.document&&(a.document.execCommand("Stop"),a.contentWindow.location.href=a.contentWindow.location.href)},registerFrame:function(a){this.iframes.push(a)},unregisterFrame:function(b){this.iframes=a.grep(this.iframes,function(a){return a.attr("name")!=b.attr("name")})},cleanupFrame:function(a){var b=a.data("form");a.data("file").data("frame",null),setTimeout(function(){b.remove(),a.remove()},1)}};var s=function(b){this.name="formDataUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};s.prototype={onSelect:function(b,c){var d=this.upload,e=this,f=a(b.target),g=c?v(c):this.inputFiles(f),h=this.prepareUpload(f,g);a.each(h,function(){d.options.async.autoUpload?e.performUpload(this):(d._supportsRemove()&&d._fileAction(this,o),d._showUploadButton())})},prepareUpload:function(b,c){var d=this.enqueueFiles(c);b.is("input")&&(a.each(d,function(){a(this).data("relatedInput",b)}),b.data("relatedFileEntries",d),this.upload._addInput(b.clone().val("")));return d},enqueueFiles:function(a){var b=this.upload;fileEntries=[];for(var c=0;c<a.length;c++){var d=a[c],e=d.name,f=b._enqueueFile(e,{fileNames:[d]});f.data("file",d),fileEntries.push(f)}return fileEntries},inputFiles:function(a){return u(a)},performUpload:function(b){var c=this.upload,d=this.createFormData(b.data("file")),e={files:b.data("fileNames")};if(!c.trigger(h,e)){c._fileAction(b,l),c._hideUploadButton(),e.data=a.extend({},e.data,F());for(var f in e.data)d.append(f,e.data[f]);c._fileState(b,"uploading"),this.postFormData(this.upload.options.async.saveUrl,d,b)}else this.removeFileEntry(b)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onCancel:function(a){var b=E(a);this.stopUploadRequest(b),this.removeFileEntry(b)},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a);c.children(".k-icon").is(".k-success")?z(c,this.upload,b):this.removeFileEntry(c)},postFormData:function(a,b,c){var d=new XMLHttpRequest,e=this;c.data("request",d),d.addEventListener("load",function(a){e.onRequestSuccess.call(e,a,c)},!1),d.addEventListener(j,function(a){e.onRequestError.call(e,a,c)},!1),d.upload.addEventListener("progress",function(a){e.onRequestProgress.call(e,a,c)},!1),d.open("POST",a),d.withCredentials="true",d.send(b)},createFormData:function(a){var b=new FormData,c=this.upload;b.append(c.options.async.saveField||c.name,a.rawFile);return b},onRequestSuccess:function(a,b){function e(){b.trigger("t:upload-error",[c])}var c=a.target,d=this;c.status>=200&&c.status<=299?A(c.responseText,function(a){b.trigger("t:progress",[100]),b.trigger("t:upload-success",[a,c]),d.cleanupFileEntry(b)},e):e()},onRequestError:function(a,b){var c=a.target;b.trigger("t:upload-error",[c])},cleanupFileEntry:function(b){var c=b.data("relatedInput"),d=!0;c&&(a.each(c.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=b[0]&&(d=d&&this.children(".k-icon").is(".k-success"))}),d&&c.remove())},removeFileEntry:function(a){this.cleanupFileEntry(a),this.upload._removeFileEntry(a)},onRequestProgress:function(a,b){var c=Math.round(a.loaded*100/a.total);b.trigger("t:progress",[c])},stopUploadRequest:function(a){a.data("request").abort()}},c.ui.plugin(p)})(jQuery);
|
11
|
+
(function(e,t){function n(t){return e.map(o(t),function(e){return e.name}).join(", ")}function o(e){var t=e[0];return t.files?a(t.files):[{name:s(t.value),extension:i(t.value),size:null}]}function a(t){return e.map(t,function(e){return r(e)})}function r(e){var t=e.name||e.fileName;return{name:t,extension:i(t),size:e.size||e.fileSize,rawFile:e}}function i(e){var t=e.match(_);return t?t[0]:""}function s(e){var t=e.lastIndexOf("\\");return-1!=t?e.substr(t+1):e}function l(t,n,o){if(n._supportsRemove()){var a=t.data("fileNames"),r=e.map(a,function(e){return e.name});n._submitRemove(r,o,function(e,o,r){n._removeFileEntry(t),n.trigger(b,{operation:"remove",files:a,response:e,XMLHttpRequest:r})},function(e){n.trigger(w,{operation:"remove",files:a,XMLHttpRequest:e}),g("Server response: "+e.responseText)})}}function p(t,n,o){var a=!1,r="";try{r=e.parseJSON(t),a=!0}catch(i){o()}a&&n(r)}function u(e){e.stopPropagation(),e.preventDefault()}function c(e,t,n,o){var a,r;e.on("dragenter"+t,function(){n(),r=new Date,a||(a=setInterval(function(){var e=new Date-r;e>100&&(o(),clearInterval(a),a=null)},100))}).on("dragover"+t,function(){r=new Date})}function d(e){return e.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function f(t){return e(t.target).closest(".k-file")}function m(){var n={},o=e("meta[name=csrf-token]").attr("content"),a=e("meta[name=csrf-param]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){n[this.name]=this.value}),a!==t&&o!==t&&(n[a]=o),n}var h=window.kendo,v=h.ui.Widget,g=h.logToConsole,_=/\.([^\.]+)$/,y=".kendoUpload",k="select",F="upload",b="success",w="error",x="complete",U="cancel",S="progress",R="remove",C=v.extend({init:function(t,n){var o=this;v.fn.init.call(o,t,n),o.name=t.name,o.multiple=o.options.multiple,o.localization=o.options.localization;var a=o.element;o.wrapper=a.closest(".k-upload"),0===o.wrapper.length&&(o.wrapper=o._wrapInput(a)),o._activeInput(a),o.toggle(o.options.enabled);var r=o._ns=y+"-"+h.guid();a.closest("form").on("submit"+r,e.proxy(o._onParentFormSubmit,o)).on("reset"+r,e.proxy(o._onParentFormReset,o)),o.options.async.saveUrl?(o._module=o._supportsFormData()?new I(o):new E(o),o._async=!0):o._module=new A(o),o._supportsDrop()&&o._setupDropZone(),o.wrapper.delegate(".k-upload-action","click",e.proxy(o._onFileAction,o)).delegate(".k-upload-selected","click",e.proxy(o._onUploadSelected,o)).delegate(".k-file","t:progress",e.proxy(o._onFileProgress,o)).delegate(".k-file","t:upload-success",e.proxy(o._onUploadSuccess,o)).delegate(".k-file","t:upload-error",e.proxy(o._onUploadError,o))},events:[k,F,b,w,x,U,S,R],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(e){var t=this,n=t.element;v.fn.setOptions.call(t,e),t.multiple=t.options.multiple,n.attr("multiple",t._supportsMultiple()?t.multiple:!1),t.toggle(t.options.enabled)},enable:function(e){e=e===t?!0:e,this.toggle(e)},disable:function(){this.toggle(!1)},toggle:function(e){e=e===t?e:!e,this.wrapper.toggleClass("k-state-disabled",e)},destroy:function(){var t=this;e(document).add(e(".k-dropzone",t.wrapper)).add(t.wrapper.closest("form")).off(t._ns),v.fn.destroy.call(t)},_addInput:function(t){var n=this;t.insertAfter(n.element).data("kendoUpload",n),e(n.element).hide().removeAttr("id"),n._activeInput(t)},_activeInput:function(t){var n=this,o=n.wrapper;n.element=t,t.attr("multiple",n._supportsMultiple()?n.multiple:!1).attr("autocomplete","off").click(function(e){o.hasClass("k-state-disabled")&&e.preventDefault()}).change(e.proxy(n._onInputChange,n))},_onInputChange:function(t){var n=this,a=e(t.target),r=n.trigger(k,{files:o(a)});r?(n._addInput(a.clone().val("")),a.remove()):a.trigger("t:select")},_onDrop:function(t){var n=t.originalEvent.dataTransfer,o=this,r=n.files;if(u(t),r.length>0){var i=o.trigger(k,{files:a(r)});i||e(".k-dropzone",o.wrapper).trigger("t:select",[r])}},_enqueueFile:function(t,n){var o,a,r=this,i=e(".k-upload-files",r.wrapper);return 0===i.length&&(i=e("<ul class='k-upload-files k-reset'></ul>").appendTo(r.wrapper),r.options.showFileList||i.hide()),o=e(".k-file",i),a=e("<li class='k-file'><span class='k-filename' title='"+t+"'>"+t+"</span></li>").appendTo(i).data(n),r._async&&a.prepend("<span class='k-icon'></span>"),r.multiple||o.trigger("t:remove"),a},_removeFileEntry:function(t){var n,o=t.closest(".k-upload-files");t.remove(),n=e(".k-file",o),n.find("> .k-fail").length===n.length&&this._hideUploadButton(),0===n.length&&o.remove()},_fileAction:function(e,t){var n={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};n.hasOwnProperty(t)&&(this._clearFileAction(e),e.append(this._renderAction(n[t],this.localization[t]).addClass("k-upload-action")))},_fileState:function(e,t){var n=this.localization,o={uploading:{cssClass:"k-loading",text:n.statusUploading},uploaded:{cssClass:"k-success",text:n.statusUploaded},failed:{cssClass:"k-fail",text:n.statusFailed}},a=o[t];if(a){var r=e.children(".k-icon").text(a.text);r[0].className="k-icon "+a.cssClass}},_renderAction:function(t,n){return""!==t?e("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+t+"'></span>"+n+"</button>"):e("<button type='button' class='k-button'>"+n+"</button>")},_clearFileAction:function(e){e.find(".k-upload-action").remove()},_onFileAction:function(t){var n=this;if(!n.wrapper.hasClass("k-state-disabled")){var o=e(t.target).closest(".k-upload-action"),a=o.find(".k-icon"),r=o.closest(".k-file"),i={files:r.data("fileNames")};a.hasClass("k-delete")?n.trigger(R,i)||r.trigger("t:remove",i.data):a.hasClass("k-cancel")?(n.trigger(U,i),r.trigger("t:cancel"),this._checkAllComplete()):a.hasClass("k-retry")&&r.trigger("t:retry")}return!1},_onUploadSelected:function(){return this.wrapper.trigger("t:saveSelected"),!1},_onFileProgress:function(t,n){var o=e(".k-progress-status",t.target);0===o.length&&(o=e("<span class='k-progress'><span class='k-state-selected k-progress-status' style='width: 0;'></span></span>").appendTo(e(".k-filename",t.target)).find(".k-progress-status")),o.width(n+"%"),this.trigger(S,{files:f(t).data("fileNames"),percentComplete:n})},_onUploadSuccess:function(e,t,n){var o=f(e);this._fileState(o,"uploaded"),this.trigger(b,{files:o.data("fileNames"),response:t,operation:"upload",XMLHttpRequest:n}),this._supportsRemove()?this._fileAction(o,R):this._clearFileAction(o),this._checkAllComplete()},_onUploadError:function(e,t){var n=f(e);this._fileState(n,"failed"),this._fileAction(n,"retry"),this.trigger(w,{operation:"upload",files:n.data("fileNames"),XMLHttpRequest:t}),g("Server response: "+t.responseText),this._checkAllComplete()},_showUploadButton:function(){var t=e(".k-upload-selected",this.wrapper);0===t.length&&(t=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(t)},_hideUploadButton:function(){e(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var t=this,n=t.element;if(n.trigger("t:abort"),!n.value){var o=e(n);o.attr("disabled","disabled"),window.setTimeout(function(){o.removeAttr("disabled")},0)}},_onParentFormReset:function(){e(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return"undefined"!=typeof FormData},_supportsMultiple:function(){var e=this._userAgent().indexOf("Windows")>-1;return!(h.support.browser.opera||h.support.browser.safari&&e)},_supportsDrop:function(){var e=this._userAgent().toLowerCase(),t=/chrome/.test(e),n=!t&&/safari/.test(e),o=n&&/windows/.test(e);return!o&&this._supportsFormData()&&this.options.async.saveUrl},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){var t=this;e(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var n=t._ns,o=e(".k-dropzone",t.wrapper).append(e("<em>"+t.localization.dropFilesHere+"</em>")).on("dragenter"+n,u).on("dragover"+n,function(e){e.preventDefault()}).on("drop"+n,e.proxy(this._onDrop,this));c(o,n,function(){o.addClass("k-dropzone-hovered")},function(){o.removeClass("k-dropzone-hovered")}),c(e(document),n,function(){o.addClass("k-dropzone-active")},function(){o.removeClass("k-dropzone-active")})},_supportsRemove:function(){return!!this.options.async.removeUrl},_submitRemove:function(t,n,o,a){var r=this,i=r.options.async.removeField||"fileNames",s=e.extend(n,m());s[i]=t,jQuery.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:s,success:o,error:a})},_wrapInput:function(e){return e.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),e.closest(".k-button").append("<span>"+this.localization.select+"</span>"),e.closest(".k-upload")},_checkAllComplete:function(){0===e(".k-file .k-icon.k-loading",this.wrapper).length&&this.trigger(x)}}),A=function(t){this.name="syncUploadModule",this.element=t.wrapper,this.upload=t,this.element.bind("t:select",e.proxy(this.onSelect,this)).bind("t:remove",e.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};A.prototype={onSelect:function(t){var a=this.upload,r=e(t.target);a._addInput(r.clone().val(""));var i=a._enqueueFile(n(r),{relatedInput:r,fileNames:o(r)});a._fileAction(i,R)},onRemove:function(e){var t=f(e);t.data("relatedInput").remove(),this.upload._removeFileEntry(t)}};var E=function(t){this.name="iframeUploadModule",this.element=t.wrapper,this.upload=t,this.iframes=[],this.element.bind("t:select",e.proxy(this.onSelect,this)).bind("t:cancel",e.proxy(this.onCancel,this)).bind("t:retry",e.proxy(this.onRetry,this)).bind("t:remove",e.proxy(this.onRemove,this)).bind("t:saveSelected",e.proxy(this.onSaveSelected,this)).bind("t:abort",e.proxy(this.onAbort,this))};C._frameId=0,E.prototype={onSelect:function(t){var n=this.upload,o=e(t.target),a=this.prepareUpload(o);n.options.async.autoUpload?this.performUpload(a):(n._supportsRemove()&&this.upload._fileAction(a,R),n._showUploadButton())},prepareUpload:function(t){var a=this.upload,r=e(a.element),i=a.options.async.saveField||t.attr("name");a._addInput(t.clone().val("")),t.attr("name",i);var s=this.createFrame(a.name+"_"+C._frameId++);this.registerFrame(s);var l=this.createForm(a.options.async.saveUrl,s.attr("name")).append(r),p=a._enqueueFile(n(t),{frame:s,relatedInput:r,fileNames:o(t)});return s.data({form:l,file:p}),p},performUpload:function(t){var n={files:t.data("fileNames")},o=t.data("frame"),a=this.upload;if(a.trigger(F,n))a._removeFileEntry(o.data("file")),this.cleanupFrame(o),this.unregisterFrame(o);else{a._hideUploadButton(),o.appendTo(document.body);var r=o.data("form").appendTo(document.body);n.data=e.extend({},n.data,m());for(var i in n.data){var s=r.find("input[name='"+i+"']");0===s.length&&(s=e("<input>",{type:"hidden",name:i}).appendTo(r)),s.val(n.data[i])}a._fileAction(t,U),a._fileState(t,"uploading"),o.one("load",e.proxy(this.onIframeLoad,this)),r[0].submit()}},onSaveSelected:function(){var t=this;e(".k-file",this.element).each(function(){var n=e(this),o=d(n);o||t.performUpload(n)})},onIframeLoad:function(t){var n,o=e(t.target);try{n=o.contents().text()}catch(t){n="Error trying to get server response: "+t}this.processResponse(o,n)},processResponse:function(t,n){var o=t.data("file"),a=this,r={responseText:n};p(n,function(n){e.extend(r,{statusText:"OK",status:"200"}),o.trigger("t:progress",[100]),o.trigger("t:upload-success",[n,r]),a.cleanupFrame(t),a.unregisterFrame(t)},function(){e.extend(r,{statusText:"error",status:"500"}),o.trigger("t:upload-error",[r])})},onCancel:function(t){var n=e(t.target).data("frame");this.stopFrameSubmit(n),this.cleanupFrame(n),this.unregisterFrame(n),this.upload._removeFileEntry(n.data("file"))},onRetry:function(e){var t=f(e);this.performUpload(t)},onRemove:function(e,t){var n=f(e),o=n.data("frame");o?(this.unregisterFrame(o),this.upload._removeFileEntry(n),this.cleanupFrame(o)):l(n,this.upload,t)},onAbort:function(){var t=this.element,n=this;e.each(this.iframes,function(){e("input",this.data("form")).appendTo(t),n.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(t){return e("<iframe name='"+t+"'"+" id='"+t+"'"+" style='display:none;' />")},createForm:function(t,n){return e("<form enctype='multipart/form-data' method='POST' action='"+t+"'"+" target='"+n+"'"+"/>")},stopFrameSubmit:function(e){e.stop!==t?e.stop():e.document&&(e.document.execCommand("Stop"),e.contentWindow.location.href=e.contentWindow.location.href)},registerFrame:function(e){this.iframes.push(e)},unregisterFrame:function(t){this.iframes=e.grep(this.iframes,function(e){return e.attr("name")!=t.attr("name")})},cleanupFrame:function(e){var t=e.data("form");e.data("file").data("frame",null),setTimeout(function(){t.remove(),e.remove()},1)}};var I=function(t){this.name="formDataUploadModule",this.element=t.wrapper,this.upload=t,this.element.bind("t:select",e.proxy(this.onSelect,this)).bind("t:cancel",e.proxy(this.onCancel,this)).bind("t:remove",e.proxy(this.onRemove,this)).bind("t:retry",e.proxy(this.onRetry,this)).bind("t:saveSelected",e.proxy(this.onSaveSelected,this)).bind("t:abort",e.proxy(this.onAbort,this))};I.prototype={onSelect:function(t,n){var o=this.upload,r=this,i=e(t.target),s=n?a(n):this.inputFiles(i),l=this.prepareUpload(i,s);e.each(l,function(){o.options.async.autoUpload?r.performUpload(this):(o._supportsRemove()&&o._fileAction(this,R),o._showUploadButton())})},prepareUpload:function(t,n){var o=this.enqueueFiles(n);return t.is("input")&&(e.each(o,function(){e(this).data("relatedInput",t)}),t.data("relatedFileEntries",o),this.upload._addInput(t.clone().val(""))),o},enqueueFiles:function(t){var n,o,a,r,i=this.upload,s=t.length,l=[];if(i.options.async.batch===!0)n=e.map(t,function(e){return e.name}).join(", "),r=i._enqueueFile(n,{fileNames:t}),r.data("files",t),l.push(r);else for(o=0;s>o;o++)a=t[o],n=a.name,r=i._enqueueFile(n,{fileNames:[a]}),r.data("files",[a]),l.push(r);return l},inputFiles:function(e){return o(e)},performUpload:function(t){var n=this.upload,o=this.createFormData(t.data("files")),a={files:t.data("fileNames")};if(n.trigger(F,a))this.removeFileEntry(t);else{n._fileAction(t,U),n._hideUploadButton(),a.data=e.extend({},a.data,m());for(var r in a.data)o.append(r,a.data[r]);n._fileState(t,"uploading"),this.postFormData(this.upload.options.async.saveUrl,o,t)}},onSaveSelected:function(){var t=this;e(".k-file",this.element).each(function(){var n=e(this),o=d(n);o||t.performUpload(n)})},onCancel:function(e){var t=f(e);this.stopUploadRequest(t),this.removeFileEntry(t)},onRetry:function(e){var t=f(e);this.performUpload(t)},onRemove:function(e,t){var n=f(e);n.children(".k-icon").is(".k-success")?l(n,this.upload,t):this.removeFileEntry(n)},postFormData:function(e,t,n){var o=new XMLHttpRequest,a=this;n.data("request",o),o.addEventListener("load",function(e){a.onRequestSuccess.call(a,e,n)},!1),o.addEventListener(w,function(e){a.onRequestError.call(a,e,n)},!1),o.upload.addEventListener("progress",function(e){a.onRequestProgress.call(a,e,n)},!1),o.open("POST",e),o.withCredentials="true",o.send(t)},createFormData:function(e){var t,n=new FormData,o=this.upload,a=e.length;for(t=0;a>t;t++)n.append(o.options.async.saveField||o.name,e[t].rawFile);return n},onRequestSuccess:function(e,t){function n(){t.trigger("t:upload-error",[o])}var o=e.target,a=this;o.status>=200&&299>=o.status?p(o.responseText,function(e){t.trigger("t:progress",[100]),t.trigger("t:upload-success",[e,o]),a.cleanupFileEntry(t)},n):n()},onRequestError:function(e,t){var n=e.target;t.trigger("t:upload-error",[n])},cleanupFileEntry:function(t){var n=t.data("relatedInput"),o=!0;n&&(e.each(n.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=t[0]&&(o=o&&this.children(".k-icon").is(".k-success"))}),o&&n.remove())},removeFileEntry:function(e){this.cleanupFileEntry(e),this.upload._removeFileEntry(e)},onRequestProgress:function(e,t){var n=Math.round(100*e.loaded/e.total);t.trigger("t:progress",[n])},stopUploadRequest:function(e){e.data("request").abort()}},h.ui.plugin(C)})(window.kendo.jQuery);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
7
|
+
* If you do not own a commercial license, this file shall be governed by the
|
8
|
+
* GNU General Public License (GPL) version 3.
|
9
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
10
|
+
*/
|
11
|
+
(function(t){function e(e){e.preventDefault();var n=t(e.currentTarget),i=n.closest(".k-widget").parent();i[0]||(i=n.parent()),i.trigger(t.Event(e.type,{target:n}))}function n(t,e){var n=t.x.location,i=t.y.location,o=e.x.location,r=e.y.location,s=n-o,a=i-r;return{center:{x:(n+o)/2,y:(i+r)/2},distance:Math.sqrt(s*s+a*a)}}function i(t){var e,n,i,o=[],s=t.originalEvent,a=0;if(t.api)o.push({id:2,event:t,target:t.target,location:t});else if(t.type.match(/touch/))for(n=s?s.changedTouches:[],e=n.length;e>a;a++)i=n[a],o.push({location:i,event:t,target:i.target,id:i.identifier});else r.pointers?o.push({location:s,event:t,target:t.target,id:s.pointerId}):o.push({id:1,event:t,target:t.target,location:t});return o}var o=window.kendo,r=o.support,s=r.pointers,a=window.document,c=t(a.documentElement),u=o.Class,h=o.Observable,l=t.now,d=t.extend,f=r.mobileOS,p=f&&f.android,g="press",v="start",_="move",m="end",T="cancel",x="tap",y="gesturestart",w="gesturechange",D="gestureend",E="gesturetap",M=u.extend({init:function(t,e){var n=this;n.axis=t,n._updateLocationData(e),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=l()},move:function(t){var e=this,n=t["page"+e.axis],i=l(),o=i-e.timeStamp||1;(n||!p)&&(e.delta=n-e.location,e._updateLocationData(t),e.initialDelta=n-e.startLocation,e.velocity=e.delta/o,e.timeStamp=i)},_updateLocationData:function(t){var e=this,n=e.axis;e.location=t["page"+n],e.client=t["client"+n],e.screen=t["screen"+n]}}),b=u.extend({init:function(t,e,n){var i=this;d(i,{x:new M("X",n.location),y:new M("Y",n.location),userEvents:t,target:e,currentTarget:n.currentTarget,id:n.id,_moved:!1,_finished:!1}),i._trigger(g,n)},move:function(t){var e=this;if(!e._finished){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(k.current&&k.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(_,t)}},end:function(t){var e=this;e.endTime=l(),e._finished||(e._moved?e._trigger(m,t):e._trigger(x,t),e.dispose())},dispose:function(){var e=this,n=e.userEvents,i=n.touches;e._finished=!0,i.splice(t.inArray(e,i),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(t){this.startTime=l(),this._moved=!0,this._trigger(v,t)},_trigger:function(t,e){var n=this,i=e.event,o={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(t,o)&&i.preventDefault()},_withinIgnoreThreshold:function(){var t=this.x.initialDelta,e=this.y.initialDelta;return this.userEvents.threshold>=Math.sqrt(t*t+e*e)}}),k=h.extend({init:function(n,i){var a,u=this;if(i=i||{},a=u.filter=i.filter,u.threshold=i.threshold||0,u.touches=[],u._maxTouches=i.multiTouch?2:1,n=t(n).handler(u),h.fn.init.call(u),d(u,{element:n,surface:i.global?c:i.surface||n,stopPropagation:i.stopPropagation,pressed:!1}),u.surface.handler(u).on("move","_move").on("up cancel","_end"),n.on("down",a,"_start"),s&&n.css("-ms-touch-action","pinch-zoom double-tap-zoom"),i.preventDragEvent&&n.on("dragstart",o.preventDefault),i.allowSelection||n.on("mousedown selectstart",a,e),r.eventCapture)for(var l=o.eventMap.up.split(" "),f=0,p=l.length,M=u.surface[0],b=function(t){u._isMoved()&&t.preventDefault()};p>f;f++)M.addEventListener(l[f],b,!0);u.bind([g,x,v,_,m,T,y,w,D,E],i)},destroy:function(){this.element.kendoDestroy(),this.surface.kendoDestroy(),this._disposeAll()},capture:function(){k.current=this},cancel:function(){this._disposeAll(),this.trigger(T)},notify:function(e,i){var o=this,r=o.touches;if(this._isMultiTouch()){switch(e){case _:e=w;break;case m:e=D;break;case x:e=E}t.extend(i,{touches:r},n(r[0],r[1]))}return this.trigger(e,i)},press:function(t,e,n){this._apiCall("_start",t,e,n)},move:function(t,e){this._apiCall("_move",t,e)},end:function(t,e){this._apiCall("_end",t,e)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){t.each(this.touches,function(){this.dispose()})},_isMoved:function(){return t.grep(this.touches,function(t){return t.isMoved()}).length},_isPressed:function(){return this.touches.length},_start:function(e){var n,o,r=this,s=0,a=r.filter,c=i(e),u=c.length;if(!r._maxTouchesReached())for(k.current=null,r.currentTarget=e.currentTarget,r.stopPropagation&&e.stopPropagation();u>s&&!r._maxTouchesReached();s++)o=c[s],n=t(o.target),n=a?n.is(a)?n:n.closest(a):r.element,n.length&&(r.touches.push(new b(r,n,o)),r._isMultiTouch()&&r.notify("gesturestart",{}))},_move:function(t){this._eachTouch("move",t)},_end:function(t){this._eachTouch("end",t)},_eachTouch:function(t,e){var n,o,r,s,a=this,c={},u=i(e),h=a.touches;for(n=0;h.length>n;n++)o=h[n],c[o.id]=o;for(n=0;u.length>n;n++)r=u[n],s=c[r.id],s&&s[t](r)},_apiCall:function(e,n,i,o){this[e]({api:!0,pageX:n,pageY:i,target:o||this.element,stopPropagation:t.noop,preventDefault:t.noop})}});o.getTouches=i,o.touchDelta=n,o.UserEvents=k})(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
|
11
|
+
(function(t,e){function a(e){var a,u=r.ui.validator.ruleResolvers||{},F={};for(a in u)t.extend(!0,F,u[a].resolve(e));return F}function u(t){return t.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function F(t){return t=(t+"").split("."),t.length>1?t[1].length:0}var r=window.kendo,n=r.ui.Widget,i=".kendoValidator",l="k-invalid-msg",s="k-invalid",o=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,d=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,p=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])",D="[type=number],[type=range]",f="blur",v="name",m="form",c="novalidate",g=t.proxy,x=function(t,e){return"string"==typeof e&&(e=RegExp("^(?:"+e+")$")),e.test(t)},h=function(t,e,a){var u=t.val();return t.filter(e).length&&""!==u?x(u,a):!0},C=function(t,a){return t.length?t[0].attributes[a]!==e:!1},y=/(\[|\]|\$|\.|\:|\+)/g;r.ui.validator||(r.ui.validator={rules:{},messages:{}});var E=n.extend({init:function(e,u){var F=this,i=a(e);u=u||{},u.rules=t.extend({},r.ui.validator.rules,i.rules,u.rules),u.messages=t.extend({},r.ui.validator.messages,i.messages,u.messages),n.fn.init.call(F,e,u),F._errorTemplate=r.template(F.options.errorTemplate),F.element.is(m)&&F.element.attr(c,c),F._errors={},F._attachEvents()},options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> #=message#</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date"},rules:{required:function(t){var e=t.filter("[type=checkbox]").length&&"checked"!==t.attr("checked"),a=t.val();return!(C(t,"required")&&(""===a||!a||e))},pattern:function(t){return t.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length&&""!==t.val()?x(t.val(),t.attr("pattern")):!0},min:function(t){if(t.filter(D+",["+r.attr("type")+"=number]").filter("[min]").length&&""!==t.val()){var e=parseFloat(t.attr("min"))||0,a=parseFloat(t.val());return a>=e}return!0},max:function(t){if(t.filter(D+",["+r.attr("type")+"=number]").filter("[max]").length&&""!==t.val()){var e=parseFloat(t.attr("max"))||0,a=parseFloat(t.val());return e>=a}return!0},step:function(t){if(t.filter(D+",["+r.attr("type")+"=number]").filter("[step]").length&&""!==t.val()){var e,a=parseFloat(t.attr("min"))||0,u=parseFloat(t.attr("step"))||1,n=parseFloat(t.val()),i=F(u);return i?(e=Math.pow(10,i),0===(n-a)*e%(u*e)/Math.pow(100,i)):0===(n-a)%u}return!0},email:function(t){return h(t,"[type=email],["+r.attr("type")+"=email]",o)},url:function(t){return h(t,"[type=url],["+r.attr("type")+"=url]",d)},date:function(t){return t.filter("[type^=date],["+r.attr("type")+"=date]").length&&""!==t.val()?null!==r.parseDate(t.val(),t.attr(r.attr("format"))):!0}},validateOnBlur:!0},destroy:function(){n.fn.destroy.call(this),this.element.off(i)},_submit:function(t){return this.validate()?!0:(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),!1)},_attachEvents:function(){var e=this;e.element.is(m)&&e.element.on("submit"+i,g(e._submit,e)),e.options.validateOnBlur&&(e.element.is(p)?e.element.on(f+i,function(){e.validateInput(e.element)}):e.element.on(f+i,p,function(){e.validateInput(t(this))}))},validate:function(){var t,e,a,u=this,F=!1;if(u._errors={},!u.element.is(p)){for(t=u.element.find(p),e=0,a=t.length;a>e;e++)u.validateInput(t.eq(e))||(F=!0);return!F}return u.validateInput(u.element)},validateInput:function(e){e=t(e);var a,F=this,r=F._errorTemplate,n=F._checkValidity(e),i=n.valid,o="."+l,d=e.attr(v)||"",p=F._findMessageContainer(d).add(e.next(o)).hide();if(e.removeAttr("aria-invalid"),!i){a=F._extractMessage(e,n.key),F._errors[d]=a;var D=t(r({message:u(a)}));F._decorateMessageContainer(D,d),p.replaceWith(D).length||D.insertAfter(e),D.show(),e.attr("aria-invalid",!0)}return e.toggleClass(s,!i),i},_findMessageContainer:function(t){var e,a=r.ui.validator.messageLocators,u=this.element.find("."+l+"["+r.attr("for")+"="+t.replace(y,"\\$1")+"]");for(e in a)u=u.add(a[e].locate(this.element,t));return u},_decorateMessageContainer:function(t,e){var a,u=r.ui.validator.messageLocators;t.addClass(l).attr(r.attr("for"),e||"");for(a in u)u[a].decorate(t,e);t.attr("role","alert")},_extractMessage:function(e,a){var u=this,F=u.options.messages[a],n=e.attr(v);return F=t.isFunction(F)?F(e):F,r.format(e.attr(r.attr(a+"-msg"))||e.attr("validationMessage")||e.attr("title")||F||"",n,e.attr(a))},_checkValidity:function(t){var e,a=this.options.rules;for(e in a)if(!a[e](t))return{valid:!1,key:e};return{valid:!0}},errors:function(){var t,e=[],a=this._errors;for(t in a)e.push(a[t]);return e}});r.ui.plugin(E)})(window.kendo.jQuery);
|
@@ -1,10 +1,27 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function bk(d,e){var f={},g,h;for(g in e)h=bj(d,g),h!==b&&(bf.test(g)&&(h=c.template(a("#"+h).html())),f[g]=h);return f}function bj(d,e){var f;e.indexOf("data")===0&&(e=e.substring(4),e=e.charAt(0).toLowerCase()+e.substring(1)),e=e.replace(bi,"-$1"),f=d.getAttribute("data-"+c.ns+e),f===null?f=b:f==="null"?f=null:f==="true"?f=!0:f==="false"?f=!1:isNaN(parseFloat(f))?bg.test(f)&&!bh.test(f)&&(f=a.parseJSON(f)):f=parseFloat(f);return f}function _(a){return(""+a).replace(Y,"&").replace(Z,"<").replace($,">")}function X(a,b,c,d){b&&(b=b.split(" "),e(b,function(b,c){a.toggleClass(c,d)}));return a}function W(a,b,c,d,e,f){return T.transitionPromise(a,b,U(c,d,e,f))}function V(b,c,d,e,f){b.each(function(b,g){g=a(g),g.queue(function(){T.promise(g,U(c,d,e,f))})});return b}function U(a,b,c,e){typeof a===r&&(i(b)&&(e=b,b=400,c=!1),i(c)&&(e=c,c=!1),typeof b===v&&(c=b,b=400),a={effects:a,duration:b,reverse:c,complete:e});return d({effects:{},duration:400,reverse:!1,init:h,teardown:h,hide:!1,show:!1},a,{completeCallback:a.complete,complete:h})}function S(a){var b={};e(typeof a=="string"?a.split(" "):a,function(a){b[a]=this});return b}function Q(a,b){b||(b="offset");var c=a[b](),d=m.mobileOS;if(m.touch&&d.ios&&d.flatVersion<410){var e=b=="offset"?c:a.offset(),f=c.left==e.left&&c.top==e.top;if(f)return{top:c.top-window.scrollY,left:c.left-window.scrollX}}return c}function P(b){return a.trim(a(b).contents().filter(function(){return this.nodeType!=8}).html())===""}function O(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&c!="toJSON"&&b++;return b}function N(a,b){var c,d,e,f;for(c in b)d=b[c],e=typeof d,e===t&&d!==null&&d.constructor!==Array?d instanceof Date?a[c]=new Date(d.getTime()):(f=a[c],typeof f===t?a[c]=f||{}:a[c]={},N(a[c],d)):e!==w&&(a[c]=d);return a}function M(a){var b=1,c=arguments.length;for(b=1;b<c;b++)N(a,arguments[b]);return a}function L(b){var d=a.browser,e;if(!b.parent().hasClass("k-animation-container")){var f=b.css(c.support.transitions.css+"box-shadow")||b.css("box-shadow"),g=f?f.match(p)||[0,0,0,0,0]:[0,0,0,0,0],h=j.max(+g[3],+(g[4]||0)),i=-g[1]+h,k=+g[1]+h,l=+g[2]+h,m=b[0].style.width,o=b[0].style.height,q=n.test(m),r=n.test(o);d.opera&&(i=k=l=5),e=q||r,q||(m=b.outerWidth()),r||(o=b.outerHeight()),b.wrap(a("<div/>").addClass("k-animation-container").css({width:m,height:o,marginLeft:-i,paddingLeft:i,paddingRight:k,paddingBottom:l})),e&&b.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}else{var s=b.parent(".k-animation-container"),t=s[0].style;s.is(":hidden")&&s.show(),e=n.test(t.width)||n.test(t.height),e||s.css({width:b.outerWidth(),height:b.outerHeight()})}d.msie&&j.floor(d.version)<=7&&b.css({zoom:1});return b.parent()}function K(a){return a<10?"0"+a:a}function D(a,b){if(b)return"'"+a.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var c=a.charAt(0),d=a.substring(1);return c==="="?"+("+d+")+":c===":"?"+e("+d+")+":";"+a+";o+="}function B(){}var c=window.kendo=window.kendo||{},d=a.extend,e=a.each,f=a.proxy,g=a.isArray,h=a.noop,i=a.isFunction,j=Math,k,l=window.JSON||{},m={},n=/%/,o=/\{(\d+)(:[^\}]+)?\}/g,p=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,q="function",r="string",s="number",t="object",u="null",v="boolean",w="undefined",x={},y={},z=[].slice,A=window.Globalize;B.extend=function(a){var b=function(){},c,e=this,f=a&&a.init?a.init:function(){e.apply(this,arguments)},g;b.prototype=e.prototype,g=f.fn=f.prototype=new b;for(c in a)typeof a[c]!==t||a[c]instanceof Array||a[c]===null?g[c]=a[c]:g[c]=d(!0,{},b.prototype[c],a[c]);g.constructor=f,f.extend=e.extend;return f};var C=B.extend({init:function(){this._events={}},bind:function(a,b,c){var d=this,e,f=typeof a===r?[a]:a,g,h,i,j=typeof b===q,k;for(e=0,g=f.length;e<g;e++)a=f[e],i=j?b:b[a],i&&(c&&(h=i,i=function(){d.unbind(a,i),h.apply(d,arguments)}),k=d._events[a]=d._events[a]||[],k.push(i));return d},one:function(a,b){return this.bind(a,b,!0)},first:function(a,b){var c=this,d,e=typeof a===r?[a]:a,f,g,h=typeof b===q,i;for(d=0,f=e.length;d<f;d++)a=e[d],g=h?b:b[a],g&&(i=c._events[a]=c._events[a]||[],i.unshift(g));return c},trigger:function(a,b){var c=this,d=c._events[a],e,f,g=!1;if(d){b=b||{},b.sender=c,b.preventDefault=function(){g=!0},b.isDefaultPrevented=function(){return g},d=d.slice();for(e=0,f=d.length;e<f;e++)d[e].call(c,b)}return g},unbind:function(a,b){var c=this,d=c._events[a],e,f;if(d)if(b)for(e=0,f=d.length;e<f;e++)d[e]===b&&d.splice(e,1);else c._events[a]=[];return c}}),E=/^\w+/,F=/\$\{([^}]*)\}/g,G=/\\\}/g,H=/__CURLY__/g,I=/\\#/g,J=/__SHARP__/g;k={paramName:"data",useWithBlock:!0,render:function(a,b){var c,d,e="";for(c=0,d=b.length;c<d;c++)e+=a(b[c]);return e},compile:function(b,e){var f=d({},this,e),g=f.paramName,h=g.match(E)[0],j=f.useWithBlock,k="var o,e=kendo.htmlEncode;",l,m;if(i(b)){if(b.length===2)return function(c){return b(a,{data:c}).join("")};return b}k+=j?"with("+g+"){":"",k+="o=",l=b.replace(G,"__CURLY__").replace(F,"#=e($1)#").replace(H,"}").replace(I,"__SHARP__").split("#");for(m=0;m<l.length;m++)k+=D(l[m],m%2===0);k+=j?";}":";",k+="return o;",k=k.replace(J,"#");try{return new Function(h,k)}catch(n){throw new Error(c.format("Invalid template:'{0}' Generated code:'{1}'",b,k))}}},function(){function h(a,d){var i,j,k,l,m=b,n,o=d[a],p;o&&typeof o===t&&typeof o.toJSON===q&&(o=o.toJSON(a)),typeof e===q&&(o=e.call(d,a,o)),p=typeof o;if(p===r)return g(o);if(p===s)return isFinite(o)?String(o):u;if(p===v||p===u)return String(o);if(p===t){if(!o)return u;b+=c,n=[];if(f.apply(o)==="[object Array]"){l=o.length;for(i=0;i<l;i++)n[i]=h(i,o)||u;k=n.length===0?"[]":b?"[\n"+b+n.join(",\n"+b)+"\n"+m+"]":"["+n.join(",")+"]",b=m;return k}if(e&&typeof e===t){l=e.length;for(i=0;i<l;i++)typeof e[i]===r&&(j=e[i],k=h(j,o),k&&n.push(g(j)+(b?": ":":")+k))}else for(j in o)Object.hasOwnProperty.call(o,j)&&(k=h(j,o),k&&n.push(g(j)+(b?": ":":")+k));k=n.length===0?"{}":b?"{\n"+b+n.join(",\n"+b)+"\n"+m+"}":"{"+n.join(",")+"}",b=m;return k}}function g(b){a.lastIndex=0;return a.test(b)?'"'+b.replace(a,function(a){var b=d[a];return typeof b===r?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}var a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b,c,d={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},e,f={}.toString;typeof Date.prototype.toJSON!==q&&(Date.prototype.toJSON=function(a){var b=this;return isFinite(b.valueOf())?b.getUTCFullYear()+"-"+K(b.getUTCMonth()+1)+"-"+K(b.getUTCDate())+"T"+K(b.getUTCHours())+":"+K(b.getUTCMinutes())+":"+K(b.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()}),typeof l.stringify!==q&&(l.stringify=function(a,d,f){var g;b="",c="";if(typeof f===s)for(g=0;g<f;g+=1)c+=" ";else typeof f===r&&(c=f);e=d;if(d&&typeof d!==q&&(typeof d!==t||typeof d.length!==s))throw new Error("JSON.stringify");return h("",{"":a})})}(),function(){function v(a,c,f){f=t(f);var j=f.numberFormat,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,s=j.pattern[0],u=[],v,w,x,y,z,A=a<0,B,C,D,E,F=h,G=h,H,I,J,K,L,M,N,O,P,Q=-1,R;if(a===b)return h;if(!isFinite(a))return a;if(!c)return f.name.length?a.toLocaleString():a.toString();z=d.exec(c);if(z){c=z[1].toLowerCase(),w=c==="c",x=c==="p";if(w||x)j=w?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,v=j.symbol,s=j.pattern[A?0:1];y=z[2],y&&(r=+y);if(c==="e")return y?a.toExponential(r):a.toExponential();x&&(a*=100),a=a.toFixed(r),a=a.split(i),B=a[0],C=a[1],A&&(B=B.substring(1)),G=B,D=B.length;if(D>=o){G=h;for(H=0;H<D;H++)H>0&&(D-H)%o===0&&(G+=p),G+=B.charAt(H)}C&&(G+=q+C);if(c==="n"&&!A)return G;a=h;for(H=0,I=s.length;H<I;H++)J=s.charAt(H),J==="n"?a+=G:J==="$"||J==="%"?a+=v:a+=J;return a}A&&(a=-a),c=c.split(";");if(A&&c[1])c=c[1],L=!0;else if(a===0){c=c[2]||c[0];if(c.indexOf(l)==-1&&c.indexOf(m)==-1)return c}else c=c[0];if(c.indexOf("'")>-1||c.indexOf('"')>-1)c=c.replace(e,function(a){u.push(a);return n});w=c.indexOf("$")!=-1,x=c.indexOf("%")!=-1,x&&(a*=100);if(w||x)j=w?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,v=j.symbol;K=c.indexOf(k)>-1,K&&(c=c.replace(g,h)),M=c.indexOf(i),I=c.length,M!=-1?(O=c.lastIndexOf(m),N=c.lastIndexOf(l),C=a.toString().split(i)[1]||h,N>O&&C.length>N-O?H=N:O!=-1&&O>=M&&(H=O),H&&(a=a.toFixed(H-M))):a=a.toFixed(0),N=c.indexOf(l),P=O=c.indexOf(m),N==-1&&O!=-1?Q=O:N!=-1&&O==-1?Q=N:Q=N>O?O:N,N=c.lastIndexOf(l),O=c.lastIndexOf(m),N==-1&&O!=-1?R=O:N!=-1&&O==-1?R=N:R=N>O?N:O,Q==I&&(R=Q);if(Q!=-1){G=a.toString().split(i),B=G[0],C=G[1]||h,D=B.length,E=C.length;if(K)if(D===o&&D<M-P)B=p+B;else if(D>o){G=h;for(H=0;H<D;H++)H>0&&(D-H)%o===0&&(G+=p),G+=B.charAt(H);B=G}a=c.substring(0,Q),A&&!L&&(a+="-");for(H=Q;H<I;H++){J=c.charAt(H);if(M==-1){if(R-H<D){a+=B;break}}else{O!=-1&&O<H&&(F=h),M-H<=D&&M-H>-1&&(a+=B,H=M);if(M===H){a+=(C?q:h)+C,H+=R-M+1;continue}}J===m?(a+=J,F=J):J===l&&(a+=F)}R>=Q&&(a+=c.substring(R+1));if(w||x){G=h;for(H=0,I=a.length;H<I;H++)J=a.charAt(H),G+=J==="$"||J==="%"?v:J;a=G}if(u[0]){I=u.length;for(H=0;H<I;H++)a=a.replace(n,u[H])}}return a}function u(c,d,e){e=t(e);var f=e.calendars.standard,g=f.days,h=f.months;d=f.patterns[d]||d;return d.replace(a,function(a){var d;a==="d"?d=c.getDate():a==="dd"?d=K(c.getDate()):a==="ddd"?d=g.namesAbbr[c.getDay()]:a==="dddd"?d=g.names[c.getDay()]:a==="M"?d=c.getMonth()+1:a==="MM"?d=K(c.getMonth()+1):a==="MMM"?d=h.namesAbbr[c.getMonth()]:a==="MMMM"?d=h.names[c.getMonth()]:a==="yy"?d=K(c.getFullYear()%100):a==="yyyy"?d=c.getFullYear():a==="h"?d=c.getHours()%12||12:a==="hh"?d=K(c.getHours()%12||12):a==="H"?d=c.getHours():a==="HH"?d=K(c.getHours()):a==="m"?d=c.getMinutes():a==="mm"?d=K(c.getMinutes()):a==="s"?d=c.getSeconds():a==="ss"?d=K(c.getSeconds()):a==="f"?d=j.floor(c.getMilliseconds()/100):a==="ff"?d=j.floor(c.getMilliseconds()/10):a==="fff"?d=c.getMilliseconds():a==="tt"&&(d=c.getHours()<12?f.AM[0]:f.PM[0]);return d!==b?d:a.slice(1,a.length-1)})}function t(a){a&&(a=q(a));return a||c.cultures.current}function q(a){if(a){if(a.numberFormat)return a;if(typeof a===r){var b=c.cultures;return b[a]||b[a.split("-")[0]]||null}return null}return null}var a=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,e=/["'].*?["']/g,g=/\,/g,h="",i=".",k=",",l="#",m="0",n="??",p="en-US";c.cultures={"en-US":{name:p,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}},c.culture=function(a){var d=c.cultures,e;if(a!==b)e=q(a)||d[p],e.calendar=e.calendars.standard,d.current=e;else return d.current},c.findCulture=q,c.getCulture=t,c.culture(p);var w=function(a,c,d){if(c){if(a instanceof Date)return u(a,c,d);if(typeof a===s)return v(a,c,d)}return a!==b?a:""};A&&(w=f(A.format,A)),c.format=function(a){var b=arguments;return a.replace(o,function(a,c,d){var e=b[parseInt(c,10)+1];return w(e,d?d.substring(1):"")})},c._extractFormat=function(a){a.slice(0,3)==="{0:"&&(a=a.slice(3,a.length-1));return a},c.toString=w}(),function(){function m(a,b,c){if(!a)return null;var d=function(a){var c=0;while(b[t]===a)c++,t++;c>0&&(t-=1);return c},f=function(b){var c=new RegExp("^\\d{1,"+b+"}"),d=a.substr(u,b).match(c);if(d){d=d[0],u+=d.length;return parseInt(d,10)}return null},g=function(b){var c=0,d=b.length,e,f;for(;c<d;c++){e=b[c],f=e.length;if(a.substr(u,f)==e){u+=f;return c+1}}return null},i=function(){var c=!1;a.charAt(u)===b[t]&&(u++,c=!0);return c},k=c.calendars.standard,m=null,n=null,o=null,p=null,q=null,r=null,s=null,t=0,u=0,v=!1,w=new Date,x=30,y=w.getFullYear(),z,A,B,C,D,E,F,G,H,I,J,K;b||(b="d"),C=k.patterns[b],C&&(b=C),b=b.split(""),B=b.length;for(;t<B;t++){z=b[t];if(v)z==="'"?v=!1:i();else if(z==="d"){A=d("d"),o=A<3?f(2):g(k.days[A==3?"namesAbbr":"names"]);if(o===null||j(o,1,31))return null}else if(z==="M"){A=d("M"),n=A<3?f(2):g(k.months[A==3?"namesAbbr":"names"]);if(n===null||j(n,1,12))return null;n-=1}else if(z==="y")A=d("y"),m=f(A<3?2:4),m===null&&(m=y),m<x&&(m=y-y%100+m);else if(z==="h"){d("h"),p=f(2),p==12&&(p=0);if(p===null||j(p,0,11))return null}else if(z==="H"){d("H"),p=f(2);if(p===null||j(p,0,23))return null}else if(z==="m"){d("m"),q=f(2);if(q===null||j(q,0,59))return null}else if(z==="s"){d("s"),r=f(2);if(r===null||j(r,0,59))return null}else if(z==="f"){A=d("f"),s=f(A);if(s===null||j(s,0,999))return null}else if(z==="t"){A=d("t"),H=k.AM,I=k.PM,A===1&&(H=l(H),I=l(I)),D=g(I);if(!D&&!g(H))return null}else if(z==="z"){E=!0,A=d("z");if(a.substr(u,1)==="Z"){if(!F)return null;i();continue}G=a.substr(u,6).match(A>2?h:e);if(!G)return null;G=G[0],u=G.length,G=G.split(":"),J=parseInt(G[0],10);if(j(J,-12,13))return null;if(A>2){K=parseInt(G[1],10);if(isNaN(K)||j(K,0,59))return null}}else z==="T"?F=i():z==="'"?(v=!0,i()):i()}D&&p<12&&(p+=12),o===null&&(o=1);if(E){J&&(p+=-J),K&&(q+=-K);return new Date(Date.UTC(m,n,o,p,q,r,s))}return new Date(m,n,o,p,q,r,s)}function l(b){return a.map(b,k)}function k(a){return a.charAt(0)}function j(a,b,c){return!(a>=b&&a<=c)}var b=/\u00A0/g,d=/[eE][\-+]?[0-9]+/,e=/[+|\-]\d{1,2}/,h=/[+|\-]\d{1,2}:\d{2}/,i=["G","g","d","F","D","y","m","T","t"];c.parseDate=function(a,b,d){if(a instanceof Date)return a;var e=0,f=null,h,j;d=c.getCulture(d);if(!b){b=[],j=d.calendar.patterns,h=i.length;for(;e<h;e++)b[e]=j[i[e]];b[e]="ddd MMM dd yyyy HH:mm:ss",b[++e]="yyyy-MM-ddTHH:mm:ss.fffzzz",b[++e]="yyyy-MM-ddTHH:mm:sszzz",b[++e]="yyyy-MM-ddTHH:mmzzz",b[++e]="yyyy-MM-ddTHH:mmzz",b[++e]="yyyy-MM-dd",e=0}b=g(b)?b:[b],h=b.length;for(;e<h;e++){f=m(a,b[e],d);if(f)return f}return f},c.parseInt=function(a,b){var d=c.parseFloat(a,b);d&&(d=d|0);return d},c.parseFloat=function(a,e,f){if(!a&&a!==0)return null;if(typeof a===s)return a;a=a.toString(),e=c.getCulture(e);var g=e.numberFormat,h=g.percent,i=g.currency,j=i.symbol,k=h.symbol,l=a.indexOf("-")>-1,m,n;if(d.test(a)){a=parseFloat(a),isNaN(a)&&(a=null);return a}a.indexOf(j)>-1||f&&f.toLowerCase().indexOf("c")>-1?(g=i,m=g.pattern[0].replace("$",j).split("n"),a.indexOf(m[0])>-1&&a.indexOf(m[1])>-1&&(a=a.replace(m[0],"").replace(m[1],""),l=!0)):a.indexOf(k)>-1&&(n=!0,g=h,j=k),a=a.replace("-","").replace(j,"").replace(b," ").split(g[","].replace(b," ")).join("").replace(g["."],"."),a=parseFloat(a),isNaN(a)?a=null:l&&(a*=-1),a&&n&&(a/=100);return a},A&&(c.parseDate=f(A.parseDate,A),c.parseFloat=f(A.parseFloat,A))}(),function(){m.scrollbar=function(){var a=document.createElement("div"),b;a.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",a.innerHTML=" ",document.body.appendChild(a),b=a.offsetWidth-a.scrollWidth,document.body.removeChild(a);return b};var a=document.createElement("table");try{a.innerHTML="<tr><td></td></tr>",m.tbodyInnerHtml=!0}catch(c){m.tbodyInnerHtml=!1}m.touch="ontouchstart"in window,m.pointers=navigator.msPointerEnabled;var d=m.transitions=!1,f=m.transforms=!1;m.hasHW3D="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,m.hasNativeScrolling=typeof document.documentElement.style.webkitOverflowScrolling=="string",e(["Moz","webkit","O","ms"],function(){var b=this.toString(),c=typeof a.style[b+"Transition"]===r;if(c||typeof a.style[b+"Transform"]===r){var e=b.toLowerCase();f={css:"-"+e+"-",prefix:b,event:e==="o"||e==="webkit"?e:""},c&&(d=f,d.event=d.event?d.event+"TransitionEnd":"transitionend");return!1}}),m.transforms=f,m.transitions=d,m.devicePixelRatio=window.devicePixelRatio===b?1:window.devicePixelRatio,m.detectOS=function(a){var c=!1,d,e=[],f={fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,winphone:/(IEMobile)\/(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/},g={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows|winphone/},h={tablet:/playbook|ipad|fire/i},i={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,webkit:/webkit/i,ie:/MSIE|Windows\sPhone/i},j=function(a,c,d){for(var e in c)if(c.hasOwnProperty(e)&&c[e].test(a))return e;return d!==b?d:a};for(var k in f)if(f.hasOwnProperty(k)){e=a.match(f[k]);if(e){if(k=="windows"&&"plugins"in navigator)return!1;c={},c.device=k,c.tablet=j(k,h,!1),c.browser=j(a,i,"default"),c.name=j(k,g),c[c.name]=!0,c.majorVersion=e[2],c.minorVersion=e[3].replace("_","."),d=c.minorVersion.replace(".","").substr(0,2),c.flatVersion=c.majorVersion+d+Array(3-(d.length<3?d.length:2)).join("0"),c.appMode=window.navigator.standalone||/file|local/.test(window.location.protocol)||typeof window.PhoneGap!==w||typeof window.cordova!==w,c.android&&m.devicePixelRatio<1.5&&(window.outerWidth>800||window.outerHeight>800)&&(c.tablet=k);break}}return c},m.mobileOS=m.detectOS(navigator.userAgent),m.zoomLevel=function(){return m.touch?document.documentElement.clientWidth/window.innerWidth:1},m.eventCapture=document.documentElement.addEventListener,m.placeholder="placeholder"in document.createElement("input"),m.stableSort=function(){var a=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return a[0]===0&&a[1]===1&&a[2]===2&&a[3]===3&&a[4]===4&&a[5]===5&&a[6]===6&&a[7]===7&&a[8]===8&&a[9]===9&&a[10]===10&&a[11]===11&&a[12]===12}()}();var R={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},T={promise:function(a,b){b.show&&a.css({display:a.data("olddisplay")||"block"}).css("display"),b.hide&&a.data("olddisplay",a.css("display")).hide(),b.init&&b.init(),b.completeCallback&&b.completeCallback(a),a.dequeue()},transitionPromise:function(a,b,d){var e=c.wrap(a);e.append(b),a.hide(),b.show(),d.completeCallback&&d.completeCallback(a);return a}};d(a.fn,{kendoStop:function(a,b){return this.stop(a,b)},kendoAnimate:function(a,b,c,d){return V(this,a,b,c,d)},kendoAnimateTo:function(a,b,c,d,e){return W(this,a,b,c,d,e)}}),d(a.fn,{kendoAddClass:function(a,b){return X(this,a,b,!0)},kendoRemoveClass:function(a,b){return X(this,a,b,!1)},kendoToggleClass:function(a,b,c){return X(this,a,b,c)}});var Y=/&/g,Z=/</g,$=/>/g,ba=function(a){var b=typeof a.pageX==w?a.originalEvent:a;return{idx:m.pointers?b.pointerId:0,x:b.pageX,y:b.pageY}},bb=function(a){return a.target};m.touch&&(ba=function(a,b){var c=a.changedTouches||a.originalEvent.changedTouches;if(b){var d=null;e(c,function(a,c){b==c.identifier&&(d={idx:c.identifier,x:c.pageX,y:c.pageY})});return d}return{idx:c[0].identifier,x:c[0].pageX,y:c[0].pageY}},bb=function(a){var b="originalEvent"in a?a.originalEvent.changedTouches:"changedTouches"in a?a.changedTouches:null;return b?document.elementFromPoint(b[0].clientX,b[0].clientY):null},e(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(b,c){a.fn[c]=function(a){return this.bind(c,a)}})),m.touch?(m.mousedown="touchstart",m.mouseup="touchend",m.mousemove="touchmove",m.mousecancel="touchcancel",m.resize="orientationchange"):m.pointers?(m.mousemove="MSPointerMove",m.mousedown="MSPointerDown",m.mouseup="MSPointerUp",m.mousecancel="MSPointerCancel",m.resize="orientationchange resize"):(m.mousemove="mousemove",m.mousedown="mousedown",m.mouseup="mouseup",m.mousecancel="mouseleave",m.resize="resize");var bc=function(a){var b="d",c,d,e,f,g=1;for(d=0,e=a.length;d<e;d++)f=a[d],f!==""&&(c=f.indexOf("["),c!==0&&(c==-1?f="."+f:(g++,f="."+f.substring(0,c)+" || {})"+f.substring(c))),g++,b+=f+(d<e-1?" || {})":")"));return Array(g).join("(")+b},bd=/^([a-z]+:)?\/\//i;d(c,{ui:c.ui||{},fx:c.fx||T,data:c.data||{},mobile:c.mobile||{},dataviz:c.dataviz||{ui:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123},support:m,animate:V,ns:"",attr:function(a){return"data-"+c.ns+a},wrap:L,deepExtend:M,size:O,isNodeEmpty:P,getOffset:Q,parseEffects:S,toggleClass:X,directions:R,Observable:C,Class:B,Template:k,template:f(k.compile,k),render:f(k.render,k),stringify:f(l.stringify,l),touchLocation:ba,eventTarget:bb,htmlEncode:_,isLocalUrl:function(a){return a&&!bd.test(a)},expr:function(a,b){a=a||"",a&&a.charAt(0)!=="["&&(a="."+a),b?a=bc(a.split(".")):a="d"+a;return a},getter:function(a,b){return x[a]=x[a]||new Function("d","return "+c.expr(a,b))},setter:function(a){return y[a]=y[a]||new Function("d,value","d."+a+"=value")},accessor:function(a){return{get:c.getter(a),set:c.setter(a)}},guid:function(){var a="",b,c;for(b=0;b<32;b++){c=j.random()*16|0;if(b==8||b==12||b==16||b==20)a+="-";a+=(b==12?4:b==16?c&3|8:c).toString(16)}return a},roleSelector:function(a){return a.replace(/(\S+)/g,"["+c.attr("role")+"=$1],").slice(0,-1)},logToConsole:function(a){var b=window.console;typeof b!="undefined"&&b.log&&b.log(a)}});var be=C.extend({init:function(b,e){var f=this;f.element=a(b),C.fn.init.call(f),f.options=d(!0,{},f.options,e),f.element.attr(c.attr("role"))||f.element.attr(c.attr("role"),(f.options.name||"").toLowerCase()),f.element.data("kendo"+f.options.prefix+f.options.name,f),f.bind(f.events,f.options)},events:[],options:{prefix:""},setOptions:function(b){a.extend(this.options,b),this.bind(this.events,b)}});c.notify=h;var bf=/template$/i,bg=/^\s*(?:\{(?:.|\n)*\}|\[(?:.|\n)*\])\s*$/,bh=/^\{(\d+)(:[^\}]+)?\}/,bi=/([A-Z])/g;c.initWidget=function(d,e,f){var g,h,i,j,k,l,m,n;f?f.roles&&(f=f.roles):f=c.ui.roles,d=d.nodeType?d:d[0],l=d.getAttribute("data-"+c.ns+"role");if(!!l){i=f[l];if(!i)return;n=bj(d,"dataSource"),e=a.extend({},bk(d,i.fn.options),e),n&&(typeof n===r?e.dataSource=c.getter(n)(window):e.dataSource=n);for(j=0,k=i.fn.events.length;j<k;j++)h=i.fn.events[j],m=bj(d,h),m!==b&&(e[h]=c.getter(m)(window));g=a(d).data("kendo"+i.fn.options.name),g?g.setOptions(e):g=new i(d,e);return g}},c.init=function(b){var e=z.call(arguments,1),f;e[0]||(e=[c.ui,c.dataviz.ui]),f=a.map(e,function(a){return a.roles}).reverse(),f=d.apply(null,[{}].concat(f)),a(b).find("[data-"+c.ns+"role]").andSelf().each(function(){c.initWidget(this,{},f)})},c.parseOptions=bk,d(c.ui,{Widget:be,roles:{},progress:function(b,c){var d=b.find(".k-loading-mask");c?d.length||(d=a("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").prependTo(b).css({top:b.scrollTop(),left:b.scrollLeft()})):d&&d.remove()},plugin:function(d,e,f){var g=d.fn.options.name,h;e=e||c.ui,f=f||"",e[g]=d,e.roles[g.toLowerCase()]=d,h="getKendo"+f+g,g="kendo"+f+g,a.fn[g]=function(e){var f=this,h;typeof e===r?(h=z.call(arguments,1),this.each(function(){var d=a.data(this,g),i,j;if(!d)throw new Error(c.format("Cannot call method '{0}' of {1} before it is initialized",e,g));i=d[e];if(typeof i!==q)throw new Error(c.format("Cannot find method '{0}' of {1}",e,g));j=i.apply(d,h);if(j!==b){f=j;return!1}})):this.each(function(){new d(this,e)});return f},a.fn[h]=function(){return this.data(g)}}});var bl=be.extend({init:function(a,b){be.fn.init.call(this,a,b),this.wrapper=this.element},options:{prefix:"Mobile"},events:[],viewShow:a.noop,view:function(){var a=this.element.closest(c.roleSelector("view")+","+c.roleSelector("splitview"));return a.data("kendoMobileView")||a.data("kendoMobileSplitView")}});d(c.mobile,{init:function(a){c.init(a,c.mobile.ui,c.ui,c.dataviz.ui)},ui:{Widget:bl,roles:{},plugin:function(a){c.ui.plugin(a,c.mobile.ui,"Mobile")}}}),c.touchScroller=function(a,b){if(m.touch&&c.mobile.ui.Scroller&&!a.data("kendoMobileScroller")){a.kendoMobileScroller(b);return a.data("kendoMobileScroller")}return!1},c.preventDefault=function(a){a.preventDefault()},c.widgetInstance=function(a,b){var d=b.roles[a.data(c.ns+"role")];if(d)return a.data("kendo"+d.fn.options.prefix+d.fn.options.name)},c.onResize=function(b){var c=b;m.mobileOS.android&&(c=function(){setTimeout(b,200)}),a(window).on(m.resize,c)},c.data=function(a,b){return a.data(c.ns+b)}})(jQuery),function(a,b){function ba(a,b,d){var e=c.directions[b],f=d?c.directions[e.reverse]:e;return{direction:f,offset:-f.modifier*(f.vertical?a.outerHeight():a.outerWidth())}}function _(a,b){if(k){var c=a.css(M);if(c==C)return b=="scale"?1:0;var d=c.match(new RegExp(b+"\\s*\\(([\\d\\w\\.]+)")),e=0;d?e=Q(d[1]):(d=c.match(p)||[0,0,0,0,0],b=b.toLowerCase(),r.test(b)?e=parseFloat(d[3]/d[2]):b=="translatey"?e=parseFloat(d[4]/d[2]):b=="scale"?e=parseFloat(d[2]):b=="rotate"&&(e=parseFloat(Math.atan2(d[2],d[1]))));return e}return parseFloat(a.css(b))}function $(c,d,e){var f=[],g={},h,i,l,m,n;for(i in d)h=i.toLowerCase(),n=k&&v.indexOf(h)!=-1,!j.hasHW3D&&n&&w.indexOf(h)==-1?delete d[i]:(m=!1,a.isFunction(d[i])?(l=d[i](c,e),l!==b&&(m=l)):m=d[i],m!==!1&&(n?f.push(i+"("+m+")"):g[i]=m));f.length&&(g[M]=f.join(" "));return g}function Z(c,d,e){var f,g;for(f in d)a.isFunction(d[f])&&(g=d[f](c,e),g!==b?d[f]=g:delete d[f]);return d}function Y(a){for(var b in a)v.indexOf(b)!=-1&&w.indexOf(b)==-1&&delete a[b];return a}function X(a){var b=a.object,c=0;!a||(b.css(a.setup).css(L),b.css(a.CSS).css(M),i.mozilla&&(b.one(l.event,function(){W(b,a)}),c=50),b.data(I,setTimeout(W,a.duration+c,b,a)))}function W(a,b){a.data(I)&&(clearTimeout(a.data(I)),a.removeData(I)),a.css(L,"").css(L),a.dequeue(),b.complete.call(a)}function V(a){var b=[];for(var c in a)b.push(c);return b}function U(b){var d=b.effects,e;d==="zoom"&&(d="zoomIn fadeIn"),d==="slide"&&(d="slide:left"),d==="fade"&&(d="fadeIn"),d==="overlay"&&(d="slideIn:left"),/^overlay:(.+)$/.test(d)&&(d="slideIn:"+RegExp.$1),e=b.reverse&&/^(slide:)/.test(d),e&&delete b.reverse,b.effects=a.extend(c.parseEffects(d,e),{show:!0});return b}function T(a){a.effects.slideIn=a.effects.slide,delete a.effects.slide,delete a.complete;return a}function S(a,b){var c={};if(b){if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(a,"");e(b,function(a,b){c[b]=d.getPropertyValue(b)})}else if(a.currentStyle){var f=a.currentStyle;e(b,function(a,b){c[b]=f[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})]})}}else c=document.defaultView.getComputedStyle(a,"");return c}function R(a,b){return Q(a.css(b))}function Q(a){return parseInt(a,10)}var c=window.kendo,d=c.fx,e=a.each,f=a.extend,g=a.proxy,h=c.size,i=a.browser,j=c.support,k=j.transforms,l=j.transitions,m={scale:0,scalex:0,scaley:0,scale3d:0},n={translate:0,translatex:0,translatey:0,translate3d:0},o=typeof document.documentElement.style.zoom!="undefined"&&!k,p=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,q=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,r=/translatex?$/i,s=/(zoom|fade|expand)(\w+)/,t=/(zoom|fade|expand)/,u=/[xy]$/i,v=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],w=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],x={rotate:"deg",scale:"",skew:"px",translate:"px"},y=k.css,z=Math.round,A="",B="px",C="none",D="auto",E="width",F="height",G="hidden",H="origin",I="abortId",J="overflow",K="translate",L=y+"transition",M=y+"transform",N=y+"perspective",O=y+"backface-visibility";c.directions={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1}},f(a.fn,{kendoStop:function(a,b){return l?c.fx.stopQueue(this,a||!1,b||!1):this.stop(a,b)}});if(k&&!l){e(w,function(b,c){a.fn[c]=function(b){if(typeof b=="undefined")return _(this,c);var d=a(this)[0],e=c+"("+b+x[c.replace(u,"")]+")";d.style.cssText.indexOf(M)==-1?a(this).css(M,e):d.style.cssText=d.style.cssText.replace(new RegExp(c+"\\(.*?\\)","i"),e);return this},a.fx.step[c]=function(b){a(b.elem)[c](b.now)}});var P=a.fx.prototype.cur;a.fx.prototype.cur=function(){if(w.indexOf(this.prop)!=-1)return parseFloat(a(this.elem)[this.prop]());return P.apply(this,arguments)}}c.toggleClass=function(a,b,c,d){b&&(b=b.split(" "),l&&(c=f({exclusive:"all",duration:400,ease:"ease-out"},c),a.css(L,c.exclusive+" "+c.duration+"ms "+c.ease),setTimeout(function(){a.css(L,"").css(F)},c.duration)),e(b,function(b,c){a.toggleClass(c,d)}));return a},c.parseEffects=function(a,b){var d={};typeof a=="string"?e(a.split(" "),function(a,e){var f=!t.test(e),g=e.replace(s,function(a,b,c){return b+":"+c.toLowerCase()}),h=g.split(":"),i=h[1],j={};h.length>1&&(j.direction=b&&f?c.directions[i].reverse:i),d[h[0]]=j}):e(a,function(a){var e=this.direction;e&&b&&!t.test(a)&&(this.direction=c.directions[e].reverse),d[a]=this});return d},l&&f(c.fx,{transition:function(b,c,d){d=f({duration:200,ease:"ease-out",complete:null,exclusive:"all"},d),d.duration=a.fx?a.fx.speeds[d.duration]||d.duration:d.duration;var e=$(b,c,d),g={keys:V(e),CSS:e,object:b,setup:{},duration:d.duration,complete:d.complete};g.setup[L]=d.exclusive+" "+d.duration+"ms "+d.ease;var h=b.data("keys")||[];a.merge(h,g.keys),b.data("keys",a.unique(h)),X(g)},stopQueue:function(a,b,c){a.data(I)&&(clearTimeout(a.data(I)),a.removeData(I));var d=this,e,f=a.data("keys"),g=c===!1&&f;g&&(e=S(a[0],f)),a.css(L,"").css(L),g&&a.css(e),a.removeData("keys"),d.complete&&d.complete.call(a),a.stop(b);return a}}),c.fx.promise=function(b,d){var g=[],i;i=c.parseEffects(d.effects),d.effects=i,b.data("animating",!0);var j={keep:[],restore:[]},m={},n,p={setup:[],teardown:[]},q={},r=a.Deferred(function(g){if(h(i)){var o=f({},d,{complete:g.resolve});e(i,function(b,g){var h=c.fx[b];if(h){var i=c.directions[g.direction];g.direction&&i&&(g.direction=d.reverse?i.reverse:g.direction),o=f(!0,o,g),e(p,function(a){h[a]&&p[a].push(h[a])}),e(j,function(b){h[b]&&a.merge(j[b],h[b])}),h.css&&(m=f(m,h.css))}});if(p.setup.length){e(a.unique(j.keep),function(a,c){b.data(c)||b.data(c,b.css(c))}),d.show&&(m=f(m,{display:b.data("olddisplay")||"block"})),k&&!d.reset&&(m=Z(b,m,o),n=b.data("targetTransform"),n&&(m=f(n,m))),m=$(b,m,o),k&&!l&&(m=Y(m)),b.css(m).css(M),e(p.setup,function(){q=f(q,this(b,o))}),c.fx.animate&&(d.init(),b.data("targetTransform",q),c.fx.animate(b,q,o));return}}else d.show&&(b.css({display:b.data("olddisplay")||"block"}).css("display"),d.init());g.resolve()}).promise();g.push(r),a.when.apply(null,g).then(function(){b.removeData("animating").dequeue(),d.hide&&b.data("olddisplay",b.css("display")).hide();if(h(i)){var c=function(){e(a.unique(j.restore),function(a,c){b.css(c,b.data(c))})};c(),o&&!k&&setTimeout(c,0),e(p.teardown,function(){this(b,d)})}d.completeCallback&&d.completeCallback(b)})},c.fx.transitionPromise=function(a,b,d){c.fx.animateTo(a,b,d);return a},f(c.fx,{animate:function(c,g,h){var j=h.transition!==!1;delete h.transition,l&&"transition"in d&&j?d.transition(c,g,h):k?c.animate(Y(g),{queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete}):c.each(function(){var c=a(this),d={};e(v,function(a,e){var h,i=g?g[e]+" ":null;if(i){var j=g;if(e in m&&g[e]!==b){h=i.match(q);if(o){var l=(1-h[1])/2;f(j,{zoom:+h[1],marginLeft:c.width()*l,marginTop:c.height()*l})}else k&&f(j,{scale:+h[0]})}else if(e in n&&g[e]!==b){var p=c.css("position"),r=p=="absolute"||p=="fixed";c.data(K)||(r?c.data(K,{top:R(c,"top")||0,left:R(c,"left")||0,bottom:R(c,"bottom"),right:R(c,"right")}):c.data(K,{top:R(c,"marginTop")||0,left:R(c,"marginLeft")||0}));var s=c.data(K);h=i.match(q);if(h){var t=e==K+"y"?+null:+h[1],u=e==K+"y"?+h[1]:+h[2];r?(isNaN(s.right)?isNaN(t)||f(j,{left:s.left+t}):isNaN(t)||f(j,{right:s.right-t}),isNaN(s.bottom)?isNaN(u)||f(j,{top:s.top+u}):isNaN(u)||f(j,{bottom:s.bottom-u})):(isNaN(t)||f(j,{marginLeft:s.left+t}),isNaN(u)||f(j,{marginTop:s.top+u}))}}!k&&e!="scale"&&e in j&&delete j[e],j&&f(d,j)}}),i.msie&&delete d.scale,c.animate(d,{queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete})})},animateTo:function(b,c,d){function h(a){c[0].style.cssText="",b[0].style.cssText="",j.mobileOS.android||f.css(J,g),d.completeCallback&&d.completeCallback.call(b,a)}var e,f=b.parents().filter(c.parents()).first(),g;d=U(d),j.mobileOS.android||(g=f.css(J),f.css(J,"hidden")),a.each(d.effects,function(a,b){e=e||b.direction}),d.complete=i.msie?function(){setTimeout(h,0)}:h,d.reset=!0,"slide"in d.effects?(b.kendoAnimate(d),c.kendoAnimate(T(d))):(d.reverse?b:c).kendoAnimate(d)},fade:{keep:["opacity"],css:{opacity:function(a,b){var c=a[0].style.opacity;return b.effects.fade.direction=="in"&&(!c||c==1)?0:1}},restore:["opacity"],setup:function(a,b){return f({opacity:b.effects.fade.direction=="out"?0:1},b.properties)}},zoom:{css:{scale:function(a,b){var c=_(a,"scale");return b.effects.zoom.direction=="in"?c!=1?c:"0.01":1},zoom:function(a,c){var d=a[0].style.zoom;return c.effects.zoom.direction=="in"&&o?d?d:"0.01":b}},setup:function(a,b){var c=b.effects.zoom.direction=="out";if(o){var d=i.version,e=a[0].currentStyle,g=e.width.indexOf("%")!=-1?a.parent().width():a.width(),h=e.height.indexOf("%")!=-1?a.parent().height():Q(e.height),j=d<9&&b.effects.fade?0:(1-Q(a.css("zoom"))/100)/2;a.css({marginLeft:g*(d<8?0:j),marginTop:h*j})}return f({scale:c?.01:1},b.properties)}},slide:{setup:function(a,b){var c=b.reverse,d={},e=ba(a,b.effects.slide.direction,c),g=k&&b.transition!==!1?e.direction.transition:e.direction.property;e.offset/=-(b.divisor||1);if(!c){var h=a.data(H);!h&&h!==0&&a.data(H,_(a,g))}d[g]=c?a.data(H)||0:(a.data(H)||0)+e.offset+B;return f(d,b.properties)}},slideMargin:{setup:function(a,b){var c=a.data(H),d=b.offset,e,g={},h=b.reverse;!h&&!c&&c!==0&&a.data(H,parseFloat(a.css("margin-"+b.axis))),e=a.data(H)||0,g["margin-"+b.axis]=h?e:e+d;return f(g,b.properties)}},slideTo:{setup:function(a,b){var c=(b.offset+"").split(","),d={},e=b.reverse;k&&b.transition!==!1?(d.translatex=e?0:c[0],d.translatey=e?0:c[1]):(d.left=e?0:c[0],d.top=e?0:c[1]),a.css("left");return f(d,b.properties)}},slideIn:{css:{translatex:function(a,c){var d=ba(a,c.effects.slideIn.direction,c.reverse);return d.direction.transition=="translatex"?(c.reverse?0:d.offset)+B:b},translatey:function(a,c){var d=ba(a,c.effects.slideIn.direction,c.reverse);return d.direction.transition=="translatey"?(c.reverse?0:d.offset)+B:b}},setup:function(a,b){var c=b.reverse,d=ba(a,b.effects.slideIn.direction,c),e={};k&&b.transition!==!1?e[d.direction.transition]=(c?d.offset:0)+B:(c||a.css(d.direction.property,d.offset+B),e[d.direction.property]=(c?d.offset:0)+B,a.css(d.direction.property));return f(e,b.properties)}},expand:{keep:[J],css:{overflow:G},restore:[J],setup:function(a,c){var d=c.reverse,e=c.effects.expand.direction,g=(e?e=="vertical":!0)?F:E,h=a[0].style[g],i=a.data(g),j=parseFloat(i||h)||z(a.css(g,D)[g]()),k={};k[g]=(d?0:j)+B,a.css(g,d?j:0).css(g),i===b&&a.data(g,h);return f(k,c.properties)},teardown:function(a,b){var c=b.effects.expand.direction,d=(c?c=="vertical":!0)?F:E,e=a.data(d);(e==D||e===A)&&setTimeout(function(){a.css(d,D).css(d)},0)}},flip:{css:{rotatex:function(a,c){return c.effects.flip.direction=="vertical"?c.reverse?"180deg":"0deg":b},rotatey:function(a,c){return c.effects.flip.direction=="horizontal"?c.reverse?"180deg":"0deg":b}},setup:function(a,b){var d=b.effects.flip.direction=="horizontal"?"rotatey":"rotatex",e=b.reverse,g=a.parent(),h=b.degree,i=b.face,k=b.back,l=d+(e?"(180deg)":"(0deg)"),m=d+(e?"(0deg)":"(180deg)"),n={};j.hasHW3D?(g.css(N)==C&&g.css(N,500),a.css(y+"transform-style","preserve-3d"),i.css(O,G).css(M,l).css("z-index",e?0:-1),k.css(O,G).css(M,m).css("z-index",e?-1:0),n[d]=(e?"-":"")+(h?h:180)+"deg"):c.size(b.effects)==1&&(b.duration=0),i.show(),k.show();return f(n,b.properties)},teardown:function(b,c){c[c.reverse?"back":"face"].hide(),j.hasHW3D&&a().add(c.face).add(c.back).add(b).css(O,"")}},simple:{setup:function(a,b){return b.properties}}}),c.fx.expandVertical=c.fx.expand;var bb=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)},bc=c.Class.extend({init:function(){var a=this;a._tickProxy=g(a._tick,a),a._started=!1},tick:a.noop,done:a.noop,onEnd:a.noop,onCancel:a.noop,start:function(){this._started=!0,bb(this._tickProxy)},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var a=this;!a._started||(a.tick(),a.done()?(a._started=!1,a.onEnd()):bb(a._tickProxy))}}),bd=bc.extend({init:function(a){var b=this;f(b,a),bc.fn.init.call(b)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,+(new Date)-this.startDate)},moveTo:function(a){var b=this,c=b.movable;b.initial=c[b.axis],b.delta=a.location-b.initial,b.duration=a.duration||300,b.tick=b._easeProxy(a.ease),b.startDate=+(new Date),b.start()},_easeProxy:function(a){var b=this;return function(){b.movable.moveAxis(b.axis,a(b.timePassed(),b.initial,b.delta,b.duration))}}});f(bd,{easeOutExpo:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeOutBack:function(a,b,c,d,e){e=1.70158;return c*((a=a/d-1)*a*((e+1)*a+e)+1)+b}}),d.Animation=bc,d.Transition=bd}(jQuery),function(a,b){function h(d){var f=[],g=d.logic||"and",i,j,k,l,m,n,o,p,q=d.filters;for(i=0,j=q.length;i<j;i++)d=q[i],k=d.field,o=d.value,n=d.operator,d.filters?d=h(d):(p=d.ignoreCase,k=k.replace(/\./g,"/"),d=e[n],d&&o!==b&&(l=a.type(o),l==="string"?(m="'{1}'",o=o.replace(/'/g,"''"),p===!0&&(k="tolower("+k+")")):l==="date"?m="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":m="{1}",d.length>3?d!=="substringof"?m="{0}({2},"+m+")":m="{0}("+m+",{2})":m="{2} {0} "+m,d=c.format(m,d,o,k))),f.push(d);d=f.join(" "+g+" "),f.length>1&&(d="("+d+")");return d}var c=window.kendo,d=a.extend,e={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",endswith:"endswith",startswith:"startswith"},f={pageSize:a.noop,page:a.noop,filter:function(a,b){b&&(a.$filter=h(b))},sort:function(b,c){var d=a.map(c,function(a){var b=a.field.replace(/\./g,"/");a.dir==="desc"&&(b+=" desc");return b}).join(",");d&&(b.$orderby=d)},skip:function(a,b){b&&(a.$skip=b)},take:function(a,b){b&&(a.$top=b)}},g={read:{dataType:"jsonp"}};d(!0,c.data,{schemas:{odata:{type:"json",data:function(a){return a.d.results||[a.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(a,b){var d,e,h,i;a=a||{},b=b||"read",i=(this.options||g)[b],i=i?i.dataType:"json";if(b==="read"){d={$inlinecount:"allpages"},i!="json"&&(d.$format="json");for(h in a)f[h]?f[h](d,a[h]):d[h]=a[h]}else{if(i!=="json")throw new Error("Only json dataType can be used for "+b+" operation.");if(b!=="destroy"){for(h in a)e=a[h],typeof e=="number"&&(a[h]=e+"");d=c.stringify(a)}}return d}}}})}(jQuery),function(a,b){var c=window.kendo,d=a.isArray,e=a.isPlainObject,f=a.map,g=a.each,h=a.extend,i=c.getter,j=c.Class,k=j.extend({init:function(a){var b=this,i=a.total,j=a.model,k=a.data;if(j){if(e(j)){j.fields&&g(j.fields,function(a,c){e(c)&&c.field?c=h(c,{field:b.getter(c.field)}):c={field:b.getter(c)},j.fields[a]=c});var l=j.id;if(l){var m={};m[b.xpathToMember(l,!0)]={field:b.getter(l)},j.fields=h(m,j.fields),j.id=b.xpathToMember(l)}j=c.data.Model.define(j)}b.model=j}i&&(i=b.getter(i),b.total=function(a){return parseInt(i(a),10)}),k&&(k=b.xpathToMember(k),b.data=function(a){var c=b.evaluate(a,k),e;c=d(c)?c:[c];if(b.model&&j.fields){e=new b.model;return f(c,function(a){if(a){var b={},c;for(c in j.fields)b[c]=e._parse(c,j.fields[c].field(a));return b}})}return c})},total:function(a){return this.data(a).length},errors:function(a){return a?a.errors:null},parseDOM:function(a){var c={},e,f,g,h,i,j,k=a.attributes,l=k.length,m;for(m=0;m<l;m++)j=k[m],c["@"+j.nodeName]=j.nodeValue;for(f=a.firstChild;f;f=f.nextSibling)g=f.nodeType,g===3||g===4?c["#text"]=f.nodeValue:g===1&&(e=this.parseDOM(f),h=f.nodeName,i=c[h],d(i)?i.push(e):i!==b?i=[i,e]:i=e,c[h]=i);return c},evaluate:function(a,b){var c=b.split("."),e,f,g,h,i;while(e=c.shift()){a=a[e];if(d(a)){f=[],b=c.join(".");for(i=0,g=a.length;i<g;i++)h=this.evaluate(a[i],b),h=d(h)?h:[h],f.push.apply(f,h);return f}}return a},parse:function(b){var c,d,e={};c=b.documentElement||a.parseXML(b).documentElement,d=this.parseDOM(c),e[c.nodeName]=d;return e},xpathToMember:function(a,b){if(!a)return"";a=a.replace(/^\//,"").replace(/\//g,".");if(a.indexOf("@")>=0)return a.replace(/\.?(@.*)/,b?"$1":'["$1"]');if(a.indexOf("text()")>=0)return a.replace(/(\.?text\(\))/,b?"#text":'["#text"]');return a},getter:function(a){return i(this.xpathToMember(a),!0)}});a.extend(!0,c.data,{XmlDataReader:k,readers:{xml:k}})}(jQuery),function(a,b){function bE(b,c){var d=a(b).children(),e,f,g=[],h,i=c[0].field,j=c[1]&&c[1].field,k=c[2]&&c[2].field,l=c[3]&&c[3].field,m,n,o,p,q;for(e=0,f=d.length;e<f;e++)h={},m=d.eq(e),o=m[0].firstChild,q=m.children(),b=q.filter("ul"),q=q.filter(":not(ul)"),n=m.attr("data-id"),n&&(h.id=n),o&&(h[i]=o.nodeType==3?o.nodeValue:q.text()),j&&(h[j]=q.find("a").attr("href")),l&&(h[l]=q.find("img").attr("src")),k&&(p=q.find(".k-sprite").prop("className"),h[k]=p&&a.trim(p.replace("k-sprite",""))),b.length&&(h.items=bE(b.eq(0),c)),m.attr("data-hasChildren")=="true"&&(h.hasChildren=!0),g.push(h);return g}function bB(b,c){var d=a(b)[0].tBodies[0],e=d?d.rows:[],f,g,h,i=c.length,j=[],k,l,m,n;for(f=0,g=e.length;f<g;f++){l={},n=!0,k=e[f].cells;for(h=0;h<i;h++)m=k[h],m.nodeName.toLowerCase()!=="th"&&(n=!1,l[c[h].field]=m.innerHTML);n||j.push(l)}return j}function bA(b,c){var d=a(b)[0].children,e,f,g=[],h,i=c[0],j=c[1],k,l;for(e=0,f=d.length;e<f;e++)h={},l=d[e],h[i.field]=l.text,k=l.attributes.value,k&&k.specified?k=l.value:k=l.text,h[j.field]=k,g.push(h);return g}function by(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(b(a[c]))return c;return-1}function bx(a,b){if(b)return by(a,function(a){return a.uid==b.uid});return-1}function bw(a,b){if(b)return by(a,function(a){return a[b.idField]===b.id});return-1}function bv(a,b){var c,d,e,f;for(e=a.length-1,f=0;e>=f;e--)d=a[e],c={value:b.get(d.field),field:d.field,items:c?[c]:[b],hasSubgroups:!!c,aggregates:{}};return c}function bu(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(a[c].uid==b.uid){b=a[c],a.splice(c,1);return b}}function bt(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(a[c].hasSubgroups){if(bt(a[c].items,b))return!0}else if(b(a[c].items,a[c]))return!0}function bs(a,b){var c,d,e,f;if(b)for(c=0,d=a.length;c<d;c++)e=a[c],f=e.items,e.hasSubgroups?bs(f,b):f.length&&!(f[0]instanceof b)&&(f.type=b,f.wrapAll(f,f))}function br(a){var b,c,d=[];for(b=0,c=a.length;b<c;b++)a[b].hasSubgroups?d=d.concat(br(a[b].items)):d=d.concat(a[b].items.slice());return d}function bp(a,b,c,d){return function(e){e=a(e),e&&!g(d)&&(M.call(e)!=="[object Array]"&&!(e instanceof Q)&&(e=[e]),c(e,d,new b));return e||[]}}function bo(a,b,c){var d,e,f;for(e=0,f=a.length;e<f;e++)d=a[e],d.value=c._parse(d.field,d.value),d.hasSubgroups?bo(d.items,b,c):bn(d.items,b,c)}function bn(a,b,c){var d,e,f,g;for(f=0,g=a.length;f<g;f++){d=a[f];for(e in b)d[e]=c._parse(e,b[e](d))}}function bj(a,b){b=b||{};var c=new Z(a),d=b.aggregate,e=b.filter;e&&(c=c.filter(e));return c.aggregate(d)}function bi(a,c){c=c||{};var d=new Z(a),e=c.group,f=bd(e||[]).concat($(c.sort||[])),g,h=c.filter,i=c.skip,j=c.take;h&&(d=d.filter(h),g=d.toArray().length),f&&(d=d.sort(f),e&&(a=d.toArray())),i!==b&&j!==b&&(d=d.range(i,j)),e&&(d=d.group(e,a));return{total:g,data:d.toArray()}}function bh(a){var b,c=a.length,d=Array(c);for(b=0;b<c;b++)d[b]=a[b].toJSON();return d}function bf(a,b,c,d,e){b=b||[];var f,g,h,i=b.length;for(f=0;f<i;f++){g=b[f],h=g.aggregate;var j=g.field;a[j]=a[j]||{},a[j][h]=bg[h.toLowerCase()](a[j][h],c,n.accessor(j),d,e)}}function be(a,b){if(a&&a.getTime&&b&&b.getTime)return a.getTime()===b.getTime();return a===b}function bd(a,c){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return k(e,function(a){return{field:a.field,dir:a.dir||"asc",aggregates:a.aggregates}})}function bc(a){return h(a)?a:[a]}function bb(a){if(a&&!g(a)){if(h(a)||!a.filters)a={logic:"and",filters:h(a)?a:[a]};ba(a);return a}}function ba(a){var b,c,d,e,f=a.filters;if(f)for(b=0,c=f.length;b<c;b++)d=f[b],e=d.operator,e&&typeof e===q&&(d.operator=_[e.toLowerCase()]||e),ba(d)}function $(a,c){if(a){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return i(e,function(a){return!!a.dir})}}function Z(a){this.data=a||[]}function S(b,c){if(b===c)return!0;var d=a.type(b),e=a.type(c),f;if(d!==e)return!1;if(d==="date")return b.getTime()===c.getTime();if(d!=="object"&&d!=="array")return!1;for(f in b)if(!S(b[f],c[f]))return!1;return!0}var c=a.extend,d=a.proxy,e=a.isFunction,f=a.isPlainObject,g=a.isEmptyObject,h=a.isArray,i=a.grep,j=a.ajax,k,l=a.each,m=a.noop,n=window.kendo,o=n.Observable,p=n.Class,q="string",r="function",s="create",t="read",u="update",v="destroy",w="change",x="get",y="error",z="requestStart",A=[s,t,u,v],B=function(a){return a},C=n.getter,D=n.stringify,E=Math,F=[].push,G=[].join,H=[].pop,I=[].splice,J=[].shift,K=[].slice,L=[].unshift,M={}.toString,N=n.support.stableSort,O=/^\/Date\((.*?)\)\/$/,P=/(?=['\\])/g,Q=o.extend({init:function(a,b){var c=this;c.type=b||R,o.fn.init.call(c),c.length=a.length,c.wrapAll(a,c)},toJSON:function(){var a,b=this.length,c,d=Array(b);for(a=0;a<b;a++)c=this[a],c instanceof R&&(c=c.toJSON()),d[a]=c;return d},parent:m,wrapAll:function(a,b){var c=this,d,e,f=function(){return c};b=b||[];for(d=0,e=a.length;d<e;d++)b[d]=c.wrap(a[d],f);return b},wrap:function(a,b){var c=this,d;a!==null&&M.call(a)==="[object Object]"&&(d=a instanceof c.type||a instanceof V,d||(a=a instanceof R?a.toJSON():a,a=new c.type(a)),a.parent=b,a.bind(w,function(a){c.trigger(w,{field:a.field,node:a.node,index:a.index,items:a.items||[this],action:a.action||"itemchange"})}));return a},push:function(){var a=this.length,b=this.wrapAll(arguments),c;c=F.apply(this,b),this.trigger(w,{action:"add",index:a,items:b});return c},slice:K,join:G,pop:function(){var a=this.length,b=H.apply(this);a&&this.trigger(w,{action:"remove",index:a-1,items:[b]});return b},splice:function(a,b,c){var d=this.wrapAll(K.call(arguments,2)),e,f,g;e=I.apply(this,[a,b].concat(d));if(e.length){this.trigger(w,{action:"remove",index:a,items:e});for(f=0,g=e.length;f<g;f++)e[f].children&&e[f].unbind(w)}c&&this.trigger(w,{action:"add",index:a,items:d});return e},shift:function(){var a=this.length,b=J.apply(this);a&&this.trigger(w,{action:"remove",index:0,items:[b]});return b},unshift:function(){var a=this.wrapAll(arguments),b;b=L.apply(this,a),this.trigger(w,{action:"add",index:0,items:a});return b},indexOf:function(a){var b=this,c,d;for(c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1}}),R=o.extend({init:function(a){var b=this,c,d,e=function(){return b},f;o.fn.init.call(this);for(d in a)c=a[d],d.charAt(0)!="_"&&(f=M.call(c),c=b.wrap(c,d,e)),b[d]=c;b.uid=n.guid()},shouldSerialize:function(a){return this.hasOwnProperty(a)&&a!=="_events"&&typeof this[a]!==r&&a!=="uid"},toJSON:function(){var a={},b,c;for(c in this)if(this.shouldSerialize(c)){b=this[c];if(b instanceof R||b instanceof Q)b=b.toJSON();a[c]=b}return a},get:function(a){var b=this,c;b.trigger(x,{field:a}),a==="this"?c=b:c=n.getter(a,!0)(b);return c},_set:function(a,b){var c=this;if(a.indexOf(".")){var d=a.split("."),e="";while(d.length>1){e+=d.shift();var f=n.getter(e,!0)(c);if(f instanceof R){f.set(d.join("."),b);return}e+="."}}n.setter(a)(c,b)},set:function(a,b){var c=this,d=c[a],e=function(){return c};d!==b&&(c.trigger("set",{field:a,value:b})||(c._set(a,c.wrap(b,a,e)),c.trigger(w,{field:a})))},parent:m,wrap:function(a,b,c){var d=this,e=M.call(a),f=a instanceof Q;a===null||e!=="[object Object]"||a instanceof bz||!!f?a===null||e!=="[object Array]"&&!f?a!==null&&a instanceof bz&&(a._parent=c):(f||(a=new Q(a)),a.parent=c,function(b){a.bind(w,function(a){d.trigger(w,{field:b,index:a.index,items:a.items,action:a.action})})}(b)):(a instanceof R||(a=new R(a)),a.parent=c,function(b){a.bind(x,function(a){a.field=b+"."+a.field,d.trigger(x,a)}),a.bind(w,function(a){a.field=b+"."+a.field,d.trigger(w,a)})}(b));return a}}),T={number:function(a){return n.parseFloat(a)},date:function(a){if(typeof a===q){var b=O.exec(a);if(b)return new Date(parseInt(b[1],10))}return n.parseDate(a)},"boolean":function(a){if(typeof a===q)return a.toLowerCase()==="true";return!!a},string:function(a){return a+""},"default":function(a){return a}},U={string:"",number:0,date:new Date,"boolean":!1,"default":""},V=R.extend({init:function(c){var d=this;if(!c||a.isEmptyObject(c))c=a.extend({},d.defaults,c);R.fn.init.call(d,c),d.dirty=!1,d.idField&&(d.id=d.get(d.idField),d.id===b&&(d.id=d._defaultId))},shouldSerialize:function(a){return R.fn.shouldSerialize.call(this,a)&&a!=="uid"&&(this.idField==="id"||a!=="id")&&a!=="dirty"&&a!=="_accessors"},_parse:function(a,b){var c=this,d;a=(c.fields||{})[a],a&&(d=a.parse,!d&&a.type&&(d=T[a.type.toLowerCase()]));return d?d(b):b},editable:function(a){a=(this.fields||{})[a];return a?a.editable!==!1:!0},set:function(a,b,c){var d=this;d.editable(a)&&(b=d._parse(a,b),S(b,d.get(a))||(d.dirty=!0,R.fn.set.call(d,a,b,c)))},accept:function(a){var b=this;c(b,a),b.idField&&(b.id=b.get(b.idField)),b.dirty=!1},isNew:function(){return this.id===this._defaultId}});V.define=function(a,d){d===b&&(d=a,a=V);var e,f=c({},{defaults:{}},d),g,h,i,j,k=f.id;k&&(f.idField=k),f.id&&delete f.id,k&&(f.defaults[k]=f._defaultId="");for(g in f.fields)h=f.fields[g],i=h.type||"default",j=null,g=typeof h.field===q?h.field:g,h.nullable||(j=f.defaults[g]=h.defaultValue!==b?h.defaultValue:U[i.toLowerCase()]),d.id===g&&(f._defaultId=j),f.defaults[g]=j,h.parse=h.parse||T[i];e=a.extend(f),e.define=function(a){return V.define(e,a)},f.fields&&(e.fields=f.fields,e.idField=f.idField);return e};var W={selector:function(a){return e(a)?a:C(a)},asc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a>c?1:a<c?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a<c?1:a>c?-1:0}},create:function(a){return this[a.dir.toLowerCase()](a.field)},combine:function(a){return function(b,c){var d=a[0](b,c),e,f;for(e=1,f=a.length;e<f;e++)d=d||a[e](b,c);return d}}},X=c({},W,{asc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d>e?1:d<e?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d<e?1:d>e?-1:0}}});k=function(a,b){var c,d=a.length,e=Array(d);for(c=0;c<d;c++)e[c]=b(a[c],c,a);return e};var Y=function(){function b(b,c,d,e){var f;d!=null&&(typeof d===q&&(d=a(d),f=O.exec(d),f?d=new Date(+f[1]):e?(d="'"+d.toLowerCase()+"'",c="("+c+" || '').toLowerCase()"):d="'"+d+"'"),d.getTime&&(c="("+c+"?"+c+".getTime():"+c+")",d=d.getTime()));return c+" "+b+" "+d}function a(a){return a.replace(P,"\\")}return{eq:function(a,c,d){return b("==",a,c,d)},neq:function(a,c,d){return b("!=",a,c,d)},gt:function(a,c,d){return b(">",a,c,d)},gte:function(a,c,d){return b(">=",a,c,d)},lt:function(a,c,d){return b("<",a,c,d)},lte:function(a,c,d){return b("<=",a,c,d)},startswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"', 0) == 0"},endswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"') == "+b+".length - "+(c||"").length},contains:function(b,c,d){d&&(b="("+b+" || '').toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') >= 0"},doesnotcontain:function(b,c,d){d&&(b="("+b+" || '').toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') == -1"}}}();Z.filterExpr=function(a){var c=[],d={and:" && ",or:" || "},e,f,g,h,i=[],j=[],k,l,m=a.filters;for(e=0,f=m.length;e<f;e++)g=m[e],k=g.field,l=g.operator,g.filters?(h=Z.filterExpr(g),g=h.expression.replace(/__o\[(\d+)\]/g,function(a,b){b=+b;return"__o["+(j.length+b)+"]"}).replace(/__f\[(\d+)\]/g,function(a,b){b=+b;return"__f["+(i.length+b)+"]"}),j.push.apply(j,h.operators),i.push.apply(i,h.fields)):(typeof k===r?(h="__f["+i.length+"](d)",i.push(k)):h=n.expr(k),typeof l===r?(g="__o["+j.length+"]("+h+", "+g.value+")",j.push(l)):g=Y[(l||"eq").toLowerCase()](h,g.value,g.ignoreCase!==b?g.ignoreCase:!0)),c.push(g);return{expression:"("+c.join(d[a.logic])+")",fields:i,operators:j}};var _={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain"};Z.normalizeFilter=bb,Z.prototype={toArray:function(){return this.data},range:function(a,b){return new Z(this.data.slice(a,a+b))},skip:function(a){return new Z(this.data.slice(a))},take:function(a){return new Z(this.data.slice(0,a))},select:function(a){return new Z(k(this.data,a))},orderBy:function(a){var b=this.data.slice(0),c=e(a)||!a?W.asc(a):a.compare;return new Z(b.sort(c))},orderByDescending:function(a){return new Z(this.data.slice(0).sort(W.desc(a)))},sort:function(a,b,c){var d,e,f=$(a,b),g=[];c=c||W;if(f.length){for(d=0,e=f.length;d<e;d++)g.push(c.create(f[d]));return this.orderBy({compare:c.combine(g)})}return this},filter:function(a){var b,c,d,e,f,g=this.data,h,i,j=[],k;a=bb(a);if(!a||a.filters.length===0)return this;e=Z.filterExpr(a),h=e.fields,i=e.operators,f=k=new Function("d, __f, __o","return "+e.expression);if(h.length||i.length)k=function(a){return f(a,h,i)};for(b=0,d=g.length;b<d;b++)c=g[b],k(c)&&j.push(c);return new Z(j)},group:function(a,b){a=bd(a||[]),b=b||this.data;var c=this,d=new Z(c.data),e;a.length>0&&(e=a[0],d=d.groupBy(e).select(function(c){var d=(new Z(b)).filter([{field:c.field,operator:"eq",value:c.value}]);return{field:c.field,value:c.value,items:a.length>1?(new Z(c.items)).group(a.slice(1),d.toArray()).toArray():c.items,hasSubgroups:a.length>1,aggregates:d.aggregate(e.aggregates)}}));return d},groupBy:function(a){if(g(a)||!this.data.length)return new Z([]);var b=a.field,c=this._sortForGrouping(b,a.dir||"asc"),d=n.accessor(b),e,f=d.get(c[0],b),h={field:b,value:f,items:[]},i,j,k,l=[h];for(j=0,k=c.length;j<k;j++)e=c[j],i=d.get(e,b),be(f,i)||(f=i,h={field:b,value:f,items:[]},l.push(h)),h.items.push(e);return new Z(l)},_sortForGrouping:function(a,b){var c,d,e=this.data;if(!N){for(c=0,d=e.length;c<d;c++)e[c].__position=c;e=(new Z(e)).sort(a,b,X).toArray();for(c=0,d=e.length;c<d;c++)delete e[c].__position;return e}return this.sort(a,b).toArray()},aggregate:function(a){var b,c,d={};if(a&&a.length)for(b=0,c=this.data.length;b<c;b++)bf(d,a,this.data[b],b,c);return d}};var bg={sum:function(a,b,c){return(a||0)+c.get(b)},count:function(a,b,c){return(a||0)+1},average:function(a,b,c,d,e){a=(a||0)+c.get(b),d==e-1&&(a=a/e);return a},max:function(a,b,c){var d=c.get(b);a=a||0,a<d&&(a=d);return a},min:function(a,b,c){var d=c.get(b);a=a||d,a>d&&(a=d);return a}},bk=p.extend({init:function(a){this.data=a.data},read:function(a){a.success(this.data)},update:function(a){a.success(a.data)},create:function(a){a.success(a.data)},destroy:m}),bl=p.extend({init:function(a){var b=this,d;a=b.options=c({},b.options,a),l(A,function(b,c){typeof a[c]===q&&(a[c]={url:a[c]})}),b.cache=a.cache?bm.create(a.cache):{find:m,add:m},d=a.parameterMap,b.parameterMap=e(d)?d:function(a){var b={};l(a,function(a,c){a in d&&(a=d[a],f(a)&&(c=a.value(c),a=a.key)),b[a]=c});return b}},options:{parameterMap:B},create:function(a){return j(this.setup(a,s))},read:function(c){var d=this,e,f,g,h=d.cache;c=d.setup(c,t),e=c.success||m,f=c.error||m,g=h.find(c.data),g!==b?e(g):(c.success=function(a){h.add(c.data,a),e(a)},a.ajax(c))},update:function(a){return j(this.setup(a,u))},destroy:function(a){return j(this.setup(a,v))},setup:function(a,b){a=a||{};var d=this,f,g=d.options[b],h=e(g.data)?g.data(a.data):g.data;a=c(!0,{},g,a),f=c(!0,{},h,a.data),a.data=d.parameterMap(f,b),e(a.url)&&(a.url=a.url(f));return a}}),bm=p.extend({init:function(){this._store={}},add:function(a,c){a!==b&&(this._store[D(a)]=c)},find:function(a){return this._store[D(a)]},clear:function(){this._store={}},remove:function(a){delete this._store[D(a)]}});bm.create=function(a){var b={inmemory:function(){return new bm}};if(f(a)&&e(a.find))return a;if(a===!0)return new bm;return b[a]()};var bq=p.extend({init:function(a){var b=this,c,e,g,h;a=a||{};for(c in a)e=a[c],b[c]=typeof e===q?C(e):e;h=a.modelBase||V;if(f(b.model)){b.model=g=h.define(b.model);var i=d(b.data,b),j=d(b.groups,b),k={};g.fields&&l(g.fields,function(a,b){f(b)&&b.field?k[b.field]=C(b.field):k[a]=C(a)}),b.data=bp(i,g,bn,k),b.groups=bp(j,g,bo,k)}},errors:function(a){return a?a.errors:null},parse:B,data:B,total:function(a){return a.length},groups:B,status:function(a){return a.status},aggregates:function(){return{}}}),bz=o.extend({init:function(a){var d=this,g,h,i;a&&(i=a.data),a=d.options=c({},d.options,a),c(d,{_map:{},_prefetch:{},_data:[],_ranges:[],_view:[],_pristine:[],_destroyed:[],_pageSize:a.pageSize,_page:a.page||(a.pageSize?1:b),_sort:$(a.sort),_filter:bb(a.filter),_group:bd(a.group),_aggregate:a.aggregate,_total:a.total}),o.fn.init.call(d),h=a.transport,h?(h.read=typeof h.read===q?{url:h.read}:h.read,a.type&&(n.data.transports[a.type]&&!f(n.data.transports[a.type])?d.transport=new n.data.transports[a.type](c(h,{data:i})):h=c(!0,{},n.data.transports[a.type],h),a.schema=c(!0,{},n.data.schemas[a.type],a.schema)),d.transport||(d.transport=e(h.read)?h:new bl(h))):d.transport=new bk({data:a.data}),d.reader=new n.data.readers[a.schema.type||"json"](a.schema),g=d.reader.model||{},d._data=d._observe(d._data),d.bind([y,w,z],a)},options:{data:[],schema:{modelBase:V},serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,sendAllFields:!0,batch:!1},_flatData:function(a){if(this.options.serverGrouping&&this.group().length)return br(a);return a},get:function(a){var b,c,d=this._flatData(this._data);for(b=0,c=d.length;b<c;b++)if(d[b].id==a)return d[b]},getByUid:function(a){var b,c,d=this._flatData(this._data);for(b=0,c=d.length;b<c;b++)if(d[b].uid==a)return d[b]},sync:function(){var b=this,c,d,e=[],f=[],g=b._destroyed,h=b._flatData(b._data);if(!!b.reader.model){for(c=0,d=h.length;c<d;c++)h[c].isNew()?e.push(h[c]):h[c].dirty&&f.push(h[c]);var i=b._send("create",e);i.push.apply(i,b._send("update",f)),i.push.apply(i,b._send("destroy",g)),a.when.apply(null,i).then(function(){var a,c;for(a=0,c=arguments.length;a<c;a++)b._accept(arguments[a]);b._change()})}},_accept:function(b){var d=this,e=b.models,f=b.response,g=0,h=d.options.serverGrouping&&d.group()&&d.group().length,i=d.reader.data(d._pristine),j=b.type,k;if(f){f=d.reader.parse(f);if(d._handleCustomErrors(f))return;f=d.reader.data(f),a.isArray(f)||(f=[f])}else f=a.map(e,function(a){return a.toJSON()});j==="destroy"&&(d._destroyed=[]);for(g=0,k=e.length;g<k;g++)j!=="destroy"?(e[g].accept(f[g]),j==="create"?i.push(h?bv(d.group(),e[g]):e[g]):j==="update"&&(h?d._updatePristineGroupModel(e[g],f[g]):c(i[d._pristineIndex(e[g])],f[g]))):h?d._removePristineGroupModel(e[g]):i.splice(d._pristineIndex(e[g]),1)},_pristineIndex:function(a){var b=this,c,d,e=b.reader.data(b._pristine);for(c=0,d=e.length;c<d;c++)if(e[c][a.idField]===a.id)return c;return-1},_updatePristineGroupModel:function(a,b){var d=this.reader.groups(this._pristine),e;bt(d,function(d,f){e=bw(d,a);if(e>-1){c(!0,d[e],b);return!0}})},_removePristineGroupModel:function(a){var b=this.reader.groups(this._pristine),c;bt(b,function(b,d){c=bw(b,a);if(c>-1){b.splice(c,1);return!0}})},_promise:function(b,d,e){var f=this,g=f.transport;return a.Deferred(function(a){g[e].call(g,c({success:function(b){a.resolve({response:b,models:d,type:e})},error:function(b){a.reject(b),f.trigger(y,b)}},b))}).promise()},_send:function(a,b){var c=this,d,e,f=[];if(c.options.batch)b.length&&f.push(c._promise({data:{models:bh(b)}},b,a));else for(d=0,e=b.length;d<e;d++)f.push(c._promise({data:b[d].toJSON()},[b[d]],a));return f},add:function(a){return this.insert(this._data.length,a)},insert:function(a,b){b||(b=a,a=0),b instanceof V||(this.reader.model?b=new this.reader.model(b):b=new R(b)),this.options.serverGrouping&&this.group()&&this.group().length?this._data.splice(a,0,bv(this.group(),b)):this._data.splice(a,0,b);return b},cancelChanges:function(a){var b=this,d,e=b.options.serverGrouping&&b.group()&&b.group().length,f=e?b.reader.groups:b.reader.data,g=f(b._pristine),h;a instanceof n.data.Model?e?b._cancelGroupModel(a):(h=b.indexOf(a),d=b._pristineIndex(a),h!=-1&&(d!=-1&&!a.isNew()?c(!0,b._data[h],g[d]):b._data.splice(h,1))):(b._destroyed=[],b._data=b._observe(g),b._change())},read:function(a){var b=this,c=b._params(a);b._queueRequest(c,function(){b.trigger(z),b._ranges=[],b.transport.read({data:c,success:d(b.success,b),error:d(b.error,b)})})},_cancelGroupModel:function(a){var b=this.reader.groups(this._pristine),d,e;bt(b,function(b,c){e=bw(b,a);if(e>-1){d=b[e];return!0}}),e>-1&&bt(this._data,function(b,f){e=bx(b,a),e>-1&&(a.isNew()?b.splice(e,1):c(!0,b[e],d))})},indexOf:function(a){return bx(this._data,a)},_params:function(a){var b=this,d=c({take:b.take(),skip:b.skip(),page:b.page(),pageSize:b.pageSize(),sort:b._sort,filter:b._filter,group:b._group,aggregate:b._aggregate},a);b.options.serverPaging||(delete d.take,delete d.skip,delete d.page,delete d.pageSize);return d},_queueRequest:function(a,c){var e=this;e._requestInProgress?e._pending={callback:d(c,e),options:a}:(e._requestInProgress=!0,e._pending=b,c())},_dequeueRequest:function(){var a=this;a._requestInProgress=!1,a._pending&&a._queueRequest(a._pending.options,a._pending.callback)},remove:function(a){var b=this._data;if(this.options.serverGrouping&&this.group()&&this.group().length)return this._removeGroupItem(b,a);return bu(b,a)},_removeGroupItem:function(a,b){var c;bt(a,function(a,d){c=bu(a,b);if(c)return!0});return b},error:function(a,b,c){this._dequeueRequest(),this.trigger(y,{xhr:a,status:b,errorThrown:c})},_handleCustomErrors:function(a){if(this.reader.errors){var b=this.reader.errors(a);if(b){this.trigger(y,{xhr:null,status:"customerror",errorThrown:"custom error",errors:b});return!0}}return!1},_parent:m,success:function(b){var c=this,d=c.options,e=d.serverGrouping===!0&&c._group&&c._group.length>0;b=c.reader.parse(b);if(!c._handleCustomErrors(b)){c._pristine=f(b)?a.extend(!0,{},b):b.slice(0),c._total=c.reader.total(b),c._aggregate&&d.serverAggregates&&(c._aggregateResult=c.reader.aggregates(b)),e?b=c.reader.groups(b):b=c.reader.data(b),c._data=c._observe(b);var g=c._skip||0,h=g+c._data.length;c._ranges.push({start:g,end:h,data:c._data}),c._ranges.sort(function(a,b){return a.start-b.start}),c._dequeueRequest(),c._process(c._data)}},_observe:function(a){var b=this,c=b.reader.model,e=!1;c&&a.length&&(e=!(a[0]instanceof c)),a instanceof Q?e&&(a.type=b.reader.model,a.wrapAll(a,a)):(a=new Q(a,b.reader.model),a.parent=function(){return b._parent()}),b.group()&&b.group().length&&b.options.serverGrouping&&bs(a,c);return a.bind(w,d(b._change,b))},_change:function(a){var b=this,c,d,e=a?a.action:"";if(e==="remove")for(c=0,d=a.items.length;c<d;c++)(!a.items[c].isNew||!a.items[c].isNew())&&b._destroyed.push(a.items[c]);if(!b.options.autoSync||e!=="add"&&e!=="remove"&&e!=="itemchange"){var f=b._total||b.reader.total(b._pristine);e==="add"?f++:e==="remove"?f--:e!=="itemchange"&&!b.options.serverPaging&&(f=b.reader.total(b._pristine)),b._total=f,b._process(b._data,a)}else b.sync()},_process:function(a,c){var d=this,e={},f;d.options.serverPaging!==!0&&(e.skip=d._skip,e.take=d._take||d._pageSize,e.skip===b&&d._page!==b&&d._pageSize!==b&&(e.skip=(d._page-1)*d._pageSize)),d.options.serverSorting!==!0&&(e.sort=d._sort),d.options.serverFiltering!==!0&&(e.filter=d._filter),d.options.serverGrouping!==!0&&(e.group=d._group),d.options.serverAggregates!==!0&&(e.aggregate=d._aggregate,d._aggregateResult=bj(a,e)),f=bi(a,e),d._view=f.data,f.total!==b&&!d.options.serverFiltering&&(d._total=f.total),c=c||{},c.items=c.items||d._view,d.trigger(w,c)},at:function(a){return this._data[a]},data:function(a){var c=this;if(a!==b)c._data=this._observe(a),c._total=c._data.length,c._process(c._data);else return c._data},view:function(){return this._view},query:function(a){var c=this,d,e=c.options.serverSorting||c.options.serverPaging||c.options.serverFiltering||c.options.serverGrouping||c.options.serverAggregates;a!==b&&(c._pageSize=a.pageSize,c._page=a.page,c._sort=a.sort,c._filter=a.filter,c._group=a.group,c._aggregate=a.aggregate,c._skip=a.skip,c._take=a.take,c._skip===b&&(c._skip=c.skip(),a.skip=c.skip()),c._take===b&&c._pageSize!==b&&(c._take=c._pageSize,a.take=c._take),a.sort&&(c._sort=a.sort=$(a.sort)),a.filter&&(c._filter=a.filter=bb(a.filter)),a.group&&(c._group=a.group=bd(a.group)),a.aggregate&&(c._aggregate=a.aggregate=bc(a.aggregate))),e||c._data===b||c._data.length===0?c.read(a):(c.trigger(z),d=bi(c._data,a),c.options.serverFiltering||(d.total!==b?c._total=d.total:c._total=c._data.length),c._view=d.data,c._aggregateResult=bj(c._data,a),c.trigger(w,{items:d.data}))},fetch:function(a){var b=this;a&&e(a)&&b.one(w,a),b._query()},_query:function(a){var b=this;b.query(c({},{page:b.page(),pageSize:b.pageSize(),sort:b.sort(),filter:b.filter(),group:b.group(),aggregate:b.aggregate()},a))},next:function(){var a=this,b=a.page(),c=a.total();!b||(c?a.page(b+1):(a._skip=b*a.take(),a._query({page:b+1})))},prev:function(){var a=this,b=a.page(),c=a.total();!!b&&b!==1&&(c?a.page(b-1):(a._skip=a._skip-a.take(),a._query({page:b-1})))},page:function(a){var c=this,d;if(a!==b)a=E.max(E.min(E.max(a,1),c.totalPages()),1),c._query({page:a});else{d=c.skip();return d!==b?E.round((d||0)/(c.take()||1))+1:b}},pageSize:function(a){var c=this;if(a!==b)c._query({pageSize:a,page:1});else return c.take()},sort:function(a){var c=this;if(a!==b)c._query({sort:a});else return c._sort},filter:function(a){var c=this;if(a===b)return c._filter;c._query({filter:a,page:1})},group:function(a){var c=this;if(a!==b)c._query({group:a});else return c._group},total:function(){return this._total||0},aggregate:function(a){var c=this;if(a!==b)c._query({aggregate:a});else return c._aggregate},aggregates:function(){return this._aggregateResult},totalPages:function(){var a=this,b=a.pageSize()||a.total();return E.ceil((a.total()||0)/b)},inRange:function(a,b){var c=this,d=E.min(a+b,c.total());if(!c.options.serverPaging&&c.data.length>0)return!0;return c._findRange(a,d).length>0},range:function(a,c){a=E.min(a||0,this.total());var d=this,e=E.max(E.floor(a/c),0)*c,f=E.min(e+c,d.total()),g;g=d._findRange(a,E.min(a+c,d.total()));if(g.length){d._skip=a>d.skip()?E.min(f,(d.totalPages()-1)*d.take()):e,d._take=c;var h=d.options.serverPaging,i=d.options.serverSorting;try{d.options.serverPaging=!0,d.options.serverSorting=!0,h&&(d._data=g=d._observe(g)),d._process(g)}finally{d.options.serverPaging=h,d.options.serverSorting=i}}else c!==b&&(d._rangeExists(e,f)?e<a&&d.prefetch(f,c,function(){d.range(a,c)}):d.prefetch(e,c,function(){a>e&&f<d.total()&&!d._rangeExists(f,E.min(f+c,d.total()))?d.prefetch(f,c,function(){d.range(a,c)}):d.range(a,c)}))},_findRange:function(a,c){var d=this,e=d._ranges,f,g=[],h,i,j,k,l,m,n,o=d.options,p=o.serverSorting||o.serverPaging||o.serverFiltering||o.serverGrouping||o.serverAggregates,q;for(h=0,q=e.length;h<q;h++){f=e[h];if(a>=f.start&&a<=f.end){var r=0;for(i=h;i<q;i++){f=e[i];if(f.data.length&&a+r>=f.start){l=f.data,m=f.end,p||(n=bi(f.data,{sort:d.sort(),filter:d.filter()}),l=n.data,n.total!==b&&(m=n.total)),j=0,a+r>f.start&&(j=a+r-f.start),k=l.length,m>c&&(k=k-(m-c)),r+=k-j,g=g.concat(l.slice(j,k));if(c<=f.end&&r==c-a)return g}}break}}return[]},skip:function(){var a=this;if(a._skip===b)return a._page!==b?(a._page-1)*(a.take()||1):b;return a._skip},take:function(){var a=this;return a._take||a._pageSize},prefetch:function(a,b,c){var d=this,e=E.min(a+b,d.total()),f={start:a,end:e,data:[]},g={take:b,skip:a,page:a/b+1,pageSize:b,sort:d._sort,filter:d._filter,group:d._group,aggregate:d._aggregate};d._rangeExists(a,e)?c&&c():(clearTimeout(d._timeout),d._timeout=setTimeout(function(){d._queueRequest(g,function(){d.transport.read({data:g,success:function(b){d._dequeueRequest();var e=!1;for(var g=0,h=d._ranges.length;g<h;g++)if(d._ranges[g].start===a){e=!0,f=d._ranges[g];break}e||d._ranges.push(f),b=d.reader.parse(b),f.data=d._observe(d.reader.data(b)),f.end=f.start+f.data.length,d._ranges.sort(function(a,b){return a.start-b.start}),d._total=d.reader.total(b),c&&c()}})})},100))},_rangeExists:function(a,b){var c=this,d=c._ranges,e,f;for(e=0,f=d.length;e<f;e++)if(d[e].start<=a&&d[e].end>=b)return!0;return!1}});bz.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},d=b.data,e=b.fields,f=b.table,h=b.select,i,j,k={},l;!d&&e&&!b.transport&&(f?d=bB(f,e):h&&(d=bA(h,e)));if(n.data.Model&&e&&(!b.schema||!b.schema.model)){for(i=0,j=e.length;i<j;i++)l=e[i],l.type&&(k[l.field]=l);g(k)||(b.schema=c(!0,b.schema,{model:{fields:k}}))}b.data=d;return b instanceof bz?b:new bz(b)};var bC=V.define({init:function(a){var b=this,d=b.hasChildren||a.hasChildren,f="items",g={};n.data.Model.fn.init.call(b,a),typeof b.children===q&&(f=b.children),g=c({schema:{data:f,model:{hasChildren:d}}},b.children,{data:a}),d||(d=g.schema.data),typeof d===q&&(d=n.getter(d)),e(d)&&(b.hasChildren=!!d.call(b,b)),b.children=new bD(g),b.children._parent=function(){return b},b.children.bind(w,function(a){a.node=a.node||b,b.trigger(w,a)}),b._loaded=!!a&&!!a[f]},hasChildren:!1,level:function(){var a=this.parentNode(),b=0;while(a)b++,a=a.parentNode();return b},load:function(){var a=this,c={};c[a.idField||"id"]=a.id,a._loaded||(a.children._data=b),a.children.one(w,function(){a._loaded=!0}).query(c)},parentNode:function(){var a=this.parent();return a.parent()},loaded:function(a){if(a!==b)this._loaded=a;else return this._loaded},shouldSerialize:function(a){return V.fn.shouldSerialize.call(this,a)&&a!=="children"&&a!=="_loaded"&&a!=="hasChildren"}}),bD=bz.extend({init:function(a){var b=bC.define({children:a});bz.fn.init.call(this,c(!0,{},{schema:{modelBase:b,model:b}},a))},remove:function(a){var b=a.parentNode(),c=this,d;b&&(c=b.children),d=bz.fn.remove.call(c,a),b&&!c.data().length&&(b.hasChildren=!1);return d},insert:function(a,b){var c=this._parent();c&&(c.hasChildren=!0);return bz.fn.insert.call(this,a,b)},getByUid:function(a){var b,c,d,e;d=bz.fn.getByUid.call(this,a);if(d)return d;e=this._flatData(this.data());for(b=0,c=e.length;b<c;b++){d=e[b].children.getByUid(a);if(d)return d}}});bD.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},c=b.data,d=b.fields,e=b.list;!c&&d&&!b.transport&&e&&(c=bE(e,d)),b.data=c;return b instanceof bD?b:new bD(b)},c(!0,n.data,{readers:{json:bq},Query:Z,DataSource:bz,HierarchicalDataSource:bD,Node:bC,ObservableObject:R,ObservableArray:Q,LocalTransport:bk,RemoteTransport:bl,Cache:bm,DataReader:bq,Model:V})}(jQuery),function(a,b){function F(a,b){var c=a.element,d=c[0].kendoBindingTarget;d&&B(c,d.source,b)}function E(b){var c,d;b=a(b);for(c=0,d=b.length;c<d;c++)D(b[c])}function D(a){var b,c,d=a.children;C(a);if(d)for(b=0,c=d.length;b<c;b++)D(d[b])}function C(b){var c=b.kendoBindingTarget;c&&(c.destroy(),a.support.deleteExpando?delete b.kendoBindingTarget:b.removeAttribute?b.removeAttribute("kendoBindingTarget"):b.kendoBindingTarget=null)}function B(b,d,e){var f,g;d=c.observable(d),b=a(b);for(f=0,g=b.length;f<g;f++)A(b[f],d,e)}function A(a,b,d){var e=a.getAttribute("data-"+c.ns+"role"),f,g=a.getAttribute("data-"+c.ns+"bind"),h=a.children,i=!0,j,k={},l;d||(d=c.ui),(e||g)&&C(a),e&&(l=v(e,a,d)),g&&(g=y(g.replace(x,"")),l||(k=c.parseOptions(a,{textField:"",valueField:"",template:"",valueUpdate:n}),l=new s(a,k)),l.source=b,j=z(g,b,o),k.template&&(j.template=new q(b,"",k.template)),j.click&&(g.events=g.events||{},g.events.click=g.click,delete j.click),j.source&&(i=!1),g.attr&&(j.attr=z(g.attr,b,o)),g.style&&(j.style=z(g.style,b,o)),g.events&&(j.events=z(g.events,b,p)),l.bind(j)),l&&(a.kendoBindingTarget=l);if(i&&h)for(f=0;f<h.length;f++)A(h[f],b,d)}function z(a,b,c){var d,e={};for(d in a)e[d]=new c(b,a[d]);return e}function y(a){var b={},c,d,e,f,g,h,i;i=a.match(w);for(c=0,d=i.length;c<d;c++)e=i[c],f=e.indexOf(":"),g=e.substring(0,f),h=e.substring(f+1),h.charAt(0)=="{"&&(h=y(h)),b[g]=h;return b}function v(a,b,d){var e=d.roles,f=e[a];if(f)return new t(c.initWidget(b,f.options,e))}function u(a){var b,c,d=[];for(b=0,c=a.length;b<c;b++)a[b].hasSubgroups?d=d.concat(u(a[b].items)):d=d.concat(a[b].items);return d}var c=window.kendo,d=c.Observable,e=c.data.ObservableObject,f=c.data.ObservableArray,g={}.toString,h={},i=c.Class,j,k=a.proxy,l="value",m="checked",n="change";(function(){var a=document.createElement("a");a.innerText!==undefined?j="innerText":a.textContent!==undefined&&(j="textContent")})();var o=d.extend({init:function(a,b){var c=this;d.fn.init.call(c),c.source=a,c.path=b,c.dependencies={},c.dependencies[b]=!0,c.observable=c.source instanceof d,c._access=function(a){c.dependencies[a.field]=!0},c.observable&&(c._change=function(a){c.change(a)},c.source.bind(n,c._change))},change:function(a){var b,c,d,e=this;if(e.path==="this")e.trigger(n,a);else for(b in e.dependencies){c=b.indexOf(a.field);if(c===0){d=b.charAt(a.field.length);if(!d||d==="."||d==="["){e.trigger(n,a);break}}}},start:function(){this.observable&&this.source.bind("get",this._access)},stop:function(){this.observable&&this.source.unbind("get",this._access)},get:function(){var a=this,b=a.source,c,d=a.path,f=b;a.start();if(a.observable){f=b.get(d);while(f===undefined&&b)b=b.parent(),b instanceof e&&(f=b.get(d));typeof f=="function"&&(c=d.lastIndexOf("."),c>0&&(b=b.get(d.substring(0,c))),f=k(f,b),f=f(a.source)),b&&b!==a.source&&b.unbind(n,a._change).bind(n,a._change)}a.stop();return f},set:function(a){this.source.set(this.path,a)},destroy:function(){this.observable&&this.source.unbind(n,this._change)}}),p=o.extend({get:function(){var a=this.source,b=this.path,c;c=a.get(b);while(!c&&a)a=a.parent(),a instanceof e&&(c=a.get(b));return k(c,a)}}),q=o.extend({init:function(a,b,c){var d=this;o.fn.init.call(d,a,b),d.template=c},render:function(a){var b;this.start(),b=c.render(this.template,a),this.stop();return b}}),r=i.extend({init:function(a,b,c){this.element=a,this.bindings=b,this.options=c},bind:function(a,b){var c=this;a=b?a[b]:a,a.bind(n,function(a){c.refresh(b||a)}),c.refresh(b)},destroy:function(){}});h.attr=r.extend({refresh:function(a){this.element.setAttribute(a,this.bindings.attr[a].get())}}),h.style=r.extend({refresh:function(a){this.element.style[a]=this.bindings.style[a].get()}}),h.enabled=r.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),h.disabled=r.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),h.events=r.extend({init:function(a,b,c){r.fn.init.call(this,a,b,c),this.handlers={}},refresh:function(b){var c=this.bindings.events[b],d=this.handlers[b]=c.get();a(this.element).bind(b,c.source,d)},destroy:function(){var b=a(this.element),c;for(c in this.handlers)b.unbind(c,this.handlers[c])}}),h.text=r.extend({refresh:function(){var a=this.bindings.text.get();a==null&&(a=""),this.element[j]=a}}),h.visible=r.extend({refresh:function(){this.bindings.visible.get()?this.element.style.display="":this.element.style.display="none"}}),h.invisible=r.extend({refresh:function(){this.bindings.invisible.get()?this.element.style.display="none":this.element.style.display=""}}),h.html=r.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),h.value=r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),this.eventName=d.valueUpdate||n,a(this.element).bind(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=n,this.bindings[l].set(this.element.value),this._initChange=!1},refresh:function(){if(!this._initChange){var a=this.bindings[l].get();a==null&&(a=""),this.element.value=a}this._initChange=!1},destroy:function(){a(this.element).unbind(this.eventName,this._change)}}),h.source=r.extend({init:function(a,b,c){r.fn.init.call(this,a,b,c)},refresh:function(a){var b=this,c=b.bindings.source.get();c instanceof f?(a=a||{},a.action=="add"?b.add(a.index,a.items):a.action=="remove"?b.remove(a.index,a.items):a.action!="itemchange"&&b.render()):b.render()},container:function(){var a=this.element;a.nodeName.toLowerCase()=="table"&&(a.tBodies[0]||a.appendChild(document.createElement("tbody")),a=a.tBodies[0]);return a},template:function(){var a=this.options,b=a.template,d=this.container().nodeName.toLowerCase();b||(d=="select"?a.valueField||a.textField?b=c.format('<option value="#:{0}#">#:{1}#</option>',a.valueField||a.textField,a.textField||a.valueField):b="<option>#:data#</option>":d=="tbody"?b="<tr><td>#:data#</td></tr>":d=="ul"||d=="ol"?b="<li>#:data#</li>":b="#:data#",b=c.template(b));return b},destroy:function(){var a=this.bindings.source.get();a.unbind(n,this._change)},add:function(b,d){var e=this.container(),f,g,h,i=e.cloneNode(!1),j=e.children[b];a(i).html(c.render(this.template(),d));if(i.children.length)for(f=0,g=d.length;f<g;f++)h=i.children[0],e.insertBefore(h,j||null),A(h,d[f])},remove:function(a,b){var c,d=this.container();for(c=0;c<b.length;c++)d.removeChild(d.children[a])},render:function(){var b=this.bindings.source.get(),d,e,h=this.container(),i=this.template(),j;!(b instanceof f)&&g.call(b)!=="[object Array]"&&(b.parent&&(j=b.parent),b=new f([b]),b.parent&&(b.parent=j));if(this.bindings.template){a(h).html(this.bindings.template.render(b));if(h.children.length)for(d=0,e=b.length;d<e;d++)A(h.children[d],b[d])}else a(h).html(c.render(i,b))}}),h.input={checked:r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),a(this.element).change(this._change)},change:function(){var a=this.element,b=this.value();if(a.type=="radio")this.bindings[m].set(b);else if(a.type=="checkbox"){var c=this.bindings[m].get(),d;c instanceof f?b!==!1&&b!==!0&&(d=c.indexOf(b),d>-1?c.splice(d,1):c.push(b)):this.bindings[m].set(b)}},refresh:function(){var a=this.bindings[m].get(),b=this.element;b.type=="checkbox"?(a instanceof f&&a.indexOf(this.value(b))>=0&&(a=!0),b.checked=a===!0):b.type=="radio"&&a!=null&&b.value===a.toString()&&(b.checked=!0)},value:function(){var a=this.element,b=a.value;a.type=="checkbox"&&(b=="on"||b=="off"||b==="true")&&(b=a.checked);return b},destroy:function(){a(this.element).unbind(n,this._change)}})},h.select={value:r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),a(this.element).change(this._change)},change:function(){var a=[],b=this.element,c,d=this.options.valueField||this.options.textField,g,h,i,j,k;for(j=0,k=b.options.length;j<k;j++)g=b.options[j],g.selected&&(i=g.attributes.value,i&&i.specified?i=g.value:i=g.text,a.push(i));if(d){c=this.bindings.source.get();for(h=0;h<a.length;h++)for(j=0,k=c.length;j<k;j++)if(c[j].get(d)==a[h]){a[h]=c[j];break}}i=this.bindings[l].get(),i instanceof f?i.splice.apply(i,[0,i.length].concat(a)):i instanceof e||!d?this.bindings[l].set(a[0]):this.bindings[l].set(a[0].get(d))},refresh:function(){var a,b=this.element,c=b.options,d=this.bindings[l].get(),g=d,h=this.options.valueField||this.options.textField,i;g instanceof f||(g=new f([d]));for(var j=0;j<g.length;j++){d=g[j],h&&d instanceof e&&(d=d.get(h));for(a=0;a<c.length;a++)i=c[a].value,i===""&&d!==""&&(i=c[a].text),i==d&&(c[a].selected=!0)}},destroy:function(){a(this.element).unbind(n,this._change)}})},h.widget={events:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a,this.handlers={}},refresh:function(a){var b=this.bindings.events[a],c=b.get();this.handlers[a]=function(a){a.data=b.source,c(a)},this.widget.bind(a,this.handlers[a])},destroy:function(){var a;for(a in this.handlers)this.widget.unbind(a,this.handlers[a])}}),checked:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a,this._change=k(this.change,this),this.widget.bind(n,this._change)},change:function(){this.bindings[m].set(this.value())},refresh:function(){this.widget.check(this.bindings[m].get()===!0)},value:function(){var a=this.element,b=a.value;if(b=="on"||b=="off")b=a.checked;return b},destroy:function(){this.widget.unbind(n,this._change)}}),visible:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.visible.get();this.widget.wrapper[0].style.display=a?"":"none"}}),invisible:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.invisible.get();this.widget.wrapper[0].style.display=a?"none":""}}),enabled:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:r.extend({init:function(a,b,c){var d=this;r.fn.init.call(d,a.element[0],b,c),d.widget=a,d._dataBinding=k(d.dataBinding,d),d._dataBound=k(d.dataBound,d),d._itemChange=k(d.itemChange,d)},itemChange:function(a){A(a.item[0],a.data,a.ns||c.ui)},dataBinding:function(){var a,b,c=this.widget,d=c.items();for(a=0,b=d.length;a<b;a++)D(d[a])},dataBound:function(a){var b,d,e=this.widget,f=e.items(),g=e.dataSource,h=g.view(),i=a.ns||c.ui,j=g.group()||[];if(f.length){j.length&&(h=u(h));for(b=0,d=h.length;b<d;b++)A(f[b],h[b],i)}},refresh:function(a){var b=this,d,e=b.widget;a=a||{},a.action||(b.destroy(),e.bind("dataBinding",b._dataBinding),e.bind("dataBound",b._dataBound),e.bind("itemChange",b._itemChange),e.dataSource instanceof c.data.DataSource&&(d=b.bindings.source.get(),d instanceof c.data.DataSource?e.setDataSource(d):e.dataSource.data(d)))},destroy:function(){var a=this.widget;a.unbind("dataBinding",this._dataBinding),a.unbind("dataBound",this._dataBound),a.unbind("itemChange",this._itemChange)}}),value:r.extend({init:function(b,c,d){r.fn.init.call(this,b.element[0],c,d),this.widget=b,this._change=a.proxy(this.change,this),this.widget.first(n,this._change);var f=this.bindings.value.get();this._valueIsObservableObject=f==null||f instanceof e},change:function(){var a=this.widget.value(),b,d,e=this.options.dataValueField||this.options.dataTextField;if(e){var f,g=this._valueIsObservableObject;this.bindings.source&&(f=this.bindings.source.get());if(a===""&&g)a=null;else{if(!f||f instanceof c.data.DataSource)f=this.widget.dataSource.view();for(b=0,d=f.length;b<d;b++)if(f[b].get(e)==a){g?a=f[b]:a=f[b].get(e);break}}}this.bindings.value.set(a)},refresh:function(){var a=this.options.dataValueField||this.options.dataTextField,b=this.bindings.value.get();a&&b instanceof e&&(b=b.get(a)),this.widget.value(b)},destroy:function(){this.widget.unbind(n,this._change)}})};var s=i.extend({init:function(a,b){this.target=a,this.options=b,this.toDestroy=[]},bind:function(a){var b=this.target.nodeName.toLowerCase(),c,d=h[b]||{};for(c in a)this.applyBinding(c,a,d)},applyBinding:function(a,b,c){var d=c[a]||h[a],e=this.toDestroy,f,g=b[a];if(d){d=new d(this.target,b,this.options),e.push(d);if(g instanceof o)d.bind(g),e.push(g);else for(f in g)d.bind(g,f),e.push(g[f])}else if(a!=="template")throw new Error("The "+a+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var a,b,c=this.toDestroy;for(a=0,b=c.length;a<b;a++)c[a].destroy()}}),t=s.extend({bind:function(a){var b=this,c,d=!1,e=!1;for(c in a)c==l?d=!0:c=="source"?e=!0:b.applyBinding(c,a);e&&b.applyBinding("source",a),d&&b.applyBinding(l,a)},applyBinding:function(a,b){var c=h.widget[a],d=this.toDestroy,e,f=b[a];if(!c)throw new Error("The "+a+" binding is not supported by the "+this.target.options.name+" widget");c=new c(this.target,b,this.target.options),d.push(c);if(f instanceof o)c.bind(f),d.push(f);else for(e in f)c.bind(f,e),d.push(f[e])}}),w=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,x=/\s/g;c.unbind=E,c.bind=B,c.data.binders=h,c.data.Binder=r,c.notify=F,c.observable=function(a){a instanceof e||(a=new e(a));return a}}(jQuery),function(a,b){function u(a){return a.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function t(b){var d=c.ui.validator.ruleResolvers||{},e={},f;for(f in d)a.extend(!0,e,d[f].resolve(b));return e}var c=window.kendo,d=c.ui.Widget,e="k-invalid-msg",f="k-invalid",g=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,h=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,i=":input:not(:button,[type=submit],[type=reset])",j="[type=number],[type=range]",k="blur",l="name",m="form",n="novalidate",o=a.proxy,p=function(a,b){typeof b=="string"&&(b=new RegExp("^(?:"+b+")$"));return b.test(a)},q=function(a,b,c){var d=a.val();if(a.filter(b).length&&d!=="")return p(d,c);return!0},r=function(a,c){if(a.length)return a[0].attributes[c]!==b;return!1},s=/(\[|\]|\$|\.|\:|\+)/g;c.ui.validator||(c.ui.validator={rules:{},messages:{}});var v=d.extend({init:function(b,e){var f=this,g=t(b);e=e||{},e.rules=a.extend({},c.ui.validator.rules,g.rules,e.rules),e.messages=a.extend({},c.ui.validator.messages,g.messages,e.messages),d.fn.init.call(f,b,e),f._errorTemplate=c.template(f.options.errorTemplate),f.element.is(m)&&f.element.attr(n,n),f._errors={},f._attachEvents()},options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> ${message}</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date"},rules:{required:function(a){var b=a.filter("[type=checkbox]").length&&a.attr("checked")!=="checked",c=a.val();return!r(a,"required")||c!==""&&!!c&&!b},pattern:function(a){if(a.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length&&a.val()!=="")return p(a.val(),a.attr("pattern"));return!0},min:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[min]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.val());return b<=d}return!0},max:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[max]").length&&a.val()!==""){var b=parseFloat(a.attr("max"))||0,d=parseFloat(a.val());return b>=d}return!0},step:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[step]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.attr("step"))||0,e=parseFloat(a.val());return(e-b)*10%(d*10)/100===0}return!0},email:function(a){return q(a,"[type=email],["+c.attr("type")+"=email]",g)},url:function(a){return q(a,"[type=url],["+c.attr("type")+"=url]",h)},date:function(a){if(a.filter("[type^=date],["+c.attr("type")+"=date]").length&&a.val()!=="")return c.parseDate(a.val(),a.attr(c.attr("format")))!==null;return!0}},validateOnBlur:!0},_submit:function(a){if(!this.validate()){a.stopPropagation(),a.stopImmediatePropagation(),a.preventDefault();return!1}return!0},_attachEvents:function(){var b=this;b.element.is(m)&&b.element.submit(o(b._submit,b)),b.options.validateOnBlur&&(b.element.is(i)?b.element.bind(k,function(){b.validateInput(b.element)}):b.element.delegate(i,k,function(){b.validateInput(a(this))}))},validate:function(){var a=this,b,c,d=!1,e;a._errors={};if(!a.element.is(i)){b=a.element.find(i);for(c=0,e=b.length;c<e;c++)a.validateInput(b.eq(c))||(d=!0);return!d}return a.validateInput(a.element)},validateInput:function(b){b=a(b);var c=this,d=c._errorTemplate,g=c._checkValidity(b),h=g.valid,i="."+e,j=b.attr(l)||"",k=c._findMessageContainer(j).add(b.next(i)).hide(),m;if(!h){m=c._extractMessage(b,g.key),c._errors[j]=m;var n=a(d({message:u(m)}));c._decorateMessageContainer(n,j),k.replaceWith(n).length||n.insertAfter(b),n.show()}b.toggleClass(f,!h);return h},_findMessageContainer:function(a){var b=c.ui.validator.messageLocators,d,f=this.element.find("."+e+"["+c.attr("for")+"="+a.replace(s,"\\$1")+"]");for(d in b)f=f.add(b[d].locate(this.element,a));return f},_decorateMessageContainer:function(a,b){var d=c.ui.validator.messageLocators,f;a.addClass(e).attr(c.attr("for"),b||"");for(f in d)d[f].decorate(a,b)},_extractMessage:function(b,d){var e=this,f=e.options.messages[d],g=b.attr(l);f=a.isFunction(f)?f(b):f;return c.format(b.attr(c.attr(d+"-msg"))||b.attr("validationMessage")||b.attr("title")||f||"",g,b.attr(d))},_checkValidity:function(a){var b=this.options.rules,c;for(c in b)if(!b[c](a))return{valid:!1,key:c};return{valid:!0}},errors:function(){var a=[],b=this._errors,c;for(c in b)a.push(b[c]);return a}});c.ui.plugin(v)}(jQuery),function(a,b){function P(b){b.preventDefault();var c=a(b.target),d=c.closest(".k-widget").parent();d[0]||(d=c.parent()),d.trigger(b.type)}function O(a,b){return a.replace(/ /g,b+" ")}function N(a,b){var c=a.offset(),d=c.left+L(a,"borderLeftWidth")+L(a,"paddingLeft"),e=c.top+L(a,"borderTopWidth")+L(a,"paddingTop"),f=d+a.width()-b.outerWidth(!0),g=e+a.height()-b.outerHeight(!0);return{x:{min:d,max:f},y:{min:e,max:g}}}function M(a,b){return Math.min(Math.max(a,b.min),b.max)}function L(a,b){return parseInt(a.css(b),10)||0}function K(a){return f.elementFromPoint(a.x.client,a.y.client)}function J(b,c){try{return a.contains(b,c)||b==c}catch(d){return!1}}var c=window.kendo,d=c.support,e=d.pointers,f=window.document,g=a(f.documentElement),h=c.Class,i=c.ui.Widget,j=c.Observable,k=a.proxy,l=a.now,m=a.extend,n=c.getOffset,o={},p={},q,r=d.mobileOS&&d.mobileOS.android,s="mousedown",t="mousemove",u="mouseup mouseleave",v="keyup",w="change",x="dragstart",y="drag",z="dragend",A="dragcancel",B="dragenter",C="dragleave",D="drop",E="start",F="move",G="end",H="cancel",I="tap";d.touch&&(s="touchstart",t="touchmove",u="touchend touchcancel"),e&&(s="MSPointerDown",t="MSPointerMove",u="MSPointerUp MSPointerCancel");var Q=h.extend({init:function(a){this.axis=a},start:function(a,b){var c=this,d=a["page"+c.axis];c.startLocation=c.location=d,c.client=a["client"+c.axis],c.velocity=c.delta=0,c.timeStamp=b},move:function(a,b){var c=this,d=a["page"+c.axis];if(!!d||!r)c.delta=d-c.location,c.location=d,c.client=a["client"+c.axis],c.initialDelta=d-c.startLocation,c.velocity=c.delta/(b-c.timeStamp),c.timeStamp=b}}),R=j.extend({init:function(b,f){var h=this,i={},l,n,o="."+c.guid();f=f||{},l=h.filter=f.filter,h.threshold=f.threshold||0,b=a(b),j.fn.init.call(h),i[O(t,o)]=k(h._move,h),i[O(u,o)]=k(h._end,h),m(h,{x:new Q("X"),y:new Q("Y"),element:b,surface:f.global?g:f.surface||b,stopPropagation:f.stopPropagation,pressed:!1,eventMap:i,ns:o}),b.on(s,l,k(h._start,h)).on("dragstart",l,c.preventDefault),e&&b.css("-ms-touch-action","pinch-zoom double-tap-zoom");if(!f.allowSelection){var p=["mousedown selectstart",l,P];l instanceof a&&p.splice(2,0,null),b.on.apply(b,p)}d.eventCapture&&(n=function(a){h.moved&&a.preventDefault()},h.surface[0].addEventListener(d.mouseup,n,!0)),h.bind([I,E,F,G,H],f)},capture:function(){R.captured=!0},cancel:function(){this._cancel(),this.trigger(H)},skip:function(){this._cancel()},_cancel:function(){var a=this;a.moved=a.pressed=!1,a.surface.off(a.ns)},_start:function(b){var c=this,f=c.filter,g=b.originalEvent,h,i=b;if(!c.pressed){f?c.target=a(b.target).is(f)?a(b.target):a(b.target).closest(f):c.target=c.element;if(!c.target.length)return;c.currentTarget=b.currentTarget,c.stopPropagation&&b.stopPropagation(),c.pressed=!0,c.moved=!1,c.startTime=null,d.touch&&(h=g.changedTouches[0],c.touchID=h.identifier,i=h),e&&(c.touchID=g.pointerId,i=g),c._perAxis(E,i,l()),c.surface.off(c.eventMap).on(c.eventMap),R.captured=!1}},_move:function(a){var b=this,c,d,e;!b.pressed||b._withEvent(a,function(f){b._perAxis(F,f,l());if(!b.moved){c=b.x.initialDelta,d=b.y.initialDelta,e=Math.sqrt(c*c+d*d);if(e<=b.threshold)return;if(!R.captured)b.startTime=l(),b._trigger(E,a),b.moved=!0;else return b._cancel()}b.pressed&&b._trigger(F,a)})},_end:function(a){var b=this;!b.pressed||b._withEvent(a,function(){b.moved?(b.endTime=l(),b._trigger(G,a),b.moved=!1):b._trigger(I,a),b._cancel()})},_perAxis:function(a,b,c){this.x[a](b,c),this.y[a](b,c)},_trigger:function(a,b){var c={x:this.x,y:this.y,target:this.target,event:b};this.trigger(a,c)&&b.preventDefault()},_withEvent:function(a,b){var c=this,f=c.touchID,g=a.originalEvent,h,i;if(d.touch){h=g.changedTouches,i=h.length;while(i){i--;if(h[i].identifier===f)return b(h[i])}}else{if(!e)return b(a);if(f===g.pointerId)return b(g)}}}),S=j.extend({init:function(b,c){var d=this,e=b[0];d.capture=!1,e.addEventListener(s,k(d._press,d),!0),a.each(u.split(" "),function(){e.addEventListener(this,k(d._release,d),!0)}),j.fn.init.call(d),d.bind(["press","release"],c||{})},_press:function(a){var b=this;b.trigger("press"),b.capture&&a.preventDefault()},_release:function(a){var b=this;b.trigger("release"),b.capture&&(a.preventDefault(),b.cancelCapture())},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1}}),T=j.extend({init:function(b){var c=this;j.fn.init.call(c),a.extend(c,b),c.max=0,c.horizontal?(c.measure="width",c.scrollSize="scrollWidth",c.axis="x"):(c.measure="height",c.scrollSize="scrollHeight",c.axis="y")},outOfBounds:function(a){return a>this.max||a<this.min},present:function(){return this.max-this.min},getSize:function(){return this.container[this.measure]()},getTotal:function(){return this.element[0][this.scrollSize]},update:function(a){var b=this;b.size=b.getSize(),b.total=b.getTotal(),b.min=Math.min(b.max,b.size-b.total),a||b.trigger(w,b)}}),U=j.extend({init:function(a){var b=this,d=k(b.refresh,b);j.fn.init.call(b),b.x=new T(m({horizontal:!0},a)),b.y=new T(m({horizontal:!1},a)),b.bind(w,a),c.onResize(d)},present:function(){return this.x.present()||this.y.present()},refresh:function(){this.x.update(),this.y.update(),this.trigger(w)}}),V=j.extend({init:function(a){var b=this;m(b,a),j.fn.init.call(b)},dragMove:function(a){var b=this,c=b.dimension,d=b.axis,e=b.movable,f=e[d]+a;if(!!c.present()){if(f<c.min&&a<0||f>c.max&&a>0)a*=b.resistance;e.translateAxis(d,a),b.trigger(w,b)}}}),W=h.extend({init:function(a){var b=this,c,d,e;m(b,{elastic:!0},a),e=b.elastic?.5:0,b.x=c=new V({axis:"x",dimension:b.dimensions.x,resistance:e,movable:b.movable}),b.y=d=new V({axis:"y",dimension:b.dimensions.y,resistance:e,movable:b.movable}),b.drag.bind(["move","end"],{move:function(a){c.dimension.present()||d.dimension.present()?(c.dragMove(a.x.delta),d.dragMove(a.y.delta),a.preventDefault()):b.drag.skip()},end:function(a){a.preventDefault()}})}}),X=d.transitions.prefix+"Transform",Y=Math.round,Z;d.hasHW3D?Z=function(a,b){return"translate3d("+Y(a)+"px,"+Y(b)+"px,0)"}:Z=function(a,b){return"translate("+Y(a)+"px,"+Y(b)+"px)"};var $=j.extend({init:function(b){var c=this;j.fn.init.call(c),c.element=a(b),c.x=0,c.y=0,c._saveCoordinates(Z(c.x,c.y))},translateAxis:function(a,b){this[a]+=b,this.refresh()},translate:function(a){this.x+=a.x,this.y+=a.y,this.refresh()},moveAxis:function(a,b){this[a]=b,this.refresh()},moveTo:function(a){m(this,a),this.refresh()},refresh:function(){var a=this,b=Z(a.x,a.y);b!=a.coordinates&&(a.element[0].style[X]=b,a._saveCoordinates(b),a.trigger(w))},_saveCoordinates:function(a){this.coordinates=a}}),_=i.extend({init:function(a,b){var c=this;i.fn.init.call(c,a,b);var d=c.options.group;d in p?p[d].push(c):p[d]=[c]},events:[B,C,D],options:{name:"DropTarget",group:"default"},_trigger:function(a,b){var c=this,d=o[c.options.group];if(d)return c.trigger(a,m({},b.event,{draggable:d}))},_over:function(a){this._trigger(B,a)},_out:function(a){this._trigger(C,a)},_drop:function(a){var b=this,c=o[b.options.group];c&&(c.dropped=!b._trigger(D,a))}}),ba=i.extend({init:function(a,b){var d=this;i.fn.init.call(d,a,b),d.drag=new R(d.element,{global:!0,stopPropagation:!0,filter:d.options.filter,threshold:d.options.distance,start:k(d._start,d),move:k(d._drag,d),end:k(d._end,d),cancel:k(d._cancel,d)}),d.destroy=k(d._destroy,d),d.captureEscape=function(a){a.keyCode===c.keys.ESC&&(d._trigger(A,{event:a}),d.drag.cancel())}},events:[x,y,z,A],options:{name:"Draggable",distance:5,group:"default",cursorOffset:null,axis:null,container:null,dropped:!1},_start:function(b){var c=this,d=c.options,e=d.container,g=d.hint;c.currentTarget=c.drag.target,c.currentTargetOffset=n(c.currentTarget);if(g){c.hint=a.isFunction(g)?a(g(c.currentTarget)):g;var h=n(c.currentTarget);c.hintOffset=h,c.hint.css({position:"absolute",zIndex:2e4,left:h.left,top:h.top}).appendTo(f.body)}o[d.group]=c,c.dropped=!1,e&&(c.boundaries=N(e,c.hint)),c._trigger(x,b)&&(c.drag.cancel(),c.destroy()),a(f).on(v,c.captureEscape)},updateHint:function(b){var c=this,d,e=c.options,f=c.boundaries,g=e.axis,h=c.options.cursorOffset;h?d={left:b.x.location+h.left,top:b.y.location+h.top}:(c.hintOffset.left+=b.x.delta,c.hintOffset.top+=b.y.delta,d=a.extend({},c.hintOffset)),f&&(d.top=M(d.top,f.y),d.left=M(d.left,f.x)),g==="x"?delete d.top:g==="y"&&delete d.left,c.hint.css(d)},_drag:function(a){var b=this;a.preventDefault(),b._withDropTarget(a,function(b){if(!b)q&&(q._trigger(C,a),q=null);else{if(q){if(b.element[0]===q.element[0])return;q._trigger(C,a)}b._trigger(B,a),q=b}}),b._trigger(y,a),b.hint&&b.updateHint(a)},_end:function(a){var b=this;b._withDropTarget(a,function(b){b&&(b._drop(a),q=null)}),b._trigger(z,a),b._cancel(a.event)},_cancel:function(a){var b=this;b.hint&&!b.dropped?b.hint.animate(b.currentTargetOffset,"fast",b.destroy):b.destroy()},_trigger:function(a,b){var c=this;return c.trigger(a,m({},b.event,{x:b.x,y:b.y,currentTarget:c.currentTarget}))},_withDropTarget:function(a,b){var c=this,d,e,f,g=c.options,h=p[g.group],i=0,j=h&&h.length;if(j){d=K(a),c.hint&&J(c.hint,d)&&(c.hint.hide(),d=K(a),c.hint.show());outer:while(d){for(i=0;i<j;i++){e=h[i];if(e.element[0]===d){f=e;break outer}}d=d.parentNode}b(f)}},_destroy:function(){var b=this;b.hint&&b.hint.remove(),delete o[b.options.group],b.trigger("destroy"),a(f).off(v,b.captureEscape)}});c.ui.plugin(_),c.ui.plugin(ba),c.Drag=R,c.Tap=S,c.containerBoundaries=N,m(c.ui,{Pane:W,PaneDimensions:U,Movable:$})}(jQuery),function(a,b){var c=window.kendo,d=c.mobile,e=c.fx,f=d.ui,g=a.proxy,h=a.extend,i=f.Widget,j=c.Class,k=c.ui.Movable,l=c.ui.Pane,m=c.ui.PaneDimensions,n=e.Transition,o=e.Animation,p=500,q=.7,r=.93,s=.5,t="km-scroller-release",u="km-scroller-refresh",v="pull",w="change",x="resize",y="scroll",z=o.extend({init:function(a){var b=this;o.fn.init.call(b),h(b,a,{transition:new n({axis:a.axis,movable:a.movable,onEnd:function(){b._end()}})}),b.tap.bind("press",function(){b.cancel()}),b.drag.bind("end",g(b.start,b)),b.drag.bind("tap",g(b.onEnd,b))},onCancel:function(){this.transition.cancel()},freeze:function(a){var b=this;b.cancel(),b._moveTo(a)},onEnd:function(){var a=this;a._outOfBounds()?a._snapBack():a._end()},done:function(){return Math.abs(this.velocity)<1},start:function(){var a=this;!a.dimension.present()||(a._outOfBounds()?a._snapBack():(a.velocity=a.drag[a.axis].velocity*16,a.velocity&&(a.tap.captureNext(),o.fn.start.call(a))))},tick:function(){var a=this,b=a.dimension,c=a._outOfBounds()?s:r,d=a.velocity*=c,e=a.movable[a.axis]+d;!a.elastic&&b.outOfBounds(e)&&(e=Math.max(Math.min(e,b.max),b.min),a.velocity=0),a.movable.moveAxis(a.axis,e)},_end:function(){this.tap.cancelCapture(),this.end()},_outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},_snapBack:function(){var a=this,b=a.dimension,c=a.movable[a.axis]>b.max?b.max:b.min;a._moveTo(c)},_moveTo:function(a){this.transition.moveTo({location:a,duration:p,ease:n.easeOutExpo})}}),A=j.extend({init:function(b){var c=this,d=b.axis==="x",e=a('<div class="km-touch-scrollbar km-'+(d?"horizontal":"vertical")+'-scrollbar" />');h(c,b,{element:e,elementSize:0,movable:new k(e),scrollMovable:b.movable,size:d?"width":"height"}),c.scrollMovable.bind(w,g(c._move,c)),c.container.append(e)},_move:function(){var a=this,b=a.axis,c=a.dimension,d=c.size,e=a.scrollMovable,f=d/c.total,g=Math.round(-e[b]*f),h=Math.round(d*f);g+h>d?h=d-g:g<0&&(h+=g,g=0),a.elementSize!=h&&(a.element.css(a.size,h+"px"),a.elementSize=h),a.movable.moveAxis(b,g)},show:function(){this.element.css({opacity:q,visibility:"visible"})},hide:function(){this.element.css({opacity:0})}}),B=i.extend({init:function(b,d){var e=this;i.fn.init.call(e,b,d),b=e.element,b.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>');var f=b.children().eq(1),g=new c.Tap(b),j=new k(f),n=new m({element:f,container:b,change:function(){e.trigger(x)}}),o=new c.Drag(b,{allowSelection:!0,start:function(a){n.refresh(),n.present()?o.capture():o.cancel()}}),p=new l({movable:j,dimensions:n,drag:o,elastic:e.options.elastic});j.bind(w,function(){e.scrollTop=-j.y,e.scrollLeft=-j.x,e.trigger(y,{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}),h(e,{movable:j,dimensions:n,drag:o,pane:p,tap:g,pulled:!1,scrollElement:f,fixedContainer:b.children().first()}),e._initAxis("x"),e._initAxis("y"),n.refresh(),e.options.pullToRefresh&&e._initPullToRefresh(),c.onResize(a.proxy(e.reset,e))},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",pullOffset:140,elastic:!0,pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},events:[v,y,x],setOptions:function(a){var b=this;i.fn.setOptions.call(b,a),a.pullToRefresh&&b._initPullToRefresh()},reset:function(){this.movable.moveTo({x:0,y:0})},scrollTo:function(a,b){this.movable.moveTo({x:a,y:b})},pullHandled:function(){var a=this;a.refreshHint.removeClass(u),a.hintContainer.html(a.pullTemplate({})),a.yinertia.onEnd(),a.xinertia.onEnd()},_initPullToRefresh:function(){var a=this;a.pullTemplate=c.template(a.options.pullTemplate),a.releaseTemplate=c.template(a.options.releaseTemplate),a.refreshTemplate=c.template(a.options.refreshTemplate),a.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-template">'+a.pullTemplate({})+"</span></span>"),a.refreshHint=a.scrollElement.children().first(),a.hintContainer=a.refreshHint.children(".km-template"),a.pane.y.bind("change",g(a._paneChange,a)),a.drag.bind("end",g(a._dragEnd,a))},_dragEnd:function(){var a=this;!a.pulled||(a.pulled=!1,a.refreshHint.removeClass(t).addClass(u),a.hintContainer.html(a.refreshTemplate({})),a.trigger("pull"),a.yinertia.freeze(a.options.pullOffset/2))},_paneChange:function(){var a=this;a.movable.y/s>a.options.pullOffset?a.pulled||(a.pulled=!0,a.refreshHint.removeClass(u).addClass(t),a.hintContainer.html(a.releaseTemplate({}))):a.pulled&&(a.pulled=!1,a.refreshHint.removeClass(t),a.hintContainer.html(a.pullTemplate({})))},_initAxis:function(a){var b=this,c=b.movable,d=b.dimensions[a],e=b.tap,f=new A({axis:a,movable:c,dimension:d,container:b.element}),g=new z({axis:a,movable:c,tap:e,drag:b.drag,dimension:d,elastic:b.options.elastic,end:function(){f.hide()}});b[a+"inertia"]=g,b.pane[a].bind(w,function(){f.show()})}});f.plugin(B)}(jQuery),function(a,b){function j(a){return a.position().top+3}var c=window.kendo,d=c.ui.Widget,e=a.proxy,f=c.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-si-arrow-${(data.dir || "asc") == "asc" ? "n" : "s"}">(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})</span>${data.title ? data.title: data.field}</a><a class="k-button k-button-icon k-button-bare"><span class="k-icon k-group-delete"></span></a></div>',{useWithBlock:!1}),g=function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),lineHeight:b.height()+"px",paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')},h=a('<div class="k-grouping-dropclue"/>'),i=/(\[|\]|\$|\.|\:|\+)/g,k=d.extend({init:function(b,f){var i=this,k,l=c.guid(),m=e(i._intializePositions,i),n,o=i._dropCuePositions=[];d.fn.init.call(i,b,f),n=i.options.draggable||new c.ui.Draggable(i.element,{filter:i.options.filter,hint:g,group:l}),k=i.groupContainer=a(i.options.groupContainer,i.element).kendoDropTarget({group:n.options.group,dragenter:function(a){i._canDrag(a.draggable.currentTarget)&&(a.draggable.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add"),h.css({top:j(k),left:0}).appendTo(k))},dragleave:function(a){a.draggable.hint.find(".k-drag-status").removeClass("k-add").addClass("k-denied"),h.remove()},drop:function(b){var d=b.draggable.currentTarget,e=d.attr(c.attr("field")),f=d.attr(c.attr("title")),g=i.indicator(e),j=i._dropCuePositions,k=j[j.length-1],l;if(!!d.hasClass("k-group-indicator")||!!i._canDrag(d))k?(l=i._dropCuePosition(h.offset().left+parseInt(k.element.css("marginLeft"),10)+parseInt(k.element.css("marginRight"),10)),l&&i._canDrop(a(g),l.element,l.left)&&(l.before?l.element.before(g||i.buildIndicator(e,f)):l.element.after(g||i.buildIndicator(e,f)),i._change())):(i.groupContainer.append(i.buildIndicator(e,f)),i._change())}}).kendoDraggable({filter:"div.k-group-indicator",hint:g,group:n.options.group,dragcancel:e(i._dragCancel,i),dragstart:function(a){var b=a.currentTarget,c=parseInt(b.css("marginLeft"),10),d=b.position().left-c;m(),h.css({top:j(k),left:d}).appendTo(k),this.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add")},dragend:function(){i._dragEnd(this)},drag:e(i._drag,i)}).delegate(".k-button","click",function(b){b.preventDefault(),i._removeIndicator(a(this).parent())}).delegate(".k-link","click",function(b){var d=a(this).parent(),e=i.buildIndicator(d.attr(c.attr("field")),d.attr(c.attr("title")),d.attr(c.attr("dir"))=="asc"?"desc":"asc");d.before(e).remove(),i._change(),b.preventDefault()}),n.bind(["dragend","dragcancel","dragstart","drag"],{dragend:function(){i._dragEnd(this)},dragcancel:e(i._dragCancel,i),dragstart:function(a){var b,c,d;!i.options.allowDrag&&!i._canDrag(a.currentTarget)?a.preventDefault():(m(),o.length?(b=o[o.length-1].element,c=parseInt(b.css("marginRight"),10),d=b.position().left+b.outerWidth()+c):d=0)},drag:e(i._drag,i)}),i.dataSource=i.options.dataSource,i.dataSource&&(i._refreshHandler=e(i.refresh,i),i.dataSource.bind("change",i._refreshHandler))},refresh:function(){var b=this,d=b.dataSource;b.groupContainer.empty().append(a.map(d.group()||[],function(a){var d=a.field.replace(i,"\\$1"),e=b.element.find(b.options.filter).filter("["+c.attr("field")+"="+d+"]");return b.buildIndicator(a.field,e.attr(c.attr("title")),a.dir)}).join("")),b._invalidateGroupContainer()},destroy:function(){var a=this;a.dataSource&&a._refreshHandler&&a.dataSource.unbind("change",a._refreshHandler)},options:{name:"Groupable",filter:"th",messages:{empty:"Drag a column header and drop it here to group by that column"}},indicator:function(b){var d=a(".k-group-indicator",this.groupContainer);return a.grep(d,function(d){return a(d).attr(c.attr("field"))===b})[0]},buildIndicator:function(a,b,d){return f({field:a,dir:d,title:b,ns:c.ns})},descriptors:function(){var b=this,d=a(".k-group-indicator",b.groupContainer),e,f,g,h,i;e=b.element.find(b.options.filter).map(function(){var b=a(this),d=b.attr(c.attr("aggregates")),e=b.attr(c.attr("field"));if(d&&d!==""){f=d.split(","),d=[];for(h=0,i=f.length;h<i;h++)d.push({field:e,aggregate:f[h]})}return d}).toArray();return a.map(d,function(b){b=a(b),g=b.attr(c.attr("field"));return{field:g,dir:b.attr(c.attr("dir")),aggregates:e||[]}})},_removeIndicator:function(a){var b=this;a.remove(),b._invalidateGroupContainer(),b._change()},_change:function(){var a=this;a.dataSource&&a.dataSource.group(a.descriptors())},_dropCuePosition:function(b){var c=this._dropCuePositions;if(!!h.is(":visible")&&c.length!==0){b=Math.ceil(b);var d=c[c.length-1],e=d.right,f=parseInt(d.element.css("marginLeft"),10),g=parseInt(d.element.css("marginRight"),10);b>=e?b={left:d.element.position().left+d.element.outerWidth()+g,element:d.element,before:!1}:(b=a.grep(c,function(a){return a.left<=b&&b<=a.right})[0],b&&(b={left:b.element.position().left-f,element:b.element,before:!0}));return b}},_drag:function(a){var b=c.touchLocation(a),d=this._dropCuePosition(b.x);d&&h.css({left:d.left})},_canDrag:function(a){return a.attr(c.attr("groupable"))!="false"&&(a.hasClass("k-group-indicator")||!this.indicator(a.attr(c.attr("field"))))},_canDrop:function(a,b,c){var d=a.next();return a[0]!==b[0]&&(!d[0]||b[0]!==d[0]||c>d.position().left)},_dragEnd:function(b){var d=this,e=b.currentTarget.attr(c.attr("field")),f=d.indicator(e);b!==d.options.draggable&&!b.dropped&&f&&d._removeIndicator(a(f)),d._dragCancel()},_dragCancel:function(){h.remove(),this._dropCuePositions=[]},_intializePositions:function(){var b=this,c=a(".k-group-indicator",b.groupContainer),d;b._dropCuePositions=a.map(c,function(b){b=a(b),d=b.offset().left;return{left:parseInt(d,10),right:parseInt(d+b.outerWidth(),10),element:b}})},_invalidateGroupContainer:function(){var a=this.groupContainer;a.is(":empty")&&a.html(this.options.messages.empty)}});c.ui.plugin(k)}(jQuery),function(a,b){function g(b,c){b=a(b),c?b.find(".k-drag-status").removeClass("k-add").addClass("k-denied"):b.find(".k-drag-status").removeClass("k-denied").addClass("k-add")}var c=window.kendo,d=c.ui.Widget,e="change",f="k-reorderable",h=d.extend({init:function(b,h){var i=this,j,k=c.guid()+"-reorderable";d.fn.init.call(i,b,h),b=i.element.addClass(f),h=i.options,j=h.draggable||new c.ui.Draggable(b,{group:k,filter:h.filter,hint:h.hint}),i.reorderDropCue=a('<div class="k-reorder-cue"><div class="k-icon k-i-arrow-s"></div><div class="k-icon k-i-arrow-n"></div></div>'),b.find(j.options.filter).kendoDropTarget({group:j.options.group,dragenter:function(a){if(!!i._draggable){var c=this.element,d=c[0]===i._draggable[0];g(a.draggable.hint,d),d||i.reorderDropCue.css({height:c.outerHeight(),top:b.offset().top,left:c.offset().left+(c.index()>i._draggable.index()?c.outerWidth():0)}).appendTo(document.body)}},dragleave:function(a){g(a.draggable.hint,!0),i.reorderDropCue.remove()},drop:function(){if(!!i._draggable){var a=i._draggable[0],c=this.element[0],d;a!==c&&(d=b.find(j.options.filter),i.trigger(e,{element:i._draggable,oldIndex:d.index(a),newIndex:d.index(c)}))}}}),j.bind(["dragcancel","dragend","dragstart"],{dragcancel:function(){i.reorderDropCue.remove(),i._draggable=null},dragend:function(){i.reorderDropCue.remove(),i._draggable=null},dragstart:function(a){i._draggable=a.currentTarget}})},options:{name:"Reorderable",filter:"*"},events:[e]});c.ui.plugin(h)}(jQuery),function(a,b){var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=a.isFunction,h=a.extend,i="horizontal",j="vertical",k="start",l="resize",m="resizeend",n=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.orientation=c.options.orientation.toLowerCase()!=j?i:j,c._positionMouse=c.orientation==i?"x":"y",c._position=c.orientation==i?"left":"top",c._sizingDom=c.orientation==i?"outerWidth":"outerHeight",new d.Draggable(a,{distance:0,filter:b.handle,drag:f(c._resize,c),dragstart:f(c._start,c),dragend:f(c._stop,c)})},events:[l,m,k],options:{name:"Resizable",orientation:i},_max:function(a){var c=this,d=c.hint?c.hint[c._sizingDom]():0,e=c.options.max;return g(e)?e(a):e!==b?c._initialElementPosition+e-d:e},_min:function(a){var c=this,d=c.options.min;return g(d)?d(a):d!==b?c._initialElementPosition+d:d},_start:function(b){var c=this,d=c.options.hint,e=a(b.currentTarget);c._initialMousePosition=b[c._positionMouse].location,c._initialElementPosition=e.position()[c._position],d&&(c.hint=g(d)?a(d(e)):d,c.hint.css({position:"absolute"}).css(c._position,c._initialElementPosition).appendTo(c.element)),c.trigger(k,b),c._maxPosition=c._max(b),c._minPosition=c._min(b),a(document.body).css("cursor",e.css("cursor"))},_resize:function(c){var d=this,e=a(c.currentTarget),f=d._maxPosition,g=d._minPosition,i=d._initialElementPosition+(c[d._positionMouse].location-d._initialMousePosition),j;j=g!==b?Math.max(g,i):i,d.position=j=f!==b?Math.min(f,j):j,d.hint&&d.hint.toggleClass(d.options.invalidClass||"",j==f||j==g).css(d._position,j),d.trigger(l,h(c,{position:j}))},_stop:function(b){var c=this;c.hint&&c.hint.remove(),c.trigger(m,h(b,{position:c.position})),a(document.body).css("cursor","")}});c.ui.plugin(n)}(jQuery),function(a,b){var c=window.kendo,d=a.proxy,e="data-dir",f="asc",g="single",h="data-field",i="desc",j=".k-link",k=c.ui.Widget,l=k.extend({init:function(a,b){var c=this,e;k.fn.init.call(c,a,b),c.dataSource=c.options.dataSource.bind("change",d(c.refresh,c)),e=c.element.find(j),e[0]||(e=c.element.wrapInner('<a class="k-link" href="#"/>').find(j)),c.link=e,c.element.click(d(c._click,c))},options:{name:"Sortable",mode:g,allowUnsort:!0},refresh:function(){var b=this,c=b.dataSource.sort()||[],d,g,j,k,l=b.element,m=l.attr(h);l.removeAttr(e);for(d=0,g=c.length;d<g;d++)j=c[d],m==j.field&&l.attr(e,j.dir);k=l.attr(e),l.find(".k-i-arrow-n,.k-i-arrow-s").remove(),k===f?a('<span class="k-icon k-i-arrow-n" />').appendTo(b.link):k===i&&a('<span class="k-icon k-i-arrow-s" />').appendTo(b.link)},_click:function(a){var c=this,d=c.element,j=d.attr(h),k=d.attr(e),l=c.options,m=c.dataSource.sort()||[],n,o;k===f?k=i:k===i&&l.allowUnsort?k=b:k=f;if(l.mode===g)m=[{field:j,dir:k}];else if(l.mode==="multiple"){for(n=0,o=m.length;n<o;n++)if(m[n].field===j){m.splice(n,1);break}m.push({field:j,dir:k})}a.preventDefault(),c.dataSource.sort(m)}});c.ui.plugin(l)}(jQuery),function(a,b){var c=window.kendo,d=c.support.touch,e=c.ui.Widget,f=a.proxy,g=d?"touchend":"mouseup",h=d?"touchstart":"mousedown",i=d?"touchmove":"mousemove",j="k-state-selected",k="k-state-selecting",l="k-selectable",m="selectstart",n=a(document),o="change",p="k-state-unselecting",q=e.extend({init:function(b,c){var d=this;e.fn.init.call(d,b,c),d._marquee=a("<div class='k-marquee'></div>"),d._lastActive=null,d._moveDelegate=f(d._move,d),d._upDelegate=f(d._up,d),d.element.addClass(l),d.element.delegate("."+l+" "+d.options.filter,h,f(d._down,d))},events:[o],options:{name:"Selectable",filter:">*",multiple:!1},_collide:function(a,b){var c=a.offset(),d={left:c.left,top:c.top,right:c.left+a.outerWidth(),bottom:c.top+a.outerHeight()};return!(d.left>b.right||d.right<b.left||d.top>b.bottom||d.bottom<b.top)},_position:function(a){var b=this._originalPosition,c=b.x,d=b.y,e=a.pageX,f=a.pageY,g;c>e&&(g=e,e=c,c=g),d>f&&(g=f,f=d,d=g);return{top:d,right:e,left:c,bottom:f}},_down:function(b){var d=this,e,f=b.ctrlKey,h=b.shiftKey,o=!d.options.multiple;d._downTarget=a(b.currentTarget),d._shiftPressed=h;if(d._downTarget.closest("."+l)[0]===d.element[0]){n.unbind(g,d._upDelegate).bind(g,d._upDelegate),d._originalPosition={x:b.pageX,y:b.pageY},!o&&a(b.target).is(":not(:input, a)")&&(n.unbind(i,d._moveDelegate).bind(i,d._moveDelegate).unbind(m,!1).bind(m,!1),c.support.touch||b.preventDefault()),o||(a("body").append(d._marquee),d._marquee.css({left:b.clientX+1,top:b.clientY+1,width:0,height:0})),e=d._downTarget.hasClass(j),(o||!f&&!h)&&d.element.find(d.options.filter+"."+j).not(d._downTarget).removeClass(j),f&&(d._lastActive=d._downTarget);if(e&&(f||h))d._downTarget.addClass(j),h||d._downTarget.addClass(p);else if(!c.support.touch||!o)d._downTarget.addClass(k),o&&d._downTarget.hasClass(j)&&d._downTarget.removeClass(k)}},_move:function(b){var c=this,d=c._position(b),e=b.ctrlKey,f,g;c._marquee.css({left:d.left,top:d.top,width:d.right-d.left,height:d.bottom-d.top}),c.element.find(c.options.filter).each(function(){f=a(this),g=c._collide(f,d),g?f.hasClass(j)?c._downTarget[0]!==f[0]&&e&&f.removeClass(j).addClass(p):!f.hasClass(k)&&!f.hasClass(p)&&f.addClass(k):f.hasClass(k)?f.removeClass(k):e&&f.hasClass(p)&&f.removeClass(p).addClass(j)})},_up:function(a){var b=this,d=b.options,e=!d.multiple;n.unbind(m,!1).unbind(i,b._moveDelegate).unbind(g,b._upDelegate),e||b._marquee.remove(),c.support.touch&&e&&b._downTarget.addClass(k),!e&&b._shiftPressed===!0?b.selectRange(b._firstSelectee(),b._downTarget):(b.element.find(d.filter+"."+p).removeClass(p).removeClass(j),b.value(b.element.find(d.filter+"."+k))),b._shiftPressed||(b._lastActive=b._downTarget),b._downTarget=null,b._shiftPressed=!1},value:function(a){var b=this,c=f(b._selectElement,b);if(a)a.each(function(){c(this)}),b.trigger(o,{});else return b.element.find(b.options.filter+"."+j)},_firstSelectee:function(){var a=this,b;if(a._lastActive!==null)return a._lastActive;b=a.value();return b.length>0?b[0]:a.element.find(a.options.filter)},_selectElement:function(b){var c=a(b),d=this.trigger("select",{element:b});c.removeClass(k),d||c.addClass(j)},clear:function(){var a=this;a.element.find(a.options.filter+"."+j).removeClass(j)},selectRange:function(b,c){var d=this,e=!1,g=f(d._selectElement,d),h;b=a(b)[0],c=a(c)[0],d.element.find(d.options.filter).each(function(){h=a(this);if(e)g(this),e=this!==c;else if(this===b)e=b!==c,g(this);else if(this===c){var d=b;b=c,c=d,e=!0,g(this)}else h.removeClass(j)}),d.trigger(o,{})}});c.ui.plugin(q)}(jQuery),function(a,b){function v(a,b,c){r(a,h,c,b>=c)}function u(a,b,c){r(a,j,Math.min(c,b+1),b>=c)}function t(a,b,c){r(a,i,Math.max(1,b-1),b<=1)}function s(a,b,c){r(a,g,1,b<=1)}function r(a,b,d,e){a.find(b).parent().attr(c.attr("page"),d).toggleClass("k-state-disabled",e)}function q(a,b){return o({className:a.substring(1),text:b})}function p(a,b,d,e){return a({idx:b,text:d,ns:c.ns,numeric:e})}var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=".k-i-seek-w",h=".k-i-seek-e",i=".k-i-arrow-w",j=".k-i-arrow-e",k="change",l="click",m="keydown",n="disabled",o=c.template('<a href="\\#" title="#=text#" class="k-link"><span class="k-icon #= className #">#=text#</span></a>'),w=e.extend({init:function(b,d){var n=this,o,p;e.fn.init.call(n,b,d),d=n.options,n.dataSource=d.dataSource,n.linkTemplate=c.template(n.options.linkTemplate),n.selectTemplate=c.template(n.options.selectTemplate),o=n.page(),p=n.totalPages(),n._refreshHandler=f(n.refresh,n),n.dataSource.bind(k,n._refreshHandler),d.previousNext&&(n.element.find(g).length||(n.element.append(q(g,d.messages.first)),s(n.element,o,p)),n.element.find(i).length||(n.element.append(q(i,d.messages.previous)),t(n.element,o,p))),d.numeric&&(n.list=n.element.find(".k-pager-numbers"),n.list.length||(n.list=a('<ul class="k-pager-numbers k-reset" />').appendTo(n.element))),d.input&&(n.element.find(".k-pager-input").length||n.element.append('<span class="k-pager-input k-label">'+d.messages.page+'<input class="k-textbox">'+c.format(d.messages.of,p)+"</span>"),n._keydownHandler=f(n._keydown,n),n.element.on(m,".k-pager-input input",n._keydownHandler)),d.previousNext&&(n.element.find(j).length||(n.element.append(q(j,d.messages.next)),u(n.element,o,p)),n.element.find(h).length||(n.element.append(q(h,d.messages.last)),v(n.element,o,p))),d.pageSizes&&(n.element.find(".k-pager-sizes").length||a('<span class="k-pager-sizes k-label"><select/>'+d.messages.itemsPerPage+"</span>").appendTo(n.element).find("select").html(a.map(a.isArray(d.pageSizes)?d.pageSizes:[5,10,20],function(a){return"<option>"+a+"</option>"}).join("")).end().appendTo(n.element),n.element.find(".k-pager-sizes select").val(n.pageSize()),c.ui.DropDownList&&n.element.find(".k-pager-sizes select").kendoDropDownList(),n._changeHandler=f(n._change,n),n.element.on(k,".k-pager-sizes select",n._changeHandler)),d.refresh&&(n.element.find(".k-pager-refresh").length||n.element.append('<a href="#" class="k-pager-refresh k-link" title="'+d.messages.refresh+'"><span class="k-icon k-i-refresh">'+d.messages.refresh+"</span></a>"),n._reloadHandler=f(n._refreshClick,n),n.element.on(l,".k-pager-refresh",n._reloadHandler)),d.info&&(n.element.find(".k-pager-info").length||n.element.append('<span class="k-pager-info k-label" />')),n._clickHandler=f(n._click,n),n.element.on(l,"a",n._clickHandler),d.autoBind&&n.refresh()},destroy:function(){var a=this;a.element.off(l,"a",a._clickHandler),a.element.off(m,".k-pager-input input",a._keydownHandler),a.element.off(k,".k-pager-sizes select",a._changeHandler),a.element.off(l,".k-pager-refresh",a._reloadHandler),a.dataSource.unbind(k,a._refreshHandler)},events:[k],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',linkTemplate:'<li><a href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh"}},refresh:function(){var a=this,b,d,e=1,f="",g,h=a.page(),i=a.options,j=a.pageSize(),k=a.dataSource.total(),l=a.totalPages(),m=a.linkTemplate,o=i.buttonCount;if(i.numeric){h>o&&(g=h%o,e=g===0?h-o+1:h-g+1),d=Math.min(e+o-1,l),e>1&&(f+=p(m,e-1,"...",!1));for(b=e;b<=d;b++)f+=p(b==h?a.selectTemplate:m,b,b,!0);d<l&&(f+=p(m,b,"...",!1)),f===""&&(f=a.selectTemplate({text:0})),a.list.html(f)}i.info&&(k>0?f=c.format(i.messages.display,(h-1)*j+1,Math.min(h*j,k),k):f=i.messages.empty,a.element.find(".k-pager-info").html(f)),i.input&&a.element.find(".k-pager-input").html(a.options.messages.page+'<input class="k-textbox">'+c.format(i.messages.of,l)).find("input").val(h).attr(n,k<1).toggleClass("k-state-disabled",k<1),i.previousNext&&(s(a.element,h,l),t(a.element,h,l),u(a.element,h,l),v(a.element,h,l)),i.pageSizes&&a.element.find(".k-pager-sizes select").val(j)},_keydown:function(a){if(a.keyCode===c.keys.ENTER){var b=this.element.find(".k-pager-input").find("input"),d=parseInt(b.val(),10);if(isNaN(d)||d<1||d>this.totalPages())d=this.page();b.val(d),this.page(d)}},_refreshClick:function(a){a.preventDefault(),this.dataSource.read()},_change:function(a){var b=parseInt(a.currentTarget.value,10);isNaN(b)||this.dataSource.pageSize(b)},_click:function(b){var d=a(b.currentTarget);b.preventDefault(),d.is(".k-state-disabled")||this.page(d.attr(c.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(a){if(a!==b)this.dataSource.page(a),this.trigger(k,{index:a});else return this.dataSource.total()>0?this.dataSource.page():0}});d.plugin(w)}(jQuery),function(a,b){function M(b,c){return b===c||a.contains(b,c)}var c=window.kendo,d=c.ui,e=d.Widget,f=c.support,g=f.touch,h=c.getOffset,i=a.browser.msie&&a.browser.version<9,j="open",k="close",l="deactivate",m="activate",n="center",o="left",p="right",q="top",r="bottom",s="absolute",t="hidden",u="body",v="location",w="position",x="visible",y="fitted",z="effects",A="k-state-active",B="k-state-border",C=".k-picker-wrap, .k-dropdown-wrap, .k-link",D=g?"touchstart":"mousedown",E=a(document),F=a(window),G=a(document.documentElement),H="resize scroll",I=f.transitions.css,J=I+"transform",K=a.extend,L=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],N=e.extend({init:function(b,d){var f=this,g;e.fn.init.call(f,b,d),b=f.element,d=f.options,f.collisions=d.collision?d.collision.split(" "):[],f.collisions.length===1&&f.collisions.push(f.collisions[0]),g=a(f.options.anchor).closest(".k-popup,.k-group"),d.appendTo=a(a(d.appendTo)[0]||g[0]||u),f.element.hide().addClass("k-popup k-group k-reset").css({position:s}).appendTo(d.appendTo).bind("mouseenter mouseleave",function(a){f._hovered=a.type==="mouseenter"}),f.wrapper=a(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),K(d.animation.open,{complete:function(){f.wrapper.css({overflow:x}),f.trigger(m)}}),K(d.animation.close,{complete:function(){f.wrapper.hide();var e=f.wrapper.data(v),g=a(d.anchor),h,i;e&&f.wrapper.css(e),d.anchor!=u&&(h=g.hasClass(B+"-down")?"down":"up",i=B+"-"+h,g.removeClass(i).children(C).removeClass(A).removeClass(i),b.removeClass(B+"-"+c.directions[h].reverse)),f._closing=!1,f.trigger(l)}}),f._mousedownProxy=function(a){f._mousedown(a)},f._currentWidth=E.width(),f._resizeProxy=function(a){f._resize(a)},d.toggleTarget&&a(d.toggleTarget).bind(d.toggleEvent,a.proxy(f.toggle,f))},events:[j,m,k,l],options:{name:"Popup",toggleEvent:"click",origin:r+" "+o,position:q+" "+o,anchor:u,collision:"flip fit",viewport:window,animation:{open:{effects:"slideIn:down",transition:!0,duration:200,show:!0},close:{duration:100,show:!1,hide:!0}}},open:function(b,d){var e=this,h={isFixed:!isNaN(parseInt(d,10)),x:b,y:d},i=e.element,k=e.options,l="down",m,n,o=a(k.anchor),p,r;if(!e.visible()){for(r=0;r<L.length;r++)p=L[r],i.css(p,o.css(p));if(i.data("animating")||e.trigger(j))return;G.unbind(D,e._mousedownProxy).bind(D,e._mousedownProxy),g||F.unbind(H,e._resizeProxy).bind(H,e._resizeProxy),e.wrapper=n=c.wrap(i).css({overflow:t,display:"block",position:s}),f.mobileOS.android&&n.add(o).css(J,"translatez(0)"),n.css(w),k.appendTo==u&&n.css(q,"-10000px"),m=K(!0,{},k.animation.open),e.flipped=e._position(h),m.effects=c.parseEffects(m.effects,e.flipped),l=m.effects.slideIn?m.effects.slideIn.direction:l;if(k.anchor!=u){var v=B+"-"+l;i.addClass(B+"-"+c.directions[l].reverse),o.addClass(v).children(C).addClass(A).addClass(v)}i.data(z,m.effects).kendoStop(!0).kendoAnimate(m)}},toggle:function(){var a=this;a[a.visible()?k:j]()},visible:function(){return this.element.is(":"+x)},close:function(){var b=this,d=b.options,e,f,g;if(b.visible()){if(b._closing||b.trigger(k))return;b.element.find(".k-popup").each(function(){var b=a(this),c=b.data("kendoPopup");c&&c.close()}),G.unbind(D,b._mousedownProxy),F.unbind(H,b._resizeProxy),e=K(!0,{},d.animation.close),f=b.element.data(z),g=e.effects,b.wrapper=c.wrap(b.element).css({overflow:t}),!g&&!c.size(g)&&f&&c.size(f)&&(e.effects=f,e.reverse=!0),b._closing=!0,b.element.kendoStop(!0).kendoAnimate(e)}},_resize:function(a){var b=this;if(i){var c=E.width();if(c==b._currentWidth)return;b._currentWidth=c}b._hovered||b.close()},_mousedown:function(b){var d=this,e=d.element[0],f=d.options,g=a(f.anchor)[0],h=f.toggleTarget,i=c.eventTarget(b),j=a(i).closest(".k-popup")[0];(!j||j===d.element[0])&&!M(e,i)&&!M(g,i)&&(!h||!M(a(h)[0],i))&&d.close()},_fit:function(a,b,c){var d=0;a+b>c&&(d=c-(a+b)),a<0&&(d=-a);return d},_flip:function(a,b,c,d,e,f,g){var h=0;g=g||b,f!==e&&f!==n&&e!==n&&(a+g>d&&(h+=-(c+b)),a+h<0&&(h+=c+b));return h},_position:function(b){var c=this,d=c.element,e=c.wrapper,g=c.options,i=a(g.viewport),j=a(i).offset(),k=a(g.anchor),l=g.origin.toLowerCase().split(" "),m=g.position.toLowerCase().split(" "),n=c.collisions,o=f.zoomLevel(),p=10002,q=k.parents().filter(e.siblings());if(q[0]){var r=Number(a(q).css("zIndex"));r&&(p=r+1)}e.css("zIndex",p),b&&b.isFixed?e.css({left:b.x,top:b.y}):e.css(c._align(l,m));var s=h(e,w),t=h(e),u=k.offsetParent().parent(".k-animation-container");u.length&&u.data(y)&&(s=h(e,w),t=h(e)),i[0]===window?(t.top-=window.pageYOffset||document.documentElement.scrollTop||0,t.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(t.top-=j.top,t.left-=j.left),c.wrapper.data(v)||e.data(v,K({},s));var x=K({},t),z=K({},s);n[0]==="fit"&&(z.top+=c._fit(x.top,e.outerHeight(),i.height()/o)),n[1]==="fit"&&(z.left+=c._fit(x.left,e.outerWidth(),i.width()/o)),z.left!=s.left||z.top!=s.top?e.data(y,!0):e.removeData(y);var A=K({},z);n[0]==="flip"&&(z.top+=c._flip(x.top,d.outerHeight(),k.outerHeight(),i.height()/o,l[0],m[0],e.outerHeight())),n[1]==="flip"&&(z.left+=c._flip(x.left,d.outerWidth(),k.outerWidth(),i.width()/o,l[1],m[1],e.outerWidth())),e.css(z);return z.left!=A.left||z.top!=A.top},_align:function(b,c){var d=this,e=d.wrapper,f=a(d.options.anchor),g=b[0],i=b[1],j=c[0],k=c[1],l=h(f),m=a(d.options.appendTo),o,q=e.outerWidth(),s=e.outerHeight(),t=f.outerWidth(),u=f.outerHeight(),v=l.top,w=l.left,x=Math.round;m[0]!=document.body&&(o=h(m),v-=o.top,w-=o.left),g===r&&(v+=u),g===n&&(v+=x(u/2)),j===r&&(v-=s),j===n&&(v-=x(s/2)),i===p&&(w+=t),i===n&&(w+=x(t/2)),k===p&&(w-=q),k===n&&(w-=x(q/2));return{top:v,left:w}}});d.plugin(N)}(jQuery),function(a,b){function y(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){y(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e=d.Widget,f=c.keys,g=c.support.touch,h="id",i="li",j=g?"touchend":"click",k="change",l="character",m="k-state-focused",n="k-state-hover",o="k-loading",p="open",q="close",r="select",s="selected",t=a.extend,u=a.proxy,v=a.browser.msie&&parseInt(a.browser.version,10)<9,w=/"/g,x=e.extend({init:function(b,d){var f=this,g,k;e.fn.init.call(f,b,d),f._template(),f.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(i,"mouseenter",function(){a(this).addClass(n)}).delegate(i,"mouseleave",function(){a(this).removeClass(n)}).delegate(i,j,u(f._click,f)),f.list=k=a("<div class='k-list-container'/>").append(f.ul).mousedown(function(a){a.preventDefault()}),g=f.element.attr(h),g&&k.attr(h,g+"-list"),a(document.documentElement).bind("mousedown",u(f._mousedown,f))},items:function(){return this.ul[0].children},current:function(a){var c=this;if(a!==b)c._current&&c._current.removeClass(m),a&&(a.addClass(m),c._scroll(a)),c._current=a;else return c._current},dataItem:function(a){var c=this;a===b&&(a=c.selectedIndex);return c._data()[a]},_accessors:function(){var a=this,b=a.element,d=a.options,e=c.getter,f=b.attr(c.attr("text-field")),g=b.attr(c.attr("value-field"));f&&(d.dataTextField=f),g&&(d.dataValueField=g),a._text=e(d.dataTextField),a._value=e(d.dataValueField)},_blur:function(){var a=this;a._change(),a.close()},_change:function(){var a=this,c=a.selectedIndex,d=a.value(),e;d!==a._old?e=!0:c!==b&&c!==a._oldIndex&&(e=!0),e&&(a._old=d,a._oldIndex=c,a.trigger(k),a.element.trigger(k))},_click:function(b){b.isDefaultPrevented()||(this._accept(a(b.currentTarget)),b.type==="touchend"&&b.preventDefault())},_data:function(){return this.dataSource.view()},_enable:function(){var a=this,b=a.options;a.element.prop("disabled")&&(b.enable=!1),a.enable(b.enable)},_focus:function(a){var b=this;b.popup.visible()&&a&&b.trigger(r,{item:a})?b.close():(b._select(a),b._blur())},_height:function(a){if(a){var b=this,c=b.list,d=b.popup.visible(),e=b.options.height;c=c.add(c.parent(".k-animation-container")).show().height(b.ul[0].scrollHeight>e?e:"auto"),d||c.hide()}},_adjustListWidth:function(){var b=this.list,c=b[0].style.width,d=this.wrapper,e,f;c||(e=window.getComputedStyle?window.getComputedStyle(d[0],null):0,f=e?parseFloat(e.width):d.outerWidth(),e&&(a.browser.mozilla||a.browser.msie)&&(f+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),c=f-(b.outerWidth()-b.width())),b.css({fontFamily:d.css("font-family"),width:c});return!0},_popup:function(){var a=this,b=a.list,e=a.options,f=a.wrapper,g=!1;a.popup=new d.Popup(b,t({},e.popup,{anchor:f,open:function(b){g||(g=a._adjustListWidth()),a.trigger(p)&&b.preventDefault()},close:function(b){a.trigger(q)&&b.preventDefault()},animation:e.animation})),a._touchScroller=c.touchScroller(a.popup.element)},_makeUnselectable:function(a){v&&this.list.find("*").attr("unselectable","on")},_toggleHover:function(b){g||a(b.currentTarget).toggleClass(n,b.type==="mouseenter")},_toggle:function(a){var c=this;a=a!==b?a:!c.popup.visible(),!g&&c._focused[0]!==document.activeElement&&c._focused.focus(),c[a?p:q]()},_scroll:function(a){if(!!a){a[0]&&(a=a[0]);var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},_template:function(){var a=this,b=a.options,d=b.template,e=b.dataSource;a.element.is(r)&&a.element[0].length&&(e||(b.dataTextField=b.dataTextField||"text",b.dataValueField=b.dataValueField||"value")),d?(d=c.template(d),a.template=function(a){return'<li unselectable="on" class="k-item">'+d(a)+"</li>"}):a.template=c.template('<li unselectable="on" class="k-item">${data'+(b.dataTextField?".":"")+b.dataTextField+"}</li>",{useWithBlock:!1})}});t(x,{caret:function(a){var b,c=a.ownerDocument.selection;c?b=Math.abs(c.createRange().moveStart(l,-a.value.length)):b=a.selectionStart;return b},selectText:function(a,b,c){try{if(a.createTextRange){a.focus();var d=a.createTextRange();d.collapse(!0),d.moveStart(l,b),d.moveEnd(l,c-b),d.select()}else a.setSelectionRange(b,c)}catch(e){}},inArray:function(a,b){var c,d,e=b.children;if(!a||a.parentNode!==b)return-1;for(c=0,d=e.length;c<d;c++)if(a===e[c])return c;return-1}}),c.ui.List=x,d.Select=x.extend({init:function(a,b){x.fn.init.call(this,a,b)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this.options.autoBind&&this._selectItem()},close:function(){this.popup.close()},_accessor:function(a,c){var d=this.element,e=d.is(r),f,g;d=d[0];if(a===b){e?(g=d.selectedIndex,g>-1&&(f=d.options[g],f&&(a=f.value))):a=d.value;return a}e?d.selectedIndex=c:d.value=a},_hideBusy:function(){var a=this;clearTimeout(a._busy),a._arrow.removeClass(o),a._busy=null},_showBusy:function(){var a=this;a._busy||(a._busy=setTimeout(function(){a._arrow.addClass(o)},100))},_dataSource:function(){var b=this,d=b.element,e=b.options,f=e.dataSource||{},g;f=a.isArray(f)?{data:f}:f,d.is(r)&&(g=d[0].selectedIndex,g>-1&&(e.index=g),f.select=d,f.fields=[{field:e.dataTextField},{field:e.dataValueField}]),b.dataSource&&b._refreshHandler?b.dataSource.unbind(k,b._refreshHandler).unbind("requestStart",b._requestStartHandler):(b._refreshHandler=u(b.refresh,b),b._requestStartHandler=u(b._showBusy,b)),b.dataSource=c.data.DataSource.create(f).bind(k,b._refreshHandler).bind("requestStart",b._requestStartHandler)},_index:function(a){var c=this,d,e,f=c._data(),g;for(d=0,e=f.length;d<e;d++){g=c._value(f[d]),g===b&&(g=c._text(f[d]));if(g==a)return d}return-1},_get:function(b){var c=this,d=c._data(),e,f;if(typeof b=="function")for(e=0,f=d.length;e<f;e++)if(b(d[e])){b=e;break}if(typeof b=="number"){if(b<0)return a();b=a(c.ul[0].children[b])}b&&b.nodeType&&(b=a(b));return b},_move:function(a){var b=this,c=a.keyCode,d=b.ul[0],e=b._current,g=c===f.DOWN,h;c===f.UP||g?(a.altKey?b.toggle(g):g?(b._select(e?e[0].nextSibling:d.firstChild),a.preventDefault()):(b._select(e?e[0].previousSibling:d.lastChild),a.preventDefault()),h=!0):c===f.ENTER||c===f.TAB?(b.popup.visible()&&a.preventDefault(),b._accept(e),h=!0):c===f.ESC&&(b.close(),h=!0);return h},_valueOnFetch:function(a){var b=this;if(!b.ul[0].firstChild&&!b._fetch){b.dataSource.one(k,function(){b._fetch=!0,b.value(a)}).fetch();return!0}b._fetch=!1},_options:function(a,c){var d=this,e=d.element,f=e[0].selectedIndex,g=a.length,h="",i,j,k,l,m=0;c&&(h=c,m=1);for(;m<g;m++)i="<option",j=a[m],k=d._text(j),l=d._value(j),l!==b&&(l+="",l.indexOf('"')!==-1&&(l=l.replace(w,""")),i+=' value="'+l+'"'),i+=">",k!==b&&(i+=k),i+="</option>",h+=i;e.html(h),e[0].selectedIndex=f},_reset:function(){var a=this,b=a.element;b.closest("form").bind("reset",function(){setTimeout(function(){a.value(b[0].value)})})},_cascade:function(){var b=this,c=b.options,d=c.cascadeFrom,e,f,g,h,i,j;if(d){e=a("#"+d).data("kendo"+c.name);if(!e)return;j=b.dataSource,g=e.options.dataValueField,h=function(){b.value(""),b.enable(!1)},i=function(){var a=b.value();a?(b.value(a),b.selectedIndex==-1&&b.value("")):b.select(c.index),b.trigger(s),b.enable()},f=function(){var a=e.dataItem(),b=a?e._value(a):null,c,d;b?(c=j.filter()||{},y(c,g),d=c.filters||[],d.push({field:g,operator:"eq",value:b}),j.one(k,i).filter(d)):h()},e.bind("cascade",h).bind(k,function(){f(),b.trigger("cascade")}).one(s,function(){f()}),f()}}}),d.Select.removeFiltersForField=y}(jQuery),function(a,b){function ba(a,b){if(a)return a.getFullYear()===b.getFullYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate();return!1}function _(a,b){for(var c=0,d=b.length;c<d;c++)if(a===+b[c])return!0;return!1}function $(a){o&&a.find("*").attr("unselectable","on")}function Z(a){var c=N[a.start],d=N[a.depth],e=i(a.culture);a.format=g(a.format||e.calendars.standard.patterns.d),isNaN(c)&&(c=0,a.start=t);if(d===b||d>c)a.depth=t}function Y(a){return i(a).calendars.standard}function X(a){a.preventDefault()}function W(b){b.stopImmediatePropagation(),a(this).toggleClass(y,b.type=="mouseenter")}function V(a,b,c){b=b instanceof M?b.getFullYear():a.getFullYear()+c*b,a.setFullYear(b)}function U(a,b){return a.slice(b).concat(a.slice(0,b))}function T(a,b,c){return+a>=+b&&+a<=+c}function S(a,b,c){var d=new M;d=new M(d.getFullYear(),d.getMonth(),d.getDate()),a&&(d=new M(a)),b>d?d=new M(b):c<d&&(d=new M(c));return d}function R(a,b,c){var d=a.getFullYear(),e=b.getFullYear(),f=e,g=0;c&&(e=e-e%c,f=e-e%c+c-1),d>f?g=1:d<e&&(g=-1);return g}function Q(a){var b=0,c,d=a.min,e=a.max,f=a.start,g=a.setter,h=a.build,i=a.cells||12,j=a.perRow||4,k=a.content||m,l=a.empty||n,o=a.html||'<table class="k-content k-meta-view" cellspacing="0"><tbody><tr>';for(;b<i;b++)b>0&&b%j===0&&(o+="</tr><tr>"),c=h(f,b),o+=T(f,d,e)?k(c):l(c),g(f,1);return o+"</tr></tbody></table>"}var c=window.kendo,d=c.ui,e=d.Widget,f=c.parseDate,g=c._extractFormat,h=c.template,i=c.getCulture,j=c.support.touch,k=c.support.transitions,l=k?k.css+"transform-origin":"",m=h('<td#=data.cssClass#><a class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),n=h("<td> </td>",{useWithBlock:!1}),o=a.browser.msie&&parseInt(a.browser.version,10)<9,p=j?"touchend":"click",q="min",r="left",s="slide",t="month",u="century",v="change",w="navigate",x="value",y="k-state-hover",z="k-state-disabled",A="k-other-month",B=' class="'+A+'"',C="k-nav-today",D="td:has(.k-link)",E=j?"touchstart":"mouseenter",F=j?"touchend":"mouseleave",G=6e4,H=864e5,I="_prevArrow",J="_nextArrow",K=a.proxy,L=a.extend,M=Date,N={month:0,year:1,decade:2,century:3},O=e.extend({init:function(a,b){var d=this,f;e.fn.init.call(d,a,b),a=d.wrapper=d.element,b=d.options,b.url=window.unescape(b.url),a.addClass("k-widget k-calendar"),d._templates(),d._header(),d._footer(d.footer),a.delegate(D,E+" "+F,W).delegate(D,p,K(d._click,d)),f=b.value,Z(b),d._index=N[b.start],d._current=new M(S(f,b.min,b.max)),d.value(f),c.notify(d)},options:{name:"Calendar",value:null,min:new M(1900,0,1),max:new M(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:t,depth:t,animation:{horizontal:{effects:s,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[v,w],setOptions:function(a){Z(a),e.fn.setOptions.call(this,a)},min:function(a){return this._option(q,a)},max:function(a){return this._option("max",a)},navigateToPast:function(){this._navigate(I,-1)},navigateToFuture:function(){this._navigate(J,1)},navigateUp:function(){var a=this,b=a._index;a._title.hasClass(z)||a.navigate(a._current,++b)},navigateDown:function(a){var b=this,c=b._index,d=b.options.depth;if(!!a){if(c===N[d]){+b._value!=+a&&(b.value(a),b.trigger(v));return}b.navigate(a,--c)}},navigate:function(c,d){d=isNaN(d)?N[d]:d;var e=this,f=e.options,g=f.culture,h=f.min,i=f.max,j=e._title,k=e._table,l=e._value,m=e._current,n=c&&+c>+m,o=d!==b&&d!==e._index,p,q,r;c?e._current=c=new M(S(c,h,i)):c=m,d===b?d=e._index:e._index=d,e._view=q=P.views[d],r=q.compare,j.toggleClass(z,d===N[u]),e[I].toggleClass(z,r(c,h)<1),e[J].toggleClass(z,r(c,i)>-1);if(!k||e._changeView)j.html(q.title(c,g)),e._table=p=a(q.content(L({min:h,max:i,date:c,url:f.url,dates:f.dates,format:f.format,culture:g},e[q.name]))),$(p),e._animate({from:k,to:p,vertical:o,future:n}),e.trigger(w);d===N[f.depth]&&l&&e._class("k-state-selected",q.toDateString(l)),e._changeView=!0},value:function(a){var c=this,d=c._view,e=c.options,g=e.min,h=e.max;if(a===b)return c._value;a=f(a,e.format,e.culture),a!==null&&(a=new M(a),T(a,g,h)||(a=null)),c._value=a,c._changeView=!a||d&&d.compare(a,c._current)!==0,c.navigate(a)},_animate:function(a){var b=this,c=a.from,d=a.to;c?c.parent().data("animating")?(c.parent().kendoStop(!0,!0).remove(),c.remove(),d.insertAfter(b.element[0].firstChild)):!c.is(":visible")||b.options.animation===!1?(d.insertAfter(c),c.remove()):b[a.vertical?"_vertical":"_horizontal"](c,d,a.future):d.insertAfter(b.element[0].firstChild)},_horizontal:function(a,b,c){var d=this,e=d.options.animation.horizontal,f=e.effects,g=a.outerWidth();f&&f.indexOf(s)!=-1&&(a.add(b).css({width:g}),a.wrap("<div/>"),a.parent().css({position:"relative",width:g*2,"float":r,left:c?0:-g}),b[c?"insertAfter":"insertBefore"](a),L(e,{effects:s+":"+(c?r:"right"),complete:function(){a.remove(),b.unwrap()}}),a.parent().kendoStop(!0,!0).kendoAnimate(e))},_vertical:function(a,b){var c=this,d=c.options.animation.vertical,e=d.effects,f,g;e&&e.indexOf("zoom")!=-1&&(b.css({position:"absolute",top:a.prev().outerHeight(),left:0}).insertBefore(a),l&&(f=c._cellByDate(c._view.toDateString(c._current)),g=f.position(),g=g.left+parseInt(f.width()/2,10)+"px"+" "+(g.top+parseInt(f.height()/2,10)+"px"),b.css(l,g)),a.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){a.remove(),b.css({position:"static",top:0,left:0})}}),b.kendoStop(!0,!0).kendoAnimate(d))},_cellByDate:function(b){return this._table.find("td:not(."+A+")").filter(function(){return a(this.firstChild).attr(c.attr(x))===b})},_class:function(b,d){this._table.find("td:not(."+A+")").removeClass(b).filter(function(){return a(this.firstChild).attr(c.attr(x))===d}).addClass(b)},_click:function(b){var d=this,e=d.options,f=d._current,g=a(b.currentTarget.firstChild),h=g.attr(c.attr(x)).split("/");h=new M(h[0],h[1],h[2]),g[0].href.indexOf("#")!=-1&&b.preventDefault(),g.parent().hasClass(A)?f=h:d._view.setDate(f,h),d.navigateDown(S(f,e.min,e.max))},_focus:function(a){var b=this,c=b._view;c.compare(a,b._current)!==0?b.navigate(a):b._current=a,b._class("k-state-focused",c.toDateString(a))},_footer:function(b){var d=this,e=d.element,f=new M,g=e.find(".k-footer");b?(g[0]||(g=a('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(e)),d._today=g.show().find(".k-link").html(b(f)).attr("title",c.toString(f,"D",d.options.culture)),d._toggle()):(d._toggle(!1),g.hide())},_header:function(){var a=this,b=a.element,c;b.find(".k-header")[0]||b.html('<div class="k-header"><a href="#" class="k-link k-nav-prev"><span class="k-icon k-i-arrow-w"></span></a><a href="#" class="k-link k-nav-fast"></a><a href="#" class="k-link k-nav-next"><span class="k-icon k-i-arrow-e"></span></a></div>'),c=b.find(".k-link").bind(E+" "+F,W).click(!1),a._title=c.eq(1).bind(p,K(a.navigateUp,a)),a[I]=c.eq(0).bind(p,K(a.navigateToPast,a)),a[J]=c.eq(2).bind(p,K(a.navigateToFuture,a))},_navigate:function(a,b){var c=this,d=c._index+1,e=new M(c._current);a=c[a],a.hasClass(z)||(d>3?e.setFullYear(e.getFullYear()+100*b):P.views[d].setDate(e,b),c.navigate(e))},_option:function(a,c){var d=this,e=d.options,g=+d._value,h,i;if(c===b)return e[a];c=f(c,e.format,e.culture);!c||(e[a]=new M(c),i=d._view.compare(c,d._current),a===q?(h=+c>g,i=i>-1):(h=g>+c,i=i<1),h?d.value(null):i&&d.navigate(),d._toggle())},_toggle:function(a){var c=this,d=c.options,e=c._today;a===b&&(a=T(new M,d.min,d.max)),e&&(e.unbind(p),a?e.addClass(C).removeClass(z).bind(p,K(c._todayClick,c)):e.removeClass(C).addClass(z).bind(p,X))},_todayClick:function(a){var b=this,c=N[b.options.depth],d=new M;a.preventDefault(),b._view.compare(b._current,d)===0&&b._index==c&&(b._changeView=!1),b._value=d,b.navigate(d,c),b.trigger(v)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month,f=e.content,g=e.empty;a.month={content:h('<td#=data.cssClass#><a class="k-link#=data.linkClass#" href="#=data.url#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:h("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d!==!1&&(a.footer=h(d||'#= kendo.toString(data,"D","'+b.culture+'") #',{useWithBlock:!1}))}});d.plugin(O);var P={firstDayOfMonth:function(a){return new M(a.getFullYear(),a.getMonth(),1)},firstVisibleDay:function(a,b){b=b||c.culture().calendar;var d=b.firstDay,e=new M(a.getFullYear(),a.getMonth(),0,a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds());while(e.getDay()!=d)P.setTime(e,-1*H);return e},setTime:function(a,b){var c=a.getTimezoneOffset(),d=new M(a.getTime()+b),e=d.getTimezoneOffset()-c;a.setTime(d.getTime()+e*G)},views:[{name:t,title:function(a,b){return Y(b).months.names[a.getMonth()]+" "+a.getFullYear()},content:function(a){var b=this,d=0,e=a.min,f=a.max,g=a.date,h=a.dates,i=a.format,j=a.culture,k=a.url,l=k&&h[0],m=Y(j),n=m.firstDay,o=m.days,p=U(o.names,n),q=U(o.namesShort,n),r=P.firstVisibleDay(g,m),s=b.first(g),t=b.last(g),u=b.toDateString,v=new M,w='<table class="k-content" cellspacing="0"><thead><tr>';for(;d<7;d++)w+='<th scope="col" title="'+p[d]+'">'+q[d]+"</th>";v=+(new M(v.getFullYear(),v.getMonth(),v.getDate()));return Q({cells:42,perRow:7,html:w+="</tr></thead><tbody><tr>",start:new M(r.getFullYear(),r.getMonth(),r.getDate()),min:new M(e.getFullYear(),e.getMonth(),e.getDate()),max:new M(f.getFullYear(),f.getMonth(),f.getDate()),content:a.content,empty:a.empty,setter:b.setDate,build:function(a,b){var d=[],e=a.getDay(),f="",g="#";(a<s||a>t)&&d.push(A),+a===v&&d.push("k-today"),(e===0||e===6)&&d.push("k-weekend"),l&&_(+a,h)&&(g=k.replace("{0}",c.toString(a,i,j)),f=" k-action-link");return{date:a,dates:h,ns:c.ns,title:c.toString(a,"D",j),value:a.getDate(),dateString:u(a),cssClass:d[0]?' class="'+d.join(" ")+'"':"",linkClass:f,url:g}}})},first:function(a){return P.firstDayOfMonth(a)},last:function(a){return new M(a.getFullYear(),a.getMonth()+1,0)},compare:function(a,b){var c,d=a.getMonth(),e=a.getFullYear(),f=b.getMonth(),g=b.getFullYear();e>g?c=1:e<g?c=-1:c=d==f?0:d>f?1:-1;return c},setDate:function(a,b){b instanceof M?a.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()):P.setTime(a,b*H)},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/"+a.getDate()}},{name:"year",title:function(a){return a.getFullYear()},content:function(a){var b=Y(a.culture).months.namesAbbr,d=this.toDateString,e=a.min,f=a.max;return Q({min:new M(e.getFullYear(),e.getMonth(),1),max:new M(f.getFullYear(),f.getMonth(),1),start:new M(a.date.getFullYear(),0,1),setter:this.setDate,build:function(a){return{value:b[a.getMonth()],ns:c.ns,dateString:d(a),cssClass:""}}})},first:function(a){return new M(a.getFullYear(),0,a.getDate())},last:function(a){return new M(a.getFullYear(),11,a.getDate())},compare:function(a,b){return R(a,b)},setDate:function(a,b){if(b instanceof M)a.setFullYear(b.getFullYear(),b.getMonth(),a.getDate());else{var c=a.getMonth()+b;a.setMonth(c),c>11&&(c-=12),c>0&&a.getMonth()!=c&&a.setDate(0)}},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/1"}},{name:"decade",title:function(a){var b=a.getFullYear();b=b-b%10;return b+"-"+(b+9)},content:function(a){var b=a.date.getFullYear(),d=this.toDateString;return Q({start:new M(b-b%10-1,0,1),min:new M(a.min.getFullYear(),0,1),max:new M(a.max.getFullYear(),0,1),setter:this.setDate,build:function(a,b){return{value:a.getFullYear(),ns:c.ns,dateString:d(a),cssClass:b===0||b==11?B:""}}})},first:function(a){var b=a.getFullYear();return new M(b-b%10,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new M(b-b%10+9,a.getMonth(),a.getDate())},compare:function(a,b){return R(a,b,10)},setDate:function(a,b){V(a,b,1)},toDateString:function(a){return a.getFullYear()+"/0/1"}},{name:u,title:function(a){var b=a.getFullYear();b=b-b%100;return b+"-"+(b+99)},content:function(a){var b=a.date.getFullYear(),d=a.min.getFullYear(),e=a.max.getFullYear(),f=this.toDateString;d=d-d%10,e=e-e%10,e-d<10&&(e=d+9);return Q({start:new M(b-b%100-10,0,1),min:new M(d,0,1),max:new M(e,0,1),setter:this.setDate,build:function(a,b){var d=a.getFullYear();return{value:d+" - "+(d+9),ns:c.ns,dateString:f(a),cssClass:b===0||b==11?B:""}}})},first:function(a){var b=a.getFullYear();return new M(b-b%100,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new M(b-b%100+99,a.getMonth(),a.getDate())},compare:function(a,b){return R(a,b,100)},setDate:function(a,b){V(a,b,10)},toDateString:function(a){var b=a.getFullYear();return b-b%10+"/0/1"}}]};P.isEqualDatePart=ba,P.makeUnselectable=$,P.restrictValue=S,P.isInRange=T,P.normalize=Z,P.viewsEnum=N,c.calendar=P}(jQuery),function(a,b){function M(a){a.preventDefault()}function L(b){var c=b.parseFormats;E.normalize(b),c=a.isArray(c)?c:[c],c.splice(0,0,b.format),b.parseFormats=c}var c=window.kendo,d=c.ui,e=c.support.touch,f=d.Widget,g=c.parseDate,h=c.keys,i=c.template,j="<div />",k="<span />",l=e?"touchend":"click",m=l+".datepicker",n="open",o="close",p="change",q="navigate",r="dateView",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-selected",w="k-state-disabled",x="k-state-hover",y="mouseenter mouseleave",z=e?"touchstart":"mousedown",A="min",B="max",C="month",D="first",E=c.calendar,F=E.isInRange,G=E.restrictValue,H=E.isEqualDatePart,I=a.extend,J=a.proxy,K=Date,N=function(b){var c=this,e=document.body,f=O.sharedCalendar;f||(f=O.sharedCalendar=new d.Calendar(a(j).hide().appendTo(e)),E.makeUnselectable(f.element)),c.calendar=f,c.options=b=b||{},c.popup=new d.Popup(a(j).addClass("k-calendar-container").appendTo(e),I(b.popup,b,{name:"Popup"})),c._templates(),c.value(b.value)};N.prototype={_calendar:function(){var a=this,b=a.popup,c=a.options,d=a.calendar,f=d.element;f.data(r)!==a&&(f.appendTo(b.element).data(r,a).undelegate(m).delegate("td:has(.k-link)",m,J(a._click,a)).unbind(z).bind(z,M).show(),d.unbind(p).bind(p,c),e||d.unbind(q).bind(q,J(a._navigate,a)),d.month=a.month,d.options.depth=c.depth,d.options.culture=c.culture,d._footer(a.footer),d.min(c.min),d.max(c.max),d.navigate(a._value,c.start),a.value(a._value))},open:function(){var a=this;a._calendar(),a.popup.open()},close:function(){this.popup.close()},min:function(a){this._option(A,a)},max:function(a){this._option(B,a)},toggle:function(){var a=this;a[a.popup.visible()?o:n]()},move:function(a){var b=this,c=b.options,d=new K(b._current),e=b.calendar,f=e._index,g=e._view,i=a.keyCode,j,k,l;if(i==h.ESC)b.close();else{if(a.altKey){i==h.DOWN?(b.open(),k=!0):i==h.UP&&(b.close(),k=!0);return}if(!b.popup.visible()||e._table.parent().data("animating"))return;if(a.ctrlKey)i==h.RIGHT?(e.navigateToFuture(),k=!0):i==h.LEFT?(e.navigateToPast(),k=!0):i==h.UP?(e.navigateUp(),k=!0):i==h.DOWN&&(b._navigateDown(),k=!0);else{i==h.RIGHT?(j=1,k=!0):i==h.LEFT?(j=-1,k=!0):i==h.UP?(j=f===0?-7:-4,k=!0):i==h.DOWN?(j=f===0?7:4,k=!0):i==h.ENTER?(b._navigateDown(),k=!0):i==h.HOME||i==h.END?(l=i==h.HOME?D:"last",d=g[l](d),k=!0):i==h.PAGEUP?(k=!0,e.navigateToPast()):i==h.PAGEDOWN&&(k=!0,e.navigateToFuture());if(j||l)l||g.setDate(d,j),b._current=d=G(d,c.min,c.max),e._focus(d)}k&&a.preventDefault()}},value:function(a){var b=this,c=b.calendar,d=b.options;b._value=a,b._current=new K(G(a,d.min,d.max)),c.element.data(r)===b&&(c._focus(b._current),c.value(a))},_click:function(a){a.currentTarget.className.indexOf(v)!==-1&&this.close()},_navigate:function(){var a=this,b=a.calendar;a._current=new K(b._current),b._focus(b._current)},_navigateDown:function(){var a=this,b=a.calendar,d=b._current,e=b._table.find("."+u),f=e.children(":"+D).attr(c.attr("value")).split("/");f=new K(f[0],f[1],f[2]);!e[0]||e.hasClass(v)?a.close():(b._view.setDate(d,f),b.navigateDown(d))},_option:function(a,b){var c=this,d=c.options,e=c.calendar;d[a]=b,e.element.data(r)===c&&e[a](b)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month||{},f=e.content,g=e.empty;a.month={content:i('<td#=data.cssClass#><a class="k-link" href="\\#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:i("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d!==!1&&(a.footer=i(d||'#= kendo.toString(data,"D","'+b.culture+'") #',{useWithBlock:!1}))}},N.normalize=L,c.DateView=N;var O=f.extend({init:function(a,b){var d=this;f.fn.init.call(d,a,b),a=d.element,b=d.options,L(b),d._wrapper(),d.dateView=new N(I({},b,{anchor:d.wrapper,change:function(){d._change(this.value()),d.close()},close:function(a){d.trigger(o)&&a.preventDefault()},open:function(a){d.trigger(n)&&a.preventDefault()}})),d._icon(),e||(a[0].type="text"),a.addClass("k-input").bind({keydown:J(d._keydown,d),focus:function(a){d._inputWrapper.addClass(u)},blur:J(d._blur,d)}).closest("form").bind("reset",function(){d.value(a[0].defaultValue)}),d.enable(!a.is("[disabled]")),d.value(b.value||d.element.val()),c.notify(d)},events:[n,o,p],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:C,depth:C,animation:{},month:{}},setOptions:function(a){var b=this;f.fn.setOptions.call(b,a),L(b.options),I(b.dateView.options,b.options)},enable:function(a){var b=this,c=b._dateIcon.unbind(l+" "+z),d=b._inputWrapper.unbind(y),e=b.element;a===!1?(d.removeClass(t).addClass(w),e.attr(s,s)):(d.addClass(t).removeClass(w).bind(y,b._toggleHover),e.removeAttr(s),c.bind(l,J(b._click,b)).bind(z,M))},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(a){return this._option(A,a)},max:function(a){return this._option(B,a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(x,b.type==="mouseenter")},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(u)},_click:function(){var a=this,b=a.element;a.dateView.toggle(),!e&&b[0]!==document.activeElement&&b.focus()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(p),b.element.trigger(p))},_keydown:function(a){var b=this,c=b.dateView;!c.popup.visible()&&a.keyCode==h.ENTER?b._change(b.element.val()):c.move(a)},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span></span>').insertAfter(c)),b._dateIcon=d},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=g(c,e.parseFormats,e.culture);!c||(e[a]=new K(c),d.dateView[a](c))},_update:function(a){var b=this,d=b.options,e=d.min,f=d.max,h=g(a,d.parseFormats,d.culture);if(+h===+b._value)return h;h!==null&&H(h,e)?h=G(h,e,f):F(h,e,f)||(h=null),b._value=h,b.dateView.value(h),b.element.val(h?c.toString(h,d.format,d.culture):a);return h},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datepicker"),d[0]||(d=c.wrap(k).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(k).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});d.plugin(O)}(jQuery),function(a,b){function x(a){var b=a.value.length;s(a,b,b)}function w(a,b,c,d){var e=b.split(d);e.splice(u(a,b,d),1,c),d&&e[e.length-1]!==""&&e.push("");return e.join(d)}function v(a,b,c){return b.split(c)[u(a,b,c)]}function u(a,b,c){return c?b.substring(0,a).split(c).length-1:0}var c=window.kendo,d=c.support,e=d.placeholder,f=c.ui,g=c.keys,h=c.data.DataSource,i=f.List,j="change",k="k-state-default",l="disabled",m="k-state-focused",n="k-state-selected",o="k-state-disabled",p="k-state-hover",q="mouseenter mouseleave",r=i.caret,s=i.selectText,t=a.proxy,y=i.extend({init:function(b,d){var f=this,g;d=a.isArray(d)?{dataSource:d}:d,i.fn.init.call(f,b,d),b=f.element,d=f.options,d.placeholder=d.placeholder||b.attr("placeholder"),e&&b.attr("placeholder",d.placeholder),f._wrapper(),f._accessors(),f._dataSource(),b[0].type="text",g=f.wrapper,b.attr("autocomplete","off").addClass("k-input").bind({keydown:t(f._keydown,f),paste:t(f._search,f),focus:function(){f._prev=f.value(),f._placeholder(!1),g.addClass(m),clearTimeout(f._bluring)},blur:function(){f._change(),f._placeholder(),g.removeClass(m)}}),f._enable(),f._popup(),f._old=f.value(),f._placeholder(),c.notify(f)},options:{name:"AutoComplete",suggest:!1,template:"",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{}},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(j,a._refreshHandler):a._refreshHandler=t(a.refresh,a),a.dataSource=h.create(a.options.dataSource).bind(j,a._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource()},events:["open","close",j,"select","dataBinding","dataBound"],setOptions:function(a){i.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper;a===!1?(d.removeClass(k).addClass(o).unbind(q),c.attr(l,l)):(d.removeClass(o).addClass(k).bind(q,b._toggleHover),c.removeAttr(l))},close:function(){var a=this;a._current=null,a.popup.close()},refresh:function(){var b=this,d=b.ul[0],e=b.popup,f=b.options,g=b._data(),h=g.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,g),b._height(h),h&&(f.highlightFirst&&b.current(a(d.firstChild)),f.suggest&&b.suggest(a(d.firstChild))),b._open&&(b._open=!1,e[h?"open":"close"]()),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b.trigger("dataBound")},select:function(a){this._select(a)},search:function(a){var b=this,c=b.options,d=c.ignoreCase,e=c.separator,f;a=a||b.value(),b._current=null,clearTimeout(b._typing),e&&(a=v(r(b.element[0]),a,e)),f=a.length,f?f>=b.options.minLength&&(b._open=!0,b.dataSource.filter({value:d?a.toLowerCase():a,operator:c.filter,field:c.dataTextField,ignoreCase:d})):b.popup.close()},suggest:function(a){var c=this,d=c._last,e=c.value(),f=c.element[0],h=r(f),j=c.options.separator,k=e.split(j),l=u(h,e,j),m=h,n;d==g.BACKSPACE||d==g.DELETE?c._last=b:(a=a||"",typeof a!="string"&&(n=i.inArray(a[0],c.ul[0]),n>-1?a=c._text(c._data()[n]):a=""),h<=0&&(h=e.toLowerCase().indexOf(a.toLowerCase())+1),n=e.substring(0,h).lastIndexOf(j),n=n>-1?h-(n+j.length):h,e=k[l].substring(0,n),a&&(n=a.toLowerCase().indexOf(e.toLowerCase()),n>-1&&(a=a.substring(n+e.length),m=h+a.length,e+=a),j&&k[k.length-1]!==""&&k.push("")),k[l]=e,c.value(k.join(j||"")),s(f,h,m))},value:function(a){var c=this,d=c.element[0];if(a!==b)d.value=a,c._placeholder();else{a=d.value;if(d.className.indexOf("k-readonly")>-1)return a===c.options.placeholder?"":a;return a}},_accept:function(a){var b=this;b._focus(a),x(b.element[0])},_keydown:function(b){var c=this,d=c.ul[0],e=b.keyCode,f=c._current,h=c.popup.visible();c._last=e,e===g.DOWN?(h&&c._move(f?f.next():a(d.firstChild)),b.preventDefault()):e===g.UP?(h&&c._move(f?f.prev():a(d.lastChild)),b.preventDefault()):e===g.ENTER||e===g.TAB?(c.popup.visible()&&b.preventDefault(),c._accept(f)):e===g.ESC?c.close():c._search()},_move:function(a){var b=this;a=a[0]?a:null,b.current(a),b.options.suggest&&b.suggest(a)},_placeholder:function(a){if(!e){var c=this,d=c.element,f=c.options.placeholder,g;if(f){g=d.val(),a===b&&(a=!g),a||(g!==f?f=g:f="");if(g===c._old&&!a)return;d.toggleClass("k-readonly",a).val(f)}}},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._prev!==a.value()&&(a._prev=a.value(),a.search())},a.options.delay)},_select:function(b){var c=this,d=c.options.separator,e=c._data(),f,g;b=a(b),b[0]&&!b.hasClass(n)&&(g=i.inArray(b[0],c.ul[0]),g>-1&&(e=e[g],f=c._text(e),d&&(f=w(r(c.element[0]),c.value(),f,d)),c.value(f),c.current(b.addClass(n))))},_toggleHover:function(b){d.touch||a(b.currentTarget).toggleClass(p,b.type==="mouseenter")},_wrapper:function(){var a=this,b=a.element,c=b[0],d;d=b.parent(),d.is("span.k-widget")||(d=b.wrap("<span />").parent()),d[0].style.cssText=c.style.cssText,b.css({width:"100%",height:c.style.height}),a._focused=a.element,a.wrapper=d.addClass("k-widget k-autocomplete k-header").addClass(c.className)}});f.plugin(y)}(jQuery),function(a,b){function r(a,b,c){var d=0,e=b.length-1,f;for(;d<e;++d)f=b[d],f in a||(a[f]={}),a=a[f];a[b[e]]=c}var c=window.kendo,d=c.ui,e=d.Select,f=c.support.mobileOS,g="disabled",h="change",i="select",j="k-state-focused",k="k-state-default",l="k-state-disabled",m="k-state-selected",n="tabIndex",o="mouseenter mouseleave",p=a.proxy,q=e.extend({init:function(d,f){var g=this,h=f&&f.index,j,k,l;f=a.isArray(f)?{dataSource:f}:f,e.fn.init.call(g,d,f),f=g.options,d=g.element.focus(function(){g.wrapper.focus()}),g._reset(),g._word="",g._wrapper(),g._span(),g._popup(),g._mobile(),g._accessors(),g._dataSource(),g._enable(),g._cascade(),g.selectedIndex=-1,h!==b&&(f.index=h),f.autoBind?g._selectItem():(l=f.text,l||(j=g._optionLabelText(f.optionLabel),k=j&&f.index===0,d.is(i)?k?l=j:l=d.children(":selected").text():!d[0].value&&k&&(l=j)),g.text(l)),c.notify(g)},options:{name:"DropDownList",enable:!0,index:0,autoBind:!0,text:"",template:"",delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",ignoreCase:!0,animation:{}},events:["open","close",h,"select","dataBinding","dataBound"],setOptions:function(a){e.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper.unbind(".dropdownlist"),e=b._inputWrapper.unbind(o);a===!1?(c.attr(g,g),e.removeClass(k).addClass(l)):(c.removeAttr(g,g),e.addClass(k).removeClass(l).bind(o,b._toggleHover),d.bind({"click.dropdownlist":function(a){a.preventDefault(),b.toggle()},"keydown.dropdownlist":p(b._keydown,b),"keypress.dropdownlist":p(b._keypress,b),"focusin.dropdownlist":function(){e.addClass(j)},"focusout.dropdownlist":function(a){b._blur(),e.removeClass(j)}}))},open:function(){var a=this;a.ul[0].firstChild?(a.popup.open(),a._scroll(a._current)):(a._open=!0,a._selectItem())},toggle:function(a){this._toggle(a)},refresh:function(){var a=this,b=a._data(),d=b.length,e=a.options.optionLabel;a.trigger("dataBinding"),a._current&&a.current(null),a.ul[0].innerHTML=c.render(a.template,b),a._height(d),a.element.is(i)&&(e&&d&&(e=a._optionLabelText(e),e='<option value="">'+e+"</option>"),a._options(b,e)),a._open&&(a._open=!1,a.toggle(!!d)),a._hideBusy(),a._makeUnselectable(),a.trigger("dataBound")},search:function(a){if(a){var c=this,d=c.options.ignoreCase;d&&(a=a.toLowerCase()),c._select(function(e){var f=c._text(e);if(f!==b){f=f+"",d&&(f=f.toLowerCase());return f.indexOf(a)===0}})}},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},text:function(a){var c=this.span;if(a!==b)c.text(a);else return c.text()},value:function(a){var c=this,d;if(a===b)return c._accessor();a!==null&&(a=a.toString());if(!a||!c._valueOnFetch(a))d=c._index(a),c.select(d>-1?d:0)},_selectItem:function(){var a=this;a.dataSource.one(h,function(){var b=a.options.value||a.value();b?a.value(b):a.select(a.options.index),a.trigger("selected")}).fetch()},_accept:function(a){this._focus(a)},_optionLabelText:function(){var a=this.options,b=a.dataTextField,c=a.optionLabel;if(c&&b&&typeof c=="object")return this._text(c);return c},_data:function(){var a=this,b=a.options,d=b.optionLabel,e=b.dataTextField,f=b.dataValueField,g=a.dataSource.view(),h=g.length,i=d,j=0;if(d&&h){typeof d=="object"?i=d:e&&(i={},e=e.split("."),f=f.split("."),r(i,f,""),r(i,e,d)),i=new c.data.ObservableArray([i]);for(;j<h;j++)i.push(g[j]);g=i}return g},_keydown:function(a){var b=this,d=a.keyCode,e=c.keys,f=b.ul[0];b._move(a),d===e.HOME?(a.preventDefault(),b._select(f.firstChild)):d===e.END&&(a.preventDefault(),b._select(f.lastChild))},_keypress:function(a){var b=this;setTimeout(function(){b._word+=String.fromCharCode(a.keyCode||a.charCode),b._search()})},_popup:function(){e.fn._popup.call(this),this.popup.one("open",function(){this.wrapper=c.wrap(this.element).addClass("km-popup")})},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._word=""},a.options.delay),a.search(a._word)},_select:function(a){var c=this,e=c._current,f=c._data(),g,h,i;a=c._get(a),a&&a[0]&&!a.hasClass(m)&&(e&&e.removeClass(m),i=d.List.inArray(a[0],c.ul[0]),i>-1&&(f=f[i],h=c._text(f),g=c._value(f),c.selectedIndex=i,c.text(h),c._accessor(g!==b?g:h,i),c.current(a.addClass(m))))},_mobile:function(){var a=this,b=a.popup,c=b.element.parents(".km-root").eq(0);c.length&&f&&(b.options.animation.open.effects=f.android||f.meego?"fadeIn":f.ios?"slideIn:up":b.options.animation.open.effects)},_span:function(){var b=this,c=b.wrapper,d=".k-input",e;e=c.find(d),e[0]||(c.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input"> </span><span class="k-select"><span class="k-icon k-i-arrow-s">select</span></span></span>').append(b.element),e=c.find(d)),b.span=e,b._inputWrapper=a(c[0].firstChild),b._arrow=c.find(".k-icon").mousedown(function(a){a.preventDefault()})},_wrapper:function(){var a=this,b=a.element,c=b[0],d=b.attr(n),e;e=b.parent(),e.is("span.k-widget")||(e=b.wrap("<span />").parent()),e.attr(n,d||0),e[0].style.cssText=c.style.cssText,b.hide(),a._focused=a.wrapper=e.attr("unselectable","on").addClass("k-widget k-dropdown k-header").addClass(c.className)}});d.plugin(q)}(jQuery),function(a,b){var c=window.kendo,d=c.ui,e=d.List,f=d.Select,g=c.support,h=g.placeholder,i=f.removeFiltersForField,j=c.keys,k=g.touch?"touchend":"click",l="disabled",m="change",n="k-state-default",o="k-state-disabled",p="k-state-focused",q="mousedown",r="select",s="k-state-selected",t="filter",u="accept",v="rebind",w="mouseenter mouseleave",x=null,y=a.proxy,z=f.extend({init:function(b,d){var e=this,g,h;d=a.isArray(d)?{dataSource:d}:d,f.fn.init.call(e,b,d),d=e.options,b=e.element.focus(function(){e.input.focus()}),d.placeholder=d.placeholder||b.attr("placeholder"),e._reset(),e._wrapper(),e._input(),e._popup(),e._accessors(),e._dataSource(),e._enable(),e._cascade(),g=e._inputWrapper,e.input.bind({keydown:y(e._keydown,e),focus:function(){g.addClass(p),e._placeholder(!1)},blur:function(){g.removeClass(p),clearTimeout(e._typing),e.text(e.text()),e._placeholder(),e._blur()}}),e._oldIndex=e.selectedIndex=-1,e._old=e.value(),d.autoBind?e._selectItem():(h=d.text,!h&&b.is(r)&&(h=b.children(":selected").text()),h&&e.input.val(h)),h||e._placeholder(),c.notify(e)},options:{name:"ComboBox",enable:!0,index:-1,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,template:"",filter:"none",placeholder:"",suggest:!1,ignoreCase:!0,animation:{}},events:["open","close",m,"select","dataBinding","dataBound"],setOptions:function(a){f.fn.setOptions.call(this,a),this._template(),this._accessors()},current:function(a){var c=this,d=c._current;if(a===b)return d;d&&d.removeClass(s),f.fn.current.call(c,a)},enable:function(a){var b=this,c=b.input.add(b.element),d=b._inputWrapper.unbind(w),e=b._arrow.parent().unbind(k+" "+q);a===!1?(d.removeClass(n).addClass(o),c.attr(l,l)):(d.removeClass(o).addClass(n).bind(w,b._toggleHover),c.removeAttr(l),e.bind(k,function(){b.toggle()}).bind(q,function(a){a.preventDefault()}))},open:function(){var a=this,b=a.dataSource.options.serverFiltering;a.popup.visible()||(!a.ul[0].firstChild||a._state===u&&!b?(a._open=!0,a._state=v,a._selectItem()):(a.popup.open(),a._scroll(a._current)))},refresh:function(){var b=this,d=b.ul[0],e=b.options,f=b.value(),g=b._data(),h=g.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,g),b._height(h),b.element.is(r)&&(b._options(g),f&&b._state===v&&(b._state="",b.value(f))),h&&(e.highlightFirst&&b.current(a(d.firstChild)),e.suggest&&b.input.val()&&b.suggest(a(d.firstChild))),b._open&&(b._open=!1,b.toggle(!!h)),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b._hideBusy(),b.trigger("dataBound")},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},search:function(a){a=typeof a=="string"?a:this.text();var b=this,c=a.length,d=b.options,e=d.ignoreCase,f=d.filter,g=d.dataTextField,h,j;clearTimeout(b._typing),c>=d.minLength&&(f==="none"?b._filter(a):(b._open=!0,b._state=t,j=b.dataSource.filter()||{},i(j,g),h=j.filters||[],h.push({value:e?a.toLowerCase():a,field:g,operator:f,ignoreCase:e}),b.dataSource.filter(h)))},suggest:function(a){var c=this,d=c.input[0],f=c.text(),g=e.caret(d),h=c._last,i;if(h==j.BACKSPACE||h==j.DELETE)c._last=b;else{a=a||"",typeof a!="string"&&(i=e.inArray(a[0],c.ul[0]),i>-1?a=c._text(c.dataSource.view()[i]):a=""),g<=0&&(g=f.toLowerCase().indexOf(a.toLowerCase())+1),a?(i=a.toLowerCase().indexOf(f.toLowerCase()),i>-1&&(f+=a.substring(i+f.length))):f=f.substring(0,g);if(f.length!==g||!a)d.value=f,e.selectText(d,g,f.length)}},text:function(a){a=a===null?"":a;var c=this,d=c._text,e=c.input[0],f=c.options.ignoreCase,g=a,h;if(a===b)return e.value;h=c.dataItem();if(!h||d(h)!==a)f&&(g=g.toLowerCase()),c._select(function(a){a=d(a),f&&(a=(a+"").toLowerCase());return a===g}),c.selectedIndex<0&&(c._custom(a),e.value=a)},toggle:function(a){var b=this;b._toggle(a)},value:function(a){var c=this,d;if(a===b)return c._accessor();a!==null&&(a=a.toString());if(!a||!c._valueOnFetch(a))d=c._index(a),d>-1?c.select(d):(c.current(x),c._custom(a),c.text(a),c._placeholder()),c._old=c._accessor(),c._oldIndex=c.selectedIndex},_accept:function(a){var b=this;a&&b.popup.visible()?(b._state===t&&(b._state=u),b._focus(a)):(b.text(b.text()),b._change())},_custom:function(b){var c=this,d=c.element,e=c._option;d.is(r)?(e||(e=c._option=a("<option/>"),d.append(e)),e.text(b),e[0].selected=!0):d.val(b)},_filter:function(a){var c=this,d=c.options,e=c.dataSource,f=d.ignoreCase,g=function(d){var e=c._text(d);if(e!==b){e=e+"";if(e!==""&&a==="")return!1;f&&(e=e.toLowerCase());return e.indexOf(a)===0}};f&&(a=a.toLowerCase());c.ul[0].firstChild?(c._highlight(g)!==-1&&(d.suggest&&c._current&&c.suggest(c._current),c.open()),c._hideBusy()):e.one(m,function(){e.data()[0]&&c.search(a)}).fetch()},_highlight:function(c){var d=this,f;if(c===b||c===null)return-1;c=d._get(c),f=e.inArray(c[0],d.ul[0]),f==-1&&(d.options.highlightFirst&&!d.text()?c=a(d.ul[0].firstChild):c=x),d.current(c);return f},_input:function(){var b=this,c=b.element[0],d=c.tabIndex,e=b.wrapper,f=".k-input",g,i,j=c.name||"";j&&(j='name="'+j+'_input" '),g=e.find(f),g[0]||(e.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><input '+j+'class="k-input" type="text" autocomplete="off"/><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(b.element),g=e.find(f)),i=g[0],i.tabIndex=d,i.style.cssText=c.style.cssText,c.maxLength>-1&&(i.maxLength=c.maxLength),g.addClass(c.className).val(c.value).css({width:"100%",height:c.style.height}).show(),h&&g.attr("placeholder",b.options.placeholder),b._focused=b.input=g,b._arrow=e.find(".k-icon"),b._inputWrapper=a(e[0].firstChild)},_keydown:function(a){var b=this,c=a.keyCode,d=b.input;b._last=c,clearTimeout(b._typing),c==j.TAB?(b.text(d.val()),b._state===t&&b.selectedIndex>-1&&(b._state=u)):b._move(a)||b._search()},_placeholder:function(a){if(!h){var c=this,d=c.input,e=c.options.placeholder,f;if(e){f=c.value(),a===b&&(a=!f),d.toggleClass("k-readonly",a);if(!a)if(!f)e="";else return;d.val(e)}}},_search:function(){var a=this;a._typing=setTimeout(function(){var b=a.text();a._prev!==b&&(a._prev=b,a.search(b))},a.options.delay)},_select:function(a){var c=this,d,e,f=c._highlight(a),g=c._data();c.selectedIndex=f,f!==-1&&(c._current.addClass(s),g=g[f],d=c._text(g),e=c._value(g),c._prev=c.input[0].value=d,c._accessor(e!==b?e:d,f),c._placeholder())},_selectItem:function(){var a=this,b=a.options,c=a.dataSource,d=c.filter()||{};i(d,a.options.dataTextField),a.dataSource.one(m,function(){var c=b.value||a.value();c?a.value(c):a.select(b.index),a.trigger("selected")}).filter(d)},_wrapper:function(){var a=this,b=a.element,c;c=b.parent(),c.is("span.k-widget")||(c=b.hide().wrap("<span />").parent()),c[0].style.cssText=b[0].style.cssText,a.wrapper=c.addClass("k-widget k-combobox k-header").addClass(b[0].className).show()}});d.plugin(z)}(jQuery),function(a,b){function s(a){String.prototype.trim?a=a.trim():a=a.replace(/^\s\s*/,"").replace(/\s\s*$/,"");return a.replace(/ /gi,"")}var c=window.kendo,d=c.ui,e=a.proxy,f=a.extend,g=a.grep,h=a.map,i=a.inArray,j="k-state-selected",k="asc",l="desc",m="click",n="change",o="kendoPopup",p="kendoFilterMenu",q="kendoMenu",r=d.Widget,t=r.extend({init:function(b,d){var f=this,g;r.fn.init.call(f,b,d),b=f.element,d=f.options,f.owner=d.owner,f.field=b.attr(c.attr("field")),g=b.find(".k-header-column-menu"),g[0]||(g=b.prepend('<a class="k-header-column-menu" href="#"><span class="k-icon k-i-arrowhead-s"/></a>').find(".k-header-column-menu")),f._clickHandler=e(f._click,f),g.click(f._clickHandler),f.link=g,f.wrapper=a('<div class="k-column-menu"/>'),f.wrapper.html(c.template(u)({ns:c.ns,messages:d.messages,sortable:d.sortable,filterable:d.filterable,columns:f._ownerColumns(),showColumns:d.columns})),f.popup=f.wrapper[o]({anchor:g,open:e(f._open,f)}).data(o),f._menu(),f._sort(),f._columns(),f._filter()},options:{name:"ColumnMenu",messages:{sortAscending:"Sort Ascending",sortDescending:"Sort Descending",filter:"Filter",columns:"Columns"},columns:!0,sortable:!0,filterable:!0},destroy:function(){var a=this;a.filterMenu&&(a.filterMenu.destroy(),a.filterMenu=null),a.wrapper.children().removeData(q),a.wrapper.removeData(o).remove(),a.link.unbind(m,a._clickHandler),a.element.removeData("kendoColumnMenu"),a.columns=null},close:function(){this.menu.close(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){a(".k-column-menu").not(this.wrapper).each(function(){a(this).data(o).close()})},_ownerColumns:function(){var a=this.owner.columns,b=g(a,function(a){var b=!0,c=s(a.title||"");if(a.menu===!1||!a.field&&!c.length)b=!1;return b});return h(b,function(b){return{field:b.field,title:b.title||b.field,hidden:b.hidden,index:i(b,a)}})},_menu:function(){this.menu=this.wrapper.children()[q]({orientation:"vertical",closeOnClick:!1}).data(q)},_sort:function(){var b=this;b.options.sortable&&(b.refresh(),b.options.dataSource.bind(n,e(b.refresh,b)),b.menu.element.delegate(".k-sort-asc, .k-sort-desc",m,function(){var c=a(this),d=c.hasClass("k-sort-asc")?k:l;c.parent().find(".k-sort-"+(d==k?l:k)).removeClass(j),b._sortDataSource(c,d),b.close()}))},_sortDataSource:function(a,c){var d=this,e=d.options.sortable,f=d.options.dataSource,g,h,i=f.sort()||[];a.hasClass(j)&&e&&e.allowUnsort!==!1?(a.removeClass(j),c=b):a.addClass(j);if(e===!0||e.mode==="single")i=[{field:d.field,dir:c}];else{for(g=0,h=i.length;g<h;g++)if(i[g].field===d.field){i.splice(g,1);break}i.push({field:d.field,dir:c})}f.sort(i)},_columns:function(){var b=this;b.options.columns&&(b._updateColumnsMenu(),b.owner.bind(["columnHide","columnShow"],function(){b._updateColumnsMenu()}),b.wrapper.delegate("[type=checkbox]",n,function(d){var e=a(this),f=parseInt(e.attr(c.attr("index")),10);e.is(":checked")?b.owner.showColumn(f):b.owner.hideColumn(f)}))},_updateColumnsMenu:function(){var a=this._ownerColumns(),b=h(a,function(a){return"["+c.attr("index")+"="+a.index+"]"}).join(","),d=g(a,function(a){return!a.hidden}),e=h(d,function(a){return"["+c.attr("index")+"="+a.index+"]"}).join(",");this.wrapper.find(b).attr("checked",!1),this.wrapper.find(e).attr("checked",!0).attr("disabled",d.length==1)},_filter:function(){var a=this,b=a.options;b.filterable!==!1&&(a.filterMenu=a.wrapper.find(".k-filterable")[p](f(!0,{},{appendToElement:!0,dataSource:b.dataSource,values:b.values,field:a.field},b.filterable)).data(p))},refresh:function(){var a=this,b=a.options.dataSource.sort()||[],c,d=a.field,e,f;a.wrapper.find(".k-sort-asc, .k-sort-desc").removeClass(j);for(e=0,f=b.length;e<f;e++)c=b[e],d==c.field&&a.wrapper.find(".k-sort-"+c.dir).addClass(j)}}),u='<ul>#if(sortable){#<li class="k-item k-sort-asc"><span class="k-link"><span class="k-sprite k-i-sort-asc"></span>${messages.sortAscending}</span></li><li class="k-item k-sort-desc"><span class="k-link"><span class="k-sprite k-i-sort-desc"></span>${messages.sortDescending}</span></li>#if(showColumns || filterable){#<li class="k-separator"></li>#}##}##if(showColumns){#<li class="k-item k-columns-item"><span class="k-link"><span class="k-sprite k-i-columns"></span>${messages.columns}</span><ul>#for (var col in columns) {#<li><label><input type="checkbox" data-#=ns#field="#=columns[col].field#" data-#=ns#index="#=columns[col].index#"/>#=columns[col].title#</label></li>#}#</ul></li>#if(filterable){#<li class="k-separator"></li>#}##}##if(filterable){#<li class="k-item k-filter-item"><span class="k-link"><span class="k-sprite k-filter"></span>${messages.filter}</span><ul><li><div class="k-filterable"></div></li></ul></li>#}#</ul>';d.plugin(t)}(jQuery),function(a,b){function bm(a,b){var c,d,e;if(typeof a===U&&a===b)return a;if(j(a)&&a.name===b)return a;if(n(a))for(c=0,d=a.length;c<d;c++){e=a[c];if(typeof e===U&&e===b||e.name===b)return e}return null}function bk(b,d,e,f){var g=b.find(">colgroup"),h,i=l(d,function(a){h=a.width;if(h&&parseInt(h,10)!==0)return c.format('<col style="width:{0}"/>',typeof h===U?h:h+"px");return"<col />"});(e||g.find(".k-hierarchy-col").length)&&i.splice(0,0,'<col class="k-hierarchy-col" />'),g.length&&g.remove(),g=a("<colgroup/>").append(a(Array(f+1).join('<col class="k-group-col">')+i.join(""))),b.prepend(g)}function bj(a){a=a||{};var b=a.style;b&&(a.style=b.replace(/((.*)?)(display\s*:\s*none)\s*;?/i,"$1"));return a}function bi(a){a=a||{};var b=a.style;b?(b=b.replace(/((.*)?display)(.*)?:([^;]*)/i,"$1:none"),b===a.style&&(b=b.replace(/(.*)?/i,"display:none;$1"))):b="display:none";return k({},a,{style:b})}function bh(a){return m(a,function(a){return!a.hidden})}function bg(a,b,c){var d,e,f,g;c=n(c)?c:[c];for(d=0,e=c.length;d<e;d++)f=c[d],j(f)&&f.click&&(g=f.name||f.text,b.on(Q,"a.k-grid-"+g,{commandName:g},p(f.click,a)))}function bf(a,b,c){var d=a.eq(b),e=a.eq(c);d[b>c?"insertBefore":"insertAfter"](e)}function be(a){var b,c,d={},e={};if(!r(a)){n(a)||(a=[a]);for(b=0,c=a.length;b<c;b++)d[a[b].aggregate]=0,e[a[b].field]=d}return e}function bd(b,c){a("th, th .k-grid-filter, th .k-link",b).add(document.body).css("cursor",c)}function bc(b){var c=0;a("> .k-grouping-header, > .k-grid-toolbar",b).each(function(){c+=this.offsetHeight});return c}function ba(a){var b,c=" ";if(a){if(typeof a===U)return a;for(b in a)c+=b+'="'+a[b]+'"'}return c}function _(a){return Array(a+1).join('<td class="k-group-cell"> </td>')}var c=window.kendo,d=c.ui,e=c.data.DataSource,f=d.Groupable,g=c.support.tbodyInnerHtml,h=d.Widget,i=c.keys,j=a.isPlainObject,k=a.extend,l=a.map,m=a.grep,n=a.isArray,o=a.inArray,p=a.proxy,q=a.isFunction,r=a.isEmptyObject,s=Math,t="requestStart",u="error",v="tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer):visible",w=":not(.k-group-cell,.k-hierarchy-cell):visible",x="tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer) > td:not(.k-group-cell,.k-hierarchy-cell)",y=v+">td"+w,z=y+":first",A="edit",B="save",C="remove",D="detailInit",E="change",F="columnHide",G="columnShow",H="saveChanges",I="dataBound",J="detailExpand",K="detailCollapse",L="k-state-focused",M="k-focusable",N="k-state-selected",O="columnResize",P="columnReorder",Q="click",R="height",S="tabIndex",T="function",U="string",V="Are you sure you want to delete this record?",W=/(\}|\#)/ig,X=3,Y=/#/ig,Z='<a class="k-button k-button-icontext #=className#" #=attr# href="\\#"><span class="#=iconClass# #=imageClass#"></span>#=text#</a>',$=h.extend({init:function(a,b){var c=this;h.fn.init.call(c,a,b),c._refreshHandler=p(c.refresh,c),c.setDataSource(b.dataSource),c.wrap()},setDataSource:function(a){var b=this;b.dataSource&&b.dataSource.unbind(E,b._refreshHandler),b.dataSource=a,b.dataSource.bind(E,b._refreshHandler)},options:{name:"VirtualScrollable",itemHeight:a.noop},wrap:function(){var b=this,d=c.support.scrollbar()+1,e=b.element;e.css({width:"auto",paddingRight:d,overflow:"hidden"}),b.content=e.children().first(),b.wrapper=b.content.wrap('<div class="k-virtual-scrollable-wrap"/>').parent().bind("DOMMouseScroll",p(b._wheelScroll,b)).bind("mousewheel",p(b._wheelScroll,b)),c.support.touch&&(b.drag=new c.Drag(b.wrapper,{global:!0,move:function(a){b.verticalScrollbar.scrollTop(b.verticalScrollbar.scrollTop()-a.y.delta),a.preventDefault()}})),b.verticalScrollbar=a('<div class="k-scrollbar k-scrollbar-vertical" />').css({width:d}).appendTo(e).bind("scroll",p(b._scroll,b))},_wheelScroll:function(b){var c=this,d=c.verticalScrollbar.scrollTop(),e=b.originalEvent,f;b.preventDefault(),e.wheelDelta?f=e.wheelDelta:e.detail?f=-e.detail*10:a.browser.opera&&(f=-e.wheelDelta),c.verticalScrollbar.scrollTop(d+ -f)},_scroll:function(a){var b=this,c=a.currentTarget.scrollTop,d=b.dataSource,e=b.itemHeight,f=d.skip()||0,g=b._rangeStart||f,h=b.element.innerHeight(),i=!!(b._scrollbarTop&&b._scrollbarTop>c),j=s.max(s.floor(c/e),0),k=s.max(j+s.floor(h/e),0);b._scrollTop=c-g*e,b._scrollbarTop=c,b._fetch(j,k,i)||(b.wrapper[0].scrollTop=b._scrollTop)},_fetch:function(a,b,c){var d=this,e=d.dataSource,f=d.itemHeight,g=e.take(),h=d._rangeStart||e.skip()||0,i=s.floor(a/g)*g,j=!1,k=.33;a<h?(j=!0,h=s.max(0,b-g),d._scrollTop=(a-h)*f,d._page(h,g)):b>=h+g&&!c?(j=!0,h=a,d._scrollTop=f,d._page(h,g)):d._fetching||(a<i+g-g*k&&a>g&&e.prefetch(i-g,g),b>i+g*k&&e.prefetch(i+g,g));return j},_page:function(a,b){var d=this,e=d.dataSource;clearTimeout(d._timeout),d._fetching=!0,d._rangeStart=a,e.inRange(a,b)?e.range(a,b):(c.ui.progress(d.wrapper.parent(),!0),d._timeout=setTimeout(function(){e.range(a,b)},100))},refresh:function(){var a=this,b="",d=25e4,e=a.dataSource,f=a._rangeStart,g=c.support.scrollbar(),h=a.wrapper[0],i,j,k;c.ui.progress(a.wrapper.parent(),!1),clearTimeout(a._timeout),k=a.itemHeight=a.options.itemHeight()||0;var l=h.scrollWidth>h.offsetWidth?g:0;i=e.total()*k+l;for(j=0;j<s.floor(i/d);j++)b+='<div style="width:1px;height:'+d+'px"></div>';i%d&&(b+='<div style="width:1px;height:'+i%d+'px"></div>'),a.verticalScrollbar.html(b),h.scrollTop=a._scrollTop,a.drag&&a.drag.cancel(),f&&!a._fetching&&(a._rangeStart=e.skip()),a._fetching=!1}}),bb={create:{text:"Add new record",imageClass:"k-add",className:"k-grid-add",iconClass:"k-icon"},cancel:{text:"Cancel changes",imageClass:"k-cancel",className:"k-grid-cancel-changes",iconClass:"k-icon"},save:{text:"Save changes",imageClass:"k-update",className:"k-grid-save-changes",iconClass:"k-icon"},destroy:{text:"Delete",imageClass:"k-delete",className:"k-grid-delete",iconClass:"k-icon"},edit:{text:"Edit",imageClass:"k-edit",className:"k-grid-edit",iconClass:"k-icon"},update:{text:"Update",imageClass:"k-update",className:"k-grid-update",iconClass:"k-icon"},canceledit:{text:"Cancel",imageClass:"k-cancel",className:"k-grid-cancel",iconClass:"k-icon"}},bl=h.extend({init:function(a,b){var d=this;b=n(b)?{dataSource:b}:b,h.fn.init.call(d,a,b),d._element(),d._columns(d.options.columns),d._dataSource(),d._tbody(),d._pageable(),d._thead(),d._groupable(),d._toolbar(),d._setContentHeight(),d._templates(),d._navigatable(),d._selectable(),d._details(),d._editable(),d._attachCustomCommandsEvent(),d.options.autoBind&&d.dataSource.fetch(),c.notify(d)},events:[E,"dataBinding",I,J,K,D,A,B,C,H,O,P,G,F],setDataSource:function(a){var b=this;b.options.dataSource=a,b._dataSource(),b._pageable(),b.options.groupable&&b._groupable(),b._thead(),b.virtualScrollable&&b.virtualScrollable.setDataSource(b.options.dataSource),b.options.autoBind&&a.fetch()},options:{name:"Grid",columns:[],toolbar:null,autoBind:!0,filterable:!1,scrollable:!0,sortable:!1,selectable:!1,navigatable:!1,pageable:!1,editable:!1,groupable:!1,rowTemplate:"",altRowTemplate:"",dataSource:{},height:null,resizable:!1,reorderable:!1,columnMenu:!1},setOptions:function(a){var b=this;h.fn.setOptions.call(this,a),b._templates()},items:function(){return this.tbody.children(":not(.k-grouping-row,.k-detail-row,.k-group-footer)")},_attachCustomCommandsEvent:function(){var a=this,b=a.columns||[],c,d,e;for(d=0,e=b.length;d<e;d++)c=b[d].command,c&&bg(a,a.wrapper,c)},_element:function(){var b=this,c=b.element;c.is("table")||(b.options.scrollable?c=b.element.find("> .k-grid-content > table"):c=b.element.children("table"),c.length||(c=a("<table />").appendTo(b.element))),b.table=c.attr("cellspacing",0),b._wrapper()},_positionColumnResizeHandle:function(b){var c=this,d=c.options.scrollable,e=c.resizeHandle,f;c.thead.on("mousemove","th:not(.k-group-cell,.k-hierarchy-cell)",function(g){var h=a(this),i=h.offset().left+this.offsetWidth;g.clientX>i-X&&g.clientX<i+X?(bd(c.wrapper,h.css("cursor")),e||(e=c.resizeHandle=a('<div class="k-resize-handle"/>'),b.append(e)),f=this.offsetWidth,h.prevAll().each(function(){f+=this.offsetWidth}),e.css({top:d?0:bc(c.wrapper),left:f-X,height:h.outerHeight(),width:X*3}).data("th",h).show()):(bd(c.wrapper,""),e&&e.hide())})},_resizable:function(){var b=this,c=b.options,d,e,f,g,h;c.resizable&&(d=c.scrollable?b.wrapper.find(".k-grid-header-wrap"):b.wrapper,b._positionColumnResizeHandle(d),d.kendoResizable({handle:".k-resize-handle",hint:function(c){return a('<div class="k-grid-resize-indicator" />').css({height:c.data("th").outerHeight()+b.tbody.attr("clientHeight")})},start:function(d){var i=a(d.currentTarget).data("th"),j=a.inArray(i[0],i.parent().children(":visible")),k=b.tbody.parent(),l=b.footer||a();bd(b.wrapper,i.css("cursor")),c.scrollable?h=b.thead.parent().find("col:eq("+j+")").add(k.children("colgroup").find("col:eq("+j+")")).add(l.find("colgroup").find("col:eq("+j+")")):h=k.children("colgroup").find("col:eq("+j+")"),e=d.x.location,f=i.outerWidth(),g=b.tbody.outerWidth()},resize:function(d){var i=f+d.x.location-e,j=b.footer||a();i>10&&(h.css("width",i),c.scrollable&&(b._footerWidth=g+d.x.location-e,b.tbody.parent().add(b.thead.parent()).add(j.find("table")).css("width",b._footerWidth)))},resizeend:function(c){var d=a(c.currentTarget).data("th"),e=d.outerWidth(),g;bd(b.wrapper,""),f!=e&&(g=b.columns[d.parent().find("th:not(.k-group-cell,.k-hierarchy-cell)").index(d)],g.width=e,b.trigger(O,{column:g,oldWidth:f,newWidth:e})),b.resizeHandle.hide()}}))},_draggable:function(){var b=this;b.options.reorderable&&(b._draggableInstance=b.thead.kendoDraggable({group:c.guid(),filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+c.attr("field")+"]",hint:function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),lineHeight:b.height()+"px",paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')}}).data("kendoDraggable"))},_reorderable:function(){var a=this;a.options.reorderable&&a.thead.kendoReorderable({draggable:a._draggableInstance,change:function(b){var c=bh(a.columns)[b.oldIndex];a.trigger(P,{newIndex:b.newIndex,oldIndex:b.oldIndex,column:c}),a.reorderColumn(b.newIndex,c)}})},reorderColumn:function(b,c){var d=this,e=a.inArray(c,d.columns),f=a.inArray(c,bh(d.columns)),g,h,i,j=d.footer||d.wrapper.find(".k-grid-footer");if(e!==b){d.columns.splice(e,1),d.columns.splice(b,0,c),d._templates(),bf(d.thead.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),f,b),d.options.scrollable&&bf(d.tbody.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),f,b),bf(d.thead.find(".k-header:not(.k-group-cell,.k-hierarchy-cell)"),e,b),j&&j.length&&(bf(j.find(".k-grid-footer-wrap>table>colgroup>col:not(.k-group-col,.k-hierarchy-col)"),f,b),bf(j.find(".k-footer-template>td:not(.k-group-cell,.k-hierarchy-cell)"),e,b)),g=d.tbody.children(":not(.k-grouping-row,.k-detail-row)");for(h=0,i=g.length;h<i;h+=1)bf(g.eq(h).find(">td:not(.k-group-cell,.k-hierarchy-cell)"),e,b)}},cellIndex:function(b){return a(b).parent().find("td:not(.k-group-cell,.k-hierarchy-cell)").index(b)},_modelForContainer:function(b){b=a(b),!b.is("tr")&&this._editMode()!=="popup"&&(b=b.closest("tr"));var d=b.attr(c.attr("uid"));return this.dataSource.getByUid(d)},_editable:function(){var b=this,c=b.options.editable,d=function(){var c=document.activeElement,d=b._editContainer;d&&!a.contains(d[0],c)&&d[0]!==c&&!a(c).closest(".k-animation-container").length&&b.editable.end()&&b.closeCell()};if(c){var e=b._editMode();e==="incell"?c.update!==!1&&(b.wrapper.delegate("tr:not(.k-grouping-row) > td:not(.k-hierarchy-cell,.k-detail-cell,.k-group-cell,.k-edit-cell,:has(a.k-grid-delete))",Q,function(c){var d=a(this);d.closest("tbody")[0]===b.tbody[0]&&!a(c.target).is(":input")&&(b.editable?b.editable.end()&&(b.closeCell(),b.editCell(d)):b.editCell(d))}),b.wrapper.bind("focusin",function(a){clearTimeout(b.timer),b.timer=null}),b.wrapper.bind("focusout",function(a){b.timer=setTimeout(d,1)})):c.update!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit",Q,function(c){c.preventDefault(),b.editRow(a(this).closest("tr"))}),c.destroy!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-delete",Q,function(c){c.preventDefault(),b.removeRow(a(this).closest("tr"))})}},editCell:function(a){var b=this,c=b.columns[b.cellIndex(a)],d=b._modelForContainer(a);d&&(!d.editable||d.editable(c.field))&&!c.command&&c.field&&(b._attachModelChange(d),b._editContainer=a,b.editable=a.addClass("k-edit-cell").kendoEditable({fields:{field:c.field,format:c.format,editor:c.editor,values:c.values},model:d,change:function(c){b.trigger(B,{values:c.values,container:a,model:d})&&c.preventDefault()}}).data("kendoEditable"),a.parent().addClass("k-grid-edit-row"),b.trigger(A,{container:a,model:d}))},_destroyEditable:function(){var a=this;a.editable&&(a._detachModelChange(),a.editable.destroy(),delete a.editable,a._editMode()==="popup"&&a._editContainer.data("kendoWindow").close(),a._editContainer=null)},_attachModelChange:function(a){var b=this;b._modelChangeHandler=function(a){b._modelChange({field:a.field,model:this})},a.bind("change",b._modelChangeHandler)},_detachModelChange:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b);c&&c.unbind(E,a._modelChangeHandler)},closeCell:function(){var b=this,d=b._editContainer.removeClass("k-edit-cell"),e=d.closest("tr").attr(c.attr("uid")),f=b.columns[b.cellIndex(d)],g=b.dataSource.getByUid(e);d.parent().removeClass("k-grid-edit-row"),b._destroyEditable(),b._displayCell(d,f,g),d.hasClass("k-dirty-cell")&&a('<span class="k-dirty"/>').prependTo(d)},_displayCell:function(a,b,d){var e=this,f={storage:{},count:0},g=k({},c.Template,e.options.templateSettings),h=c.template(e._cellTmpl(b,f),g);f.count>0&&(h=p(h,f.storage)),a.empty().html(h(d))},removeRow:function(b){var c=this,d,e;!c._confirmation()||(b=a(b).hide(),d=c._modelForContainer(b),d&&!c.trigger(C,{row:b,model:d})&&(c.dataSource.remove(d),e=c._editMode(),(e==="inline"||e==="popup")&&c.dataSource.sync()))},_editMode:function(){var a="incell",b=this.options.editable;b!==!0&&(typeof b=="string"?a=b:a=b.mode||a);return a},editRow:function(b){var c=this,d=c._modelForContainer(b),e=c._editMode(),f;c.cancelRow(),d&&(c._attachModelChange(d),e==="popup"?c._createPopupEditor(d):e==="inline"?c._createInlineEditor(b,d):e==="incell"&&a(b).children(w).each(function(){var b=a(this),e=c.columns[b.index()];d=c._modelForContainer(b);if(d&&(!d.editable||d.editable(e.field))&&e.field){c.editCell(b);return!1}}),f=c._editContainer,f.delegate("a.k-grid-cancel",Q,function(a){a.preventDefault(),c.cancelRow()}),f.delegate("a.k-grid-update",Q,function(a){a.preventDefault(),c.saveRow()}))},_createPopupEditor:function(b){var d=this,e="<div "+c.attr("uid")+'="'+b.uid+'"><div class="k-edit-form-container">',f,g,h=[],i,l,m,n,o,q,r=d.options.editable,s=j(r)?r.window:{},t=k({},c.Template,d.options.templateSettings);if(r.template){e+=c.template(window.unescape(r.template),t)(b);for(i=0,l=d.columns.length;i<l;i++)f=d.columns[i],f.command&&(g=bm(f.command,"edit"))}else for(i=0,l=d.columns.length;i<l;i++){f=d.columns[i];if(!f.command){e+='<div class="k-edit-label"><label for="'+f.field+'">'+(f.title||f.field||"")+"</label></div>";if((!b.editable||b.editable(f.field))&&f.field)h.push({field:f.field,format:f.format,editor:f.editor,values:f.values}),e+="<div "+c.attr("container-for")+'="'+f.field+'" class="k-edit-field"></div>';else{var u={storage:{},count:0};m=c.template(d._cellTmpl(f,u),t),u.count>0&&(m=p(m,u.storage)),e+='<div class="k-edit-field">'+m(b)+"</div>"}}else f.command&&(g=bm(f.command,"edit"))}g&&j(g)&&(g.text&&j(g.text)&&(n=g.text.update,o=g.text.cancel),g.attr&&(q=g.attr)),e+=d._createButton({name:"update",text:n,attr:q})+d._createButton({name:"canceledit",text:o,attr:q}),e+="</div></div>";var v=d._editContainer=a(e).appendTo(d.wrapper).eq(0).kendoWindow(k({modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1},s)),w=v.data("kendoWindow");w.wrapper.delegate(".k-i-close","click",function(){d.cancelRow()}),d.editable=d._editContainer.kendoEditable({fields:h,model:b,clearContainer:!1}).data("kendoEditable"),w.center().open(),d.trigger(A,{container:v,model:b})},_createInlineEditor:function(b,c){var d=this,e,f,g,h=[];b.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){f=a(this),e=d.columns[d.cellIndex(f)];if(!e.command&&e.field&&(!c.editable||c.editable(e.field)))h.push({field:e.field,format:e.format,editor:e.editor,values:e.values}),f.attr("data-container-for",e.field),f.empty();else if(e.command){g=bm(e.command,"edit");if(g){f.empty();var b,i,k;j(g)&&(g.text&&j(g.text)&&(b=g.text.update,i=g.text.cancel),g.attr&&(k=g.attr)),a(d._createButton({name:"update",text:b,attr:k})+d._createButton({name:"canceledit",text:i,attr:k})).appendTo(f)}}}),d._editContainer=b,d.editable=b.addClass("k-grid-edit-row").kendoEditable({fields:h,model:c,clearContainer:!1}).data("kendoEditable"),d.trigger(A,{container:b,model:c})},cancelRow:function(){var a=this,b=a._editContainer,d;b&&(d=a._modelForContainer(b),a.dataSource.cancelChanges(d),a._editMode()!=="popup"?a._displayRow(b):a._displayRow(a.items().filter("["+c.attr("uid")+"="+d.uid+"]")),a._destroyEditable())},saveRow:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b),d=a.editable;b&&d&&d.end()&&!a.trigger(B,{container:b,model:c})&&(a._editMode()!=="popup"&&a._displayRow(b),a._destroyEditable(),a.dataSource.sync())},_displayRow:function(b){var c=this,d=c._modelForContainer(b);d&&b.replaceWith(a((b.hasClass("k-alt")?c.altRowTemplate:c.rowTemplate)(d)))},_showMessage:function(a){return window.confirm(a)},_confirmation:function(){var a=this,b=a.options.editable,c=b===!0||typeof b===U?V:b.confirmation;return c!==!1&&c!=null?a._showMessage(c):!0},cancelChanges:function(){this.dataSource.cancelChanges()},saveChanges:function(){var a=this;(a.editable&&a.editable.end()||!a.editable)&&!a.trigger(H)&&a.dataSource.sync()},addRow:function(){var a=this,b,d=a.dataSource,e=a._editMode(),f=a.options.editable.createAt||"",g=d.pageSize(),h=d.view()||[];if(a.editable&&a.editable.end()||!a.editable){e!="incell"&&a.cancelRow(),b=d.indexOf(h[0]),f.toLowerCase()=="bottom"&&(b+=h.length,g&&!d.options.serverPaging&&g<=h.length&&(b-=1)),b<0&&(b=0);var i=d.insert(b,{}),j=i.uid,k=a.table.find("tr["+c.attr("uid")+"="+j+"]"),l=k.children("td:not(.k-group-cell,.k-hierarchy-cell)").first();e!=="inline"&&e!=="popup"||!k.length?l.length&&a.editCell(l):a.editRow(k)}},_toolbar:function(){var b=this,d=b.wrapper,e=b.options.toolbar,f=b.options.editable,g,h;e&&(g=b.wrapper.find(".k-grid-toolbar"),g.length||(e=q(e)?e({}):typeof e===U?e:b._toolbarTmpl(e).replace(Y,"\\#"),h=p(c.template(e),b),g=a('<div class="k-toolbar k-grid-toolbar" />').html(h({})).prependTo(d)),f&&f.create!==!1&&g.delegate(".k-grid-add",Q,function(a){a.preventDefault(),b.addRow()}).delegate(".k-grid-cancel-changes",Q,function(a){a.preventDefault(),b.cancelChanges()}).delegate(".k-grid-save-changes",Q,function(a){a.preventDefault(),b.saveChanges()}))},_toolbarTmpl:function(a){var b=this,c,d,e="";if(n(a))for(c=0,d=a.length;c<d;c++)e+=b._createButton(a[c]);return e},_createButton:function(a){var b=a.template||Z,d=typeof a===U?a:a.name||a.text,e={className:"k-grid-"+d,text:d,imageClass:"",attr:"",iconClass:""};if(!d&&(!j(a)||!a.template))throw new Error("Custom commands should have name specified");j(a)?(a.className&&(a.className+=" "+e.className),d==="edit"&&j(a.text)&&(a=k(!0,{},a),a.text=a.text.edit),a.attr&&j(a.attr)&&(a.attr=ba(a.attr)),e=k(!0,e,bb[d],a)):e=k(!0,e,bb[d]);return c.template(b)(e)},_groupable:function(){var b=this,d=b.wrapper,e=b.options.groupable;b.groupable||b.table.delegate(".k-grouping-row .k-i-collapse, .k-grouping-row .k-i-expand",Q,function(c){var d=a(this),e=d.closest("tr");d.hasClass("k-i-collapse")?b.collapseGroup(e):b.expandGroup(e),c.preventDefault(),c.stopPropagation()}),e&&(d.has("div.k-grouping-header")[0]||a("<div />").addClass("k-grouping-header").html(" ").prependTo(d),b.groupable&&b.groupable.destroy(),b.groupable=new f(d,k({},e,{draggable:b._draggableInstance,groupContainer:">div.k-grouping-header",dataSource:b.dataSource,filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+c.attr("field")+"]",allowDrag:b.options.reorderable})))},_selectable:function(){var a=this,b,d,e=a.options.selectable;e&&(b=typeof e===U&&e.toLowerCase().indexOf("multiple")>-1,d=typeof e===U&&e.toLowerCase().indexOf("cell")>-1,a.selectable=new c.ui.Selectable(a.table,{filter:">"+(d?x:"tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)"),multiple:b,change:function(){a.trigger(E)}}),a.options.navigatable&&a.wrapper.keydown(function(c){var e=a.current();c.keyCode===i.SPACEBAR&&c.target==a.wrapper[0]&&!e.hasClass("k-edit-cell")&&(c.preventDefault(),c.stopPropagation(),e=d?e:e.parent(),b?c.ctrlKey?e.hasClass(N)&&(e.removeClass(N),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(E)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},current:function(a){var c=this,d=c.options.scrollable,e=c._current;a!==b&&a.length&&(!e||e[0]!==a[0])&&(a.addClass(L),e&&e.removeClass(L),c._current=a,a.length&&d&&(c._scrollTo(a.parent()[0],c.content[0]),d.virtual?c._scrollTo(a[0],c.content.find(">.k-virtual-scrollable-wrap")[0]):c._scrollTo(a[0],c.content[0])));return c._current},_scrollTo:function(a,b){var c=a.tagName.toLowerCase()==="td",d=a[c?"offsetLeft":"offsetTop"],e=a[c?"offsetWidth":"offsetHeight"],f=b[c?"scrollLeft":"scrollTop"],g=b[c?"clientWidth":"clientHeight"],h=d+e;b[c?"scrollLeft":"scrollTop"]=f>d?d:h>f+g?h-g:f},_navigatable:function(){var b=this,c=b.wrapper,d=b.table.addClass(M),e=p(b.current,b),f="."+M+" "+y,g=a.browser,h=function(d){var f=a(d.currentTarget);f.closest("tbody")[0]===b.tbody[0]&&(e(f),a(d.target).is(":button,a,:input,a>.k-icon,textarea,span.k-icon,.k-input")||setTimeout(function(){c.focus()}),d.stopPropagation())};b.options.navigatable&&(c.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(L):e(b.table.find(z))},focusout:function(a){b._current&&b._current.removeClass(L),a.stopPropagation()},keydown:function(f){var h=f.keyCode,j=b.current(),k=f.shiftKey,l=b.dataSource,m=b.options.pageable,n=!a(f.target).is(":button,a,:input,a>.t-icon"),o=b._editMode()=="incell",p,q,r=!1;n&&i.UP===h?(e(j?j.parent().prevAll(v).last().children(":eq("+j.index()+"),:eq(0)").last():d.find(z)),r=!0):n&&i.DOWN===h?(e(j?j.parent().nextAll(v).first().children(":eq("+j.index()+"),:eq(0)").last():d.find(z)),r=!0):n&&i.LEFT===h?(e(j?j.prevAll(w+":first"):d.find(z)),r=!0):n&&i.RIGHT===h?(e(j?j.nextAll(":visible:first"):d.find(z)),r=!0):n&&m&&i.PAGEDOWN==h?(b._current=null,l.page(l.page()+1),r=!0):n&&m&&i.PAGEUP==h?(b._current=null,l.page(l.page()-1),r=!0):b.options.editable&&(j=j?j:d.find(z),i.ENTER==h||i.F2==h?(b._handleEditing(j),r=!0):i.TAB==h&&o?(q=k?j.prevAll(w+":first"):j.nextAll(":visible:first"),q.length||(q=j.parent()[k?"prevAll":"nextAll"]("tr:not(.k-grouping-row,.k-detail-row):visible").children(w+(k?":last":":first"))),q.length&&(b._handleEditing(j,q),r=!0)):i.ESC==h&&b._editContainer&&(b._editContainer.has(j[0])||j[0]===b._editContainer[0])&&(o?b.closeCell():(p=b.items().index(j.parent()),document.activeElement.blur(),b.cancelRow(),p>=0&&b.current(b.items().eq(p).children().filter(w).first())),g.msie&&parseInt(g.version,10)<9&&document.body.focus(),c.focus(),r=!0)),r&&(f.preventDefault(),f.stopPropagation())}}),c.delegate(f,"mousedown",h))},_handleEditing:function(b,c){var d=this,e=d._editMode(),f=d._editContainer,g,h;e=="incell"?h=b.hasClass("k-edit-cell"):h=b.parent().hasClass("k-grid-edit-row");if(d.editable){a.contains(f[0],document.activeElement)&&a(document.activeElement).blur();if(d.editable.end())e=="incell"?d.closeCell():(b.parent()[0]===f[0]?g=d.items().index(b.parent()):g=d.items().index(f),d.saveRow(),d.current(d.items().eq(g).children().filter(w).first()),h=!0);else{e=="incell"?d.current(f):d.current(f.children().filter(w).first()),f.find(":input:visible:first").focus();return}}c&&d.current(c),d.wrapper.focus();if(!h&&!c||c)e=="incell"?d.editCell(d.current()):d.editRow(d.current().parent())},_wrapper:function(){var a=this,b=a.table,c=a.options.height,d=a.element;d.is("div")||(d=d.wrap("<div/>").parent()),a.wrapper=d.addClass("k-grid k-widget").attr(S,s.max(b.attr(S)||0,0)),b.removeAttr(S),c&&(a.wrapper.css(R,c),b.css(R,"auto"))},_tbody:function(){var b=this,c=b.table,d;d=c.find(">tbody"),d.length||(d=a("<tbody/>").appendTo(c)),b.tbody=d},_scrollable:function(){var b=this,d,e,f=b.options,g=f.scrollable,h=c.support.scrollbar();if(g){d=b.wrapper.children(".k-grid-header"),d[0]||(d=a('<div class="k-grid-header" />').insertBefore(b.table)),d.css("padding-right",g.virtual?h+1:h),e=a('<table cellspacing="0" />'),e.append(b.thead),d.empty().append(a('<div class="k-grid-header-wrap" />').append(e)),b.content=b.table.parent(),b.content.is(".k-virtual-scrollable-wrap")&&(b.content=b.content.parent()),b.content.is(".k-grid-content, .k-virtual-scrollable-wrap")||(b.content=b.table.wrap('<div class="k-grid-content" />').parent()),g!==!0&&g.virtual&&!b.virtualScrollable&&(b.virtualScrollable=new $(b.content,{dataSource:b.dataSource,itemHeight:p(b._averageRowHeight,b)})),b.scrollables=d.children(".k-grid-header-wrap");if(g.virtual)b.content.find(">.k-virtual-scrollable-wrap").bind("scroll",function(){b.scrollables.scrollLeft(this.scrollLeft)});else{b.content.bind("scroll",function(){b.scrollables.scrollLeft(this.scrollLeft)});var i=c.touchScroller(b.content);i&&i.movable&&i.movable.bind("change",function(a){b.scrollables.scrollLeft(-a.sender.x)})}}},_setContentHeight:function(){var a=this,b=a.options,d=a.wrapper.innerHeight(),e=a.wrapper.children(".k-grid-header"),f=c.support.scrollbar();if(b.scrollable){d-=e.outerHeight(),a.pager&&(d-=a.pager.element.outerHeight()),b.groupable&&(d-=a.wrapper.children(".k-grouping-header").outerHeight()),b.toolbar&&(d-=a.wrapper.children(".k-grid-toolbar").outerHeight()),a.footerTemplate&&(d-=a.wrapper.children(".k-grid-footer").outerHeight());var g=function(a){var b,c;if(a[0].style.height)return!0;b=a.height(),a.height("auto"),c=a.height();if(b!=c){a.height("");return!0}a.height("");return!1};g(a.wrapper)&&(d>f*2?a.content.height(d):a.content.height(f*2+1))}},_averageRowHeight:function(){var a=this,b=a._rowHeight;a._rowHeight||(a._rowHeight=b=a.table.outerHeight()/a.table[0].rows.length,a._sum=b,a._measures=1);var c=a.table.outerHeight()/a.table[0].rows.length;b!==c&&(a._measures++,a._sum+=c,a._rowHeight=a._sum/a._measures);return b},_dataSource:function(){var a=this,c=a.options,d,f=c.dataSource;f=n(f)?{data:f}:f,j(f)&&(k(f,{table:a.table,fields:a.columns}),d=c.pageable,j(d)&&d.pageSize!==b&&(f.pageSize=d.pageSize)),a.dataSource&&a._refreshHandler?a.dataSource.unbind(E,a._refreshHandler).unbind(t,a._requestStartHandler).unbind(u,a._errorHandler):(a._refreshHandler=p(a.refresh,a),a._requestStartHandler=p(a._requestStart,a),a._errorHandler=p(a._error,a)),a.dataSource=e.create(f).bind(E,a._refreshHandler).bind(t,a._requestStartHandler).bind(u,a._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_modelChange:function(b){var e=this,f=b.model,g=e.tbody.find("tr["+c.attr("uid")+"="+f.uid+"]"),h,i,j=g.hasClass("k-alt"),k,l,m;if(g.children(".k-edit-cell").length&&!e.options.rowTemplate)g.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){h=a(this),i=e.columns[e.cellIndex(h)],i.field===b.field&&(h.hasClass("k-edit-cell")?h.addClass("k-dirty-cell"):(e._displayCell(h,i,f),a('<span class="k-dirty"/>').prependTo(h)))});else if(!g.hasClass("k-grid-edit-row")){k=a((j?e.altRowTemplate:e.rowTemplate)(f)),g.replaceWith(k);for(l=0,m=e.columns.length;l<m;l++)i=e.columns[l],i.field===b.field&&(h=k.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(l),a('<span class="k-dirty"/>').prependTo(h));e.trigger("itemChange",{item:k,data:f,ns:d})}},_pageable:function(){var b=this,d,e=b.options.pageable;e&&(d=b.wrapper.children("div.k-grid-pager"),d.length||(d=a('<div class="k-pager-wrap k-grid-pager"/>').appendTo(b.wrapper)),b.pager&&b.pager.destroy(),typeof e=="object"&&e instanceof c.ui.Pager?b.pager=e:b.pager=new c.ui.Pager(d,k({},e,{dataSource:b.dataSource})))},_footer:function(){var b=this,c=b.dataSource.aggregates(),d="",e=b.footerTemplate,f=b.options,g;if(e){c=r(c)?be(b.dataSource.aggregate()):c,d=a(b._wrapFooter(e(c))),g=b.footer||b.wrapper.find(".k-grid-footer");if(g.length){var h=d;g.replaceWith(h),b.footer=h}else f.scrollable?b.footer=f.pageable?d.insertBefore(b.wrapper.children("div.k-grid-pager")):d.appendTo(b.wrapper):b.footer=d.insertBefore(b.tbody);if(f.scrollable){var i=!1;b.scrollables.each(function(){a(this).hasClass("k-grid-footer-wrap")&&(i=!0)}),i||(b.scrollables=b.scrollables.add(b.footer.children(".k-grid-footer-wrap")))}f.resizable&&b._footerWidth&&b.footer.find("table").css("width",b._footerWidth)}},_wrapFooter:function(b){var c=this,d="";if(c.options.scrollable){d=a('<div class="k-grid-footer"><div class="k-grid-footer-wrap"><table cellspacing="0"><tbody>'+b+"</tbody></table></div></div>"),c._appendCols(d.find("table"));return d}return'<tfoot class="k-grid-footer">'+b+"</tfoot>"},_columnMenu:function(){var b=this,d,e=b.columns,f,g=b.options,h=g.columnMenu,i,j,l,m;h&&(typeof h=="boolean"&&(h={}),b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(n){f=e[n],m=a(this),!f.command&&(f.field||m.attr("data-"+c.ns+"field"))&&(d=m.data("kendoColumnMenu"),d&&d.destroy(),j=f.sortable!==!1&&h.sortable!==!1?g.sortable:!1,l=g.filterable&&f.filterable!==!1&&h.filterable!==!1?k({},f.filterable,g.filterable):!1,i={dataSource:b.dataSource,values:f.values,columns:h.columns,sortable:j,filterable:l,messages:h.messages,owner:b},m.kendoColumnMenu(i))}))},_filterable:function(){var b=this,d=b.columns,e,f,g=b.options.filterable;g&&!b.options.columnMenu&&b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(h){e=a(this),d[h].filterable!==!1&&!d[h].command&&(d[h].field||e.attr("data-"+c.ns+"field"))&&(f=e.data("kendoFilterMenu"),f&&f.destroy(),e.kendoFilterMenu(k(!0,{},g,d[h].filterable,{dataSource:b.dataSource,values:d[h].values})))})},_sortable:function(){var b=this,d=b.columns,e,f=b.options.sortable;f&&b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(g){e=d[g],e.sortable!==!1&&!e.command&&e.field&&a(this).attr("data-"+c.ns+"field",e.field).kendoSortable(k({},f,{dataSource:b.dataSource}))})},_columns:function(b){var d=this,e=d.table,f,g=e.find("col"),h=d.options.dataSource;b=b.length?b:l(e.find("th"),function(b,d){b=a(b);var e=b.attr(c.attr("sortable")),f=b.attr(c.attr("filterable")),h=b.attr(c.attr("type")),i=b.attr(c.attr("groupable")),j=b.attr(c.attr("field")),k=b.attr(c.attr("menu"));j||(j=b.text().replace(/\s|[^A-z0-9]/g,""));return{field:j,type:h,sortable:e!=="false",filterable:f!=="false",groupable:i!=="false",menu:k,template:b.attr(c.attr("template")),width:g.eq(d).css("width")}}),f=!(d.table.find("tbody tr").length>0&&(!h||!h.transport)),d.columns=l(b,function(a){a=typeof a===U?{field:a}:a,a.hidden&&(a.attributes=bi(a.attributes),a.footerAttributes=bi(a.footerAttributes),a.headerAttributes=bi(a.headerAttributes));return k({encoded:f},a)})},_tmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f,g=d.columns.length,h,i={storage:{},count:0},j,l,m=d._hasDetails(),n=[],o=d.dataSource.group().length;if(!a){a="<tr",b&&n.push("k-alt"),m&&n.push("k-master-row"),n.length&&(a+=' class="'+n.join(" ")+'"'),g&&(a+=" "+c.attr("uid")+'="#=uid#"'),a+=">",o>0&&(a+=_(o)),m&&(a+='<td class="k-hierarchy-cell"><a class="k-icon k-plus" href="\\#"></a></td>');for(f=0;f<g;f++)j=d.columns[f],h=j.template,l=typeof h,a+="<td"+ba(j.attributes)+">",a+=d._cellTmpl(j,i),a+="</td>";a+="</tr>"}a=c.template(a,e);if(i.count>0)return p(a,i.storage);return a},_headerCellText:function(a){var b=this,d=k({},c.Template,b.options.templateSettings),e=a.headerTemplate,f=typeof e,g=a.title||a.field||"";f===T?g=c.template(e,d)({}):f===U&&(g=e);return g},_cellTmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f=a.template,g=e.paramName,h="",i,l,m=a.format,o=typeof f,p=a.values;if(a.command){if(n(a.command)){for(i=0,l=a.command.length;i<l;i++)h+=d._createButton(a.command[i]);return h.replace(Y,"\\#")}return d._createButton(a.command).replace(Y,"\\#")}o===T?(b.storage["tmpl"+b.count]=f,h+="#=this.tmpl"+b.count+"("+g+")#",b.count++):o===U?h+=f:p&&p.length&&j(p[0])&&"value"in p[0]?(h+="#var v ="+c.stringify(p)+"#",h+="#for (var idx=0,length=v.length;idx<length;idx++) {#",h+="#if (v[idx].value == ",e.useWithBlock||(h+=g+"."),h+=a.field,h+=") { #",h+="${v[idx].text}",h+="#break;#",h+="#}#",h+="#}#"):(h+=a.encoded?"${":"#=",m&&(h+='kendo.format("'+m.replace(W,"\\$1")+'",'),e.useWithBlock||(h+=g+"."),h+=a.field,m&&(h+=")"),h+=a.encoded?"}":"#");return h},_templates:function(){var b=this,c=b.options,d=b.dataSource,e=d.group(),f=d.aggregate();b.rowTemplate=b._tmpl(c.rowTemplate),b.altRowTemplate=b._tmpl(c.altRowTemplate||c.rowTemplate,!0),b._hasDetails()&&(b.detailTemplate=b._detailTmpl(c.detailTemplate||""));if(!r(f)||m(b.columns,function(a){return a.footerTemplate}).length)b.footerTemplate=b._footerTmpl(f,"footerTemplate","k-footer-template");e.length&&m(b.columns,function(a){return a.groupFooterTemplate}).length&&(f=a.map(e,function(a){return a.aggregates}),b.groupFooterTemplate=b._footerTmpl(f,"groupFooterTemplate","k-group-footer"))},_footerTmpl:function(a,b,d){var e=this,f=k({},c.Template,e.options.templateSettings),g=f.paramName,h="",i,j,l=e.columns,m,n,o={},q=0,r={},s=e.dataSource,t=s.group().length,u=be(a),v;h+='<tr class="'+d+'">',t>0&&(h+=_(t)),e._hasDetails()&&(h+='<td class="k-hierarchy-cell"> </td>');for(i=0,j=e.columns.length;i<j;i++)v=l[i],m=v[b],n=typeof m,h+="<td"+ba(v.footerAttributes)+">",m?(n!==T&&(r=u[v.field]?k({},f,{paramName:g+"."+v.field}):{},m=c.template(m,r)),o["tmpl"+q]=m,h+="#=this.tmpl"+q+"("+g+")#",q++):h+=" ",h+="</td>";h+="</tr>",h=c.template(h,f);if(q>0)return p(h,o);return h},_detailTmpl:function(a){var b=this,d="",e=k({},c.Template,b.options.templateSettings),f=e.paramName,g={},h=0,i=b.dataSource.group().length,j=bh(b.columns).length,l=typeof a;d+='<tr class="k-detail-row">',i>0&&(d+=_(i)),d+='<td class="k-hierarchy-cell"></td><td class="k-detail-cell"'+(j?' colspan="'+j+'"':"")+">",l===T?(g["tmpl"+h]=a,d+="#=this.tmpl"+h+"("+f+")#",h++):d+=a,d+="</td></tr>",d=c.template(d,e);if(h>0)return p(d,g);return d},_hasDetails:function(){var a=this;return a.options.detailTemplate!==b||(a._events[D]||[]).length},_details:function(){var b=this;b.table.delegate(".k-hierarchy-cell .k-plus, .k-hierarchy-cell .k-minus",Q,function(c){var d=a(this),e=d.hasClass("k-plus"),f=d.closest("tr.k-master-row"),g,h=b.detailTemplate,i,j=b._hasDetails();d.toggleClass("k-plus",!e).toggleClass("k-minus",e),j&&!f.next().hasClass("k-detail-row")&&(i=b.dataItem(f),a(h(i)).addClass(f.hasClass("k-alt")?"k-alt":"").insertAfter(f),b.trigger(D,{masterRow:f,detailRow:f.next(),data:i,detailCell:f.next().find(".k-detail-cell")})),g=f.next(),b.trigger(e?J:K,{masterRow:f,detailRow:g}),g.toggle(e),c.preventDefault();return!1})},dataItem:function(b){return this._data[this.tbody.find("> tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)").index(a(b))]},expandRow:function(b){a(b).find("> td .k-plus, > td .k-i-expand").click()},collapseRow:function(b){a(b).find("> td .k-minus, > td .k-i-collapse").click()},_thead:function(){var d=this,e=d.columns,f=d._hasDetails()&&e.length,g,h,i="",j=d.table.find(">thead"),k,l,m;j.length||(j=a("<thead/>").insertBefore(d.tbody)),k=d.element.find("tr:has(th):first"),k.length||(k=j.children().first(),k.length||(k=a("<tr/>")));if(!k.children().length){f&&(i+='<th class="k-hierarchy-cell"> </th>');for(g=0,h=e.length;g<h;g++)m=e[g],l=d._headerCellText(m),m.command?i+="<th"+ba(m.headerAttributes)+">"+l+"</th>":(i+="<th "+c.attr("field")+"='"+(m.field||"")+"' ",m.title&&(i+=c.attr("title")+'="'+m.title.replace(/'/g,"'")+'" '),m.groupable!==b&&(i+=c.attr("groupable")+"='"+m.groupable+"' "),m.aggregates&&(i+=c.attr("aggregates")+"='"+m.aggregates+"'"),i+=ba(m.headerAttributes),i+=">"+l+"</th>");k.html(i)}else f&&!k.find(".k-hierarchy-cell")[0]&&k.prepend('<th class="k-hierarchy-cell"> </th>');k.find("th").addClass("k-header"),d.options.scrollable||j.addClass("k-grid-header"),k.appendTo(j),d.thead=j,d._sortable(),d._filterable(),d._scrollable(),d._updateCols(),d._resizable(),d._draggable(),d._reorderable(),d._columnMenu()},_updateCols:function(){var a=this;a._appendCols(a.thead.parent().add(a.table))},_appendCols:function(a){var b=this;bk(a,bh(b.columns),b._hasDetails(),b.dataSource.group().length)},_autoColumns:function(a){if(a&&a.toJSON){var b=this,c;a=a.toJSON();for(c in a)b.columns.push({field:c});b._thead(),b._templates()}},_rowsHtml:function(a){var b=this,c="",d,e,f=b.rowTemplate,g=b.altRowTemplate;for(d=0,e=a.length;d<e;d++)d%2?c+=g(a[d]):c+=f(a[d]),b._data.push(a[d]);return c},_groupRowHtml:function(a,b,d){var e=this,f="",g,h,i=a.field,j=m(e.columns,function(a){return a.field==i})[0]||{},l=j.format?c.format(j.format,a.value):a.value,n=j.groupHeaderTemplate,o=(j.title||i)+": "+l,p=k({},{field:a.field,value:a.value},a.aggregates[a.field]),q=a.items;n&&(o=typeof n===T?n(p):c.template(n)(p)),f+='<tr class="k-grouping-row">'+_(d)+'<td colspan="'+b+'">'+'<p class="k-reset">'+'<a class="k-icon k-i-collapse" href="#"></a>'+o+"</p></td></tr>";if(a.hasSubgroups)for(g=0,h=q.length;g<h;g++)f+=e._groupRowHtml(q[g],b-1,d+1);else f+=e._rowsHtml(q);e.groupFooterTemplate&&(f+=e.groupFooterTemplate(a.aggregates));return f},collapseGroup:function(b){b=a(b).find(".k-icon").addClass("k-i-expand").removeClass("k-i-collapse").end();var c=b.find(".k-group-cell").length,d=1,e,f;b.nextAll("tr").each(function(){f=a(this),e=f.find(".k-group-cell").length,f.hasClass("k-grouping-row")?d++:f.hasClass("k-group-footer")&&d--;if(e<=c||f.hasClass("k-group-footer")&&d<0)return!1;f.hide()})},expandGroup:function(b){b=a(b).find(".k-icon").addClass("k-i-collapse").removeClass("k-i-expand").end();var c=this,d=b.find(".k-group-cell").length,e,f,g=1;b.nextAll("tr").each(function(){e=a(this),f=e.find(".k-group-cell").length;if(f<=d)return!1;f==d+1&&!e.hasClass("k-detail-row")&&(e.show(),e.hasClass("k-grouping-row")&&e.find(".k-icon").hasClass("k-i-collapse")&&c.expandGroup(e),e.hasClass("k-master-row")&&e.find(".k-icon").hasClass("k-minus")&&e.next().show()),e.hasClass("k-grouping-row")&&g++,e.hasClass("k-group-footer")&&(g==1?e.show():g--)})},_updateHeader:function(b){var c=this,d=c.thead.find("th.k-group-cell"),e=d.length;b>e?a(Array(b-e+1).join('<th class="k-group-cell k-header"> </th>')).prependTo(c.thead.find("tr")):b<e&&(e=e-b,a(m(d,function(a,b){return e>b})).remove())},_firstDataItem:function(a,b){a&&b&&(a.hasSubgroups?a=this._firstDataItem(a.items[0],b):a=a.items[0]);return a},hideColumn:function(b){var c=this,d,e,f,g,h,i,j=0,k,l=c.footer||c.wrapper.find(".k-grid-footer"),n=c.columns,p;typeof b=="number"?b=n[b]:b=m(n,function(a){return a.field===b})[0];if(!!b&&!b.hidden){p=o(b,bh(n)),b.hidden=!0,b.attributes=bi(b.attributes),b.footerAttributes=bi(b.footerAttributes),b.headerAttributes=bi(b.headerAttributes),c._templates(),c._updateCols(),c.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide(),l&&(c._appendCols(l.find("table:first")),l.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide()),d=c.tbody.children();for(g=0,k=d.length;g<k;g+=1)e=d.eq(g),e.is(".k-grouping-row,.k-detail-row")?(f=e.children(":not(.k-group-cell):first,.k-detail-cell").last(),f.attr("colspan",parseInt(f.attr("colspan"),10)-1)):(e.hasClass("k-grid-edit-row")&&(f=e.children(".k-edit-container")[0])&&(f=a(f),f.attr("colspan",parseInt(f.attr("colspan"),10)-1),f.find("col").eq(p).remove(),e=f.find("tr:first")),e.children(":not(.k-group-cell,.k-hierarchy-cell):visible").eq(p).hide());h=c.thead.prev().find("col");for(g=0,k=h.length;g<k;g+=1){i=h[g].style.width;if(i&&i.indexOf("%")==-1)j+=parseInt(i,10);else{j=0;break}}j&&a(">.k-grid-header table:first,>.k-grid-footer table:first",c.wrapper).add(c.table).width(j),c.trigger(F,{column:b})}},showColumn:function(b){var c=this,d,e,f,g,h,i,j,k,l,n=c.columns,p=c.footer||c.wrapper.find(".k-grid-footer"),q;typeof b=="number"?b=n[b]:b=m(n,function(a){return a.field===b})[0];if(!!b&&!!b.hidden){q=o(b,n),b.hidden=!1,b.attributes=bj(b.attributes),b.footerAttributes=bj(b.footerAttributes),b.headerAttributes=bj(b.headerAttributes),c._templates(),c._updateCols(),c.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell)").eq(q).show(),p&&(c._appendCols(p.find("table:first")),p.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell)").eq(q).show()),d=c.tbody.children();for(e=0,f=d.length;e<f;e+=1)g=d.eq(e),g.is(".k-grouping-row,.k-detail-row")?(h=g.children(":not(.k-group-cell):first,.k-detail-cell").last(),h.attr("colspan",parseInt(h.attr("colspan"),10)+1)):(g.hasClass("k-grid-edit-row")&&(h=g.children(".k-edit-container")[0])&&(h=a(h),h.attr("colspan",parseInt(h.attr("colspan"),10)+1),bk(h.find(">form>table"),bh(n),!1,0),g=h.find("tr:first")),g.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(q).show());i=a(">.k-grid-header table:first,>.k-grid-footer table:first",c.wrapper).add(c.table);if(!b.width)i.width("");else{j=0,l=c.thead.prev().find("col");for(e=0,f=l.length;e<f;e+=1){k=l[e].style.width;if(k.indexOf("%")>-1){j=0;break}j+=parseInt(k,10)}j&&i.width(j)}c.trigger(G,{column:b})}},_progress:function(a){var b=this,d=b.element.is("table")?b.element.parent():b.content&&b.content.length?b.content:b.element;c.ui.progress(d,a)},refresh:function(b){var c=this,d,e,f="",h=c.dataSource.view(),i,j,k,l=c.current(),m=(c.dataSource.group()||[]).length,n=m+bh(c.columns).length;if(!b||b.action!=="itemchange"||!c.editable){c.trigger("dataBinding"),l&&l.hasClass("k-state-focused")&&(k=c.items().index(l.parent())),c._destroyEditable(),c._progress(!1),c._data=[],c.columns.length||(c._autoColumns(c._firstDataItem(h[0],m)),n=m+c.columns.length),c._group=m>0||c._group,c._group&&(c._templates(),c._updateCols(),c._updateHeader(m),c._group=m>0);if(m>0){c.detailTemplate&&n++;for(e=0,d=h.length;e<d;e++)f+=c._groupRowHtml(h[e],n,0)}else f+=c._rowsHtml(h);g?c.tbody[0].innerHTML=f:(j=document.createElement("div"),j.innerHTML="<table><tbody>"+f+"</tbody></table>",i=j.firstChild.firstChild,c.table[0].replaceChild(i,c.tbody[0]),c.tbody=a(i)),c._footer(),c._setContentHeight(),k>=0&&c.current(c.items().eq(k).children().filter(w).first()),c.trigger(I)}}});d.plugin(bl),d.plugin($)}(jQuery),function(a,b){var c=window.kendo,d="change",e="dataBound",f="dataBinding",g=c.ui.Widget,h=c.keys,i=">*",j="requestStart",k="error",l="k-state-focused",m="k-focusable",n="k-state-selected",o="k-edit-item",p="string",q="edit",r="remove",s="save",t="click",u=a.proxy,v=c.ui.progress,w=c.data.DataSource,x=g.extend({init:function(b,d){var e=this;d=a.isArray(d)?{dataSource:d}:d,g.fn.init.call(e,b,d),d=e.options,e.wrapper=e.element,e._element(),e._dataSource(),e.template=c.template(d.template||""),e.altTemplate=c.template(d.altTemplate||d.template),e.editTemplate=c.template(d.editTemplate||""),e._navigatable(),e._selectable(),e._pageable(),e._crudHandlers(),e.options.autoBind&&e.dataSource.fetch(),c.notify(e)},events:[d,f,e,q,r,s],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,template:"",altTemplate:"",editTemplate:""},items:function(){return this.element.find(i)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this.options.autoBind&&a.fetch()},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(d,a._refreshHandler).unbind(j,a._requestStartHandler).unbind(k,a._errorHandler):(a._refreshHandler=u(a.refresh,a),a._requestStartHandler=u(a._requestStart,a),a._errorHandler=u(a._error,a)),a.dataSource=w.create(a.options.dataSource).bind(d,a._refreshHandler).bind(j,a._requestStartHandler).bind(k,a._errorHandler)},_requestStart:function(){v(this.element,!0)},_error:function(){v(this.element,!1)},_element:function(){this.element.addClass("k-widget k-listview")},refresh:function(b){var d=this,g=d.dataSource.view(),h,i,j,k="",l,m,n=d.template,o=d.altTemplate;if(b&&b.action==="itemchange")d.editable||(h=b.items[0],l=g.indexOf(h),l>=0&&(j=a(n(h)),d.items().eq(l).replaceWith(j),d.trigger("itemChange",{item:j,data:h})));else{d.trigger(f),d._destroyEditable();for(l=0,m=g.length;l<m;l++)l%2?k+=o(g[l]):k+=n(g[l]);d.element.html(k),i=d.items();for(l=0,m=g.length;l<m;l++)i.eq(l).attr(c.attr("uid"),g[l].uid);d.trigger(e)}},_pageable:function(){var b=this,c=b.options.pageable,d,e;a.isPlainObject(c)&&(e=c.pagerId,d=a.extend({},c,{dataSource:b.dataSource,pagerId:null}),a("#"+e).kendoPager(d))},_selectable:function(){var a=this,b,e,f=a.options.selectable,g=a.options.navigatable;f&&(b=typeof f===p&&f.toLowerCase().indexOf("multiple")>-1,a.selectable=new c.ui.Selectable(a.element,{multiple:b,filter:i,change:function(){a.trigger(d)}}),g&&a.element.keydown(function(c){c.keyCode===h.SPACEBAR&&(e=a.current(),c.preventDefault(),b?c.ctrlKey?e.hasClass(n)&&(e.removeClass(n),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},current:function(a){var c=this,d=c._current;a!==b&&a.length&&(!d||d[0]!==a[0])&&(a.addClass(l),d&&d.removeClass(l),c._current=a);return c._current},_navigatable:function(){var b=this,c=b.options.navigatable,d=b.element,e=u(b.current,b),f=function(b){e(a(b.currentTarget)),a(b.target).is(":button,a,:input,a>.k-icon,textarea")||d.focus()};c&&(d.attr("tabIndex",Math.max(d.attr("tabIndex")||0,0)),d.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(l):e(d.find(i).first())},focusout:function(){b._current&&b._current.removeClass(l)},keydown:function(a){var c=a.keyCode,e=b.current();h.UP===c?b.current(e?e.prev():d.find(i).first()):h.DOWN===c?b.current(e?e.next():d.find(i).first()):h.PAGEUP==c?(b._current=null,b.dataSource.page(b.dataSource.page()-1)):h.PAGEDOWN==c&&(b._current=null,b.dataSource.page(b.dataSource.page()+1))}}),d.addClass(m).delegate("."+m+i,"mousedown",f))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(d)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},_destroyEditable:function(){var a=this;a.editable&&(a.editable.destroy(),delete a.editable)},_modelFromElement:function(a){var b=a.attr(c.attr("uid"));return this.dataSource.getByUid(b)},_closeEditable:function(b){var d=this,e=d.editable,f,g,h=!0;e&&(b&&(h=e.end()),h&&(f=d._modelFromElement(e.element),g=a(d.template(f)).attr(c.attr("uid"),f.uid),d._destroyEditable(),e.element.replaceWith(g)));return h},edit:function(b){var d=this,e=d._modelFromElement(b),f=a(d.editTemplate(e)).addClass(o);d.cancel(),f.attr(c.attr("uid"),e.uid),b.replaceWith(f),d.editable=f.kendoEditable({model:e,clearContainer:!1,errorTemplate:!1}).data("kendoEditable"),d.trigger(q,{model:e,item:f})},save:function(){var a=this,b=a.editable.element,c=a._modelFromElement(b);!a.trigger(s,{model:c,item:b})&&a._closeEditable(!0)&&a.dataSource.sync()},remove:function(a){var b=this,c=b.dataSource,d=b._modelFromElement(a);b.trigger(r,{model:d,item:a})||(a.hide(),c.remove(d),c.sync())},add:function(){var a=this,b=a.dataSource,c=b.indexOf((b.view()||[])[0]);c<0&&(c=0),a.cancel(),b.insert(c,{}),a.edit(a.element.children().first())},cancel:function(){var a=this,b=a.dataSource;a.editable&&(b.cancelChanges(a._modelFromElement(a.editable.element)),a._closeEditable(!1))},_crudHandlers:function(){var b=this;b.element.on(t,".k-edit-button",function(d){var e=a(this).closest("["+c.attr("uid")+"]");b.edit(e),d.preventDefault()}),b.element.on(t,".k-delete-button",function(d){var e=a(this).closest("["+c.attr("uid")+"]");b.remove(e),d.preventDefault()}),b.element.on(t,".k-update-button",function(a){b.save(),a.preventDefault()}),b.element.on(t,".k-cancel-button",function(a){b.cancel(),a.preventDefault()})}});c.ui.plugin(x)}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=c.ui.Widget,f=c.support.mobileOS,g=a.extend,h=c.deepExtend,i=c.keys,j=d.extend({init:function(a){var b=this;b.options=a},getHtml:function(){var a=this.options;return c.template(a.template)({cssClass:a.cssClass,tooltip:a.title,initialValue:a.initialValue})}}),k={select:function(a){a.trigger("select",{})},editorWrapperTemplate:'<table cellspacing="4" cellpadding="0" class="k-widget k-editor k-header"><tbody><tr><td class="k-editor-toolbar-wrap"><ul class="k-editor-toolbar"></ul></td></tr><tr><td class="k-editable-area"></td></tr></tbody></table>',buttonTemplate:'<li class="k-editor-button"><a href="" class="k-tool-icon #= cssClass #" unselectable="on" title="#= tooltip #">#= tooltip #</a></li>',colorPickerTemplate:'<li class="k-editor-colorpicker"><div class="k-widget k-colorpicker k-header #= cssClass #"><span class="k-tool-icon"><span class="k-selected-color"></span></span><span class="k-icon k-i-arrow-s"></span></div></li>',comboBoxTemplate:'<li class="k-editor-combobox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',dropDownListTemplate:'<li class="k-editor-selectbox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',focusable:".k-colorpicker,a.k-tool-icon:not(.k-state-disabled),.k-selectbox, .k-combobox .k-input",wrapTextarea:function(b){var c=b.width(),d=b.height(),e=k.editorWrapperTemplate,f=a(e).insertBefore(b).width(c).height(d),g=f.find(".k-editable-area");b.appendTo(g).addClass("k-content k-raw-content").hide();return b.closest(".k-editor")},renderTools:function(b,d){var e={},f,h,i,j=b._nativeTools,l,m,n=a(b.element).closest(".k-editor").find(".k-editor-toolbar");if(d)for(i=0;i<d.length;i++){f=d[i],a.isPlainObject(f)?f.name&&b.tools[f.name]?(a.extend(b.tools[f.name].options,f),e[f.name]=b.tools[f.name],m=e[f.name].options):(m=g({cssClass:"k-i-custom",type:"button",tooltip:""},f),m.name&&(m.cssClass="k-"+(m.name=="custom"?"i-custom":m.name)),m.template||m.type=="button"&&(m.template=k.buttonTemplate)):b.tools[f]&&(e[f]=b.tools[f],m=e[f].options);if(!m)continue;l=m.template,l&&(l.getHtml?l=l.getHtml():(a.isFunction(l)||(l=c.template(l)),l=l(m)),l.indexOf("<li")!==0&&(l="<li class='k-editor-template'>"+l+"</li>"),h=a(l).appendTo(n),m.type=="button"&&m.exec&&h.find(".k-tool-icon").click(a.proxy(m.exec,b.element[0])))}for(i=0;i<j.length;i++)e[j[i]]||(e[j[i]]=b.tools[j[i]]);b.options.tools=e},decorateStyleToolItems:function(b){var d=b.data.closest(".k-editor").find(".k-style").data("kendoSelectBox");if(!!d){var e=d.dataSource.view();d.list.find(".k-item").each(function(d,f){var g=a(f),h=g.text(),i=c.ui.editor.Dom.inlineStyle(b.data.data("kendoEditor").document,"span",{className:e[d].value});g.html('<span unselectable="on" style="display:block;'+i+'">'+h+"</span>")})}},createContentElement:function(b,c){var d,e,f,g=b.closest(".k-rtl").length?"direction:rtl;":"";b.hide(),d=a("<iframe />",{src:'javascript:"<html></html>"',frameBorder:"0"}).css("display","").addClass("k-content").insertBefore(b)[0],e=d.contentWindow||d,c.length>0&&a(d).one("load",b,k.decorateStyleToolItems),f=e.document||d.contentDocument,f.designMode="On",f.open(),f.write("<!DOCTYPE html><html><head><meta charset='utf-8' /><style>html,body{padding:0;margin:0;font-family:Verdana,Geneva,sans-serif;background:#fff;}html{font-size:100%}body{font-size:.75em;line-height:1.5;padding-top:1px;margin-top:-1px;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+g+"}"+"h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}"+"p{margin:0 0 1em;padding:0 .2em}.k-marker{display:none;}.k-paste-container{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}"+"ul,ol{padding-left:2.5em}"+"a{color:#00a}"+"code{font-size:1.23em}"+"</style>"+a.map(c,function(a){return"<link rel='stylesheet' href='"+a+"'>"}).join("")+"</head><body></body></html>"),f.close();return e},initializeContentElement:function(b){var c=!0;b.window=k.createContentElement(a(b.textarea),b.options.stylesheets),b.document=b.window.contentDocument||b.window.document,b.body=b.document.body,a(b.document).bind({keydown:function(a){if(a.keyCode===i.F10)setTimeout(function(){var a="tabIndex",c=b.wrapper,d=c.attr(a);c.attr(a,d||0).focus().find("li:has("+m+")").first().focus(),!d&&d!==0&&c.removeAttr(a)},100),a.preventDefault();else{var d=b.keyboard.toolFromShortcut(b.options.tools,a);if(d){a.preventDefault(),/undo|redo/.test(d)||b.keyboard.endTyping(!0),b.exec(d);return!1}if(b.keyboard.isTypingKey(a)&&b.pendingFormats.hasPending())if(c)c=!1;else{var e=b.getRange();b.pendingFormats.apply(e),b.selectRange(e)}b.keyboard.clearTimeout(),b.keyboard.keydown(a)}},keyup:function(d){var e=[8,9,33,34,35,36,37,38,39,40,40,45,46];if(a.inArray(d.keyCode,e)>-1||d.keyCode==65&&d.ctrlKey&&!d.altKey&&!d.shiftKey)b.pendingFormats.clear(),l(b);if(b.keyboard.isTypingKey(d)){if(b.pendingFormats.hasPending()){var f=b.getRange();b.pendingFormats.apply(f),b.selectRange(f)}}else c=!0;b.keyboard.keyup(d)},mousedown:function(c){b.pendingFormats.clear();var d=a(c.target);!a.browser.gecko&&c.which==2&&d.is("a[href]")&&window.open(d.attr("href"),"_new")},mouseup:function(){l(b)}}),a(b.window).bind("blur",function(){var a=b.textarea.value,c=b.encodedValue();b.update(),c!=a&&b.trigger("change")}),a(b.body).bind("cut paste",function(a){b.clipboard["on"+a.type](a)})},formatByName:function(b,c){for(var d=0;d<c.length;d++)if(a.inArray(b,c[d].tags)>=0)return c[d]},registerTool:function(a,b){var c=s.fn._tools;c[a]=b,c[a].options&&c[a].options.template&&(c[a].options.template.options.cssClass="k-"+a)},registerFormat:function(a,b){c.ui.Editor.fn.options.formats[a]=b}},l=k.select,m=k.focusable,n=k.wrapTextarea,o=k.renderTools,p=k.initializeContentElement,q={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found."},r=!f||f.ios&&f.flatVersion>=500||!f.ios&&typeof document.documentElement.contentEditable!="undefined",s=e.extend({init:function(b,d){function t(a,b){if(!b.key)return a;var c=a+" (";b.ctrl&&(c+="Ctrl + "),b.shift&&(c+="Shift + "),b.alt&&(c+="Alt + "),c+=b.key+")";return c}function s(b){var c=a.grep(b.className.split(" "),function(a){return!/^k-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(a)});return c[0]?c[0].substring(c[0].lastIndexOf("-")+1):"custom"}if(!!r){var f=this,g,j,k=c.ui.editor;e.fn.init.call(f,b,d),f.tools=h({},c.ui.Editor.fn._tools),f.options=h({},f.options,d),b=a(b),b.closest("form").bind("submit",function(){f.update()});for(var l in f.tools)f.tools[l].name=l.toLowerCase();f.textarea=b.attr("autocomplete","off")[0],g=f.wrapper=n(b),o(f,f.options.tools),p(f),f.keyboard=new k.Keyboard([new k.TypingHandler(f),new k.SystemHandler(f)]),f.clipboard=new k.Clipboard(this),f.pendingFormats=new k.PendingFormats(this),f.undoRedoStack=new k.UndoRedoStack,d&&d.value?j=d.value:j=b.val().replace(/[\r\n\v\f\t ]+/ig," "),f.value(j);var u=".k-editor-toolbar > li > *, .k-editor-toolbar > li select",v=".k-editor-button .k-tool-icon",w=v+":not(.k-state-disabled)",x=v+".k-state-disabled";g.find(".k-combobox .k-input").keydown(function(b){var c=a(this).closest(".k-combobox").data("kendoComboBox"),d=b.keyCode;d==i.RIGHT||d==i.LEFT?c.close():d==i.DOWN&&(c.dropDown.isOpened()||(b.stopImmediatePropagation(),c.open()))}),g.delegate(w,"mouseenter",function(){a(this).addClass("k-state-hover")}).delegate(w,"mouseleave",function(){a(this).removeClass("k-state-hover")}).delegate(v,"mousedown",!1).delegate(m,"keydown",function(b){var c=a(this).closest("li"),d="li:has("+m+")",e,g=b.keyCode;if(g==i.RIGHT)e=c.nextAll(d).first().find(m);else if(g==i.LEFT)e=c.prevAll(d).last().find(m);else if(g==i.ESC)e=f;else if(g==i.TAB&&!b.ctrlKey&&!b.altKey)if(b.shiftKey){e=c.prevAll(d).last().find(m);if(e.length)b.preventDefault();else return}else b.preventDefault(),e=c.nextAll(d).first().find(m),e.length||(e=f);e&&e.focus()}).delegate(w,"click",function(a){a.preventDefault(),a.stopPropagation(),f.exec(s(this))}).delegate(x,"click",function(a){a.preventDefault()}).find(u).each(function(){var b=s(this),c=f.options,d=c.tools[b],e=c.messages[b],g=a(this);if(!!d){if(b=="fontSize"||b=="fontName"){var h=c.messages[b+"Inherit"]||q[b+"Inherit"];g.find("input").val(h).end().find("span.k-input").text(h).end()}d.initialize(g,{title:t(e,d),editor:f})}}),f.bind("select",function(){var b=f.getRange(),c=k.RangeUtils.textNodes(b);c.length||(c=[b.startContainer]),g.find(u).each(function(){var b=f.options.tools[s(this)];b&&b.update(a(this),c,f.pendingFormats)})}),a(document).bind("DOMNodeInserted",function(b){var c=f.wrapper;if(a.contains(b.target,c[0])||c[0]==b.target)f.textarea.value=f.value(),c.find("iframe").remove(),p(f)}).bind("mousedown",function(a){try{f.keyboard.isTypingInProgress()&&f.keyboard.endTyping(!0),f.selectionRestorePoint||(f.selectionRestorePoint=new k.RestorePoint(f.getRange()))}catch(a){}}),c.notify(f)}},events:["select","change","execute","error","paste"],options:{name:"Editor",messages:q,formats:{},encoded:!0,stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},fontName:[{text:"Arial",value:"Arial,Helvetica,sans-serif"},{text:"Courier New",value:"'Courier New',Courier,monospace"},{text:"Georgia",value:"Georgia,serif"},{text:"Impact",value:"Impact,Charcoal,sans-serif"},{text:"Lucida Console",value:"'Lucida Console',Monaco,monospace"},{text:"Tahoma",value:"Tahoma,Geneva,sans-serif"},{text:"Times New Roman",value:"'Times New Roman',Times,serif"},{text:"Trebuchet MS",value:"'Trebuchet MS',Helvetica,sans-serif"},{text:"Verdana",value:"Verdana,Geneva,sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:["bold","italic","underline","strikethrough","fontName","fontSize","foreColor","backColor","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","formatBlock","createLink","unlink","insertImage"]},_nativeTools:["insertLineBreak","insertParagraph","redo","undo","insertHtml"],_tools:{undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},tools:{},value:function(d){var e=this.body,f=c.ui.editor.Dom;if(d===b)return c.ui.editor.Serializer.domToXhtml(e);this.pendingFormats.clear(),d=(d||"").replace(/<!\[CDATA\[(.*)?\]\]>/g,"<!--[CDATA[$1]]-->").replace(/<script([^>]*)>(.*)?<\/script>/ig,"<telerik:script $1>$2</telerik:script>").replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/ig,"$1"),a.browser.msie||(d=d.replace(/<p([^>]*)>(\s*)?<\/p>/ig,'<p $1><br _moz_dirty="" /></p>'));if(a.browser.msie&&parseInt(a.browser.version,10)<9){d="<br/>"+d;var g="originalsrc",h="originalhref";d=d.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,h+'="$1"'),d=d.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,g+'="$1"'),e.innerHTML=d,f.remove(e.firstChild),a(e).find("telerik\\:script,script,link,img,a").each(function(){var a=this;a[h]&&(a.setAttribute("href",a[h]),a.removeAttribute(h)),a[g]&&(a.setAttribute("src",a[g]),a.removeAttribute(g))})}else e.innerHTML=d,a.browser.msie&&f.normalize(e);this.selectionRestorePoint=null,this.update()},focus:function(){this.window.focus()},update:function(a){this.textarea.value=a||this.options.encoded?this.encodedValue():this.value()},encodedValue:function(){return c.ui.editor.Dom.encode(this.value())},createRange:function(a){return c.ui.editor.RangeUtils.createRange(a||this.document)},getSelection:function(){return c.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(a){this.focus();var b=this.getSelection();b.removeAllRanges(),b.addRange(a)},getRange:function(){var a=this.getSelection(),b=a.rangeCount>0?a.getRangeAt(0):this.createRange(),c=this.document;b.startContainer==c&&b.endContainer==c&&!b.startOffset&&!b.endOffset&&(b.setStart(this.body,0),b.collapse(!0));return b},selectedHtml:function(){return c.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(a){this.clipboard.paste(a)},exec:function(b,c){var d=this,e,f,h,i="",j;b=b.toLowerCase(),d.keyboard.isTypingInProgress()||(d.focus(),e=d.getRange(),f=d.document.body);for(h in d.options.tools)if(h.toLowerCase()==b){i=d.options.tools[h];break}if(i){e=d.getRange();if(!/undo|redo/i.test(b)&&i.willDelayExecution(e)){j=a.extend({},i),a.extend(j.options,{params:c}),d.pendingFormats.toggle(j),l(d);return}var k=i.command?i.command(g({range:e},c)):null;d.trigger("execute",{name:b,command:k});if(/undo|redo/i.test(b))d.undoRedoStack[b]();else if(k){k.managesUndoRedo||d.undoRedoStack.push(k),k.editor=d,k.exec();if(k.async){k.change=a.proxy(function(){l(d)},d);return}}l(d)}}});c.ui.plugin(s);var t=d.extend({init:function(a){this.options=a},initialize:function(a,b){a.attr({unselectable:"on",title:b.title})},command:function(a){return new this.options.command(a)},update:function(){},willDelayExecution:function(){return!1}});t.exec=function(a,b,c){a.exec(b,{value:c})};var u=t.extend({init:function(a){t.fn.init.call(this,a)},command:function(a){var b=this;return new c.ui.editor.FormatCommand(g(a,{formatter:b.options.formatter}))},update:function(a,b,c){var d=c.isPending(this.name),e=this.options.finder.isFormatted(b),f=d?!e:e;a.toggleClass("k-state-active",f)}});g(c.ui,{editor:{ToolTemplate:j,EditorUtils:k,Tool:t,FormatTool:u}})}(jQuery),function(a){function k(a){var b={},c,d;for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var b=window.kendo,c=a.map,d=a.extend,e="style",f="float",g="cssFloat",h="styleFloat",i="class",j="k-marker",l=k("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),m="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(","),n=k(m),o="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var".split(","),p=k(o),q=k("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),r=function(a){a.nodeType==1&&a.normalize()};a.browser.msie&&parseInt(a.browser.version,10)>=8&&(r=function(a){if(a.nodeType==1&&a.firstChild){var b=a.firstChild,c=b;for(;;){c=c.nextSibling;if(!c)break;c.nodeType==3&&b.nodeType==3&&(c.nodeValue=b.nodeValue+c.nodeValue,A.remove(b)),b=c}}});var s=/^\s+$/,t=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,u=/&/g,v=/</g,w=/>/g,x=/\u00a0/g,y=/\ufeff/g,z="color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height".split(","),A={findNodeIndex:function(a){var b=0;for(;;){a=a.previousSibling;if(!a)break;b++}return b},isDataNode:function(a){return a&&a.nodeValue!==null&&a.data!==null},isAncestorOf:function(b,c){try{return!A.isDataNode(b)&&(a.contains(b,A.isDataNode(c)?c.parentNode:c)||c.parentNode==b)}catch(d){return!1}},isAncestorOrSelf:function(a,b){return A.isAncestorOf(a,b)||a==b},findClosestAncestor:function(a,b){if(A.isAncestorOf(a,b))while(b&&b.parentNode!=a)b=b.parentNode;return b},getNodeLength:function(a){return A.isDataNode(a)?a.length:a.childNodes.length},splitDataNode:function(a,b){var c=a.cloneNode(!1);a.deleteData(b,a.length),c.deleteData(0,b),A.insertAfter(c,a)},attrEquals:function(b,c){for(var d in c){var e=b[d];d==f&&(e=b[a.support.cssFloat?g:h]);if(typeof e=="object"){if(!A.attrEquals(e,c[d]))return!1}else if(e!=c[d])return!1}return!0},blockParentOrBody:function(a){return A.parentOfType(a,m)||a.ownerDocument.body},blockParents:function(b){var c=[],d,e;for(d=0,e=b.length;d<e;d++){var f=A.parentOfType(b[d],A.blockElements);f&&a.inArray(f,c)<0&&c.push(f)}return c},windowFromDocument:function(a){return a.defaultView||a.parentWindow},normalize:r,blockElements:m,inlineElements:o,empty:l,fillAttrs:q,toHex:function(a){var b=t.exec(a);if(!b)return a;return"#"+c(b.slice(1),function(a){a=parseInt(a,10).toString(16);return a.length>1?a:"0"+a}).join("")},encode:function(a){return a.replace(u,"&").replace(v,"<").replace(w,">").replace(x," ")},name:function(a){return a.nodeName.toLowerCase()},significantChildNodes:function(b){return a.grep(b.childNodes,function(a){return a.nodeType!=3||!A.isWhitespace(a)})},lastTextNode:function(a){var b=null;if(a.nodeType==3)return a;for(var c=a.lastChild;c;c=c.previousSibling){b=A.lastTextNode(c);if(b)return b}return b},is:function(a,b){return A.name(a)==b},isMarker:function(a){return a.className==j},isWhitespace:function(a){return s.test(a.nodeValue)},isBlock:function(a){return n[A.name(a)]},isEmpty:function(a){return l[A.name(a)]},isInline:function(a){return p[A.name(a)]},scrollTo:function(b){b.ownerDocument.body.scrollTop=a(A.isDataNode(b)?b.parentNode:b).offset().top},insertAt:function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},insertBefore:function(a,b){return b.parentNode?b.parentNode.insertBefore(a,b):b},insertAfter:function(a,b){return b.parentNode.insertBefore(a,b.nextSibling)},remove:function(a){a.parentNode.removeChild(a)},trim:function(a){for(var b=a.childNodes.length-1;b>=0;b--){var c=a.childNodes[b];A.isDataNode(c)?(c.nodeValue.replace(y,"").length||A.remove(c),A.isWhitespace(c)&&A.insertBefore(c,a)):c.className!=j&&(A.trim(c),!c.childNodes.length&&!A.isEmpty(c)&&A.remove(c))}return a},parentOfType:function(a,b){do a=a.parentNode;while(a&&!A.ofType(a,b));return a},ofType:function(b,c){return a.inArray(A.name(b),c)>=0},changeTag:function(a,b){var c=A.create(a.ownerDocument,b),d=a.attributes,f,g,h,j,k;for(f=0,g=d.length;f<g;f++)k=d[f],k.specified&&(h=k.nodeName,j=k.nodeValue,h==i?c.className=j:h==e?c.style.cssText=a.style.cssText:c.setAttribute(h,j));while(a.firstChild)c.appendChild(a.firstChild);A.insertBefore(c,a),A.remove(a);return c},wrap:function(a,b){A.insertBefore(b,a),b.appendChild(a);return b},unwrap:function(a){var b=a.parentNode;while(a.firstChild)b.insertBefore(a.firstChild,a);b.removeChild(a)},create:function(a,b,c){return A.attr(a.createElement(b),c)},attr:function(a,b){b=d({},b),b&&e in b&&(A.style(a,b.style),delete b.style);return d(a,b)},style:function(b,c){a(b).css(c||{})},unstyle:function(b,c){for(var d in c)d==f&&(d=a.support.cssFloat?g:h),b.style[d]="";b.style.cssText===""&&b.removeAttribute(e)},inlineStyle:function(b,d,e){var f=a(A.create(b,d,e)),g;b.body.appendChild(f[0]),g=c(z,function(b){return a.browser.msie&&b=="line-height"&&f.css(b)=="1px"?"line-height:1.5":b+":"+f.css(b)}).join(";"),f.remove();return g},removeClass:function(b,c){var d=" "+b.className+" ",e=c.split(" "),f,g;for(f=0,g=e.length;f<g;f++)d=d.replace(" "+e[f]+" "," ");d=a.trim(d),d.length?b.className=d:b.removeAttribute(i)},commonAncestor:function(){var a=arguments.length,b=[],c=Infinity,d=null,e,f,g,h,i;if(!a)return null;if(a==1)return arguments[0];for(e=0;e<a;e++){f=[],g=arguments[e];while(g)f.push(g),g=g.parentNode;b.push(f.reverse()),c=Math.min(c,f.length)}if(a==1)return b[0][0];for(e=0;e<c;e++){h=b[0][e];for(i=1;i<a;i++)if(h!=b[i][e])return d;d=h}return d}};b.ui.editor.Dom=A}(jQuery),function(a,b){var c=window.kendo,d=c.ui.editor,e=d.Dom,f=a.extend,g="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),h=/"/g,i=/<br[^>]*>/i,j=/<p><\/p>/i,k={domToXhtml:function(c){function m(b,c){var g=b.nodeType,h,i,j,m,n;if(g==1){h=e.name(b);if(!h||b.attributes._moz_dirty&&e.is(b,"br"))return;i=f[h];if(i){i.start(b),l(b),i.end(b);return}d.push("<"),d.push(h),k(b),e.empty[h]?d.push(" />"):(d.push(">"),l(b,c||e.is(b,"pre")),d.push("</"),d.push(h),d.push(">"))}else if(g==3){m=b.nodeValue;if(!c&&a.support.leadingWhitespace){j=b.parentNode,n=b.previousSibling,n||(n=(e.isInline(j)?j:b).previousSibling);if(!n||n.innerHTML===""||e.isBlock(n))m=m.replace(/^[\r\n\v\f\t ]+/,"");m=m.replace(/ +/," ")}d.push(e.encode(m))}else g==4?(d.push("<![CDATA["),d.push(b.data),d.push("]]>")):g==8&&(b.data.indexOf("[CDATA[")<0?(d.push("<!--"),d.push(b.data),d.push("-->")):(d.push("<!"),d.push(b.data),d.push(">")))}function l(a,b){for(var c=a.firstChild;c;c=c.nextSibling)m(c,b)}function k(c){var f=[],g=c.attributes,i,j,k,l=a.trim;if(e.is(c,"img")){var m=c.style.width,n=c.style.height,o=a(c);m&&(o.attr("width",parseInt(m,10)),e.unstyle(c,{width:b})),n&&(o.attr("height",parseInt(n,10)),e.unstyle(c,{height:b}))}for(j=0,k=g.length;j<k;j++){i=g[j];var p=i.nodeName;(i.specified||p=="value"&&!c.value||p=="type"&&i.nodeValue=="text")&&p.indexOf("_moz")<0&&p!="complete"&&p!="altHtml"&&f.push(i)}if(!!f.length){f.sort(function(a,b){return a.nodeName>b.nodeName?1:a.nodeName<b.nodeName?-1:0});for(j=0,k=f.length;j<k;j++){i=f[j];var q=i.nodeName,r=i.nodeValue;d.push(" "),d.push(q),d.push('="');if(q=="style"){var s=l(r||c.style.cssText).split(";");for(var t=0,u=s.length;t<u;t++){var v=s[t];if(v.length){var w=v.split(":"),x=l(w[0].toLowerCase()),y=l(w[1]);if(x=="font-size-adjust"||x=="font-stretch")continue;x.indexOf("color")>=0&&(y=e.toHex(y)),x.indexOf("font")>=0&&(y=y.replace(h,"'")),d.push(x),d.push(":"),d.push(y),d.push(";")}}}else q=="src"||q=="href"?d.push(c.getAttribute(q,2)):d.push(e.fillAttrs[q]?q:r);d.push('"')}}}var d=[],f={"telerik:script":{start:function(a){d.push("<script"),k(a),d.push(">")},end:function(){d.push("</script>")}},b:{start:function(){d.push("<strong>")},end:function(){d.push("</strong>")}},i:{start:function(){d.push("<em>")},end:function(){d.push("</em>")}},u:{start:function(){d.push('<span style="text-decoration:underline;">')},end:function(){d.push("</span>")}},iframe:{start:function(a){d.push("<iframe"),k(a),d.push(">")},end:function(){d.push("</iframe>")}},font:{start:function(a){d.push('<span style="');var b=a.getAttribute("color"),c=g[a.getAttribute("size")],f=a.getAttribute("face");b&&(d.push("color:"),d.push(e.toHex(b)),d.push(";")),f&&(d.push("font-face:"),d.push(f),d.push(";")),c&&(d.push("font-size:"),d.push(c),d.push(";")),d.push('">')},end:function(a){d.push("</span>")}}};l(c),d=d.join("");if(d.replace(i,"").replace(j,"")==="")return"";return d}};f(d,{Serializer:k})}(jQuery),function(a){function t(a,b,c){var d=f.create(b.ownerDocument,"a"),e=a.duplicate();e.collapse(c);var g=e.parentElement();do g.insertBefore(d,d.previousSibling),e.moveToElementText(d);while(e.compareEndPoints(c?"StartToStart":"StartToEnd",a)>0&&d.previousSibling);e.setEndPoint(c?"EndToStart":"EndToEnd",a);var i=d.nextSibling;i?(f.remove(d),h(i)?b[c?"setStart":"setEnd"](i,e.text.length):b[c?"setStartBefore":"setEndBefore"](i)):(i=d.previousSibling,i&&h(i)?(b.setEnd(i,i.nodeValue.length),f.remove(d)):(b.selectNodeContents(g),f.remove(d),b.endOffset-=1))}function s(a,b,c){var d=b[c?"startContainer":"endContainer"],e=b[c?"startOffset":"endOffset"],g=0,i=h(d)?d:d.childNodes[e]||null,j=h(d)?d.parentNode:d;if(d.nodeType==3||d.nodeType==4)g=e;var k=j.insertBefore(f.create(b.ownerDocument,"a"),i),l=b.ownerDocument.body.createTextRange();l.moveToElementText(k),f.remove(k),l[c?"moveStart":"moveEnd"]("character",g),l.collapse(!1),a.setEndPoint(c?"StartToStart":"EndToStart",l)}function p(a){a.collapsed=a.startContainer==a.endContainer&&a.startOffset==a.endOffset;var b=a.startContainer;while(b&&b!=a.endContainer&&!f.isAncestorOf(b,a.endContainer))b=b.parentNode;a.commonAncestorContainer=b}function o(a,b){function c(a){try{return n(a.startContainer,a.endContainer,a.startOffset,a.endOffset)<0}catch(b){return!0}}c(a)&&(b?(a.commonAncestorContainer=a.endContainer=a.startContainer,a.endOffset=a.startOffset):(a.commonAncestorContainer=a.startContainer=a.endContainer,a.startOffset=a.endOffset),a.collapsed=!0)}function n(a,b,c,d){if(a==b)return d-c;var e=b;while(e&&e.parentNode!=a)e=e.parentNode;if(e)return g(e)-c;e=a;while(e&&e.parentNode!=b)e=e.parentNode;if(e)return d-g(e)-1;var h=f.commonAncestor(a,b),i=a;while(i&&i.parentNode!=h)i=i.parentNode;i||(i=h);var j=b;while(j&&j.parentNode!=h)j=j.parentNode;j||(j=h);if(i==j)return 0;return g(j)-g(i)}var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=f.findNodeIndex,h=f.isDataNode,i=f.findClosestAncestor,j=f.getNodeLength,k=f.normalize,l={selectionFromWindow:function(b){if(a.browser.msie&&a.browser.version<9)return new r(b.document);return b.getSelection()},selectionFromRange:function(a){var b=y.documentFromRange(a);return l.selectionFromDocument(b)},selectionFromDocument:function(a){return l.selectionFromWindow(f.windowFromDocument(a))}},m=c.extend({init:function(b){a.extend(this,{ownerDocument:b,startContainer:b,endContainer:b,commonAncestorContainer:b,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(a,b){this.startContainer=a,this.startOffset=b,p(this),o(this,!0)},setEnd:function(a,b){this.endContainer=a,this.endOffset=b,p(this),o(this,!1)},setStartBefore:function(a){this.setStart(a.parentNode,g(a))},setStartAfter:function(a){this.setStart(a.parentNode,g(a)+1)},setEndBefore:function(a){this.setEnd(a.parentNode,g(a))},setEndAfter:function(a){this.setEnd(a.parentNode,g(a)+1)},selectNode:function(a){this.setStartBefore(a),this.setEndAfter(a)},selectNodeContents:function(a){this.setStart(a,0),this.setEnd(a,a[a.nodeType===1?"childNodes":"nodeValue"].length)},collapse:function(a){var b=this;a?b.setEnd(b.startContainer,b.startOffset):b.setStart(b.endContainer,b.endOffset)},deleteContents:function(){var a=this,b=a.cloneRange();a.startContainer!=a.commonAncestorContainer&&a.setStartAfter(i(a.commonAncestorContainer,a.startContainer)),a.collapse(!0),function c(a){while(a.next())a.hasPartialSubtree()?c(a.getSubtreeIterator()):a.remove()}(new q(b))},cloneContents:function(){var a=y.documentFromRange(this);return function b(c){var d,e=a.createDocumentFragment();while(d=c.next())d=d.cloneNode(!c.hasPartialSubtree()),c.hasPartialSubtree()&&d.appendChild(b(c.getSubtreeIterator())),e.appendChild(d);return e}(new q(this))},extractContents:function(){var a=this,b=a.cloneRange();a.startContainer!=a.commonAncestorContainer&&a.setStartAfter(i(a.commonAncestorContainer,a.startContainer)),a.collapse(!0);var c=y.documentFromRange(a);return function d(b){var e,f=c.createDocumentFragment();while(e=b.next())b.hasPartialSubtree()?(e=e.cloneNode(!1),e.appendChild(d(b.getSubtreeIterator()))):b.remove(a.originalRange),f.appendChild(e);return f}(new q(b))},insertNode:function(a){var b=this;h(b.startContainer)?(b.startOffset!=b.startContainer.nodeValue.length&&f.splitDataNode(b.startContainer,b.startOffset),f.insertAfter(a,b.startContainer)):f.insertAt(b.startContainer,a,b.startOffset),b.setStart(b.startContainer,b.startOffset)},cloneRange:function(){return a.extend(new m(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var a=this.startContainer.nodeName,b=this.endContainer.nodeName;return[a=="#text"?this.startContainer.nodeValue:a,"(",this.startOffset,") : ",b=="#text"?this.endContainer.nodeValue:b,"(",this.endOffset,")"].join("")}}),q=c.extend({init:function(b){a.extend(this,{range:b,_current:null,_next:null,_end:null});if(!b.collapsed){var c=b.commonAncestorContainer;this._next=b.startContainer==c&&!h(b.startContainer)?b.startContainer.childNodes[b.startOffset]:i(c,b.startContainer),this._end=b.endContainer==c&&!h(b.endContainer)?b.endContainer.childNodes[b.endOffset]:i(c,b.endContainer).nextSibling}},hasNext:function(){return!!this._next},next:function(){var a=this,b=a._current=a._next;a._next=a._current&&a._current.nextSibling!=a._end?a._current.nextSibling:null,h(a._current)&&(a.range.endContainer==a._current&&(b=b.cloneNode(!0),b.deleteData(a.range.endOffset,b.length-a.range.endOffset)),a.range.startContainer==a._current&&(b=b.cloneNode(!0),b.deleteData(0,a.range.startOffset)));return b},traverse:function(a){function d(){b._current=b._next,b._next=b._current&&b._current.nextSibling!=b._end?b._current.nextSibling:null;return b._current}var b=this,c;while(c=d())b.hasPartialSubtree()?b.getSubtreeIterator().traverse(a):a(c);return c},remove:function(a){var b=this,c=b.range.startContainer==b._current,d=b.range.endContainer==b._current,e,i,j;if(h(b._current)&&(c||d))e=c?b.range.startOffset:0,i=d?b.range.endOffset:b._current.length,j=i-e,a&&(c||d)&&(b._current==a.startContainer&&e<=a.startOffset&&(a.startOffset-=j),b._current==a.endContainer&&i<=a.endOffset&&(a.endOffset-=j)),b._current.deleteData(e,j);else{var k=b._current.parentNode;if(a&&(b.range.startContainer==k||b.range.endContainer==k)){var l=g(b._current);k==a.startContainer&&l<=a.startOffset&&(a.startOffset-=1),k==a.endContainer&&l<a.endOffset&&(a.endOffset-=1)}f.remove(b._current)}},hasPartialSubtree:function(){return!h(this._current)&&(f.isAncestorOrSelf(this._current,this.range.startContainer)||f.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){var a=this,b=a.range.cloneRange();b.selectNodeContents(a._current),f.isAncestorOrSelf(a._current,a.range.startContainer)&&b.setStart(a.range.startContainer,a.range.startOffset),f.isAncestorOrSelf(a._current,a.range.endContainer)&&b.setEnd(a.range.endContainer,a.range.endOffset);return new q(b)}}),r=c.extend({init:function(a){this.ownerDocument=a,this.rangeCount=1},addRange:function(a){var b=this.ownerDocument.body.createTextRange();s(b,a,!1),s(b,a,!0),b.select()},removeAllRanges:function(){this.ownerDocument.selection.empty()},getRangeAt:function(){var a,b=new m(this.ownerDocument),c=this.ownerDocument.selection,d;try{a=c.createRange(),d=a.item?a.item(0):a.parentElement();if(d.ownerDocument!=this.ownerDocument)return b}catch(e){return b}if(c.type=="Control")b.selectNode(a.item(0));else{t(a,b,!0),t(a,b,!1),b.startContainer.nodeType==9&&b.setStart(b.endContainer,b.startOffset),b.endContainer.nodeType==9&&b.setEnd(b.startContainer,b.endOffset),a.compareEndPoints("StartToEnd",a)===0&&b.collapse(!1);var f=b.startContainer,i=b.endContainer,k=this.ownerDocument.body;if(!b.collapsed&&b.startOffset===0&&b.endOffset==j(b.endContainer)&&(f!=i||!h(f)||f.parentNode!=k)){var l=!1,n=!1;while(g(f)===0&&f==f.parentNode.firstChild&&f!=k)f=f.parentNode,l=!0;while(g(i)==j(i.parentNode)-1&&i==i.parentNode.lastChild&&i!=k)i=i.parentNode,n=!0;f==k&&i==k&&l&&n&&(b.setStart(f,0),b.setEnd(i,j(k)))}}return b}}),u=c.extend({init:function(a){this.enumerate=function(){function c(a){if(f.is(a,"img")||a.nodeType==3&&!f.isWhitespace(a))b.push(a);else{a=a.firstChild;while(a)c(a),a=a.nextSibling}}var b=[];(new q(a)).traverse(c);return b}}}),v=c.extend({init:function(a){var b=this;b.range=a,b.rootNode=y.documentFromRange(a),b.body=b.rootNode.body,b.html=b.body.innerHTML,b.startContainer=b.nodeToPath(a.startContainer),b.endContainer=b.nodeToPath(a.endContainer),b.startOffset=b.offset(a.startContainer,a.startOffset),b.endOffset=b.offset(a.endContainer,a.endOffset)},index:function(a){var b=0,c=a.nodeType;while(a=a.previousSibling){var d=a.nodeType;(d!=3||c!=d)&&b++,c=d}return b},offset:function(a,b){if(a.nodeType==3)while((a=a.previousSibling)&&a.nodeType==3)b+=a.nodeValue.length;return b},nodeToPath:function(a){var b=[];while(a!=this.rootNode)b.push(this.index(a)),a=a.parentNode;return b},toRangePoint:function(a,b,c,d){var e=this.rootNode,f=c.length,g=d;while(f--)e=e.childNodes[c[f]];while(e.nodeType==3&&e.nodeValue.length<g)g-=e.nodeValue.length,e=e.nextSibling;a[b?"setStart":"setEnd"](e,g)},toRange:function(){var a=this,b=a.range.cloneRange();a.toRangePoint(b,!0,a.startContainer,a.startOffset),a.toRangePoint(b,!1,a.endContainer,a.endOffset);return b}}),w=c.extend({init:function(){this.caret=null},addCaret:function(a){var b=this;b.caret=f.create(y.documentFromRange(a),"span",{className:"k-marker"}),a.insertNode(b.caret),a.selectNode(b.caret);return b.caret},removeCaret:function(b){var c=this,d=c.caret.previousSibling,e=0;d&&(e=h(d)?d.nodeValue.length:g(d));var i=c.caret.parentNode,j=d?g(d):0;f.remove(c.caret),k(i);var l=i.childNodes[j];if(h(l))b.setStart(l,e);else if(l){var m=f.lastTextNode(l);m?b.setStart(m,m.nodeValue.length):b[d?"setStartAfter":"setStartBefore"](l)}else!a.browser.msie&&!i.innerHTML&&(i.innerHTML='<br _moz_dirty="" />'),b.selectNodeContents(i);b.collapse(!0)},add:function(a,b){var c=this;b&&a.collapsed&&(c.addCaret(a),a=y.expand(a));var d=a.cloneRange();d.collapse(!1),c.end=f.create(y.documentFromRange(a),"span",{className:"k-marker"}),d.insertNode(c.end),d=a.cloneRange(),d.collapse(!0),c.start=c.end.cloneNode(!0),d.insertNode(c.start),a.setStartBefore(c.start),a.setEndAfter(c.end),k(a.commonAncestorContainer);return a},remove:function(a){var b=this,c=b.start,d=b.end,e,i,j;k(a.commonAncestorContainer);while(!c.nextSibling&&c.parentNode)c=c.parentNode;while(!d.previousSibling&&d.parentNode)d=d.parentNode;e=c.previousSibling&&c.previousSibling.nodeType==3&&c.nextSibling&&c.nextSibling.nodeType==3,i=d.previousSibling&&d.previousSibling.nodeType==3&&d.nextSibling&&d.nextSibling.nodeType==3,j=e&&i,c=c.nextSibling,d=d.previousSibling;var l=!1,m=!1;c==b.end&&(m=!!b.start.previousSibling,c=d=b.start.previousSibling||b.end.nextSibling,l=!0),f.remove(b.start),f.remove(b.end);if(!c||!d)a.selectNodeContents(a.commonAncestorContainer),a.collapse(!0);else{var n=l?h(c)?c.nodeValue.length:c.childNodes.length:0,o=h(d)?d.nodeValue.length:d.childNodes.length;if(c.nodeType==3)while(c.previousSibling&&c.previousSibling.nodeType==3)c=c.previousSibling,n+=c.nodeValue.length;if(d.nodeType==3)while(d.previousSibling&&d.previousSibling.nodeType==3)d=d.previousSibling,o+=d.nodeValue.length;var p=g(c),q=c.parentNode,r=g(d),s=d.parentNode;for(var t=c;t.previousSibling;t=t.previousSibling)t.nodeType==3&&t.previousSibling.nodeType==3&&p--;for(var u=d;u.previousSibling;u=u.previousSibling)u.nodeType==3&&u.previousSibling.nodeType==3&&r--;k(q),c.nodeType==3&&(c=q.childNodes[p]),k(s),d.nodeType==3&&(d=s.childNodes[r]),l?(c.nodeType==3?a.setStart(c,n):a[m?"setStartAfter":"setStartBefore"](c),a.collapse(!0)):(c.nodeType==3?a.setStart(c,n):a.setStartBefore(c),d.nodeType==3?a.setEnd(d,o):a.setEndAfter(d)),b.caret&&b.removeCaret(a)}}}),x=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,y={nodes:function(a){var b=y.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=y.textNodes(a),b.length||(b=f.significantChildNodes(a.commonAncestorContainer)));return b},textNodes:function(a){return(new u(a)).enumerate()},documentFromRange:function(a){var b=a.startContainer;return b.nodeType==9?b:b.ownerDocument},createRange:function(b){if(a.browser.msie&&a.browser.version<9)return new m(b);return b.createRange()},selectRange:function(a){var b=y.image(a);b&&(a.setStartAfter(b),a.setEndAfter(b));var c=l.selectionFromRange(a);c.removeAllRanges(),c.addRange(a)},split:function(a,b,c){function d(d){var e=a.cloneRange();e.collapse(d),e[d?"setStartBefore":"setEndAfter"](b);var g=e.extractContents();c&&(g=f.trim(g)),f[d?"insertBefore":"insertAfter"](g,b)}d(!0),d(!1)},getMarkers:function(a){var b=[];(new q(a)).traverse(function(a){a.className=="k-marker"&&b.push(a)});return b},image:function(a){var b=[];(new q(a)).traverse(function(a){f.is(a,"img")&&b.push(a)});if(b.length==1)return b[0]},expand:function(a){var b=a.cloneRange(),c=b.startContainer.childNodes[b.startOffset===0?0:b.startOffset-1],d=b.endContainer.childNodes[b.endOffset];if(!h(c)||!h(d))return b;var e=c.nodeValue,f=d.nodeValue;if(!e||!f)return b;var g=e.split("").reverse().join("").search(x),i=f.search(x);if(!g||!i)return b;i=i==-1?f.length:i,g=g==-1?0:e.length-g,b.setStart(c,g),b.setEnd(d,i);return b},isExpandable:function(a){var b=a.startContainer,c=y.documentFromRange(a);if(b==c||b==c.body)return!1;var d=a.cloneRange(),e=b.nodeValue;if(!e)return!1;var f=e.substring(0,d.startOffset),g=e.substring(d.startOffset),h=0,i=0;f&&(h=f.split("").reverse().join("").search(x)),g&&(i=g.search(x));return h&&i}};d(e,{SelectionUtils:l,W3CRange:m,RangeIterator:q,W3CSelection:r,RangeEnumerator:u,RestorePoint:v,Marker:w,RangeUtils:y})}(jQuery),function(a){var b=window.kendo,c=b.Class,d=b.ui.editor,e=d.EditorUtils,f=e.registerTool,g=d.Dom,h=d.RangeUtils,i=h.selectRange,j=d.Tool,k=d.ToolTemplate,l=d.RestorePoint,m=d.Marker,n=a.extend,o=c.extend({init:function(a){var b=this;b.options=a,b.restorePoint=new l(a.range),b.marker=new m,b.formatter=a.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(a){return this.marker.add(this.getRange(),a)},releaseRange:function(a){this.marker.remove(a),i(a)},undo:function(){var a=this.restorePoint;a.body.innerHTML=a.html,i(a.toRange())},redo:function(){this.exec()},exec:function(){var a=this,b=a.lockRange(!0);a.formatter.editor=a.editor,a.formatter.toggle(b),a.releaseRange(b)}}),p=c.extend({init:function(a,b){this.body=a.body,this.startRestorePoint=a,this.endRestorePoint=b},redo:function(){this.body.innerHTML=this.endRestorePoint.html,i(this.endRestorePoint.toRange())},undo:function(){this.body.innerHTML=this.startRestorePoint.html,i(this.startRestorePoint.toRange())}}),q=o.extend({init:function(a){o.fn.init.call(this,a),this.managesUndoRedo=!0},exec:function(){var a=this.editor,b=a.getRange(),c=new l(b);a.clipboard.paste(this.options.value||""),a.undoRedoStack.push(new p(c,new l(a.getRange()))),a.focus()}}),r=j.extend({initialize:function(a,b){var c=b.editor;new d.SelectBox(a,{dataSource:c.options.insertHtml||[],dataTextField:"text",dataValueField:"value",change:function(a){j.exec(c,"insertHtml",this.value())},title:c.options.messages.insertHtml,highlightFirst:!1})},command:function(a){return new q(a)},update:function(a,b){var c=a.data("kendoSelectBox")||a.find("select").data("kendoSelectBox");c.close(),c.value(c.options.title)}}),s=c.extend({init:function(){this.stack=[],this.currentCommandIndex=-1},push:function(a){var b=this;b.stack=b.stack.slice(0,b.currentCommandIndex+1),b.currentCommandIndex=b.stack.push(a)-1},undo:function(){this.canUndo()&&this.stack[this.currentCommandIndex--].undo()},redo:function(){this.canRedo()&&this.stack[++this.currentCommandIndex].redo()},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}}),t=c.extend({init:function(a){this.editor=a},keydown:function(a){var b=this,c=b.editor,d=c.keyboard,e=d.isTypingKey(a);if(e&&!d.isTypingInProgress()){var f=c.getRange();b.startRestorePoint=new l(f),d.startTyping(function(){c.selectionRestorePoint=b.endRestorePoint=new l(c.getRange()),c.undoRedoStack.push(new p(b.startRestorePoint,b.endRestorePoint))});return!0}return!1},keyup:function(a){var b=this.editor.keyboard;if(b.isTypingInProgress()){b.endTyping();return!0}return!1}}),u=c.extend({init:function(a){this.editor=a,this.systemCommandIsInProgress=!1},createUndoCommand:function(){var a=this;a.endRestorePoint=new l(a.editor.getRange()),a.editor.undoRedoStack.push(new p(a.startRestorePoint,a.endRestorePoint)),a.startRestorePoint=a.endRestorePoint},changed:function(){if(this.startRestorePoint)return this.startRestorePoint.html!=this.editor.body.innerHTML;return!1},keydown:function(a){var b=this,c=b.editor,d=c.keyboard;if(d.isModifierKey(a)){d.isTypingInProgress()&&d.endTyping(!0),b.startRestorePoint=new l(c.getRange());return!0}if(d.isSystem(a)){b.systemCommandIsInProgress=!0,b.changed()&&(b.systemCommandIsInProgress=!1,b.createUndoCommand());return!0}return!1},keyup:function(a){var b=this;if(b.systemCommandIsInProgress&&b.changed()){b.systemCommandIsInProgress=!1,b.createUndoCommand(a);return!0}return!1}}),v=c.extend({init:function(a){this.handlers=a,this.typingInProgress=!1},isCharacter:function(a){return a>=48&&a<=90||a>=96&&a<=111||a>=186&&a<=192||a>=219&&a<=222},toolFromShortcut:function(b,c){var d=String.fromCharCode(c.keyCode),e,f;for(e in b){f=a.extend({ctrl:!1,alt:!1,shift:!1},b[e].options);if((f.key==d||f.key==c.keyCode)&&f.ctrl==c.ctrlKey&&f.alt==c.altKey&&f.shift==c.shiftKey)return e}},isTypingKey:function(a){var b=a.keyCode;return this.isCharacter(b)&&!a.ctrlKey&&!a.altKey||b==32||b==13||b==8||b==46&&!a.shiftKey&&!a.ctrlKey&&!a.altKey},isModifierKey:function(a){var b=a.keyCode;return b==17&&!a.shiftKey&&!a.altKey||b==16&&!a.ctrlKey&&!a.altKey||b==18&&!a.ctrlKey&&!a.shiftKey},isSystem:function(a){return a.keyCode==46&&a.ctrlKey&&!a.altKey&&!a.shiftKey},startTyping:function(a){this.onEndTyping=a,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress=!1,this.onEndTyping&&this.onEndTyping()},endTyping:function(b){var c=this;c.clearTimeout(),b?c.stopTyping():c.timeout=window.setTimeout(a.proxy(c.stopTyping,c),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(a,b){var c,d=this.handlers;for(c=0;c<d.length;c++)if(d[c][b](a))break},keydown:function(a){this.notify(a,"keydown")},keyup:function(a){this.notify(a,"keyup")}}),w=c.extend({init:function(a){this.editor=a,this.cleaners=[new x]},htmlToFragment:function(a){var b=this.editor,c=b.document,d=g.create(c,"div"),e=c.createDocumentFragment();d.innerHTML=a;while(d.firstChild)e.appendChild(d.firstChild);return e},isBlock:function(a){return/<(div|p|ul|ol|table|h[1-6])/i.test(a)},oncut:function(a){var b=this.editor,c=new l(b.getRange());setTimeout(function(){b.undoRedoStack.push(new p(c,new l(b.getRange())))})},onpaste:function(b){var c=this.editor,e=c.getRange(),f="",h=new l(e),j=g.create(c.document,"div",{className:"k-paste-container",innerHTML:f});c.body.appendChild(j);if(c.body.createTextRange){b.preventDefault();var k=c.createRange();k.selectNodeContents(j),c.selectRange(k);var m=c.body.createTextRange();m.moveToElementText(j),a(c.body).unbind("paste"),m.execCommand("Paste"),a(c.body).bind("paste",a.proxy(arguments.callee,this))}else{var n=c.createRange();n.selectNodeContents(j),i(n)}setTimeout(function(){var a,b={html:""};i(e),g.remove(j),j.lastChild&&g.is(j.lastChild,"br")&&g.remove(j.lastChild),a=j.innerHTML,a!=f&&(b.html=a),c.trigger("paste",b),c.clipboard.paste(b.html,!0),c.undoRedoStack.push(new p(h,new l(c.getRange()))),d.EditorUtils.select(c)})},splittableParent:function(a,b){var c,d;if(a)return g.parentOfType(b,["p","ul","ol"])||b.parentNode;c=b.parentNode,d=b.ownerDocument.body;if(g.isInline(c))while(c.parentNode!=d&&!g.isBlock(c.parentNode))c=c.parentNode;return c},paste:function(a,b){var c=this.editor,d,e;for(d=0,e=this.cleaners.length;d<e;d++)this.cleaners[d].applicable(a)&&(a=this.cleaners[d].clean(a));b&&(a=a.replace(/(<br>(\s| )*)+(<\/?(div|p|li|col|t))/ig,"$3"),a=a.replace(/<(a|span)[^>]*><\/\1>/ig,"")),a=a.replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>");var f=this.isBlock(a),j=c.getRange();j.deleteContents(),j.startContainer==c.document&&j.selectNodeContents(c.body);var k=new m,l=k.addCaret(j),n=this.splittableParent(f,l),o=!1;!/body|td/.test(g.name(n))&&(f||g.isInline(n))&&(j.selectNode(l),h.split(j,n,!0),o=!0);var p=this.htmlToFragment(a);if(p.firstChild&&p.firstChild.className==="k-paste-container"){var q=[];for(d=0,e=p.childNodes.length;d<e;d++)q.push(p.childNodes[d].innerHTML);p=this.htmlToFragment(q.join("<br />"))}j.insertNode(p),n=this.splittableParent(f,l);if(o){while(l.parentNode!=n)g.unwrap(l.parentNode);g.unwrap(l.parentNode)}g.normalize(j.commonAncestorContainer),l.style.display="inline",g.scrollTo(l),k.removeCaret(j),i(j)}}),x=c.extend({init:function(){this.replacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/"/g,"'",/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>/g," ",/<table([^>]*)>(\s| )+<t/gi,"<table$1><t",/<tr[^>]*>(\s| )*<\/tr>/gi,"",/<tbody[^>]*>(\s| )*<\/tbody>/gi,"",/<table[^>]*>(\s| )*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*( )+/gi,"",/( |<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/ig,"",/<(\/?)b(\s[^>]*)?>/ig,"<$1strong$2>",/<(\/?)i(\s[^>]*)?>/ig,"<$1em$2>",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/ig,"",/style=(["|'])\s*\1/g,""]},applicable:function(a){return/class="?Mso|style="[^"]*mso-/i.test(a)},listType:function(a){if(/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(a))return"ul";if(/^\s*\w+[\.\)]\u00a0{2,}/.test(a))return"ol"},lists:function(b){var c=g.create(document,"div",{innerHTML:b}),d=a(g.blockElements.join(","),c),e=-1,f,h={ul:{},ol:{}},i=c;for(var j=0;j<d.length;j++){var k=d[j];b=k.innerHTML.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," ");var l=this.listType(b);if(!l||g.name(k)!="p"){k.innerHTML?(h={ul:{},ol:{}},i=c,e=-1):g.remove(k);continue}var m=parseFloat(k.style.marginLeft||0),n=h[l][m];if(m>e||!n)n=g.create(document,l),i==c?g.insertBefore(n,k):i.appendChild(n),h[l][m]=n;if(f!=l)for(var o in h)for(var p in h[o])a.contains(n,h[o][p])&&delete h[o][p];g.remove(k.firstChild),i=g.create(document,"li",{innerHTML:k.innerHTML}),n.appendChild(i),g.remove(k),e=m,f=l}return c.innerHTML},stripEmptyAnchors:function(a){return a.replace(/<a([^>]*)>\s*<\/a>/ig,function(a,b){if(!b||b.indexOf("href")<0)return"";return a})},clean:function(a){var b=this,c=b.replacements,d,e;for(d=0,e=c.length;d<e;d+=2)a=a.replace(c[d],c[d+1]);a=b.stripEmptyAnchors(a),a=b.lists(a),a=a.replace(/\s+class="?[^"\s>]*"?/ig,"");return a}});n(d,{Command:o,GenericCommand:p,InsertHtmlCommand:q,InsertHtmlTool:r,UndoRedoStack:s,TypingHandler:t,SystemHandler:u,Keyboard:v,Clipboard:w,MSWordFormatCleaner:x}),f("insertHtml",new r({template:new k({template:e.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}(jQuery),function(a){function t(a){return a.collapsed&&!k.isExpandable(a)}var b=window.kendo,c=b.Class,d=b.ui.editor,e=b.ui.Editor.fn.options.formats,f=d.EditorUtils,g=d.Tool,h=d.ToolTemplate,i=d.FormatTool,j=d.Dom,k=d.RangeUtils,l=a.extend,m=d.EditorUtils.registerTool,n=d.EditorUtils.registerFormat,o="k-marker",p=c.extend({init:function(a){this.format=a},numberOfSiblings:function(a){var b=0,c=0,d=0,e=a.parentNode,f;for(f=e.firstChild;f;f=f.nextSibling)f!=a&&(f.className==o?d++:f.nodeType==3?b++:c++);return d>1&&e.firstChild.className==o&&e.lastChild.className==o?0:c+b},findSuitable:function(a,b){if(!b&&this.numberOfSiblings(a)>0)return null;return j.parentOfType(a,this.format[0].tags)},findFormat:function(a){var b=this.format,c=j.attrEquals,d,e,f,g,h;for(d=0,e=b.length;d<e;d++){f=a,g=b[d].tags,h=b[d].attr;if(f&&j.ofType(f,g)&&c(f,h))return f;while(f){f=j.parentOfType(f,g);if(f&&c(f,h))return f}}return null},isFormatted:function(a){var b,c;for(b=0,c=a.length;b<c;b++)if(this.findFormat(a[b]))return!0;return!1}}),q=c.extend({init:function(a,b){var c=this;c.finder=new p(a),c.attributes=l({},a[0].attr,b),c.tag=a[0].tags[0]},wrap:function(a){return j.wrap(a,j.create(a.ownerDocument,this.tag,this.attributes))},activate:function(a,b){var c=this;c.finder.isFormatted(b)?(c.split(a),c.remove(b)):c.apply(b)},toggle:function(a){var b=k.textNodes(a);b.length>0&&this.activate(a,b)},apply:function(a){var b=this,c=[],d,e,f,g;for(d=0,e=a.length;d<e;d++)f=a[d],g=b.finder.findSuitable(f),g?j.attr(g,b.attributes):g=b.wrap(f),c.push(g);b.consolidate(c)},remove:function(a){var b=this,c,d,e;for(c=0,d=a.length;c<d;c++)e=b.finder.findFormat(a[c]),e&&(b.attributes&&b.attributes.style?(j.unstyle(e,b.attributes.style),e.style.cssText||j.unwrap(e)):j.unwrap(e))},split:function(a){var b=k.textNodes(a),c=b.length,d,e;if(c>0)for(d=0;d<c;d++)e=this.finder.findFormat(b[d]),e&&k.split(a,e,!0)},consolidate:function(a){var b,c;while(a.length>1){b=a.pop(),c=a[a.length-1],b.previousSibling&&b.previousSibling.className==o&&c.appendChild(b.previousSibling);if(b.tagName==c.tagName&&b.previousSibling==c&&b.style.cssText==c.style.cssText){while(b.firstChild)c.appendChild(b.firstChild);j.remove(b)}}}}),r=p.extend({init:function(a,b){var c=this;c.format=a,c.greedyProperty=b,p.fn.init.call(c,a)},getInlineCssValue:function(b){var c=b.attributes,d=a.trim,e,f,g,h,i,k,l,m,n,o,p,q;if(!!c){for(e=0,f=c.length;e<f;e++){g=c[e],h=g.nodeName,i=g.nodeValue;if(g.specified&&h=="style"){k=d(i||b.style.cssText).split(";");for(m=0,n=k.length;m<n;m++){l=k[m];if(l.length){o=l.split(":"),p=d(o[0].toLowerCase()),q=d(o[1]);if(p!=this.greedyProperty)continue;return p.indexOf("color")>=0?j.toHex(q):q}}}}return}},getFormatInner:function(b){var c=a(j.isDataNode(b)?b.parentNode:b),d=c.parents().andSelf(),e,f,g;for(e=0,f=d.length;e<f;e++){g=this.greedyProperty=="className"?d[e].className:this.getInlineCssValue(d[e]);if(g)return g}return"inherit"},getFormat:function(a){var b=this.getFormatInner(a[0]),c,d;for(c=1,d=a.length;c<d;c++)if(b!=this.getFormatInner(a[c]))return"";return b},isFormatted:function(a){return this.getFormat(a)!==""}}),s=q.extend({init:function(a,b,c){var d=this;q.fn.init.call(d,a,b),d.greedyProperty=c,d.values=b,d.finder=new r(a,c)},activate:function(a,b){var c=this,d,e=c.greedyProperty,f="apply";c.split(a),e&&(d=e.replace(/-([a-z])/,function(a,b){return b.toUpperCase()}),c.values.style[d]=="inherit"&&(f="remove")),c[f](b)}}),u=i.extend({init:function(a){i.fn.init.call(this,l(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}})),this.willDelayExecution=t}}),v=g.extend({init:function(c){var d=this;g.fn.init.call(d,c),d.type=a.browser.msie||b.support.touch?"kendoDropDownList":"kendoComboBox",d.format=[{tags:["span"]}],d.finder=new r(d.format,c.cssAttr)},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,update:function(a,b,c){var d=this,e=a.data(d.type),f=c.getPending(d.name),g=f&&f.params?f.params.value:d.finder.getFormat(b);e.close(),e.value(g)},initialize:function(a,b){var c=b.editor,d=this.options,e=d.name,f,h=[];d.defaultValue&&(h=[{text:c.options.messages[d.defaultValue[0].text],value:d.defaultValue[0].value}]),f=h.concat(d.items?d.items:c.options[e]),a[this.type]({dataTextField:"text",dataValueField:"value",dataSource:f,change:function(a){g.exec(c,e,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+e).find("*").andSelf().attr("unselectable","on"),a.data(this.type).value("inherit")}}),w=g.extend({init:function(a){g.fn.init.call(this,a),this.options=a,this.format=[{tags:["span"]}]},update:function(a){a.data("kendoColorPicker").close()},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,initialize:function(a,b){var c=b.editor,e=this.name;new d.ColorPicker(a,{value:"#000000",change:function(a){g.exec(c,e,a.value)}})}}),x=g.extend({init:function(a){var b=this;g.fn.init.call(b,a),b.format=[{tags:["span"]}],b.finder=new r(b.format,"className")},command:function(a){var b=this.format;return new d.FormatCommand(l(a,{formatter:function(){return new s(b,{className:a.value})}}))},update:function(a,b){var c=a.data("kendoSelectBox");c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor;new d.SelectBox(a,{dataTextField:"text",dataValueField:"value",dataSource:c.options.style,title:c.options.messages.style,change:function(a){g.exec(c,"style",this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+this.name).find("*").andSelf().attr("unselectable","on")}});l(d,{InlineFormatFinder:p,InlineFormatter:q,GreedyInlineFormatFinder:r,GreedyInlineFormatter:s,InlineFormatTool:u,FontTool:v,ColorTool:w,StyleTool:x}),m("style",new d.StyleTool({template:new h({template:f.dropDownListTemplate,title:"Styles"})})),n("bold",[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),m("bold",new u({key:"B",ctrl:!0,format:e.bold,template:new h({template:f.buttonTemplate,title:"Bold"})})),n("italic",[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),m("italic",new u({key:"I",ctrl:!0,format:e.italic,template:new h({template:f.buttonTemplate,title:"Italic"})})),n("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}}]),m("underline",new u({key:"U",ctrl:!0,format:e.underline,template:new h({template:f.buttonTemplate,title:"Underline"})})),n("strikethrough",[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),m("strikethrough",new u({format:e.strikethrough,template:new h({template:f.buttonTemplate,title:"Strikethrough"})})),n("superscript",[{tags:["sup"]}]),m("superscript",new u({format:e.superscript,template:new h({template:f.buttonTemplate,title:"Superscript"})})),n("subscript",[{tags:["sub"]}]),m("subscript",new u({format:e.subscript,template:new h({template:f.buttonTemplate,title:"Subscript"})})),m("foreColor",new w({cssAttr:"color",domAttr:"color",name:"foreColor",template:new h({template:f.colorPickerTemplate,title:"Color"})})),m("backColor",new w({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new h({template:f.colorPickerTemplate,title:"Background Color"})})),m("fontName",new v({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName",defaultValue:[{text:"fontNameInherit",value:"inherit"}],template:new h({template:f.comboBoxTemplate,title:"Font Name"})})),m("fontSize",new v({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize",defaultValue:[{text:"fontSizeInherit",value:"inherit"}],template:new h({template:f.comboBoxTemplate,title:"Font Size"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=b.ui.Editor.fn.options.formats,g=e.Dom,h=e.Command,i=e.Tool,j=e.ToolTemplate,k=e.FormatTool,l=e.EditorUtils,m=l.registerTool,n=l.registerFormat,o=e.RangeUtils,p=c.extend({init:function(a){this.format=a},contains:function(a,b){var c,d,e;for(c=0,d=b.length;c<d;c++){e=b[c];if(!e||!g.isAncestorOrSelf(a,e))return!1}return!0},findSuitable:function(b){var c=this.format,d=[],e,f,h;for(e=0,f=b.length;e<f;e++){h=g.ofType(b[e],c[0].tags)?b[e]:g.parentOfType(b[e],c[0].tags);if(!h)return[];a.inArray(h,d)<0&&d.push(h)}for(e=0,f=d.length;e<f;e++)if(this.contains(d[e],d))return[d[e]];return d},findFormat:function(a){var b=this.format,c,d,e,f,h;for(c=0,d=b.length;c<d;c++){e=a,f=b[c].tags,h=b[c].attr;while(e){if(g.ofType(e,f)&&g.attrEquals(e,h))return e;e=e.parentNode}}return null},getFormat:function(a){var b=this,c=function(a){return b.findFormat(g.isDataNode(a)?a.parentNode:a)},d=c(a[0]),e,f;if(!d)return"";for(e=1,f=a.length;e<f;e++)if(d!=c(a[e]))return"";return d.nodeName.toLowerCase()},isFormatted:function(a){for(var b=0,c=a.length;b<c;b++)if(!this.findFormat(a[b]))return!1;return!0}}),q=c.extend({init:function(a,b){this.format=a,this.values=b,this.finder=new p(a)},wrap:function(a,b,c){var d=c.length==1?g.blockParentOrBody(c[0]):g.commonAncestor.apply(null,c);g.isInline(d)&&(d=g.blockParentOrBody(d));var e=g.significantChildNodes(d),f=g.findNodeIndex(e[0]),h=g.create(d.ownerDocument,a,b),i,j;for(i=0;i<e.length;i++){j=e[i];if(g.isBlock(j)){g.attr(j,b),h.childNodes.length&&(g.insertBefore(h,j),h=h.cloneNode(!1)),f=g.findNodeIndex(j)+1;continue}h.appendChild(j)}h.firstChild&&g.insertAt(d,h,f)},apply:function(a){var b=this,c=g.is(a[0],"img")?[a[0]]:b.finder.findSuitable(a),e=c.length?l.formatByName(g.name(c[0]),b.format):b.format[0],f=e.tags[0],h=d({},e.attr,b.values),i,j;if(c.length)for(i=0,j=c.length;i<j;i++)g.attr(c[i],h);else b.wrap(f,h,a)},remove:function(a){var b,c,d,e;for(b=0,c=a.length;b<c;b++)d=this.finder.findFormat(a[b]),d&&(g.ofType(d,["p","img","li"])?(e=l.formatByName(g.name(d),this.format),e.attr.style&&g.unstyle(d,e.attr.style),e.attr.className&&g.removeClass(d,e.attr.className)):g.unwrap(d))},toggle:function(a){var b=this,c=o.nodes(a);b.finder.isFormatted(c)?b.remove(c):b.apply(c)}}),r=c.extend({init:function(a,b){var c=this;c.format=a,c.values=b,c.finder=new p(a)},apply:function(a){var b=this.format,c=g.blockParents(a),d=b[0].tags[0],f,h,i,j,k;if(c.length)for(f=0,h=c.length;f<h;f++)g.is(c[f],"li")?(i=c[f].parentNode,j=new e.ListFormatter(i.nodeName.toLowerCase(),d),k=this.editor.createRange(),k.selectNode(c[f]),j.toggle(k)):g.changeTag(c[f],d);else(new q(b,this.values)).apply(a)},toggle:function(a){var b=o.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=o.textNodes(a),b.length||(b=g.significantChildNodes(a.commonAncestorContainer))),this.apply(b)}}),s=h.extend({init:function(a){a.formatter=a.formatter(),h.fn.init.call(this,a)}}),t=k.extend({init:function(a){k.fn.init.call(this,d(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}}))}}),u=i.extend({init:function(a){i.fn.init.call(this,a),this.finder=new p([{tags:g.blockElements}])},command:function(a){return new s(d(a,{formatter:function(){return new r([{tags:[a.value]}],{})}}))},update:function(a,b){var c;a.is("select")?c=a.data("kendoSelectBox"):c=a.find("select").data("kendoSelectBox"),c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor,d="formatBlock";new e.SelectBox(a,{dataTextField:"text",dataValueField:"value",dataSource:this.options.items?this.options.items:c.options.formatBlock,title:c.options.messages.formatBlock,change:function(a){i.exec(c,d,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+d).find("*").andSelf().attr("unselectable","on")}});d(e,{BlockFormatFinder:p,BlockFormatter:q,GreedyBlockFormatter:r,FormatCommand:s,BlockFormatTool:t,FormatBlockTool:u}),m("formatBlock",new u({template:new j({template:l.dropDownListTemplate})})),n("justifyLeft",[{tags:g.blockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}]),m("justifyLeft",new t({format:f.justifyLeft,template:new j({template:l.buttonTemplate,title:"Justify Left"})})),n("justifyCenter",[{tags:g.blockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}]),m("justifyCenter",new t({format:f.justifyCenter,template:new j({template:l.buttonTemplate,title:"Justify Center"})})),n("justifyRight",[{tags:g.blockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}]),m("justifyRight",new t({format:f.justifyRight,template:new j({template:l.buttonTemplate,title:"Justify Right"})})),n("justifyFull",[{tags:g.blockElements,attr:{style:{textAlign:"justify"}}}]),m("justifyFull",new t({format:f.justifyFull,template:new j({template:l.buttonTemplate,title:"Justify Full"})}))}(jQuery),function(a){var b=window.kendo,c=a.extend,d=b.ui.editor,e=d.Dom,f=d.Command,g=d.Tool,h=d.BlockFormatter,i=e.normalize,j=d.RangeUtils,k=d.EditorUtils.registerTool,l=f.extend({init:function(a){this.options=a,f.fn.init.call(this,a)},exec:function(){function v(a){a.firstChild&&e.is(a.firstChild,"br")&&e.remove(a.firstChild),e.isDataNode(a)&&!a.nodeValue&&(a=a.parentNode);if(a&&!e.is(a,"img")){while(a.firstChild&&a.firstChild.nodeType==1)a=a.firstChild;a.innerHTML||(a.innerHTML=l)}}var b=this.getRange(),c=j.documentFromRange(b),d,f,g,k,l=a.browser.msie?"":'<br _moz_dirty="" />',m,n,o,p,q,r="p,h1,h2,h3,h4,h5,h6".split(","),s=e.parentOfType(b.startContainer,r),t=e.parentOfType(b.endContainer,r),u=s&&!t||!s&&t;b.deleteContents(),n=e.create(c,"a"),b.insertNode(n),n.parentNode||(k=b.commonAncestorContainer,k.innerHTML="",k.appendChild(n)),i(n.parentNode),o=e.parentOfType(n,["li"]),p=e.parentOfType(n,"h1,h2,h3,h4,h5,h6".split(",")),o?(q=b.cloneRange(),q.selectNode(o),j.textNodes(q).length||(m=e.create(c,"p"),o.nextSibling&&j.split(q,o.parentNode),e.insertAfter(m,o.parentNode),e.remove(o.parentNode.childNodes.length==1?o.parentNode:o),m.innerHTML=l,g=m)):p&&!n.nextSibling&&(m=e.create(c,"p"),e.insertAfter(m,p),m.innerHTML=l,e.remove(n),g=m),g||(!o&&!p&&(new h([{tags:["p"]}])).apply([n]),b.selectNode(n),d=e.parentOfType(n,[o?"li":p?e.name(p):"p"]),j.split(b,d,u),f=d.previousSibling,e.is(f,"li")&&f.firstChild&&!e.is(f.firstChild,"br")&&(f=f.firstChild),g=d.nextSibling,e.is(g,"li")&&g.firstChild&&!e.is(g.firstChild,"br")&&(g=g.firstChild),e.remove(d),v(f),v(g),i(f)),i(g);if(e.is(g,"img"))b.setStartBefore(g);else{b.selectNodeContents(g);var w=j.textNodes(b)[0];w&&b.selectNodeContents(w)}b.collapse(!0),e.scrollTo(g),j.selectRange(b)}}),m=f.extend({init:function(a){this.options=a,f.fn.init.call(this,a)},exec:function(){var b=this.getRange();b.deleteContents();var c=e.create(j.documentFromRange(b),"br");b.insertNode(c),i(c.parentNode);if(!a.browser.msie&&(!c.nextSibling||e.isWhitespace(c.nextSibling))){var d=c.cloneNode(!0);d.setAttribute("_moz_dirty",""),e.insertAfter(d,c)}b.setStartAfter(c),b.collapse(!0),j.selectRange(b)}});c(d,{ParagraphCommand:l,NewLineCommand:m}),k("insertLineBreak",new g({key:13,shift:!0,command:m})),k("insertParagraph",new g({key:13,command:l}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.ToolTemplate,k=e.FormatTool,l=e.BlockFormatFinder,m=g.textNodes,n=e.EditorUtils.registerTool,o=l.extend({init:function(a){this.tag=a;var b=this.tags=[a=="ul"?"ol":"ul",a];l.fn.init.call(this,[{tags:b}])},isFormatted:function(a){var b=[],c;for(var d=0;d<a.length;d++)(c=this.findFormat(a[d]))&&f.name(c)==this.tag&&b.push(c);if(b.length<1)return!1;if(b.length!=a.length)return!1;for(d=0;d<b.length;d++){if(b[d].parentNode!=c.parentNode)break;if(b[d]!=c)return!1}return!0},findSuitable:function(a){var b=f.parentOfType(a[0],this.tags);if(b&&f.name(b)==this.tag)return b;return null}}),p=c.extend({init:function(a,b){var c=this;c.finder=new o(a),c.tag=a,c.unwrapTag=b},wrap:function(a,b){var c=f.create(a.ownerDocument,"li"),d,e;for(d=0;d<b.length;d++){e=b[d];if(f.is(e,"li")){a.appendChild(e);continue}if(f.is(e,"ul")||f.is(e,"ol")){while(e.firstChild)a.appendChild(e.firstChild);continue}if(f.is(e,"td")){while(e.firstChild)c.appendChild(e.firstChild);a.appendChild(c),e.appendChild(a),a=a.cloneNode(!1),c=c.cloneNode(!1);continue}c.appendChild(e),f.isBlock(e)&&(a.appendChild(c),f.unwrap(e),c=c.cloneNode(!1))}c.firstChild&&a.appendChild(c)},containsAny:function(a,b){for(var c=0;c<b.length;c++)if(f.isAncestorOrSelf(a,b[c]))return!0;return!1},suitable:function(a,b){if(a.className=="k-marker"){var c=a.nextSibling;if(c&&f.isBlock(c))return!1;c=a.previousSibling;if(c&&f.isBlock(c))return!1}return this.containsAny(a,b)||f.isInline(a)||a.nodeType==3},split:function(b){var c=m(b),d,e;if(c.length){d=f.parentOfType(c[0],["li"]),e=f.parentOfType(c[c.length-1],["li"]),b.setStartBefore(d),b.setEndAfter(e);for(var h=0,i=c.length;h<i;h++){var j=this.finder.findFormat(c[h]);if(j){var k=a(j).parents("ul,ol");k[0]?g.split(b,k.last()[0],!0):g.split(b,j,!0)}}}},merge:function(a,b){var c=b.previousSibling,d;while(c&&(c.className=="k-marker"||c.nodeType==3&&f.isWhitespace(c)))c=c.previousSibling;if(c&&f.name(c)==a){while(b.firstChild)c.appendChild(b.firstChild);f.remove(b),b=c}d=b.nextSibling;while(d&&(d.className=="k-marker"||d.nodeType==3&&f.isWhitespace(d)))d=d.nextSibling;if(d&&f.name(d)==a){while(b.lastChild)d.insertBefore(b.lastChild,d.firstChild);f.remove(b)}},applyOnSection:function(b,c){function j(){g.push(this)}var d=this.tag,e;c.length==1?e=f.parentOfType(c[0],["ul","ol"]):e=f.commonAncestor.apply(null,c),e||(e=f.parentOfType(c[0],["td"])||c[0].ownerDocument.body),f.isInline(e)&&(e=f.blockParentOrBody(e));var g=[],h=this.finder.findSuitable(c);h||(h=(new o(d=="ul"?"ol":"ul")).findSuitable(c));var i=f.significantChildNodes(e);i.length||(i=c),/table|tbody/.test(f.name(e))&&(i=a.map(c,function(a){return f.parentOfType(a,["td"])}));for(var k=0;k<i.length;k++){var l=i[k],m=f.name(l);this.suitable(l,c)&&(!h||!f.isAncestorOrSelf(h,l))&&(!h||m!="ul"&&m!="ol"?g.push(l):(a.each(l.childNodes,j),f.remove(l)))}g.length==i.length&&e!=c[0].ownerDocument.body&&!/table|tbody|tr|td/.test(f.name(e))&&(g=[e]),h||(h=f.create(e.ownerDocument,d),f.insertBefore(h,g[0])),this.wrap(h,g),f.is(h,d)||f.changeTag(h,d),this.merge(d,h)},apply:function(a){var b=0,c=[],d,e,g;do g=f.parentOfType(a[b],["td","body"]),!d||g!=d?(d&&c.push({section:d,nodes:e}),e=[a[b]],d=g):e.push(a[b]),b++;while(b<a.length);c.push({section:d,nodes:e});for(b=0;b<c.length;b++)this.applyOnSection(c[b].section,c[b].nodes)},unwrap:function(b){var c=b.ownerDocument.createDocumentFragment(),d=this.unwrapTag,e,g,h,i;for(g=b.firstChild;g;g=g.nextSibling){h=f.create(b.ownerDocument,d||"p");while(g.firstChild)i=g.firstChild,f.isBlock(i)?(h.firstChild&&(c.appendChild(h),h=f.create(b.ownerDocument,d||"p")),c.appendChild(i)):h.appendChild(i);h.firstChild&&c.appendChild(h)}e=a(b).parents("ul,ol"),e[0]?(f.insertAfter(c,e.last()[0]),e.last().remove()):f.insertAfter(c,b),f.remove(b)},remove:function(a){var b;for(var c=0,d=a.length;c<d;c++)b=this.finder.findFormat(a[c]),b&&this.unwrap(b)},toggle:function(a){var b=this,c=m(a),d=a.commonAncestorContainer;if(!c.length){a.selectNodeContents(d),c=m(a);if(!c.length){var e=d.ownerDocument.createTextNode("");a.startContainer.appendChild(e),c=[e],a.selectNode(e.parentNode)}}b.finder.isFormatted(c)?(b.split(a),b.remove(c)):b.apply(c)}}),q=i.extend({init:function(a){a.formatter=new p(a.tag),i.fn.init.call(this,a)}}),r=k.extend({init:function(a){this.options=a,k.fn.init.call(this,d(a,{finder:new o(a.tag)}))},command:function(a){return new q(d(a,{tag:this.options.tag}))}});d(e,{ListFormatFinder:o,ListFormatter:p,ListCommand:q,ListTool:r}),n("insertUnorderedList",new r({tag:"ul",template:new j({template:h.buttonTemplate,title:"Remove Link"})})),n("insertOrderedList",new r({tag:"ol",template:new j({template:h.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.RangeUtils,i=f.EditorUtils,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.InlineFormatter,n=f.InlineFormatFinder,o=h.textNodes,p=f.EditorUtils.registerTool,q=d.extend({findSuitable:function(a){return g.parentOfType(a,["a"])}}),r=d.extend({init:function(){this.finder=new q},apply:function(a,b){var c=o(a);if(b.innerHTML){var d=h.getMarkers(a),e=h.documentFromRange(a);a.deleteContents();var f=g.create(e,"a",b);a.insertNode(f),d.length>1&&(g.insertAfter(d[d.length-1],f),g.insertAfter(d[1],f),g[c.length>0?"insertBefore":"insertAfter"](d[0],f))}else{var i=new m([{tags:["a"]}],b);i.finder=this.finder,i.apply(c)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new m([{tags:["a"]}])).remove(o(a))}},this.options=a,j.fn.init.call(this,a)}}),t=j.extend({init:function(a){var b=this;b.options=a,j.fn.init.call(b,a),b.attributes=null,b.async=!0,b.formatter=new r},exec:function(){function j(a){a.preventDefault(),n.destroy(),g.windowFromDocument(h.documentFromRange(b)).focus(),f.releaseRange(b)}function i(c){var d=a("#k-editor-link-url",n.element).val();if(d&&d!="http://"){f.attributes={href:d};var g=a("#k-editor-link-title",n.element).val();g&&(f.attributes.title=g);var h=a("#k-editor-link-text",n.element).val();h!==e&&(f.attributes.innerHTML=h||d);var i=a("#k-editor-link-target",n.element).is(":checked");i&&(f.attributes.target="_blank"),f.formatter.apply(b,f.attributes)}j(c),f.change&&f.change()}var b=this.getRange(),c=b.collapsed;b=this.lockRange(!0);var d=o(b),e=null,f=this,k=d.length?f.formatter.finder.findSuitable(d[0]):null,l=d.length<=1||d.length==2&&c,m='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-link-url">Web address</label><input type="text" class="k-input" id="k-editor-link-url"/></li>'+(l?'<li class="k-form-text-row"><label for="k-editor-link-text">Text</label><input type="text" class="k-input" id="k-editor-link-text"/></li>':"")+'<li class="k-form-text-row"><label for="k-editor-link-title">Tooltip</label><input type="text" class="k-input" id="k-editor-link-title"/></li>'+'<li class="k-form-checkbox-row"><input type="checkbox" id="k-editor-link-target"/><label for="k-editor-link-target">Open link in new window</label></li>'+"</ol>"+'<div class="k-button-wrapper">'+'<button class="k-dialog-insert k-button">Insert</button>'+" or "+'<a href="#" class="k-dialog-close k-link">Close</a>'+"</div>"+"</div>",n=a(m).appendTo(document.body).kendoWindow(a.extend({},this.editor.options.dialogOptions,{title:"Insert link",close:j})).hide().find(".k-dialog-insert").click(i).end().find(".k-dialog-close").click(j).end().find(".k-form-text-row input").keydown(function(a){a.keyCode==13?i(a):a.keyCode==27&&j(a)}).end().find("#k-editor-link-url").val(k?k.getAttribute("href",2):"http://").end().find("#k-editor-link-text").val(d.length>0?d.length==1?d[0].nodeValue:d[0].nodeValue+d[1].nodeValue:"").end().find("#k-editor-link-title").val(k?k.title:"").end().find("#k-editor-link-target").attr("checked",k?k.target=="_blank":!1).end().show().data("kendoWindow").center();l&&d.length>0&&(e=a("#k-editor-link-text",n.element).val()),a("#k-editor-link-url",n.element).focus().select()},redo:function(){var a=this,b=a.lockRange(!0);a.formatter.apply(b,a.attributes),a.releaseRange(b)}}),u=k.extend({init:function(b){this.options=b,this.finder=new n([{tags:["a"]}]),k.fn.init.call(this,a.extend(b,{command:s}))},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(a,b){a.toggleClass("k-state-disabled",!this.finder.isFormatted(b)).removeClass("k-state-hover")}});e(c.ui.editor,{LinkFormatFinder:q,LinkFormatter:r,UnlinkCommand:s,LinkCommand:t,UnlinkTool:u}),p("createLink",new k({key:"K",ctrl:!0,command:t,template:new l({template:i.buttonTemplate,title:"Create Link"})})),p("unlink",new u({key:"K",ctrl:!0,shift:!0,template:new l({template:i.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.EditorUtils,g=e.Dom,h=f.registerTool,i=e.ToolTemplate,j=e.RangeUtils,k=e.Command,l=c.keys,m="Insert Image",n="#k-editor-image-url",o="#k-editor-image-title",p=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.async=!0,b.attributes={}},insertImage:function(a,b){var c=this.attributes;if(c.src&&c.src!="http://"){if(!a){a=g.create(j.documentFromRange(b),"img",c),a.onload=a.onerror=function(){a.removeAttribute("complete"),a.removeAttribute("width"),a.removeAttribute("height")},b.deleteContents(),b.insertNode(a),b.setStartAfter(a),b.setEndAfter(a),j.selectRange(b);return!0}g.attr(a,c)}return!1},redo:function(){var a=this,b=a.lockRange();a.insertImage(j.image(b),b)||a.releaseRange(b)},exec:function(){function q(a){a.keyCode==l.ENTER?k(a):a.keyCode==l.ESC&&p(a)}function p(a){a.preventDefault(),i.destroy(),g.windowFromDocument(j.documentFromRange(c)).focus(),e||b.releaseRange(c)}function k(d){b.attributes={src:a(n,i.element).val(),alt:a(o,i.element).val()},e=b.insertImage(f,c),p(d),b.change&&b.change()}var b=this,c=b.lockRange(),e=!1,f=j.image(c),h,i;h='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-image-url">Web address</label><input type="text" class="k-input" id="k-editor-image-url"/></li><li class="k-form-text-row"><label for="k-editor-image-title">Tooltip</label><input type="text" class="k-input" id="k-editor-image-title"/></li></ol><div class="k-button-wrapper"><button class="k-dialog-insert k-button">Insert</button> or <a href="#" class="k-dialog-close k-link">Close</a></div></div>',i=a(h).appendTo(document.body).kendoWindow(d({},b.editor.options.dialogOptions,{title:m,close:p,activate:function(){}})).hide().find(".k-dialog-insert").click(k).end().find(".k-dialog-close").click(p).end().find(".k-form-text-row input").keydown(q).end().find(n).val(f?f.getAttribute("src",2):"http://").end().find(o).val(f?f.alt:"").end().show().data("kendoWindow").center(),a(n,i.element).focus().select()}});c.ui.editor.ImageCommand=p,h("insertImage",new e.Tool({command:p,template:new i({template:f.buttonTemplate,title:m})}))}(jQuery),function(a,b){var c=window.kendo,d=c.ui.Widget,e=c.ui.DropDownList,f=c.ui.editor,g=f.Dom,h="change",i="k-state-selected",j="."+i,k=".k-selected-color",l="unselectable",m="background-color",n=c.keys,o=c.template('<div class="k-colorpicker-popup"><ul class="k-reset"># for(var i = 0; i < colors.length; i++) { #<li class="k-item #= colors[i] == value ? "k-state-selected" : "" #"><div style="background-color:\\##= colors[i] #"></div></li># } #</ul></div>'),p=d.extend({init:function(b,c){var e=this;d.fn.init.call(e,b,c),b=e.element,c=e.options,e._value=c.value,e.popup=a(o({colors:c.colors,value:c.value.substring(1)})).kendoPopup({anchor:b,toggleTarget:b.find(".k-icon")}).delegate(".k-item","click",function(b){e.select(a(b.currentTarget).find("div").css(m))}).find("*").attr(l,"on").end().data("kendoPopup"),b.attr("tabIndex",0).keydown(function(a){e.keydown(a)}).focus(function(){b.css("outline","1px dotted #000")}).blur(function(){b.css("outline","")}).delegate(".k-tool-icon","click",function(){e.select()}).find("*").attr(l,"on"),e._value&&b.find(k).css(m,e._value)},options:{name:"ColorPicker",colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),value:null},events:[h],select:function(a){var b=this;a?(a=g.toHex(a),b.trigger(h,{value:a})||(b.value(a),b.close())):b.trigger(h,{value:b._value})},open:function(){this.popup.open()},close:function(){this.popup.close()},toggle:function(){this.popup.toggle()},keydown:function(a){var b=this,c=b.popup.element,d=b.popup.visible(),e,f,g,h=!1,k=a.keyCode;k==n.DOWN?(d?(e=c.find(j),e[0]?f=e.next():f=c.find("li:first"),f[0]&&(e.removeClass(i),f.addClass(i))):b.open(),h=!0):k==n.UP?(d&&(e=c.find(j),g=e.prev(),g[0]&&(e.removeClass(i),g.addClass(i))),h=!0):k==n.TAB||k==n.RIGHT||k==n.LEFT?b.close():k==n.ENTER&&(c.find(j).click(),h=!0),h&&a.preventDefault()},value:function(a){var c=this;if(a===b)return c._value;a=g.toHex(a),c._value=a,c.element.find(k).css(m,a)}}),q=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.value(c.options.title)},options:{name:"SelectBox"},value:function(a){var c=this,d=e.fn.value.call(c,a);if(a===b)return d;a!==e.fn.value.call(c)&&(c.text(c.options.title),c._current.removeClass("k-state-selected"),c.current(null),c._oldIndex=c.selectedIndex=-1)}});c.ui.editor.ColorPicker=p,c.ui.editor.SelectBox=q}(jQuery),function(a,b){function q(a,c){var d=g.name(a)!="td"?"marginLeft":"paddingLeft";if(c===b)return a.style[d]||0;c>0?a.style[d]=c+"px":(a.style[d]="",a.style.cssText||a.removeAttribute("style"))}var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.EditorUtils,i=h.registerTool,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.RangeUtils,n=g.blockElements,o=f.BlockFormatFinder,p=f.BlockFormatter,r=d.extend({init:function(){this.finder=new o([{tags:g.blockElements}])},apply:function(b){var c=this.finder.findSuitable(b),d=[],e,f,h,i,j;if(c.length){for(e=0,f=c.length;e<f;e++)g.is(c[e],"li")?a(c[e]).index()?a.inArray(c[e].parentNode,d)<0&&d.push(c[e]):d.push(c[e].parentNode):d.push(c[e]);while(d.length){h=d.shift();if(g.is(h,"li")){i=h.parentNode,j=a(h).prev("li");var k=j.find("ul,ol").last(),l=a(h).children("ul,ol")[0];if(l&&j[0])k[0]?(k.append(h),k.append(a(l).children()),g.remove(l)):(j.append(l),l.insertBefore(h,l.firstChild));else{l=j.children("ul,ol")[0],l||(l=g.create(h.ownerDocument,g.name(i)),j.append(l));while(h&&h.parentNode==i)l.appendChild(h),h=d.shift()}}else{var m=parseInt(q(h),10)+30;q(h,m);for(var n=0;n<d.length;n++)a.contains(h,d[n])&&d.splice(n,1)}}}else{var o=new p([{tags:"p"}],{style:{marginLeft:30}});o.apply(b)}},remove:function(b){var c=this.finder.findSuitable(b),d,e,f,g,h,i,j,k;for(e=0,f=c.length;e<f;e++){j=a(c[e]);if(j.is("li")){g=j.parent(),h=g.parent();if(h.is("li,ul,ol")&&!q(g[0])){if(d&&a.contains(d,h[0]))continue;i=j.nextAll("li"),i.length&&a(g[0].cloneNode(!1)).appendTo(j).append(i),h.is("li")?j.insertAfter(h):j.appendTo(h),g.children("li").length||g.remove();continue}if(d==g[0])continue;d=g[0]}else d=c[e];k=parseInt(q(d),10)-30,q(d,k)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).apply(m.nodes(a))}},j.fn.init.call(this,a)}}),t=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).remove(m.nodes(a))}},j.fn.init.call(this,a)}}),u=k.extend({init:function(a){k.fn.init.call(this,e(a,{command:t})),this.finder=new o([{tags:n}])},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(b,c){var d=this.finder.findSuitable(c),e,f,h,i;for(h=0,i=d.length;h<i;h++){e=q(d[h]),e||(f=a(d[h]).parents("ul,ol").length,e=g.is(d[h],"li")&&(f>1||q(d[h].parentNode))||g.ofType(d[h],["ul","ol"])&&f>0);if(e){b.removeClass("k-state-disabled");return}}b.addClass("k-state-disabled").removeClass("k-state-hover")}});e(f,{IndentFormatter:r,IndentCommand:s,OutdentCommand:t,OutdentTool:u}),i("indent",new k({command:s,template:new l({template:h.buttonTemplate,title:"Indent"})})),i("outdent",new u({template:new l({template:h.buttonTemplate,title:"Outdent"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.Tool,k=e.ToolTemplate,l=i.extend({init:function(a){var b=this;b.options=a,i.fn.init.call(b,a),b.attributes=null,b.async=!0},exec:function(){function m(a){a.preventDefault(),h.data("kendoWindow").destroy(),f.windowFromDocument(g.documentFromRange(e)).focus()}function k(a){c.value(h.find(j).val()),m(a),b.change&&b.change()}var b=this,c=b.editor,e=c.getRange(),h=a(l.template).appendTo(document.body),i=l.indent(c.value()),j=".k-editor-textarea";h.kendoWindow(d({},c.options.dialogOptions,{title:"View HTML",close:m})).hide().find(j).val(i).end().find(".k-dialog-update").click(k).end().find(".k-dialog-close").click(m).end().show().data("kendoWindow").center(),h.find(j).focus()}});d(l,{template:"<div class='k-editor-dialog'><textarea class='k-editor-textarea k-input'></textarea><div class='k-button-wrapper'><button class='k-dialog-update k-button'>Update</button> or <a href='#' class='k-dialog-close k-link'>Close</a></div></div>",indent:function(a){return a.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/ig,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/ig,"<$1$2>\n<li").replace(/<br \/>/ig,"<br />\n").replace(/\n$/,"")}}),c.ui.editor.ViewHtmlCommand=l,e.EditorUtils.registerTool("viewHtml",new j({command:l,template:new k({template:h.buttonTemplate,title:"View HTML"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.RangeUtils,g=e.Marker,h=c.extend({init:function(a){this.editor=a,this.formats=[]},apply:function(a){if(!!this.hasPending()){var b=new g;b.addCaret(a);var c=a.startContainer.childNodes[a.startOffset],e=c.previousSibling;e.nodeValue||(e=e.previousSibling),a.setStart(e,e.nodeValue.length-1),b.add(a);if(!f.textNodes(a).length){b.remove(a),a.collapse(!0),this.editor.selectRange(a);return}var h=b.end.previousSibling.previousSibling,i,j=this.formats;for(var k=0;k<j.length;k++){i=j[k];var l=i.command(d({range:a},i.options.params));l.editor=this.editor,l.exec(),a.selectNode(h)}b.remove(a),h.parentNode&&(a.setStart(h,1),a.collapse(!0)),this.clear(),this.editor.selectRange(a)}},hasPending:function(){return this.formats.length>0},isPending:function(a){return!!this.getPending(a)},getPending:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a)return b[c];return},toggle:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a.name){b[c].params&&b[c].params.value!=a.params.value?b[c].params.value=a.params.value:b.splice(c,1);return}b.push(a)},clear:function(){this.formats=[]}});d(e,{PendingFormats:h})}(jQuery),function(a,b){function E(c,d){var e,f=d!==b;if(document.selection){a(c).is(":visible")&&c.focus(),e=document.selection.createRange();if(f)e.move("character",d),e.select();else{var g=c.createTextRange(),h=g.duplicate();g.moveToBookmark(e.getBookmark()),h.setEndPoint("EndToStart",g),d=h.text.length}}else c.selectionStart!==b&&(f?(c.focus(),c.setSelectionRange(d,d)):d=c.selectionStart);return d}function D(a,b){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+a+'" title="'+b+'">'+b+"</span></span>"}var c=window.kendo,d=c.keys,e=c.ui,f=e.Widget,g=c.parseFloat,h=c.support.placeholder,i=c.support.touch,j=c.getCulture,k="change",l="disabled",m="k-input",n="spin",o="touchend",p=i?"touchstart":"mousedown",q=i?"touchmove "+o:"mouseup mouseleave",r="k-state-default",s="k-state-focused",t="k-state-hover",u="mouseenter mouseleave",v=".",w="k-state-selected",x="k-state-disabled",y=i?"number":"text",z=null,A=a.proxy,B={190:".",188:","},C=f.extend({init:function(a,d){var e=this,g=d&&d.step!==b,h,i,j,k,l;f.fn.init.call(e,a,d),d=e.options,a=e.element.addClass(m).bind({keydown:A(e._keydown,e),paste:A(e._paste,e),blur:A(e._focusout,e)}),a.closest("form").bind("reset",function(){setTimeout(function(){e.value(a[0].value)})}),d.placeholder=d.placeholder||a.attr("placeholder"),e._wrapper(),e._arrows(),e._input(),e._text.focus(A(e._click,e)),h=e.min(a.attr("min")),i=e.max(a.attr("max")),j=e._parse(a.attr("step")),d.min===z&&h!==z&&(d.min=h),d.max===z&&i!==z&&(d.max=i),!g&&j!==z&&(d.step=j),l=d.format,l.slice(0,3)==="{0:"&&(d.format=l.slice(3,l.length-1)),k=d.value,e.value(k!==z?k:a.val()),e.enable(!a.is("[disabled]")),c.notify(e)},options:{name:"NumericTextBox",decimals:z,min:z,max:z,value:z,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[k,n],enable:function(a){var b=this,c=b._text.add(b.element),d=b._inputWrapper.unbind(u),e=b._upArrow.unbind(p),f=b._downArrow.unbind(p);b._toggleText(!0),a===!1?(d.removeClass(r).addClass(x),c.attr(l,l)):(d.addClass(r).removeClass(x).bind(u,b._toggleHover),c.removeAttr(l),e.bind(p,function(a){a.preventDefault(),b._spin(1),b._upArrow.addClass(w)}),f.bind(p,function(a){a.preventDefault(),b._spin(-1),b._downArrow.addClass(w)}))},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},step:function(a){return this._option("step",a)},value:function(a){var c=this,d;if(a===b)return c._value;a=c._parse(a),d=c._adjust(a);a===d&&(c._update(a),c._old=c._value)},_adjust:function(a){var b=this,c=b.options,d=c.min,e=c.max;if(a===z)return a;d!==z&&a<d?a=d:e!==z&&a>e&&(a=e);return a},_arrows:function(){var b=this,d,e=b.options,f=e.spinners,g=b.element;d=g.siblings(".k-icon"),d[0]||(d=a(D("n",e.upArrowText)+D("s",e.downArrowText)).insertAfter(g),d.wrapAll('<span class="k-select"/>')),d.bind(q,function(a){(!i||c.eventTarget(a)!=a.currentTarget||a.type===o)&&clearTimeout(b._spinning),d.removeClass(w)}),f||(d.toggle(f),b._inputWrapper.addClass("k-expand-padding")),b._upArrow=d.eq(0),b._downArrow=d.eq(1)},_blur:function(){var a=this;a._toggleText(!0),a._change(a.element.val())},_click:function(a){var b=this;clearTimeout(b._focusing),b._focusing=setTimeout(function(){var c=a.target,d=E(c),e=c.value.substring(0,d),f=b._format(b.options.format),g=f[","],h=new RegExp("\\"+g,"g"),i=new RegExp("([\\d\\"+g+"]+)(\\"+f[v]+")?(\\d+)?"),j=i.exec(e),k=0;j&&(k=j[0].replace(h,"").length,e.indexOf("(")!=-1&&b._value<0&&k++),b._focusin(),E(b.element[0],k)})},_change:function(a){var b=this;b._update(a),a=b._value,b._old!=a&&(b._old=a,b.trigger(k),b.element.trigger(k))},_culture:function(a){return a||j(this.options.culture)},_focusin:function(){var a=this;a._toggleText(!1),a.element.focus(),a._inputWrapper.addClass(s)},_focusout:function(){var a=this;clearTimeout(a._focusing),a._inputWrapper.removeClass(s),a._blur()},_format:function(a,b){var c=this._culture(b).numberFormat;a=a.toLowerCase(),a.indexOf("c")>-1?c=c.currency:a.indexOf("p")>-1&&(c=c.percent);return c},_input:function(){var b=this,c="k-formatted-value",d=b.element.show()[0],e=b.wrapper,f;f=e.find(v+c),f[0]||(f=a("<input />").insertBefore(d).addClass(c)),d.type=y,f[0].type="text",f[0].style.cssText=d.style.cssText,f.attr("placeholder",b.options.placeholder),b._text=f.attr("readonly",!0).addClass(d.className)},_keydown:function(a){var b=this,c=a.keyCode;c==d.DOWN?b._step(-1):c==d.UP?b._step(1):c==d.ENTER&&b._change(b.element.val()),b._prevent(c)&&!a.ctrlKey&&a.preventDefault()},_paste:function(a){var b=this,c=a.target,d=c.value;setTimeout(function(){b._parse(c.value)===z&&b._update(d)})},_prevent:function(a){var b=this,c=b.element[0],e=c.value,f=b.options,g=f.min,h=b._format(f.format),i=h[v],j=f.decimals,k=E(c),l=!0,m;j===z&&(j=h.decimals),a>16&&a<21||a>32&&a<37||a>47&&a<58||a>95&&a<106||a==d.INSERT||a==d.DELETE||a==d.LEFT||a==d.RIGHT||a==d.TAB||a==d.BACKSPACE||a==d.ENTER?l=!1:B[a]===i&&j>0&&e.indexOf(i)==-1?l=!1:!(g===z||g<0)||e.indexOf("-")!=-1||a!=189&&a!=109||k!==0?a==110&&j>0&&e.indexOf(i)==-1&&(m=e.substring(k),c.value=e.substring(0,k)+i+m):l=!1;return l},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d._parse(c);if(!!c||a!=="step")e[a]=d._parse(c)},_spin:function(a,b){var c=this;b=b||500,clearTimeout(c._spinning),c._spinning=setTimeout(function(){c._spin(a,50)},b),c._step(a)},_step:function(a){var b=this,c=b.element,d=b._parse(c.val())||0;document.activeElement!=c[0]&&b._focusin(),d+=b.options.step*a,b._update(b._adjust(d)),b.trigger(n)},_toggleHover:function(b){i||a(b.currentTarget).toggleClass(t,b.type==="mouseenter")},_toggleText:function(a){var b=this;a=!!a,b._text.toggle(a),b.element.toggle(!a)},_parse:function(a,b){return g(a,this._culture(b),this.options.format)},_update:function(a){var b=this,d=b.options,e=d.format,f=d.decimals,g=b._culture(),h=b._format(e,g),i;f===z&&(f=h.decimals),a=b._parse(a,g),i=a!==z,i&&(a=parseFloat(a.toFixed(f))),b._value=a=b._adjust(a),b._placeholder(c.toString(a,e,g)),b.element.val(i?a.toString().replace(v,h[v]):"")},_placeholder:function(a){this._text.val(a),!h&&!a&&this._text.val(this.options.placeholder)},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-numerictextbox"),d.is("span.k-numerictextbox")||(d=c.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),d=d.wrap("<span/>").parent()),d[0].style.cssText=c[0].style.cssText,c[0].style.width="",b.wrapper=d.addClass("k-widget k-numerictextbox").show(),b._inputWrapper=a(d[0].firstChild)}});e.plugin(C)}(jQuery),function(a,b){function P(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(p),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(p)}function O(b){b=a(b),b.find(".k-icon").remove(),b.filter(":has(.k-group)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent().parent();b.append("<span class='k-icon "+(c.hasClass(n+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function N(b){b=a(b),b.addClass("k-item").children(l).addClass(u),b.children("a").addClass(o).children(l).addClass(u),b.filter(":not([disabled])").addClass(A),b.filter(".k-separator:empty").append(" "),b.filter("li[disabled]").addClass(B).removeAttr("disabled"),b.children("a").filter(":focus").parent().addClass("k-state-active"),b.children("."+o).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+o+"'/>"),O(b),P(b)}function M(b,c){try{return a.contains(b,c)}catch(d){return!1}}function L(a,b){a=a.split(" ")[!b+0]||a;var d={origin:["bottom","left"],position:["top","left"]},e=/left|right/.test(a);e?(d.origin=["top",a],d.position[1]=c.directions[a].reverse):(d.origin[0]=a,d.position[0]=c.directions[a].reverse),d.origin=d.origin.join(" "),d.position=d.position.join(" ");return d}function K(a,b){a=a.split(" ")[!b+0]||a;return a.replace("top","up").replace("bottom","down")}var c=window.kendo,d=c.ui,e=c.support.touch,f=a.extend,g=a.proxy,h=a.each,i=c.template,j=d.Widget,k=/^(ul|a|div)$/i,l="img",m="open",n="k-menu",o="k-link",p="k-last",q="close",r=e?"touchend":"click",s="timer",t="k-first",u="k-image",v="select",w="zIndex",x="mouseenter",y="mouseleave",z="kendoPopup",A="k-state-default",B="k-state-disabled",C=".k-group",D=":not(.k-list) > .k-item",E=".k-item.k-state-disabled",F=".k-item:not(.k-state-disabled)",G=".k-item:not(.k-state-disabled) > .k-link",H="div:not(.k-animation-container,.k-list-container)",I={content:i("<div class='k-content k-group'>#= content(item) #</div>"),group:i("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:i("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:i("<span class='#= arrowClass(item, group) #'></span>"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},J={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a){return o},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a,b){var c="k-icon";b.horizontal?c+=" k-i-arrow-s":c+=" k-i-arrow-e";return c},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group"},content:function(a){return a.content?a.content:" "}},Q=j.extend({init:function(b,d){var f=this;j.fn.init.call(f,b,d),b=f.wrapper=f.element,d=f.options,d.dataSource&&(f.element.empty(),f.append(d.dataSource,b)),f._updateClasses(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),f.nextItemZIndex=100,b.delegate(E,r,!1).delegate(F,r,g(f._click,f)),e?(d.openOnClick=!0,b.delegate(G,"touchstart touchend",f._toggleHover)):b.delegate(F,x,g(f._mouseenter,f)).delegate(F,y,g(f._mouseleave,f)).delegate(G,x+" "+y,f._toggleHover),d.openOnClick&&(f.clicked=!1,a(document).click(g(f._documentClick,f))),c.notify(f)},events:[m,q,v],options:{name:"Menu",animation:{open:{duration:200,show:!0},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find("> .k-group, .k-animation-container > .k-group"):null);h(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),O(this)}),O(c),P(d.group.find(".k-first, .k-last").add(d.items));return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());h(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),O(this),P(this)}),P(c);return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());h(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),O(this),P(this)}),P(c);return this},_insert:function(b,c,d){var e=this,g,h,i=[];if(!c||!c.length)d=e.element;var j=a.isPlainObject(b),k={firstLevel:d.hasClass(n),horizontal:d.hasClass(n+"-horizontal"),expanded:!0,length:d.children().length};c&&!d.length&&(d=a(Q.renderGroup({group:k})).appendTo(c)),j||a.isArray(b)?(g=a.map(j?[b]:b,function(b,c){return typeof b=="string"?a(b):a(Q.renderItem({group:k,item:f(b,{index:c})}))}),i=a.map(j?[b]:b,function(b,c){return b.content||b.contentUrl?a(Q.renderContent({item:f(b,{index:c})})):!1})):(g=a(b),h=g.find("> ul").addClass("k-group"),g=g.filter("li"),g.add(h.find("> li")).each(function(){N(this)}));return{items:g,group:d,contents:i}},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,D),d=a.parent("ul");a.remove();if(d&&!d.children(D).length){var e=d.parent(".k-animation-container");e.length?e.remove():d.remove()}c.length&&(c=c.eq(0),O(c),P(c));return b},open:function(c){var d=this,e=d.options,g=e.orientation=="horizontal",h=e.direction;c=d.element.find(c),/^(top|bottom|default)$/.test(h)&&(h=g?(h+" right").replace("default","bottom"):"right"),c.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var b=a(this).data("kendoPopup");b&&b.close()}),c.each(function(){var c=a(this);clearTimeout(c.data(s)),c.data(s,setTimeout(function(){var a=c.find(".k-group:first:hidden"),i;if(a[0]&&d.trigger(m,{item:c[0]})===!1){c.data(w,c.css(w)),c.css(w,d.nextItemZIndex++),i=a.data(z);var j=c.parent().hasClass(n),k=j&&g,l=L(h,j),o=e.animation.open.effects,p=o!==b?o:"slideIn:"+K(h,j);i?(i=a.data(z),i.options.origin=l.origin,i.options.position=l.position,i.options.animation.open.effects=p):i=a.kendoPopup({origin:l.origin,position:l.position,collision:e.popupCollision!==b?e.popupCollision:k?"fit":"fit flip",anchor:c,appendTo:c,animation:{open:f(!0,{effects:p},e.animation.open),close:e.animation.close},close:function(a){var b=a.sender.wrapper.parent();d.trigger(q,{item:b[0]})===!1?(b.css(w,b.data(w)),b.removeData(w)):a.preventDefault()}}).data(z),i.open()}},d.options.hoverDelay))});return d},close:function(b){var c=this;b=c.element.find(b),b[0]||(b=c.element.find(">.k-item")),b.each(function(){var b=a(this);clearTimeout(b.data(s)),b.data(s,setTimeout(function(){var a=b.find(".k-group:first:visible"),c;a[0]&&(c=a.data(z),c.close())},c.options.hoverDelay))});return c},_toggleDisabled:function(b,c){b=this.element.find(b),b.each(function(){a(this).toggleClass(A,c).toggleClass(B,!c)})},_toggleHover:function(b){var d=a(c.eventTarget(b)).closest(D);d.parents("li."+B).length||d.toggleClass("k-state-hover",b.type==x||b.type=="touchstart")},_updateClasses:function(){var a=this;a.element.addClass("k-widget k-reset k-header "+n).addClass(n+"-"+a.options.orientation);var b=a.element.find("li > ul").addClass("k-group").end().find("> li,.k-group > li");b.each(function(){N(this)})},_mouseenter:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(C).length;b.delegateTarget==d.parents(".k-menu")[0]&&((!c.options.openOnClick||c.clicked)&&!M(b.currentTarget,b.relatedTarget)&&e&&c.open(d),c.options.openOnClick&&c.clicked&&d.siblings().each(g(function(a,b){c.close(b)},c)))},_mouseleave:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(C).length;d.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?b.stopImmediatePropagation():!c.options.openOnClick&&!M(b.currentTarget,b.relatedTarget)&&e&&c.close(d)},_click:function(b){var d=this,f,h=a(c.eventTarget(b)),i=h.closest("."+o),j=i.attr("href"),k=h.closest(D),l=!!j&&j.charAt(j.length-1)!="#";if(!k.children(H)[0]){if(k.hasClass(B)){b.preventDefault();return}e&&k.siblings().each(g(function(a,b){d.close(b)},d)),!b.handled&&d.trigger(v,{item:k[0]})&&b.preventDefault(),b.handled=!0,d.options.closeOnClick&&!(j&&j.length>0)&&!k.children(C+",.k-animation-container").length&&d.close(i.parentsUntil(d.element,D));if((!k.parent().hasClass(n)||!d.options.openOnClick)&&!e)return;l||b.preventDefault(),d.clicked=!0,f=k.children(".k-animation-container, .k-group").is(":visible")?q:m,d[f](k)}},_documentClick:function(a){var b=this;M(b.element[0],a.target)||(b.clicked=!1)}});f(Q,{renderItem:function(a){a=f({menu:{},group:{}},a);var b=I.empty,c=a.item;return I.item(f(a,{image:c.imageUrl?I.image:b,sprite:c.spriteCssClass?I.sprite:b,itemWrapper:I.itemWrapper,arrow:c.items||c.content?I.arrow:b,subGroup:Q.renderGroup},J))},renderGroup:function(a){return I.group(f({renderItems:function(a){var b="",c=0,d=a.items,e=d?d.length:0,g=f({length:e},a.group);for(;c<e;c++)b+=Q.renderItem(f(a,{group:g,item:f({index:c},d[c])}));return b}},a,J))},renderContent:function(a){return I.content(f(a,J))}}),c.ui.plugin(Q)}(jQuery),function(a,b){function p(a){var b,c,d,e,f,g;if(a&&a.length){g=[];for(b=0,c=a.length;b<c;b++)d=a[b],f=d.text||d.value||d,e=d.value==null?d.text||d:d.value,g[b]={text:f,value:e}}return g}function o(a){var b=(a.model.fields||a.model)[a.field],d=m(b),e=b?b.validation:{},f,j=c.attr("type"),k=c.attr("bind"),n,o={name:a.field};for(f in e)n=e[f],i(f,l)>=0?o[j]=f:g(n)||(o[f]=h(n)?n.value||f:n),o[c.attr(f+"-msg")]=n.message;i(d,l)>=0&&(o[j]=d),o[k]=(d==="boolean"?"checked:":"value:")+a.field;return o}function n(b){b.find(":input:not(:button, ["+c.attr("role")+"=upload], ["+c.attr("skip")+"]), select").each(function(){var b=c.attr("bind"),d=this.getAttribute(b)||"",e=this.type==="checkbox"?"checked:":"value:",f=this.name;d.indexOf(e)===-1&&f&&(d+=(d.length?",":"")+e+f,a(this).attr(b,d))})}function m(b){b=b!=null?b:"";return b.type||a.type(b)||"string"}var c=window.kendo,d=c.ui,e=d.Widget,f=a.extend,g=a.isFunction,h=a.isPlainObject,i=a.inArray,j='<div class="k-widget k-tooltip k-tooltip-validation" style="margin:0.5em"><span class="k-icon k-warning"> </span>${message}<div class="k-callout k-callout-n"></div></div>',k="change",l=["url","email","number","date","boolean"],q={number:function(b,d){var e=o(d);a('<input type="text"/>').attr(e).appendTo(b).kendoNumericTextBox({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},date:function(b,d){var e=o(d);e[c.attr("format")]=d.format,a('<input type="text"/>').attr(e).appendTo(b).kendoDatePicker({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},string:function(b,c){var d=o(c);a('<input type="text" class="k-input k-textbox"/>').attr(d).appendTo(b)},"boolean":function(b,c){var d=o(c);a('<input type="checkbox" />').attr(d).appendTo(b)},values:function(b,d){var e=o(d);a("<select "+c.attr("text-field")+'="text"'+c.attr("value-field")+'="value"'+c.attr("source")+"='"+c.stringify(p(d.values))+"'"+c.attr("role")+'="dropdownlist"/>').attr(e).appendTo(b),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)}},r=e.extend({init:function(b,c){var d=this;e.fn.init.call(d,b,c),d._validateProxy=a.proxy(d._validate,d),d.refresh()},events:[k],options:{name:"Editable",editors:q,clearContainer:!0,errorTemplate:j},editor:function(a,b){var c=this,d=c.options.editors,e=h(a),g=e?a.field:a,i=c.options.model||{},j=e&&a.values,k=j?"values":m(b),l=e&&a.editor,n=l?a.editor:d[k],o=c.element.find("[data-container-for="+g+"]");n=n?n:d.string,l&&typeof a.editor=="string"&&(n=function(b){b.append(a.editor)}),o=o.length?o:c.element,n(o,f(!0,{},e?a:{field:g},{model:i}))},_validate:function(b){var d=this,e=typeof b.value=="boolean",f,g=d._validationEventInProgress,h={};h[b.field]=b.value,f=a(":input["+c.attr("bind")+'="'+(e?"checked:":"value:")+b.field+'"]',d.element);try{d._validationEventInProgress=!0,(!d.validatable.validateInput(f)||!g&&d.trigger(k,{values:h}))&&b.preventDefault()}finally{d._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){this.options.model.unbind("set",this._validateProxy),c.unbind(this.element),this.element.removeData("kendoValidator").removeData("kendoEditable")},refresh:function(){var d=this,e,f,i=d.options.fields||[],j=d.options.clearContainer?d.element.empty():d.element,k=d.options.model||{},l={};a.isArray(i)||(i=[i]);for(e=0,f=i.length;e<f;e++){var m=i[e],o=h(m),p=o?m.field:m,q=(k.fields||k)[p],r=q?q.validation||{}:{};for(var s in r)g(r[s])&&(l[s]=r[s]);d.editor(m,q)}n(j),c.bind(j,d.options.model),d.options.model.bind("set",d._validateProxy),d.validatable=j.kendoValidator({validateOnBlur:!1,errorTemplate:d.options.errorTemplate||b,rules:l}).data("kendoValidator"),j.find(":input:visible:first").focus()}});d.plugin(r)}(jQuery),function(a,b){function o(a){var b,c,d,e,f,g;if(a&&a.length){g=[];for(b=0,c=a.length;b<c;b++)d=a[b],f=d.text||d.value||d,e=d.value==null?d.text||d:d.value,g[b]={text:f,value:e}}return g}function n(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){n(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e="kendoNumericTextBox",f="kendoDatePicker",g=a.proxy,h="kendoPopup",i="Is equal to",j="Is not equal to",k=d.Widget,l='<div><div class="k-filter-help-text">#=messages.info#</div><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value"/>#=messages.isTrue#</label><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value"/>#=messages.isFalse#</label><button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',m='<div><div class="k-filter-help-text">#=messages.info#</div><select data-#=ns#bind="value: filters[0].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[0].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values)#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value:filters[0].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##if(extra){#<select class="k-filter-and" data-#=ns#bind="value: logic" data-#=ns#role="dropdownlist"><option value="and">#=messages.and#</option><option value="or">#=messages.or#</option></select><select data-#=ns#bind="value: filters[1].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[1].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values)#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value: filters[1].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##}#<button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',p=k.extend({init:function(b,d){var i=this,j="string",n,p,q;k.fn.init.call(i,b,d),q=d.operators||{},b=i.element,d=i.options,d.appendToElement?i.link=a():(n=b.addClass("k-filterable").find(".k-grid-filter"),n[0]||(n=b.prepend('<a class="k-grid-filter" href="#"><span class="k-icon k-filter"/></a>').find(".k-grid-filter")),i._clickHandler=g(i._click,i),n.click(i._clickHandler)),i.dataSource=d.dataSource.bind("change",g(i.refresh,i)),i.field=d.field||b.attr(c.attr("field")),i.model=i.dataSource.reader.model,i._parse=function(a){return a+""},i.model&&i.model.fields&&(p=i.model.fields[i.field],p&&(j=p.type||"string",i._parse=g(p.parse,p))),d.values&&(j="enums"),q=q[j]||d.operators[j],i.form=a('<form class="k-filter-menu"/>'),i.form.html(c.template(j==="boolean"?l:m)({field:i.field,ns:c.ns,messages:d.messages,extra:d.extra,operators:q,type:j,values:o(d.values)})),d.appendToElement?(b.append(i.form),i.popup=i.element.closest(".k-popup").data(h)):(i.popup=i.form[h]({anchor:n,open:g(i._open,i)}).data(h),i.link=n),i.form.bind({submit:g(i._submit,i),reset:g(i._reset,i)}).find("["+c.attr("type")+"=number]").removeClass("k-textbox")[e]().end().find("["+c.attr("type")+"=date]").removeClass("k-textbox")[f](),i.refresh()},refresh:function(){var a=this,b=a.dataSource.filter()||{filters:[],logic:"and"};a.filterModel=c.observable({logic:"and",filters:[{field:a.field,operator:"eq",value:""},{field:a.field,operator:"eq",value:""}]}),c.bind(a.form,a.filterModel),a._bind(b)?a.link.addClass("k-state-active"):a.link.removeClass("k-state-active")},destroy:function(){c.unbind(this.form),this.form.remove(),this.form.removeData(h),this.link.unbind("click",this._clickHandler),this.element.removeData("kendoFilterMenu")},_bind:function(a){var b=this,c=a.filters,d,e,f=!1,g=0,h=b.filterModel,i,j;for(d=0,e=c.length;d<e;d++)j=c[d],j.field==b.field?(h.set("logic",a.logic),i=h.filters[g],i.set("value",b._parse(j.value)),i.set("operator",j.operator),g++,f=!0):j.filters&&(f=f||b._bind(j));return f},_merge:function(b){var c=this,d=b.logic||"and",e=b.filters,f,g=c.dataSource.filter()||{filters:[],logic:"and"},h,i;n(g,c.field),e=a.grep(e,function(a){return a.value!==""});for(h=0,i=e.length;h<i;h++)f=e[h],f.value=c._parse(f.value);e.length&&(g.filters.length?(b.filters=e,g.logic!=="and"&&(g.filters=[{logic:g.logic,filters:g.filters}],g.logic="and"),e.length>1?g.filters.push(b):g.filters.push(e[0])):(g.filters=e,g.logic=d));return g},filter:function(a){a=this._merge(a),a.filters.length&&this.dataSource.filter(a)},clear:function(){var b=this,c=b.dataSource.filter()||{filters:[]};c.filters=a.grep(c.filters,function(c){if(c.filters){c.filters=a.grep(c.filters,function(a){return a.field!=b.field});return c.filters.length}return c.field!=b.field}),c.filters.length||(c=null),b.dataSource.filter(c)},_submit:function(a){var b=this;a.preventDefault(),b.filter(b.filterModel.toJSON()),b.popup.close()},_reset:function(a){this.clear(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){var b;a(".k-filter-menu").not(this.form).each(function(){b=a(this).data(h),b&&b.close()})},options:{name:"FilterMenu",extra:!0,appendToElement:!1,type:"string",operators:{string:{eq:i,neq:j,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with"},number:{eq:i,neq:j,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"},date:{eq:i,neq:j,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before"},enums:{eq:i,neq:j}},messages:{info:"Show items with value that:",isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear",and:"And",or:"Or",selectValue:"-Select value-"}}});d.plugin(p)}(jQuery),function(a,b){function U(a,b){a.find(J).removeClass(E.substr(1)),a.find(K).removeClass(G.substr(1)),b.addClass(E.substr(1)),b.parentsUntil(a,p).filter(":has(.k-header)").addClass(G.substr(1))}function T(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(r),b.filter(".k-last:not(:last-child)").removeClass(l),b.filter(":first-child").addClass(r),b.filter(":last-child").addClass(l)}function S(b){b=a(b),b.children(".k-link").children(".k-icon").remove(),b.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent();b.append("<span class='k-icon "+(c.hasClass(B.substr(1))?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function R(b,c){b=a(b).addClass("k-item"),b.children(j).addClass(q),b.children("a").addClass(m).children(j).addClass(q),b.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),b.filter("li[disabled]").addClass("k-state-disabled").removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(B.substr(1)),b.find(">div").addClass(u).css({display:"none"}),b.each(function(){var b=a(this);b.children("."+m).length||b.contents().filter(function(){return!this.nodeName.match(i)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+m+"'/>")}),c.find(" > li > ."+m).addClass("k-header")}var c=window.kendo,d=c.ui,e=a.extend,f=a.each,g=c.template,h=d.Widget,i=/^(ul|a|div)$/i,j="img",k="href",l="k-last",m="k-link",n="error",o="click",p=".k-item",q="k-image",r="k-first",s="expand",t="select",u="k-content",v="activate",w="collapse",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-state-active",C="> .k-panel",D="> .k-content",E=".k-state-selected",F=".k-state-disabled",G=".k-state-highlighted",H=p+":not(.k-state-disabled) .k-link",I=p+".k-state-disabled .k-link",J="> li > .k-state-selected, .k-panel > li > .k-state-selected",K="> .k-state-highlighted, .k-panel > .k-state-highlighted",L="k-state-default",M=":visible",N=":empty",O="single",P={content:g("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:g("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:g("<#= tag(item) # class='#= textClass(item, group) #'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:g("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:g("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:g("<span class='#= arrowClass(item) #'></span>"),sprite:g("<span class='k-sprite #= spriteCssClass #'></span>"),empty:g("")},Q={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":b.expanded===!0?c+=" k-state-active":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a,b){var c=m;b.firstLevel&&(c+=" k-header");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a){var b="k-icon";b+=a.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand";return b},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group k-panel"},contentAttributes:function(a){return a.item.expanded!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},V=h.extend({init:function(b,d){var e=this,f;h.fn.init.call(e,b,d),b=e.wrapper=e.element,d=e.options,d.dataSource&&(e.element.empty(),e.append(d.dataSource,b)),e._updateClasses(),d.animation===!1&&(d.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),b.delegate(H,o,a.proxy(e._click,e)).delegate(H,y+" "+z,e._toggleHover).delegate(I,o,!1),d.contentUrls&&b.find("> .k-item").each(function(b,c){a(c).find("."+m).data(x,d.contentUrls[b])}),f=b.find("li"+B+" > ."+u),f.length>0&&e.expand(f.parent(),!1),c.notify(e)},events:[s,w,t,v,n,A],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:200}},expandMode:"multiple"},expand:function(b,c){var d=this,e={};c=c!==!1,b=this.element.find(b),b.each(function(f,g){g=a(g);var h=g.find(C).add(g.find(D));if(!g.hasClass(F)&&h.length>0){if(d.options.expandMode==O&&d._collapseAllExpanded(g))return d;b.find(G).removeClass(G.substr(1)),g.addClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(s,g)||d._toggleItem(g,!1,null),c||(d.options.animation=e)}});return d},collapse:function(b,c){var d=this,e={};c=c!==!1,b=d.element.find(b),b.each(function(b,f){f=a(f);var g=f.find(C).add(f.find(D));!f.hasClass(F)&&g.is(M)&&(f.removeClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(w,f)||d._toggleItem(f,!0,null),c||(d.options.animation=e))});return d},_toggleDisabled:function(a,b){a=this.element.find(a),a.toggleClass(L,b).toggleClass(F.substr(1),!b)},select:function(b){var c=this;b=c.element.find(b);if(arguments.length===0)return c.element.find(J).parent();b.each(function(b,d){d=a(d);var e=d.children("."+m);if(d.is(F))return c;U(c.element,e)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find(C):null);f(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),T(this)}),S(c),T(d.group.find(".k-first, .k-last")),d.group.height("auto");return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,p),d=a.parent("ul");a.remove(),d&&!d.hasClass("k-panelbar")&&!d.children(p).length&&d.remove(),c.length&&(c=c.eq(0),S(c),T(c));return b},reload:function(b){var c=this;b=c.element.find(b),b.each(function(){var b=a(this);c._ajaxRequest(b,b.children("."+u),!b.is(M))})},_insert:function(b,c,d){var f=this,g,h=[];if(!c||!c.length)d=f.element;var i=a.isPlainObject(b),j={firstLevel:d.hasClass("k-panelbar"),expanded:d.parent().hasClass("k-state-active"),length:d.children().length};c&&!d.length&&(d=a(V.renderGroup({group:j})).appendTo(c)),i||a.isArray(b)?(g=a.map(i?[b]:b,function(b,c){return typeof b=="string"?a(b):a(V.renderItem({group:j,item:e(b,{index:c})}))}),h=a.map(i?[b]:b,function(b,c){return b.content||b.contentUrl?a(V.renderContent({item:e(b,{index:c})})):!1})):(g=a(b),R(g,f.element));return{items:g,group:d,contents:h}},_toggleHover:function(b){var c=a(b.currentTarget);c.parents("li"+F).length||c.toggleClass("k-state-hover",b.type==y)},_updateClasses:function(){var b=this;b.element.addClass("k-widget k-reset k-header k-panelbar");var c=b.element.find("li > ul").not(function(){return a(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").add(b.element),d=c.find("> li:not("+B+") > ul").css({display:"none"}).end().find("> li");d.each(function(){R(this,b.element)}),S(d),T(d)},_click:function(b){var c=this,d=a(b.currentTarget),e=c.element;if(!d.parents("li"+F).length){if(d.closest(".k-widget")[0]!=e[0])return;var f=d.closest("."+m),g=f.closest(p);U(e,f);var h=g.find(C).add(g.find(D)),i=f.attr(k),j=f.data(x)||i&&(i.charAt(i.length-1)=="#"||i.indexOf("#"+c.element[0].id+"-")!=-1);if(h.data("animating"))return;c._triggerEvent(t,g)&&b.preventDefault();if(j||h.length)b.preventDefault();else return;if(c.options.expandMode==O&&c._collapseAllExpanded(g))return;if(h.length){var l=h.is(M);c._triggerEvent(l?w:s,g)||c._toggleItem(g,l,b)}}},_toggleItem:function(a,b,c){var d=this,e=a.find(C);if(e.length)this._toggleGroup(e,b),c&&c.preventDefault();else{var f=a.find("> ."+u);f.length&&(c&&c.preventDefault(),f.is(N)?d._ajaxRequest(a,f,b):d._toggleGroup(f,b))}},_toggleGroup:function(a,b){var c=this,d=c.options.animation,f=d.expand,g=e({},d.collapse),h=g&&"effects"in g;a.is(M)==b&&(a.parent().toggleClass(L,b).toggleClass(B.substr(1),!b).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!b).toggleClass("k-panelbar-collapse",!b).toggleClass("k-i-arrow-s",b).toggleClass("k-panelbar-expand",b),b?f=e(h?g:e({reverse:!0},f),{show:!1,hide:!0}):f=e({complete:function(a){c._triggerEvent(v,a.closest(p))}},f),a.kendoStop(!0,!0).kendoAnimate(f))},_collapseAllExpanded:function(b){var c=this,d,e=!1;if(b.find("> ."+m).hasClass("k-header")){var f=b.find(C).add(b.find(D));f.is(M)&&(e=!0),!f.is(M)&&f.length!==0&&(d=a(c.element).children(),d.find(C).add(d.find(D)).filter(function(){return a(this).is(M)}).each(function(b,d){d=a(d),e=c._triggerEvent(w,d.closest(p)),e||c._toggleGroup(d,!0)}));return e}},_ajaxRequest:function(b,c,d){var e=this,f=b.find(".k-panelbar-collapse, .k-panelbar-expand"),g=b.find("."+m),h=setTimeout(function(){f.addClass("k-loading")},100),i={};a.ajax({type:"GET",cache:!1,url:g.data(x)||g.attr(k),dataType:"html",data:i,error:function(a,b){f.removeClass("k-loading"),e.trigger(n,{xhr:a,status:b})&&this.complete()},complete:function(){clearTimeout(h),f.removeClass("k-loading")},success:function(a,f){c.html(a),e._toggleGroup(c,d),e.trigger(A,{item:b[0],contentElement:c[0]})}})},_triggerEvent:function(a,b){var c=this;return c.trigger(a,{item:b[0]})}});e(V,{renderItem:function(a){a=e({panelBar:{},group:{}},a);var b=P.empty,c=a.item;return P.item(e(a,{image:c.imageUrl?P.image:b,sprite:c.spriteCssClass?P.sprite:b,itemWrapper:P.itemWrapper,arrow:c.items||c.content||c.contentUrl?P.arrow:b,subGroup:V.renderGroup},Q))},renderGroup:function(a){return P.group(e({renderItems:function(a){var b="",c=0,d=a.items,f=d?d.length:0,g=e({length:f},a.group);for(;c<f;c++)b+=V.renderItem(e(a,{group:g,item:e({index:c},d[c])}));return b}},a,Q))},renderContent:function(a){return P.content(e(a,Q))}}),c.ui.plugin(V)}(jQuery),function(a,b){function M(a){var b=a.children(".k-item");b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(o),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(o)}function L(b){b.children(l).addClass(s),b.children("a").addClass(n).children(l).addClass(s),b.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(F),b.filter("li[disabled]").addClass(E).removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(G+" "+I),b.each(function(){var b=a(this);b.children("."+n).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!g(this.nodeValue))}).wrapAll("<a class='"+n+"'/>")})}var c=window.kendo,d=c.ui,e=a.map,f=a.each,g=a.trim,h=a.extend,i=c.template,j=d.Widget,k=/^(a|div)$/i,l="img",m="href",n="k-link",o="k-last",p="click",q="error",r=":empty",s="k-image",t="k-first",u="select",v="activate",w="k-content",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-tabstrip-items > .k-item:not(.k-state-disabled)",C=".k-tabstrip-items > .k-item:not(.k-state-disabled):not(.k-state-active)",D=".k-tabstrip-items > .k-state-disabled .k-link",E="k-state-disabled",F="k-state-default",G="k-state-active",H="k-state-hover",I="k-tab-on-top",J={content:i("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),itemWrapper:i("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},K={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},contentAttributes:function(a){return a.active!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},N=j.extend({init:function(b,d){var e=this;e._animations(d),j.fn.init.call(e,b,d),e.element.is("ul")?e.wrapper=e.element.wrapAll("<div />").parent():e.wrapper=e.element,d=e.options,e.wrapper.delegate(B,p,a.proxy(e._click,e)).delegate(C,y+" "+z,e._toggleHover).delegate(D,p,!1),e._updateClasses(),e._dataSource(),d.dataSource&&e.dataSource.fetch(),e.options.contentUrls&&e.wrapper.find(".k-tabstrip-items > .k-item").each(function(b,c){a(c).find(">."+n).data(x,e.options.contentUrls[b])});var f=e.wrapper.find("li."+G),g=a(e.contentElement(f.parent().children().index(f)));g.length>0&&g[0].childNodes.length===0&&e.activateTab(f.eq(0)),c.notify(e)},_dataSource:function(){var b=this;b.dataSource&&b._refreshHandler?b.dataSource.unbind("change",b._refreshHandler):b._refreshHandler=a.proxy(b.refresh,b),b.dataSource=c.data.DataSource.create(b.options.dataSource).bind("change",b._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),a.fetch()},_animations:function(a){a&&"animation"in a&&!a.animation&&(a.animation={open:{effects:{},show:!0},close:{effects:{}}})},refresh:function(a){var b=this,d=b.options,e=c.getter(d.dataTextField),f=c.getter(d.dataContentField),g=c.getter(d.dataContentUrlField),h=c.getter(d.dataImageUrlField),i=c.getter(d.dataUrlField),j=c.getter(d.dataSpriteCssClass),k,l=[],m,n,o=b.dataSource.view(),p;a=a||{},n=a.action,n&&(o=a.items);for(k=0,p=o.length;k<p;k++)m={text:e(o[k])},d.dataContentField&&(m.content=f(o[k])),d.dataContentUrlField&&(m.contentUrl=g(o[k])),d.dataUrlField&&(m.url=i(o[k])),d.dataImageUrlField&&(m.imageUrl=h(o[k])),d.dataSpriteCssClass&&(m.spriteCssClass=j(o[k])),l[k]=m;if(a.action=="add")a.index<b.tabGroup.children().length?b.insertBefore(l,b.tabGroup.children().eq(a.index)):b.append(l);else if(a.action=="remove")for(k=0;k<o.length;k++)b.remove(a.index);else a.action=="itemchange"?(k=b.dataSource.view().indexOf(o[0]),a.field===d.dataTextField&&b.tabGroup.children().eq(k).find(".k-link").text(o[0].get(a.field))):(b.trigger("dataBinding"),b.append(l),b.trigger("dataBound"))},value:function(c){var d=this;if(c!==b)c!=d.value()&&d.tabGroup.children().each(function(){a.trim(a(this).text())==c&&d.select(this)});else return d.select().text()},items:function(){return this.tabGroup[0].children},setOptions:function(a){var b=this.options.animation;this._animations(a),a.animation=h(!0,b,a.animation),j.fn.setOptions.call(this,a)},events:[u,v,q,A,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200,show:!0},close:{duration:200}},collapsible:!1},select:function(b){var c=this;if(arguments.length===0)return c.wrapper.find("li."+G);isNaN(b)||(b=c.tabGroup.children().get(b)),b=c.element.find(b),a(b).each(function(b,d){d=a(d),!d.hasClass(G)&&!c.trigger(u,{item:d[0],contentElement:c.contentElement(d.index())})&&c.activateTab(d)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},reload:function(b){b=this.tabGroup.find(b);var c=this;b.each(function(){var b=a(this),d=b.find("."+n).data(x);d&&c.ajaxRequest(b,a(c.contentElement(b.index())),null,d)});return c},append:function(a){var b=this,c=b._create(a);f(c.tabs,function(a){b.tabGroup.append(this),b.wrapper.append(c.contents[a])}),M(b.tabGroup),b._updateContentElements();return b},insertBefore:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.before(this),g.before(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},insertAfter:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.after(this),g.after(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},remove:function(b){var c=this,d=typeof b,e;d==="string"?b=c.tabGroup.find(b):d==="number"&&(b=c.tabGroup.children().eq(b)),e=a(c.contentElement(b.index())),e.remove(),b.remove(),c._updateContentElements();return c},_create:function(b){var c=a.isPlainObject(b),d=this,f,g;c||a.isArray(b)?(b=a.isArray(b)?b:[b],f=e(b,function(b,c){return a(N.renderItem({group:d.tabGroup,item:h(b,{index:c})}))}),g=e(b,function(b,c){if(b.content||b.contentUrl)return a(N.renderContent({item:h(b,{index:c})}))})):(f=a(b),g=a("<div class='"+w+"'/>"),L(f));return{tabs:f,contents:g}},_toggleDisabled:function(b,c){b=this.tabGroup.find(b),b.each(function(){a(this).toggleClass(F,c).toggleClass(E,!c)})},_updateClasses:function(){var c=this,d,e,f;c.wrapper.addClass("k-widget k-header k-tabstrip"),c.tabGroup=c.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),c.tabGroup[0]||(c.tabGroup=a("<ul class='k-tabstrip-items k-reset'/>").appendTo(c.wrapper)),d=c.tabGroup.find("li").addClass("k-item"),d.length&&(e=d.filter("."+G).index(),f=e>=0?e:b,c.tabGroup.contents().filter(function(){return this.nodeType==3&&!g(this.nodeValue)}).remove()),d.eq(e).addClass(I),c.contentElements=c.wrapper.children("div"),c.contentElements.addClass(w).eq(f).addClass(G).css({display:"block"}),d.length&&(L(d),M(c.tabGroup),c._updateContentElements())},_updateContentElements:function(){var b=this,d=b.options.contentUrls||[],e=b.element.attr("id"),f=b.wrapper.children("div");b.tabGroup.find(".k-item").each(function(c){var g=f.eq(c),h=e+"-"+(c+1);!g.length&&d[c]?a("<div id='"+h+"' class='"+w+"'/>").appendTo(b.wrapper):g.attr("id",h)}),b.contentElements=b.contentAnimators=b.wrapper.children("div"),c.support.touch&&c.mobile.ui.Scroller&&(c.touchScroller(b.contentElements),b.contentElements=b.contentElements.children(".km-scroll-container"))},_toggleHover:function(b){a(b.currentTarget).toggleClass(H,b.type==y)},_click:function(b){var c=this,d=a(b.currentTarget),e=d.find("."+n),f=e.attr(m),g=c.options.collapsible,h=a(c.contentElement(d.index()));if(d.closest(".k-widget")[0]==c.wrapper[0]){if(d.is("."+E+(g?"":",."+G))){b.preventDefault();return}if(c.tabGroup.children("[data-animating], [data-in-request]").length)return;if(c.trigger(u,{item:d[0],contentElement:h[0]}))b.preventDefault();else{var i=e.data(x)||f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+c.element[0].id+"-")!=-1);if(!f||i)b.preventDefault();else return;if(g&&d.is("."+G)){c.deactivateTab(d),b.preventDefault();return}c.activateTab(d)&&b.preventDefault()}}},deactivateTab:function(a){var b=this,d=b.options.animation,e=d.open,f=h({},d.close),g=f&&"effects"in f;a=b.tabGroup.find(a),f=h(g?f:h({reverse:!0},e),{show:!1,hide:!0}),c.size(e.effects)?(a.kendoAddClass(F,{duration:e.duration}),a.kendoRemoveClass(G,{duration:e.duration})):(a.addClass(F),a.removeClass(G)),b.contentAnimators.filter("."+G).kendoStop(!0,!0).kendoAnimate(f).removeClass(G)},activateTab:function(b){b=this.tabGroup.find(b);var d=this,e=d.options.animation,f=e.open,g=h({},e.close),i=g&&"effects"in g,j=b.parent().children(),k=j.filter("."+G),l=j.index(b);g=h(i?g:h({reverse:!0},f),{show:!1,hide:!0}),c.size(f.effects)?(k.kendoRemoveClass(G,{duration:g.duration}),b.kendoRemoveClass(H,{duration:g.duration})):(k.removeClass(G),b.removeClass(H));var m=d.contentAnimators;if(m.length===0){k.removeClass(I),b.addClass(I).css("z-index"),b.addClass(G),d.trigger("change");return!1}var o=m.filter("."+G),p=a(d.contentElement(l));if(p.length===0){o.removeClass(G).kendoStop(!0,!0).kendoAnimate(g);return!1}b.attr("data-animating",!0);var q=(b.children("."+n).data(x)||!1)&&p.is(r),s=function(){k.removeClass(I),b.addClass(I).css("z-index"),c.size(f.effects)?(k.kendoAddClass(F,{duration:f.duration}),b.kendoAddClass(G,{duration:f.duration})):(k.addClass(F),b.addClass(G)),p.closest(".k-content").addClass(G).kendoStop(!0,!0).kendoAnimate(h({init:function(){d.trigger(v,{item:b[0],contentElement:p[0]})}},f,{complete:function(){b.removeAttr("data-animating")}}))},t=function(){q?d.ajaxRequest(b,p,function(){s(),d.trigger("change")}):(s(),d.trigger("change"))};o.removeClass(G),o.length?o.kendoStop(!0,!0).kendoAnimate(h({complete:t},g)):t();return!0},contentElement:function(a){if(!isNaN(a-0)){var b=this.contentElements,c=new RegExp("-"+(a+1)+"$");for(var d=0,e=b.length;d<e;d++)if(c.test(b.closest(".k-content")[d].id))return b[d]}},ajaxRequest:function(b,c,d,e){b=this.tabGroup.find(b);if(!b.find(".k-loading").length){var f=this,g=b.find("."+n),h={},i=null,j=setTimeout(function(){i=a("<span class='k-icon k-loading'/>").prependTo(g)},100);b.attr("data-in-request",!0),a.ajax({type:"GET",cache:!1,url:e||g.data(x)||g.attr(m),dataType:"html",data:h,error:function(a,c){b.removeAttr("data-animating"),f.trigger("error",{xhr:a,status:c})&&this.complete()},complete:function(){b.removeAttr("data-in-request"),clearTimeout(j),i!==null&&i.remove()},success:function(a,e){c.html(a),d&&d.call(f,c),f.trigger(A,{item:b[0],contentElement:c[0]})}})}}});h(N,{renderItem:function(a){a=h({tabStrip:{},group:{}},a);var b=J.empty,c=a.item;return J.item(h(a,{image:c.imageUrl?J.image:b,sprite:c.spriteCssClass?J.sprite:b,itemWrapper:J.itemWrapper},K))},renderContent:function(a){return J.content(h(a,K))}}),c.ui.plugin(N)}(jQuery),function(a,b){function K(a){a.preventDefault()}function J(a){var b=a.parseFormats;a.format=f(a.format||c.getCulture(a.culture).calendars.standard.patterns.t),b=y(b)?b:[b],b.splice(0,0,a.format),a.parseFormats=b}function H(a,b,c){var d=G(b),e=G(c),f;if(!a||d==e)return!0;f=G(a),d>f&&(f+=v),e<d&&(e+=v);return f>=d&&f<=e}function G(a){return a.getHours()*60*u+a.getMinutes()*u+a.getSeconds()*1e3+a.getMilliseconds()}function F(){var a=new B,b=new B(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),c=new B(a.getFullYear(),a.getMonth(),a.getDate(),12,0,0);return-1*(b.getTimezoneOffset()-c.getTimezoneOffset())}function E(a,b,c){var d=a.getTimezoneOffset(),e;a.setTime(a.getTime()+b),c||(e=a.getTimezoneOffset()-d,a.setTime(a.getTime()+e*u))}var c=window.kendo,d=c.support.touch,e=c.keys,f=c._extractFormat,g=c.ui,h=g.Widget,i="open",j="close",k="change",l=d?"touchend":"click",m="k-state-default",n="disabled",o="li",p="<span/>",q="k-state-focused",r="k-state-hover",s="mouseenter mouseleave",t="mousedown",u=6e4,v=864e5,w="k-state-selected",x="k-state-disabled",y=a.isArray,z=a.extend,A=a.proxy,B=Date,C=new B;C=new B(C.getFullYear(),C.getMonth(),C.getDate(),0,0,0);var D=function(b){var d=this;d.options=b,d.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(o,l,A(d._click,d)).delegate(o,"mouseenter",function(){a(this).addClass(r)}).delegate(o,"mouseleave",function(){a(this).removeClass(r)}),d.list=a("<div class='k-list-container'/>").append(d.ul).mousedown(K),d._popup(),d.template=c.template('<li class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};D.prototype={current:function(c){var d=this;if(c!==b)d._current&&d._current.removeClass(w),c&&(c=a(c),c.addClass(w),d.scroll(c[0])),d._current=c;else return d._current},close:function(){this.popup.close()},open:function(){var a=this;a.ul[0].firstChild||a.bind(),a.popup.open(),a._current&&a.scroll(a._current[0])},dataBind:function(a){var b=this,d=b.options,e=d.format,f=c.toString,g=b.template,h=a.length,i=0,j,k="";for(;i<h;i++)j=a[i],H(j,d.min,d.max)&&(k+=g(f(j,e,d.culture)));b._html(k,h)},refresh:function(){var a=this,b=a.options,d=b.format,e=F(),f=e<0,g=b.min,h=b.max,i=G(g),j=G(h),k=b.interval*u,l=c.toString,m=a.template,n=new B(g),o=0,p,q="";f?p=(v+e*u)/k:p=v/k,i!=j&&(i>j&&(j+=v),p=(j-i)/k+1);for(;o<p;o++)o&&E(n,k,f),j&&G(n)>j&&(n=new B(h)),q+=m(l(n,d,b.culture));a._html(q,p)},bind:function(){var a=this,b=a.options.dates;b&&b[0]?a.dataBind(b):a.refresh()},_html:function(a,b){var c=this;c.ul[0].innerHTML=a,c._height(b),c.current(null),c.select(c._value)},scroll:function(a){if(!!a){var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},select:function(b){var d=this,e=d.options,f=d._current;b instanceof Date&&(b=c.toString(b,e.format,e.culture)),typeof b=="string"&&(!f||f.text()!==b?(b=a.grep(d.ul[0].childNodes,function(a){return(a.textContent||a.innerText)==b}),b=b[0]?b:null):b=f),d.current(b)},toggle:function(){var a=this;a.popup.visible()?a.close():a.open()},value:function(a){var b=this;b._value=a,b.ul[0].firstChild&&b.select(a)},_click:function(b){var c=this,d=a(b.currentTarget);b.isDefaultPrevented()||(c.select(d),c.options.change(d.text(),!0),c.close())},_height:function(a){if(a){var b=this,c=b.list,d=c.parent(".k-animation-container"),e=b.options.height;c.add(d).show().height(b.ul[0].scrollHeight>e?e:"auto").hide()}},_parse:function(a){var b=this,d=b.options,e=b._value||C;if(a instanceof B)return a;a=c.parseDate(a,d.parseFormats,d.culture),a&&(a=new B(e.getFullYear(),e.getMonth(),e.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return a},_popup:function(){var a=this,b=a.list,d=a.options,e=d.anchor,f;a.popup=new g.Popup(b,z(d.popup,{anchor:e,open:d.open,close:d.close,animation:d.animation})),f=e.outerWidth()-(b.outerWidth()-b.width()),b.css({fontFamily:e.css("font-family"),width:f}),c.touchScroller(a.popup.element)},move:function(a){var b=this,c=a.keyCode,d=b.ul[0],f=b._current,g=c===e.DOWN;if(c===e.UP||g){if(a.altKey){b.toggle(g);return}g?f=f?f[0].nextSibling:d.firstChild:f=f?f[0].previousSibling:d.lastChild,f&&b.select(f),b.options.change(b._current.text()),a.preventDefault()}else if(c===e.ENTER||c===e.TAB||c===e.ESC)a.preventDefault(),f&&b.options.change(f.text(),!0),b.close()}},D.getMilliseconds=G,c.TimeView=D;var I=h.extend({init:function(a,b){var e=this;h.fn.init.call(e,a,b),a=e.element,b=e.options,J(b),e._wrapper(),e.timeView=new D(z({},b,{anchor:e.wrapper,format:b.format,change:function(b,c){c?e._change(b):a.val(b)},open:function(a){e.trigger(i)&&a.preventDefault()},close:function(a){e.trigger(j)&&a.preventDefault()}})),e._icon(),d||(a[0].type="text"),a.addClass("k-input").bind({keydown:A(e._keydown,e),focus:function(a){e._inputWrapper.addClass(q)},blur:A(e._blur,e)}).closest("form").bind("reset",function(){e.value(a[0].defaultValue)}),e.enable(!a.is("[disabled]")),e.value(b.value||a.val()),c.notify(e)},options:{name:"TimePicker",min:C,max:C,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[i,j,k],setOptions:function(a){var b=this;h.fn.setOptions.call(b,a),J(b.options),z(b.timeView.options,b.options),b.timeView.ul[0].innerHTML=""},dataBind:function(a){y(a)&&this.timeView.dataBind(a)},enable:function(a){var b=this,c=b.element,d=b._arrow.unbind(l+" "+t),e=b._inputWrapper.unbind(s);a===!1?(e.removeClass(m).addClass(x),c.attr(n,n)):(e.removeClass(x).addClass(m).bind(s,b._toggleHover),c.removeAttr(n),d.bind(l,A(b._click,b)).bind(t,K))},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(q)},_click:function(){var a=this,b=a.element;a.timeView.toggle(),!d&&b[0]!==document.activeElement&&b.focus()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(k),b.element.trigger(k))},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(c)),b._arrow=d},_keydown:function(a){var b=this,c=a.keyCode,d=b.timeView;d.popup.visible()||a.altKey?d.move(a):c===e.ENTER&&b._change(b.element.val())},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d.timeView._parse(c);!c||(c=new B(c),e[a]=c,d.timeView.options[a]=c,d.timeView.bind())},_toggleHover:function(b){d||a(b.currentTarget).toggleClass(r,b.type==="mouseenter")},_update:function(a){var b=this,d=b.options,e=b.timeView._parse(a);H(e,d.min,d.max)||(e=null),b._value=e,b.element.val(e?c.toString(e,d.format,d.culture):a),b.timeView.value(e);return e},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-timepicker"),d[0]||(d=c.wrap(p).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(p).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-timepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});g.plugin(I)}(jQuery),function(a,b){function K(a){var b=c.getCulture(a.culture).calendars.standard.patterns;a.format=g(a.format||b.g),a.timeFormat=g(a.timeFormat||b.t),c.DateView.normalize(a),a.parseFormats.splice(1,0,a.timeFormat)}function J(a){a.preventDefault()}var c=window.kendo,d=c.TimeView,e=c.support.touch,f=c.parseDate,g=c._extractFormat,h=c.calendar,i=h.isInRange,j=h.restrictValue,k=h.isEqualDatePart,l=d.getMilliseconds,m=c.ui,n=m.Widget,o="open",p="close",q="change",r=e?"touchend":"click",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-hover",w="k-state-disabled",x="mouseenter mouseleave",y=e?"touchstart":"mousedown",z=r+" "+y,A="month",B="<span/>",C=Date,D=new C(1900,0,1),E=new C(2099,11,31),F={view:"date"},G={view:"time"},H=a.extend,I=n.extend({init:function(b,d){var f=this;n.fn.init.call(f,b,d),b=f.element,d=f.options,K(d),f._wrapper(),f._icons(),f._views(),e||(b[0].type="text"),b.addClass("k-input").bind({keydown:a.proxy(f._keydown,f),focus:function(){f._inputWrapper.addClass(u)},blur:function(){f._inputWrapper.removeClass(u),f._change(b.val()),f.close("date"),f.close("time")}}).closest("form").bind("reset",function(){f.value(b[0].defaultValue)}),f._midnight=l(d.min)+l(d.max)===0,f.enable(!b.is("[disabled]")),f.value(d.value||b.val()),c.notify(f)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],min:new C(D),max:new C(E),interval:30,height:200,footer:"",start:A,depth:A,animation:{},month:{}},events:[o,p,q],setOptions:function(a){var b=this;n.fn.setOptions.call(b,a),K(b.options),H(b.dateView.options,b.options),H(b.timeView.options,b.options),b.timeView.ul[0].innerHTML=""},enable:function(a){var b=this,c=b._dateIcon.unbind(z),d=b._timeIcon.unbind(z),f=b._inputWrapper.unbind(x),g=b.element;a===!1?(f.removeClass(t).addClass(w),g.attr(s,s)):(f.addClass(t).removeClass(w).bind(x,b._toggleHover),g.removeAttr(s),c.bind({click:function(){b.toggle("date"),!e&&g[0]!==document.activeElement&&g.focus()},mousedown:J}),d.bind({click:function(){b.toggle("time"),!e&&g[0]!==document.activeElement&&g.focus()},mousedown:J}))},close:function(a){a!=="time"&&(a="date"),this[a+"View"].close()},open:function(a){a!=="time"&&(a="date"),this[a+"View"].open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},toggle:function(a){var b="timeView";a!=="time"?a="date":b="dateView",this[a+"View"].toggle(),this[b].close()},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(q),b.element.trigger(q))},_option:function(a,c){var d=this,e=d.options,g=d.timeView,h=g.options,i=d._value||d._old;if(c===b)return e[a];c=f(c,e.parseFormats,e.culture);if(!!c){e[a]=new C(c),d.dateView[a](c),d._midnight=l(e.min)+l(e.max)===0;if(i&&k(c,i)){if(d._midnight&&a=="max"){h[a]=E,g.dataBind([E]);return}h[a]=c}else h.max=E,h.min=D;g.bind()}},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(v,b.type==="mouseenter")},_update:function(a){var b=this,d=b.options,e=d.min,g=d.max,h=b.timeView,l=f(a,d.parseFormats,d.culture),m,n,o,p;if(+l===+b._value)return l;l!==null&&k(l,e)?l=j(l,e,g):i(l,e,g)||(l=null),b._value=l,h.value(l),b.dateView.value(l),l&&(o=b._old,n=h.options,k(l,e)&&(n.min=e,n.max=E,m=!0),k(l,g)&&(b._midnight?(h.dataBind([E]),p=!0):(n.max=g,m||(n.min=D),m=!0)),!p&&(!o&&m||o&&!k(o,l))&&(m||(n.max=E,n.min=D),h.bind())),b.element.val(l?c.toString(l,d.format,d.culture):a);return l},_keydown:function(a){var b=this,d=b.dateView,e=b.timeView,f=d.popup.visible();a.altKey&&a.keyCode===c.keys.DOWN?b.toggle(f?"time":"date"):f?d.move(a):e.popup.visible()?e.move(a):a.keyCode===c.keys.ENTER&&b._change(b.element.val())},_views:function(){var a=this,b=a.options;a.dateView=new c.DateView(H({},b,{anchor:a.wrapper,change:function(){var c=this.value(),d=+c,e=+b.min,f=+b.max,g;if(d===e||d===f)g=new C(a._value),g.setFullYear(c.getFullYear()),g.setMonth(c.getMonth()),g.setDate(c.getDate()),i(g,e,f)&&(c=g);a._change(c),a.close("date")},close:function(b){a.trigger(p,F)&&b.preventDefault()},open:function(b){a.trigger(o,F)&&b.preventDefault()}})),a.timeView=new d({anchor:a.wrapper,animation:b.animation,dates:b.dates,format:b.timeFormat,culture:b.culture,height:b.height,interval:b.interval,min:new C(D),max:new C(E),parseFormats:b.parseFormats,value:b.value,change:function(d,e){d=a.timeView._parse(d),d<b.min?(d=new C(b.min),a.timeView.options.min=d):d>b.max&&(d=new C(b.max),a.timeView.options.max=d),e?(a._timeSelected=!0,a._change(d)):a.element.val(c.toString(d,b.format,b.culture))},close:function(b){a.trigger(p,G)&&b.preventDefault()},open:function(b){a.trigger(o,G)&&b.preventDefault()}})},_icons:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(c),d=d.children()),b._dateIcon=d.eq(0),b._timeIcon=d.eq(1)},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datetimepicker"),d[0]||(d=c.wrap(B).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(B).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datetimepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});m.plugin(I)}(jQuery),function(a,b){function K(a){var b=this;b.treeview=a,b._draggable=new d.Draggable(a.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(a){return z.dragClue({text:a.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:k(b.dragstart,b),dragcancel:k(b.dragcancel,b),drag:k(b.drag,b),dragend:k(b.dragend,b)})}function J(a,b,c){var d=a.children("div"),e=a.children("ul");a.hasClass("k-treeview")||(c=f({expanded:e.css("display")!="none",index:a.index(),enabled:!d.children(".k-in").hasClass("k-state-disabled")},c),b=f({firstLevel:a.parent().parent().hasClass(w),length:a.parent().children().length},b),a.removeClass("k-first k-last").addClass(A.wrapperCssClass(b,c)),d.removeClass("k-top k-mid k-bot").addClass(A.cssClass(b,c)),d.children(".k-in").removeClass("k-in k-state-default k-state-disabled").addClass(A.textClass(c)),e.length&&(d.children(".k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(A.toggleButtonClass(c)),e.addClass("k-group")))}function I(b){var c=b.children("div"),d=b.children("ul"),e=c.children(".k-icon"),f=c.children(".k-in"),g,h;if(!b.hasClass("k-treeview")){c.length||(c=a("<div />").prependTo(b));if(!e.length&&d.length)e=a("<span class='k-icon' />").prependTo(c);else if(!d.length||!d.children().length)e.remove(),d.remove();if(!f.length){f=a("<span class='k-in' />").appendTo(c)[0],g=c[0].nextSibling,f=c.find(".k-in")[0];while(g&&g.nodeName.toLowerCase()!="ul")h=g,g=g.nextSibling,h.nodeType==3&&(h.nodeValue=a.trim(h.nodeValue)),f.appendChild(h)}}}function H(b){return a(b).closest("[data-role=treeview]").data("kendoTreeView")}function G(a){return function(b){var c=b.children(".k-animation-container");c.length||(c=b);return c.children(a)}}var c=window.kendo,d=c.ui,e=c.data,f=a.extend,g=c.template,h=a.isArray,i=d.Widget,j=e.HierarchicalDataSource,k=a.proxy,l="select",m="expand",n="change",o="collapse",p="dragstart",q="drag",r="drop",s="dragend",t="click",u="visibility",v="k-state-hover",w="k-treeview",x=":visible",y=".k-item",z,A,B,C,D,E={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},F=function(a){return typeof HTMLElement=="object"?a instanceof HTMLElement:a&&typeof a=="object"&&a.nodeType===1&&typeof a.nodeName=="string"};C=G(".k-group"),D=G(".k-group,.k-content"),z={dragClue:g("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:g("<ul class='#= r.groupCssClass(group) #'#= r.groupAttributes(group) #>#= renderItems(data) #</ul>")},B=i.extend({init:function(b,c){var d=this,e=".k-in:not(.k-state-selected,.k-state-disabled)",f="mouseenter",j,l=!1;h(c)&&(j=!0,c={dataSource:c}),c&&typeof c.loadOnDemand=="undefined"&&h(c.dataSource)&&(c.loadOnDemand=!1),i.prototype.init.call(d,b,c),b=d.element,c=d.options,l=b.is("ul")||b.hasClass(w),l&&(c.dataSource.list=b.is("ul")?b:b.children("ul")),d._animation(),d._accessors(),c.template&&typeof c.template=="string"?c.template=g(c.template):c.template||(c.template=d._textTemplate()),c.checkboxTemplate&&typeof c.checkboxTemplate=="string"&&(c.checkboxTemplate=g(c.checkboxTemplate)),d.templates={item:d._itemTemplate(),loading:d._loadingTemplate()},b.hasClass(w)?(d.wrapper=b,d.root=b.children("ul").eq(0)):(d._wrapper(),l&&(d.root=b,d._group(d.wrapper))),d._dataSource(l),d.wrapper.on(f,".k-in.k-state-selected",function(a){a.preventDefault()}).on(f,e,function(){a(this).addClass(v)}).on("mouseleave",e,function(){a(this).removeClass(v)}).on(t,e,k(d._nodeClick,d)).on("dblclick","div:not(.k-state-disabled) .k-in",k(d._toggleButtonClick,d)).on(t,".k-plus,.k-minus",k(d._toggleButtonClick,d)),c.dragAndDrop&&(d.dragging=new K(d)),l?d._attachUids():c.autoBind&&(d._progress(!0),d.dataSource.read())},_attachUids:function(b,d){var e=this,f,g=c.attr("uid");b=b||e.root,d=d||e.dataSource,f=d.view(),b.children("li").each(function(b,c){c=a(c).attr(g,f[b].uid),e._attachUids(c.children("ul"),f[b].children)})},_animation:function(){var a=this.options;a.animation===!1&&(a.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}})},_dataSource:function(a){function e(a){for(var b=0;b<a.length;b++)a[b].children.read(),e(a[b].children.view())}var b=this,c=b.options,d=c.dataSource;d=h(d)?{data:d}:d,b.dataSource&&b._refreshHandler?b.dataSource.unbind(n,b._refreshHandler):b._refreshHandler=k(b.refresh,b),d.fields||(d.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),b.dataSource=j.create(d),a&&(b.dataSource.read(),e(b.dataSource.view())),b.dataSource.bind(n,b._refreshHandler)},events:[p,q,r,s,m,o,l],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:100}},dragAndDrop:!1,autoBind:!0,loadOnDemand:!0},_accessors:function(){var a=this,b=a.options,d,e,f,g=a.element;for(d in E)e=b[E[d]],f=g.attr(c.attr(d+"-field")),f&&(e=f),e||(e=d),h(e)||(e=[e]),b[E[d]]=e},_fieldFor:function(a){var b=this.options[E[a]],c=b.length;return c===0?"'"+a+"'":c==1?"'"+b[0]+"'":"['"+b.join("','")+"']"+"[item.level() < "+c+" ? item.level() : "+(c-1)+"]"},_textTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},c="# var text = "+b("text")+"; #"+"# if (typeof item.encoded != 'undefined' && item.encoded === false) {#"+"#= text #"+"# } else { #"+"#: text #"+"# } #";return g(c)},_loadingTemplate:function(){return g("<div class='k-icon k-loading' /> Loading...")},_itemTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},d="<li class='#= r.wrapperCssClass(group, item) #' "+c.attr("uid")+"='#= item.uid #'"+">"+"<div class='#= r.cssClass(group, item) #'>"+"# if (item.hasChildren) { #"+"<span class='#= r.toggleButtonClass(item) #'></span>"+"# } #"+"# if (treeview.checkboxTemplate) { #"+"<span class='k-checkbox'>"+"#= treeview.checkboxTemplate(data) #"+"</span>"+"# } #"+"# var url = "+b("url")+"; #"+"# var tag = url ? 'a' : 'span'; #"+"# var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #"+"<#=tag# class='#= r.textClass(item) #'#= textAttr #>"+"# var imageUrl = "+b("imageUrl")+"; #"+"# if (imageUrl) { #"+"<img class='k-image' alt='' src='#= imageUrl #'>"+"# } #"+"# var spriteCssClass = "+b("spriteCssClass")+"; #"+"# if (spriteCssClass) { #"+"<span class='k-sprite #= spriteCssClass #'></span>"+"# } #"+"#= treeview.template(data) #"+"</#=tag#>"+"</div>"+"</li>";return g(d)},setOptions:function(a){var b=this;"dragAndDrop"in a&&a.dragAndDrop&&!b.options.dragAndDrop&&(b.dragging=new K(b)),i.fn.setOptions.call(b,a),b._animation()},_trigger:function(a,b){return this.trigger(a,{node:b.closest(y)[0]})},_toggleButtonClick:function(b){this.toggle(a(b.target).closest(y))},_nodeClick:function(b){var c=this,d=a(b.target),e=D(d.closest(y)),f=d.attr("href"),g;f?g=f=="#"||f.indexOf("#"+this.element.id+"-")>=0:g=e.length&&!e.children().length,g&&b.preventDefault(),!d.hasClass(".k-state-selected")&&!c._trigger("select",d)&&c.select(d)},_wrapper:function(){var a=this,b=a.element,c,d,e="k-widget k-treeview k-reset";b.is("div")?(c=b,d=c.children("ul").eq(0)):(c=b.wrap("<div />").parent(),d=b),a.wrapper=c.addClass(e),a.root=d},_group:function(a){var b=this,c=a.hasClass(w),d={firstLevel:c,expanded:c||b._expanded(a)},e=a.children("ul");e.addClass(A.groupCssClass(d)).css("display",d.expanded?"":"none"),b._nodes(e,d)},_nodes:function(b,c){var d=this,e=b.children("li"),g;c=f({length:e.length},c),e.each(function(b,e){e=a(e),g={index:b,expanded:d._expanded(e)},I(e),J(e,c,g),d._group(e)})},_processNodes:function(b,c){var d=this;d.element.find(b).each(function(b,e){c.call(d,b,a(e).closest(y))})},dataItem:function(b){var d=a(b).closest(y).attr(c.attr("uid")),e=this.dataSource;return e&&e.getByUid(d)},_insertNode:function(b,c,d,e,f){var g=this,h=C(d),i=h.children().length+1,j,k={firstLevel:d.hasClass(w),expanded:!f,length:i},l,m,n,o="",p=function(a,b){a.appendTo(b)};for(m=0;m<b.length;m++)n=b[m],n.index=c+m,o+=g._renderItem({group:k,item:n});l=a(o);if(!!l.length){h.length||(h=a(g._renderGroup({group:k})).appendTo(d)),e(l,h),d.hasClass("k-item")&&(I(d),J(d)),J(l.prev()),J(l.next());for(m=0;m<b.length;m++)n=b[m],j=n.children.data(),j.length&&g._insertNode(j,n.index,l.eq(m),p,!g._expanded(l.eq(m)));return l}},refresh:function(a){function j(a,c,d){var e=C(c),f=e.children();typeof g=="undefined"&&(g=f.length),b._insertNode(a,g,c,function(a,b){g==f.length?a.appendTo(b):a.insertBefore(f.eq(g))},d)}var b=this,c=b.wrapper,d=a.node,e=a.action,f=a.items,g=a.index,h=b.options.loadOnDemand,i;if(!a.field){d&&(c=b.findByUid(d.uid),b._progress(c,!1)),e=="add"?j(f,c):e=="remove"?b._remove(b.findByUid(f[0].uid),!1):d?(C(c).empty(),j(f,c,!0),b._expanded(c)&&(J(c,{},{expanded:!0}),C(c).css("display","block"))):b.root=b.wrapper.html(b._renderGroup({items:f,group:{firstLevel:!0,expanded:!0}})).children("ul");if(!h)for(i=0;i<f.length;i++)f[i].load()}},expand:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&!c.is(x)&&this.toggle(b)})},collapse:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&c.is(x)&&this.toggle(b)})},enable:function(a,b){b=arguments.length==2?!!b:!0,this._processNodes(a,function(a,c){var d=!D(c).is(x);b||(this.collapse(c),d=!0),J(c,{},{enabled:b,expanded:!d})})},select:function(b){var c=this.element;if(!arguments.length)return c.find(".k-state-selected").closest(y);b=a(b,c).closest(y),b.length&&(c.find(".k-in").removeClass("k-state-hover k-state-selected"),b.find(".k-in:first").addClass("k-state-selected"))},toggle:function(b){b=a(b);if(!!b.find(">div>.k-icon").is(".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled")){var c=this,d=D(b),e=!d.is(x),g=c.options,h=g.animation||{},i=h.expand,j=f({},h.collapse),k=j&&"effects"in j,l=c.dataItem(b);if(d.data("animating"))return;e||(i=f(k?j:f({reverse:!0},i),{show:!1,hide:!0})),c._trigger(e?"expand":"collapse",b)||(c._expanded(b,e),d.children().length>0?(J(b,{},{expanded:e}),e||d.css("height",d.height()).css("height"),d.kendoStop(!0,!0).kendoAnimate(f(i,{complete:function(){e&&d.css("height","")}}))):l&&(g.loadOnDemand&&c._progress(b,!0),l.load()))}},_expanded:function(a,b){var d=c.attr("expanded"),e=this.dataItem(a);if(arguments.length==1)return a.attr(d)==="true"||e&&e.expanded;e&&e.set("expanded",b),b?a.attr(d,"true"):a.removeAttr(d)},_progress:function(a,b){var c=this.element;arguments.length==1?(b=a,b?c.html(this.templates.loading):c.empty()):a.find("> div > .k-icon").toggleClass("k-loading",b)},text:function(b){return a(b).closest(y).find(">div>.k-in").text()},_dataSourceMove:function(b,d,f,g){var i=this,j=H(b),k,l,m,n,o=H(f||d),p=o.dataSource;f&&(m=o.dataItem(f),m.loaded()||(m.load(),i._expanded(f,!0)),f!=i.root&&(p=m.children));if(b instanceof a||F(b))b=a(b),k=j.dataSource,l=k.getByUid(b.attr(c.attr("uid"))),l=k.remove(l),l=g(p,l);else if(h(b)||b instanceof e.ObservableArray)for(n=0;n<b.length;n++)l=g(p,b[n]);else l=g(p,b);return i.findByUid(l.uid)},insertAfter:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index()+1,c)})},insertBefore:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index(),c)})},append:function(a,b){var c=this,d=c.root;b&&(d=C(b));return c._dataSourceMove(a,d,b,function(a,d){b&&c._expanded(b,!0);return a.add(d)})},_remove:function(b,c){var d,e,f;b=a(b,this.element),d=b.parent().parent(),e=b.prev(),f=b.next(),b[c?"detach":"remove"](),d.hasClass("k-item")&&(I(d),J(d)),J(e),J(f);return b},remove:function(a){var b=this.dataItem(a);b&&this.dataSource.remove(b)},detach:function(a){return this._remove(a,!0)},findByText:function(b){return a(this.element).find(".k-in").filter(function(c,d){return a(d).text()==b}).closest(y)},findByUid:function(a){return this.element.find(".k-item["+c.attr("uid")+"="+a+"]")},_renderItem:function(a){a.group||(a.group={}),a.treeview=this.options,a.r=A;return this.templates.item(a)},_renderGroup:function(a){var b=this;a.renderItems=function(a){var c="",d=0,e=a.items,f=e?e.length:0,g=a.group;g.length=f;for(;d<f;d++)a.group=g,a.item=e[d],a.item.index=d,c+=b._renderItem(a);return c},a.r=A;return z.group(a)}}),K.prototype={_hintStatus:function(b){var c=this._draggable.hint.find(".k-drag-status")[0];if(b)c.className="k-icon k-drag-status "+b;else return a.trim(c.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(b){var c=this,d=c.treeview,e=c.sourceNode=b.currentTarget.closest(y);d.trigger(p,{sourceNode:e[0]})&&b.preventDefault(),c.dropHint=a("<div class='k-drop-hint' />").css(u,"hidden").appendTo(d.element)},drag:function(b){var d=this,e=d.treeview,f=d.sourceNode,g=d.dropTarget=a(c.eventTarget(b)),h,i,j,k,l,m,n,o,p,r;g.closest(".k-treeview").length?a.contains(f[0],g[0])?h="k-denied":(h="k-insert-middle",d.dropHint.css(u,"visible"),i=g.closest(".k-top,.k-mid,.k-bot"),i.length>0?(k=i.outerHeight(),l=i.offset().top,m=g.closest(".k-in"),n=k/(m.length>0?4:2),o=b.pageY<l+n,p=l+k-n<b.pageY,r=m.length>0&&!o&&!p,m.toggleClass(v,r),d.dropHint.css(u,r?"hidden":"visible"),r?h="k-add":(j=i.position(),j.top+=o?0:k,d.dropHint.css(j)[o?"prependTo":"appendTo"](g.closest(y).children("div:first")),o&&i.hasClass("k-top")&&(h="k-insert-top"),p&&i.hasClass("k-bot")&&(h="k-insert-bottom"))):g[0]!=d.dropHint[0]&&(h="k-denied")):h="k-denied",e.trigger(q,{sourceNode:f[0],dropTarget:g[0],pageY:b.pageY,pageX:b.pageX,statusClass:h.substring(2),setStatusClass:function(a){h=a}}),h.indexOf("k-insert")!==0&&d.dropHint.css(u,"hidden"),d._hintStatus(h)},dragcancel:function(a){this.dropHint.remove()},dragend:function(a){var b=this,c=b.treeview,d="over",e=b.sourceNode,f,g=b.dropHint,h,i;g.css(u)=="visible"?(d=g.prevAll(".k-in").length>0?"after":"before",f=g.closest(y)):b.dropTarget&&(f=b.dropTarget.closest(y)),h=b._hintStatus()!="k-denied",i=c.trigger(r,{sourceNode:e[0],destinationNode:f[0],valid:h,setValid:function(a){h=a},dropTarget:a.target,dropPosition:d}),g.remove();!h||i?b._draggable.dropped=h:(b._draggable.dropped=!0,d=="over"?(c.append(e,f),c.expand(f)):d=="before"?c.insertBefore(e,f):d=="after"&&c.insertAfter(e,f),c.trigger(s,{sourceNode:e[0],destinationNode:f[0],dropPosition:d}))}},A={wrapperCssClass:function(a,b){var c="k-item",d=b.index;a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},cssClass:function(a,b){var c="",d=b.index,e=a.length-1;a.firstLevel&&d===0&&(c+="k-top "),d===0&&d!=e?c+="k-top":d==e?c+="k-bot":c+="k-mid";return c},textClass:function(a){var b="k-in";a.enabled===!1&&(b+=" k-state-disabled"),a.selected===!0&&(b+=" k-state-selected");return b},toggleButtonClass:function(a){var b="k-icon";a.expanded!==!0?b+=" k-plus":b+=" k-minus",a.enabled===!1&&(b+="-disabled");return b},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){var b="k-group";a.firstLevel&&(b+=" k-treeview-lines");return b}},d.plugin(B)}(jQuery),function(a,b){function R(a){return typeof a!==F}function P(a,c){var d=h(a.getAttribute(c));d===null&&(d=b);return d}function O(a){a=parseFloat(a,10);var b=k.pow(10,D||0);return k.round(a*b)/b}function N(a){return(a+"").replace(".",c.cultures.current.numberFormat["."])}function M(a){return function(){return a}}function L(a){return function(b){return b+a}}function K(a){var b=a.is("input")?1:2;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='Drag'>Drag</a>"+(b>1?"<a href='#' class='k-draghandle' title='Drag'>Drag</a>":"")+"</div>"}function J(a,b){var c="<ul class='k-reset k-slider-items'>",d=k.floor(O(b/a.smallStep))+1,e;for(e=0;e<d;e++)c+="<li class='k-tick'> </li>";c+="</ul>";return c}function I(a,b,c){var d="";b=="increase"?d=c?"k-i-arrow-e":"k-i-arrow-n":d=c?"k-i-arrow-w":"k-i-arrow-s";return"<a class='k-button k-button-"+b+"'><span class='k-icon "+d+"' title='"+a[b+"ButtonTitle"]+"'>"+a[b+"ButtonTitle"]+"</span></a>"}function H(a,b,c){var d=c?" k-slider-horizontal":" k-slider-vertical",e=a.style?a.style:b.attr("style"),f=b.attr("class")?" "+b.attr("class"):"",g="";a.tickPlacement=="bottomRight"?g=" k-slider-bottomright":a.tickPlacement=="topLeft"&&(g=" k-slider-topleft"),e=e?" style='"+e+"'":"";return"<div class='k-widget k-slider"+d+f+"'"+e+">"+"<div class='k-slider-wrap"+(a.showButtons?" k-slider-buttons":"")+g+"'></div></div>"}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.extend,g=c.format,h=c.parseFloat,i=a.proxy,j=a.isArray,k=Math,l=c.support,m=l.touch,n=l.pointers,o="change",p="slide",q=m?"touchstart":"mousedown",r=m?"touchstart":n?"MSPointerDown":"mousedown",s=m?"touchend":"mouseup",t="moveSelection",u="keydown",v="click",w="mouseover",x=".k-draghandle",y=".k-slider-track",z=".k-tick",A="k-state-selected",B="k-state-default",C="k-state-disabled",D=3,E="disabled",F="undefined",G=d.extend({init:function(a,b){var e=this;d.fn.init.call(e,a,b),b=e.options,e._distance=b.max-b.min,e._isHorizontal=b.orientation=="horizontal",e._position=e._isHorizontal?"left":"bottom",e._size=e._isHorizontal?"width":"height",e._outerSize=e._isHorizontal?"outerWidth":"outerHeight",b.tooltip.format=b.tooltip.enabled?b.tooltip.format||"{0}":"{0}",e._createHtml(),e.wrapper=e.element.closest(".k-slider"),e._trackDiv=e.wrapper.find(y),e._setTrackDivWidth(),e._maxSelection=e._trackDiv[e._size]();var f=e._maxSelection/((b.max-b.min)/b.smallStep),g=e._calculateItemsWidth(k.floor(e._distance/b.smallStep));b.tickPlacement!="none"&&f>=2&&(e._trackDiv.before(J(b,e._distance)),e._setItemsWidth(g),e._setItemsTitle(),e._setItemsLargeTick()),e._calculateSteps(g),e[b.enabled?"enable":"disable"](),e._keyMap={37:L(-b.smallStep),40:L(-b.smallStep),39:L(+b.smallStep),38:L(+b.smallStep),35:M(b.max),36:M(b.min),33:L(+b.largeStep),34:L(-b.largeStep)},c.notify(e)},events:[o,p],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var a=this,b=parseFloat(a._trackDiv.css(a._position),10)*2;a._trackDiv[a._size](a.wrapper[a._size]()-2-b)},_setItemsWidth:function(b){var c=this,d=c.options,e=0,f=b.length-1,g=c.wrapper.find(z),h,i=0,j=2,k=g.length,l=0;for(h=0;h<k-2;h++)a(g[h+1])[c._size](b[h]);c._isHorizontal?(a(g[e]).addClass("k-first")[c._size](b[f-1]),a(g[f]).addClass("k-last")[c._size](b[f])):(a(g[f]).addClass("k-first")[c._size](b[f]),a(g[e]).addClass("k-last")[c._size](b[f-1]));if(c._distance%d.smallStep!==0&&!c._isHorizontal){for(h=0;h<b.length;h++)l+=b[h];i=c._maxSelection-l,i+=parseFloat(c._trackDiv.css(c._position),10)+j,c.wrapper.find(".k-slider-items").css("padding-top",i)}},_setItemsTitle:function(){var b=this,c=b.options,d=b.wrapper.find(z),e=c.min,f=d.length,h=b._isHorizontal?0:f-1,i=b._isHorizontal?f:-1,j=b._isHorizontal?1:-1;for(;h-i!==0;h+=j)a(d[h]).attr("title",g(c.tooltip.format,O(e))),e+=c.smallStep},_setItemsLargeTick:function(){var b=this,c=b.options,d,e=b.wrapper.find(z),f={},g=O(c.largeStep/c.smallStep);if(1e3*c.largeStep%(1e3*c.smallStep)===0)if(b._isHorizontal)for(d=0;d<e.length;d=O(d+g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>");else for(d=e.length-1;d>=0;d=O(d-g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>"),d!==0&&d!==e.length-1&&f.css("line-height",f[b._size]()+"px")},_calculateItemsWidth:function(a){var b=this,c=b.options,d=parseFloat(b._trackDiv.css(b._size))+1,e=d/b._distance,f,g,h;b._distance/c.smallStep-k.floor(b._distance/c.smallStep)>0&&(d-=b._distance%c.smallStep*e),f=d/a,g=[];for(h=0;h<a-1;h++)g[h]=f;g[a-1]=g[a]=f/2;return b._roundWidths(g)},_roundWidths:function(a){var b=0,c=a.length,d;for(d=0;d<c;d++)b+=a[d]-k.floor(a[d]),a[d]=k.floor(a[d]);b=k.round(b);return this._addAdditionalSize(b,a)},_addAdditionalSize:function(a,b){if(a===0)return b;var c=parseFloat(b.length-1)/parseFloat(a==1?a:a-1),d;for(d=0;d<a;d++)b[parseInt(k.round(c*d),10)]+=1;return b},_calculateSteps:function(a){var b=this,c=b.options,d=c.min,e=0,f=k.ceil(b._distance/c.smallStep),g=1,h;f+=b._distance/c.smallStep%1===0?1:0,a.splice(0,0,a[f-2]*2),a.splice(f-1,1,a.pop()*2),b._pixelSteps=[e],b._values=[d];if(f!==0){while(g<f)e+=(a[g-1]+a[g])/2,b._pixelSteps[g]=e,b._values[g]=d+=c.smallStep,g++;h=b._distance%c.smallStep===0?f-1:f,b._pixelSteps[h]=b._maxSelection,b._values[h]=c.max}},_getValueFromPosition:function(a,b){var c=this,d=c.options,e=k.max(d.smallStep*(c._maxSelection/c._distance),0),f=0,g=e/2,h;c._isHorizontal?f=a-b.startPoint:f=b.startPoint-a;if(c._maxSelection-(parseInt(c._maxSelection%e,10)-3)/2<f)return d.max;for(h=0;h<c._pixelSteps.length;h++)if(k.abs(c._pixelSteps[h]-f)-1<=g)return O(c._values[h])},_getDragableArea:function(){var a=this,b=a._trackDiv.offset().left,c=a._trackDiv.offset().top;return{startPoint:a._isHorizontal?b:c+a._maxSelection,endPoint:a._isHorizontal?b+a._maxSelection:c}},_createHtml:function(){var a=this,b=a.element,c=a.options,d=b.find("input");d.length==2?(d.eq(0).val(c.selectionStart),d.eq(1).val(c.selectionEnd)):b.val(c.value),b.wrap(H(c,b,a._isHorizontal)).hide(),c.showButtons&&b.before(I(c,"increase",a._isHorizontal)).before(I(c,"decrease",a._isHorizontal)),b.before(K(b))}}),Q=function(a){return{idx:0,x:a.pageX,y:a.pageY}};l.pointers&&(Q=function(a){return{idx:0,x:a.originalEvent.clientX,y:a.originalEvent.clientY}}),l.touch&&(Q=function(b,c){var d=b.changedTouches||b.originalEvent.changedTouches;if(c){var e=null;a.each(d,function(a,b){c==b.identifier&&(e={idx:b.identifier,x:b.pageX,y:b.pageY})});return e}return{idx:d[0].identifier,x:d[0].pageX,y:d[0].pageY}});var S=G.extend({init:function(c,d){var e=this,g;c.type="text",d=f({},{value:P(c,"value"),min:P(c,"min"),max:P(c,"max"),smallStep:P(c,"step")},d),c=a(c),d&&d.enabled===b&&(d.enabled=!c.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.value)||(d.value=d.min,c.val(d.min)),g=e.wrapper.find(x),new S.Selection(g,e,d),e._drag=new S.Drag(g,"",e,d)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f,g;d.disable();if(b!==!1){d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),e=d._isHorizontal?c.x:c.y,f=d._getDragableArea(),g=a(b.target);g.hasClass("k-draghandle")?g.addClass(A):(d._update(d._getValueFromPosition(e,f)),d._drag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),g=i(function(a){d._setValueInRange(d._nextValueByIndex(d._valueIndex+a*1))},d);if(e.showButtons){var h=i(function(a,b){if(a.which===1||m&&a.which===0)g(b),this.timeout=setTimeout(i(function(){this.timer=setInterval(function(){g(b)},60)},this),200)},d);d.wrapper.find(".k-button").bind(s,i(function(a){this._clearTimer()},d)).bind(w,function(b){a(b.currentTarget).addClass("k-state-hover")}).bind("mouseout",i(function(b){a(b.currentTarget).removeClass("k-state-hover"),this._clearTimer()},d)).eq(0).bind(q,i(function(a){h(a,1)},d)).click(!1).end().eq(1).bind(q,i(function(a){h(a,-1)},d)).click(!1)}d.wrapper.find(x).bind(u,i(this._keydown,d)),e.enabled=!0}},disable:function(){var b=this;b.wrapper.removeClass(B).addClass(C),a(b.element).attr(E,E),b.wrapper.find(".k-button").unbind(q).bind(q,c.preventDefault).unbind(s).bind(s,c.preventDefault).unbind("mouseleave").bind("mouseleave",c.preventDefault).unbind(w).bind(w,c.preventDefault),b.wrapper.find(z+", "+y).unbind(r),b.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,!1),b.options.enabled=!1},_update:function(a){var b=this,c=b.value()!=a;b.value(a),c&&b.trigger(o,{value:b.options.value})},value:function(a){var b=this,c=b.options;a=O(a);if(isNaN(a))return c.value;a>=c.min&&a<=c.max&&c.value!=a&&(b.element.attr("value",N(a)),c.value=a,b._refresh())},_refresh:function(){this.trigger(t,{value:this.options.value})},_clearTimer:function(a){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(a){var b=this;a.keyCode in b._keyMap&&(b._setValueInRange(b._keyMap[a.keyCode](b.options.value)),a.preventDefault())},_setValueInRange:function(a){var b=this,c=b.options;a=O(a);isNaN(a)?b._update(c.min):(a=k.max(k.min(a,c.max),c.min),b._update(a))},_nextValueByIndex:function(a){var b=this._values.length;return this._values[k.max(0,k.min(a,b-1))]}});S.Selection=function(a,b,c){function d(d){var e=d-c.min,f=b._valueIndex=k.ceil(O(e/c.smallStep)),g=parseInt(b._pixelSteps[f],10),h=b._trackDiv.find(".k-slider-selection"),i=parseInt(a[b._outerSize]()/2,10);h[b._size](g),a.css(b._position,g-i)}d(c.value),b.bind([o,p,t],function(a){d(parseFloat(a.value,10))})},S.Drag=function(a,b,c,d){var f=this;f.owner=c,f.options=d,f.dragHandle=a,f.dragHandleSize=a[c._outerSize](),f.type=b,f.draggable=new e(a,{threshold:0,dragstart:i(f._dragstart,f),drag:i(f.drag,f),dragend:i(f.dragend,f),dragcancel:i(f.dragcancel,f)}),a.click(!1)},S.Drag.prototype={dragstart:function(a){this.draggable.drag._start(a)},_dragstart:function(b){var d=this,e=d.owner,f=d.options,h=f.tooltip,i="",j,l,m;f.enabled?(e.element.unbind(w),d.dragHandle.addClass(A),d.dragableArea=e._getDragableArea(),d.step=k.max(f.smallStep*(e._maxSelection/e._distance),0),d.type?(d.selectionStart=f.selectionStart,d.selectionEnd=f.selectionEnd,e._setZIndex(d.type)):d.oldVal=d.val=f.value,h.enabled&&(h.template&&(j=d.tooltipTemplate=c.template(h.template)),d.tooltipDiv=a("<div class='k-widget k-tooltip'><!-- --></div>").appendTo(document.body),d.type?d.tooltipTemplate?i=j({selectionStart:d.selectionStart,selectionEnd:d.selectionEnd}):(l=g(h.format,d.selectionStart),m=g(h.format,d.selectionEnd),i=l+" - "+m):(d.tooltipInnerDiv="<div class='k-callout k-callout-"+(e._isHorizontal?"s":"e")+"'><!-- --></div>",d.tooltipTemplate?i=j({value:d.val}):i=g(h.format,d.val),i+=d.tooltipInnerDiv),d.tooltipDiv.html(i),d.moveTooltip())):b.preventDefault()},drag:function(a){var b=this,c=b.owner,d=b.options,e=a.x.location,f=a.y.location,h=b.dragableArea.startPoint,i=b.dragableArea.endPoint,j=d.tooltip,k="",l=b.tooltipTemplate,m,n,o;a.preventDefault(),c._isHorizontal?b.val=b.constrainValue(e,h,i,e>=i):b.val=b.constrainValue(f,i,h,f<=i),b.oldVal!=b.val&&(b.oldVal=b.val,b.type?(b.type=="firstHandle"?b.val<b.selectionEnd?b.selectionStart=b.val:b.selectionStart=b.selectionEnd=b.val:b.val>b.selectionStart?b.selectionEnd=b.val:b.selectionStart=b.selectionEnd=b.val,m={values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}):m={value:b.val},c.trigger(p,m),j.enabled&&(b.type?b.tooltipTemplate?k=l({selectionStart:b.selectionStart,selectionEnd:b.selectionEnd}):(n=g(j.format,b.selectionStart),o=g(j.format,b.selectionEnd),k=n+" - "+o):(b.tooltipTemplate?k=l({value:b.val}):k=g(j.format,b.val),k+=b.tooltipInnerDiv),b.tooltipDiv.html(k),b.moveTooltip()))},dragcancel:function(a){this.owner._refresh();return this._end()},dragend:function(a){var b=this,c=b.owner;b.type?c._update(b.selectionStart,b.selectionEnd):c._update(b.val);return b._end()},_end:function(){var a=this,b=a.owner;b.options.tooltip.enabled&&b.options.enabled&&a.tooltipDiv.remove(),a.dragHandle.removeClass(A),b.element.bind(w);return!1},moveTooltip:function(){var a=this,b=a.owner,c=0,d=0,e=a.dragHandle.offset(),f=4,g=a.tooltipDiv.find(".k-callout"),h,i,j;a.type?(h=b.wrapper.find(x),i=h.eq(0).offset(),j=h.eq(1).offset(),b._isHorizontal?(c=j.top,d=i.left+(j.left-i.left)/2):(c=i.top+(j.top-i.top)/2,d=j.left)):(c=e.top,d=e.left),b._isHorizontal?(d-=parseInt((a.tooltipDiv.outerWidth()-a.dragHandle[b._outerSize]())/2,10),c-=a.tooltipDiv.outerHeight()+g.height()+f):(c-=parseInt((a.tooltipDiv.outerHeight()-a.dragHandle[b._outerSize]())/2,10),d-=a.tooltipDiv.outerWidth()+g.width()+f),a.tooltipDiv.css({top:c,left:d})},constrainValue:function(a,b,c,d){var e=this,f=0;b<a&&a<c?f=e.owner._getValueFromPosition(a,e.dragableArea):d?f=e.options.max:f=e.options.min;return f}},c.ui.plugin(S);var T=G.extend({init:function(c,d){var e=this,g=a(c).find("input"),h=g.eq(0)[0],i=g.eq(1)[0];h.type="text",i.type="text",d=f({},{selectionStart:P(h,"value"),min:P(h,"min"),max:P(h,"max"),smallStep:P(h,"step")},{selectionEnd:P(i,"value"),min:P(i,"min"),max:P(i,"max"),smallStep:P(i,"step")},d),d&&d.enabled===b&&(d.enabled=!g.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.selectionStart)||(d.selectionStart=d.min,g.eq(0).val(d.min)),R(d.selectionEnd)||(d.selectionEnd=d.max,g.eq(1).val(d.max));var j=e.wrapper.find(x);new T.Selection(j,e,d),e._firstHandleDrag=new S.Drag(j.eq(0),"firstHandle",e,d),e._lastHandleDrag=new S.Drag(j.eq(1),"lastHandle",e,d)},options:{name:"RangeSlider",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f;d.disable();b!==!1&&(d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),f=d._isHorizontal?c.x:c.y,g=d._getDragableArea(),h=d._getValueFromPosition(f,g),i=a(b.target);i.hasClass("k-draghandle")?i.addClass(A):h<e.selectionStart?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):h>d.selectionEnd?(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b)):h-e.selectionStart<=e.selectionEnd-h?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),d.wrapper.find(x).eq(0).bind(u,i(function(a){this._keydown(a,"firstHandle")},d)).end().eq(1).bind(u,i(function(a){this._keydown(a,"lastHandle")},d)),d.options.enabled=!0)},disable:function(){var a=this;a.wrapper.removeClass(B).addClass(C),a.wrapper.find("input").attr(E,E),a.wrapper.find(z+", "+y).unbind(r),a.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,c.preventDefault),a.options.enabled=!1},_keydown:function(a,b){var c=this,d=c.options.selectionStart,e=c.options.selectionEnd;a.keyCode in c._keyMap&&(b=="firstHandle"?(d=c._keyMap[a.keyCode](d),d>e&&(e=d)):(e=c._keyMap[a.keyCode](e),d>e&&(d=e)),c._setValueInRange(d,e),a.preventDefault())},_update:function(a,b){var c=this,d=c.value(),e=d[0]!=a||d[1]!=b;c.value([a,b]),e&&c.trigger(o,{values:[a,b],value:[a,b]})},value:function(a){return a&&a.length?this._value(a[0],a[1]):this._value()},_value:function(a,b){var c=this,d=c.options,e=d.selectionStart,f=d.selectionEnd;if(isNaN(a)&&isNaN(b))return[e,f];a=O(a),b=O(b),a>=d.min&&a<=d.max&&b>=d.min&&b<=d.max&&a<=b&&(e!=a||f!=b)&&(c.element.find("input").eq(0).attr("value",N(a)).end().eq(1).attr("value",N(b)),d.selectionStart=a,d.selectionEnd=b,c._refresh())},values:function(a,b){return j(a)?this._value(a[0],a[1]):this._value(a,b)},_refresh:function(){var a=this,b=a.options;a.trigger(t,{values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}),b.selectionStart==b.max&&b.selectionEnd==b.max&&a._setZIndex("firstHandle")},_setValueInRange:function(a,b){var c=this.options;a=k.max(k.min(a,c.max),c.min),b=k.max(k.min(b,c.max),c.min),a==c.max&&b==c.max&&this._setZIndex("firstHandle"),this._update(k.min(a,b),k.max(a,b))},_setZIndex:function(b){this.wrapper.find(x).each(function(c){a(this).css("z-index",b=="firstHandle"?1-c:c)})}});T.Selection=function(a,b,c){function e(a,c){var d=0,e=0,f=b._trackDiv.find(".k-slider-selection");d=k.abs(a-c),e=a<c?a:c,f[b._size](d),f.css(b._position,e-1)}function d(d){d=d||[];var f=d[0]-c.min,g=d[1]-c.min,h=k.ceil(O(f/c.smallStep)),i=k.ceil(O(g/c.smallStep)),j=b._pixelSteps[h],l=b._pixelSteps[i],m=parseInt(a.eq(0)[b._outerSize]()/2,10);a.eq(0).css(b._position,j-m).end().eq(1).css(b._position,l-m),e(j,l)}d(b.value()),b.bind([o,p,t],function(a){d(a.values)})},c.ui.plugin(T)}(jQuery),function(a,b){function D(a){var b=this,d=a.orientation;b.owner=a,b._element=a.element,b.orientation=d,e(b,d===o?C:B),b._resizable=new c.ui.Resizable(a.element,{orientation:d,handle:a.element.children(".k-splitbar-draggable-"+d),hint:f(b._createHint,b),start:f(b._start,b),max:f(b._max,b),min:f(b._min,b),invalidClass:"k-restricted-size-"+d,resizeend:f(b._stop,b)})}function z(b,c){return function(d,e){var f=a(d).data(s);if(arguments.length==1)return f[b];f[b]=e;if(c){var g=this.element.data("kendoSplitter");g.trigger(m)}}}function y(a){return!w(a)&&!x(a)}function x(a){return h.test(a)}function w(a){return i.test(a)}var c=window.kendo,d=c.ui,e=a.extend,f=a.proxy,g=d.Widget,h=/^\d+(\.\d+)?px$/i,i=/^\d+(\.\d+)?%$/i,j="expand",k="collapse",l="contentLoad",m="resize",n="layoutChange",o="horizontal",p="vertical",q="mouseenter",r="click",s="pane",t="mouseleave",u="k-"+s,v="."+u,A=g.extend({init:function(b,c){var d=this,e=function(){d.trigger(m)};g.fn.init.call(d,b,c),d.wrapper=d.element,d.orientation=d.options.orientation.toLowerCase()!=p?o:p,d.bind(m,f(d._resize,d)),d._initPanes(),d._attachEvents(),a(window).resize(e),d.resizing=new D(d),d.element.triggerHandler("init.kendoSplitter")},events:[j,k,l,m,n],_attachEvents:function(){var b=this,c=b.options.orientation,d=".k-splitbar-draggable-"+c,e=".k-splitbar .k-icon:not(.k-resize-handle)",g=function(){b.trigger(m)};b.element.delegate(d,q,function(){a(this).addClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,t,function(){a(this).removeClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,"mousedown",function(){b._contentFrames(this).after("<div class='k-overlay' />")}).delegate(d,"mouseup",function(){b._contentFrames(this).next(".k-overlay").remove()}).delegate(e,q,function(){a(this).addClass("k-state-hover")}).delegate(e,t,function(){a(this).removeClass("k-state-hover")}).delegate(".k-splitbar .k-collapse-next, .k-splitbar .k-collapse-prev",r,b._arrowClick(k)).delegate(".k-splitbar .k-expand-next, .k-splitbar .k-expand-prev",r,b._arrowClick(j)).delegate(".k-splitbar","dblclick",f(b._dbclick,b)).parent().closest(".k-splitter").each(function(){var b=a(this),c=b.data("kendoSplitter");c?c.bind(m,g):b.one("init.kendoSplitter",function(){a(this).data("kendoSplitter").bind(m,g),g()})})},options:{name:"Splitter",orientation:o},_initPanes:function(){var b=this,c=b.options.panes||[];b.element.addClass("k-widget").addClass("k-splitter").children().addClass(u).each(function(d,e){var f=c&&c[d];e=a(e),e.data(s,f?f:{}).toggleClass("k-scrollable",f?f.scrollable!==!1:!0),b.ajaxRequest(e)}).end(),b.trigger(m)},ajaxRequest:function(b,d,e){b=a(b);var f=this,g=b.data(s);d=d||g.contentUrl,d&&(b.append("<span class='k-icon k-loading k-pane-loading' />"),c.isLocalUrl(d)?a.ajax({url:d,data:e||{},type:"GET",dataType:"html",success:function(a){b.html(a),f.trigger(l,{pane:b[0]})}}):b.removeClass("k-scrollable").html("<iframe src='"+d+"' frameborder='0' class='k-content-frame'>"+"This page requires frames in order to show content"+"</iframe>"))},_triggerAction:function(a,b){this.trigger(a,{pane:b[0]})||this[a](b[0])},_dbclick:function(b){var c=this,d=a(b.target),e;if(d.closest(".k-splitter")[0]==c.element[0]){e=d.children(".k-icon:not(.k-resize-handle)");if(e.length!==1)return;e.is(".k-collapse-prev")?c._triggerAction(k,d.prev()):e.is(".k-collapse-next")?c._triggerAction(k,d.next()):e.is(".k-expand-prev")?c._triggerAction(j,d.prev()):e.is(".k-expand-next")&&c._triggerAction(j,d.next())}},_arrowClick:function(b){var c=this;return function(d){var e=a(d.target),f;e.closest(".k-splitter")[0]==c.element[0]&&(e.is(".k-"+b+"-prev")?f=e.parent().prev():f=e.parent().next(),c._triggerAction(b,f))}},_updateSplitBar:function(a,b,c){var d=function(a,b){return b?"<div class='k-icon "+a+"' />":""},e=this.orientation,f=b.resizable!==!1&&c.resizable!==!1,g=b.collapsible,h=b.collapsed,i=c.collapsible,j=c.collapsed;a.addClass("k-splitbar k-state-default k-splitbar-"+e).removeClass("k-splitbar-"+e+"-hover").toggleClass("k-splitbar-draggable-"+e,f&&!h&&!j).toggleClass("k-splitbar-static-"+e,!f&&!g&&!i).html(d("k-collapse-prev",g&&!h&&!j)+d("k-expand-prev",g&&h&&!j)+d("k-resize-handle",f)+d("k-collapse-next",i&&!j&&!h)+d("k-expand-next",i&&j&&!h))},_updateSplitBars:function(){var b=this;this.element.children(".k-splitbar").each(function(){var c=a(this),d=c.prev(v).data(s),e=c.next(v).data(s);!e||b._updateSplitBar(c,d,e)})},_contentFrames:function(b){return a(b).siblings(v).find("> .k-content-frame")},_resize:function(){var b=this,c=b.element,d=c.children(":not(.k-splitbar)"),e=b.orientation==o,f=c.children(".k-splitbar"),g=f.length,h=e?"width":"height",i=c[h]();g===0?(g=d.length-1,d.slice(0,g).after("<div class='k-splitbar' />"),b._updateSplitBars(),f=c.children(".k-splitbar")):b._updateSplitBars(),f.each(function(){i-=this[e?"offsetWidth":"offsetHeight"]});var j=0,k=0,l=a();d.css({position:"absolute",top:0})[h](function(){var b=a(this).data(s)||{},c;if(b.collapsed)c=0,a(this).css("overflow","hidden");else{if(y(b.size)){l=l.add(this);return}c=parseInt(b.size,10),w(b.size)&&(c=Math.floor(c*i/100))}k++,j+=c;return c}),i-=j;var m=l.length,p=Math.floor(i/m);l.slice(0,m-1).css(h,p).end().eq(m-1).css(h,i-(m-1)*p);var q=0,r=e?"height":"width",t=e?"left":"top",u=e?"offsetWidth":"offsetHeight";if(m===0){var v=d.filter(function(){return!(a(this).data(s)||{}).collapsed}).last();v[h](i+v[0][u])}c.children().css(r,c[r]()).each(function(a,b){b.style[t]=Math.floor(q)+"px",q+=b[u]}),b.trigger(n)},toggle:function(c,d){var e;c=a(c),e=c.data(s),arguments.length==1&&(d=e.collapsed===b?!1:e.collapsed),e.collapsed=!d,e.collapsed?c.css("overflow","hidden"):c.css("overflow",""),this.trigger(m)},collapse:function(a){this.toggle(a,!1)},expand:function(a){this.toggle(a,!0)},size:z("size",!0),min:z("min"),max:z("max")});d.plugin(A);var B={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},C={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};D.prototype={_createHint:function(b){var c=this;return a("<div class='k-ghost-splitbar k-ghost-splitbar-"+c.orientation+" k-state-default' />").css(c.alternateSizingProperty,b[c.alternateSizingProperty]())},_start:function(b){var c=this,d=a(b.currentTarget),e=d.prev(),f=d.next(),g=e.data(s),h=f.data(s),i=parseInt(e[0].style[c.positioningProperty],10),j=parseInt(f[0].style[c.positioningProperty],10)+f[0][c.sizingDomProperty]-d[0][c.sizingDomProperty],k=c._element.css(c.sizingProperty),l=function(a){var b=parseInt(a,10);return(x(a)?b:k*b/100)||0},m=l(g.min),n=l(g.max)||j-i,o=l(h.min),p=l(h.max)||j-i;c.previousPane=e,c.nextPane=f,c._maxPosition=Math.min(j-o,i+n),c._minPosition=Math.max(i+m,j-p)},_max:function(a){return this._maxPosition},_min:function(a){return this._minPosition},_stop:function(b){var d=this,e=a(b.currentTarget),f=d.owner;f._contentFrames(e).next(".k-overlay").remove();if(b.keyCode!==c.keys.ESC){var g=b.position,h=e.prev(),i=e.next(),j=h.data(s),k=i.data(s),l=g-parseInt(h[0].style[d.positioningProperty],10),n=parseInt(i[0].style[d.positioningProperty],10)+i[0][d.sizingDomProperty]-g-e[0][d.sizingDomProperty],o=d._element.children(v).filter(function(){return y(a(this).data(s).size)}).length;if(!y(j.size)||o>1)y(j.size)&&o--,j.size=l+"px";if(!y(k.size)||o>1)k.size=n+"px";f.trigger(m)}return!1}}}(jQuery),function(a,b){function F(){var c={},d=a("meta[name=csrf-token]").attr("content"),e=a("meta[name=csrf-param]").attr("content");a("input[name^='__RequestVerificationToken']").each(function(){c[this.name]=this.value}),e!==b&&d!==b&&(c[e]=d);return c}function E(b){return a(b.target).closest(".k-file")}function D(a){return a.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function C(a,b,c){var d,e;a.bind("dragenter",function(a){b(),e=new Date,d||(d=setInterval(function(){var a=new Date-e;a>100&&(c(),clearInterval(d),d=null)},100))}).bind("dragover",function(a){e=new Date})}function B(a){a.stopPropagation(),a.preventDefault()}function A(b,c,d){var e=!1,f="";try{f=a.parseJSON(b),e=!0}catch(g){d()}e&&c(f)}function z(b,c,d){if(!!c._supportsRemove()){var f=b.data("fileNames"),g=a.map(f,function(a){return a.name});c._submitRemove(g,d,function(a,d,e){c._removeFileEntry(b),c.trigger(i,{operation:"remove",files:f,response:a,XMLHttpRequest:e})},function(a,b,b){var d=c.trigger(j,{operation:"remove",files:f,XMLHttpRequest:a});e("Server response: "+a.responseText)})}}function y(a){var b=a.lastIndexOf("\\");return b!=-1?a.substr(b+1):a}function x(a){var b=a.match(f);return b?b[0]:""}function w(a){var b=a.name||a.fileName;return{name:b,extension:x(b),size:a.size||a.fileSize,rawFile:a}}function v(b){return a.map(b,function(a){return w(a)})}function u(a){var b=a[0];return b.files?v(b.files):[{name:y(b.value),extension:x(b.value),size:null}]}function t(b){return a.map(u(b),function(a){return a.name}).join(", ")}var c=window.kendo,d=c.ui.Widget,e=c.logToConsole,f=/\.([^\.]+)$/,g="select",h="upload",i="success",j="error",k="complete",l="cancel",m="load",n="progress",o="remove",p=d.extend({init:function(c,e){var f=this;d.fn.init.call(f,c,e),f.name=c.name,f.multiple=f.options.multiple,f.localization=f.options.localization;var g=f.element;f.wrapper=g.closest(".k-upload"),f.wrapper.length==0&&(f.wrapper=f._wrapInput(g)),f._activeInput(g),f.toggle(f.options.enabled),g.closest("form").bind({submit:a.proxy(f._onParentFormSubmit,f),reset:a.proxy(f._onParentFormReset,f)}),f.options.async.saveUrl!=b?(f._module=f._supportsFormData()?new s(f):new r(f),f._async=!0):f._module=new q(f),f._supportsDrop()&&f._setupDropZone(),f.wrapper.delegate(".k-upload-action","click",a.proxy(f._onFileAction,f)).delegate(".k-upload-selected","click",a.proxy(f._onUploadSelected,f)).delegate(".k-file","t:progress",a.proxy(f._onFileProgress,f)).delegate(".k-file","t:upload-success",a.proxy(f._onUploadSuccess,f)).delegate(".k-file","t:upload-error",a.proxy(f._onUploadError,f))},events:[g,h,i,j,k,l,n,o],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(a){var b=this,c=b.element;d.fn.setOptions.call(b,a),b.multiple=b.options.multiple,c.attr("multiple",b._supportsMultiple()?b.multiple:!1),b.toggle(b.options.enabled)},enable:function(a){a=typeof a=="undefined"?!0:a,this.toggle(a)},disable:function(){this.toggle(!1)},toggle:function(a){a=typeof a=="undefined"?a:!a,this.wrapper.toggleClass("k-state-disabled",a)},_addInput:function(b){var c=this;b.insertAfter(c.element).data("kendoUpload",c),a(c.element).hide().removeAttr("id"),c._activeInput(b)},_activeInput:function(b){var c=this,d=c.wrapper;c.element=b,b.attr("multiple",c._supportsMultiple()?c.multiple:!1).attr("autocomplete","off").click(function(a){d.hasClass("k-state-disabled")&&a.preventDefault()}).change(a.proxy(c._onInputChange,c))},_onInputChange:function(b){var c=this,d=a(b.target),e=c.trigger(g,{files:u(d)});e?(c._addInput(d.clone().val("")),d.remove()):d.trigger("t:select")},_onDrop:function(b){var c=b.originalEvent.dataTransfer,d=this,e=c.files;B(b);if(e.length>0){var f=d.trigger(g,{files:v(e)});f||a(".k-dropzone",d.wrapper).trigger("t:select",[e])}},_enqueueFile:function(b,c){var d=this,e,f,g=a(".k-upload-files",d.wrapper);g.length==0&&(g=a("<ul class='k-upload-files k-reset'></ul>").appendTo(d.wrapper),d.options.showFileList||g.hide()),e=a(".k-file",g),f=a("<li class='k-file'><span class='k-filename' title='"+b+"'>"+b+"</span></li>").appendTo(g).data(c),d._async&&f.prepend("<span class='k-icon'></span>"),d.multiple||e.trigger("t:remove");return f},_removeFileEntry:function(b){var c=b.closest(".k-upload-files"),d;b.remove(),d=a(".k-file",c),d.find("> .k-fail").length===d.length&&this._hideUploadButton(),d.length==0&&c.remove()},_fileAction:function(a,b){var c={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};!c.hasOwnProperty(b)||(this._clearFileAction(a),a.append(this._renderAction(c[b],this.localization[b]).addClass("k-upload-action")))},_fileState:function(a,b){var c=this.localization,d={uploading:{cssClass:"k-loading",text:c.statusUploading},uploaded:{cssClass:"k-success",text:c.statusUploaded},failed:{cssClass:"k-fail",text:c.statusFailed}},e=d[b];if(e){var f=a.children(".k-icon").text(e.text);f[0].className="k-icon "+e.cssClass}},_renderAction:function(b,c){return b!=""?a("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+b+"'></span>"+c+"</button>"):a("<button type='button' class='k-button'>"+c+"</button>")},_clearFileAction:function(a){a.find(".k-upload-action").remove()},_onFileAction:function(b){var c=this;if(!c.wrapper.hasClass("k-state-disabled")){var d=a(b.target).closest(".k-upload-action"),e=d.find(".k-icon"),f=d.closest(".k-file"),g={files:f.data("fileNames")};e.hasClass("k-delete")?c.trigger(o,g)||f.trigger("t:remove",g.data):e.hasClass("k-cancel")?(c.trigger(l,g),f.trigger("t:cancel"),this._checkAllComplete()):e.hasClass("k-retry")&&f.trigger("t:retry")}return!1},_onUploadSelected:function(){this.wrapper.trigger("t:saveSelected");return!1},_onFileProgress:function(b,c){var d=a(".k-progress-status",b.target);d.length==0&&(d=a("<span class='k-progress'><span class='k-state-selected k-progress-status' style='width: 0;'></span></span>").appendTo(a(".k-filename",b.target)).find(".k-progress-status")),d.width(c+"%"),this.trigger(n,{files:E(b).data("fileNames"),percentComplete:c})},_onUploadSuccess:function(a,b,c){var d=E(a);this._fileState(d,"uploaded"),this.trigger(i,{files:d.data("fileNames"),response:b,operation:"upload",XMLHttpRequest:c}),this._supportsRemove()?this._fileAction(d,o):this._clearFileAction(d),this._checkAllComplete()},_onUploadError:function(a,b){var c=E(a);this._fileState(c,"failed"),this._fileAction(c,"retry");var d=this.trigger(j,{operation:"upload",files:c.data("fileNames"),XMLHttpRequest:b});e("Server response: "+b.responseText),this._checkAllComplete()},_showUploadButton:function(){var b=a(".k-upload-selected",this.wrapper);b.length==0&&(b=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(b)},_hideUploadButton:function(){a(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var b=this,c=b.element;c.trigger("t:abort");if(!c.value){var d=a(c);d.attr("disabled","disabled"),window.setTimeout(function(){d.removeAttr("disabled")},0)}},_onParentFormReset:function(){a(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return typeof FormData!="undefined"},_supportsMultiple:function(){return!a.browser.opera},_supportsDrop:function(){var a=this._userAgent().toLowerCase(),c=/chrome/.test(a),d=!c&&/safari/.test(a),e=d&&/windows/.test(a);return!e&&this._supportsFormData()&&this.options.async.saveUrl!=b},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){a(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var b=a(".k-dropzone",this.wrapper).append(a("<em>"+this.localization.dropFilesHere+"</em>")).bind({dragenter:B,dragover:function(a){a.preventDefault()},drop:a.proxy(this._onDrop,this)});C(b,function(){b.addClass("k-dropzone-hovered")},function(){b.removeClass("k-dropzone-hovered")}),C(a(document),function(){b.addClass("k-dropzone-active")},function(){b.removeClass("k-dropzone-active")})},_supportsRemove:function(){return this.options.async.removeUrl!=b},_submitRemove:function(b,c,d,e){var f=this,g=f.options.async.removeField||"fileNames",h=a.extend(c,F());h[g]=b,a.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:h,success:d,error:e})},_wrapInput:function(a){a.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),a.closest(".k-button").append("<span>"+this.localization.select+"</span>");return a.closest(".k-upload")},_checkAllComplete:function(){a(".k-file .k-icon.k-loading",this.wrapper).length==0&&this.trigger(k)}}),q=function(b){this.name="syncUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:remove",a.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};q.prototype={onSelect:function(b){var c=this.upload,d=a(b.target);c._addInput(d.clone().val(""));var e=c._enqueueFile(t(d),{relatedInput:d,fileNames:u(d)});c._fileAction(e,o)},onRemove:function(a){var b=E(a);b.data("relatedInput").remove(),this.upload._removeFileEntry(b)}};var r=function(b){this.name="iframeUploadModule",this.element=b.wrapper,this.upload=b,this.iframes=[],this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};p._frameId=0,r.prototype={onSelect:function(b){var c=this.upload,d=a(b.target),e=this.prepareUpload(d);c.options.async.autoUpload?this.performUpload(e):(c._supportsRemove()&&this.upload._fileAction(e,o),c._showUploadButton())},prepareUpload:function(b){var c=this.upload,d=a(c.element),e=c.options.async.saveField||b.attr("name");c._addInput(b.clone().val("")),b.attr("name",e);var f=this.createFrame(c.name+"_"+p._frameId++);this.registerFrame(f);var g=this.createForm(c.options.async.saveUrl,f.attr("name")).append(d),h=c._enqueueFile(t(b),{frame:f,relatedInput:d,fileNames:u(b)});f.data({form:g,file:h});return h},performUpload:function(b){var c={files:b.data("fileNames")},d=b.data("frame"),e=this.upload;if(!e.trigger(h,c)){e._hideUploadButton(),d.appendTo(document.body);var f=d.data("form").appendTo(document.body);c.data=a.extend({},c.data,F());for(var g in c.data){var i=f.find("input[name='"+g+"']");i.length==0&&(i=a("<input>",{type:"hidden",name:g}).appendTo(f)),i.val(c.data[g])}e._fileAction(b,l),e._fileState(b,"uploading"),d.one("load",a.proxy(this.onIframeLoad,this)),f[0].submit()}else e._removeFileEntry(d.data("file")),this.cleanupFrame(d),this.unregisterFrame(d)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onIframeLoad:function(b){var c=a(b.target);try{var d=c.contents().text()}catch(b){d="Error trying to get server response: "+b}this.processResponse(c,d)},processResponse:function(b,c){var d=b.data("file"),e=this,f={responseText:c};A(c,function(c){a.extend(f,{statusText:"OK",status:"200"}),d.trigger("t:progress",[100]),d.trigger("t:upload-success",[c,f]),e.cleanupFrame(b),e.unregisterFrame(b)},function(){a.extend(f,{statusText:"error",status:"500"}),d.trigger("t:upload-error",[f])})},onCancel:function(b){var c=a(b.target).data("frame");this.stopFrameSubmit(c),this.cleanupFrame(c),this.unregisterFrame(c),this.upload._removeFileEntry(c.data("file"))},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a),d=c.data("frame");d?(this.unregisterFrame(d),this.upload._removeFileEntry(c),this.cleanupFrame(d)):z(c,this.upload,b)},onAbort:function(){var b=this.element,c=this;a.each(this.iframes,function(){a("input",this.data("form")).appendTo(b),c.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(b){return a("<iframe name='"+b+"'"+" id='"+b+"'"+" style='display:none;' />")},createForm:function(b,c){return a("<form enctype='multipart/form-data' method='POST' action='"+b+"'"+" target='"+c+"'"+"/>")},stopFrameSubmit:function(a){typeof a.stop!="undefined"?a.stop():a.document&&(a.document.execCommand("Stop"),a.contentWindow.location.href=a.contentWindow.location.href)},registerFrame:function(a){this.iframes.push(a)},unregisterFrame:function(b){this.iframes=a.grep(this.iframes,function(a){return a.attr("name")!=b.attr("name")})},cleanupFrame:function(a){var b=a.data("form");a.data("file").data("frame",null),setTimeout(function(){b.remove(),a.remove()},1)}};var s=function(b){this.name="formDataUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};s.prototype={onSelect:function(b,c){var d=this.upload,e=this,f=a(b.target),g=c?v(c):this.inputFiles(f),h=this.prepareUpload(f,g);a.each(h,function(){d.options.async.autoUpload?e.performUpload(this):(d._supportsRemove()&&d._fileAction(this,o),d._showUploadButton())})},prepareUpload:function(b,c){var d=this.enqueueFiles(c);b.is("input")&&(a.each(d,function(){a(this).data("relatedInput",b)}),b.data("relatedFileEntries",d),this.upload._addInput(b.clone().val("")));return d},enqueueFiles:function(a){var b=this.upload;fileEntries=[];for(var c=0;c<a.length;c++){var d=a[c],e=d.name,f=b._enqueueFile(e,{fileNames:[d]});f.data("file",d),fileEntries.push(f)}return fileEntries},inputFiles:function(a){return u(a)},performUpload:function(b){var c=this.upload,d=this.createFormData(b.data("file")),e={files:b.data("fileNames")};if(!c.trigger(h,e)){c._fileAction(b,l),c._hideUploadButton(),e.data=a.extend({},e.data,F());for(var f in e.data)d.append(f,e.data[f]);c._fileState(b,"uploading"),this.postFormData(this.upload.options.async.saveUrl,d,b)}else this.removeFileEntry(b)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onCancel:function(a){var b=E(a);this.stopUploadRequest(b),this.removeFileEntry(b)},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a);c.children(".k-icon").is(".k-success")?z(c,this.upload,b):this.removeFileEntry(c)},postFormData:function(a,b,c){var d=new XMLHttpRequest,e=this;c.data("request",d),d.addEventListener("load",function(a){e.onRequestSuccess.call(e,a,c)},!1),d.addEventListener(j,function(a){e.onRequestError.call(e,a,c)},!1),d.upload.addEventListener("progress",function(a){e.onRequestProgress.call(e,a,c)},!1),d.open("POST",a),d.withCredentials="true",d.send(b)},createFormData:function(a){var b=new FormData,c=this.upload;b.append(c.options.async.saveField||c.name,a.rawFile);return b},onRequestSuccess:function(a,b){function e(){b.trigger("t:upload-error",[c])}var c=a.target,d=this;c.status>=200&&c.status<=299?A(c.responseText,function(a){b.trigger("t:progress",[100]),b.trigger("t:upload-success",[a,c]),d.cleanupFileEntry(b)},e):e()},onRequestError:function(a,b){var c=a.target;b.trigger("t:upload-error",[c])},cleanupFileEntry:function(b){var c=b.data("relatedInput"),d=!0;c&&(a.each(c.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=b[0]&&(d=d&&this.children(".k-icon").is(".k-success"))}),d&&c.remove())},removeFileEntry:function(a){this.cleanupFileEntry(a),this.upload._removeFileEntry(a)},onRequestProgress:function(a,b){var c=Math.round(a.loaded*100/a.total);b.trigger("t:progress",[c])},stopUploadRequest:function(a){a.data("request").abort()}},c.ui.plugin(p)}(jQuery),function(a,b){function Q(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:n,group:a.wrapper.id+"-moving",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b),dragcancel:g(b.dragcancel,b)})}function P(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:p,group:a.wrapper.id+"-resizing",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b)})}function N(a,b){return function(){var a=this,c=a.wrapper,d=c[0].style,e=a.options;if(!e.isMaximized&&!e.isMinimized){a.restoreOptions={width:d.width,height:d.height},c.find(p).hide().end().find(I).parent().hide().eq(0).before(l.action({name:"Restore"})),b.call(a);return a}}}function M(){return a(m).filter(function(){var b=a(this);return b.is(u)&&L(b).options.modal}).sort(function(b,c){return+a(b).css("zIndex")- +a(c).css("zIndex")})}function L(a){return a.children(o).data("kendoWindow")}function K(a,b,c){return Math.max(Math.min(a,c),b)}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.isPlainObject,g=a.proxy,h=a.extend,i=a.each,j=c.template,k="body",l,m=".k-window",n=".k-window-titlebar",o=".k-window-content",p=".k-resize-handle",q=".k-overlay",r="k-content-frame",s="k-loading",t="k-state-hover",u=":visible",v="hidden",w="cursor",x="open",y="activate",z="deactivate",A="close",B="refresh",C="resize",D="dragstart",E="dragend",F="error",G="overflow",H="zIndex",I=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",J=c.isLocalUrl,O=d.extend({init:function(b,e){var h=this,j,k,o,p,q=!1,r;d.fn.init.call(h,b,e),e=h.options,b=h.element,r=e.content,h.appendTo=a(e.appendTo||document.body),h._animations(),f(r)||(r=e.content={url:r}),b.parent().is(h.appendTo)||(b.is(u)?(k=b.offset(),q=!0):(o=b.css("visibility"),p=b.css("display"),b.css({visibility:v,display:""}),k=b.offset(),b.css({visibility:o,display:p}))),typeof e.visible=="undefined"&&(e.visible=b.is(u)),j=h.wrapper=b.closest(m);if(!b.is(".k-content")||!j[0])b.addClass("k-window-content k-content"),h._createWindow(b,e),j=h.wrapper=b.closest(m),h._dimensions();k&&j.css({top:k.top,left:k.left}),r&&h.refresh(r),h.toFront(),e.visible&&e.modal&&h._overlay(j.is(u)).css({opacity:.5}),j.on({mouseenter:function(){a(this).addClass(t)},mouseleave:function(){a(this).removeClass(t)},click:g(h._windowActionHandler,h)},".k-window-titlebar .k-window-action"),e.resizable&&(j.on("dblclick",n,g(h.toggleMaximization,h)),i("n e s w se sw ne nw".split(" "),function(a,b){j.append(l.resizeHandle(b))}),h.resizing=new P(h)),e.draggable&&(h.dragging=new Q(h)),j.add(j.find(".k-resize-handle,.k-window-titlebar")).on("mousedown",g(h.toFront,h)),h.touchScroller=c.touchScroller(b),a(window).resize(g(h._onDocumentResize,h)),e.visible&&(h.trigger(x),h.trigger(y)),c.notify(h)},_dimensions:function(){var a=this,b=a.wrapper,c=a.element,d=a.options;a.title(d.title),d.width&&b.width(d.width),d.height&&b.height(d.height),i(["minWidth","minHeight","maxWidth","maxHeight"],function(a,b){var e=d[b];e&&e!=Infinity&&c.css(b,e)}),d.visible||b.hide()},_animations:function(){var a=this.options;a.animation===!1&&(a.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(a){d.fn.setOptions.call(this,a),this._animations(),this._dimensions()},events:[x,y,z,A,B,C,D,E,F],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350,show:!0},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:Infinity,maxHeight:Infinity},_overlay:function(b){var c=this.appendTo.children(".k-overlay"),d=this.wrapper;c.length||(c=a("<div class='k-overlay' />")),c.insertBefore(d[0]).toggle(b).css(H,parseInt(d.css(H),10)-1);return c},_windowActionHandler:function(b){var c=a(b.target).closest(".k-window-action").find(".k-icon"),d=this;i({"k-i-close":d.close,"k-i-maximize":d.maximize,"k-i-minimize":d.minimize,"k-i-restore":d.restore,"k-i-refresh":d.refresh},function(a,e){if(c.hasClass(a)){b.preventDefault(),e.call(d);return!1}})},center:function(){var b=this.wrapper,c=a(window);b.css({left:c.scrollLeft()+Math.max(0,(c.width()-b.width())/2),top:c.scrollTop()+Math.max(0,(c.height()-b.height())/2)});return this},title:function(a){var b=this,c=b.wrapper,d=b.options,e=c.find(n),f=e.children(".k-window-title"),g=e.outerHeight();if(!arguments.length)return f.text();a===!1?(c.addClass("k-window-titleless"),e.remove()):(e.length||c.prepend(l.titlebar(h(l,d))),c.css("padding-top",g),e.css("margin-top",-g)),f.text(a);return b},content:function(a){var b=this.wrapper.children(o);if(!a)return b.html();b.html(a);return this},open:function(){var b=this,c=b.wrapper,d=b.options,e=d.animation.open,f=c.children(o),g=f.css(G),h;b.trigger(x)||(b.toFront(),d.visible=!0,d.modal&&(h=b._overlay(!1),e.duration?h.kendoStop().kendoAnimate({effects:{fade:{direction:"out",properties:{opacity:.5}}},duration:e.duration,show:!0}):h.css("opacity",.5).show()),c.is(u)||(f.css(G,v),c.show().kendoStop().kendoAnimate({effects:e.effects,duration:e.duration,complete:function(){b.trigger(y),f.css(G,g)}}))),d.isMaximized&&(b._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v));return b},close:function(){var c=this,d=c.wrapper,e=c.options,f=e.animation.open,g=e.animation.close,h,i,j;d.is(u)&&!c.trigger(A)&&(e.visible=!1,h=M(),i=e.modal&&h.length==1,j=e.modal?c._overlay(!0):a(b),i?g.duration?j.kendoStop().kendoAnimate({effects:{fadeOut:{properties:{opacity:0}}},duration:g.duration,hide:!0}):j.hide():h.length&&L(h.eq(h.length-2))._overlay(!0),d.kendoStop().kendoAnimate({effects:g.effects||f.effects,reverse:g.reverse===!0,duration:g.duration,complete:function(){d.hide(),c.trigger(z)}})),c.options.isMaximized&&(a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop));return c},toFront:function(){var b=this,c=b.wrapper,d=c[0],e=+c.css(H),f=e;a(m).each(function(b,c){var f=a(c),g=f.css(H),h=f.find(o);isNaN(g)||(e=Math.max(+g,e)),c!=d&&h.find("> ."+r).length>0&&h.append(l.overlay)});if(e==10001||f<e)c.css(H,e+2),b.element.find("> .k-overlay").remove();return b},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var b=this,c=b.options,d=b.restoreOptions;if(!!c.isMaximized||!!c.isMinimized){b.wrapper.css({position:"absolute",left:d.left,top:d.top,width:d.width,height:d.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(I).parent().show(),a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop),c.isMaximized=c.isMinimized=!1,b.trigger(C);return b}},maximize:N("maximize",function(){var b=this,c=b.wrapper,d=c.position();h(b.restoreOptions,{left:d.left,top:d.top}),c.css({left:0,top:0,position:"fixed"}),this._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v),b.options.isMaximized=!0,b._onDocumentResize()}),minimize:N("minimize",function(){var a=this;a.wrapper.css("height",""),a.element.hide(),a.options.isMinimized=!0}),_onDocumentResize:function(){var b=this,c=b.wrapper,d=a(window);!b.options.isMaximized||(c.css({width:d.width(),height:d.height()-parseInt(c.css("padding-top"),10)}),b.trigger(C))},refresh:function(b){var c=this,d=c.options,e=a(c.element),g,i=d.iframe,k;f(b)||(b={url:b}),b=h({},d.content,b),k=b.url,k?(typeof i=="undefined"&&(i=!J(k)),i?(g=e.find("."+r)[0],g?g.src=k||g.src:e.html(l.contentFrame(h({},d,{content:b})))):c._ajaxRequest(b)):b.template&&c.content(j(b.template)({}));return c},_ajaxRequest:function(b){var c=this,d=b.template,e=c.wrapper.find(".k-window-titlebar .k-i-refresh"),f=setTimeout(function(){e.addClass(s)},100);a.ajax(h({type:"GET",dataType:"html",cache:!1,error:g(function(a,b){c.trigger(F)},c),complete:function(){clearTimeout(f),e.removeClass(s)},success:g(function(a,b){d&&(a=j(d)(a||{})),c.element.html(a),c.trigger(B)},c)},b))},destroy:function(){var a=this,b,c;a.wrapper.remove(),b=M(),c=a.options.modal&&!b.length,c?a._overlay(!1).remove():b.length>0&&L(b.eq(b.length-2))._overlay(!0)},_createWindow:function(){var b=this,c=b.element,d=b.options,e,f;d.scrollable===!1&&c.attr("style","overflow:hidden;"),d.iframe&&c.html(l.contentFrame(d)),f=a(l.wrapper(d)),d.title!==!1&&f.append(l.titlebar(h(l,d))),f.toggleClass("k-rtl",!!b.element.closest(".k-rtl").length),e=c.find("iframe").map(function(a){var b=this.getAttribute("src");this.src="";return b}),f.appendTo(b.appendTo).append(c).find("iframe").each(function(a){this.src=e[a]}),c.show()}});l={wrapper:j("<div class='k-widget k-window' />"),action:j("<a href='\\#' class='k-window-action k-link'><span class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:j("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions k-header'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:j("<iframe src='#= content.url #' title='#= title #' frameborder='0' class='"+r+"'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:j("<div class='k-resize-handle k-resize-#= data #'></div>")},P.prototype={dragstart:function(b){var c=this,d=c.owner,e=d.wrapper;c.elementPadding=parseInt(d.wrapper.css("padding-top"),10),c.initialCursorPosition=e.offset(),c.resizeDirection=b.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),c.initialSize={width:e.width(),height:e.height()},c.containerOffset=d.appendTo.offset(),e.append(l.overlay).find(p).not(b.currentTarget).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(a){var b=this,c=b.owner,d=c.wrapper,e=c.options,f=b.resizeDirection,g=b.containerOffset,h=b.initialCursorPosition,i=b.initialSize,j,k,l,m,n=a.x.location,o=a.y.location;f.indexOf("e")>=0?(j=n-h.left,d.width(K(j,e.minWidth,e.maxWidth))):f.indexOf("w")>=0&&(m=h.left+i.width,j=K(m-n,e.minWidth,e.maxWidth),d.css({left:m-j-g.left,width:j})),f.indexOf("s")>=0?(k=o-h.top-b.elementPadding,d.height(K(k,e.minHeight,e.maxHeight))):f.indexOf("n")>=0&&(l=h.top+i.height,k=K(l-o,e.minHeight,e.maxHeight),d.css({top:l-k-g.top,height:k})),c.trigger(C)},dragend:function(b){var c=this,d=c.owner,e=d.wrapper;e.find(q).remove().end().find(p).not(b.currentTarget).show(),a(k).css(w,""),d.touchScroller&&d.touchScroller.reset(),b.keyCode==27&&e.css(c.initialCursorPosition).css(c.initialSize);return!1}},Q.prototype={dragstart:function(b){var c=this.owner,d=c.element,e=d.find(".k-window-actions"),f=c.appendTo.offset();c.trigger(D),c.initialWindowPosition=c.wrapper.position(),c.startPosition={left:b.x.client-c.initialWindowPosition.left,top:b.y.client-c.initialWindowPosition.top},e.length>0?c.minLeftPosition=e.outerWidth()+parseInt(e.css("right"),10)-d.outerWidth():c.minLeftPosition=20-d.outerWidth(),c.minLeftPosition-=f.left,c.minTopPosition=-f.top,c.wrapper.append(l.overlay).find(p).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(b){var c=this.owner,d={left:Math.max(b.x.client-c.startPosition.left,c.minLeftPosition),top:Math.max(b.y.client-c.startPosition.top,c.minTopPosition)};a(c.wrapper).css(d)},dragcancel:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),b.currentTarget.closest(m).css(c.initialWindowPosition)},dragend:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),c.trigger(E);return!1}},c.ui.plugin(O)}(jQuery);
|
11
|
+
(function($,undefined){function Class(){}function compilePart(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=e.charAt(0),i=e.substring(1);return"="===n?"+("+i+")+":":"===n?"+e("+i+")+":";"+e+";o+="}function pad(e,t,n){return e+="",t=t||2,n=t-e.length,n?zeros[t].substring(0,n)+e:e}function wrap(e){var t,n=support.browser,i="rtl"==e.css("direction");if(e.parent().hasClass("k-animation-container")){var r=e.parent(".k-animation-container"),a=r[0].style;r.is(":hidden")&&r.show(),t=percentRegExp.test(a.width)||percentRegExp.test(a.height),t||r.css({width:e.outerWidth(),height:e.outerHeight()})}else{var o=e.css(kendo.support.transitions.css+"box-shadow")||e.css("box-shadow"),s=o?o.match(boxShadowRegExp)||[0,0,0,0,0]:[0,0,0,0,0],l=math.max(+s[3],+(s[4]||0)),d=-s[1]+l,c=+s[1]+l,u=+s[2]+l,p=e[0].style.width,f=e[0].style.height,h=percentRegExp.test(p),m=percentRegExp.test(f);n.opera&&(d=c=u=5),t=h||m,h||(p=e.outerWidth()),m||(f=e.outerHeight()),e.wrap($("<div/>").addClass("k-animation-container").css({width:p,height:f,marginLeft:d*(i?1:-1),paddingLeft:d,paddingRight:c,paddingBottom:u})),t&&e.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}return n.msie&&7>=math.floor(n.version)&&e.css({zoom:1}),e.parent()}function deepExtend(e){var t=1,n=arguments.length;for(t=1;n>t;t++)deepExtendOne(e,arguments[t]);return e}function deepExtendOne(e,t){var n,i,r,a,o=kendo.data.ObservableArray;for(n in t)i=t[n],r=typeof i,r===OBJECT&&null!==i&&i.constructor!==Array&&i.constructor!==o?i instanceof Date?e[n]=new Date(i.getTime()):(a=e[n],e[n]=typeof a===OBJECT?a||{}:{},deepExtendOne(e[n],i)):r!==UNDEFINED&&(e[n]=i);return e}function testRx(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return n!==undefined?n:e}function getComputedStyles(e,t){var n,i={};return document.defaultView&&document.defaultView.getComputedStyle?(n=document.defaultView.getComputedStyle(e,""),t&&$.each(t,function(e,t){i[t]=n.getPropertyValue(t)})):(n=e.currentStyle,t&&$.each(t,function(e,t){i[t]=n[t.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})]})),kendo.size(i)||(i=n),i}function size(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function isNodeEmpty(e){return""===$.trim($(e).contents().filter(function(){return 8!=this.nodeType}).html())}function getOffset(e,t){t||(t="offset");var n=e[t](),i=support.mobileOS;if(support.touch&&i.ios&&410>i.flatVersion){var r="offset"==t?n:e.offset(),a=n.left==r.left&&n.top==r.top;if(a)return{top:n.top-window.scrollY,left:n.left-window.scrollX}}return n}function parseEffects(e){var t={};return each("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function fx(e){return new kendo.fx.Element(e)}function prepareAnimationOptions(e,t,n,i){return typeof e===STRING&&(isFunction(t)&&(i=t,t=400,n=!1),isFunction(n)&&(i=n,n=!1),typeof t===BOOLEAN&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),extend({effects:{},duration:400,reverse:!1,init:noop,teardown:noop,hide:!1},e,{completeCallback:e.complete,complete:noop})}function animate(e,t,n,i,r){for(var a,o=0,s=e.length;s>o;o++)a=$(e[o]),a.queue(function(){fx.promise(a,prepareAnimationOptions(t,n,i,r))});return e}function animateTo(e,t,n,i,r,a){return fx.transitionPromise(e,t,prepareAnimationOptions(n,i,r,a))}function toggleClass(e,t,n,i){return t&&(t=t.split(" "),each(t,function(t,n){e.toggleClass(n,i)})),e}function htmlEncode(e){return(""+e).replace(ampRegExp,"&").replace(ltRegExp,"<").replace(gtRegExp,">")}function parseOption(element,option){var value;return 0===option.indexOf("data")&&(option=option.substring(4),option=option.charAt(0).toLowerCase()+option.substring(1)),option=option.replace(dashRegExp,"-$1"),value=element.getAttribute("data-"+kendo.ns+option),null===value?value=undefined:"null"===value?value=null:"true"===value?value=!0:"false"===value?value=!1:isNaN(parseFloat(value))?jsonRegExp.test(value)&&!jsonFormatRegExp.test(value)&&(value=eval("("+value+")")):value=parseFloat(value),value}function parseOptions(e,t){var n,i,r={};for(n in t)i=parseOption(e,n),i!==undefined&&(templateRegExp.test(n)&&(i=kendo.template($("#"+i).html())),r[n]=i);return r}function focusable(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&visible(e)}function visible(e){return!$(e).parents().andSelf().filter(function(){return"hidden"===$.css(this,"visibility")||$.expr.filters.hidden(this)}).length}function applyEventMap(e){return eventMap[e]||e}var kendo=window.kendo=window.kendo||{},extend=$.extend,each=$.each,proxy=$.proxy,isArray=$.isArray,noop=$.noop,isFunction=$.isFunction,math=Math,Template,JSON=window.JSON||{},support={},percentRegExp=/%/,formatRegExp=/\{(\d+)(:[^\}]+)?\}/g,boxShadowRegExp=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,FUNCTION="function",STRING="string",NUMBER="number",OBJECT="object",NULL="null",BOOLEAN="boolean",UNDEFINED="undefined",getterCache={},setterCache={},slice=[].slice,globalize=window.Globalize;Class.extend=function(e){var t,n,i=function(){},r=this,a=e&&e.init?e.init:function(){r.apply(this,arguments)};i.prototype=r.prototype,n=a.fn=a.prototype=new i;for(t in e)n[t]=typeof e[t]!==OBJECT||e[t]instanceof Array||null===e[t]?e[t]:extend(!0,{},i.prototype[t],e[t]);return n.constructor=a,a.extend=r.extend,a};var Observable=Class.extend({init:function(){this._events={}},bind:function(e,t,n){var i,r,a,o,s,l=this,d=typeof e===STRING?[e]:e,c=typeof t===FUNCTION;for(i=0,r=d.length;r>i;i++)e=d[i],o=c?t:t[e],o&&(n&&(a=o,o=function(){l.unbind(e,o),a.apply(l,arguments)}),s=l._events[e]=l._events[e]||[],s.push(o));return l},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,r,a,o=this,s=typeof e===STRING?[e]:e,l=typeof t===FUNCTION;for(n=0,i=s.length;i>n;n++)e=s[n],r=l?t:t[e],r&&(a=o._events[e]=o._events[e]||[],a.unshift(r));return o},trigger:function(e,t){var n,i,r=this,a=r._events[e],o=!1;if(a)for(t=t||{},t.sender=r,t.preventDefault=function(){o=!0},t.isDefaultPrevented=function(){return o},a=a.slice(),n=0,i=a.length;i>n;n++)a[n].call(r,t);return o},unbind:function(e,t){var n,i,r=this,a=r._events[e];if(e===undefined)r._events={};else if(a)if(t)for(n=0,i=a.length;i>n;n++)a[n]===t&&a.splice(n,1);else r._events[e]=[];return r}}),argumentNameRegExp=/^\w+/,encodeRegExp=/\$\{([^}]*)\}/g,escapedCurlyRegExp=/\\\}/g,curlyRegExp=/__CURLY__/g,escapedSharpRegExp=/\\#/g,sharpRegExp=/__SHARP__/g,zeros=["","0","00","000","0000"];Template={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,r="";for(n=0,i=t.length;i>n;n++)r+=e(t[n]);return r},compile:function(e,t){var n,i,r=extend({},this,t),a=r.paramName,o=a.match(argumentNameRegExp)[0],s=r.useWithBlock,l="var o,e=kendo.htmlEncode;";if(isFunction(e))return 2===e.length?function(t){return e($,{data:t}).join("")}:e;for(l+=s?"with("+a+"){":"",l+="o=",n=e.replace(escapedCurlyRegExp,"__CURLY__").replace(encodeRegExp,"#=e($1)#").replace(curlyRegExp,"}").replace(escapedSharpRegExp,"__SHARP__").split("#"),i=0;n.length>i;i++)l+=compilePart(n[i],0===i%2);l+=s?";}":";",l+="return o;",l=l.replace(sharpRegExp,"#");try{return Function(o,l)}catch(d){throw Error(kendo.format("Invalid template:'{0}' Generated code:'{1}'",e,l))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=o[e];return typeof t===STRING?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(a,o){var l,d,c,u,p,f,h=n,m=o[a];if(m&&typeof m===OBJECT&&typeof m.toJSON===FUNCTION&&(m=m.toJSON(a)),typeof r===FUNCTION&&(m=r.call(o,a,m)),f=typeof m,f===STRING)return e(m);if(f===NUMBER)return isFinite(m)?m+"":NULL;if(f===BOOLEAN||f===NULL)return m+"";if(f===OBJECT){if(!m)return NULL;if(n+=i,p=[],"[object Array]"===s.apply(m)){for(u=m.length,l=0;u>l;l++)p[l]=t(l,m)||NULL;return c=0===p.length?"[]":n?"[\n"+n+p.join(",\n"+n)+"\n"+h+"]":"["+p.join(",")+"]",n=h,c}if(r&&typeof r===OBJECT)for(u=r.length,l=0;u>l;l++)typeof r[l]===STRING&&(d=r[l],c=t(d,m),c&&p.push(e(d)+(n?": ":":")+c));else for(d in m)Object.hasOwnProperty.call(m,d)&&(c=t(d,m),c&&p.push(e(d)+(n?": ":":")+c));return c=0===p.length?"{}":n?"{\n"+n+p.join(",\n"+n)+"\n"+h+"}":"{"+p.join(",")+"}",n=h,c}}var n,i,r,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={}.toString;typeof Date.prototype.toJSON!==FUNCTION&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?pad(e.getUTCFullYear(),4)+"-"+pad(e.getUTCMonth()+1)+"-"+pad(e.getUTCDate())+"T"+pad(e.getUTCHours())+":"+pad(e.getUTCMinutes())+":"+pad(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof JSON.stringify!==FUNCTION&&(JSON.stringify=function(e,a,o){var s;if(n="",i="",typeof o===NUMBER)for(s=0;o>s;s+=1)i+=" ";else typeof o===STRING&&(i=o);if(r=a,a&&typeof a!==FUNCTION&&(typeof a!==OBJECT||typeof a.length!==NUMBER))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function e(e){if(e){if(e.numberFormat)return e;if(typeof e===STRING){var t=kendo.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function t(t){return t&&(t=e(t)),t||kendo.cultures.current}function n(e,n,i){i=t(i);var a=i.calendars.standard,o=a.days,s=a.months;return n=a.patterns[n]||n,n.replace(r,function(t){var n;return"d"===t?n=e.getDate():"dd"===t?n=pad(e.getDate()):"ddd"===t?n=o.namesAbbr[e.getDay()]:"dddd"===t?n=o.names[e.getDay()]:"M"===t?n=e.getMonth()+1:"MM"===t?n=pad(e.getMonth()+1):"MMM"===t?n=s.namesAbbr[e.getMonth()]:"MMMM"===t?n=s.names[e.getMonth()]:"yy"===t?n=pad(e.getFullYear()%100):"yyyy"===t?n=pad(e.getFullYear(),4):"h"===t?n=e.getHours()%12||12:"hh"===t?n=pad(e.getHours()%12||12):"H"===t?n=e.getHours():"HH"===t?n=pad(e.getHours()):"m"===t?n=e.getMinutes():"mm"===t?n=pad(e.getMinutes()):"s"===t?n=e.getSeconds():"ss"===t?n=pad(e.getSeconds()):"f"===t?n=math.floor(e.getMilliseconds()/100):"ff"===t?n=math.floor(e.getMilliseconds()/10):"fff"===t?n=e.getMilliseconds():"tt"===t&&(n=12>e.getHours()?a.AM[0]:a.PM[0]),n!==undefined?n:t.slice(1,t.length-1)})}function i(e,n,i){i=t(i);var r,h,m,g,v,_,k,b,w,y,x,C,T,S,F,D,E,A,N,I,R=i.numberFormat,H=R.groupSize[0],z=R[c],O=R[d],M=R.decimals,P=R.pattern[0],B=[],L=0>e,U=l,W=l,q=-1;if(e===undefined)return l;if(!isFinite(e))return e;if(!n)return i.name.length?e.toLocaleString():""+e;if(v=a.exec(n)){if(n=v[1].toLowerCase(),h="c"===n,m="p"===n,(h||m)&&(R=h?R.currency:R.percent,H=R.groupSize[0],z=R[c],O=R[d],M=R.decimals,r=R.symbol,P=R.pattern[L?0:1]),g=v[2],g&&(M=+g),"e"===n)return g?e.toExponential(M):e.toExponential();if(m&&(e*=100),e=e.toFixed(M),e=e.split(d),_=e[0],k=e[1],L&&(_=_.substring(1)),W=_,b=_.length,b>=H)for(W=l,y=0;b>y;y++)y>0&&0===(b-y)%H&&(W+=z),W+=_.charAt(y);if(k&&(W+=O+k),"n"===n&&!L)return W;for(e=l,y=0,x=P.length;x>y;y++)C=P.charAt(y),e+="n"===C?W:"$"===C||"%"===C?r:C;return e}if(L&&(e=-e),n=n.split(";"),L&&n[1])n=n[1],S=!0;else if(0===e){if(n=n[2]||n[0],-1==n.indexOf(u)&&-1==n.indexOf(p))return n}else n=n[0];if((n.indexOf("'")>-1||n.indexOf('"')>-1)&&(n=n.replace(o,function(e){return B.push(e),f})),A=n.indexOf("%"),m=-1!=A,h=-1!=n.indexOf("$"),m&&("\\"!==n[A-1]?e*=100:n=n.split("\\").join("")),(h||m)&&(R=h?R.currency:R.percent,H=R.groupSize[0],z=R[c],O=R[d],M=R.decimals,r=R.symbol),T=n.indexOf(c)>-1,T&&(n=n.replace(s,l)),F=n.indexOf(d),x=n.length,-1!=F?(E=n.lastIndexOf(p),D=n.lastIndexOf(u),k=(""+e).split(d)[1]||l,D>E&&k.length>D-E?y=D:-1!=E&&E>=F&&(y=E),y&&(e=e.toFixed(y-F))):e=e.toFixed(0),D=n.indexOf(u),N=E=n.indexOf(p),q=-1==D&&-1!=E?E:-1!=D&&-1==E?D:D>E?E:D,D=n.lastIndexOf(u),E=n.lastIndexOf(p),I=-1==D&&-1!=E?E:-1!=D&&-1==E?D:D>E?D:E,q==x&&(I=q),-1!=q){if(W=(""+e).split(d),_=W[0],k=W[1]||l,b=_.length,w=k.length,T)if(b===H&&F-N>b)_=z+_;else if(b>H){for(W=l,y=0;b>y;y++)y>0&&0===(b-y)%H&&(W+=z),W+=_.charAt(y);_=W}for(e=n.substring(0,q),L&&!S&&(e+="-"),y=q;x>y;y++){if(C=n.charAt(y),-1==F){if(b>I-y){e+=_;break}}else if(-1!=E&&y>E&&(U=l),b>=F-y&&F-y>-1&&(e+=_,y=F),F===y){e+=(k?O:l)+k,y+=I-F+1;continue}C===p?(e+=C,U=C):C===u&&(e+=U)}if(I>=q&&(e+=n.substring(I+1)),h||m){for(W=l,y=0,x=e.length;x>y;y++)C=e.charAt(y),W+="$"===C||"%"===C?r:C;e=W}if(B[0])for(x=B.length,y=0;x>y;y++)e=e.replace(f,B[y])}return e}var r=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,a=/^(n|c|p|e)(\d*)$/i,o=/["'].*?["']/g,s=/\,/g,l="",d=".",c=",",u="#",p="0",f="??",h="en-US";kendo.cultures={"en-US":{name:h,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}},kendo.culture=function(t){var n,i=kendo.cultures;return t===undefined?i.current:(n=e(t)||i[h],n.calendar=n.calendars.standard,i.current=n,undefined)},kendo.findCulture=e,kendo.getCulture=t,kendo.culture(h);var m=function(e,t,r){if(t){if(e instanceof Date)return n(e,t,r);if(typeof e===NUMBER)return i(e,t,r)}return e!==undefined?e:""};globalize&&(m=proxy(globalize.format,globalize)),kendo.format=function(e){var t=arguments;return e.replace(formatRegExp,function(e,n,i){var r=t[parseInt(n,10)+1];return m(r,i?i.substring(1):"")})},kendo._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},kendo.toString=m}(),function(){function e(e,t,n){return!(e>=t&&n>=e)}function t(e){return e.charAt(0)}function n(e){return $.map(e,t)}function i(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function r(t,r,a){if(!t)return null;var o,d,c,p,f,h,m,g,v,_,k,b,w,y=function(e){for(var t=0;r[H]===e;)t++,H++;return t>0&&(H-=1),t},x=function(e){var n=u[e]||RegExp("^\\d{1,"+e+"}"),i=t.substr(z,e).match(n);return i?(i=i[0],z+=i.length,parseInt(i,10)):null},C=function(e){for(var n,i,r=0,a=e.length;a>r;r++)if(n=e[r],i=n.length,t.substr(z,i)==n)return z+=i,r+1;return null},T=function(){var e=!1;return t.charAt(z)===r[H]&&(z++,e=!0),e},S=a.calendars.standard,F=null,D=null,E=null,A=null,N=null,I=null,R=null,H=0,z=0,O=!1,M=new Date,P=30,B=M.getFullYear();for(r||(r="d"),p=S.patterns[r],p&&(r=p),r=r.split(""),c=r.length;c>H;H++)if(o=r[H],O)"'"===o?O=!1:T();else if("d"===o){if(d=y("d"),E=3>d?x(2):C(S.days[3==d?"namesAbbr":"names"]),null===E||e(E,1,31))return null}else if("M"===o){if(d=y("M"),D=3>d?x(2):C(S.months[3==d?"namesAbbr":"names"]),null===D||e(D,1,12))return null;D-=1}else if("y"===o){if(d=y("y"),F=x(d),null===F)return null;2==d&&(w=B-B%100,F>P&&(w-=100),F=w+F)}else if("h"===o){if(y("h"),A=x(2),12==A&&(A=0),null===A||e(A,0,11))return null}else if("H"===o){if(y("H"),A=x(2),null===A||e(A,0,23))return null}else if("m"===o){if(y("m"),N=x(2),null===N||e(N,0,59))return null}else if("s"===o){if(y("s"),I=x(2),null===I||e(I,0,59))return null}else if("f"===o){if(d=y("f"),R=x(d),null!==R&&d>3&&(R=parseInt((""+R).substring(0,3),10)),null===R||e(R,0,999))return null}else if("t"===o){if(d=y("t"),v=S.AM,_=S.PM,1===d&&(v=n(v),_=n(_)),f=C(_),!f&&!C(v))return null}else if("z"===o){if(h=!0,d=y("z"),"Z"===t.substr(z,1)){if(!m)return null;T();continue}if(g=t.substr(z,6).match(d>2?l:s),!g)return null;if(g=g[0],z=g.length,g=g.split(":"),k=parseInt(g[0],10),e(k,-12,13))return null;if(d>2&&(b=parseInt(g[1],10),isNaN(b)||e(b,0,59)))return null}else if("T"===o)m=T();else if("'"===o)O=!0,T();else if(!T())return null;return null===F&&(F=B),f&&12>A&&(A+=12),null===E&&(E=1),h?(k&&(A+=-k),b&&(N+=-b),t=new Date(Date.UTC(F,D,E,A,N,I,R))):(t=new Date(F,D,E,A,N,I,R),i(t,A)),100>F&&t.setFullYear(F),t}var a=/\u00A0/g,o=/[eE][\-+]?[0-9]+/,s=/[+|\-]\d{1,2}/,l=/[+|\-]\d{1,2}:\d{2}/,d=/^\/Date\((.*?)\)\/$/,c=["G","g","d","F","D","y","m","T","t"],u={2:/^\d{1,2}/,4:/^\d{4}/};kendo._adjustDate=i,kendo.parseDate=function(e,t,n){if(e instanceof Date)return e;var i,a,o=0,s=null;if(e&&0===e.indexOf("/D")&&(s=d.exec(e)))return new Date(parseInt(s[1],10));if(n=kendo.getCulture(n),!t){for(t=[],a=n.calendar.patterns,i=c.length;i>o;o++)t[o]=a[c[o]];t[o]="ddd MMM dd yyyy HH:mm:ss",t[++o]="yyyy-MM-ddTHH:mm:ss.fffffffzzz",t[++o]="yyyy-MM-ddTHH:mm:ss.fffzzz",t[++o]="yyyy-MM-ddTHH:mm:sszzz",t[++o]="yyyy-MM-ddTHH:mmzzz",t[++o]="yyyy-MM-ddTHH:mmzz",t[++o]="yyyy-MM-dd",o=0}for(t=isArray(t)?t:[t],i=t.length;i>o;o++)if(s=r(e,t[o],n))return s;return s},kendo.parseInt=function(e,t){var n=kendo.parseFloat(e,t);return n&&(n=0|n),n},kendo.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===NUMBER)return e;e=""+e,t=kendo.getCulture(t);var i,r,s=t.numberFormat,l=s.percent,d=s.currency,c=d.symbol,u=l.symbol,p=e.indexOf("-")>-1;return o.test(e)?(e=parseFloat(e),isNaN(e)&&(e=null),e):(e.indexOf(c)>-1||n&&n.toLowerCase().indexOf("c")>-1?(s=d,i=s.pattern[0].replace("$",c).split("n"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],"").replace(i[1],""),p=!0)):e.indexOf(u)>-1&&(r=!0,s=l,c=u),e=e.replace("-","").replace(c,"").replace(a," ").split(s[","].replace(a," ")).join("").replace(s["."],"."),e=parseFloat(e),isNaN(e)?e=null:p&&(e*=-1),e&&r&&(e/=100),e)},globalize&&(kendo.parseDate=function(e,t,n){return e instanceof Date?e:globalize.parseDate(e,t,n)},kendo.parseFloat=function(e,t){return typeof e===NUMBER?e:globalize.parseFloat(e,t)})}(),function(){function e(e){var t=!1,n=[],i={webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie) ([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in i)if(i.hasOwnProperty(r)&&(n=e.match(i[r]))){t={},t[r]=!0,t[n[1].toLowerCase()]=!0,t.version=n[2];break}return t}support.scrollbar=function(){var e,t=document.createElement("div");return t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",t.innerHTML=" ",document.body.appendChild(t),e=t.offsetWidth-t.scrollWidth,document.body.removeChild(t),e},support.isRtl=function(e){return $(e).closest(".k-rtl").length>0};var t=document.createElement("table");try{t.innerHTML="<tr><td></td></tr>",support.tbodyInnerHtml=!0}catch(n){support.tbodyInnerHtml=!1}support.touch="ontouchstart"in window,support.pointers=navigator.msPointerEnabled;var i=support.transitions=!1,r=support.transforms=!1,a="HTMLElement"in window?HTMLElement.prototype:[];support.hasHW3D="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,support.hasNativeScrolling="string"==typeof document.documentElement.style.webkitOverflowScrolling,each(["Moz","webkit","O","ms"],function(){var e=""+this,n=typeof t.style[e+"Transition"]===STRING;if(n||typeof t.style[e+"Transform"]===STRING){var a=e.toLowerCase();return r={css:"-"+a+"-",prefix:e,event:"o"===a||"webkit"===a?a:"ms"===a?"MS":""},n&&(i=r,i.event=i.event?i.event+"TransitionEnd":"transitionend"),!1}}),support.transforms=r,support.transitions=i,support.devicePixelRatio=window.devicePixelRatio===undefined?1:window.devicePixelRatio,support.detectOS=function(e){var t,n=!1,i=[],r={fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,winphone:/(IEMobile)\/(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/},a={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows|winphone/},o={tablet:/playbook|ipad|fire/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,chrome:/chrome/i,webkit:/webkit/i,ie:/MSIE|Windows\sPhone/i};for(var l in r)if(r.hasOwnProperty(l)&&(i=e.match(r[l]))){if("windows"==l&&"plugins"in navigator)return!1;n={},n.device=l,n.tablet=testRx(l,o,!1),n.browser=testRx(e,s,"default"),n.name=testRx(l,a),n[n.name]=!0,n.majorVersion=i[2],n.minorVersion=i[3].replace("_","."),t=n.minorVersion.replace(".","").substr(0,2),n.flatVersion=n.majorVersion+t+Array(3-(3>t.length?t.length:2)).join("0"),n.appMode=window.navigator.standalone||/file|local/.test(window.location.protocol)||typeof window.PhoneGap!==UNDEFINED||typeof window.cordova!==UNDEFINED,n.android&&1.5>support.devicePixelRatio&&(window.outerWidth>800||window.outerHeight>800||window.screen&&(window.screen.availWidth>800||window.screen.availHeight>800))&&(n.tablet=l);break}return n},support.mobileOS=support.detectOS(navigator.userAgent),support.kineticScrollNeeded=support.mobileOS&&support.touch,support.browser=e(navigator.userAgent),support.zoomLevel=function(){return support.touch?document.documentElement.clientWidth/window.innerWidth:1},support.eventCapture=document.documentElement.addEventListener,support.placeholder="placeholder"in document.createElement("input"),support.stableSort=function(){var e=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return 0===e[0]&&1===e[1]&&2===e[2]&&3===e[3]&&4===e[4]&&5===e[5]&&6===e[6]&&7===e[7]&&8===e[8]&&9===e[9]&&10===e[10]&&11===e[11]&&12===e[12]}(),support.matchesSelector=a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.matchesSelector||function(e){for(var t=document.querySelectorAll?(this.parentNode||document).querySelectorAll(e)||[]:$(e),n=t.length;n--;)if(t[n]==this)return!0;return!1}}();var directions={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}};$.extend(fx,{Element:function(e){this.element=$(e)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},transitionPromise:function(e,t,n){var i=kendo.wrap(e);return i.append(t),e.hide(),t.show(),n.completeCallback&&n.completeCallback(e),e}}),"kendoAnimate"in $.fn||extend($.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return animate(this,e,t,n,i)},kendoAnimateTo:function(e,t,n,i,r){return animateTo(this,e,t,n,i,r)},kendoAddClass:function(e,t){return kendo.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return kendo.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return kendo.toggleClass(this,e,t,n)}});var ampRegExp=/&/g,ltRegExp=/</g,gtRegExp=/>/g,touchLocation=function(e){var t=typeof e.pageX==UNDEFINED?e.originalEvent:e;return{idx:support.pointers?t.pointerId:0,x:t.pageX,y:t.pageY}},eventTarget=function(e){return e.target};if(support.touch){var mobileChrome="chrome"==support.mobileOS.browser&&!support.mobileOS.ios;touchLocation=function(e,t){var n=e.changedTouches||e.originalEvent.changedTouches;if(t){var i=null;return each(n,function(e,n){t==n.identifier&&(i={idx:n.identifier,x:n.pageX,y:n.pageY})}),i}return{idx:n[0].identifier,x:n[0].pageX,y:n[0].pageY}},eventTarget=function(e){var t="originalEvent"in e?e.originalEvent.changedTouches:"changedTouches"in e?e.changedTouches:null,n=mobileChrome?"screen":"client";return t?document.elementFromPoint(t[0][n+"X"],t[0][n+"Y"]):e.target},each(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(e,t){$.fn[t]=function(e){return this.bind(t,e)}})}support.touch?support.mobileOS?(support.mousedown="touchstart",support.mouseup="touchend",support.mousemove="touchmove",support.mousecancel="touchcancel",support.click="touchend",support.resize="orientationchange"):(support.mousedown="mousedown touchstart",support.mouseup="mouseup touchend",support.mousemove="mousemove touchmove",support.mousecancel="mouseleave touchcancel",support.click="click touchend",support.resize="resize"):support.pointers?(support.mousemove="MSPointerMove",support.mousedown="MSPointerDown",support.mouseup="MSPointerUp",support.mousecancel="MSPointerCancel",support.click="MSPointerUp",support.resize="orientationchange resize"):(support.mousemove="mousemove",support.mousedown="mousedown",support.mouseup="mouseup",support.mousecancel="mouseleave",support.click="click",support.resize="resize");var wrapExpression=function(e){var t,n,i,r,a="d",o=1;for(n=0,i=e.length;i>n;n++)r=e[n],""!==r&&(t=r.indexOf("["),0!==t&&(-1==t?r="."+r:(o++,r="."+r.substring(0,t)+" || {})"+r.substring(t))),o++,a+=r+(i-1>n?" || {})":")"));return Array(o).join("(")+a},localUrlRe=/^([a-z]+:)?\/\//i;extend(kendo,{ui:kendo.ui||{},fx:kendo.fx||fx,mobile:kendo.mobile||{},data:kendo.data||{},dataviz:kendo.dataviz||{ui:{roles:{}}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123},support:kendo.support||support,animate:kendo.animate||animate,ns:"",attr:function(e){return"data-"+kendo.ns+e},wrap:wrap,deepExtend:deepExtend,getComputedStyles:getComputedStyles,size:size,isNodeEmpty:isNodeEmpty,getOffset:kendo.getOffset||getOffset,parseEffects:kendo.parseEffects||parseEffects,toggleClass:kendo.toggleClass||toggleClass,directions:kendo.directions||directions,Observable:Observable,Class:Class,Template:Template,template:proxy(Template.compile,Template),render:proxy(Template.render,Template),stringify:proxy(JSON.stringify,JSON),touchLocation:touchLocation,eventTarget:eventTarget,htmlEncode:htmlEncode,isLocalUrl:function(e){return e&&!localUrlRe.test(e)},expr:function(e,t){return e=e||"",e&&"["!==e.charAt(0)&&(e="."+e),e=t?wrapExpression(e.split(".")):"d"+e},getter:function(e,t){return getterCache[e]=getterCache[e]||Function("d","return "+kendo.expr(e,t))},setter:function(e){return setterCache[e]=setterCache[e]||Function("d,value","d."+e+"=value")},accessor:function(e){return{get:kendo.getter(e),set:kendo.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++)t=0|16*math.random(),(8==e||12==e||16==e||20==e)&&(n+="-"),n+=(12==e?4:16==e?8|3&t:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+kendo.attr("role")+"=$1],").slice(0,-1)},logToConsole:function(e){var t=window.console;t!==undefined&&t.log&&t.log(e)}});var Widget=Observable.extend({init:function(e,t){var n=this;n.element=kendo.jQuery(e).handler(n),Observable.fn.init.call(n),t=n.options=extend(!0,{},n.options,t),n.element.attr(kendo.attr("role"))||n.element.attr(kendo.attr("role"),(t.name||"").toLowerCase()),n.element.data("kendo"+t.prefix+t.name,n),n.bind(n.events,t)},events:[],options:{prefix:""},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(e){for(var t,n=this,i=0,r=n.events.length;r>i;i++)t=n.events[i],n.options[t]&&e[t]&&n.unbind(t,n.options[t]);$.extend(n.options,e),n.bind(n.events,e)},destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.unbind()}});kendo.notify=noop;var templateRegExp=/template$/i,jsonRegExp=/^\s*(?:\{(?:.|\n)*\}|\[(?:.|\n)*\])\s*$/,jsonFormatRegExp=/^\{(\d+)(:[^\}]+)?\}/,dashRegExp=/([A-Z])/g;kendo.initWidget=function(e,t,n){var i,r,a,o,s,l,d,c;if(n?n.roles&&(n=n.roles):n=kendo.ui.roles,e=e.nodeType?e:e[0],l=e.getAttribute("data-"+kendo.ns+"role"),l&&(a=-1===l.indexOf(".")?n[l]:kendo.getter(l)(window))){for(c=parseOption(e,"dataSource"),t=$.extend({},parseOptions(e,a.fn.options),t),c&&(t.dataSource=typeof c===STRING?kendo.getter(c)(window):c),o=0,s=a.fn.events.length;s>o;o++)r=a.fn.events[o],d=parseOption(e,r),d!==undefined&&(t[r]=kendo.getter(d)(window));return i=$(e).data("kendo"+a.fn.options.prefix+a.fn.options.name),i?i.setOptions(t):i=new a(e,t),i}},kendo.rolesFromNamespaces=function(e){var t;return e[0]||(e=[kendo.ui,kendo.dataviz.ui]),t=$.map(e,function(e){return e.roles}).reverse(),extend.apply(null,[{}].concat(t))},kendo.init=function(e){var t=kendo.rolesFromNamespaces(slice.call(arguments,1));$(e).find("[data-"+kendo.ns+"role]").andSelf().each(function(){kendo.initWidget(this,{},t)})},kendo.destroy=function(e){$(e).find("[data-"+kendo.ns+"role]").andSelf().each(function(){var e=$(this),t=kendo.widgetInstance(e,kendo.ui)||kendo.widgetInstance(e,kendo.mobile.ui)||kendo.widgetInstance(e,kendo.dataviz.ui);t&&t.destroy()})},kendo.parseOptions=parseOptions,extend(kendo.ui,{Widget:Widget,roles:{},progress:function(e,t){var n=e.find(".k-loading-mask");t?n.length||(n=$("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").prependTo(e).css({top:e.scrollTop(),left:e.scrollLeft()})):n&&n.remove()},plugin:function(e,t,n){var i,r=e.fn.options.name;t=t||kendo.ui,n=n||"",t[r]=e,t.roles[r.toLowerCase()]=e,i="getKendo"+n+r,r="kendo"+n+r,$.fn[r]=function(t){var n,i=this;return typeof t===STRING?(n=slice.call(arguments,1),this.each(function(){var e,a,o=$.data(this,r);if(!o)throw Error(kendo.format("Cannot call method '{0}' of {1} before it is initialized",t,r));if(e=o[t],typeof e!==FUNCTION)throw Error(kendo.format("Cannot find method '{0}' of {1}",t,r));return a=e.apply(o,n),a!==undefined?(i=a,!1):undefined})):this.each(function(){new e(this,t)}),i},$.fn[i]=function(){return this.data(r)}}});var MobileWidget=Widget.extend({init:function(e,t){Widget.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element},destroy:function(){Widget.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],viewShow:$.noop,view:function(){var e=this.element.closest(kendo.roleSelector("view")+","+kendo.roleSelector("splitview"));return e.data("kendoMobileView")||e.data("kendoMobileSplitView")}});extend(kendo.mobile,{init:function(e){kendo.init(e,kendo.mobile.ui,kendo.ui,kendo.dataviz.ui)},ui:{Widget:MobileWidget,roles:{},plugin:function(e){kendo.ui.plugin(e,kendo.mobile.ui,"Mobile")}}}),kendo.touchScroller=function(e,t){return $(e).map(function(e,n){return n=$(n),support.kineticScrollNeeded&&kendo.mobile.ui.Scroller&&!n.data("kendoMobileScroller")?(n.kendoMobileScroller(t),n.data("kendoMobileScroller")):!1})[0]},kendo.preventDefault=function(e){e.preventDefault()},kendo.widgetInstance=function(e,t){var n=t.roles[e.data(kendo.ns+"role")];return n?e.data("kendo"+n.fn.options.prefix+n.fn.options.name):undefined},kendo.onResize=function(e){var t=e;support.mobileOS.android&&(t=function(){setTimeout(e,200)}),$(window).on(support.resize,t)},kendo.attrValue=function(e,t){return e.data(kendo.ns+t)},kendo.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},$.extend($.expr[":"],{focusable:function(e){var t=$.attr(e,"tabindex");return focusable(e,!isNaN(t)&&t>-1)}});var MOUSE_EVENTS=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"];$.extend(kendo,{setupMouseMute:function(){var e=0,t=MOUSE_EVENTS.length,n=document.documentElement;if(!kendo.mouseTrap&&support.eventCapture){kendo.mouseTrap=!0,kendo.captureMouseEvents=!1;for(var i=function(e){kendo.captureMouse&&(e.stopPropagation(),"click"===e.type&&e.preventDefault())
|
12
|
+
};t>e;e++)n.addEventListener(MOUSE_EVENTS[e],i,!0)}},muteMouse:function(){kendo.captureMouse=!0,clearTimeout(kendo.mouseTrapTimeoutID)},unMuteMouse:function(){kendo.mouseTrapTimeoutID=setTimeout(function(){kendo.captureMouse=!1},400)}});var eventMap={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"};support.pointers&&(eventMap={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel"});var on=$.fn.on,kendoJQuery=$.sub();extend(kendoJQuery.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(){return this.data("kendoNS","."+kendo.guid()),this},on:function(){var e=this,t=e.data("kendoNS");if(1===arguments.length)return on.call(e,arguments[0]);var n=e,i=slice.call(arguments);typeof i[i.length-1]===UNDEFINED&&i.pop();var r=i[i.length-1],a=i[0].replace(/([^ ]+)/g,applyEventMap);return t&&(a=a.replace(/( |$)/g,t+" ")),support.touch&&a.indexOf("mouse")>-1&&this[0]!==document.documentElement&&(kendo.setupMouseMute(),on.call(this,{touchstart:kendo.muteMouse,touchend:kendo.unMuteMouse})),typeof r===STRING&&(n=e.data("handler"),r=n[r],i[i.length-1]=function(e){r.call(n,e)}),i[0]=a,on.apply(e,i),e},kendoDestroy:function(){var e=this.data("kendoNS");return e&&this.off(e),this}}),kendo.jQuery=kendoJQuery,kendo.eventMap=eventMap})(jQuery),function(e,t){function n(e){return parseInt(e,10)}function i(e,t){return n(e.css(t))}function r(e){var t=e.effects;return"zoom"===t&&(t="zoom:in fade:in"),"fade"===t&&(t="fade:in"),"slide"===t&&(t="tile:left"),/^slide:(.+)$/.test(t)&&(t="tile:"+RegExp.$1),"overlay"===t&&(t="slideIn:left"),/^overlay:(.+)$/.test(t)&&(t="slideIn:"+RegExp.$1),e.effects=h.parseEffects(t),e}function a(e){var t=[];for(var n in e)t.push(n);return t}function o(e){for(var t in e)-1!=I.indexOf(t)&&-1==R.indexOf(t)&&delete e[t];return e}function s(e,t){var n,i,r,a,o=[],s={};for(i in t)n=i.toLowerCase(),a=w&&-1!=I.indexOf(n),!k.hasHW3D&&a&&-1==R.indexOf(n)?delete t[i]:(r=t[i],a?o.push(i+"("+r+")"):s[i]=r);return o.length&&(s[Q]=o.join(" ")),s}function l(e,t){if(w){var i=e.css(Q);if(i==L)return"scale"==t?1:0;var r=i.match(RegExp(t+"\\s*\\(([\\d\\w\\.]+)")),a=0;return r?a=n(r[1]):(r=i.match(S)||[0,0,0,0,0],t=t.toLowerCase(),D.test(t)?a=parseFloat(r[3]/r[2]):"translatey"==t?a=parseFloat(r[4]/r[2]):"scale"==t?a=parseFloat(r[2]):"rotate"==t&&(a=parseFloat(Math.atan2(r[2],r[1])))),a}return parseFloat(e.css(t))}function d(e){return e.toUpperCase()}function c(e){return e.replace(/^./,d)}function u(e,t){var n=nt.extend(t),i=n.prototype.directions;O[e]=n,m.Element.prototype[e]=function(e,t,i,r){return new n(this.element,e,t,i,r)},g(i,function(t,i){m.Element.prototype[e+c(i)]=function(e,t,r){return new n(this.element,i,e,t,r)}})}function p(e,t,n){u(e,{directions:rt,restore:[t],startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return"out"===this._direction&&this._end()===n?!this._reverse:this._reverse},_end:function(){return this._endValue||n},_start:function(){return this._startValue||1},prepare:function(e,n){var i=this,r=i.element.data(t),a=i.shouldHide(),o=isNaN(r)?i._start():r;e[t]=n[t]=i._end(),a?e[t]=o:n[t]=o}})}function f(e,t){var n=h.directions[t].vertical,i=e[n?q:W]()/2+"px";return ot[t].replace("$size",i)}var h=window.kendo,m=h.fx,g=e.each,v=e.extend,_=e.proxy,k=h.support,b=k.browser,w=k.transforms,y=k.transitions,x={scale:0,scalex:0,scaley:0,scale3d:0},C={translate:0,translatex:0,translatey:0,translate3d:0},T=document.documentElement.style.zoom!==t&&!w,S=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,F=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,D=/translatex?$/i,E=/(zoom|fade|expand)(\w+)/,A=/(zoom|fade|expand)/,N=/[xy]$/i,I=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],R=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],H={rotate:"deg",scale:"",skew:"px",translate:"px"},z=w.css,O={},M=Math.round,P="",B="px",L="none",U="auto",W="width",q="height",V="hidden",j="origin",$="abortId",G="overflow",Y="translate",K=z+"transition",Q=z+"transform",J=z+"perspective",X=z+"backface-visibility",Z={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}};if(h.directions=Z,v(e.fn,{kendoStop:function(e,t){return y?h.fx.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),w&&!y){g(R,function(n,i){e.fn[i]=function(n){if(n===t)return l(this,i);var r=e(this)[0],a=i+"("+n+H[i.replace(N,"")]+")";return-1==r.style.cssText.indexOf(Q)?e(this).css(Q,a):r.style.cssText=r.style.cssText.replace(RegExp(i+"\\(.*?\\)","i"),a),this},e.fx.step[i]=function(t){e(t.elem)[i](t.now)}});var et=e.fx.prototype.cur;e.fx.prototype.cur=function(){return-1!=R.indexOf(this.prop)?parseFloat(e(this.elem)[this.prop]()):et.apply(this,arguments)}}h.toggleClass=function(e,t,n,i){return t&&(t=t.split(" "),y&&(n=v({exclusive:"all",duration:400,ease:"ease-out"},n),e.css(K,n.exclusive+" "+n.duration+"ms "+n.ease),setTimeout(function(){e.css(K,"").css(q)},n.duration)),g(t,function(t,n){e.toggleClass(n,i)})),e},h.parseEffects=function(e,t){var n={};return"string"==typeof e?g(e.split(" "),function(e,i){var r=!A.test(i),a=i.replace(E,function(e,t,n){return t+":"+n.toLowerCase()}),o=a.split(":"),s=o[1],l={};o.length>1&&(l.direction=t&&r?Z[s].reverse:s),n[o[0]]=l}):g(e,function(e){var i=this.direction;i&&t&&!A.test(e)&&(this.direction=Z[i].reverse),n[e]=this}),n},y&&v(h.fx,{transition:function(t,n,i){var r,o,l=0,d=t.data("keys")||[];i=v({duration:200,ease:"ease-out",complete:null,exclusive:"all"},i);var c=function(){o&&(clearTimeout(o),o=null,t.removeData($).dequeue().css(K,"").css(K),i.complete.call(t))};i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,r=s(t,n),e.merge(d,a(r)),t.data("keys",e.unique(d)).height(),t.css(K,i.exclusive+" "+i.duration+"ms "+i.ease).css(K),t.css(r).css(Q),b.mozilla&&(t.one(y.event,c),l=50),o=setTimeout(c,i.duration+l),t.data($,o)},stopQueue:function(e,t,n){e.data($)&&(clearTimeout(e.data($)),e.removeData($));var i,r=this,a=e.data("keys"),o=n===!1&&a;return o&&(i=h.getComputedStyles(e[0],a)),e.css(K,"").css(K),o&&e.css(i),e.removeData("keys"),r.complete&&r.complete.call(e),e.stop(t),e}});var tt=h.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,r,a,l,d,c=this,u=t.length,p=c.element,f=c.options,m=e.Deferred(),g={},_={};for(c.effects=t,m.then(e.proxy(c,"complete")),p.data("animating",!0),i=0;u>i;i++)for(n=t[i],n.setReverse(f.reverse),n.setOptions(f),c.addRestoreProperties(n.restore),n.prepare(g,_),l=n.children(),r=0,d=l.length;d>r;r++)l[r].duration(f.duration).run();for(var k in f.effects)v(_,f.effects[k].properties);for(p.is(":visible")||v(g,{display:p.data("olddisplay")||"block"}),w&&!f.reset&&(a=p.data("targetTransform"),a&&(g=v(a,g))),g=s(p,g),w&&!y&&(g=o(g)),p.css(g).css(Q),i=0;u>i;i++)t[i].setup();return f.init&&f.init(),p.data("targetTransform",_),h.fx.animate(p,_,v({},f,{complete:m.resolve})),m.promise()},stop:function(){e(this.element).kendoStop()},addRestoreProperties:function(e){for(var t,n=this.element,i=0,r=e.length;r>i;i++)t=e[i],this.restore.push(t),n.data(t)||n.data(t,n.css(t))},restoreCallback:function(){for(var e=this.element,t=0,n=this.restore.length;n>t;t++){var i=this.restore[t];e.css(i,e.data(i))}},complete:function(){var t=this,n=0,i=t.element,r=t.options,a=t.effects,o=a.length;for(i.removeData("animating").dequeue(),r.hide&&i.data("olddisplay",i.css("display")).hide(),this.restoreCallback(),T&&!w&&setTimeout(e.proxy(this,"restoreCallback"),0);o>n;n++)a[n].teardown();r.completeCallback&&r.completeCallback(i)}});h.fx.promise=function(e,t){var n,i,r=[],a=new tt(e,t),o=h.parseEffects(t.effects);t.effects=o;for(var s in o)n=O[s],n&&(i=new n(e,o[s].direction),r.push(i));r[0]?a.run(r):(e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.init&&t.init(),e.dequeue(),a.complete())},h.fx.transitionPromise=function(e,t,n){return h.fx.animateTo(e,t,n),e},v(h.fx,{animate:function(n,r,a){var s=a.transition!==!1;delete a.transition,y&&"transition"in m&&s?m.transition(n,r,a):w?n.animate(o(r),{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete}):n.each(function(){var n=e(this),o={};g(I,function(e,a){var s,l=r?r[a]+" ":null;if(l){var d=r;if(a in x&&r[a]!==t)s=l.match(F),w&&v(d,{scale:+s[0]});else if(a in C&&r[a]!==t){var c=n.css("position"),u="absolute"==c||"fixed"==c;n.data(Y)||(u?n.data(Y,{top:i(n,"top")||0,left:i(n,"left")||0,bottom:i(n,"bottom"),right:i(n,"right")}):n.data(Y,{top:i(n,"marginTop")||0,left:i(n,"marginLeft")||0}));var p=n.data(Y);if(s=l.match(F)){var f=a==Y+"y"?0:+s[1],h=a==Y+"y"?+s[1]:+s[2];u?(isNaN(p.right)?isNaN(f)||v(d,{left:p.left+f}):isNaN(f)||v(d,{right:p.right-f}),isNaN(p.bottom)?isNaN(h)||v(d,{top:p.top+h}):isNaN(h)||v(d,{bottom:p.bottom-h})):(isNaN(f)||v(d,{marginLeft:p.left+f}),isNaN(h)||v(d,{marginTop:p.top+h}))}}!w&&"scale"!=a&&a in d&&delete d[a],d&&v(o,d)}}),b.msie&&delete o.scale,n.animate(o,{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete})})},animateTo:function(t,n,i){function a(e){n[0].style.cssText="",t[0].style.cssText="",k.mobileOS.android||l.css(G,s),i.completeCallback&&i.completeCallback.call(t,e)}var o,s,l=t.parents().filter(n.parents()).first();i=r(i),k.mobileOS.android||(s=l.css(G),l.css(G,"hidden")),e.each(i.effects,function(e,t){o=o||t.direction}),i.complete=b.msie?function(){setTimeout(a,0)}:a,i.previous=i.reverse?n:t,i.reset=!0,(i.reverse?t:n).each(function(){e(this).kendoAnimate(v(!0,{},i)),i.complete=null,i.previous=null})}});var nt=h.Class.extend({init:function(e,t){var n=this;n.element=e,n._direction=t,n.options={},n._additionalEffects=[],n.restore||(n.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(e){return this._additionalEffects.push(e),this},direction:function(e){return this._direction=e,this},duration:function(e){return this._duration=e,this},compositeRun:function(){var e=this,t=new tt(e.element,{reverse:e._reverse,duration:e._duration}),n=e._additionalEffects.concat([e]);return t.run(n)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n,i=this,r=i.element,a=0,l=i.restore,d=l.length,c=e.Deferred(),u={},p={},f=i.children(),m=f.length;for(c.then(e.proxy(i,"_complete")),r.data("animating",!0),a=0;d>a;a++)t=l[a],r.data(t)||r.data(t,r.css(t));for(a=0;m>a;a++)f[a].duration(i._duration).run();return i.prepare(u,p),r.is(":visible")||v(u,{display:r.data("olddisplay")||"block"}),w&&(n=r.data("targetTransform"),n&&(u=v(n,u))),u=s(r,u),w&&!y&&(u=o(u)),r.css(u).css(Q),i.setup(),r.data("targetTransform",p),h.fx.animate(r,p,{duration:i._duration,complete:c.resolve}),c.promise()},stop:function(){var t=0,n=this.children(),i=n.length;for(t=0;i>t;t++)n[t].stop();return e(this.element).kendoStop(),this},restoreCallback:function(){for(var e=this.element,t=0,n=this.restore.length;n>t;t++){var i=this.restore[t];e.css(i,e.data(i))}},_complete:function(){var t=this,n=t.element;n.removeData("animating").dequeue(),t.restoreCallback(),t.shouldHide()&&n.data("olddisplay",n.css("display")).hide(),T&&!w&&setTimeout(e.proxy(t,"restoreCallback"),0),t.teardown()},setOptions:function(e){v(!0,this.options,e)},children:function(){return[]},shouldHide:e.noop,setup:e.noop,prepare:e.noop,teardown:e.noop,directions:[],setReverse:function(e){return this._reverse=e,this}}),it=["left","right","up","down"],rt=["in","out"];u("slideIn",{directions:it,prepare:function(e,t){var n,i=this,r=i.element,a=Z[i._direction],o=-a.modifier*(a.vertical?r.outerHeight():r.outerWidth()),s=o/(i.options&&i.options.divisor||1)+B,l="0px";i._reverse&&(n=e,e=t,t=n),w?(e[a.transition]=s,t[a.transition]=l):(e[a.property]=s,t[a.property]=l)}}),u("tile",{directions:it,init:function(e,t,n){nt.prototype.init.call(this,e,t),this.options={previous:n}},children:function(){var e=this,t=e._reverse,n=e.options.previous,i=e._direction,r=[m(e.element).slideIn(i).setReverse(t)];return n&&r.push(m(n).slideIn(Z[i].reverse).setReverse(!t)),r}}),p("fade","opacity",0),p("zoom","scale",.01),u("slideMargin",{prepare:function(e,t){var n,i=this,r=i.element,a=i.options,o=r.data(j),s=a.offset,l=i._reverse;l||null!==o||r.data(j,parseFloat(r.css("margin-"+a.axis))),n=r.data(j)||0,t["margin-"+a.axis]=l?n:n+s}}),u("slideTo",{prepare:function(e,t){var n=this,i=n.element,r=n.options,a=r.offset.split(","),o=n._reverse;w?(t.translatex=o?0:a[0],t.translatey=o?0:a[1]):(t.left=o?0:a[0],t.top=o?0:a[1]),i.css("left")}}),u("expand",{directions:["horizontal","vertical"],restore:[G],prepare:function(e,n){var i=this,r=i.element,a=i.options,o=i._reverse,s="vertical"===i._direction?q:W,l=r[0].style[s],d=r.data(s),c=parseFloat(d||l),u=M(r.css(s,U)[s]());e.overflow=V,c=a&&a.reset?u||c:c||u,n[s]=(o?0:c)+B,e[s]=(o?c:0)+B,d===t&&r.data(s,l)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,n="vertical"===e._direction?q:W,i=t.data(n);(i==U||i===P)&&setTimeout(function(){t.css(n,U).css(n)},0)}});var at={position:"absolute",marginLeft:0,marginTop:0,scale:1};u("transfer",{init:function(e,t){this.element=e,this.options={target:t},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(e,t){var n,i=this,r=i.element,a=i.options,o=i._reverse,s=a.target,d=l(r,"scale"),c=s.offset(),u=s.outerHeight()/r.outerHeight();v(e,at),t.scale=1,r.css(Q,"scale(1)").css(Q),n=r.offset(),r.css(Q,"scale("+d+")");var p=0,f=0,h=c.left-n.left,m=c.top-n.top,g=p+r.outerWidth(),_=f,k=h+s.outerWidth(),b=m,w=(m-f)/(h-p),y=(b-_)/(k-g),x=(f-_-w*p+y*g)/(y-w),C=f+w*(x-p);e.top=n.top,e.left=n.left,e.transformOrigin=x+B+" "+C+B,o?e.scale=u:t.scale=u}});var ot={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},st={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}};u("turningPage",{directions:it,init:function(e,t,n){nt.prototype.init.call(this,e,t),this._container=n},prepare:function(e,t){var n=this,i=n._reverse,r=i?Z[n._direction].reverse:n._direction,a=st[r];e.zIndex=1,n._clipInHalf&&(e.clip=f(n._container,h.directions[r].reverse)),e[X]=V,t[Q]=i?a.start:a.end,e[Q]=i?a.end:a.start},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(e){return this._temporary=e,this},teardown:function(){this._temporary&&this.element.remove()}}),u("staticPage",{directions:it,init:function(e,t,n){nt.prototype.init.call(this,e,t),this._container=n},restore:["clip"],prepare:function(e){var t=this,n=t._reverse?Z[t._direction].reverse:t._direction;e.clip=f(t._container,n)},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},face:function(e){return this._face=e,this}}),u("pageturn",{directions:["horizontal","vertical"],init:function(e,t,n,i){nt.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",r=h.directions[i].reverse,a=t._reverse,o=n.face.clone(!0).removeAttr("id"),s=n.back.clone(!0).removeAttr("id"),l=t.element;return a&&(e=i,i=r,r=e),[m(n.face).staticPage(i,l).face(!0).setReverse(a),m(n.back).staticPage(r,l).setReverse(a),m(o).turningPage(i,l).face(!0).clipInHalf(!0).temporary(!0).setReverse(a),m(s).turningPage(r,l).clipInHalf(!0).temporary(!0).setReverse(a)]},prepare:function(e){e[J]=1e3,e.transformStyle="preserve-3d"},teardown:function(){this.element.find(".temp-pages").remove()}}),u("flip",{directions:["horizontal","vertical"],init:function(e,t,n,i){nt.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",r=h.directions[i].reverse,a=t._reverse,o=t.element;return a&&(e=i,i=r,r=e),[m(n.face).turningPage(i,o).face(!0).setReverse(a),m(n.back).turningPage(r,o).setReverse(a)]},prepare:function(e){e[J]=1e3,e.transformStyle="preserve-3d"}});var lt=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},dt=h.Class.extend({init:function(){var e=this;e._tickProxy=_(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(){this.done()||(this._started=!0,lt(this._tickProxy))},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):lt(e._tickProxy))}}),ct=dt.extend({init:function(e){var t=this;v(t,e),dt.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,+new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration=e.duration||300,t.tick=t._easeProxy(e.ease),t.startDate=+new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}});v(ct,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,r){return r=1.70158,n*((e=e/i-1)*e*((r+1)*e+r)+1)+t}}),m.Animation=dt,m.Transition=ct,m.createEffect=u,m.Effects=O}(window.kendo.jQuery),function(e,t){function n(r){var o,s,l,d,c,u,p,f,h=[],m=r.logic||"and",g=r.filters;for(o=0,s=g.length;s>o;o++)r=g[o],l=r.field,p=r.value,u=r.operator,r.filters?r=n(r):(f=r.ignoreCase,l=l.replace(/\./g,"/"),r=a[u],r&&p!==t&&(d=e.type(p),"string"===d?(c="'{1}'",p=p.replace(/'/g,"''"),f===!0&&(l="tolower("+l+")")):c="date"===d?"datetime'{1:yyyy-MM-ddTHH:mm:ss}'":"{1}",c=r.length>3?"substringof"!==r?"{0}({2},"+c+")":"{0}("+c+",{2})":"{2} {0} "+c,r=i.format(c,r,p,l))),h.push(r);return r=h.join(" "+m+" "),h.length>1&&(r="("+r+")"),r}var i=window.kendo,r=e.extend,a={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",endswith:"endswith",startswith:"startswith"},o={pageSize:e.noop,page:e.noop,filter:function(e,t){t&&(e.$filter=n(t))},sort:function(t,n){var i=e.map(n,function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir&&(t+=" desc"),t}).join(",");i&&(t.$orderby=i)},skip:function(e,t){t&&(e.$skip=t)},take:function(e,t){t&&(e.$top=t)}},s={read:{dataType:"jsonp"}};r(!0,i.data,{schemas:{odata:{type:"json",data:function(e){return e.d.results||[e.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(e,t){var n,r,a,l;if(e=e||{},t=t||"read",l=(this.options||s)[t],l=l?l.dataType:"json","read"===t){n={$inlinecount:"allpages"},"json"!=l&&(n.$format="json");for(a in e)o[a]?o[a](n,e[a]):n[a]=e[a]}else{if("json"!==l)throw Error("Only json dataType can be used for "+t+" operation.");if("destroy"!==t){for(a in e)r=e[a],"number"==typeof r&&(e[a]=r+"");n=i.stringify(e)}}return n}}}})}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=e.isArray,r=e.isPlainObject,a=e.map,o=e.each,s=e.extend,l=n.getter,d=n.Class,c=d.extend({init:function(e){var t=this,l=e.total,d=e.model,c=e.data;if(d){if(r(d)){d.fields&&o(d.fields,function(e,n){n=r(n)&&n.field?s(n,{field:t.getter(n.field)}):{field:t.getter(n)},d.fields[e]=n});var u=d.id;if(u){var p={};p[t.xpathToMember(u,!0)]={field:t.getter(u)},d.fields=s(p,d.fields),d.id=t.xpathToMember(u)}d=n.data.Model.define(d)}t.model=d}l&&(l=t.getter(l),t.total=function(e){return parseInt(l(e),10)}),c&&(c=t.xpathToMember(c),t.data=function(e){var n,r=t.evaluate(e,c);return r=i(r)?r:[r],t.model&&d.fields?(n=new t.model,a(r,function(e){if(e){var t,i={};for(t in d.fields)i[t]=n._parse(t,d.fields[t].field(e));return i}})):r})},total:function(e){return this.data(e).length},errors:function(e){return e?e.errors:null},parseDOM:function(e){var n,r,a,o,s,l,d,c={},u=e.attributes,p=u.length;for(d=0;p>d;d++)l=u[d],c["@"+l.nodeName]=l.nodeValue;for(r=e.firstChild;r;r=r.nextSibling)a=r.nodeType,3===a||4===a?c["#text"]=r.nodeValue:1===a&&(n=this.parseDOM(r),o=r.nodeName,s=c[o],i(s)?s.push(n):s=s!==t?[s,n]:n,c[o]=s);return c},evaluate:function(e,t){for(var n,r,a,o,s,l=t.split(".");n=l.shift();)if(e=e[n],i(e)){for(r=[],t=l.join("."),s=0,a=e.length;a>s;s++)o=this.evaluate(e[s],t),o=i(o)?o:[o],r.push.apply(r,o);return r}return e},parse:function(t){var n,i,r={};return n=t.documentElement||e.parseXML(t).documentElement,i=this.parseDOM(n),r[n.nodeName]=i,r},xpathToMember:function(e,t){return e?(e=e.replace(/^\//,"").replace(/\//g,"."),e.indexOf("@")>=0?e.replace(/\.?(@.*)/,t?"$1":'["$1"]'):e.indexOf("text()")>=0?e.replace(/(\.?text\(\))/,t?"#text":'["#text"]'):e):""},getter:function(e){return l(this.xpathToMember(e),!0)}});e.extend(!0,n.data,{XmlDataReader:c,readers:{xml:c}})}(window.kendo.jQuery),function(e,t){function n(t,i){if(t===i)return!0;var r,a=e.type(t),o=e.type(i);if(a!==o)return!1;if("date"===a)return t.getTime()===i.getTime();if("object"!==a&&"array"!==a)return!1;for(r in t)if(!n(t[r],i[r]))return!1;return!0}function i(e,t){var n,i;for(i in e){if(n=e[i],R(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function r(e){this.data=e||[]}function a(e,n){if(e){var i=typeof e===q?{field:e,dir:n}:e,r=z(i)?i:i!==t?[i]:[];return O(r,function(e){return!!e.dir})}}function o(e){var t,n,i,r,a=e.filters;if(a)for(t=0,n=a.length;n>t;t++)i=a[t],r=i.operator,r&&typeof r===q&&(i.operator=Tt[r.toLowerCase()]||r),o(i)}function s(e){return e&&!H(e)?((z(e)||!e.filters)&&(e={logic:"and",filters:z(e)?e:[e]}),o(e),e):t}function l(e){return z(e)?e:[e]}function d(e,n){var i=typeof e===q?{field:e,dir:n}:e,r=z(i)?i:i!==t?[i]:[];return E(r,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates}})}function c(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function u(e,t,n,i,r){t=t||[];var a,o,s,l=t.length;for(a=0;l>a;a++){o=t[a],s=o.aggregate;var d=o.field;e[d]=e[d]||{},e[d][s]=St[s.toLowerCase()](e[d][s],n,L.accessor(d),i,r)}}function p(e){var t,n=e.length,i=Array(n);for(t=0;n>t;t++)i[t]=e[t].toJSON();return i}function f(e,n){n=n||{};var i,o=new r(e),s=n.group,l=d(s||[]).concat(a(n.sort||[])),c=n.filter,u=n.skip,p=n.take;return c&&(o=o.filter(c),i=o.toArray().length),l&&(o=o.sort(l),s&&(e=o.toArray())),u!==t&&p!==t&&(o=o.range(u,p)),s&&(o=o.group(s,e)),{total:i,data:o.toArray()}}function h(e,t){t=t||{};var n=new r(e),i=t.aggregate,a=t.filter;return a&&(n=n.filter(a)),n.aggregate(i)}function m(e,t,n){var i,r,a,o;for(a=0,o=e.length;o>a;a++){i=e[a];for(r in t)i[r]=n._parse(r,t[r](i))}}function g(e,t,n){var i,r,a;for(r=0,a=e.length;a>r;r++)i=e[r],i.value=n._parse(i.field,i.value),i.hasSubgroups?g(i.items,t,n):m(i.items,t,n)}function v(e,t,n,i){return function(r){return r=e(r),r&&!H(i)&&("[object Array]"===ft.call(r)||r instanceof vt||(r=[r]),n(r,i,new t)),r||[]}}function _(e){var t,n,i=[];for(t=0,n=e.length;n>t;t++)i=e[t].hasSubgroups?i.concat(_(e[t].items)):i.concat(e[t].items.slice());return i}function k(e,t){var n,i,r,a;if(t)for(n=0,i=e.length;i>n;n++)r=e[n],a=r.items,r.hasSubgroups?k(a,t):!a.length||a[0]instanceof t||(a.type=t,a.wrapAll(a,a))}function b(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(e[n].hasSubgroups){if(b(e[n].items,t))return!0}else if(t(e[n].items,e[n]))return!0}function w(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(e[n].uid==t.uid)return t=e[n],e.splice(n,1),t}function y(e,t){var n,i,r,a;for(r=e.length-1,a=0;r>=a;r--)i=e[r],n={value:t.get(i.field),field:i.field,items:n?[n]:[t],hasSubgroups:!!n,aggregates:{}};return n}function x(e,t){return t?T(e,function(e){return e[t.idField]===t.id}):-1}function C(e,t){return t?T(e,function(e){return e.uid==t.uid}):-1}function T(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(t(e[n]))return n;return-1}function S(t,n){var i,r,a,o,s,l=e(t)[0].children,d=[],c=n[0],u=n[1];for(i=0,r=l.length;r>i;i++)a={},s=l[i],a[c.field]=s.text,o=s.attributes.value,o=o&&o.specified?s.value:s.text,a[u.field]=o,d.push(a);return d}function F(t,n){var i,r,a,o,s,l,d,c=e(t)[0].tBodies[0],u=c?c.rows:[],p=n.length,f=[];for(i=0,r=u.length;r>i;i++){for(s={},d=!0,o=u[i].cells,a=0;p>a;a++)l=o[a],"th"!==l.nodeName.toLowerCase()&&(d=!1,s[n[a].field]=l.innerHTML);d||f.push(s)}return f}function D(t,n){var i,r,a,o,s,l,d,c,u=e(t).children(),p=[],f=n[0].field,h=n[1]&&n[1].field,m=n[2]&&n[2].field,g=n[3]&&n[3].field;for(i=0,r=u.length;r>i;i++)a={},o=u.eq(i),l=o[0].firstChild,c=o.children(),t=c.filter("ul"),c=c.filter(":not(ul)"),s=o.attr("data-id"),s&&(a.id=s),l&&(a[f]=3==l.nodeType?l.nodeValue:c.text()),h&&(a[h]=c.find("a").attr("href")),g&&(a[g]=c.find("img").attr("src")),m&&(d=c.find(".k-sprite").prop("className"),a[m]=d&&e.trim(d.replace("k-sprite",""))),t.length&&(a.items=D(t.eq(0),n)),"true"==o.attr("data-hasChildren")&&(a.hasChildren=!0),p.push(a);return p}var E,A=e.extend,N=e.proxy,I=e.isFunction,R=e.isPlainObject,H=e.isEmptyObject,z=e.isArray,O=e.grep,M=e.ajax,P=e.each,B=e.noop,L=window.kendo,U=L.Observable,W=L.Class,q="string",V="function",j="create",$="read",G="update",Y="destroy",K="change",Q="sync",J="get",X="error",Z="requestStart",et="requestEnd",tt=[j,$,G,Y],nt=function(e){return e},it=L.getter,rt=L.stringify,at=Math,ot=[].push,st=[].join,lt=[].pop,dt=[].splice,ct=[].shift,ut=[].slice,pt=[].unshift,ft={}.toString,ht=L.support.stableSort,mt=/^\/Date\((.*?)\)\/$/,gt=/(?=['\\])/g,vt=U.extend({init:function(e,t){var n=this;n.type=t||_t,U.fn.init.call(n),n.length=e.length,n.wrapAll(e,n)},toJSON:function(){var e,t,n=this.length,i=Array(n);for(e=0;n>e;e++)t=this[e],t instanceof _t&&(t=t.toJSON()),i[e]=t;return i},parent:B,wrapAll:function(e,t){var n,i,r=this,a=function(){return r};for(t=t||[],n=0,i=e.length;i>n;n++)t[n]=r.wrap(e[n],a);return t},wrap:function(e,t){var n,i=this;return null!==e&&"[object Object]"===ft.call(e)&&(n=e instanceof i.type||e instanceof wt,n||(e=e instanceof _t?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(K,function(e){i.trigger(K,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||"itemchange":"itemchange"})})),e},push:function(){var e,t=this.length,n=this.wrapAll(arguments);return e=ot.apply(this,n),this.trigger(K,{action:"add",index:t,items:n}),e},slice:ut,join:st,pop:function(){var e=this.length,t=lt.apply(this);return e&&this.trigger(K,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,n){var i,r,a,o=this.wrapAll(ut.call(arguments,2));if(i=dt.apply(this,[e,t].concat(o)),i.length)for(this.trigger(K,{action:"remove",index:e,items:i}),r=0,a=i.length;a>r;r++)i[r].children&&i[r].unbind(K);return n&&this.trigger(K,{action:"add",index:e,items:o}),i},shift:function(){var e=this.length,t=ct.apply(this);return e&&this.trigger(K,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=pt.apply(this,t),this.trigger(K,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;n>t;t++)if(i[t]===e)return t;return-1}}),_t=U.extend({init:function(e){var t,n,i,r=this,a=function(){return r};U.fn.init.call(this);for(n in e)t=e[n],"_"!=n.charAt(0)&&(i=ft.call(t),t=r.wrap(t,n,a)),r[n]=t;r.uid=L.guid()},shouldSerialize:function(e){return this.hasOwnProperty(e)&&"_events"!==e&&typeof this[e]!==V&&"uid"!==e},toJSON:function(){var e,t,n={};for(t in this)this.shouldSerialize(t)&&(e=this[t],(e instanceof _t||e instanceof vt)&&(e=e.toJSON()),n[t]=e);return n},get:function(e){var t,n=this;return n.trigger(J,{field:e}),t="this"===e?n:L.getter(e,!0)(n)},_set:function(e,n){var i=this;if(e.indexOf("."))for(var r=e.split("."),a="";r.length>1;){a+=r.shift();var o=L.getter(a,!0)(i);if(o instanceof _t)return o.set(r.join("."),n),t;a+="."}L.setter(e)(i,n)},set:function(e,t){var n=this,i=L.getter(e,!0)(n),r=function(){return n};i!==t&&(n.trigger("set",{field:e,value:t})||(n._set(e,n.wrap(t,e,r)),n.trigger(K,{field:e})))},parent:B,wrap:function(e,n,i){var r=this,a=ft.call(e),o=e instanceof vt;return null===e||e===t||"[object Object]"!==a||e instanceof Nt||o?null===e||"[object Array]"!==a&&!o?null!==e&&e instanceof Nt&&(e._parent=i):(o||(e=new vt(e)),e.parent=i,function(t){e.bind(K,function(e){r.trigger(K,{field:t,index:e.index,items:e.items,action:e.action})})}(n)):(e instanceof _t||(e=new _t(e)),e.parent=i,function(t){e.bind(J,function(e){e.field=t+"."+e.field,r.trigger(J,e)}),e.bind(K,function(e){e.field=t+"."+e.field,r.trigger(K,e)})}(n)),e}}),kt={number:function(e){return L.parseFloat(e)},date:function(e){return L.parseDate(e)},"boolean":function(e){return typeof e===q?"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return null!=e?e+"":e},"default":function(e){return e}},bt={string:"",number:0,date:new Date,"boolean":!1,"default":""},wt=_t.extend({init:function(n){var i=this;(!n||e.isEmptyObject(n))&&(n=e.extend({},i.defaults,n)),_t.fn.init.call(i,n),i.dirty=!1,i.idField&&(i.id=i.get(i.idField),i.id===t&&(i.id=i._defaultId))},shouldSerialize:function(e){return _t.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"_accessors"!==e},_parse:function(e,t){var n,r=this,a=e,o=r.fields||{};return e=o[e],e||(e=i(o,a)),e&&(n=e.parse,!n&&e.type&&(n=kt[e.type.toLowerCase()])),n?n(t):t},editable:function(e){return e=(this.fields||{})[e],e?e.editable!==!1:!0},set:function(e,t,i){var r=this;r.editable(e)&&(t=r._parse(e,t),n(t,r.get(e))||(r.dirty=!0,_t.fn.set.call(r,e,t,i)))},accept:function(e){var t,n=this,i=function(){return n};for(t in e)n._set(t,n.wrap(e[t],t,i));n.idField&&(n.id=n.get(n.idField)),n.dirty=!1},isNew:function(){return this.id===this._defaultId}});wt.define=function(e,n){n===t&&(n=e,e=wt);var i,r,a,o,s,l=A({defaults:{}},n),d=l.id;d&&(l.idField=d),l.id&&delete l.id,d&&(l.defaults[d]=l._defaultId="");for(r in l.fields)a=l.fields[r],o=a.type||"default",s=null,r=typeof a.field===q?a.field:r,a.nullable||(s=l.defaults[r]=a.defaultValue!==t?a.defaultValue:bt[o.toLowerCase()]),n.id===r&&(l._defaultId=s),l.defaults[r]=s,a.parse=a.parse||kt[o];return i=e.extend(l),i.define=function(e){return wt.define(i,e)},l.fields&&(i.fields=l.fields,i.idField=l.idField),i};var yt={selector:function(e){return I(e)?e:it(e)},asc:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:e&&!n||null==n?1:n&&!e?-1:e>n?1:n>e?-1:0}},desc:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:e&&!n||null==n?-1:n&&!e||null==e?1:n>e?1:e>n?-1:0}},create:function(e){return this[e.dir.toLowerCase()](e.field)},combine:function(e){return function(t,n){var i,r,a=e[0](t,n);for(i=1,r=e.length;r>i;i++)a=a||e[i](t,n);return a}}},xt=A({},yt,{asc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==r?1:i>r?1:r>i?-1:0
|
13
|
+
}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:r>i?1:i>r?-1:0}}});E=function(e,t){var n,i=e.length,r=Array(i);for(n=0;i>n;n++)r[n]=t(e[n],n,e);return r};var Ct=function(){function e(e){return e.replace(gt,"\\")}function t(t,n,i,r){var a;return null!=i&&(typeof i===q&&(i=e(i),a=mt.exec(i),a?i=new Date(+a[1]):r?(i="'"+i.toLowerCase()+"'",n="("+n+" || '').toLowerCase()"):i="'"+i+"'"),i.getTime&&(n="("+n+"?"+n+".getTime():"+n+")",i=i.getTime())),n+" "+t+" "+i}return{eq:function(e,n,i){return t("==",e,n,i)},neq:function(e,n,i){return t("!=",e,n,i)},gt:function(e,n,i){return t(">",e,n,i)},gte:function(e,n,i){return t(">=",e,n,i)},lt:function(e,n,i){return t("<",e,n,i)},lte:function(e,n,i){return t("<=",e,n,i)},startswith:function(t,n,i){return i&&(t+=".toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".lastIndexOf('"+n+"', 0) == 0"},endswith:function(t,n,i){return i&&(t+=".toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"', "+t+".length - "+(n||"").length+") >= 0"},contains:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') >= 0"},doesnotcontain:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') == -1"}}}();r.filterExpr=function(e){var n,i,a,o,s,l,d=[],c={and:" && ",or:" || "},u=[],p=[],f=e.filters;for(n=0,i=f.length;i>n;n++)a=f[n],s=a.field,l=a.operator,a.filters?(o=r.filterExpr(a),a=o.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(p.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(u.length+t)+"]"}),p.push.apply(p,o.operators),u.push.apply(u,o.fields)):(typeof s===V?(o="__f["+u.length+"](d)",u.push(s)):o=L.expr(s),typeof l===V?(a="__o["+p.length+"]("+o+", "+a.value+")",p.push(l)):a=Ct[(l||"eq").toLowerCase()](o,a.value,a.ignoreCase!==t?a.ignoreCase:!0)),d.push(a);return{expression:"("+d.join(c[e.logic])+")",fields:u,operators:p}};var Tt={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain"};r.normalizeFilter=s,r.prototype={toArray:function(){return this.data},range:function(e,t){return new r(this.data.slice(e,e+t))},skip:function(e){return new r(this.data.slice(e))},take:function(e){return new r(this.data.slice(0,e))},select:function(e){return new r(E(this.data,e))},orderBy:function(e){var t=this.data.slice(0),n=I(e)||!e?yt.asc(e):e.compare;return new r(t.sort(n))},orderByDescending:function(e){return new r(this.data.slice(0).sort(yt.desc(e)))},sort:function(e,t,n){var i,r,o=a(e,t),s=[];if(n=n||yt,o.length){for(i=0,r=o.length;r>i;i++)s.push(n.create(o[i]));return this.orderBy({compare:n.combine(s)})}return this},filter:function(e){var t,n,i,a,o,l,d,c,u=this.data,p=[];if(e=s(e),!e||0===e.filters.length)return this;for(a=r.filterExpr(e),l=a.fields,d=a.operators,o=c=Function("d, __f, __o","return "+a.expression),(l.length||d.length)&&(c=function(e){return o(e,l,d)}),t=0,i=u.length;i>t;t++)n=u[t],c(n)&&p.push(n);return new r(p)},group:function(e,t){e=d(e||[]),t=t||this.data;var n,i=this,a=new r(i.data);return e.length>0&&(n=e[0],a=a.groupBy(n).select(function(i){var a=new r(t).filter([{field:i.field,operator:"eq",value:i.value}]);return{field:i.field,value:i.value,items:e.length>1?new r(i.items).group(e.slice(1),a.toArray()).toArray():i.items,hasSubgroups:e.length>1,aggregates:a.aggregate(n.aggregates)}})),a},groupBy:function(e){if(H(e)||!this.data.length)return new r([]);var t,n,i,a,o=e.field,s=this._sortForGrouping(o,e.dir||"asc"),l=L.accessor(o),d=l.get(s[0],o),u={field:o,value:d,items:[]},p=[u];for(i=0,a=s.length;a>i;i++)t=s[i],n=l.get(t,o),c(d,n)||(d=n,u={field:o,value:d,items:[]},p.push(u)),u.items.push(t);return new r(p)},_sortForGrouping:function(e,t){var n,i,a=this.data;if(!ht){for(n=0,i=a.length;i>n;n++)a[n].__position=n;for(a=new r(a).sort(e,t,xt).toArray(),n=0,i=a.length;i>n;n++)delete a[n].__position;return a}return this.sort(e,t).toArray()},aggregate:function(e){var t,n,i={};if(e&&e.length)for(t=0,n=this.data.length;n>t;t++)u(i,e,this.data[t],t,n);return i}};var St={sum:function(e,t,n){return(e||0)+n.get(t)},count:function(e){return(e||0)+1},average:function(e,t,n,i,r){return e=(e||0)+n.get(t),i==r-1&&(e/=r),e},max:function(e,t,n){var i=n.get(t);return e=e||0,i>e&&(e=i),e},min:function(e,t,n){var i=n.get(t);return e=e||i,e>i&&(e=i),e}},Ft=W.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),Dt=W.extend({init:function(e){var t,n=this;e=n.options=A({},n.options,e),P(tt,function(t,n){typeof e[n]===q&&(e[n]={url:e[n]})}),n.cache=e.cache?Et.create(e.cache):{find:B,add:B},t=e.parameterMap,n.parameterMap=I(t)?t:function(e){var n={};return P(e,function(e,i){e in t&&(e=t[e],R(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:nt},create:function(e){return M(this.setup(e,j))},read:function(n){var i,r,a,o=this,s=o.cache;n=o.setup(n,$),i=n.success||B,r=n.error||B,a=s.find(n.data),a!==t?i(a):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return M(this.setup(e,G))},destroy:function(e){return M(this.setup(e,Y))},setup:function(e,t){e=e||{};var n,i=this,r=i.options[t],a=I(r.data)?r.data(e.data):r.data;return e=A(!0,{},r,e),n=A(!0,{},a,e.data),e.data=i.parameterMap(n,t),I(e.url)&&(e.url=e.url(n)),e}}),Et=W.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[rt(e)]=n)},find:function(e){return this._store[rt(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[rt(e)]}});Et.create=function(e){var t={inmemory:function(){return new Et}};return R(e)&&I(e.find)?e:e===!0?new Et:t[e]()};var At=W.extend({init:function(e){var t,n,i,r,a=this;e=e||{};for(t in e)n=e[t],a[t]=typeof n===q?it(n):n;if(r=e.modelBase||wt,R(a.model)&&(a.model=i=r.define(a.model)),a.model){var o=N(a.data,a),s=N(a.groups,a),l={};i=a.model,i.fields&&P(i.fields,function(e,t){R(t)&&t.field?l[t.field]=it(t.field):l[e]=it(e)}),a.data=v(o,i,m,l),a.groups=v(s,i,g,l)}},errors:function(e){return e?e.errors:null},parse:nt,data:nt,total:function(e){return e.length},groups:nt,status:function(e){return e.status},aggregates:function(){return{}}}),Nt=U.extend({init:function(e){var n,i,r,o=this;e&&(r=e.data),e=o.options=A({},o.options,e),A(o,{_map:{},_prefetch:{},_data:[],_ranges:[],_view:[],_pristine:[],_destroyed:[],_pageSize:e.pageSize,_page:e.page||(e.pageSize?1:t),_sort:a(e.sort),_filter:s(e.filter),_group:d(e.group),_aggregate:e.aggregate,_total:e.total}),U.fn.init.call(o),i=e.transport,i?(i.read=typeof i.read===q?{url:i.read}:i.read,e.type&&(L.data.transports[e.type]&&!R(L.data.transports[e.type])?o.transport=new L.data.transports[e.type](A(i,{data:r})):i=A(!0,{},L.data.transports[e.type],i),e.schema=A(!0,{},L.data.schemas[e.type],e.schema)),o.transport||(o.transport=I(i.read)?i:new Dt(i))):o.transport=new Ft({data:e.data}),o.reader=new L.data.readers[e.schema.type||"json"](e.schema),n=o.reader.model||{},o._data=o._observe(o._data),o.bind([X,K,Z,Q,et],e)},options:{data:[],schema:{modelBase:wt},serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,sendAllFields:!0,batch:!1},_flatData:function(e){return this.options.serverGrouping&&this.group().length?_(e):e},get:function(e){var t,n,i=this._flatData(this._data);for(t=0,n=i.length;n>t;t++)if(i[t].id==e)return i[t]},getByUid:function(e){var t,n,i=this._flatData(this._data);if(i)for(t=0,n=i.length;n>t;t++)if(i[t].uid==e)return i[t]},sync:function(){var t,n,i=this,r=[],a=[],o=i._destroyed,s=i._flatData(i._data);if(i.reader.model){for(t=0,n=s.length;n>t;t++)s[t].isNew()?r.push(s[t]):s[t].dirty&&a.push(s[t]);var l=i._send("create",r);l.push.apply(l,i._send("update",a)),l.push.apply(l,i._send("destroy",o)),e.when.apply(null,l).then(function(){var e,t;for(e=0,t=arguments.length;t>e;e++)i._accept(arguments[e]);i._change({action:"sync"}),i.trigger(Q)})}},_accept:function(t){var n,i=this,r=t.models,a=t.response,o=0,s=i.options.serverGrouping&&i.group()&&i.group().length,l=i.reader.data(i._pristine),d=t.type;if(i.trigger(et,{response:a,type:d}),a){if(a=i.reader.parse(a),i._handleCustomErrors(a))return;a=i.reader.data(a),e.isArray(a)||(a=[a])}else a=e.map(r,function(e){return e.toJSON()});for("destroy"===d&&(i._destroyed=[]),o=0,n=r.length;n>o;o++)"destroy"!==d?(r[o].accept(a[o]),"create"===d?l.push(s?y(i.group(),r[o]):a[o]):"update"===d&&(s?i._updatePristineGroupModel(r[o],a[o]):A(l[i._pristineIndex(r[o])],a[o]))):s?i._removePristineGroupModel(r[o]):l.splice(i._pristineIndex(r[o]),1)},_pristineIndex:function(e){var t,n,i=this,r=i.reader.data(i._pristine);for(t=0,n=r.length;n>t;t++)if(r[t][e.idField]===e.id)return t;return-1},_updatePristineGroupModel:function(e,n){var i,r=this.reader.groups(this._pristine);b(r,function(r){return i=x(r,e),i>-1?(A(!0,r[i],n),!0):t})},_removePristineGroupModel:function(e){var n,i=this.reader.groups(this._pristine);b(i,function(i){return n=x(i,e),n>-1?(i.splice(n,1),!0):t})},_promise:function(t,n,i){var r=this,a=r.transport;return e.Deferred(function(e){a[i].call(a,A({success:function(t){e.resolve({response:t,models:n,type:i})},error:function(t,n,i){e.reject(t),r.error(t,n,i)}},t))}).promise()},_send:function(e,t){var n,i,r=this,a=[];if(r.options.batch)t.length&&a.push(r._promise({data:{models:p(t)}},t,e));else for(n=0,i=t.length;i>n;n++)a.push(r._promise({data:t[n].toJSON()},[t[n]],e));return a},add:function(e){return this.insert(this._data.length,e)},insert:function(e,t){return t||(t=e,e=0),t instanceof wt||(t=this.reader.model?new this.reader.model(t):new _t(t)),this.options.serverGrouping&&this.group()&&this.group().length?this._data.splice(e,0,y(this.group(),t)):this._data.splice(e,0,t),t},cancelChanges:function(e){var t,n,i=this,r=i.options.serverGrouping&&i.group()&&i.group().length,a=r?i.reader.groups:i.reader.data,o=a(i._pristine);e instanceof L.data.Model?r?i._cancelGroupModel(e):(n=i.indexOf(e),t=i._pristineIndex(e),-1!=n&&(-1==t||e.isNew()?i._data.splice(n,1):i._data[n].accept(o[t]))):(i._destroyed=[],i._data=i._observe(o),i._change())},read:function(e){var t=this,n=t._params(e);t._queueRequest(n,function(){t.trigger(Z),t._ranges=[],t.transport.read({data:n,success:N(t.success,t),error:N(t.error,t)})})},_cancelGroupModel:function(e){var n,i,r=this.reader.groups(this._pristine);b(r,function(r){return i=x(r,e),i>-1?(n=r[i],!0):t}),i>-1&&b(this._data,function(t){i=C(t,e),i>-1&&(e.isNew()?t.splice(i,1):A(!0,t[i],n))})},indexOf:function(e){return C(this._data,e)},_params:function(e){var t=this,n=A({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate},e);return t.options.serverPaging||(delete n.take,delete n.skip,delete n.page,delete n.pageSize),t.options.serverGrouping||delete n.group,t.options.serverFiltering||delete n.filter,t.options.serverSorting||delete n.sort,t.options.serverAggregates||delete n.aggregate,n},_queueRequest:function(e,n){var i=this;i._requestInProgress?i._pending={callback:N(n,i),options:e}:(i._requestInProgress=!0,i._pending=t,n())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},remove:function(e){var t=this._data;return this.options.serverGrouping&&this.group()&&this.group().length?this._removeGroupItem(t,e):w(t,e)},_removeGroupItem:function(e,n){var i,r=this;return b(e,function(e){return i=w(e,n),i?(i.isNew&&i.isNew()||r._destroyed.push(i),!0):t}),n},error:function(e,t,n){this._dequeueRequest(),this.trigger(et,{}),this.trigger(X,{xhr:e,status:t,errorThrown:n})},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(X,{xhr:null,status:"customerror",errorThrown:"custom error",errors:t}),!0}return!1},_parent:B,success:function(n){var i=this,r=i.options,a=r.serverGrouping===!0&&i._group&&i._group.length>0;if(i.trigger(et,{response:n,type:"read"}),n=i.reader.parse(n),i._handleCustomErrors(n))return i._dequeueRequest(),t;i._pristine=R(n)?e.extend(!0,{},n):n.slice?n.slice(0):n,i._total=i.reader.total(n),i._aggregate&&r.serverAggregates&&(i._aggregateResult=i.reader.aggregates(n)),n=a?i.reader.groups(n):i.reader.data(n),i._data=i._observe(n);var o=i._skip||0,s=o+i._data.length;i._ranges.push({start:o,end:s,data:i._data}),i._ranges.sort(function(e,t){return e.start-t.start}),i._dequeueRequest(),i._process(i._data)},_observe:function(e){var t=this,n=t.reader.model,i=!1;return n&&e.length&&(i=!(e[0]instanceof n)),e instanceof vt?i&&(e.type=t.reader.model,e.wrapAll(e,e)):(e=new vt(e,t.reader.model),e.parent=function(){return t._parent()}),t.group()&&t.group().length&&t.options.serverGrouping&&k(e,n),e.bind(K,N(t._change,t))},_change:function(e){var t,n,i=this,r=e?e.action:"";if("remove"===r)for(t=0,n=e.items.length;n>t;t++)e.items[t].isNew&&e.items[t].isNew()||i._destroyed.push(e.items[t]);if(!i.options.autoSync||"add"!==r&&"remove"!==r&&"itemchange"!==r){var a=i._total||i.reader.total(i._pristine);"add"===r?a++:"remove"===r?a--:"itemchange"===r||i.options.serverPaging||(a=i.reader.total(i._pristine)),i._total=a,i._process(i._data,e)}else i.sync()},_process:function(e,n){var i,r=this,a={};r.options.serverPaging!==!0&&(a.skip=r._skip,a.take=r._take||r._pageSize,a.skip===t&&r._page!==t&&r._pageSize!==t&&(a.skip=(r._page-1)*r._pageSize)),r.options.serverSorting!==!0&&(a.sort=r._sort),r.options.serverFiltering!==!0&&(a.filter=r._filter),r.options.serverGrouping!==!0&&(a.group=r._group),r.options.serverAggregates!==!0&&(a.aggregate=r._aggregate,r._aggregateResult=h(e,a)),i=f(e,a),r._view=i.data,i.total===t||r.options.serverFiltering||(r._total=i.total),n=n||{},n.items=n.items||r._view,r.trigger(K,n)},at:function(e){return this._data[e]},data:function(e){var n=this;return e===t?n._data:(n._data=this._observe(e),n._total=n._data.length,n._process(n._data),t)},view:function(){return this._view},query:function(e){var n,i=this,r=i.options.serverSorting||i.options.serverPaging||i.options.serverFiltering||i.options.serverGrouping||i.options.serverAggregates;e!==t&&(i._pageSize=e.pageSize,i._page=e.page,i._sort=e.sort,i._filter=e.filter,i._group=e.group,i._aggregate=e.aggregate,i._skip=e.skip,i._take=e.take,i._skip===t&&(i._skip=i.skip(),e.skip=i.skip()),i._take===t&&i._pageSize!==t&&(i._take=i._pageSize,e.take=i._take),e.sort&&(i._sort=e.sort=a(e.sort)),e.filter&&(i._filter=e.filter=s(e.filter)),e.group&&(i._group=e.group=d(e.group)),e.aggregate&&(i._aggregate=e.aggregate=l(e.aggregate))),r||i._data===t||0===i._data.length?i.read(e):(i.trigger(Z),n=f(i._data,e),i.options.serverFiltering||(i._total=n.total!==t?n.total:i._data.length),i._view=n.data,i._aggregateResult=h(i._data,e),i.trigger(K,{items:n.data}))},fetch:function(e){var t=this;e&&I(e)&&t.one(K,e),t._query()},_query:function(e){var t=this;t.query(A({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var n=this,i=n.page(),r=n.total();return e=e||{},!i||r&&i+1>n.totalPages()?t:(n._skip=i*n.take(),i+=1,e.page=i,n._query(e),i)},prev:function(e){var n=this,i=n.page();return e=e||{},i&&1!==i?(n._skip=n._skip-n.take(),i-=1,e.page=i,n._query(e),i):t},page:function(e){var n,i=this;return e!==t?(e=at.max(at.min(at.max(e,1),i.totalPages()),1),i._query({page:e}),t):(n=i.skip(),n!==t?at.round((n||0)/(i.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?(n._query({pageSize:e,page:1}),t):n.take()},sort:function(e){var n=this;return e!==t?(n._query({sort:e}),t):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n._query({filter:e,page:1}),t)},group:function(e){var n=this;return e!==t?(n._query({group:e}),t):n._group},total:function(){return this._total||0},aggregate:function(e){var n=this;return e!==t?(n._query({aggregate:e}),t):n._aggregate},aggregates:function(){return this._aggregateResult},totalPages:function(){var e=this,t=e.pageSize()||e.total();return at.ceil((e.total()||0)/t)},inRange:function(e,t){var n=this,i=at.min(e+t,n.total());return!n.options.serverPaging&&n.data.length>0?!0:n._findRange(e,i).length>0},range:function(e,n){e=at.min(e||0,this.total());var i,r=this,a=at.max(at.floor(e/n),0)*n,o=at.min(a+n,r.total());if(i=r._findRange(e,at.min(e+n,r.total())),i.length){r._skip=e>r.skip()?at.min(o,(r.totalPages()-1)*r.take()):a,r._take=n;var s=r.options.serverPaging,l=r.options.serverSorting,d=r.options.serverFiltering;try{r.options.serverPaging=!0,r.options.serverSorting=!0,r.options.serverFiltering=!0,s&&(r._data=i=r._observe(i)),r._process(i)}finally{r.options.serverPaging=s,r.options.serverSorting=l,r.options.serverFiltering=d}}else n!==t&&(r._rangeExists(a,o)?e>a&&r.prefetch(o,n,function(){r.range(e,n)}):r.prefetch(a,n,function(){e>a&&r.total()>o&&!r._rangeExists(o,at.min(o+n,r.total()))?r.prefetch(o,n,function(){r.range(e,n)}):r.range(e,n)}))},_findRange:function(e,n){var i,r,a,o,s,l,d,c,u,p=this,h=p._ranges,m=[],g=p.options,v=g.serverSorting||g.serverPaging||g.serverFiltering||g.serverGrouping||g.serverAggregates;for(r=0,u=h.length;u>r;r++)if(i=h[r],e>=i.start&&i.end>=e){var _=0;for(a=r;u>a;a++)if(i=h[a],i.data.length&&e+_>=i.start&&(l=i.data,d=i.end,v||(c=f(i.data,{sort:p.sort(),filter:p.filter()}),l=c.data,c.total!==t&&(d=c.total)),o=0,e+_>i.start&&(o=e+_-i.start),s=l.length,d>n&&(s-=d-n),_+=s-o,m=m.concat(l.slice(o,s)),i.end>=n&&_==n-e))return m;break}return[]},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},take:function(){var e=this;return e._take||e._pageSize},prefetch:function(e,t,n){var i=this,r=at.min(e+t,i.total()),a={start:e,end:r,data:[]},o={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,r)?n&&n():(clearTimeout(i._timeout),i._timeout=setTimeout(function(){i._queueRequest(o,function(){i.transport.read({data:o,success:function(t){i._dequeueRequest();for(var r=!1,o=0,s=i._ranges.length;s>o;o++)if(i._ranges[o].start===e){r=!0,a=i._ranges[o];break}r||i._ranges.push(a),t=i.reader.parse(t),a.data=i._observe(i.reader.data(t)),a.end=a.start+a.data.length,i._ranges.sort(function(e,t){return e.start-t.start}),i._total=i.reader.total(t),n&&n()}})})},100))},_rangeExists:function(e,t){var n,i,r=this,a=r._ranges;for(n=0,i=a.length;i>n;n++)if(e>=a[n].start&&a[n].end>=t)return!0;return!1}});Nt.create=function(e){e=e&&e.push?{data:e}:e;var t,n,i,r=e||{},a=r.data,o=r.fields,s=r.table,l=r.select,d={};if(a||!o||r.transport||(s?a=F(s,o):l&&(a=S(l,o))),L.data.Model&&o&&(!r.schema||!r.schema.model)){for(t=0,n=o.length;n>t;t++)i=o[t],i.type&&(d[i.field]=i);H(d)||(r.schema=A(!0,r.schema,{model:{fields:d}}))}return r.data=a,r instanceof Nt?r:new Nt(r)};var It=wt.define({init:function(e){var t=this,n=t.hasChildren||e&&e.hasChildren,i="items",r={};L.data.Model.fn.init.call(t,e),typeof t.children===q&&(i=t.children),r={schema:{data:i,model:{hasChildren:n,id:t.idField}}},typeof t.children!==q&&A(r,t.children),r.data=e,n||(n=r.schema.data),typeof n===q&&(n=L.getter(n)),I(n)&&(t.hasChildren=!!n.call(t,t)),t._childrenOptions=r,t.hasChildren&&t._initChildren(),t._loaded=!(!e||!e[i])},_initChildren:function(){var e=this,t=e._childrenOptions.schema.data;e.children instanceof Rt||(e.children=new Rt(e._childrenOptions),e.children._parent=function(){return e},e.children.bind(K,function(t){t.node=t.node||e,e.trigger(K,t)}),t&&(e[t]=e.children.data()))},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},load:function(){var e=this,n={};e._initChildren(),(!e._loaded||e.hasChildren)&&(n[e.idField||"id"]=e.id,e._loaded||(e.children._data=t),e.children.one(K,function(){e._loaded=!0})._query(n))},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:(this._loaded=e,t)},shouldSerialize:function(e){return wt.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),Rt=Nt.extend({init:function(e){var t=It.define({children:e});Nt.fn.init.call(this,A(!0,{},{schema:{modelBase:t,model:t}},e))},remove:function(e){var t,n=e.parentNode(),i=this;return n&&(i=n.children),t=Nt.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},insert:function(e,t){var n=this._parent();return n&&(n.hasChildren=!0,n._initChildren()),Nt.fn.insert.call(this,e,t)},_find:function(e,t){var n,i,r,a,o;if(r=Nt.fn[e].call(this,t))return r;if(a=this._flatData(this.data()))for(n=0,i=a.length;i>n;n++)if(o=a[n].children,o instanceof Rt&&(r=o[e](t)))return r},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}});Rt.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data,i=t.fields,r=t.list;return n&&n._dataSource?n._dataSource:(n||!i||t.transport||r&&(n=D(r,i)),t.data=n,t instanceof Rt?t:new Rt(t))},A(!0,L.data,{readers:{json:At},Query:r,DataSource:Nt,HierarchicalDataSource:Rt,Node:It,ObservableObject:_t,ObservableArray:vt,LocalTransport:Ft,RemoteTransport:Dt,Cache:Et,DataReader:At,Model:wt})}(window.kendo.jQuery),function(e){function t(e){var n,i,r=[];for(n=0,i=e.length;i>n;n++)r=e[n].hasSubgroups?r.concat(t(e[n].items)):r.concat(e[n].items);return r}function n(e,t,n){var i=n[e];return i?new A(p.initWidget(t,i.options,n)):void 0}function i(e){var t,n,r,a,o,s,l,d={};for(l=e.match(N),t=0,n=l.length;n>t;t++)r=l[t],a=r.indexOf(":"),o=r.substring(0,a),s=r.substring(a+1),"{"==s.charAt(0)&&(s=i(s)),d[o]=s;return d}function r(e,t,n){var i,r={};for(i in e)r[i]=new n(t,e[i]);return r}function a(e,t,o){var l,d,c,u=e.getAttribute("data-"+p.ns+"role"),f=e.getAttribute("data-"+p.ns+"bind"),h=e.children,m=!0,g={};if((u||f)&&s(e),u&&(c=n(u,e,o)),f&&(f=i(f.replace(I,"")),c||(g=p.parseOptions(e,{textField:"",valueField:"",template:"",valueUpdate:C}),g.roles=o,c=new E(e,g)),c.source=t,d=r(f,t,T),g.template&&(d.template=new F(t,"",g.template)),d.click&&(f.events=f.events||{},f.events.click=f.click,delete d.click),d.source&&(m=!1),f.attr&&(d.attr=r(f.attr,t,T)),f.style&&(d.style=r(f.style,t,T)),f.events&&(d.events=r(f.events,t,S)),c.bind(d)),c&&(e.kendoBindingTarget=c),m&&h)for(l=0;h.length>l;l++)a(h[l],t,o)}function o(t,n){var i,r,o=p.rolesFromNamespaces([].slice.call(arguments,2));for(n=p.observable(n),t=e(t),i=0,r=t.length;r>i;i++)a(t[i],n,o)}function s(t){var n=t.kendoBindingTarget;n&&(n.destroy(),e.support.deleteExpando?delete t.kendoBindingTarget:t.removeAttribute?t.removeAttribute("kendoBindingTarget"):t.kendoBindingTarget=null)}function l(e){var t,n,i=e.children;if(s(e),i)for(t=0,n=i.length;n>t;t++)l(i[t])}function d(t){var n,i;for(t=e(t),n=0,i=t.length;i>n;n++)l(t[n])}function c(e,t){var n=e.element,i=n[0].kendoBindingTarget;i&&o(n,i.source,t)}var u,p=window.kendo,f=p.Observable,h=p.data.ObservableObject,m=p.data.ObservableArray,g={}.toString,v={},_=p.Class,k=e.proxy,b="value",w="source",y="events",x="checked",C="change";(function(){var e=document.createElement("a");void 0!==e.innerText?u="innerText":void 0!==e.textContent&&(u="textContent")})();var T=f.extend({init:function(e,t){var n=this;f.fn.init.call(n),n.source=e,n.path=t,n.dependencies={},n.dependencies[t]=!0,n.observable=n.source instanceof f,n._access=function(e){n.dependencies[e.field]=!0},n.observable&&(n._change=function(e){n.change(e)},n.source.bind(C,n._change))},change:function(e){var t,n,i,r=this;if("this"===r.path)r.trigger(C,e);else for(t in r.dependencies)if(n=t.indexOf(e.field),0===n&&(i=t.charAt(e.field.length),!i||"."===i||"["===i)){r.trigger(C,e);break}},start:function(){this.observable&&this.source.bind("get",this._access)},stop:function(){this.observable&&this.source.unbind("get",this._access)},get:function(){var e,t=this,n=t.source,i=t.path,r=n;if(t.start(),t.observable){for(r=n.get(i);void 0===r&&n;)n=n.parent(),n instanceof h&&(r=n.get(i));"function"==typeof r&&(e=i.lastIndexOf("."),e>0&&(n=n.get(i.substring(0,e))),r=k(r,n),r=r(t.source)),n&&n!==t.source&&(t.currentSource=n,n.unbind(C,t._change).bind(C,t._change))}return t.stop(),r},set:function(e){var t=this,n=t.currentSource||t.source;n.set(t.path,e)},destroy:function(){this.observable&&this.source.unbind(C,this._change)}}),S=T.extend({get:function(){var e,t=this.source,n=this.path;for(e=t.get(n);!e&&t;)t=t.parent(),t instanceof h&&(e=t.get(n));return k(e,t)}}),F=T.extend({init:function(e,t,n){var i=this;T.fn.init.call(i,e,t),i.template=n},render:function(e){var t;return this.start(),t=p.render(this.template,e),this.stop(),t}}),D=_.extend({init:function(e,t,n){this.element=e,this.bindings=t,this.options=n},bind:function(e,t){var n=this;e=t?e[t]:e,e.bind(C,function(e){n.refresh(t||e)}),n.refresh(t)},destroy:function(){}});v.attr=D.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),v.style=D.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()}}),v.enabled=D.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),v.readonly=D.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),v.disabled=D.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),v.events=D.extend({init:function(e,t,n){D.fn.init.call(this,e,t,n),this.handlers={}},refresh:function(t){var n=e(this.element),i=this.bindings.events[t],r=this.handlers[t];r&&n.off(t,r),r=this.handlers[t]=i.get(),n.on(t,i.source,r)},destroy:function(){var t,n=e(this.element);for(t in this.handlers)n.off(t,this.handlers[t])}}),v.text=D.extend({refresh:function(){var e=this.bindings.text.get();null==e&&(e=""),this.element[u]=e}}),v.visible=D.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),v.invisible=D.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),v.html=D.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),v.value=D.extend({init:function(t,n,i){D.fn.init.call(this,t,n,i),this._change=k(this.change,this),this.eventName=i.valueUpdate||C,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=C,this.bindings[b].set(this.element.value),this._initChange=!1},refresh:function(){if(!this._initChange){var e=this.bindings[b].get();null==e&&(e=""),this.element.value=e}this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),v.source=D.extend({init:function(e,t,n){D.fn.init.call(this,e,t,n)},refresh:function(e){var t=this,n=t.bindings.source.get();n instanceof m?(e=e||{},"add"==e.action?t.add(e.index,e.items):"remove"==e.action?t.remove(e.index,e.items):"itemchange"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return"table"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement("tbody")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,n=this.container().nodeName.toLowerCase();return t||(t="select"==n?e.valueField||e.textField?p.format('<option value="#:{0}#">#:{1}#</option>',e.valueField||e.textField,e.textField||e.valueField):"<option>#:data#</option>":"tbody"==n?"<tr><td>#:data#</td></tr>":"ul"==n||"ol"==n?"<li>#:data#</li>":"#:data#",t=p.template(t)),t},destroy:function(){var e=this.bindings.source.get();e.unbind(C,this._change)},add:function(t,n){var i,r,o,s=this.container(),l=s.cloneNode(!1),d=s.children[t];if(e(l).html(p.render(this.template(),n)),l.children.length)for(i=0,r=n.length;r>i;i++)o=l.children[0],s.insertBefore(o,d||null),a(o,n[i],this.options.roles)},remove:function(e,t){var n,i=this.container();for(n=0;t.length>n;n++)i.removeChild(i.children[e])},render:function(){var t,n,i,r=this.bindings.source.get(),o=this.container(),s=this.template();if(r instanceof m||"[object Array]"===g.call(r)||(r.parent&&(i=r.parent),r=new m([r]),r.parent&&(r.parent=i)),this.bindings.template){if(e(o).html(this.bindings.template.render(r)),o.children.length)for(t=0,n=r.length;n>t;t++)a(o.children[t],r[t],this.options.roles)}else e(o).html(p.render(s,r))}}),v.input={checked:D.extend({init:function(t,n,i){D.fn.init.call(this,t,n,i),this._change=k(this.change,this),e(this.element).change(this._change)},change:function(){var e=this.element,t=this.value();if("radio"==e.type)this.bindings[x].set(t);else if("checkbox"==e.type){var n,i=this.bindings[x].get();i instanceof m?(t=this.element.value,"on"!==t&&"off"!==t&&(n=i.indexOf(t),n>-1?i.splice(n,1):i.push(t))):this.bindings[x].set(t)}},refresh:function(){var e=this.bindings[x].get(),t=e,n=this.element;"checkbox"==n.type?(t instanceof m&&(e=this.element.value,t.indexOf(e)>=0&&(e=!0)),n.checked=e===!0):"radio"==n.type&&null!=e&&n.value===""+e&&(n.checked=!0)},value:function(){var e=this.element,t=e.value;return"checkbox"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(C,this._change)}})},v.select={value:D.extend({init:function(t,n,i){D.fn.init.call(this,t,n,i),this._change=k(this.change,this),e(this.element).change(this._change)},change:function(){var e,t,n,i,r,a,o=[],s=this.element,l=this.options.valueField||this.options.textField;for(r=0,a=s.options.length;a>r;r++)t=s.options[r],t.selected&&(i=t.attributes.value,i=i&&i.specified?t.value:t.text,o.push(i));if(l)for(e=this.bindings.source.get(),n=0;o.length>n;n++)for(r=0,a=e.length;a>r;r++)if(e[r].get(l)==o[n]){o[n]=e[r];break}i=this.bindings[b].get(),i instanceof m?i.splice.apply(i,[0,i.length].concat(o)):i instanceof h||!l?this.bindings[b].set(o[0]):this.bindings[b].set(o[0].get(l))},refresh:function(){var e,t,n=this.element,i=n.options,r=this.bindings[b].get(),a=r,o=this.options.valueField||this.options.textField;a instanceof m||(a=new m([r]));for(var s=0;a.length>s;s++)for(r=a[s],o&&r instanceof h&&(r=r.get(o)),e=0;i.length>e;e++)t=i[e].value,""===t&&""!==r&&(t=i[e].text),t==r&&(i[e].selected=!0)},destroy:function(){e(this.element).off(C,this._change)}})},v.widget={events:D.extend({init:function(e,t,n){D.fn.init.call(this,e.element[0],t,n),this.widget=e,this.handlers={}},refresh:function(e){var t=this.bindings.events[e],n=this.handlers[e];n&&this.widget.unbind(e,n),n=t.get(),this.handlers[e]=function(e){e.data=t.source,n(e),e.data===t.source&&delete e.data},this.widget.bind(e,this.handlers[e])},destroy:function(){var e;for(e in this.handlers)this.widget.unbind(e,this.handlers[e])}}),checked:D.extend({init:function(e,t,n){D.fn.init.call(this,e.element[0],t,n),this.widget=e,this._change=k(this.change,this),this.widget.bind(C,this._change)},change:function(){this.bindings[x].set(this.value())},refresh:function(){this.widget.check(this.bindings[x].get()===!0)},value:function(){var e=this.element,t=e.value;return("on"==t||"off"==t)&&(t=e.checked),t},destroy:function(){this.widget.unbind(C,this._change)}}),visible:D.extend({init:function(e,t,n){D.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.visible.get();this.widget.wrapper[0].style.display=e?"":"none"}}),invisible:D.extend({init:function(e,t,n){D.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){var e=this.bindings.invisible.get();this.widget.wrapper[0].style.display=e?"none":""}}),enabled:D.extend({init:function(e,t,n){D.fn.init.call(this,e.element[0],t,n),this.widget=e
|
14
|
+
},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:D.extend({init:function(e,t,n){D.fn.init.call(this,e.element[0],t,n),this.widget=e},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:D.extend({init:function(e,t,n){var i=this;D.fn.init.call(i,e.element[0],t,n),i.widget=e,i._dataBinding=k(i.dataBinding,i),i._dataBound=k(i.dataBound,i),i._itemChange=k(i.itemChange,i)},itemChange:function(e){a(e.item[0],e.data,(e.ns||p.ui).roles)},dataBinding:function(){var e,t,n=this.widget,i=n.items();for(e=0,t=i.length;t>e;e++)l(i[e])},dataBound:function(e){var n,i,r=this.widget,o=r.items(),s=r.dataSource,l=s.view(),d=e.ns||p.ui,c=s.group()||[];if(o.length)for(c.length&&(l=t(l)),n=0,i=l.length;i>n;n++)a(o[n],l[n],d.roles)},refresh:function(e){var t,n=this,i=n.widget;e=e||{},e.action||(n.destroy(),i.bind("dataBinding",n._dataBinding),i.bind("dataBound",n._dataBound),i.bind("itemChange",n._itemChange),i.dataSource instanceof p.data.DataSource&&(t=n.bindings.source.get(),t instanceof p.data.DataSource?i.setDataSource(t):t&&t._dataSource?i.setDataSource(t._dataSource):i.dataSource.data(t)))},destroy:function(){var e=this.widget;e.unbind("dataBinding",this._dataBinding),e.unbind("dataBound",this._dataBound),e.unbind("itemChange",this._itemChange)}}),value:D.extend({init:function(t,n,i){D.fn.init.call(this,t.element[0],n,i),this.widget=t,this._change=e.proxy(this.change,this),this.widget.first(C,this._change);var r=this.bindings.value.get();this._valueIsObservableObject=null==r||r instanceof h},change:function(){var e,t,n=this.widget.value(),i=this.options.dataValueField||this.options.dataTextField;if(i){var r,a=this._valueIsObservableObject;if(this.bindings.source&&(r=this.bindings.source.get()),""===n&&a)n=null;else for((!r||r instanceof p.data.DataSource)&&(r=this.widget.dataSource.view()),e=0,t=r.length;t>e;e++)if(r[e].get(i)==n){n=a?r[e]:r[e].get(i);break}}this.bindings.value.set(n)},refresh:function(){var e=this.options.dataValueField||this.options.dataTextField,t=this.bindings.value.get();e&&t instanceof h&&(t=t.get(e)),this.widget.value(t)},destroy:function(){this.widget.unbind(C,this._change)}})};var E=_.extend({init:function(e,t){this.target=e,this.options=t,this.toDestroy=[]},bind:function(e){var t,n,i,r,a=this.target.nodeName.toLowerCase(),o=v[a]||{};for(t in e)t==b?n=!0:t==w?i=!0:t==y?r=!0:this.applyBinding(t,e,o);i&&this.applyBinding(w,e,o),n&&this.applyBinding(b,e,o),r&&this.applyBinding(y,e,o)},applyBinding:function(e,t,n){var i,r=n[e]||v[e],a=this.toDestroy,o=t[e];if(r)if(r=new r(this.target,t,this.options),a.push(r),o instanceof T)r.bind(o),a.push(o);else for(i in o)r.bind(o,i),a.push(o[i]);else if("template"!==e)throw Error("The "+e+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var e,t,n=this.toDestroy;for(e=0,t=n.length;t>e;e++)n[e].destroy()}}),A=E.extend({bind:function(e){var t,n=this,i=!1,r=!1;for(t in e)t==b?i=!0:t==w?r=!0:n.applyBinding(t,e);r&&n.applyBinding(w,e),i&&n.applyBinding(b,e)},applyBinding:function(e,t){var n,i=v.widget[e],r=this.toDestroy,a=t[e];if(!i)throw Error("The "+e+" binding is not supported by the "+this.target.options.name+" widget");if(i=new i(this.target,t,this.target.options),r.push(i),a instanceof T)i.bind(a),r.push(a);else for(n in a)i.bind(a,n),r.push(a[n])}}),N=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,I=/\s/g;p.unbind=d,p.bind=o,p.data.binders=v,p.data.Binder=D,p.notify=c,p.observable=function(e){return e instanceof h||(e=new h(e)),e},p.observableHierarchy=function(e){function t(e){var n,i;for(n=0;e.length>n;n++)e[n]._initChildren(),i=e[n].children,i.fetch(),e[n].items=i.data(),t(e[n].items)}var n=p.data.HierarchicalDataSource.create(e);return n.fetch(),t(n.data()),n._data._dataSource=n,n._data}}(window.kendo.jQuery),function(e,t){function n(t){var n,i=a.ui.validator.ruleResolvers||{},r={};for(n in i)e.extend(!0,r,i[n].resolve(t));return r}function i(e){return e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function r(e){return e=(e+"").split("."),e.length>1?e[1].length:0}var a=window.kendo,o=a.ui.Widget,s=".kendoValidator",l="k-invalid-msg",d="k-invalid",c=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,u=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,p=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])",f="[type=number],[type=range]",h="blur",m="name",g="form",v="novalidate",_=e.proxy,k=function(e,t){return"string"==typeof t&&(t=RegExp("^(?:"+t+")$")),t.test(e)},b=function(e,t,n){var i=e.val();return e.filter(t).length&&""!==i?k(i,n):!0},w=function(e,n){return e.length?e[0].attributes[n]!==t:!1},y=/(\[|\]|\$|\.|\:|\+)/g;a.ui.validator||(a.ui.validator={rules:{},messages:{}});var x=o.extend({init:function(t,i){var r=this,s=n(t);i=i||{},i.rules=e.extend({},a.ui.validator.rules,s.rules,i.rules),i.messages=e.extend({},a.ui.validator.messages,s.messages,i.messages),o.fn.init.call(r,t,i),r._errorTemplate=a.template(r.options.errorTemplate),r.element.is(g)&&r.element.attr(v,v),r._errors={},r._attachEvents()},options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> #=message#</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date"},rules:{required:function(e){var t=e.filter("[type=checkbox]").length&&"checked"!==e.attr("checked"),n=e.val();return!(w(e,"required")&&(""===n||!n||t))},pattern:function(e){return e.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length&&""!==e.val()?k(e.val(),e.attr("pattern")):!0},min:function(e){if(e.filter(f+",["+a.attr("type")+"=number]").filter("[min]").length&&""!==e.val()){var t=parseFloat(e.attr("min"))||0,n=parseFloat(e.val());return n>=t}return!0},max:function(e){if(e.filter(f+",["+a.attr("type")+"=number]").filter("[max]").length&&""!==e.val()){var t=parseFloat(e.attr("max"))||0,n=parseFloat(e.val());return t>=n}return!0},step:function(e){if(e.filter(f+",["+a.attr("type")+"=number]").filter("[step]").length&&""!==e.val()){var t,n=parseFloat(e.attr("min"))||0,i=parseFloat(e.attr("step"))||1,o=parseFloat(e.val()),s=r(i);return s?(t=Math.pow(10,s),0===(o-n)*t%(i*t)/Math.pow(100,s)):0===(o-n)%i}return!0},email:function(e){return b(e,"[type=email],["+a.attr("type")+"=email]",c)},url:function(e){return b(e,"[type=url],["+a.attr("type")+"=url]",u)},date:function(e){return e.filter("[type^=date],["+a.attr("type")+"=date]").length&&""!==e.val()?null!==a.parseDate(e.val(),e.attr(a.attr("format"))):!0}},validateOnBlur:!0},destroy:function(){o.fn.destroy.call(this),this.element.off(s)},_submit:function(e){return this.validate()?!0:(e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),!1)},_attachEvents:function(){var t=this;t.element.is(g)&&t.element.on("submit"+s,_(t._submit,t)),t.options.validateOnBlur&&(t.element.is(p)?t.element.on(h+s,function(){t.validateInput(t.element)}):t.element.on(h+s,p,function(){t.validateInput(e(this))}))},validate:function(){var e,t,n,i=this,r=!1;if(i._errors={},!i.element.is(p)){for(e=i.element.find(p),t=0,n=e.length;n>t;t++)i.validateInput(e.eq(t))||(r=!0);return!r}return i.validateInput(i.element)},validateInput:function(t){t=e(t);var n,r=this,a=r._errorTemplate,o=r._checkValidity(t),s=o.valid,c="."+l,u=t.attr(m)||"",p=r._findMessageContainer(u).add(t.next(c)).hide();if(t.removeAttr("aria-invalid"),!s){n=r._extractMessage(t,o.key),r._errors[u]=n;var f=e(a({message:i(n)}));r._decorateMessageContainer(f,u),p.replaceWith(f).length||f.insertAfter(t),f.show(),t.attr("aria-invalid",!0)}return t.toggleClass(d,!s),s},_findMessageContainer:function(e){var t,n=a.ui.validator.messageLocators,i=this.element.find("."+l+"["+a.attr("for")+"="+e.replace(y,"\\$1")+"]");for(t in n)i=i.add(n[t].locate(this.element,e));return i},_decorateMessageContainer:function(e,t){var n,i=a.ui.validator.messageLocators;e.addClass(l).attr(a.attr("for"),t||"");for(n in i)i[n].decorate(e,t);e.attr("role","alert")},_extractMessage:function(t,n){var i=this,r=i.options.messages[n],o=t.attr(m);return r=e.isFunction(r)?r(t):r,a.format(t.attr(a.attr(n+"-msg"))||t.attr("validationMessage")||t.attr("title")||r||"",o,t.attr(n))},_checkValidity:function(e){var t,n=this.options.rules;for(t in n)if(!n[t](e))return{valid:!1,key:t};return{valid:!0}},errors:function(){var e,t=[],n=this._errors;for(e in n)t.push(n[e]);return t}});a.ui.plugin(x)}(window.kendo.jQuery),function(e){function t(t){t.preventDefault();var n=e(t.currentTarget),i=n.closest(".k-widget").parent();i[0]||(i=n.parent()),i.trigger(e.Event(t.type,{target:n}))}function n(e,t){var n=e.x.location,i=e.y.location,r=t.x.location,a=t.y.location,o=n-r,s=i-a;return{center:{x:(n+r)/2,y:(i+a)/2},distance:Math.sqrt(o*o+s*s)}}function i(e){var t,n,i,r=[],o=e.originalEvent,s=0;if(e.api)r.push({id:2,event:e,target:e.target,location:e});else if(e.type.match(/touch/))for(n=o?o.changedTouches:[],t=n.length;t>s;s++)i=n[s],r.push({location:i,event:e,target:i.target,id:i.identifier});else a.pointers?r.push({location:o,event:e,target:e.target,id:o.pointerId}):r.push({id:1,event:e,target:e.target,location:e});return r}var r=window.kendo,a=r.support,o=a.pointers,s=window.document,l=e(s.documentElement),d=r.Class,c=r.Observable,u=e.now,p=e.extend,f=a.mobileOS,h=f&&f.android,m="press",g="start",v="move",_="end",k="cancel",b="tap",w="gesturestart",y="gesturechange",x="gestureend",C="gesturetap",T=d.extend({init:function(e,t){var n=this;n.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=u()},move:function(e){var t=this,n=e["page"+t.axis],i=u(),r=i-t.timeStamp||1;(n||!h)&&(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/r,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e["page"+n],t.client=e["client"+n],t.screen=e["screen"+n]}}),S=d.extend({init:function(e,t,n){var i=this;p(i,{x:new T("X",n.location),y:new T("Y",n.location),userEvents:e,target:t,currentTarget:n.currentTarget,id:n.id,_moved:!1,_finished:!1}),i._trigger(m,n)},move:function(e){var t=this;if(!t._finished){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(F.current&&F.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(v,e)}},end:function(e){var t=this;t.endTime=u(),t._finished||(t._moved?t._trigger(_,e):t._trigger(b,e),t.dispose())},dispose:function(){var t=this,n=t.userEvents,i=n.touches;t._finished=!0,i.splice(e.inArray(t,i),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){this.startTime=u(),this._moved=!0,this._trigger(g,e)},_trigger:function(e,t){var n=this,i=t.event,r={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,r)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return this.userEvents.threshold>=Math.sqrt(e*e+t*t)}}),F=c.extend({init:function(n,i){var s,d=this;if(i=i||{},s=d.filter=i.filter,d.threshold=i.threshold||0,d.touches=[],d._maxTouches=i.multiTouch?2:1,n=e(n).handler(d),c.fn.init.call(d),p(d,{element:n,surface:i.global?l:i.surface||n,stopPropagation:i.stopPropagation,pressed:!1}),d.surface.handler(d).on("move","_move").on("up cancel","_end"),n.on("down",s,"_start"),o&&n.css("-ms-touch-action","pinch-zoom double-tap-zoom"),i.preventDragEvent&&n.on("dragstart",r.preventDefault),i.allowSelection||n.on("mousedown selectstart",s,t),a.eventCapture)for(var u=r.eventMap.up.split(" "),f=0,h=u.length,T=d.surface[0],S=function(e){d._isMoved()&&e.preventDefault()};h>f;f++)T.addEventListener(u[f],S,!0);d.bind([m,b,g,v,_,k,w,y,x,C],i)},destroy:function(){this.element.kendoDestroy(),this.surface.kendoDestroy(),this._disposeAll()},capture:function(){F.current=this},cancel:function(){this._disposeAll(),this.trigger(k)},notify:function(t,i){var r=this,a=r.touches;if(this._isMultiTouch()){switch(t){case v:t=y;break;case _:t=x;break;case b:t=C}e.extend(i,{touches:a},n(a[0],a[1]))}return this.trigger(t,i)},press:function(e,t,n){this._apiCall("_start",e,t,n)},move:function(e,t){this._apiCall("_move",e,t)},end:function(e,t){this._apiCall("_end",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){e.each(this.touches,function(){this.dispose()})},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_isPressed:function(){return this.touches.length},_start:function(t){var n,r,a=this,o=0,s=a.filter,l=i(t),d=l.length;if(!a._maxTouchesReached())for(F.current=null,a.currentTarget=t.currentTarget,a.stopPropagation&&t.stopPropagation();d>o&&!a._maxTouchesReached();o++)r=l[o],n=e(r.target),n=s?n.is(s)?n:n.closest(s):a.element,n.length&&(a.touches.push(new S(a,n,r)),a._isMultiTouch()&&a.notify("gesturestart",{}))},_move:function(e){this._eachTouch("move",e)},_end:function(e){this._eachTouch("end",e)},_eachTouch:function(e,t){var n,r,a,o,s=this,l={},d=i(t),c=s.touches;for(n=0;c.length>n;n++)r=c[n],l[r.id]=r;for(n=0;d.length>n;n++)a=d[n],o=l[a.id],o&&o[e](a)},_apiCall:function(t,n,i,r){this[t]({api:!0,pageX:n,pageY:i,target:r||this.element,stopPropagation:e.noop,preventDefault:e.noop})}});r.getTouches=i,r.touchDelta=n,r.UserEvents=F}(window.kendo.jQuery),function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e){return T?p.elementFromPoint(e.x.screen,e.y.screen):p.elementFromPoint(e.x.client,e.y.client)}function r(e,t){return parseInt(e.css(t),10)||0}function a(e,t){return Math.min(Math.max(e,t.min),t.max)}function o(e,t){var n=e.offset(),i=n.left+r(e,"borderLeftWidth")+r(e,"paddingLeft"),a=n.top+r(e,"borderTopWidth")+r(e,"paddingTop"),o=i+e.width()-t.outerWidth(!0),s=a+e.height()-t.outerHeight(!0);return{x:{min:i,max:o},y:{min:a,max:s}}}function s(e,n,i){for(var r,a,o=0,s=n&&n.length,l=i&&i.length;e&&e.parentNode;){for(o=0;s>o;o++)if(r=n[o],r.element[0]===e)return{target:r,targetElement:e};for(o=0;l>o;o++)if(a=i[o],u.matchesSelector.call(e,a.options.filter))return{target:a,targetElement:e};e=e.parentNode}return t}var l,d,c=window.kendo,u=c.support,p=window.document,f=c.Class,h=c.ui.Widget,m=c.Observable,g=c.UserEvents,v=e.proxy,_=e.extend,k=c.getOffset,b={},w={},y={},x=u.mobileOS,C=x&&x.android,T=C&&"chrome"==x.browser,S="keyup",F="change",D="dragstart",E="drag",A="dragend",N="dragcancel",I="dragenter",R="dragleave",H="drop",z=m.extend({init:function(t,n){var i=this,r=t[0];i.capture=!1,e.each(c.eventMap.down.split(" "),function(){r.addEventListener(this,v(i._press,i),!0)}),e.each(c.eventMap.up.split(" "),function(){r.addEventListener(this,v(i._release,i),!0)}),m.fn.init.call(i),i.bind(["press","release"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(e){var t=this;t.trigger("press"),t.capture&&e.preventDefault()},_release:function(e){var t=this;t.trigger("release"),t.capture&&(e.preventDefault(),t.cancelCapture())}}),O=m.extend({init:function(t){var n=this;m.fn.init.call(n),n.forcedEnabled=!1,e.extend(n,t),n.scale=1,n.max=0,n.horizontal?(n.measure="width",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="height",n.scrollSize="scrollHeight",n.axis="y")},outOfBounds:function(e){return e>this.max||this.min>e},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[this.measure]()},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(e){this.scale=e},update:function(e){var t=this,n=t.getTotal(),i=n*t.scale,r=t.getSize();t.size=r,t.total=i,t.min=Math.min(t.max,t.size-i),t.minScale=t.size/n,t.enabled=t.forcedEnabled||i>r,e||t.trigger(F,t)}}),M=m.extend({init:function(e){var t=this,n=v(t.refresh,t);m.fn.init.call(t),t.x=new O(_({horizontal:!0},e)),t.y=new O(_({horizontal:!1},e)),t.forcedMinScale=e.minScale,t.bind(F,e),c.onResize(n)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.max(e.x.minScale,e.y.minScale),e.trigger(F)}}),P=m.extend({init:function(e){var t=this;_(t,e),m.fn.init.call(t)},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,r=t.movable,a=r[i]+e;n.enabled&&((n.min>a&&0>e||a>n.max&&e>0)&&(e*=t.resistance),r.translateAxis(i,e),t.trigger(F,t))}}),B=f.extend({init:function(e){var t,n,i,r,a=this;_(a,{elastic:!0},e),i=a.elastic?.5:0,r=a.movable,a.x=t=new P({axis:"x",dimension:a.dimensions.x,resistance:i,movable:r}),a.y=n=new P({axis:"y",dimension:a.dimensions.y,resistance:i,movable:r}),a.userEvents.bind(["move","end","gesturestart","gesturechange"],{gesturestart:function(e){a.gesture=e},gesturechange:function(e){var i,o=a.gesture,s=o.center,l=e.center,d=e.distance/o.distance,c=a.dimensions.minScale;c>=r.scale&&1>d&&(d+=.8*(1-d)),i={x:(r.x-s.x)*d+l.x-r.x,y:(r.y-s.y)*d+l.y-r.y},r.scaleWith(d),t.dragMove(i.x),n.dragMove(i.y),a.dimensions.rescale(r.scale),a.gesture=e},move:function(e){t.dimension.enabled||n.dimension.enabled?(t.dragMove(e.x.delta),n.dragMove(e.y.delta),e.preventDefault()):e.touch.skip()},end:function(e){e.preventDefault()}})}}),L=u.transitions.prefix+"Transform",U=Math.round;d=u.hasHW3D?function(e,t,n){return"translate3d("+U(e)+"px,"+U(t)+"px,0) scale("+n+")"}:function(e,t,n){return"translate("+U(e)+"px,"+U(t)+"px) scale("+n+")"};var W=m.extend({init:function(t){var n=this;m.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(d(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){_(this,e),this.refresh()},refresh:function(){var e=this,t=d(e.x,e.y,e.scale);t!=e.coordinates&&(e.element[0].style[L]=t,e._saveCoordinates(t),e.trigger(F))},_saveCoordinates:function(e){this.coordinates=e}}),q=h.extend({init:function(e,t){var n=this;h.fn.init.call(n,e,t);var i=n.options.group;i in w?w[i].push(n):w[i]=[n]},events:[I,R,H],options:{name:"DropTarget",group:"default"},destroy:function(){var e,t=this.options.group,n=w[t];if(n.length>1){for(h.fn.destroy.call(this),e=0;n.length>e;e++)if(n[e]==this){n.splice(e,1);break}}else q.destroyGroup(t)},_trigger:function(e,n){var i=this,r=b[i.options.group];return r?i.trigger(e,_({},n.event,{draggable:r,dropTarget:n.dropTarget})):t},_over:function(e){this._trigger(I,e)},_out:function(e){this._trigger(R,e)},_drop:function(e){var t=this,n=b[t.options.group];n&&(n.dropped=!t._trigger(H,e))}});q.destroyGroup=function(e){var t,n=w[e];if(n){for(t=0;n.length>t;t++)h.fn.destroy.call(n[t]);n.length=0,delete w[e]}},q._cache=w;var V=q.extend({init:function(e,t){var n=this;h.fn.init.call(n,e,t);var i=n.options.group;i in y?y[i].push(n):y[i]=[n]},options:{name:"DropTargetArea",group:"default",filter:null}}),j=h.extend({init:function(e,t){var n=this;h.fn.init.call(n,e,t),n.userEvents=new g(n.element,{global:!0,stopPropagation:!0,filter:n.options.filter,threshold:n.options.distance,start:v(n._start,n),move:v(n._drag,n),end:v(n._end,n),cancel:v(n._cancel,n)}),n._afterEndHandler=v(n._afterEnd,n),n.captureEscape=function(e){e.keyCode===c.keys.ESC&&(n._trigger(N,{event:e}),n.userEvents.cancel())}},events:[D,E,A,N],options:{name:"Draggable",distance:5,group:"default",cursorOffset:null,axis:null,container:null,dropped:!1},_updateHint:function(t){var n,i=this,r=i.options,o=i.boundaries,s=r.axis,l=i.options.cursorOffset;l?n={left:t.x.location+l.left,top:t.y.location+l.top}:(i.hintOffset.left+=t.x.delta,i.hintOffset.top+=t.y.delta,n=e.extend({},i.hintOffset)),o&&(n.top=a(n.top,o.y),n.left=a(n.left,o.x)),"x"===s?delete n.top:"y"===s&&delete n.left,i.hint.css(n)},_start:function(t){var n=this,i=n.options,r=i.container,a=i.hint;if(n.currentTarget=t.target,n.currentTargetOffset=k(n.currentTarget),a){n.hint=e.isFunction(a)?e(a(n.currentTarget)):a;var s=k(n.currentTarget);n.hintOffset=s,n.hint.css({position:"absolute",zIndex:2e4,left:s.left,top:s.top}).appendTo(p.body)}b[i.group]=n,n.dropped=!1,r&&(n.boundaries=o(r,n.hint)),n._trigger(D,t)&&(n.userEvents.cancel(),n._afterEnd()),e(p).on(S,n.captureEscape)},_drag:function(n){var i=this;n.preventDefault(),i._withDropTarget(n,function(i,r){if(!i)return l&&(l._trigger(R,_(n,{dropTarget:e(l.targetElement)})),l=null),t;if(l){if(r===l.targetElement)return;l._trigger(R,_(n,{dropTarget:e(l.targetElement)}))}i._trigger(I,_(n,{dropTarget:e(r)})),l=_(i,{targetElement:r})}),i._trigger(E,n),i.hint&&i._updateHint(n)},_end:function(t){var n=this;n._withDropTarget(t,function(n,i){n&&(n._drop(_({},t,{dropTarget:e(i)})),l=null)}),n._trigger(A,t),n._cancel(t.event)},_cancel:function(){var e=this;e.hint&&!e.dropped?e.hint.animate(e.currentTargetOffset,"fast",e._afterEndHandler):e._afterEnd()},_trigger:function(e,t){var n=this;return n.trigger(e,_({},t.event,{x:t.x,y:t.y,currentTarget:n.currentTarget,dropTarget:t.dropTarget}))},_withDropTarget:function(e,t){var r,a,o=this,l=o.options,d=w[l.group],c=y[l.group];(d&&d.length||c&&c.length)&&(r=i(e),o.hint&&n(o.hint[0],r)&&(o.hint.hide(),r=i(e),r||(r=i(e)),o.hint.show()),a=s(r,d,c),a?t(a.target,a.targetElement):t())},destroy:function(){var e=this;h.fn.destroy.call(e),e._afterEnd(),e.userEvents.destroy()},_afterEnd:function(){var t=this;t.hint&&t.hint.remove(),delete b[t.options.group],t.trigger("destroy"),e(p).off(S,t.captureEscape)}});c.ui.plugin(q),c.ui.plugin(V),c.ui.plugin(j),c.TapCapture=z,c.containerBoundaries=o,_(c.ui,{Pane:B,PaneDimensions:M,Movable:W})}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.mobile,i=t.fx,r=n.ui,a=e.proxy,o=e.extend,s=r.Widget,l=t.Class,d=t.ui.Movable,c=t.ui.Pane,u=t.ui.PaneDimensions,p=i.Transition,f=i.Animation,h=Math.abs,m=500,g=.7,v=.93,_=.5,k="km-scroller-release",b="km-scroller-refresh",w="pull",y="change",x="resize",C="scroll",T=f.extend({init:function(e){var t=this;f.fn.init.call(t),o(t,e),t.userEvents.bind("gestureend",a(t.start,t)),t.tapCapture.bind("press",a(t.cancel,t))},done:function(){return.01>this.dimensions.minScale-this.movable.scale},tick:function(){var e=this.movable;e.scaleWith(1.1),this.dimensions.rescale(e.scale)},onEnd:function(){var e=this.movable;e.scaleTo(this.dimensions.minScale),this.dimensions.rescale(e.scale)}}),S=f.extend({init:function(e){var t=this;f.fn.init.call(t),o(t,e,{transition:new p({axis:e.axis,movable:e.movable,onEnd:function(){t._end()}})}),t.tapCapture.bind("press",function(){t.cancel()}),t.userEvents.bind("end",a(t.start,t)),t.userEvents.bind("gestureend",a(t.start,t)),t.userEvents.bind("tap",a(t.onEnd,t))},onCancel:function(){this.transition.cancel()},freeze:function(e){var t=this;t.cancel(),t._moveTo(e)},onEnd:function(){var e=this;e._outOfBounds()?e._snapBack():e._end()},done:function(){return 1>h(this.velocity)},start:function(e){var t=this;t.dimension.enabled&&(t._outOfBounds()?t._snapBack():(t.velocity=16*e.touch[t.axis].velocity,t.velocity&&(t.tapCapture.captureNext(),f.fn.start.call(t))))},tick:function(){var e=this,t=e.dimension,n=e._outOfBounds()?_:v,i=e.velocity*=n,r=e.movable[e.axis]+i;!e.elastic&&t.outOfBounds(r)&&(r=Math.max(Math.min(r,t.max),t.min),e.velocity=0),e.movable.moveAxis(e.axis,r)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},_snapBack:function(){var e=this,t=e.dimension,n=e.movable[e.axis]>t.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:m,ease:p.easeOutExpo})}}),F=l.extend({init:function(t){var n=this,i="x"===t.axis,r=e('<div class="km-touch-scrollbar km-'+(i?"horizontal":"vertical")+'-scrollbar" />');o(n,t,{element:r,elementSize:0,movable:new d(r),scrollMovable:t.movable,size:i?"width":"height"}),n.scrollMovable.bind(y,a(n._move,n)),n.container.append(r)},_move:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,r=e.scrollMovable,a=i/n.total,o=Math.round(-r[t]*a),s=Math.round(i*a);o+s>i?s=i-o:0>o&&(s+=o,o=0),e.elementSize!=s&&(e.element.css(e.size,s+"px"),e.elementSize=s),e.movable.moveAxis(t,o)},show:function(){this.element.css({opacity:g,visibility:"visible"})},hide:function(){this.element.css({opacity:0})}}),D=s.extend({init:function(n,i){var r=this;s.fn.init.call(r,n,i),n=r.element,n.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>');var a=n.children().eq(1),l=new t.TapCapture(n),p=new d(a),f=new u({element:a,container:n,forcedEnabled:r.options.zoom,change:function(){r.trigger(x)}}),m=new t.UserEvents(n,{allowSelection:!0,preventDragEvent:!0,multiTouch:r.options.zoom,start:function(e){f.refresh();var t=h(e.x.velocity),n=h(e.y.velocity);f.x.enabled&&2*t>=n||f.y.enabled&&2*n>=t?m.capture():m.cancel()}}),g=new c({movable:p,dimensions:f,userEvents:m,elastic:r.options.elastic}),v=new T({movable:p,dimensions:f,userEvents:m,tapCapture:l});p.bind(y,function(){r.scrollTop=-p.y,r.scrollLeft=-p.x,r.trigger(C,{scrollTop:r.scrollTop,scrollLeft:r.scrollLeft})}),o(r,{movable:p,dimensions:f,zoomSnapBack:v,userEvents:m,pane:g,tapCapture:l,pulled:!1,scrollElement:a,fixedContainer:n.children().first()}),r._initAxis("x"),r._initAxis("y"),f.refresh(),r.options.pullToRefresh&&r._initPullToRefresh(),t.onResize(e.proxy(r.reset,r))},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",zoom:!1,pullOffset:140,elastic:!0,pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},events:[w,C,x],setOptions:function(e){var t=this;s.fn.setOptions.call(t,e),e.pullToRefresh&&t._initPullToRefresh()},reset:function(){this.movable.moveTo({x:0,y:0})},scrollTo:function(e,t){this.movable.moveTo({x:e,y:t})},pullHandled:function(){var e=this;e.refreshHint.removeClass(b),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd()},destroy:function(){s.fn.destroy.call(this),this.userEvents.destroy()},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=t.template(e.options.pullTemplate),e.releaseTemplate=t.template(e.options.releaseTemplate),e.refreshTemplate=t.template(e.options.refreshTemplate),e.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-template">'+e.pullTemplate({})+"</span></span>"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(".km-template"),e.pane.y.bind("change",a(e._paneChange,e)),e.userEvents.bind("end",a(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(k).addClass(b),e.hintContainer.html(e.refreshTemplate({})),e.trigger("pull"),e.yinertia.freeze(e.options.pullOffset/2))},_paneChange:function(){var e=this;e.movable.y/_>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(b).addClass(k),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(k),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t=this,n=t.movable,i=t.dimensions[e],r=t.tapCapture,a=new F({axis:e,movable:n,dimension:i,container:t.element}),o=new S({axis:e,movable:n,tapCapture:r,userEvents:t.userEvents,dimension:i,elastic:t.options.elastic,end:function(){a.hide()}});t[e+"inertia"]=o,t.pane[e].bind(y,function(){a.show()})}});r.plugin(D)}(window.kendo.jQuery),function(e){function t(e){return e.position().top+3}var n=window.kendo,i=n.ui.Widget,r=e.proxy,a=".kendoGroupable",o=n.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-si-arrow-${(data.dir || "asc") == "asc" ? "n" : "s"}">(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})</span>${data.title ? data.title: data.field}</a><a class="k-button k-button-icon k-button-bare"><span class="k-icon k-group-delete"></span></a></div>',{useWithBlock:!1}),s=function(t){return e('<div class="k-header k-drag-clue" />').css({width:t.width(),paddingLeft:t.css("paddingLeft"),paddingRight:t.css("paddingRight"),lineHeight:t.height()+"px",paddingTop:t.css("paddingTop"),paddingBottom:t.css("paddingBottom")}).html(t.attr(n.attr("title"))||t.attr(n.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')},l=e('<div class="k-grouping-dropclue"/>'),d=/(\[|\]|\$|\.|\:|\+)/g,c=i.extend({init:function(o,d){var c,u,p=this,f=n.guid(),h=r(p._intializePositions,p),m=p._dropCuePositions=[];i.fn.init.call(p,o,d),u=p.options.draggable||new n.ui.Draggable(p.element,{filter:p.options.filter,hint:s,group:f}),c=p.groupContainer=e(p.options.groupContainer,p.element).kendoDropTarget({group:u.options.group,dragenter:function(e){p._canDrag(e.draggable.currentTarget)&&(e.draggable.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add"),l.css({top:t(c),left:0}).appendTo(c))},dragleave:function(e){e.draggable.hint.find(".k-drag-status").removeClass("k-add").addClass("k-denied"),l.remove()},drop:function(t){var i,r=t.draggable.currentTarget,a=r.attr(n.attr("field")),o=r.attr(n.attr("title")),s=p.indicator(a),d=p._dropCuePositions,c=d[d.length-1];(r.hasClass("k-group-indicator")||p._canDrag(r))&&(c?(i=p._dropCuePosition(l.offset().left+parseInt(c.element.css("marginLeft"),10)+parseInt(c.element.css("marginRight"),10)),i&&p._canDrop(e(s),i.element,i.left)&&(i.before?i.element.before(s||p.buildIndicator(a,o)):i.element.after(s||p.buildIndicator(a,o)),p._change())):(p.groupContainer.append(p.buildIndicator(a,o)),p._change()))
|
15
|
+
}}).kendoDraggable({filter:"div.k-group-indicator",hint:s,group:u.options.group,dragcancel:r(p._dragCancel,p),dragstart:function(e){var n=e.currentTarget,i=parseInt(n.css("marginLeft"),10),r=n.position().left-i;h(),l.css({top:t(c),left:r}).appendTo(c),this.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add")},dragend:function(){p._dragEnd(this)},drag:r(p._drag,p)}).on("click"+a,".k-button",function(t){t.preventDefault(),p._removeIndicator(e(this).parent())}).on("click"+a,".k-link",function(t){var i=e(this).parent(),r=p.buildIndicator(i.attr(n.attr("field")),i.attr(n.attr("title")),"asc"==i.attr(n.attr("dir"))?"desc":"asc");i.before(r).remove(),p._change(),t.preventDefault()}),u.bind(["dragend","dragcancel","dragstart","drag"],{dragend:function(){p._dragEnd(this)},dragcancel:r(p._dragCancel,p),dragstart:function(e){var t,n,i;return p.options.allowDrag||p._canDrag(e.currentTarget)?(h(),m.length?(t=m[m.length-1].element,n=parseInt(t.css("marginRight"),10),i=t.position().left+t.outerWidth()+n):i=0,undefined):(e.preventDefault(),undefined)},drag:r(p._drag,p)}),p.dataSource=p.options.dataSource,p.dataSource&&(p._refreshHandler=r(p.refresh,p),p.dataSource.bind("change",p._refreshHandler))},refresh:function(){var t=this,i=t.dataSource;t.groupContainer.empty().append(e.map(i.group()||[],function(e){var i=e.field.replace(d,"\\$1"),r=t.element.find(t.options.filter).filter("["+n.attr("field")+"="+i+"]");return t.buildIndicator(e.field,r.attr(n.attr("title")),e.dir)}).join("")),t._invalidateGroupContainer()},destroy:function(){var e=this;i.fn.destroy.call(e),e.groupContainer.off(a).kendoDraggable("destroy"),e.dataSource&&e._refreshHandler&&e.dataSource.unbind("change",e._refreshHandler)},options:{name:"Groupable",filter:"th",messages:{empty:"Drag a column header and drop it here to group by that column"}},indicator:function(t){var i=e(".k-group-indicator",this.groupContainer);return e.grep(i,function(i){return e(i).attr(n.attr("field"))===t})[0]},buildIndicator:function(e,t,i){return o({field:e,dir:i,title:t,ns:n.ns})},descriptors:function(){var t,i,r,a,o,s=this,l=e(".k-group-indicator",s.groupContainer);return t=s.element.find(s.options.filter).map(function(){var t=e(this),r=t.attr(n.attr("aggregates")),s=t.attr(n.attr("field"));if(r&&""!==r)for(i=r.split(","),r=[],a=0,o=i.length;o>a;a++)r.push({field:s,aggregate:i[a]});return r}).toArray(),e.map(l,function(i){return i=e(i),r=i.attr(n.attr("field")),{field:r,dir:i.attr(n.attr("dir")),aggregates:t||[]}})},_removeIndicator:function(e){var t=this;e.remove(),t._invalidateGroupContainer(),t._change()},_change:function(){var e=this;e.dataSource&&e.dataSource.group(e.descriptors())},_dropCuePosition:function(t){var n=this._dropCuePositions;if(l.is(":visible")&&0!==n.length){t=Math.ceil(t);var i=n[n.length-1],r=i.right,a=parseInt(i.element.css("marginLeft"),10),o=parseInt(i.element.css("marginRight"),10);return t>=r?t={left:i.element.position().left+i.element.outerWidth()+o,element:i.element,before:!1}:(t=e.grep(n,function(e){return t>=e.left&&e.right>=t})[0],t&&(t={left:t.element.position().left-a,element:t.element,before:!0})),t}},_drag:function(e){var t=n.touchLocation(e),i=this._dropCuePosition(t.x);i&&l.css({left:i.left})},_canDrag:function(e){var t=e.attr(n.attr("field"));return"false"!=e.attr(n.attr("groupable"))&&t&&(e.hasClass("k-group-indicator")||!this.indicator(t))},_canDrop:function(e,t,n){var i=e.next();return e[0]!==t[0]&&(!i[0]||t[0]!==i[0]||n>i.position().left)},_dragEnd:function(t){var i=this,r=t.currentTarget.attr(n.attr("field")),a=i.indicator(r);t!==i.options.draggable&&!t.dropped&&a&&i._removeIndicator(e(a)),i._dragCancel()},_dragCancel:function(){l.remove(),this._dropCuePositions=[]},_intializePositions:function(){var t,n=this,i=e(".k-group-indicator",n.groupContainer);n._dropCuePositions=e.map(i,function(n){return n=e(n),t=n.offset().left,{left:parseInt(t,10),right:parseInt(t+n.outerWidth(),10),element:n}})},_invalidateGroupContainer:function(){var e=this.groupContainer;e.is(":empty")&&e.html(this.options.messages.empty)}});n.ui.plugin(c)}(window.kendo.jQuery),function(e){function t(t,n){t=e(t),n?t.find(".k-drag-status").removeClass("k-add").addClass("k-denied"):t.find(".k-drag-status").removeClass("k-denied").addClass("k-add")}var n=window.kendo,i=n.ui.Widget,r="change",a="k-reorderable",o=i.extend({init:function(o,s){var l,d=this,c=n.guid()+"-reorderable";i.fn.init.call(d,o,s),o=d.element.addClass(a),s=d.options,d.draggable=l=s.draggable||new n.ui.Draggable(o,{group:c,filter:s.filter,hint:s.hint}),d.reorderDropCue=e('<div class="k-reorder-cue"><div class="k-icon k-i-arrow-s"></div><div class="k-icon k-i-arrow-n"></div></div>'),o.find(l.options.filter).kendoDropTarget({group:l.options.group,dragenter:function(e){if(d._draggable){var n=this.element,i=n[0]===d._draggable[0];t(e.draggable.hint,i),i||d.reorderDropCue.css({height:n.outerHeight(),top:o.offset().top,left:n.offset().left+(n.index()>d._draggable.index()?n.outerWidth():0)}).appendTo(document.body)}},dragleave:function(e){t(e.draggable.hint,!0),d.reorderDropCue.remove()},drop:function(){if(d._draggable){var e,t=d._draggable[0],n=this.element[0];t!==n&&(e=o.find(l.options.filter),d.trigger(r,{element:d._draggable,oldIndex:e.index(t),newIndex:e.index(n)}))}}}),l.bind(["dragcancel","dragend","dragstart"],{dragcancel:function(){d.reorderDropCue.remove(),d._draggable=null},dragend:function(){d.reorderDropCue.remove(),d._draggable=null},dragstart:function(e){d._draggable=e.currentTarget}})},options:{name:"Reorderable",filter:"*"},events:[r],destroy:function(){var e=this;i.fn.destroy.call(e),e.draggable&&e.draggable.destroy(),n.destroy(e.element)}});n.ui.plugin(o)}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=n.ui,r=i.Widget,a=e.proxy,o=e.isFunction,s=e.extend,l="horizontal",d="vertical",c="start",u="resize",p="resizeend",f=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n.orientation=n.options.orientation.toLowerCase()!=d?l:d,n._positionMouse=n.orientation==l?"x":"y",n._position=n.orientation==l?"left":"top",n._sizingDom=n.orientation==l?"outerWidth":"outerHeight",n.draggable=new i.Draggable(e,{distance:0,filter:t.handle,drag:a(n._resize,n),dragcancel:a(n._cancel,n),dragstart:a(n._start,n),dragend:a(n._stop,n)}),n.userEvents=n.draggable.userEvents},events:[u,p,c],options:{name:"Resizable",orientation:l},_max:function(e){var n=this,i=n.hint?n.hint[n._sizingDom]():0,r=n.options.max;return o(r)?r(e):r!==t?n._initialElementPosition+r-i:r},_min:function(e){var n=this,i=n.options.min;return o(i)?i(e):i!==t?n._initialElementPosition+i:i},_start:function(t){var n=this,i=n.options.hint,r=e(t.currentTarget);n._initialElementPosition=r.position()[n._position],n._initialMousePosition=t[n._positionMouse].startLocation,i&&(n.hint=o(i)?e(i(r)):i,n.hint.css({position:"absolute"}).css(n._position,n._initialElementPosition).appendTo(n.element)),n.trigger(c,t),n._maxPosition=n._max(t),n._minPosition=n._min(t),e(document.body).css("cursor",r.css("cursor"))},_resize:function(n){var i,r=this,a=(e(n.currentTarget),r._maxPosition),o=r._minPosition,l=r._initialElementPosition+(n[r._positionMouse].location-r._initialMousePosition);i=o!==t?Math.max(o,l):l,r.position=i=a!==t?Math.min(a,i):i,r.hint&&r.hint.toggleClass(r.options.invalidClass||"",i==a||i==o).css(r._position,i),r.resizing=!0,r.trigger(u,s(n,{position:i}))},_stop:function(t){var n=this;n.hint&&n.hint.remove(),n.resizing=!1,n.trigger(p,s(t,{position:n.position})),e(document.body).css("cursor","")},_cancel:function(e){var n=this;n.hint&&(n.position=t,n.hint.css(n._position,n._initialElementPosition),n._stop(e))},destroy:function(){var e=this;r.fn.destroy.call(e),e.draggable&&e.draggable.destroy()},press:function(e){if(e){var t=e.position(),n=this;n.userEvents.press(t.left,t.top,e[0]),n.targetPosition=t,n.target=e}},move:function(e){var n=this,i=n._position,r=n.targetPosition,a=n.position;a===t&&(a=r[i]),r[i]=a+e,n.userEvents.move(r.left,r.top)},end:function(){this.userEvents.end(),this.target=this.position=t}});n.ui.plugin(f)}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=e.proxy,r="data-dir",a="asc",o="single",s="data-field",l="desc",d=".kendoSortable",c=".k-link",u="aria-sort",p=n.ui.Widget,f=p.extend({init:function(e,t){var n,r=this;p.fn.init.call(r,e,t),r._refreshHandler=i(r.refresh,r),r.dataSource=r.options.dataSource.bind("change",r._refreshHandler),n=r.element.find(c),n[0]||(n=r.element.wrapInner('<a class="k-link" href="#"/>').find(c)),r.link=n,r.element.on("click"+d,i(r._click,r))},options:{name:"Sortable",mode:o,allowUnsort:!0},destroy:function(){var e=this;p.fn.destroy.call(e),e.element.off(d),e.dataSource.unbind("change",e._refreshHandler)},refresh:function(){var t,n,i,o,d=this,c=d.dataSource.sort()||[],p=d.element,f=p.attr(s);for(p.removeAttr(r),p.removeAttr(u),t=0,n=c.length;n>t;t++)i=c[t],f==i.field&&p.attr(r,i.dir);o=p.attr(r),p.find(".k-i-arrow-n,.k-i-arrow-s").remove(),o===a?(e('<span class="k-icon k-i-arrow-n" />').appendTo(d.link),p.attr(u,"ascending")):o===l&&(e('<span class="k-icon k-i-arrow-s" />').appendTo(d.link),p.attr(u,"descending"))},_click:function(e){var n,i,d=this,c=d.element,u=c.attr(s),p=c.attr(r),f=d.options,h=d.dataSource.sort()||[];if(p=p===a?l:p===l&&f.allowUnsort?t:a,f.mode===o)h=[{field:u,dir:p}];else if("multiple"===f.mode){for(n=0,i=h.length;i>n;n++)if(h[n].field===u){h.splice(n,1);break}h.push({field:u,dir:p})}e.preventDefault(),d.dataSource.sort(h)}});n.ui.plugin(f)}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.support.touch,i=t.ui.Widget,r=e.proxy,a=n?"touchend":"mouseup",o=n?"touchstart":"mousedown",s=n?"touchmove":"mousemove",l="k-state-selected",d="k-state-selecting",c="k-selectable",u="selectstart",p=e(document),f="change",h=".kendoSelectable",m="k-state-unselecting",g=!1;(function(e){(function(){e('<div class="parent"><span /></div>').on("click",">*",function(){g=!0}).find("span").click()})()})(e);var v=i.extend({init:function(t,n){var a=this;i.fn.init.call(a,t,n),a._marquee=e("<div class='k-marquee'></div>"),a._lastActive=null,a._moveDelegate=r(a._move,a),a._upDelegate=r(a._up,a),a.element.addClass(c),a.element.on(o+h,(g?"":"."+c+" ")+a.options.filter,r(a._down,a))},events:[f],options:{name:"Selectable",filter:">*",multiple:!1},_collide:function(e,t){var n=e.offset(),i={left:n.left,top:n.top,right:n.left+e.outerWidth(),bottom:n.top+e.outerHeight()};return!(i.left>t.right||t.left>i.right||i.top>t.bottom||t.top>i.bottom)},_position:function(e){var t,n=this._originalPosition,i=n.x,r=n.y,a=e.pageX,o=e.pageY;return i>a&&(t=a,a=i,i=t),r>o&&(t=o,o=r,r=t),{top:r,right:a,left:i,bottom:o}},_down:function(n){var i,r=this,o=n.ctrlKey,f=n.shiftKey,h=!r.options.multiple;r._downTarget=e(n.currentTarget),r._shiftPressed=f,r._downTarget.closest("."+c)[0]===r.element[0]&&(p.unbind(a,r._upDelegate).bind(a,r._upDelegate),r._originalPosition={x:n.pageX,y:n.pageY},!h&&e(n.target).is(":not(:input, a)")&&(p.unbind(s,r._moveDelegate).bind(s,r._moveDelegate).unbind(u,!1).bind(u,!1),t.support.touch||n.preventDefault()),h||(e("body").append(r._marquee),r._marquee.css({left:n.clientX+1,top:n.clientY+1,width:0,height:0})),i=r._downTarget.hasClass(l),(h||!o&&!f)&&r.element.find(r.options.filter+"."+l).not(r._downTarget).removeClass(l),o&&(r._lastActive=r._downTarget),i&&(o||f)?(r._downTarget.addClass(l),f||r._downTarget.addClass(m)):t.support.touch&&h||(r._downTarget.addClass(d),h&&r._downTarget.hasClass(l)&&r._downTarget.removeClass(d)))},_move:function(t){var n,i,r=this,a=r._position(t),o=t.ctrlKey;r._marquee.css({left:a.left,top:a.top,width:a.right-a.left,height:a.bottom-a.top}),r.element.find(r.options.filter).each(function(){n=e(this),i=r._collide(n,a),i?n.hasClass(l)?r._downTarget[0]!==n[0]&&o&&n.removeClass(l).addClass(m):n.hasClass(d)||n.hasClass(m)||n.addClass(d):n.hasClass(d)?n.removeClass(d):o&&n.hasClass(m)&&n.removeClass(m).addClass(l)})},_up:function(){var e=this,n=e.options,i=!n.multiple;p.unbind(u,!1).unbind(s,e._moveDelegate).unbind(a,e._upDelegate),i||e._marquee.remove(),t.support.touch&&i&&e._downTarget.addClass(d),i||e._shiftPressed!==!0?(e.element.find(n.filter+"."+m).removeClass(m).removeClass(l),e.value(e.element.find(n.filter+"."+d))):e.selectRange(e._firstSelectee(),e._downTarget),e._shiftPressed||(e._lastActive=e._downTarget),e._downTarget=null,e._shiftPressed=!1},value:function(e){var t=this,n=r(t._selectElement,t);return e?(e.each(function(){n(this)}),t.trigger(f,{}),undefined):t.element.find(t.options.filter+"."+l)},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter))},_selectElement:function(t){var n=e(t),i=this.trigger("select",{element:t});n.removeClass(d),i||(n.addClass(l),this.options.aria&&n.attr("aria-selected",!0))},clear:function(){var e=this;e.element.find(e.options.filter+"."+l).removeClass(l),e.options.aria&&e.element.children("[aria-selected=true]").attr("aria-selected",!1)},selectRange:function(t,n){var i,a=this,o=!1,s=r(a._selectElement,a);t=e(t)[0],n=e(n)[0],a.element.find(a.options.filter).each(function(){if(i=e(this),o)s(this),o=this!==n;else if(this===t)o=t!==n,s(this);else if(this===n){var r=t;t=n,n=r,o=!0,s(this)}else i.removeClass(l)}),a.trigger(f,{})},destroy:function(){var e=this;i.fn.destroy.call(e),e.element.off(h)}});t.ui.plugin(v)}(window.kendo.jQuery),function(e,t){function n(e,t,n,i){return e({idx:t,text:n,ns:d.ns,numeric:i})}function i(e,t){return y({className:e.substring(1),text:t})}function r(e,t,n,i){e.find(t).parent().attr(d.attr("page"),n).attr("tabindex",-1).toggleClass("k-state-disabled",i)}function a(e,t){r(e,f,1,1>=t)}function o(e,t){r(e,m,Math.max(1,t-1),1>=t)}function s(e,t,n){r(e,g,Math.min(n,t+1),t>=n)}function l(e,t,n){r(e,h,n,t>=n)}var d=window.kendo,c=d.ui,u=c.Widget,p=e.proxy,f=".k-i-seek-w",h=".k-i-seek-e",m=".k-i-arrow-w",g=".k-i-arrow-e",v="change",_=".kendoPager",k="click",b="keydown",w="disabled",y=d.template('<a href="\\#" title="#=text#" class="k-link"><span class="k-icon #= className #">#=text#</span></a>'),x=u.extend({init:function(t,n){var r,c,w=this;u.fn.init.call(w,t,n),n=w.options,w.dataSource=d.data.DataSource.create(n.dataSource),w.linkTemplate=d.template(w.options.linkTemplate),w.selectTemplate=d.template(w.options.selectTemplate),r=w.page(),c=w.totalPages(),w._refreshHandler=p(w.refresh,w),w.dataSource.bind(v,w._refreshHandler),n.previousNext&&(w.element.find(f).length||(w.element.append(i(f,n.messages.first)),a(w.element,r,c)),w.element.find(m).length||(w.element.append(i(m,n.messages.previous)),o(w.element,r,c))),n.numeric&&(w.list=w.element.find(".k-pager-numbers"),w.list.length||(w.list=e('<ul class="k-pager-numbers k-reset" />').appendTo(w.element))),n.input&&(w.element.find(".k-pager-input").length||w.element.append('<span class="k-pager-input k-label">'+n.messages.page+'<input class="k-textbox">'+d.format(n.messages.of,c)+"</span>"),w.element.on(b+_,".k-pager-input input",p(w._keydown,w))),n.previousNext&&(w.element.find(g).length||(w.element.append(i(g,n.messages.next)),s(w.element,r,c)),w.element.find(h).length||(w.element.append(i(h,n.messages.last)),l(w.element,r,c))),n.pageSizes&&(w.element.find(".k-pager-sizes").length||e('<span class="k-pager-sizes k-label"><select/>'+n.messages.itemsPerPage+"</span>").appendTo(w.element).find("select").html(e.map(e.isArray(n.pageSizes)?n.pageSizes:[5,10,20],function(e){return"<option>"+e+"</option>"}).join("")).end().appendTo(w.element),w.element.find(".k-pager-sizes select").val(w.pageSize()),d.ui.DropDownList&&w.element.find(".k-pager-sizes select").show().kendoDropDownList(),w.element.on(v+_,".k-pager-sizes select",p(w._change,w))),n.refresh&&(w.element.find(".k-pager-refresh").length||w.element.append('<a href="#" class="k-pager-refresh k-link" title="'+n.messages.refresh+'"><span class="k-icon k-i-refresh">'+n.messages.refresh+"</span></a>"),w.element.on("touchend"+_+" "+k+_,".k-pager-refresh",p(w._refreshClick,w))),n.info&&(w.element.find(".k-pager-info").length||w.element.append('<span class="k-pager-info k-label" />')),w.element.on("touchend"+_+" "+k+_,"a",p(w._click,w)).addClass("k-pager-wrap k-widget"),n.autoBind&&w.refresh(),d.notify(w)},destroy:function(){var e=this;u.fn.destroy.call(e),e.element.off(_),e.dataSource.unbind(v,e._refreshHandler)},events:[v],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',linkTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh"}},setDataSource:function(e){var t=this;t.dataSource.unbind(v,t._refreshHandler),t.dataSource=t.options.dataSource=e,e.bind(v,t._refreshHandler),t.options.autoBind&&e.fetch()},refresh:function(){var e,t,i,r=this,c=1,u="",p=r.page(),f=r.options,h=r.pageSize(),m=r.dataSource.total(),g=r.totalPages(),v=r.linkTemplate,_=f.buttonCount;if(f.numeric){for(p>_&&(i=p%_,c=0===i?p-_+1:p-i+1),t=Math.min(c+_-1,g),c>1&&(u+=n(v,c-1,"...",!1)),e=c;t>=e;e++)u+=n(e==p?r.selectTemplate:v,e,e,!0);g>t&&(u+=n(v,e,"...",!1)),""===u&&(u=r.selectTemplate({text:0})),r.list.html(u)}f.info&&(u=m>0?d.format(f.messages.display,(p-1)*h+1,Math.min(p*h,m),m):f.messages.empty,r.element.find(".k-pager-info").html(u)),f.input&&r.element.find(".k-pager-input").html(r.options.messages.page+'<input class="k-textbox">'+d.format(f.messages.of,g)).find("input").val(p).attr(w,1>m).toggleClass("k-state-disabled",1>m),f.previousNext&&(a(r.element,p,g),o(r.element,p,g),s(r.element,p,g),l(r.element,p,g)),f.pageSizes&&r.element.find(".k-pager-sizes select").val(h)},_keydown:function(e){if(e.keyCode===d.keys.ENTER){var t=this.element.find(".k-pager-input").find("input"),n=parseInt(t.val(),10);(isNaN(n)||1>n||n>this.totalPages())&&(n=this.page()),t.val(n),this.page(n)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var t=parseInt(e.currentTarget.value,10);isNaN(t)||this.dataSource.pageSize(t)},_click:function(t){var n=e(t.currentTarget);t.preventDefault(),n.is(".k-state-disabled")||this.page(n.attr(d.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e===t?this.dataSource.total()>0?this.dataSource.page():0:(this.dataSource.page(e),this.trigger(v,{index:e}),t)}});c.plugin(x)}(window.kendo.jQuery),function(e){function t(t,n){return t===n||e.contains(t,n)}var n=window.kendo,i=n.ui,r=i.Widget,a=n.support,o=n.getOffset,s=n.support.browser,l=s.msie&&9>s.version,d="open",c="close",u="deactivate",p="activate",f="center",h="left",m="right",g="top",v="bottom",_="absolute",k="hidden",b="body",w="location",y="position",x="visible",C="fitted",T="effects",S="k-state-active",F="k-state-border",D=".k-picker-wrap, .k-dropdown-wrap, .k-link",E="down",A=e(document),N=e(window),I=e(document.documentElement),R="resize scroll",H=a.transitions.css,z=H+"transform",O=e.extend,M=".kendoPopup",P=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],B=r.extend({init:function(t,i){var a,o=this;i=i||{},i.isRtl&&(i.origin=i.origin||v+" "+m,i.position=i.position||g+" "+m),r.fn.init.call(o,t,i),t=o.element,i=o.options,o.collisions=i.collision?i.collision.split(" "):[],1===o.collisions.length&&o.collisions.push(o.collisions[0]),a=e(o.options.anchor).closest(".k-popup,.k-group"),i.appendTo=e(e(i.appendTo)[0]||a[0]||b),o.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!i.isRtl).css({position:_}).appendTo(i.appendTo).on("mouseenter"+M,function(){o._hovered=!0}).on("mouseleave"+M,function(){o._hovered=!1}),o.wrapper=e(),i.animation===!1&&(i.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),O(i.animation.open,{complete:function(){o.wrapper.css({overflow:x}),o.trigger(p)}}),O(i.animation.close,{complete:function(){o.wrapper.hide();var r,a,s=o.wrapper.data(w),l=e(i.anchor);s&&o.wrapper.css(s),i.anchor!=b&&(r=l.hasClass(F+"-down")?"down":"up",a=F+"-"+r,l.removeClass(a).children(D).removeClass(S).removeClass(a),t.removeClass(F+"-"+n.directions[r].reverse)),o._closing=!1,o.trigger(u)}}),o._mousedownProxy=function(e){o._mousedown(e)},o._currentWidth=A.width(),o._resizeProxy=function(e){o._resize(e)},i.toggleTarget&&e(i.toggleTarget).on(i.toggleEvent+M,e.proxy(o.toggle,o))},events:[d,p,c,u],options:{name:"Popup",toggleEvent:"click",origin:v+" "+h,position:g+" "+h,anchor:b,collision:"flip fit",viewport:window,animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}}},destroy:function(){var t,i=this,a=i.options,o=i.element.off(M);r.fn.destroy.call(i),a.toggleTarget&&e(a.toggleTarget).off(M),I.unbind(E,i._mousedownProxy),N.unbind(R,i._resizeProxy),a.appendTo[0]===document.body&&(t=o.parent(".k-animation-container"),t[0]?t.remove():o.remove()),n.destroy(i.element.children())},open:function(t,i){var r,o,s=this,l={isFixed:!isNaN(parseInt(i,10)),x:t,y:i},c=s.element,u=s.options,p="down",f=e(u.anchor);if(!s.visible()){if(c.css(n.getComputedStyles(f[0],P)),c.data("animating")||s.trigger(d))return;if(I.unbind(E,s._mousedownProxy).bind(E,s._mousedownProxy),a.mobileOS.ios||N.unbind(R,s._resizeProxy).bind(R,s._resizeProxy),s.wrapper=o=n.wrap(c).css({overflow:k,display:"block",position:_}),a.mobileOS.android&&o.add(f).css(z,"translatez(0)"),o.css(y),e(u.appendTo)[0]==document.body&&o.css(g,"-10000px"),r=O(!0,{},u.animation.open),s.flipped=s._position(l),r.effects=n.parseEffects(r.effects,s.flipped),p=r.effects.slideIn?r.effects.slideIn.direction:p,u.anchor!=b){var h=F+"-"+p;c.addClass(F+"-"+n.directions[p].reverse),f.addClass(h).children(D).addClass(S).addClass(h)}c.data(T,r.effects).kendoStop(!0).kendoAnimate(r)}},toggle:function(){var e=this;e[e.visible()?c:d]()},visible:function(){return this.element.is(":"+x)},close:function(){var t,i,r,a=this,o=a.options;if(a.visible()){if(a._closing||a.trigger(c))return;a.element.find(".k-popup").each(function(){var t=e(this),n=t.data("kendoPopup");n&&n.close()}),I.unbind(E,a._mousedownProxy),N.unbind(R,a._resizeProxy),t=O(!0,{},o.animation.close),i=a.element.data(T),r=t.effects,a.wrapper=n.wrap(a.element).css({overflow:k}),!r&&!n.size(r)&&i&&n.size(i)&&(t.effects=i,t.reverse=!0),a._closing=!0,a.element.kendoStop(!0).kendoAnimate(t)}},_resize:function(){var e=this;if(l){var t=A.width();if(t==e._currentWidth)return;e._currentWidth=t}e._hovered||e.close()},_mousedown:function(i){var r=this,a=r.element[0],o=r.options,s=e(o.anchor)[0],l=o.toggleTarget,d=n.eventTarget(i),c=e(d).closest(".k-popup")[0];c&&c!==r.element[0]||t(a,d)||t(s,d)||l&&t(e(l)[0],d)||r.close()},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i,r,a,o){var s=0;return o=o||t,a!==r&&a!==f&&r!==f&&(e+o>i&&(s+=-(n+t)),0>e+s&&(s+=n+t)),s},_position:function(t){var n=this,i=n.element.css(y,""),r=n.wrapper,s=n.options,l=e(s.viewport),d=e(l).offset(),c=e(s.anchor),u=s.origin.toLowerCase().split(" "),p=s.position.toLowerCase().split(" "),f=n.collisions,h=a.zoomLevel(),m=10002,g=c.parents().filter(r.siblings());if(g[0]){var v=Number(e(g).css("zIndex"));v&&(m=v+1)}r.css("zIndex",m),t&&t.isFixed?r.css({left:t.x,top:t.y}):r.css(n._align(u,p));var k=o(r,y),b=o(r),x=c.offsetParent().parent(".k-animation-container");x.length&&x.data(C)&&(k=o(r,y),b=o(r)),l[0]===window?(b.top-=window.pageYOffset||document.documentElement.scrollTop||0,b.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(b.top-=d.top,b.left-=d.left),n.wrapper.data(w)||r.data(w,O({},k));var T=O({},b),S=O({},k);"fit"===f[0]&&(S.top+=n._fit(T.top,r.outerHeight(),l.height()/h)),"fit"===f[1]&&(S.left+=n._fit(T.left,r.outerWidth(),l.width()/h)),S.left!=k.left||S.top!=k.top?r.data(C,!0):r.removeData(C);var F=O({},S);return"flip"===f[0]&&(S.top+=n._flip(T.top,i.outerHeight(),c.outerHeight(),l.height()/h,u[0],p[0],r.outerHeight())),"flip"===f[1]&&(S.left+=n._flip(T.left,i.outerWidth(),c.outerWidth(),l.width()/h,u[1],p[1],r.outerWidth())),i.css(y,_),r.css(S),S.left!=F.left||S.top!=F.top},_align:function(t,n){var i,r=this,a=r.wrapper,s=e(r.options.anchor),l=t[0],d=t[1],c=n[0],u=n[1],p=o(s),h=e(r.options.appendTo),g=a.outerWidth(),_=a.outerHeight(),k=s.outerWidth(),b=s.outerHeight(),w=p.top,y=p.left,x=Math.round;return h[0]!=document.body&&(i=o(h),w-=i.top,y-=i.left),l===v&&(w+=b),l===f&&(w+=x(b/2)),c===v&&(w-=_),c===f&&(w-=x(_/2)),d===m&&(y+=k),d===f&&(y+=x(k/2)),u===m&&(y-=g),u===f&&(y-=x(g/2)),{top:w,left:y}}});i.plugin(B)}(window.kendo.jQuery),function(e,t){function n(t,i){t.filters&&(t.filters=e.grep(t.filters,function(e){return n(e,i),e.filters?e.filters.length:e.field!=i}))}var i=window.kendo,r=i.ui,a=r.Widget,o=i.keys,s=i.htmlEncode,l="id",d="li",c="change",u="character",p="k-state-focused",f="k-state-hover",h="k-loading",m="open",g="close",v="select",_="selected",k="requestStart",b="requestEnd",w="width",y=e.extend,x=e.proxy,C=i.support.browser,T=C.msie&&9>parseInt(C.version,10),S=/"/g,F=a.extend({init:function(t,n){var r,o=this,s=o.ns;a.fn.init.call(o,t,n),t=o.element,o._template(),o.ul=e('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:i.support.kineticScrollNeeded?"":"auto"}).on("mouseenter"+s,d,function(){e(this).addClass(f)}).on("mouseleave"+s,d,function(){e(this).removeClass(f)}).on("touchend"+s+" click"+s,d,x(o._click,o)).attr({tabIndex:-1,role:"listbox","aria-hidden":!0}),o.list=e("<div class='k-list-container'/>").append(o.ul).on("mousedown"+s,function(e){e.preventDefault()}),r=t.attr(l),r&&(o.list.attr(l,r+"-list"),o.ul.attr(l,r+"_listbox"),o._optionID=r+"_option_selected")},items:function(){return this.ul[0].children},current:function(e){var n=this,i=n._optionID;return e===t?n._current:(n._current&&(n._current.removeClass(p).removeAttr("aria-selected").removeAttr(l),n._focused.removeAttr("aria-activedescendant")),e&&(e.addClass(p),n._scroll(e),i&&(e.attr("id",i),n._focused.attr("aria-activedescendant",i))),n._current=e,t)},destroy:function(){var e=this,t=e.ns;a.fn.destroy.call(e),e._unbindDataSource(),e.ul.off(t),e.list.off(t),e.popup.destroy(),e._form&&e._form.off("reset",e._resetHandler)},dataItem:function(e){var n=this;return e===t&&(e=n.selectedIndex),n._data()[e]},_accessors:function(){var e=this,t=e.element,n=e.options,r=i.getter,a=t.attr(i.attr("text-field")),o=t.attr(i.attr("value-field"));a&&(n.dataTextField=a),o&&(n.dataValueField=o),e._text=r(n.dataTextField),e._value=r(n.dataValueField)},_aria:function(){var e=this,n=e.options,i=e._focused;n.suggest!==t&&i.attr("aria-autocomplete",n.suggest?"both":"list"),e.element[0].id&&i.attr("aria-owns",e.ul[0].id),e.ul.attr("aria-live",n.filter&&"none"!==n.filter?"polite":"off")},_blur:function(){var e=this;e._change(),e.close()},_change:function(){var e,n=this,i=n.selectedIndex,r=n.value();r!==n._old?e=!0:i!==t&&i!==n._oldIndex&&(e=!0),e&&(n._old=r,n._oldIndex=i,n.trigger(c),n.element.trigger(c))},_click:function(t){t.isDefaultPrevented()||(this._accept(e(t.currentTarget)),"touchend"===t.type&&t.preventDefault())},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,t=e.options;e.element.prop("disabled")&&(t.enable=!1),e.enable(t.enable)},_focus:function(e){var n=this;return n.popup.visible()&&e&&n.trigger(v,{item:e})?(n.close(),t):(n._select(e),n._blur(),t)},_height:function(e){if(e){var t=this,n=t.list,i=t.popup.visible(),r=t.options.height;n=n.add(n.parent(".k-animation-container")).show().height(t.ul[0].scrollHeight>r?r:"auto"),i||n.hide()}},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,r=this.wrapper;if(n.data(w)||!i)return e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=e?parseFloat(e.width):r.outerWidth(),e&&(C.mozilla||C.msie)&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i=t-(n.outerWidth()-n.width()),n.css({fontFamily:r.css("font-family"),width:i}).data(w,i),!0},_popup:function(){var e=this,t=e.list,n=e._focused,a=e.options,o=e.wrapper;e.popup=new r.Popup(t,y({},a.popup,{anchor:o,open:function(t){e._adjustListWidth(),e.trigger(m)?t.preventDefault():(n.attr("aria-expanded",!0),e.ul.attr("aria-hidden",!1))},close:function(t){e.trigger(g)?t.preventDefault():(n.attr("aria-expanded",!1),e.ul.attr("aria-hidden",!0))},animation:a.animation,isRtl:i.support.isRtl(o)})),e._touchScroller=i.touchScroller(e.popup.element)},_makeUnselectable:function(){T&&this.list.find("*").attr("unselectable","on")},_toggleHover:function(t){e(t.currentTarget).toggleClass(f,"mouseenter"===t.type)},_toggle:function(e){var n=this;e=e!==t?e:!n.popup.visible(),i.support.mobileOS||n._focused[0]===document.activeElement||n._focused.focus(),n[e?m:g]()},_scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.ul[0],n=e.offsetTop,i=e.offsetHeight,r=t.scrollTop,a=t.clientHeight,o=n+i;t.scrollTop=r>n?n:o>r+a?o-a:r}},_template:function(){var e=this,t=e.options,n=t.template,r=t.dataSource;e.element.is(v)&&e.element[0].length&&(r||(t.dataTextField=t.dataTextField||"text",t.dataValueField=t.dataValueField||"value")),n?(n=i.template(n),e.template=function(e){return'<li tabindex="-1" role="option" unselectable="on" class="k-item">'+n(e)+"</li>"}):e.template=i.template('<li tabindex="-1" role="option" unselectable="on" class="k-item">${data'+(t.dataTextField?".":"")+t.dataTextField+"}</li>",{useWithBlock:!1})},_unbindDataSource:function(){var e=this;e.dataSource.unbind(c,e._refreshHandler).unbind(k,e._requestStartHandler).unbind(b,e._requestEndHandler)}});y(F,{caret:function(e){var t,n=e.ownerDocument.selection;return t=n?Math.abs(n.createRange().moveStart(u,-e.value.length)):e.selectionStart},selectText:function(e,t,n){try{if(e.createTextRange){e.focus();var i=e.createTextRange();i.collapse(!0),i.moveStart(u,t),i.moveEnd(u,n-t),i.select()}else e.setSelectionRange(t,n)}catch(r){}},inArray:function(e,t){var n,i,r=t.children;if(!e||e.parentNode!==t)return-1;for(n=0,i=r.length;i>n;n++)if(e===r[n])return n;return-1}}),i.ui.List=F,r.Select=F.extend({init:function(e,t){F.fn.init.call(this,e,t)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&this.dataSource.fetch()},close:function(){this.popup.close()},_accessor:function(e,n){var i,r,a=this.element,o=a.is(v);return a=a[0],e===t?(o?(r=a.selectedIndex,r>-1&&(i=a.options[r],i&&(e=i.value))):e=a.value,e):(o?a.selectedIndex=n:a.value=e,t)},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrow.removeClass(h),e._focused.attr("aria-busy",!1),e._busy=null},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(function(){e._focused.attr("aria-busy",!0),e._arrow.addClass(h)},100))},_requestEnd:function(){this._request=!1},_dataSource:function(){var t,n=this,r=n.element,a=n.options,o=a.dataSource||{};o=e.isArray(o)?{data:o}:o,r.is(v)&&(t=r[0].selectedIndex,t>-1&&(a.index=t),o.select=r,o.fields=[{field:a.dataTextField},{field:a.dataValueField}]),n.dataSource&&n._refreshHandler?n._unbindDataSource():(n._refreshHandler=x(n.refresh,n),n._requestStartHandler=x(n._showBusy,n),n._requestEndHandler=x(n._requestEnd,n)),n.dataSource=i.data.DataSource.create(o).bind(c,n._refreshHandler).bind(k,n._requestStartHandler).bind(b,n._requestEndHandler)},_index:function(e){var n,i,r,a=this,o=a._data();for(n=0,i=o.length;i>n;n++)if(r=a._value(o[n]),r===t&&(r=a._text(o[n])),r==e)return n;return-1},_get:function(t){var n,i,r=this,a=r._data();if("function"==typeof t)for(n=0,i=a.length;i>n;n++)if(t(a[n])){t=n;break}if("number"==typeof t){if(0>t)return e();t=e(r.ul[0].children[t])}return t&&t.nodeType&&(t=e(t)),t},_move:function(e){var t,n=this,i=e.keyCode,r=n.ul[0],a=n._current,s=i===o.DOWN;
|
16
|
+
return i===o.UP||s?(e.altKey?n.toggle(s):s?(a=!a||-1===n.selectedIndex&&!n.value()?r.firstChild:a[0].nextSibling,n._select(a)):n._select(a?a[0].previousSibling:r.lastChild),e.preventDefault(),t=!0):i===o.ENTER||i===o.TAB?(n.popup.visible()&&e.preventDefault(),n._accept(a),t=!0):i===o.ESC&&(n.popup.visible()&&e.preventDefault(),n.close(),t=!0),t},_selectItem:function(e){var t=this,n=t.options;e=e||n.value||t.value(),e?t.value(e):t.select(n.index),t.trigger(_)},_valueOnFetch:function(e){var n=this;return n.ul[0].firstChild||n._fetch?(n._fetch=!1,t):(n.dataSource.one(c,function(){n._fetch=!0,n.value(e),n.trigger(_)}),n._request||n.dataSource.fetch(),!0)},_options:function(e,n){var i,r,a,o,l=this,d=l.element,c=d[0].selectedIndex,u=e.length,p="",f=0;for(n&&(p=n,f=1);u>f;f++)i="<option",r=e[f],a=l._text(r),o=l._value(r),o!==t&&(o+="",-1!==o.indexOf('"')&&(o=o.replace(S,""")),i+=' value="'+o+'"'),i+=">",a!==t&&(i+=s(a)),i+="</option>",p+=i;d.html(p),d[0].selectedIndex=c},_reset:function(){var e=this,t=e.element,n=t.closest("form");n[0]&&(e._resetHandler=function(){setTimeout(function(){e.value(t[0].value)})},e._form=n.on("reset",e._resetHandler))},_cascade:function(){var i,r,a,o,s,l=this,d=l.options,u=d.cascadeFrom;if(u){if(i=e("#"+u).data("kendo"+d.name),!i)return;a=i.options.dataValueField,o=function(){l.value(""),l.enable(!1)},s=function(){var e=l.value();e?l.dataSource.view()[0]?(l.value(e),-1==l.selectedIndex&&l.value("")):(l.value(""),l.value()&&(l.element.val(""),l.text(""))):l.select(d.index),l.trigger(_),l.enable()},r=function(){var e,t,r=i.dataItem(),d=r?i._value(r):null;d?(e=l.dataSource.filter()||{},n(e,a),t=e.filters||[],t.push({field:a,operator:"eq",value:d}),l.dataSource.one(c,s).filter(t)):o()},i.bind("cascade",o).bind(c,function(){r(),l.trigger("cascade")}).bind(_,function(){r()}),i._valueCalled!==t?r():i.value()||l.enable(!1)}}}),r.Select.removeFiltersForField=n}(window.kendo.jQuery),function(e,t){function n(e){for(var t,n=0,i=e.min,r=e.max,o=e.start,s=e.setter,l=e.build,d=e.cells||12,c=e.perRow||4,u=e.content||S,p=e.empty||F,f=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';d>n;n++)n>0&&0===n%c&&(f+='</tr><tr role="row">'),t=l(o,n),f+=a(o,i,r)?u(t):p(t),s(o,1);return f+"</tr></tbody></table>"}function i(e,t,n){var i=e.getFullYear(),r=t.getFullYear(),a=r,o=0;return n&&(r-=r%n,a=r-r%n+n-1),i>a?o=1:r>i&&(o=-1),o}function r(e,t,n){var i=new dt;return i=new dt(i.getFullYear(),i.getMonth(),i.getDate()),e&&(i=new dt(+e)),t>i?i=new dt(+t):i>n&&(i=new dt(+n)),i}function a(e,t,n){return+e>=+t&&+n>=+e}function o(e,t){return e.slice(t).concat(e.slice(0,t))}function s(e,t,n){t=t instanceof dt?t.getFullYear():e.getFullYear()+n*t,e.setFullYear(t)}function l(t){-1===t.type.indexOf("touch")&&t.stopImmediatePropagation(),e(this).toggleClass(W,X.indexOf(t.type)>-1||t.type==Q)}function d(e){e.preventDefault()}function c(e){return x(e).calendars.standard}function u(e){var n=ct[e.start],i=ct[e.depth],r=x(e.culture);e.format=w(e.format||r.calendars.standard.patterns.d),isNaN(n)&&(n=0,e.start=M),(i===t||i>n)&&(e.depth=M),e.dates||(e.dates=[])}function p(e){E&&e.find("*").attr("unselectable","on")}function f(e,t){for(var n=0,i=t.length;i>n;n++)if(e===+t[n])return!0;return!1}function h(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}var m=window.kendo,g=m.ui,v=g.Widget,_=m.parseDate,k=m._adjustDate,b=m.keys,w=m._extractFormat,y=m.template,x=m.getCulture,C=m.support.transitions,T=C?C.css+"transform-origin":"",S=y('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),F=y('<td role="gridcell"> </td>',{useWithBlock:!1}),D=m.support.browser,E=D.msie&&(9>parseInt(D.version,10)||document.documentMode&&9>document.documentMode),A=".kendoCalendar",N="touchend"+A+" click"+A,I="keydown"+A,R="id",H="min",z="left",O="slideIn",M="month",P="century",B="change",L="navigate",U="value",W="k-state-hover",q="k-state-disabled",V="k-state-focused",j="k-other-month",$=' class="'+j+'"',G="k-nav-today",Y="td:has(.k-link)",K="blur"+A,Q="focus",J=Q+A,X="touchstart mouseenter",Z="touchstart"+A+" mouseenter"+A,et="touchend"+A+" mouseleave"+A,tt=6e4,nt=864e5,it="_prevArrow",rt="_nextArrow",at="aria-disabled",ot="aria-selected",st=e.proxy,lt=e.extend,dt=Date,ct={month:0,year:1,decade:2,century:3},ut=v.extend({init:function(t,n){var i,a,o=this;v.fn.init.call(o,t,n),t=o.wrapper=o.element,n=o.options,n.url=window.unescape(n.url),o._templates(),o._header(),o._footer(o.footer),a=t.addClass("k-widget k-calendar").on(Z+" "+et,Y,l).on(I,"table.k-content",st(o._move,o)).on(N,Y,function(t){var n=t.currentTarget.firstChild;-1!=n.href.indexOf("#")&&t.preventDefault(),o._click(e(n))}).attr(R),a&&(o._cellID=a+"_cell_selected"),i=n.value,u(n),o._index=ct[n.start],o._current=new dt(+r(i,n.min,n.max)),o._addClassProxy=function(){o._cell.addClass(V)},o._removeClassProxy=function(){o._cell.removeClass(V)},o.value(i),m.notify(o)},options:{name:"Calendar",value:null,min:new dt(1900,0,1),max:new dt(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:M,depth:M,animation:{horizontal:{effects:O,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[B,L],setOptions:function(e){u(e),v.fn.setOptions.call(this,e)},destroy:function(){var e=this,t=e._today.off(A);e.element.off(A),e._title.off(A),e[it].off(A),e[rt].off(A),m.destroy(t),m.destroy(e._view),v.fn.destroy.call(e)},focus:function(e){e=e||this._table,this.options.focusOnNav!==!1&&(e.focus(),this._bindTable(e))},min:function(e){return this._option(H,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(it,-1)},navigateToFuture:function(){this._navigate(rt,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(q)||e.navigate(e._current,++t)},navigateDown:function(e){var n=this,i=n._index,r=n.options.depth;if(e)return i===ct[r]?(+n._value!=+e&&(n.value(e),n.trigger(B)),t):(n.navigate(e,--i),t)},navigate:function(n,i){i=isNaN(i)?ct[i]:i;var a,o,s,l,d=this,c=d.options,u=c.culture,f=c.min,h=c.max,m=d._title,g=d._table,v=d._value,_=d._current,k=n&&+n>+_,b=i!==t&&i!==d._index;n?d._current=n=new dt(+r(n,f,h)):n=_,i===t?i=d._index:d._index=i,d._view=o=pt.views[i],s=o.compare,l=i===ct[P],m.toggleClass(q,l).attr(at,l),l=1>s(n,f),d[it].toggleClass(q,l).attr(at,l),l=s(n,h)>-1,d[rt].toggleClass(q,l).attr(at,l),(!g||d._changeView)&&(m.html(o.title(n,u)),d._table=a=e(o.content(lt({min:f,max:h,date:n,url:c.url,dates:c.dates,format:c.format,culture:u},d[o.name]))),p(a),d._animate({from:g,to:a,vertical:b,future:k}),d._focus(n),d.trigger(L)),i===ct[c.depth]&&v&&d._class("k-state-selected",o.toDateString(v)),d._class(V,o.toDateString(n)),!g&&d._cell&&d._cell.removeClass(V),d._changeView=!0},value:function(e){var n=this,i=n._view,r=n.options,o=r.min,s=r.max;return e===t?n._value:(e=_(e,r.format,r.culture),null!==e&&(e=new dt(+e),a(e,o,s)||(e=null)),n._value=e,n._changeView=!e||i&&0!==i.compare(e,n._current),n.navigate(e),t)},_move:function(t){var n,i,a,o=this,s=o.options,l=t.keyCode,d=o._view,c=o._index,u=new dt(+o._current);return t.ctrlKey?l==b.RIGHT?(o.navigateToFuture(),i=!0):l==b.LEFT?(o.navigateToPast(),i=!0):l==b.UP?(o.navigateUp(),i=!0):l==b.DOWN&&(o._click(e(o._cell[0].firstChild)),i=!0):(l==b.RIGHT?(n=1,i=!0):l==b.LEFT?(n=-1,i=!0):l==b.UP?(n=0===c?-7:-4,i=!0):l==b.DOWN?(n=0===c?7:4,i=!0):l==b.ENTER?(o._click(e(o._cell[0].firstChild)),i=!0):l==b.HOME||l==b.END?(a=l==b.HOME?"first":"last",u=d[a](u),i=!0):l==b.PAGEUP?(i=!0,o.navigateToPast()):l==b.PAGEDOWN&&(i=!0,o.navigateToFuture()),(n||a)&&(a||d.setDate(u,n),o._focus(r(u,s.min,s.max)))),i&&t.preventDefault(),o._current},_animate:function(e){var t=this,n=e.from,i=e.to;n?n.parent().data("animating")?(n.parent().kendoStop(!0,!0).remove(),n.remove(),i.insertAfter(t.element[0].firstChild),t.focus()):n.is(":visible")&&t.options.animation!==!1?t[e.vertical?"_vertical":"_horizontal"](n,i,e.future):(i.insertAfter(n),t.focus(),n.remove()):(i.insertAfter(t.element[0].firstChild),t._bindTable(i))},_horizontal:function(e,t,n){var i=this,r=i.options.animation.horizontal,a=r.effects,o=e.outerWidth();a&&-1!=a.indexOf(O)&&(e.add(t).css({width:o}),e.wrap("<div/>"),i.focus(e),e.parent().css({position:"relative",width:2*o,"float":z,left:n?0:-o}),t[n?"insertAfter":"insertBefore"](e),lt(r,{effects:O+":"+(n?"right":z),complete:function(){e.remove(),t.unwrap(),i.focus()}}),e.parent().kendoStop(!0,!0).kendoAnimate(r))},_vertical:function(e,t){var n,i,r=this,a=r.options.animation.vertical,o=a.effects;o&&-1!=o.indexOf("zoom")&&(t.css({position:"absolute",top:e.prev().outerHeight(),left:0}).insertBefore(e),T&&(n=r._cellByDate(r._view.toDateString(r._current)),i=n.position(),i=i.left+parseInt(n.width()/2,10)+"px"+" "+(i.top+parseInt(n.height()/2,10)+"px"),t.css(T,i)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.remove(),t.css({position:"static",top:0,left:0}),r.focus()}}),t.kendoStop(!0,!0).kendoAnimate(a))},_cellByDate:function(t){return this._table.find("td:not(."+j+")").filter(function(){return e(this.firstChild).attr(m.attr(U))===t})},_class:function(t,n){var i=this,r=i._cellID,a=i._cell;a&&a.removeAttr(ot).removeAttr(R),a=i._table.find("td:not(."+j+")").removeClass(t).filter(function(){return e(this.firstChild).attr(m.attr(U))===n}).addClass(t).attr(ot,!0),a[0]&&(i._cell=a),r&&(a.attr(R,r),i._table.removeAttr("aria-activedescendant").attr("aria-activedescendant",r))},_bindTable:function(e){e.on(J,this._addClassProxy).on(K,this._removeClassProxy)},_click:function(e){var t=this,n=t.options,i=t._current,a=e.attr(m.attr(U)).split("/");a=new dt(a[0],a[1],a[2]),k(a),e.parent().hasClass(j)?i=a:t._view.setDate(i,a),t.navigateDown(r(i,n.min,n.max))},_focus:function(e){var t=this,n=t._view;0!==n.compare(e,t._current)?t.navigate(e):(t._current=e,t._class(V,n.toDateString(e)))},_footer:function(n){var i=this,r=i.element,a=new dt,o=r.find(".k-footer");return n?(o[0]||(o=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(r)),i._today=o.show().find(".k-link").html(n(a)).attr("title",m.toString(a,"D",i.options.culture)),i._toggle(),t):(i._toggle(!1),o.hide(),t)},_header:function(){var e,t=this,n=t.element;n.find(".k-header")[0]||n.html('<div class="k-header"><a href="#" role="button" class="k-link k-nav-prev"><span class="k-icon k-i-arrow-w"></span></a><a href="#" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="#" role="button" class="k-link k-nav-next"><span class="k-icon k-i-arrow-e"></span></a></div>'),e=n.find(".k-link").on(Z+" "+et+" "+J+" "+K,l).click(!1),t._title=e.eq(1).on(N,st(t.navigateUp,t)),t[it]=e.eq(0).on(N,st(t.navigateToPast,t)),t[rt]=e.eq(2).on(N,st(t.navigateToFuture,t))},_navigate:function(e,t){var n=this,i=n._index+1,r=new dt(+n._current);e=n[e],e.hasClass(q)||(i>3?r.setFullYear(r.getFullYear()+100*t):pt.views[i].setDate(r,t),n.navigate(r))},_option:function(e,n){var i,r,a=this,o=a.options,s=+a._value;return n===t?o[e]:(n=_(n,o.format,o.culture),n&&(o[e]=new dt(+n),r=a._view.compare(n,a._current),e===H?(i=+n>s,r=r>-1):(i=s>+n,r=1>r),i?a.value(null):r&&a.navigate(),a._toggle()),t)},_toggle:function(e){var n=this,i=n.options,r=n._today;e===t&&(e=a(new dt,i.min,i.max)),r&&(r.off(N),e?r.addClass(G).removeClass(q).on(N,st(n._todayClick,n)):r.removeClass(G).addClass(q).on(N,d))},_todayClick:function(e){var t=this,n=ct[t.options.depth],i=new dt;e.preventDefault(),0===t._view.compare(t._current,i)&&t._index==n&&(t._changeView=!1),t._value=i,t.navigate(i,n),t.trigger(B)},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month,r=i.content,a=i.empty;e.month={content:y('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+m.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(r||"#=data.value#")+"</a></td>",{useWithBlock:!!r}),empty:y('<td role="gridcell">'+(a||" ")+"</td>",{useWithBlock:!!a})},n!==!1&&(e.footer=y(n||'#= kendo.toString(data,"D","'+t.culture+'") #',{useWithBlock:!1}))}});g.plugin(ut);var pt={firstDayOfMonth:function(e){return new dt(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||m.culture().calendar;for(var n=t.firstDay,i=new dt(e.getFullYear(),e.getMonth(),0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());i.getDay()!=n;)pt.setTime(i,-1*nt);return i},setTime:function(e,t){var n=e.getTimezoneOffset(),i=new dt(e.getTime()+t),r=i.getTimezoneOffset()-n;e.setTime(i.getTime()+r*tt)},views:[{name:M,title:function(e,t){return c(t).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){for(var t=this,i=0,r=e.min,a=e.max,s=e.date,l=e.dates,d=e.format,u=e.culture,p=e.url,h=p&&l[0],g=c(u),v=g.firstDay,_=g.days,b=o(_.names,v),w=o(_.namesShort,v),y=pt.firstVisibleDay(s,g),x=t.first(s),C=t.last(s),T=t.toDateString,S=new dt,F='<table tabindex="0" role="grid" class="k-content" cellspacing="0"><thead><tr role="row">';7>i;i++)F+='<th scope="col" title="'+b[i]+'">'+w[i]+"</th>";return S=new dt(S.getFullYear(),S.getMonth(),S.getDate()),k(S),S=+S,n({cells:42,perRow:7,html:F+='</tr></thead><tbody><tr role="row">',start:new dt(y.getFullYear(),y.getMonth(),y.getDate()),min:new dt(r.getFullYear(),r.getMonth(),r.getDate()),max:new dt(a.getFullYear(),a.getMonth(),a.getDate()),content:e.content,empty:e.empty,setter:t.setDate,build:function(e){var t=[],n=e.getDay(),i="",r="#";return(x>e||e>C)&&t.push(j),+e===S&&t.push("k-today"),(0===n||6===n)&&t.push("k-weekend"),h&&f(+e,l)&&(r=p.replace("{0}",m.toString(e,d,u)),i=" k-action-link"),{date:e,dates:l,ns:m.ns,title:m.toString(e,"D",u),value:e.getDate(),dateString:T(e),cssClass:t[0]?' class="'+t.join(" ")+'"':"",linkClass:i,url:r}}})},first:function(e){return pt.firstDayOfMonth(e)},last:function(e){var t=new dt(e.getFullYear(),e.getMonth()+1,0),n=pt.firstDayOfMonth(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t},compare:function(e,t){var n,i=e.getMonth(),r=e.getFullYear(),a=t.getMonth(),o=t.getFullYear();return n=r>o?1:o>r?-1:i==a?0:i>a?1:-1},setDate:function(e,t){var n=e.getHours();t instanceof dt?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):pt.setTime(e,t*nt),k(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=c(e.culture).months.namesAbbr,i=this.toDateString,r=e.min,a=e.max;return n({min:new dt(r.getFullYear(),r.getMonth(),1),max:new dt(a.getFullYear(),a.getMonth(),1),start:new dt(e.date.getFullYear(),0,1),setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:m.ns,dateString:i(e),cssClass:""}}})},first:function(e){return new dt(e.getFullYear(),0,e.getDate())},last:function(e){return new dt(e.getFullYear(),11,e.getDate())},compare:function(e,t){return i(e,t)},setDate:function(e,t){var n,i=e.getHours();t instanceof dt?(n=t.getMonth(),e.setFullYear(t.getFullYear(),n,e.getDate()),n!==e.getMonth()&&e.setDate(0)):(n=e.getMonth()+t,e.setMonth(n),n>11&&(n-=12),n>0&&e.getMonth()!=n&&e.setDate(0)),k(e,i)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"}},{name:"decade",title:function(e){var t=e.getFullYear();return t-=t%10,t+"-"+(t+9)},content:function(e){var t=e.date.getFullYear(),i=this.toDateString;return n({start:new dt(t-t%10-1,0,1),min:new dt(e.min.getFullYear(),0,1),max:new dt(e.max.getFullYear(),0,1),setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:m.ns,dateString:i(e),cssClass:0===t||11==t?$:""}}})},first:function(e){var t=e.getFullYear();return new dt(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new dt(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return i(e,t,10)},setDate:function(e,t){s(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"}},{name:P,title:function(e){var t=e.getFullYear();return t-=t%100,t+"-"+(t+99)},content:function(e){var t=e.date.getFullYear(),i=e.min.getFullYear(),r=e.max.getFullYear(),a=this.toDateString;return i-=i%10,r-=r%10,10>r-i&&(r=i+9),n({start:new dt(t-t%100-10,0,1),min:new dt(i,0,1),max:new dt(r,0,1),setter:this.setDate,build:function(e,t){var n=e.getFullYear();return{value:n+" - "+(n+9),ns:m.ns,dateString:a(e),cssClass:0===t||11==t?$:""}}})},first:function(e){var t=e.getFullYear();return new dt(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new dt(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return i(e,t,100)},setDate:function(e,t){s(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"}}]};pt.isEqualDatePart=h,pt.makeUnselectable=p,pt.restrictValue=r,pt.isInRange=a,pt.normalize=u,pt.viewsEnum=ct,m.calendar=pt}(window.kendo.jQuery),function(e,t){function n(t){var n=t.parseFormats;H.normalize(t),n=e.isArray(n)?n:[n],n.splice(0,0,t.format),t.parseFormats=n}function i(e){e.preventDefault()}var r=window.kendo,a=r.ui,o=a.Widget,s=r.parseDate,l=r.keys,d=r.template,c="<div />",u="<span />",p=".kendoDatePicker",f="touchend"+p+" click"+p,h="open",m="close",g="change",v="dateView",_="disabled",k="k-state-default",b="k-state-focused",w="k-state-selected",y="k-state-disabled",x="k-state-hover",C="keydown"+p,T="mouseenter"+p+" mouseleave"+p,S="touchstart"+p+" mousedown"+p,F="id",D="min",E="max",A="month",N="aria-disabled",I="aria-expanded",R="aria-hidden",H=r.calendar,z=H.isInRange,O=H.restrictValue,M=H.isEqualDatePart,P=e.extend,B=e.proxy,L=Date,U=function(t){var n,i=this,o=document.body,s=W.sharedCalendar,l=e(c).attr(R,"true").addClass("k-calendar-container").appendTo(o);s||(s=W.sharedCalendar=new a.Calendar(e(c).attr(F,r.guid()).hide().appendTo(o),{focusOnNav:!1}),H.makeUnselectable(s.element)),i.calendar=s,i.options=t=t||{},n=t.id,n&&(n+="_dateview",l.attr(F,n),i._dateViewID=n),i.popup=new a.Popup(l,P(t.popup,t,{name:"Popup",isRtl:r.support.isRtl(t.anchor)})),i.div=l,i._templates(),i.value(t.value)};U.prototype={_calendar:function(){var e=this,t=e.popup,n=e.options,r=e.calendar,a=r.element;a.data(v)!==e&&(a.appendTo(t.element).data(v,e).off(f+" "+C).on(f,"td:has(.k-link)",B(e._click,e)).on(S,i).show(),r.unbind(g).bind(g,n),r.month=e.month,r.options.dates=n.dates,r.options.depth=n.depth,r.options.culture=n.culture,r._footer(e.footer),r.min(n.min),r.max(n.max),r.navigate(e._value,n.start),e.value(e._value))},destroy:function(){var t,n=this,i=n.calendar,r=i.element;r.data(v)===n&&(t=e(".k-calendar-container"),t.length>1?r.hide().appendTo(document.body):(r.off(p),i.destroy(),W.sharedCalendar=null)),n.popup.destroy()},open:function(){var e=this;e._calendar(),e.popup.open()},close:function(){this.popup.close()},min:function(e){this._option(D,e)},max:function(e){this._option(E,e)},toggle:function(){var e=this;e[e.popup.visible()?m:h]()},move:function(e){var n=this,i=e.keyCode,r=n.calendar,a=e.ctrlKey&&i==l.DOWN||i==l.ENTER;if(i==l.ESC)return n.close(),t;if(e.altKey)return i==l.DOWN?(n.open(),e.preventDefault()):i==l.UP&&(n.close(),e.preventDefault()),t;if(n.popup.visible())return a&&r._cell.hasClass(w)?(n.close(),e.preventDefault(),t):(n._current=r._move(e),t)},value:function(e){var t=this,n=t.calendar,i=t.options;t._value=e,t._current=new L(+O(e,i.min,i.max)),n.element.data(v)===t&&n.value(e)},_click:function(e){-1!==e.currentTarget.className.indexOf(w)&&this.close()},_option:function(e,t){var n=this,i=n.options,r=n.calendar;i[e]=t,r.element.data(v)===n&&r[e](t)},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month||{},a=i.content,o=i.empty;e.month={content:d('<td#=data.cssClass#><a tabindex="-1" class="k-link" href="\\#" '+r.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(a||"#=data.value#")+"</a></td>",{useWithBlock:!!a}),empty:d("<td>"+(o||" ")+"</td>",{useWithBlock:!!o})},n!==!1&&(e.footer=d(n||'#= kendo.toString(data,"D","'+t.culture+'") #',{useWithBlock:!1}))}},U.normalize=n,r.DateView=U;var W=o.extend({init:function(e,t){var i,a=this;o.fn.init.call(a,e,t),e=a.element,t=a.options,n(t),a._wrapper(),a.dateView=new U(P({},t,{id:e.attr(F),anchor:a.wrapper,change:function(){a._change(this.value()),a.close()},close:function(t){a.trigger(m)?t.preventDefault():(e.attr(I,!1),i.attr(R,!0))},open:function(t){var n,r=a.options;a.trigger(h)?t.preventDefault():(n=s(e.val(),r.parseFormats,r.culture),n?(a.dateView._current=n,a.dateView.calendar._focus(n)):a.dateView.value(n),e.attr(I,!0),i.attr(R,!1))}})),i=a.dateView.div,a._icon(),e[0].type="text",e.addClass("k-input").on("keydown"+p,B(a._keydown,a)).on("blur"+p,B(a._blur,a)).on("focus"+p,function(){a._inputWrapper.addClass(b)}).attr({role:"textbox","aria-haspopup":!0,"aria-expanded":!1,"aria-owns":a.dateView._dateViewID}),a._reset(),a._template(),a.enable(!e.is("[disabled]")),a.value(t.value||a.element.val()),r.notify(a)},events:[h,m,g],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:A,depth:A,animation:{},month:{},dates:[],ARIATemplate:'Current focused date is #=kendo.toString(data.current, "D")#'},setOptions:function(e){var t=this,i=t.dateView,r=i.options;o.fn.setOptions.call(t,e),n(t.options),i.options=P(r,t.options,{change:r.change,close:r.close,open:r.open})},enable:function(e){var t=this,n=t._dateIcon.off(p),r=t._inputWrapper.off(p),a=t.element;e===!1?(r.removeClass(k).addClass(y),a.attr(_,_).attr(N,!0)):(r.addClass(k).removeClass(y).on(T,t._toggleHover),a.removeAttr(_).attr(N,!1),n.on(f,B(t._click,t)).on(S,i))},destroy:function(){var e=this;o.fn.destroy.call(e),e.dateView.destroy(),e.element.off(p),e._dateIcon.off(p),e._inputWrapper.off(p),e._form&&e._form.off("reset",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(D,e)},max:function(e){return this._option(E,e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(x,"mouseenter"===t.type)},_blur:function(){var e=this;e.close(),e._change(e.element.val()),e._inputWrapper.removeClass(b)},_click:function(e){var t=this,n=t.element;t.dateView.toggle(),"click"===e.type&&n[0]!==document.activeElement&&n.focus()},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t.trigger(g),t.element.trigger(g))},_keydown:function(e){var t=this,n=t.dateView;n.popup.visible()||e.keyCode!=l.ENTER?(n.move(e),t._updateARIA(n._current)):t._change(t.element.val())},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span></span>').insertAfter(i)),n._dateIcon=t.attr({role:"button","aria-controls":n.dateView._dateViewID})},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=s(n,r.parseFormats,r.culture),n&&(r[e]=new L(+n),i.dateView[e](n)),t)},_update:function(e){var t,n=this,i=n.options,a=i.min,o=i.max,l=s(e,i.parseFormats,i.culture);return+l===+n._value?(t=r.toString(l,i.format,i.culture),t!==e&&n.element.val(null===l?e:t),l):(null!==l&&M(l,a)?l=O(l,a,o):z(l,a,o)||(l=null),n._value=l,n.dateView.value(l),n.element.val(l?r.toString(l,i.format,i.culture):e),n._updateARIA(l),l)},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datepicker"),t[0]||(t=i.wrap(u).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(u).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var e=this,t=e.element,n=t.closest("form");n[0]&&(e._resetHandler=function(){e.value(t[0].defaultValue)},e._form=n.on("reset",e._resetHandler))},_template:function(){this._ariaTemplate=d(this.options.ARIATemplate)},_updateARIA:function(e){this.element.attr("aria-label",this._ariaTemplate({current:e}))}});a.plugin(W)}(window.kendo.jQuery),function(e,t){function n(e,t,n){return n?t.substring(0,e).split(n).length-1:0}function i(e,t,i){return t.split(i)[n(e,t,i)]}function r(e,t,i,r){var a=t.split(r);return a.splice(n(e,t,r),1,i),r&&""!==a[a.length-1]&&a.push(""),a.join(r)}function a(e){var t=e.value.length;x(e,t,t)}var o=window.kendo,s=o.support,l=s.placeholder,d=o.ui,c=o.keys,u=o.data.DataSource,p=d.List,f="aria-disabled",h="k-state-default",m="disabled",g="k-state-focused",v="k-state-selected",_="k-state-disabled",k="k-state-hover",b=".kendoAutoComplete",w="mouseenter"+b+" mouseleave"+b,y=p.caret,x=p.selectText,C=e.proxy,T=p.extend({init:function(t,n){var i,r=this;r.ns=b,n=e.isArray(n)?{dataSource:n}:n,p.fn.init.call(r,t,n),t=r.element,n=r.options,n.placeholder=n.placeholder||t.attr("placeholder"),l&&t.attr("placeholder",n.placeholder),r._wrapper(),r._accessors(),r._dataSource(),t[0].type="text",i=r.wrapper,r._popup(),t.addClass("k-input").on("keydown"+b,C(r._keydown,r)).on("paste"+b,C(r._search,r)).on("focus"+b,function(){r._prev=r._accessor(),r._placeholder(!1),i.addClass(g)}).on("blur"+b,function(){r._change(),r._placeholder(),i.removeClass(g)}).attr({autocomplete:"off",role:"textbox","aria-haspopup":!0}),r._enable(),r._popup(),r._old=r._accessor(),t[0].id&&t.attr("aria-owns",r.ul[0].id),r._aria(),r._placeholder(),o.notify(r)},options:{name:"AutoComplete",enable:!0,suggest:!1,template:"",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{}},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():e._refreshHandler=C(e.refresh,e),e.dataSource=u.create(e.options.dataSource).bind("change",e._refreshHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource()},events:["open","close","change","select","dataBinding","dataBound"],setOptions:function(e){p.fn.setOptions.call(this,e),this._template(),this._accessors(),this._aria()},enable:function(e){var t=this,n=t.element,i=t.wrapper.off(w);e===!1?(i.removeClass(h).addClass(_),n.attr(m,m).attr(f,!0)):(i.removeClass(_).addClass(h).on(w,t._toggleHover),n.removeAttr(m).attr(f,!1))},close:function(){var e=this;e.current(null),e.popup.close()},destroy:function(){var e=this;e.element.off(b),e.wrapper.off(b),p.fn.destroy.call(e)},refresh:function(){var n,i=this,r=i.ul[0],a=i.popup,s=i.options,l=i._data(),d=l.length;i.trigger("dataBinding"),r.innerHTML=o.render(i.template,l),i._height(d),a.visible()&&a._position(),d&&(s.highlightFirst&&i.current(e(r.firstChild)),s.suggest&&i.suggest(e(r.firstChild))),i._open&&(i._open=!1,n=d?"open":"close",i._typing&&i.element[0]!==document.activeElement&&(n="close"),a[n](),i._typing=t),i._touchScroller&&i._touchScroller.reset(),i._makeUnselectable(),i.trigger("dataBound")},select:function(e){this._select(e)},search:function(e){var t,n=this,r=n.options,a=r.ignoreCase,o=r.separator;e=e||n._accessor(),n._current=null,clearTimeout(n._typing),o&&(e=i(y(n.element[0]),e,o)),t=e.length,t?t>=n.options.minLength&&(n._open=!0,n.dataSource.filter({value:a?e.toLowerCase():e,operator:r.filter,field:r.dataTextField,ignoreCase:a})):n.popup.close()},suggest:function(e){var i,r=this,a=r._last,o=r._accessor(),s=r.element[0],l=y(s),d=r.options.separator,u=o.split(d),f=n(l,o,d),h=l;return a==c.BACKSPACE||a==c.DELETE?(r._last=t,t):(e=e||"","string"!=typeof e&&(i=p.inArray(e[0],r.ul[0]),e=i>-1?r._text(r._data()[i]):""),0>=l&&(l=o.toLowerCase().indexOf(e.toLowerCase())+1),i=o.substring(0,l).lastIndexOf(d),i=i>-1?l-(i+d.length):l,o=u[f].substring(0,i),e&&(i=e.toLowerCase().indexOf(o.toLowerCase()),i>-1&&(e=e.substring(i+o.length),h=l+e.length,o+=e),d&&""!==u[u.length-1]&&u.push("")),u[f]=o,r._accessor(u.join(d||"")),x(s,l,h),t)},value:function(e){return e===t?this._accessor():(this._accessor(e),this._old=e,t)},_accessor:function(e){var n=this,i=n.element[0];return e===t?(e=i.value,i.className.indexOf("k-readonly")>-1?e===n.options.placeholder?"":e:e):(i.value=e,n._placeholder(),t)},_accept:function(e){var t=this;t._focus(e),a(t.element[0])},_keydown:function(t){var n=this,i=n.ul[0],r=t.keyCode,a=n._current,o=n.popup.visible();n._last=r,r===c.DOWN?(o&&n._move(a?a.next():e(i.firstChild)),t.preventDefault()):r===c.UP?(o&&n._move(a?a.prev():e(i.lastChild)),t.preventDefault()):r===c.ENTER||r===c.TAB?(r===c.ENTER&&n.popup.visible()&&t.preventDefault(),n._accept(a)):r===c.ESC?(n.popup.visible()&&t.preventDefault(),n.close()):n._search()},_move:function(e){var t=this;e=e[0]?e:null,t.current(e),t.options.suggest&&t.suggest(e)},_placeholder:function(e){if(!l){var n,i=this,r=i.element,a=i.options.placeholder;if(a){if(n=r.val(),e===t&&(e=!n),e||(a=n!==a?n:""),n===i._old&&!e)return;r.toggleClass("k-readonly",e).val(a)}}},_search:function(){var e=this;clearTimeout(e._typing),e._typing=setTimeout(function(){e._prev!==e._accessor()&&(e._prev=e._accessor(),e.search())},e.options.delay)},_select:function(t){var n,i,a=this,o=a.options.separator,s=a._data();t=e(t),t[0]&&!t.hasClass(v)&&(i=p.inArray(t[0],a.ul[0]),i>-1&&(s=s[i],n=a._text(s),o&&(n=r(y(a.element[0]),a._accessor(),n,o)),a._accessor(n),a.current(t.addClass(v))))},_toggleHover:function(t){e(t.currentTarget).toggleClass(k,"mouseenter"===t.type)},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent()),e.attr("tabindex",-1),e.attr("role","presentation"),e[0].style.cssText=i.style.cssText,n.css({width:"100%",height:i.style.height}),t._focused=t.element,t.wrapper=e.addClass("k-widget k-autocomplete k-header").addClass(i.className)}});d.plugin(T)}(window.kendo.jQuery),function(e,t){function n(e,t,n){for(var i,r=0,a=t.length-1;a>r;++r)i=t[r],i in e||(e[i]={}),e=e[i];e[t[a]]=n}var i=window.kendo,r=i.ui,a=r.Select,o=i.support.mobileOS,s=".kendoDropDownList",l="disabled",d="change",c="select",u="k-state-focused",p="k-state-default",f="k-state-disabled",h="k-state-selected",m="mouseenter"+s+" mouseleave"+s,g=e.proxy,v=a.extend({init:function(n,r){var o,l,d,u=this,p=r&&r.index;u.ns=s,r=e.isArray(r)?{dataSource:r}:r,a.fn.init.call(u,n,r),u._focusHandler=function(){u.wrapper.focus()},r=u.options,n=u.element.on("focus"+s,u._focusHandler),u._reset(),u._word="",u._wrapper(),u._tabindex(),u._aria(),u._span(),u._popup(),u._mobile(),u._accessors(),u._dataSource(),u._enable(),u._cascade(),u.selectedIndex=-1,p!==t&&(r.index=p),r.autoBind?u.dataSource.fetch():(d=r.text,d||(o=u._optionLabelText(r.optionLabel),l=o&&0===r.index,n.is(c)?d=l?o:n.children(":selected").text():!n[0].value&&l&&(d=o)),u.text(d)),i.notify(u)},options:{name:"DropDownList",enable:!0,index:0,autoBind:!0,text:"",template:"",delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",ignoreCase:!0,animation:{}},events:["open","close",d,"select","dataBinding","dataBound"],setOptions:function(e){a.fn.setOptions.call(this,e),this._template(),this._accessors(),this._aria()},destroy:function(){var e=this;e.wrapper.off(s),e.element.off(s),e._inputWrapper.off(s),a.fn.destroy.call(e)},enable:function(e){var t=this,n=t.element,i=t.wrapper.off(s),r=t._inputWrapper.off(m);e===!1?(n.attr(l,l),r.removeClass(p).addClass(f)):(n.removeAttr(l,l),r.addClass(p).removeClass(f).on(m,t._toggleHover),i.on("touchend"+s+" click"+s,function(e){t._blured=!1,e.preventDefault(),t.toggle()}).on("keydown"+s,g(t._keydown,t)).on("keypress"+s,g(t._keypress,t)).on("focusin"+s,function(){r.addClass(u),t._blured=!1}).on("focusout"+s,function(){t._blured||(t._blur(),r.removeClass(u),t._blured=!0,n.blur())}))},open:function(){var e=this;e.ul[0].firstChild?(e.popup.open(),e._scroll(e._current)):(e._open=!0,e._request||e.dataSource.fetch())},toggle:function(e){this._toggle(e)},refresh:function(){var e=this,t=e._data(),n=t.length,r=e.options.optionLabel;e.trigger("dataBinding"),e._current&&e.current(null),e.ul[0].innerHTML=i.render(e.template,t),e._height(n),e.popup.visible()&&e.popup._position(),e.element.is(c)&&(r&&n&&(r=e._optionLabelText(r),r='<option value="">'+r+"</option>"),e._options(t,r)),e._open&&(e._open=!1,e.toggle(!!n)),e._hideBusy(),e._makeUnselectable(),!e._valueCalled&&t[0]&&e._selectItem(),e._valueCalled=!1,e.trigger("dataBound")
|
17
|
+
},search:function(e){if(e){var n=this,i=n.options.ignoreCase;i&&(e=e.toLowerCase()),n._select(function(r){var a=n._text(r);return a!==t?(a+="",i&&(a=a.toLowerCase()),0===a.indexOf(e)):t})}},select:function(e){var n=this;return e===t?n.selectedIndex:(n._select(e),n._old=n._accessor(),n._oldIndex=n.selectedIndex,t)},text:function(e){var n=this.span;return e===t?n.text():(n.text(e),t)},value:function(e){var n,i=this;return e===t?i._accessor():(null!==e&&(e=""+e),i._valueCalled=!0,e&&i._valueOnFetch(e)||(n=i._index(e),i.select(n>-1?n:0)),t)},_accept:function(e){this._focus(e)},_optionLabelText:function(){var e=this.options,t=e.dataTextField,n=e.optionLabel;return n&&t&&"object"==typeof n?this._text(n):n},_data:function(){var e=this,t=e.options,r=t.optionLabel,a=t.dataTextField,o=t.dataValueField,s=e.dataSource.view(),l=s.length,d=r,c=0;if(r&&l){for("object"==typeof r?d=r:a&&(d={},a=a.split("."),o=o.split("."),n(d,o,""),n(d,a,r)),d=new i.data.ObservableArray([d]);l>c;c++)d.push(s[c]);s=d}return s},_keydown:function(e){var t=this,n=e.keyCode,r=i.keys,a=t.ul[0];n===r.LEFT?n=r.UP:n===r.RIGHT&&(n=r.DOWN),e.keyCode=n,t._move(e),n===r.HOME?(e.preventDefault(),t._select(a.firstChild)):n===r.END&&(e.preventDefault(),t._select(a.lastChild))},_keypress:function(e){var t=this;setTimeout(function(){t._word+=String.fromCharCode(e.keyCode||e.charCode),t._search()})},_popup:function(){a.fn._popup.call(this),this.popup.one("open",function(){this.wrapper=i.wrap(this.element).addClass("km-popup")})},_search:function(){var e=this;clearTimeout(e._typing),e._typing=setTimeout(function(){e._word=""},e.options.delay),e.search(e._word)},_select:function(e){var n,i,a,o=this,s=o._current,l=o._data();e=o._get(e),e&&e[0]&&!e.hasClass(h)&&(s&&s.removeClass(h),a=r.List.inArray(e[0],o.ul[0]),a>-1&&(l=l[a],i=o._text(l),n=o._value(l),o.selectedIndex=a,o.text(i),o._accessor(n!==t?n:i,a),o.current(e.addClass(h)),o._optionID&&o._current.attr("aria-selected",!0)))},_mobile:function(){var e=this,t=e.popup,n=t.element.parents(".km-root").eq(0);n.length&&o&&(t.options.animation.open.effects=o.android||o.meego?"fadeIn":o.ios?"slideIn:up":t.options.animation.open.effects)},_span:function(){var t,n=this,i=n.wrapper,r="span.k-input";t=i.find(r),t[0]||(i.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input"> </span><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(n.element),t=i.find(r)),n.span=t,n._inputWrapper=e(i[0].firstChild),n._arrow=i.find(".k-icon").mousedown(function(e){e.preventDefault()})},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent(),e[0].style.cssText=i.style.cssText),n.hide(),t._focused=t.wrapper=e.addClass("k-widget k-dropdown k-header").addClass(i.className).css("display","").attr({unselectable:"on",role:"listbox","aria-haspopup":!0,"aria-expanded":!1})}});r.plugin(v)}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=n.ui,r=i.List,a=i.Select,o=n.support,s=o.placeholder,l=a.removeFiltersForField,d=n.keys,c=".kendoComboBox",u="touchend"+c+" click"+c,p="disabled",f="change",h="k-state-default",m="k-state-disabled",g="k-state-focused",v="mousedown"+c+" touchstart"+c,_="select",k="aria-disabled",b="k-state-selected",w="filter",y="accept",x="rebind",C="mouseenter"+c+" mouseleave"+c,T=null,S=e.proxy,F=a.extend({init:function(t,i){var r,o,s=this;s.ns=c,i=e.isArray(i)?{dataSource:i}:i,a.fn.init.call(s,t,i),s._focusHandler=function(){s.input.focus()},i=s.options,t=s.element.on("focus"+c,s._focusHandler),i.placeholder=i.placeholder||t.attr("placeholder"),s._reset(),s._wrapper(),s._input(),s._popup(),s._accessors(),s._dataSource(),s._enable(),s._cascade(),r=s._inputWrapper,s.input.on("keydown"+c,S(s._keydown,s)).on("focus"+c,function(){r.addClass(g),s._placeholder(!1)}).on("blur"+c,function(){r.removeClass(g),clearTimeout(s._typing),s.options.text!==s.input.val()&&s.text(s.text()),s._placeholder(),s._blur(),t.blur()}).attr({role:"combobox","aria-expanded":!1}),s._aria(),s._oldIndex=s.selectedIndex=-1,s._old=s.value(),i.autoBind?s._filterSource():(o=i.text,!o&&t.is(_)&&(o=t.children(":selected").text()),o&&s.input.val(o)),o||s._placeholder(),n.notify(s)},options:{name:"ComboBox",enable:!0,index:-1,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,template:"",filter:"none",placeholder:"",suggest:!1,ignoreCase:!0,animation:{}},events:["open","close",f,"select","dataBinding","dataBound"],setOptions:function(e){a.fn.setOptions.call(this,e),this._template(),this._accessors(),this._aria()},current:function(e){var n=this,i=n._current;return e===t?i:(i&&i.removeClass(b),a.fn.current.call(n,e),t)},destroy:function(){var e=this;e.input.off(c),e.element.off(c),e._inputWrapper.off(c),a.fn.destroy.call(e)},enable:function(e){var t=this,n=t.input.add(t.element),i=t._inputWrapper.off(C),r=t._arrow.parent().off(u+" "+v);e===!1?(i.removeClass(h).addClass(m),n.attr(p,p).attr(k,!0)):(i.removeClass(m).addClass(h).on(C,t._toggleHover),n.removeAttr(p).attr(k,!1),r.on(u,function(){t.toggle()}).on(v,function(e){e.preventDefault()}))},open:function(){var e=this,t=e.dataSource.options.serverFiltering;e.popup.visible()||(!e.ul[0].firstChild||e._state===y&&!t?(e._open=!0,e._state=x,e._filterSource()):(e.popup.open(),e._scroll(e._current)))},refresh:function(){var i,r,a,o=this,s=o.ul[0],l=o.options,d=o._state,c=o._data(),u=c.length;o.trigger("dataBinding"),s.innerHTML=n.render(o.template,c),o._height(u),o.popup.visible()&&o.popup._position(),o.element.is(_)&&(d===x&&(i=o.value(),o._state=""),a=o._option,o._option=t,o._options(c),a&&a[0].selected&&o._custom(a.val())),u&&(l.highlightFirst&&o.current(e(s.firstChild)),l.suggest&&o.input.val()&&o._valueCalled!==t&&o.suggest(e(s.firstChild))),o._open&&(o._open=!1,r=!!u,o._typing&&o.input[0]!==document.activeElement&&(r=!1),o.toggle(r),o._typing=t),o._touchScroller&&o._touchScroller.reset(),o._makeUnselectable(),(!o._valueCalled&&d!==w||d===x)&&o._selectItem(i),o._valueCalled=!1,o._hideBusy(),o.trigger("dataBound")},select:function(e){var n=this;return e===t?n.selectedIndex:(n._select(e),n._old=n._accessor(),n._oldIndex=n.selectedIndex,t)},search:function(e){e="string"==typeof e?e:this.text();var t=this,n=e.length,i=t.options,r=i.ignoreCase,a=i.filter,o=i.dataTextField;clearTimeout(t._typing),n>=i.minLength&&(t._state=w,"none"===a?t._filter(e):(t._open=!0,t._filterSource({value:r?e.toLowerCase():e,field:o,operator:a,ignoreCase:r})))},suggest:function(e){var n,i=this,a=i.input[0],o=i.text(),s=r.caret(a),l=i._last;return l==d.BACKSPACE||l==d.DELETE?(i._last=t,t):(e=e||"","string"!=typeof e&&(n=r.inArray(e[0],i.ul[0]),e=n>-1?i._text(i.dataSource.view()[n]):""),0>=s&&(s=o.toLowerCase().indexOf(e.toLowerCase())+1),e?(n=e.toLowerCase().indexOf(o.toLowerCase()),n>-1&&(o+=e.substring(n+o.length))):o=o.substring(0,s),o.length===s&&e||(a.value=o,r.selectText(a,s,o.length)),t)},text:function(e){e=null===e?"":e;var n,i=this,r=i._text,a=i.input[0],o=i.options.ignoreCase,s=e;return e===t?a.value:(n=i.dataItem(),n&&r(n)===e||(o&&(s=s.toLowerCase()),i._select(function(e){return e=r(e),o&&(e=(e+"").toLowerCase()),e===s}),0>i.selectedIndex&&(i._custom(e),a.value=e)),t)},toggle:function(e){var t=this;t._toggle(e)},value:function(e){var n,i=this;return e===t?i._accessor():(null!==e&&(e=""+e),i._valueCalled=!0,e&&i._valueOnFetch(e)||(n=i._index(e),n>-1?i.select(n):(i.current(T),i._custom(e),i.text(e),i._placeholder()),i._old=i._accessor(),i._oldIndex=i.selectedIndex),t)},_accept:function(e){var t=this;e&&t.popup.visible()?t._focus(e):(t.text(t.text()),t._change())},_custom:function(t){var n=this,i=n.element,r=n._option;n._state===w&&(n._state=y),i.is(_)?(r||(r=n._option=e("<option/>"),i.append(r)),r.text(t),r[0].selected=!0):i.val(t)},_filter:function(e){var n=this,i=n.options,r=n.dataSource,a=i.ignoreCase,o=function(i){var r=n._text(i);return r!==t?(r+="",""!==r&&""===e?!1:(a&&(r=r.toLowerCase()),0===r.indexOf(e))):t};return a&&(e=e.toLowerCase()),n.ul[0].firstChild?(-1!==n._highlight(o)&&(i.suggest&&n._current&&n.suggest(n._current),n.open()),n._hideBusy(),t):(r.one(f,function(){r.data()[0]&&n.search(e)}).fetch(),t)},_highlight:function(n){var i,a=this;return n===t||null===n?-1:(n=a._get(n),i=r.inArray(n[0],a.ul[0]),-1==i&&(n=a.options.highlightFirst&&!a.text()?e(a.ul[0].firstChild):T),a.current(n),i)},_input:function(){var t,n,i=this,r=i.element.removeClass("k-input")[0],a=r.tabIndex,o=r.accessKey,l=i.wrapper,d="input.k-input",c=r.name||"";c&&(c='name="'+c+'_input" '),t=l.find(d),t[0]||(l.append('<span tabindex="-1" unselectable="on" class="k-dropdown-wrap k-state-default"><input '+c+'class="k-input" type="text" autocomplete="off"/><span tabindex="-1" unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(i.element),t=l.find(d)),n=t[0],n.tabIndex=a,n.style.cssText=r.style.cssText,r.maxLength>-1&&(n.maxLength=r.maxLength),t.addClass(r.className).val(r.value).css({width:"100%",height:r.style.height}).show(),s&&t.attr("placeholder",i.options.placeholder),o&&(r.accessKey="",t[0].accessKey=o),i._focused=i.input=t,i._inputWrapper=e(l[0].firstChild),i._arrow=l.find(".k-icon").attr({role:"button",tabIndex:-1}),r.id&&i._arrow.attr("aria-controls",i.ul[0].id)},_keydown:function(e){var t=this,n=e.keyCode;t._last=n,clearTimeout(t._typing),n==d.TAB||t._move(e)||t._search()},_placeholder:function(e){if(!s){var n,i=this,r=i.input,a=i.options.placeholder;if(a){if(n=i.value(),e===t&&(e=!n),r.toggleClass("k-readonly",e),!e){if(n)return;a=""}r.val(a)}}},_search:function(){var e=this;e._typing=setTimeout(function(){var t=e.text();e._prev!==t&&(e._prev=t,e.search(t))},e.options.delay)},_select:function(e){var n,i,r=this,a=r._data(),o=r._highlight(e);r.selectedIndex=o,-1!==o&&(r._state===w&&(r._state=y),r._current.addClass(b),a=a[o],n=r._text(a),i=r._value(a),r._prev=r.input[0].value=n,r._accessor(i!==t?i:n,o),r._placeholder(),r._optionID&&r._current.attr("aria-selected",!0))},_filterSource:function(e){var t=this,n=t.options,i=t.dataSource,r=i.filter()||{};l(r,n.dataTextField),e&&(r=r.filters||[],r.push(e)),i.filter(r)},_wrapper:function(){var e=this,t=e.element,n=t.parent();n.is("span.k-widget")||(n=t.hide().wrap("<span />").parent(),n[0].style.cssText=t[0].style.cssText),e.wrapper=n.addClass("k-widget k-combobox k-header").addClass(t[0].className).css("display","")}});i.plugin(F)}(window.kendo.jQuery),function(e,t){function n(t){return e.trim(t).replace(/ /gi,"")}var i=window.kendo,r=i.ui,a=e.proxy,o=e.extend,s=e.grep,l=e.map,d=e.inArray,c="k-state-selected",u="asc",p="desc",f="change",h="kendoPopup",m="kendoFilterMenu",g="kendoMenu",v=".kendoColumnMenu",_=/(\[|\]|\$|\.|\:|\+)/g,k=r.Widget,b=k.extend({init:function(t,n){var r,o=this;k.fn.init.call(o,t,n),t=o.element,n=o.options,o.owner=n.owner,o.dataSource=n.dataSource,o.field=t.attr(i.attr("field")),r=t.find(".k-header-column-menu"),r[0]||(r=t.prepend('<a class="k-header-column-menu" href="#"><span class="k-icon k-i-arrowhead-s"/></a>').find(".k-header-column-menu")),o.link=r.attr("tabindex",-1).on("click"+v,a(o._click,o)),o.wrapper=e('<div class="k-column-menu"/>'),o.wrapper.html(i.template(w)({ns:i.ns,messages:n.messages,sortable:n.sortable,filterable:n.filterable,columns:o._ownerColumns(),showColumns:n.columns})),o.popup=o.wrapper[h]({anchor:r,open:a(o._open,o),activate:a(o._activate,o),close:o.options.closeCallback}).data(h),o._menu(),o._sort(),o._columns(),o._filter()},options:{name:"ColumnMenu",messages:{sortAscending:"Sort Ascending",sortDescending:"Sort Descending",filter:"Filter",columns:"Columns"},columns:!0,sortable:!0,filterable:!0},destroy:function(){var e=this;k.fn.destroy.call(e),e.filterMenu&&e.filterMenu.destroy(),e.dataSource.unbind("refresh",e._refreshHandler),e.options.columns&&(e.owner.unbind("columnShow",e._updateColumnsMenuHandler),e.owner.unbind("columnHide",e._updateColumnsMenuHandler)),e.menu.element.off(v),e.menu.destroy(),e.wrapper.off(v),e.popup.destroy(),e.link.off(v)},close:function(){this.menu.close(),this.popup.close(),this.popup.element.off("keydown"+v)},_click:function(e){e.preventDefault(),e.stopPropagation(),this.popup.toggle()},_open:function(){var t=this;e(".k-column-menu").not(t.wrapper).each(function(){e(this).data(h).close()}),t.popup.element.on("keydown"+v,function(e){e.keyCode==i.keys.ESC&&t.close()})},_activate:function(){this.menu.element.focus()},_ownerColumns:function(){var e=this.owner.columns,t=s(e,function(e){var t=!0,i=n(e.title||"");return(e.menu===!1||!e.field&&!i.length)&&(t=!1),t});return l(t,function(t){return{field:t.field||t.title,title:t.title||t.field,hidden:t.hidden,index:d(t,e)}})},_menu:function(){this.menu=this.wrapper.children()[g]({orientation:"vertical",closeOnClick:!1}).data(g)},_sort:function(){var t=this;t.options.sortable&&(t.refresh(),t._refreshHandler=a(t.refresh,t),t.dataSource.bind(f,t._refreshHandler),t.menu.element.on("click"+v,".k-sort-asc, .k-sort-desc",function(){var n=e(this),i=n.hasClass("k-sort-asc")?u:p;n.parent().find(".k-sort-"+(i==u?p:u)).removeClass(c),t._sortDataSource(n,i),t.close()}))},_sortDataSource:function(e,n){var i,r,a=this,o=a.options.sortable,s=a.dataSource,l=s.sort()||[];if(e.hasClass(c)&&o&&o.allowUnsort!==!1?(e.removeClass(c),n=t):e.addClass(c),o===!0||"single"===o.mode)l=[{field:a.field,dir:n}];else{for(i=0,r=l.length;r>i;i++)if(l[i].field===a.field){l.splice(i,1);break}l.push({field:a.field,dir:n})}s.sort(l)},_columns:function(){var t=this;t.options.columns&&(t._updateColumnsMenu(),t._updateColumnsMenuHandler=a(t._updateColumnsMenu,t),t.owner.bind(["columnHide","columnShow"],t._updateColumnsMenuHandler),t.menu.bind("select",function(n){var r,a,o,l,c=e(n.item),u=t.owner.columns;c.parent().closest("li.k-columns-item")[0]&&(r=c.find(":checkbox"),r.attr("disabled")||(l=r.attr(i.attr("field")),o=s(u,function(e){return e.field==l||e.title==l})[0],a=d(o,u),o.hidden===!0?t.owner.showColumn(a):t.owner.hideColumn(a)))}))},_updateColumnsMenu:function(){var e="["+i.attr("field")+"=",t=this._ownerColumns(),n=l(t,function(t){return e+t.field.replace(_,"\\$1")+"]"}).join(","),r=s(t,function(e){return!e.hidden}),a=l(r,function(t){return e+t.field.replace(_,"\\$1")+"]"}).join(",");this.wrapper.find(n).attr("checked",!1),this.wrapper.find(a).attr("checked",!0).attr("disabled",1==r.length)},_filter:function(){var e=this,t=e.options;t.filterable!==!1&&(e.filterMenu=e.wrapper.find(".k-filterable")[m](o(!0,{},{appendToElement:!0,dataSource:t.dataSource,values:t.values,field:e.field},t.filterable)).data(m))},refresh:function(){var e,t,n,i=this,r=i.options.dataSource.sort()||[],a=i.field;for(i.wrapper.find(".k-sort-asc, .k-sort-desc").removeClass(c),t=0,n=r.length;n>t;t++)e=r[t],a==e.field&&i.wrapper.find(".k-sort-"+e.dir).addClass(c)}}),w='<ul>#if(sortable){#<li class="k-item k-sort-asc"><span class="k-link"><span class="k-sprite k-i-sort-asc"></span>${messages.sortAscending}</span></li><li class="k-item k-sort-desc"><span class="k-link"><span class="k-sprite k-i-sort-desc"></span>${messages.sortDescending}</span></li>#if(showColumns || filterable){#<li class="k-separator"></li>#}##}##if(showColumns){#<li class="k-item k-columns-item"><span class="k-link"><span class="k-sprite k-i-columns"></span>${messages.columns}</span><ul>#for (var col in columns) {#<li><input type="checkbox" data-#=ns#field="#=columns[col].field#" data-#=ns#index="#=columns[col].index#"/>#=columns[col].title#</li>#}#</ul></li>#if(filterable){#<li class="k-separator"></li>#}##}##if(filterable){#<li class="k-item k-filter-item"><span class="k-link"><span class="k-sprite k-filter"></span>${messages.filter}</span><ul><li><div class="k-filterable"></div></li></ul></li>#}#</ul>';r.plugin(b)}(window.kendo.jQuery),function(e,t){function n(e){return Array(e+1).join('<td class="k-group-cell"> </td>')}function i(e){var t,n=" ";if(e){if(typeof e===at)return e;for(t in e)n+=t+'="'+e[t]+'"'}return n}function r(t){var n=0;return e("> .k-grouping-header, > .k-grid-toolbar",t).each(function(){n+=this.offsetHeight}),n}function a(t,n){e("th, th .k-grid-filter, th .k-link",t).add(document.body).css("cursor",n)}function o(e){var t,n,i={},r={};if(!A(e))for(S(e)||(e=[e]),t=0,n=e.length;n>t;t++)i[e[t].aggregate]=0,r[e[t].field]=i;return r}function s(e,t,n){var i=e.eq(t),r=e.eq(n);i[t>n?"insertBefore":"insertAfter"](r)}function l(e,t,n){var i,r,a,o;for(n=S(n)?n:[n],i=0,r=n.length;r>i;i++)a=n[i],y(a)&&a.click&&(o=a.name||a.text,t.on("touchend "+tt,"a.k-grid-"+(o||"").replace(/\s/g,""),{commandName:o},D(a.click,e)))}function d(e){return T(e,function(e){return!e.hidden})}function c(e){e=e||{};var t=e.style;return t?(t=t.replace(/((.*)?display)(.*)?:([^;]*)/i,"$1:none"),t===e.style&&(t=t.replace(/(.*)?/i,"display:none;$1"))):t="display:none",x({},e,{style:t})}function u(e){e=e||{};var t=e.style;return t&&(e.style=t.replace(/(display\s*:\s*none\s*;?)*/gi,"")),e}function p(t,n,i,r){var a,o=t.find(">colgroup"),s=C(n,function(e){return a=e.width,a&&0!==parseInt(a,10)?m.format('<col style="width:{0}"/>',typeof a===at?a:a+"px"):"<col />"});(i||o.find(".k-hierarchy-col").length)&&s.splice(0,0,'<col class="k-hierarchy-col" />'),o.length&&o.remove(),o=e("<colgroup/>").append(e(Array(r+1).join('<col class="k-group-col">')+s.join(""))),t.prepend(o)}function f(e,t){var n,i,r;if(typeof e===at&&e===t)return e;if(y(e)&&e.name===t)return e;if(S(e))for(n=0,i=e.length;i>n;n++)if(r=e[n],typeof r===at&&r===t||r.name===t)return r;return null}function h(t){var n=e(t.currentTarget),i=n.closest("table")[0];(i===this.table[0]||i===this.thead.parent()[0])&&(this.current(n),(n.is("th")||!e(t.target).is(":button,a,:input,a>.k-icon,textarea,span.k-icon,.k-input"))&&setTimeout(function(){i.focus()}),n.is("th")&&t.preventDefault())}var m=window.kendo,g=m.ui,v=m.data.DataSource,_=g.Groupable,k=m.support.tbodyInnerHtml,b=g.Widget,w=m.keys,y=e.isPlainObject,x=e.extend,C=e.map,T=e.grep,S=e.isArray,F=e.inArray,D=e.proxy,E=e.isFunction,A=e.isEmptyObject,N=Math,I="requestStart",R="error",H=":not(.k-group-cell):not(.k-hierarchy-cell):visible",z="tbody>tr:not(.k-grouping-row):not(.k-detail-row):not(.k-group-footer) > td:not(.k-group-cell):not(.k-hierarchy-cell)",O="tr:not(.k-footer-template):visible",M=":not(.k-group-cell):not(.k-hierarchy-cell):visible",P=O+":first>"+M+":first",B=".kendoGrid",L="edit",U="save",W="remove",q="detailInit",V="change",j="columnHide",$="columnShow",G="saveChanges",Y="dataBound",K="detailExpand",Q="detailCollapse",J="k-state-focused",X="k-state-selected",Z="columnResize",et="columnReorder",tt="click",nt="height",it="tabIndex",rt="function",at="string",ot="Are you sure you want to delete this record?",st=/(\}|\#)/gi,lt=3,dt=/#/gi,ct='<a class="k-button k-button-icontext #=className#" #=attr# href="\\#"><span class="#=iconClass# #=imageClass#"></span>#=text#</a>',ut=!1,pt=b.extend({init:function(e,t){var n=this;b.fn.init.call(n,e,t),n._refreshHandler=D(n.refresh,n),n.setDataSource(t.dataSource),n.wrap()},setDataSource:function(e){var t=this;t.dataSource&&t.dataSource.unbind(V,t._refreshHandler),t.dataSource=e,t.dataSource.bind(V,t._refreshHandler)},options:{name:"VirtualScrollable",itemHeight:e.noop},destroy:function(){var e=this;b.fn.destroy.call(e),e.dataSource.unbind(V,e._refreshHandler),e.wrapper.add(e.verticalScrollbar).off(B),e.drag&&e.drag.destroy()},wrap:function(){var t,n=this,i=m.support.scrollbar()+1,r=n.element;r.css({width:"auto",overflow:"hidden"}).css(ut?"padding-left":"padding-right",i),n.content=r.children().first(),t=n.wrapper=n.content.wrap('<div class="k-virtual-scrollable-wrap"/>').parent().bind("DOMMouseScroll"+B+" mousewheel"+B,D(n._wheelScroll,n)),m.support.kineticScrollNeeded&&(n.drag=new m.UserEvents(n.wrapper,{global:!0,move:function(e){n.verticalScrollbar.scrollTop(n.verticalScrollbar.scrollTop()-e.y.delta),t.scrollLeft(t.scrollLeft()-e.x.delta),e.preventDefault()}})),n.verticalScrollbar=e('<div class="k-scrollbar k-scrollbar-vertical" />').css({width:i}).appendTo(r).bind("scroll"+B,D(n._scroll,n))},_wheelScroll:function(e){var n,i=this,r=i.verticalScrollbar.scrollTop(),a=e.originalEvent,o=a.wheelDeltaY;a.wheelDelta?(o===t||o)&&(n=a.wheelDelta):a.detail&&a.axis===a.VERTICAL_AXIS&&(n=10*-a.detail),n&&(e.preventDefault(),i.verticalScrollbar.scrollTop(r+-n))},_scroll:function(e){var t=this,n=e.currentTarget.scrollTop,i=t.dataSource,r=t.itemHeight,a=i.skip()||0,o=t._rangeStart||a,s=t.element.innerHeight(),l=!!(t._scrollbarTop&&t._scrollbarTop>n),d=N.max(N.floor(n/r),0),c=N.max(d+N.floor(s/r),0);t._scrollTop=n-o*r,t._scrollbarTop=n,t._fetch(d,c,l)||(t.wrapper[0].scrollTop=t._scrollTop)},_fetch:function(e,t,n){var i=this,r=i.dataSource,a=i.itemHeight,o=r.take(),s=i._rangeStart||r.skip()||0,l=N.floor(e/o)*o,d=!1,c=.33;return s>e?(d=!0,s=N.max(0,t-o),i._scrollTop=(e-s)*a,i._page(s,o)):t>=s+o&&!n?(d=!0,s=e,i._scrollTop=a,i._page(s,o)):i._fetching||(l+o-o*c>e&&e>o&&r.prefetch(l-o,o),t>l+o*c&&r.prefetch(l+o,o)),d},_page:function(e,t){var n=this,i=n.dataSource;clearTimeout(n._timeout),n._fetching=!0,n._rangeStart=e,i.inRange(e,t)?i.range(e,t):(m.ui.progress(n.wrapper.parent(),!0),n._timeout=setTimeout(function(){i.range(e,t)},100))},refresh:function(){var e,t,n,i=this,r="",a=25e4,o=i.dataSource,s=i._rangeStart,l=m.support.kineticScrollNeeded?0:m.support.scrollbar(),d=i.wrapper[0];m.ui.progress(i.wrapper.parent(),!1),clearTimeout(i._timeout),n=i.itemHeight=i.options.itemHeight()||0;var c=d.scrollWidth>d.offsetWidth?l:0;for(e=o.total()*n+c,t=0;N.floor(e/a)>t;t++)r+='<div style="width:1px;height:'+a+'px"></div>';e%a&&(r+='<div style="width:1px;height:'+e%a+'px"></div>'),i.verticalScrollbar.html(r),d.scrollTop=i._scrollTop,i.drag&&i.drag.cancel(),s&&!i._fetching&&(i._rangeStart=o.skip()),i._fetching=!1}}),ft={create:{text:"Add new record",imageClass:"k-add",className:"k-grid-add",iconClass:"k-icon"},cancel:{text:"Cancel changes",imageClass:"k-cancel",className:"k-grid-cancel-changes",iconClass:"k-icon"},save:{text:"Save changes",imageClass:"k-update",className:"k-grid-save-changes",iconClass:"k-icon"},destroy:{text:"Delete",imageClass:"k-delete",className:"k-grid-delete",iconClass:"k-icon"},edit:{text:"Edit",imageClass:"k-edit",className:"k-grid-edit",iconClass:"k-icon"},update:{text:"Update",imageClass:"k-update",className:"k-grid-update",iconClass:"k-icon"},canceledit:{text:"Cancel",imageClass:"k-cancel",className:"k-grid-cancel",iconClass:"k-icon"}},ht=b.extend({init:function(e,t){var n=this;t=S(t)?{dataSource:t}:t,b.fn.init.call(n,e,t),ut=m.support.isRtl(e),n._element(),n._aria(),n._columns(n.options.columns),n._dataSource(),n._tbody(),n._pageable(),n._thead(),n._groupable(),n._toolbar(),n._setContentHeight(),n._templates(),n._navigatable(),n._selectable(),n._details(),n._editable(),n._attachCustomCommandsEvent(),n.options.autoBind?n.dataSource.fetch():n._footer(),m.notify(n)},events:[V,"dataBinding",Y,K,Q,q,L,U,W,G,Z,et,$,j],setDataSource:function(e){var t=this;t.options.dataSource=e,t._dataSource(),t._pageable(),t.options.groupable&&t._groupable(),t._thead(),t.virtualScrollable&&t.virtualScrollable.setDataSource(t.options.dataSource),t.options.autoBind&&e.fetch()},options:{name:"Grid",columns:[],toolbar:null,autoBind:!0,filterable:!1,scrollable:!0,sortable:!1,selectable:!1,navigatable:!1,pageable:!1,editable:!1,groupable:!1,rowTemplate:"",altRowTemplate:"",dataSource:{},height:null,resizable:!1,reorderable:!1,columnMenu:!1,detailTemplate:null},destroy:function(){var t=this;b.fn.destroy.call(t),t.pager&&t.pager.destroy(),t.groupable&&t.groupable.destroy(),t.virtualScrollable&&t.virtualScrollable.destroy(),t.thead.find("th").each(function(){var t=e(this),n=t.data("kendoFilterMenu"),i=t.data("kendoSortable"),r=t.data("kendoColumnMenu");n&&n.destroy(),i&&i.destroy(),r&&r.destroy()}),t._destroyEditable(),t.dataSource.unbind(V,t._refreshHandler).unbind(I,t._requestStartHandler).unbind(R,t._errorHandler),t.element.add(t.wrapper).add(t.table).add(t.thead).add(t.wrapper.find(">.k-grid-toolbar")),t.content&&t.element.add(t.content).add(t.content.find(">.k-virtual-scrollable-wrap")),t.element.off(B),m.destroy(t.wrapper)},setOptions:function(e){var t=this;b.fn.setOptions.call(this,e),t._templates()},items:function(){return this.tbody.children(":not(.k-grouping-row,.k-detail-row,.k-group-footer)")},_attachCustomCommandsEvent:function(){var e,t,n,i=this,r=i.columns||[];for(t=0,n=r.length;n>t;t++)e=r[t].command,e&&l(i,i.wrapper,e)},_aria:function(){var e=this.element.attr("id")||"aria";e&&(this._cellId=e+"_active_cell")},_element:function(){var t=this,n=t.element;n.is("table")||(n=t.options.scrollable?t.element.find("> .k-grid-content > table"):t.element.children("table"),n.length||(n=e("<table />").appendTo(t.element))),t.table=n.attr("cellspacing",0).attr("role",t._hasDetails()?"treegrid":"grid"),t._wrapper()},_positionColumnResizeHandle:function(t){var n,i=this,o=i.options.scrollable,s=i.resizeHandle;i.thead.on("mousemove"+B,"th:not(.k-group-cell,.k-hierarchy-cell)",function(l){var d=e(this),c=l.clientX,u=e(window).scrollLeft(),p=d.offset().left+(ut?0:this.offsetWidth);if(c+u>p-lt&&p+lt>c+u){if(s||(s=i.resizeHandle=e('<div class="k-resize-handle"/>'),t.append(s)),ut){var f=d.closest(".k-grid-header-wrap"),h=e.browser.msie?f.scrollLeft():0,m=e.browser.webkit?f[0].scrollWidth-f[0].offsetWidth-f.scrollLeft():0,g=e.browser.mozilla?f[0].scrollWidth-f[0].offsetWidth-(f[0].scrollWidth-f[0].offsetWidth-f.scrollLeft()):0;n=d.position().left-m+g-h}else n=this.offsetWidth,d.prevAll(":visible").each(function(){n+=this.offsetWidth});s.css({top:o?0:r(i.wrapper),left:n-lt,height:d.outerHeight(),width:3*lt}).data("th",d).show()}else s?s.hide():a(i.wrapper,"")})},_resizable:function(){var t,n,i,r,o,s=this,l=s.options;l.resizable&&(t=l.scrollable?s.wrapper.find(".k-grid-header-wrap:first"):s.wrapper,s._positionColumnResizeHandle(t),t.kendoResizable({handle:".k-resize-handle",hint:function(t){return e('<div class="k-grid-resize-indicator" />').css({height:t.data("th").outerHeight()+s.tbody.attr("clientHeight")})},start:function(t){var d=e(t.currentTarget).data("th"),c=e.inArray(d[0],d.parent().children(":visible")),u=s.tbody.parent(),p=s.footer||e();a(s.wrapper,"col-resize"),o=l.scrollable?s.thead.parent().find("col:eq("+c+")").add(u.children("colgroup").find("col:eq("+c+")")).add(p.find("colgroup").find("col:eq("+c+")")):u.children("colgroup").find("col:eq("+c+")"),n=t.x.location,i=d.outerWidth(),r=s.tbody.outerWidth()},resize:function(t){var a=ut?-1:1,d=i+t.x.location*a-n*a,c=s.footer||e();d>10&&(o.css("width",d),l.scrollable&&(s._footerWidth=r+t.x.location*a-n*a,s.tbody.parent().add(s.thead.parent()).add(c.find("table")).css("width",s._footerWidth)))},resizeend:function(t){var n,r=e(t.currentTarget).data("th"),o=r.outerWidth();a(s.wrapper,""),i!=o&&(n=s.columns[r.parent().find("th:not(.k-group-cell,.k-hierarchy-cell)").index(r)],n.width=o,s.trigger(Z,{column:n,oldWidth:i,newWidth:o})),s.resizeHandle.hide()}}))},_draggable:function(){var t=this;t.options.reorderable&&(t._draggableInstance=t.wrapper.kendoDraggable({group:m.guid(),filter:".k-header:not(.k-group-cell,.k-hierarchy-cell)",hint:function(t){return e('<div class="k-header k-drag-clue" />').css({width:t.width(),paddingLeft:t.css("paddingLeft"),paddingRight:t.css("paddingRight"),lineHeight:t.height()+"px",paddingTop:t.css("paddingTop"),paddingBottom:t.css("paddingBottom")}).html(t.attr(m.attr("title"))||t.attr(m.attr("field"))||t.text()).prepend('<span class="k-icon k-drag-status k-denied" />')}}).data("kendoDraggable"))},_reorderable:function(){var e=this;e.options.reorderable&&e.thead.kendoReorderable({draggable:e._draggableInstance,change:function(t){var n=F(e.columns[t.newIndex],e.columns),i=e.columns[t.oldIndex];e.trigger(et,{newIndex:n,oldIndex:F(i,e.columns),column:i}),e.reorderColumn(n,i)}})},reorderColumn:function(e,t){var n,i,r,a=this,o=F(t,a.columns),l=F(t,d(a.columns)),c=a.footer||a.wrapper.find(".k-grid-footer");if(o!==e)for(a.columns.splice(o,1),a.columns.splice(e,0,t),a._templates(),s(a.thead.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),l,e),a.options.scrollable&&s(a.tbody.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),l,e),s(a.thead.find(".k-header:not(.k-group-cell,.k-hierarchy-cell)"),o,e),c&&c.length&&(s(c.find(".k-grid-footer-wrap>table>colgroup>col:not(.k-group-col,.k-hierarchy-col)"),l,e),s(c.find(".k-footer-template>td:not(.k-group-cell,.k-hierarchy-cell)"),o,e)),n=a.tbody.children(":not(.k-grouping-row,.k-detail-row)"),i=0,r=n.length;r>i;i+=1)s(n.eq(i).find(">td:not(.k-group-cell,.k-hierarchy-cell)"),o,e)},cellIndex:function(t){return e(t).parent().children("td:not(.k-group-cell,.k-hierarchy-cell)").index(t)},_modelForContainer:function(t){t=e(t),t.is("tr")||"popup"===this._editMode()||(t=t.closest("tr"));var n=t.attr(m.attr("uid"));return this.dataSource.getByUid(n)},_editable:function(){var t=this,n=t.options.editable,i=function(){var n=document.activeElement,i=t._editContainer;!i||e.contains(i[0],n)||i[0]===n||e(n).closest(".k-animation-container").length||t.editable.end()&&t.closeCell()};if(n){var r=t._editMode();"incell"===r?n.update!==!1&&t.wrapper.on("touchend"+B+" "+tt+B,"tr:not(.k-grouping-row) > td",function(n){var i=e(this);i.hasClass("k-hierarchy-cell")||i.hasClass("k-detail-cell")||i.hasClass("k-group-cell")||i.hasClass("k-edit-cell")||i.has("a.k-grid-delete").length||i.has("button.k-grid-delete").length||i.closest("tbody")[0]!==t.tbody[0]||e(n.target).is(":input")||(t.editable?t.editable.end()&&(t.closeCell(),t.editCell(i)):t.editCell(i))}).on("focusin"+B,function(){clearTimeout(t.timer),t.timer=null}).on("focusout"+B,function(){t.timer=setTimeout(i,1)}):n.update!==!1&&t.wrapper.on("touchend"+B+" "+tt+B,"tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit",function(n){n.preventDefault(),t.editRow(e(this).closest("tr"))}),n.destroy!==!1?t.wrapper.on("touchend"+B+" "+tt+B,"tbody>tr:not(.k-detail-row,.k-grouping-row):visible .k-grid-delete",function(n){n.preventDefault(),n.stopPropagation(),t.removeRow(e(this).closest("tr"))}):t.wrapper.on("touchend"+B+" "+tt+B,"tbody>tr:not(.k-detail-row,.k-grouping-row):visible button.k-grid-delete",function(e){t._confirmation()||e.preventDefault()})}},editCell:function(e){var t=this,n=t.columns[t.cellIndex(e)],i=t._modelForContainer(e);!i||i.editable&&!i.editable(n.field)||n.command||!n.field||(t._attachModelChange(i),t._editContainer=e,t.editable=e.addClass("k-edit-cell").kendoEditable({fields:{field:n.field,format:n.format,editor:n.editor,values:n.values},model:i,change:function(n){t.trigger(U,{values:n.values,container:e,model:i})&&n.preventDefault()}}).data("kendoEditable"),e.parent().addClass("k-grid-edit-row"),t.trigger(L,{container:e,model:i}))},_destroyEditable:function(){var e=this,t=function(){e.editable&&(e._detachModelChange(),e.editable.destroy(),e.editable=null,e._editContainer=null)};e.editable&&("popup"===e._editMode()?e._editContainer.data("kendoWindow").bind("deactivate",t).close():t())},_attachModelChange:function(e){var t=this;t._modelChangeHandler=function(e){t._modelChange({field:e.field,model:this})},e.bind("change",t._modelChangeHandler)},_detachModelChange:function(){var e=this,t=e._editContainer,n=e._modelForContainer(t);n&&n.unbind(V,e._modelChangeHandler)},closeCell:function(){var t=this,n=t._editContainer.removeClass("k-edit-cell"),i=n.closest("tr").attr(m.attr("uid")),r=t.columns[t.cellIndex(n)],a=t.dataSource.getByUid(i);n.parent().removeClass("k-grid-edit-row"),t._destroyEditable(),t._displayCell(n,r,a),n.hasClass("k-dirty-cell")&&e('<span class="k-dirty"/>').prependTo(n)},_displayCell:function(e,t,n){var i=this,r={storage:{},count:0},a=x({},m.Template,i.options.templateSettings),o=m.template(i._cellTmpl(t,r),a);r.count>0&&(o=D(o,r.storage)),e.empty().html(o(n))},removeRow:function(t){var n,i,r=this;r._confirmation()&&(t=e(t).hide(),n=r._modelForContainer(t),n&&!r.trigger(W,{row:t,model:n})&&(r.dataSource.remove(n),i=r._editMode(),("inline"===i||"popup"===i)&&r.dataSource.sync()))
|
18
|
+
},_editMode:function(){var e="incell",t=this.options.editable;return t!==!0&&(e="string"==typeof t?t:t.mode||e),e},editRow:function(n){var i,r=this,a=r._modelForContainer(n),o=r._editMode(),s=r.options.navigatable;r.cancelRow(),a&&(r._attachModelChange(a),"popup"===o?r._createPopupEditor(a):"inline"===o?r._createInlineEditor(n,a):"incell"===o&&e(n).children(H).each(function(){var n=e(this),i=r.columns[n.index()];return a=r._modelForContainer(n),a&&(!a.editable||a.editable(i.field))&&i.field?(r.editCell(n),!1):t}),i=r._editContainer,i.on("touchend"+B+" "+tt+B,"a.k-grid-cancel",function(t){t.preventDefault(),t.stopPropagation();var n=r.items().index(e(r.current()).parent());r.cancelRow(),s&&(r.current(r.items().eq(n).children().filter(M).first()),r.table.focus())}),i.on("touchend"+B+" "+tt+B,"a.k-grid-update",function(e){e.preventDefault(),e.stopPropagation(),r.saveRow()}))},_createPopupEditor:function(t){var n,i,r,a,o,s,l,d,c=this,u="<div "+m.attr("uid")+'="'+t.uid+'"><div class="k-edit-form-container">',p=[],h=c.options.editable,g=h.template,v=y(h)?h.window:{},_=x({},m.Template,c.options.templateSettings);if(g)for(typeof g===at&&(g=window.unescape(g)),u+=m.template(g,_)(t),r=0,a=c.columns.length;a>r;r++)n=c.columns[r],n.command&&(i=f(n.command,"edit"));else for(r=0,a=c.columns.length;a>r;r++)if(n=c.columns[r],n.command)n.command&&(i=f(n.command,"edit"));else if(u+='<div class="k-edit-label"><label for="'+n.field+'">'+(n.title||n.field||"")+"</label></div>",t.editable&&!t.editable(n.field)||!n.field){var k={storage:{},count:0};o=m.template(c._cellTmpl(n,k),_),k.count>0&&(o=D(o,k.storage)),u+='<div class="k-edit-field">'+o(t)+"</div>"}else p.push({field:n.field,format:n.format,editor:n.editor,values:n.values}),u+="<div "+m.attr("container-for")+'="'+n.field+'" class="k-edit-field"></div>';i&&y(i)&&(i.text&&y(i.text)&&(s=i.text.update,l=i.text.cancel),i.attr&&(d=i.attr)),u+=c._createButton({name:"update",text:s,attr:d})+c._createButton({name:"canceledit",text:l,attr:d}),u+="</div></div>";var b=c._editContainer=e(u).appendTo(c.wrapper).eq(0).kendoWindow(x({modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1,close:function(e){e.userTriggered&&c.cancelRow()}},v));c.editable=c._editContainer.kendoEditable({fields:p,model:t,clearContainer:!1}).data("kendoEditable"),b.data("kendoWindow").center().open(),c.trigger(L,{container:b,model:t})},_createInlineEditor:function(t,n){var i,r,a,o=this,s=[];t.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){if(r=e(this),i=o.columns[o.cellIndex(r)],i.command||!i.field||n.editable&&!n.editable(i.field)){if(i.command&&(a=f(i.command,"edit"))){r.empty();var t,l,d;y(a)&&(a.text&&y(a.text)&&(t=a.text.update,l=a.text.cancel),a.attr&&(d=a.attr)),e(o._createButton({name:"update",text:t,attr:d})+o._createButton({name:"canceledit",text:l,attr:d})).appendTo(r)}}else s.push({field:i.field,format:i.format,editor:i.editor,values:i.values}),r.attr("data-container-for",i.field),r.empty()}),o._editContainer=t,o.editable=t.addClass("k-grid-edit-row").kendoEditable({fields:s,model:n,clearContainer:!1}).data("kendoEditable"),o.trigger(L,{container:t,model:n})},cancelRow:function(){var e,t=this,n=t._editContainer;n&&(e=t._modelForContainer(n),t.dataSource.cancelChanges(e),"popup"!==t._editMode()?t._displayRow(n):t._displayRow(t.items().filter("["+m.attr("uid")+"="+e.uid+"]")),t._destroyEditable())},saveRow:function(){var e=this,t=e._editContainer,n=e._modelForContainer(t),i=e.editable;t&&i&&i.end()&&!e.trigger(U,{container:t,model:n})&&e.dataSource.sync()},_displayRow:function(t){var n=this,i=n._modelForContainer(t);i&&t.replaceWith(e((t.hasClass("k-alt")?n.altRowTemplate:n.rowTemplate)(i)))},_showMessage:function(e){return window.confirm(e)},_confirmation:function(){var e=this,t=e.options.editable,n=t===!0||typeof t===at?ot:t.confirmation;return n!==!1&&null!=n?e._showMessage(n):!0},cancelChanges:function(){this.dataSource.cancelChanges()},saveChanges:function(){var e=this;(e.editable&&e.editable.end()||!e.editable)&&!e.trigger(G)&&e.dataSource.sync()},addRow:function(){var e,t=this,n=t.dataSource,i=t._editMode(),r=t.options.editable.createAt||"",a=n.pageSize(),o=n.view()||[];if(t.editable&&t.editable.end()||!t.editable){"incell"!=i&&t.cancelRow(),e=n.indexOf(o[0]),"bottom"==r.toLowerCase()&&(e+=o.length,a&&!n.options.serverPaging&&o.length>=a&&(e-=1)),0>e&&(e=0);var s=n.insert(e,{}),l=s.uid,d=t.table.find("tr["+m.attr("uid")+"="+l+"]"),c=d.children("td:not(.k-group-cell,.k-hierarchy-cell)").first();"inline"!==i&&"popup"!==i||!d.length?c.length&&t.editCell(c):t.editRow(d)}},_toolbar:function(){var t,n,i=this,r=i.wrapper,a=i.options.toolbar,o=i.options.editable;a&&(t=i.wrapper.find(".k-grid-toolbar"),t.length||(a=E(a)?a({}):typeof a===at?a:i._toolbarTmpl(a).replace(dt,"\\#"),n=D(m.template(a),i),t=e('<div class="k-toolbar k-grid-toolbar" />').html(n({})).prependTo(r)),o&&o.create!==!1&&t.on("touchend"+B+" "+tt+B,".k-grid-add",function(e){e.preventDefault(),i.addRow()}).on("touchend"+B+" "+tt+B,".k-grid-cancel-changes",function(e){e.preventDefault(),i.cancelChanges()}).on("touchend"+B+" "+tt+B,".k-grid-save-changes",function(e){e.preventDefault(),i.saveChanges()}))},_toolbarTmpl:function(e){var t,n,i=this,r="";if(S(e))for(t=0,n=e.length;n>t;t++)r+=i._createButton(e[t]);return r},_createButton:function(e){var t=e.template||ct,n=typeof e===at?e:e.name||e.text,r={className:"k-grid-"+(n||"").replace(/\s/g,""),text:n,imageClass:"",attr:"",iconClass:""};if(!(n||y(e)&&e.template))throw Error("Custom commands should have name specified");return y(e)?(e.className&&(e.className+=" "+r.className),"edit"===n&&y(e.text)&&(e=x(!0,{},e),e.text=e.text.edit),e.attr&&y(e.attr)&&(e.attr=i(e.attr)),r=x(!0,r,ft[n],e)):r=x(!0,r,ft[n]),m.template(t)(r)},_groupable:function(){var t=this;t.table.on("touchend"+B+" "+tt+B,".k-grouping-row .k-i-collapse, .k-grouping-row .k-i-expand",function(n){var i=e(this),r=i.closest("tr");i.hasClass("k-i-collapse")?t.collapseGroup(r):t.expandGroup(r),n.preventDefault(),n.stopPropagation()}),t._attachGroupable()},_attachGroupable:function(){var t=this,n=t.wrapper,i=t.options.groupable;i&&(n.has("div.k-grouping-header")[0]||e("<div />").addClass("k-grouping-header").prependTo(n),t.groupable&&t.groupable.destroy(),t.groupable=new _(n,x({},i,{draggable:t._draggableInstance,groupContainer:">div.k-grouping-header",dataSource:t.dataSource,filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+m.attr("field")+"]",allowDrag:t.options.reorderable})))},_selectable:function(){var e,t,n=this,i=n.options.selectable;i&&(e=typeof i===at&&i.toLowerCase().indexOf("multiple")>-1,t=typeof i===at&&i.toLowerCase().indexOf("cell")>-1,n.selectable=new m.ui.Selectable(n.table,{filter:">"+(t?z:"tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)"),aria:!0,multiple:e,change:function(){n.trigger(V)}}),n.options.navigatable&&n.table.on("keydown"+B,function(i){var r=n.current();i.keyCode===w.SPACEBAR&&i.target==n.table[0]&&!r.is(".k-edit-cell,.k-header")&&r.parent().is(":not(.k-grouping-row,.k-detail-row,.k-group-footer)")&&(i.preventDefault(),i.stopPropagation(),r=t?r:r.parent(),e?i.ctrlKey?r.hasClass(X)&&(r.removeClass(X),r=null):n.selectable.clear():n.selectable.clear(),n.selectable.value(r))}))},clearSelection:function(){var e=this;e.selectable.clear(),e.trigger(V)},select:function(n){var i=this,r=i.selectable;return n=e(n),n.length?(r.options.multiple||(r.clear(),n=n.first()),r.value(n),t):r.value()},current:function(e){var n=this,i=n.options.scrollable,r=n._current,a=n.table.add(n.thead.parent());return e!==t&&e.length&&(r&&r[0]===e[0]||(r&&(r.removeClass(J).removeAttr("id"),a.removeAttr("aria-activedescendant")),e.attr("id",n._cellId),n._current=e.addClass(J),a.attr("aria-activedescendant",n._cellId),e.length&&i&&(n._scrollTo(e.parent()[0],n.content[0]),i.virtual?n._scrollTo(e[0],n.content.find(">.k-virtual-scrollable-wrap")[0]):n._scrollTo(e[0],n.content[0])))),n._current},_removeCurrent:function(){this._current&&(this._current.removeClass(J),this._current=null)},_scrollTo:function(e,t){var n="td"===e.tagName.toLowerCase(),i=e[n?"offsetLeft":"offsetTop"],r=e[n?"offsetWidth":"offsetHeight"],a=t[n?"scrollLeft":"scrollTop"],o=t[n?"clientWidth":"clientHeight"],s=i+r;t[n?"scrollLeft":"scrollTop"]=a>i?i:s>a+o?s-o:a},_navigatable:function(){var t=this,n=D(t.current,t),i=t.table,r=t.thead.parent(),a=i;t.options.navigatable&&(t.options.scrollable&&(a=i.add(r),r.attr(it,-1)),r.on("keydown"+B,function(e){e.altKey&&e.keyCode==w.DOWN&&(n().find(".k-grid-filter, .k-header-column-menu").click(),e.stopImmediatePropagation())}).find("a.k-link").attr("tabIndex",-1),i.attr(it,N.max(i.attr(it)||0,0)).on("mousedown"+B+" keydown"+B,".k-detail-cell",function(e){e.target!==e.currentTarget&&e.stopImmediatePropagation()}),a.on("mousedown"+B,O+">"+M,D(h,t)).on("focus"+B,function(){var t=n();t&&t.is(":visible")?t.addClass(J):n(e(this).find(P)),this==i[0]?(r.attr(it,-1),i.attr(it,0)):(i.attr(it,-1),r.attr(it,0))}).on("focusout"+B,function(){var e=n();e&&e.removeClass(J)}).on("keydown"+B,function(r){var a,o,s,l=r.keyCode,d=!1,c=!r.isDefaultPrevented()&&!e(r.target).is(":button,a,:input,a>.k-icon"),u=t.options.pageable,p=t.dataSource,f="incell"==t._editMode(),h=r.shiftKey,g=m.support.browser,v=n();if(v&&v.is("th")&&(c=!0),c&&l==w.UP)v?(o=v.parent().prevAll(O).first(),o[0]||(o=t.thead.parent().focus().find(O).first()),s=v.index(),v=o.children().eq(s),v[0]&&v.is(M)||(v=o.children(M).first())):v=i.find(P),d=!0,n(v);else if(c&&l==w.DOWN)v?(o=v.parent().nextAll(O).first(),!o[0]&&v.is("th")&&(o=t.tbody.parent().focus().end().find(O).first()),s=v.index(),v=o.children().eq(s),v[0]&&v.is(M)||(v=o.children(M).first())):v=i.find(P),d=!0,n(v);else if(c&&l==w.LEFT)n(v?v.prevAll(H+":first"):i.find(P)),d=!0;else if(c&&l==w.RIGHT)v?v.next()[0]&&(v=v.nextAll(H+":first")):v=i.find(P),d=!0,n(v);else if(c&&u&&w.PAGEDOWN==l)p.page(p.page()+1),d=!0;else if(c&&u&&w.PAGEUP==l)p.page(p.page()-1),d=!0;else if(l==w.ENTER||w.F2==l)if(v=v?v:i.find(P),v.is("th"))v.find(".k-link").click(),d=!0;else if(v.parent().is(".k-master-row,.k-grouping-row"))v.parent().find(".k-icon:first").click(),d=!0;else{var _=v.find(":focusable:first");!v.hasClass("k-edit-cell")&&_[0]&&v.hasClass("k-state-focused")?(_.focus(),d=!0):t.options.editable&&!e(r.target).is(":button,.k-button")&&(t._handleEditing(v),d=!0)}else if(w.ESC==l)v&&e.contains(v[0],document.activeElement)&&!v.hasClass("k-edit-cell")&&!v.parent().hasClass("k-grid-edit-row")?(t.table[0].focus(),d=!0):!t._editContainer||v&&!t._editContainer.has(v[0])&&v[0]!==t._editContainer[0]||(f?t.closeCell():(a=t.items().index(e(v).parent()),document.activeElement.blur(),t.cancelRow(),a>=0&&t.current(t.items().eq(a).children().filter(M).first())),g.msie&&9>parseInt(g.version,10)&&document.body.focus(),i.focus(),d=!0);else if(w.TAB==l){var k;v=e(v),t.options.editable&&f&&(k=e(document.activeElement).closest(".k-edit-cell"),k[0]&&k[0]!==v[0]&&(v=k)),k=h?v.prevAll(H+":first"):v.nextAll(":visible:first"),k.length||(k=v.parent()[h?"prevAll":"nextAll"]("tr:not(.k-grouping-row):not(.k-detail-row):visible:first").children(H+(h?":last":":first"))),!v.is("th")&&k.length&&t.options.editable&&f&&(t._handleEditing(v,k),d=!0)}d&&(r.preventDefault(),r.stopPropagation())}))},_handleEditing:function(n,i){var r,a,o=this,s=e(document.activeElement),l=o._editMode(),d=o._editContainer;if(a="incell"==l?n.hasClass("k-edit-cell"):n.parent().hasClass("k-grid-edit-row"),o.editable){if(e.contains(d[0],s[0])&&(s.blur(),m.support.browser.opera&&s.change()),!o.editable)return o.table.focus(),t;if(!o.editable.end())return"incell"==l?o.current(d):o.current(d.children().filter(H).first()),r=d.find(":focusable:first")[0],r&&r.focus(),t;"incell"==l?o.closeCell():(o.saveRow(),a=!0)}i&&o.current(i),o.table.focus(),(!a&&!i||i)&&("incell"==l?o.editCell(o.current()):o.editRow(o.current().parent()))},_wrapper:function(){var e=this,t=e.table,n=e.options.height,i=e.element;i.is("div")||(i=i.wrap("<div/>").parent()),e.wrapper=i.addClass("k-grid k-widget"),n&&(e.wrapper.css(nt,n),t.css(nt,"auto"))},_tbody:function(){var t,n=this,i=n.table;t=i.find(">tbody"),t.length||(t=e("<tbody/>").appendTo(i)),n.tbody=t},_scrollable:function(){var t,n,i=this,r=i.options,a=r.scrollable,o=a!==!0&&a.virtual&&!i.virtualScrollable,s=!m.support.kineticScrollNeeded||o?m.support.scrollbar():0;if(a){t=i.wrapper.children(".k-grid-header"),t[0]||(t=e('<div class="k-grid-header" />').insertBefore(i.table)),t.css(ut?"padding-left":"padding-right",a.virtual?s+1:s),n=e('<table role="grid" cellspacing="0" />'),n.append(i.thead),t.empty().append(e('<div class="k-grid-header-wrap" />').append(n)),i.content=i.table.parent(),i.content.is(".k-virtual-scrollable-wrap")&&(i.content=i.content.parent()),i.content.is(".k-grid-content, .k-virtual-scrollable-wrap")||(i.content=i.table.wrap('<div class="k-grid-content" />').parent()),o&&(i.virtualScrollable=new pt(i.content,{dataSource:i.dataSource,itemHeight:D(i._averageRowHeight,i)})),i.scrollables=t.children(".k-grid-header-wrap");var l=i.wrapper.find(".k-grid-footer"),d=ut&&e.browser.webkit?s:0;if(l.length&&(i.scrollables=i.scrollables.add(l.children(".k-grid-footer-wrap"))),a.virtual)i.content.find(">.k-virtual-scrollable-wrap").bind("scroll"+B,function(){i.scrollables.scrollLeft(this.scrollLeft+d)});else{i.content.bind("scroll"+B,function(){i.scrollables.scrollLeft(this.scrollLeft+d)});var c=m.touchScroller(i.content);c&&c.movable&&c.movable.bind("change",function(e){i.scrollables.scrollLeft(-e.sender.x)})}}},_setContentHeight:function(){var e=this,t=e.options,n=e.wrapper.innerHeight(),i=e.wrapper.children(".k-grid-header"),r=m.support.scrollbar();if(t.scrollable){n-=i.outerHeight(),e.pager&&(n-=e.pager.element.outerHeight()),t.groupable&&(n-=e.wrapper.children(".k-grouping-header").outerHeight()),t.toolbar&&(n-=e.wrapper.children(".k-grid-toolbar").outerHeight()),e.footerTemplate&&(n-=e.wrapper.children(".k-grid-footer").outerHeight());var a=function(e){var t,n;return e[0].style.height?!0:(t=e.height(),e.height("auto"),n=e.height(),t!=n?(e.height(""),!0):(e.height(""),!1))};a(e.wrapper)&&(n>2*r?e.content.height(n):e.content.height(2*r+1))}},_averageRowHeight:function(){var e=this._rowHeight;return this._rowHeight=e=this.table.outerHeight()/this.table[0].rows.length,e},_dataSource:function(){var e,n=this,i=n.options,r=i.dataSource;r=S(r)?{data:r}:r,y(r)&&(x(r,{table:n.table,fields:n.columns}),e=i.pageable,y(e)&&e.pageSize!==t&&(r.pageSize=e.pageSize)),n.dataSource&&n._refreshHandler?n.dataSource.unbind(V,n._refreshHandler).unbind(I,n._requestStartHandler).unbind(R,n._errorHandler):(n._refreshHandler=D(n.refresh,n),n._requestStartHandler=D(n._requestStart,n),n._errorHandler=D(n._error,n)),n.dataSource=v.create(r).bind(V,n._refreshHandler).bind(I,n._requestStartHandler).bind(R,n._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_modelChange:function(t){var n,i,r,a,o,s=this,l=t.model,d=s.tbody.find("tr["+m.attr("uid")+"="+l.uid+"]"),c=d.hasClass("k-alt");if(d.children(".k-edit-cell").length&&!s.options.rowTemplate)d.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){n=e(this),i=s.columns[s.cellIndex(n)],i.field===t.field&&(n.hasClass("k-edit-cell")?n.addClass("k-dirty-cell"):(s._displayCell(n,i,l),e('<span class="k-dirty"/>').prependTo(n)))});else if(!d.hasClass("k-grid-edit-row")){for(r=e((c?s.altRowTemplate:s.rowTemplate)(l)),d.replaceWith(r),a=0,o=s.columns.length;o>a;a++)i=s.columns[a],i.field===t.field&&(n=r.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(a),e('<span class="k-dirty"/>').prependTo(n));s.trigger("itemChange",{item:r,data:l,ns:g})}},_pageable:function(){var t,n=this,i=n.options.pageable;i&&(t=n.wrapper.children("div.k-grid-pager"),t.length||(t=e('<div class="k-pager-wrap k-grid-pager"/>').appendTo(n.wrapper)),n.pager&&n.pager.destroy(),n.pager="object"==typeof i&&i instanceof m.ui.Pager?i:new m.ui.Pager(t,x({},i,{dataSource:n.dataSource})))},_footer:function(){var t=this,n=t.dataSource.aggregates(),i="",r=t.footerTemplate,a=t.options,s=t.footer||t.wrapper.find(".k-grid-footer");if(r)if(n=A(n)?o(t.dataSource.aggregate()):n,i=e(t._wrapFooter(r(n))),s.length){var l=i;s.replaceWith(l),s=t.footer=l}else s=t.footer=a.scrollable?a.pageable?i.insertBefore(t.wrapper.children("div.k-grid-pager")):i.appendTo(t.wrapper):i.insertBefore(t.tbody);else s&&!t.footer&&(t.footer=s);s.length&&(a.scrollable&&(t.scrollables=t.scrollables.not(".k-grid-footer-wrap").add(t.footer.attr("tabindex",-1).children(".k-grid-footer-wrap"))),a.resizable&&t._footerWidth&&s.find("table").css("width",t._footerWidth))},_wrapFooter:function(t){var n=this,i="",r=m.support.mobileOS?0:m.support.scrollbar();return n.options.scrollable?(i=e('<div class="k-grid-footer"><div class="k-grid-footer-wrap"><table cellspacing="0"><tbody>'+t+"</tbody></table></div></div>"),n._appendCols(i.find("table")),i.css(ut?"padding-left":"padding-right",r),i):'<tfoot class="k-grid-footer">'+t+"</tfoot>"},_columnMenu:function(){var t,n,i,r,a,o,s=this,l=s.columns,d=s.options,c=d.columnMenu,u=function(){s.thead.parent().focus()};c&&("boolean"==typeof c&&(c={}),s.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(p){n=l[p],o=e(this),n.command||!n.field&&!o.attr("data-"+m.ns+"field")||(t=o.data("kendoColumnMenu"),t&&t.destroy(),r=n.sortable!==!1&&c.sortable!==!1?d.sortable:!1,a=d.filterable&&n.filterable!==!1&&c.filterable!==!1?x({},n.filterable,d.filterable):!1,i={dataSource:s.dataSource,values:n.values,columns:c.columns,sortable:r,filterable:a,messages:c.messages,owner:s,closeCallback:u},o.kendoColumnMenu(i))}))},_filterable:function(){var t,n,i=this,r=i.columns,a=function(){i.thead.parent().focus()},o=i.options.filterable;o&&!i.options.columnMenu&&i.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(s){t=e(this),r[s].filterable===!1||r[s].command||!r[s].field&&!t.attr("data-"+m.ns+"field")||(n=t.data("kendoFilterMenu"),n&&n.destroy(),t.kendoFilterMenu(x(!0,{},o,r[s].filterable,{dataSource:i.dataSource,values:r[s].values,closeCallback:a})))})},_sortable:function(){var t,n=this,i=n.columns,r=n.options.sortable;r&&n.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(a){t=i[a],t.sortable!==!1&&!t.command&&t.field&&e(this).attr("data-"+m.ns+"field",t.field).kendoSortable(x({},r,{dataSource:n.dataSource,aria:!0}))})},_columns:function(t){var n,i=this,r=i.table,a=r.find("col"),o=i.options.dataSource;t=t.length?t:C(r.find("th"),function(t,n){t=e(t);var i=t.attr(m.attr("sortable")),r=t.attr(m.attr("filterable")),o=t.attr(m.attr("type")),s=t.attr(m.attr("groupable")),l=t.attr(m.attr("field")),d=t.attr(m.attr("menu"));return l||(l=t.text().replace(/\s|[^A-z0-9]/g,"")),{field:l,type:o,sortable:"false"!==i,filterable:"false"!==r,groupable:"false"!==s,menu:d,template:t.attr(m.attr("template")),width:a.eq(n).css("width")}}),n=!(i.table.find("tbody tr").length>0&&(!o||!o.transport)),i.columns=C(t,function(e){return e=typeof e===at?{field:e}:e,e.hidden&&(e.attributes=c(e.attributes),e.footerAttributes=c(e.footerAttributes),e.headerAttributes=c(e.headerAttributes)),x({encoded:n},e)})},_groups:function(){var e=this.dataSource.group();return e?e.length:0},_tmpl:function(e,t){var r,a,o,s,l=this,d=x({},m.Template,l.options.templateSettings),c=l.columns.length,u={storage:{},count:0},p=l._hasDetails(),f=[],h=l._groups();if(!e){for(e="<tr",t&&f.push("k-alt"),p&&f.push("k-master-row"),f.length&&(e+=' class="'+f.join(" ")+'"'),c&&(e+=" "+m.attr("uid")+'="#='+d.paramName+'.uid#"'),e+=" role='row'>",h>0&&(e+=n(h)),p&&(e+='<td class="k-hierarchy-cell"><a class="k-icon k-plus" href="\\#" tabindex="-1"></a></td>'),r=0;c>r;r++)o=l.columns[r],a=o.template,s=typeof a,e+="<td"+i(o.attributes)+" role='gridcell'>",e+=l._cellTmpl(o,u),e+="</td>";e+="</tr>"}return e=m.template(e,d),u.count>0?D(e,u.storage):e},_headerCellText:function(e){var t=this,n=x({},m.Template,t.options.templateSettings),i=e.headerTemplate,r=typeof i,a=e.title||e.field||"";return r===rt?a=m.template(i,n)({}):r===at&&(a=i),a},_cellTmpl:function(e,t){var n,i,r=this,a=x({},m.Template,r.options.templateSettings),o=e.template,s=a.paramName,l=e.field,d="",c=e.format,u=typeof o,p=e.values;if(e.command){if(S(e.command)){for(n=0,i=e.command.length;i>n;n++)d+=r._createButton(e.command[n]);return d.replace(dt,"\\#")}return r._createButton(e.command).replace(dt,"\\#")}return u===rt?(t.storage["tmpl"+t.count]=o,d+="#=this.tmpl"+t.count+"("+s+")#",t.count++):u===at?d+=o:p&&p.length&&y(p[0])&&"value"in p[0]?(d+="#var v ="+m.stringify(p)+"#",d+="#for (var idx=0,length=v.length;idx<length;idx++) {#",d+="#if (v[idx].value == ",a.useWithBlock||(d+=s+"."),d+=l,d+=") { #",d+="${v[idx].text}",d+="#break;#",d+="#}#",d+="#}#"):(d+=e.encoded?"${":"#=",c&&(d+='kendo.format("'+c.replace(st,"\\$1")+'",'),l?(l=s+"."+l,d+=l+"==null?'':"+l):d+="''",c&&(d+=")"),d+=e.encoded?"}":"#"),d},_templates:function(){var t=this,n=t.options,i=t.dataSource,r=i.group(),a=t.footer||t.wrapper.find(".k-grid-footer"),o=i.aggregate();t.rowTemplate=t._tmpl(n.rowTemplate),t.altRowTemplate=t._tmpl(n.altRowTemplate||n.rowTemplate,!0),t._hasDetails()&&(t.detailTemplate=t._detailTmpl(n.detailTemplate||"")),(!A(o)&&!a.length||T(t.columns,function(e){return e.footerTemplate}).length)&&(t.footerTemplate=t._footerTmpl(o,"footerTemplate","k-footer-template")),r&&T(t.columns,function(e){return e.groupFooterTemplate}).length&&(o=e.map(r,function(e){return e.aggregates}),t.groupFooterTemplate=t._footerTmpl(o,"groupFooterTemplate","k-group-footer"))},_footerTmpl:function(e,t,r){var a,s,l,d,c,u=this,p=x({},m.Template,u.options.templateSettings),f=p.paramName,h="",g=u.columns,v={},_=0,k={},b=u._groups(),w=o(e);for(h+='<tr class="'+r+'">',b>0&&(h+=n(b)),u._hasDetails()&&(h+='<td class="k-hierarchy-cell"> </td>'),a=0,s=u.columns.length;s>a;a++)c=g[a],l=c[t],d=typeof l,h+="<td"+i(c.footerAttributes)+">",l?(d!==rt&&(k=w[c.field]?x({},p,{paramName:f+"."+c.field}):{},l=m.template(l,k)),v["tmpl"+_]=l,h+="#=this.tmpl"+_+"("+f+")#",_++):h+=" ",h+="</td>";return h+="</tr>",h=m.template(h,p),_>0?D(h,v):h},_detailTmpl:function(e){var t=this,i="",r=x({},m.Template,t.options.templateSettings),a=r.paramName,o={},s=0,l=t._groups(),c=d(t.columns).length,u=typeof e;return i+='<tr class="k-detail-row">',l>0&&(i+=n(l)),i+='<td class="k-hierarchy-cell"></td><td class="k-detail-cell"'+(c?' colspan="'+c+'"':"")+">",u===rt?(o["tmpl"+s]=e,i+="#=this.tmpl"+s+"("+a+")#",s++):i+=e,i+="</td></tr>",i=m.template(i,r),s>0?D(i,o):i},_hasDetails:function(){var e=this;return null!==e.options.detailTemplate||(e._events[q]||[]).length},_details:function(){var t=this;t.table.on("touchend"+B+" "+tt+B,".k-hierarchy-cell .k-plus, .k-hierarchy-cell .k-minus",function(n){var i,r,a=e(this),o=a.hasClass("k-plus"),s=a.closest("tr.k-master-row"),l=t.detailTemplate,d=t._hasDetails();return a.toggleClass("k-plus",!o).toggleClass("k-minus",o),d&&!s.next().hasClass("k-detail-row")&&(r=t.dataItem(s),e(l(r)).addClass(s.hasClass("k-alt")?"k-alt":"").insertAfter(s),t.trigger(q,{masterRow:s,detailRow:s.next(),data:r,detailCell:s.next().find(".k-detail-cell")})),i=s.next(),t.trigger(o?K:Q,{masterRow:s,detailRow:i}),i.toggle(o),t._current&&t._current.attr("aria-expanded",o),n.preventDefault(),!1})},dataItem:function(t){return this._data[this.tbody.find("> tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)").index(e(t))]},expandRow:function(t){e(t).find("> td .k-plus, > td .k-i-expand").click()},collapseRow:function(t){e(t).find("> td .k-minus, > td .k-i-collapse").click()},_thead:function(){var n,r,a,o,s,l=this,d=l.columns,c=l._hasDetails()&&d.length,u="",p=l.table.find(">thead");if(p.length||(p=e("<thead/>").insertBefore(l.tbody)),a=l.element.find("tr:has(th):first"),a.length||(a=p.children().first(),a.length||(a=e("<tr/>"))),a.children().length)c&&!a.find(".k-hierarchy-cell")[0]&&a.prepend('<th class="k-hierarchy-cell"> </th>');else{for(c&&(u+='<th class="k-hierarchy-cell"> </th>'),n=0,r=d.length;r>n;n++)s=d[n],o=l._headerCellText(s),s.command?u+="<th"+i(s.headerAttributes)+">"+o+"</th>":(u+="<th role='columnheader' "+m.attr("field")+"='"+(s.field||"")+"' ",s.title&&(u+=m.attr("title")+'="'+s.title.replace(/'/g,"'")+'" '),s.groupable!==t&&(u+=m.attr("groupable")+"='"+s.groupable+"' "),s.aggregates&&(u+=m.attr("aggregates")+"='"+s.aggregates+"'"),u+=i(s.headerAttributes),u+=">"+o+"</th>");a.html(u)}a.find("th").addClass("k-header"),l.options.scrollable||p.addClass("k-grid-header"),a.find("script").remove().end().appendTo(p),l.thead=p,l._sortable(),l._filterable(),l._scrollable(),l._updateCols(),l._resizable(),l._draggable(),l._reorderable(),l.groupable&&l._attachGroupable(),l._columnMenu()},_updateCols:function(){var e=this;e._appendCols(e.thead.parent().add(e.table))},_appendCols:function(e){var t=this;p(e,d(t.columns),t._hasDetails(),t._groups())},_autoColumns:function(e){if(e&&e.toJSON){var t,n=this;e=e.toJSON();for(t in e)n.columns.push({field:t});n._thead(),n._templates()}},_rowsHtml:function(e){var t,n,i=this,r="",a=i.rowTemplate,o=i.altRowTemplate;for(t=0,n=e.length;n>t;t++)r+=t%2?o(e[t]):a(e[t]),i._data.push(e[t]);return r},_groupRowHtml:function(e,t,i){var r,a,o=this,s="",l=e.field,d=T(o.columns,function(e){return e.field==l})[0]||{},c=d.format?m.format(d.format,e.value):e.value,u=d.groupHeaderTemplate,p=(d.title||l)+": "+c,f=x({},{field:e.field,value:e.value},e.aggregates[e.field]),h=o._groupAggregatesDefaultObject||{},g=e.items;if(u&&(p=typeof u===rt?u(f):m.template(u)(f)),s+='<tr class="k-grouping-row">'+n(i)+'<td colspan="'+t+'" aria-expanded="true">'+'<p class="k-reset">'+'<a class="k-icon k-i-collapse" href="#" tabindex="-1"></a>'+p+"</p></td></tr>",e.hasSubgroups)for(r=0,a=g.length;a>r;r++)s+=o._groupRowHtml(g[r],t-1,i+1);else s+=o._rowsHtml(g);return o.groupFooterTemplate&&(s+=o.groupFooterTemplate(x(h,e.aggregates))),s},collapseGroup:function(n){n=e(n).find(".k-icon").addClass("k-i-expand").removeClass("k-i-collapse").end();var i,r,a=n.find(".k-group-cell").length,o=1;n.find("td:first").attr("aria-expanded",!1),n.nextAll("tr").each(function(){return r=e(this),i=r.find(".k-group-cell").length,r.hasClass("k-grouping-row")?o++:r.hasClass("k-group-footer")&&o--,a>=i||r.hasClass("k-group-footer")&&0>o?!1:(r.hide(),t)})},expandGroup:function(n){n=e(n).find(".k-icon").addClass("k-i-collapse").removeClass("k-i-expand").end();var i,r,a=this,o=n.find(".k-group-cell").length,s=1;n.find("td:first").attr("aria-expanded",!0),n.nextAll("tr").each(function(){return i=e(this),r=i.find(".k-group-cell").length,o>=r?!1:(r!=o+1||i.hasClass("k-detail-row")||(i.show(),i.hasClass("k-grouping-row")&&i.find(".k-icon").hasClass("k-i-collapse")&&a.expandGroup(i),i.hasClass("k-master-row")&&i.find(".k-icon").hasClass("k-minus")&&i.next().show()),i.hasClass("k-grouping-row")&&s++,i.hasClass("k-group-footer")&&(1==s?i.show():s--),t)})},_updateHeader:function(t){var n=this,i=n.thead.find("th.k-group-cell"),r=i.length;t>r?e(Array(t-r+1).join('<th class="k-group-cell k-header"> </th>')).prependTo(n.thead.find("tr")):r>t&&(r-=t,e(T(i,function(e,t){return r>t})).remove())},_firstDataItem:function(e,t){return e&&t&&(e=e.hasSubgroups?this._firstDataItem(e.items[0],t):e.items[0]),e},hideColumn:function(t){var n,i,r,a,o,s,l,u,p,f=this,h=0,m=f.footer||f.wrapper.find(".k-grid-footer"),g=f.columns;if(t="number"==typeof t?g[t]:T(g,function(e){return e.field===t})[0],t&&!t.hidden){for(p=F(t,d(g)),t.hidden=!0,t.attributes=c(t.attributes),t.footerAttributes=c(t.footerAttributes),t.headerAttributes=c(t.headerAttributes),f._templates(),f._updateCols(),f.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide(),m&&(f._appendCols(m.find("table:first")),m.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide()),n=f.tbody.children(),o=0,u=n.length;u>o;o+=1)i=n.eq(o),i.is(".k-grouping-row,.k-detail-row")?(r=i.children(":not(.k-group-cell):first,.k-detail-cell").last(),r.attr("colspan",parseInt(r.attr("colspan"),10)-1)):(i.hasClass("k-grid-edit-row")&&(r=i.children(".k-edit-container")[0])&&(r=e(r),r.attr("colspan",parseInt(r.attr("colspan"),10)-1),r.find("col").eq(p).remove(),i=r.find("tr:first")),i.children(":not(.k-group-cell,.k-hierarchy-cell):visible").eq(p).hide());for(s=f.thead.prev().find("col"),o=0,u=s.length;u>o;o+=1){if(l=s[o].style.width,!l||-1!=l.indexOf("%")){h=0;break}h+=parseInt(l,10)}a=e(">.k-grid-header table:first,>.k-grid-footer table:first",f.wrapper).add(f.table),h&&a.width(h),e.browser.msie&&8==parseInt(e.browser.version,10)&&(a.css("display","inline-table"),setTimeout(function(){a.css("display","table")},1)),f.trigger(j,{column:t})}},showColumn:function(t){var n,i,r,a,o,s,l,c,f,h,m=this,g=m.columns,v=m.footer||m.wrapper.find(".k-grid-footer");if(t="number"==typeof t?g[t]:T(g,function(e){return e.field===t})[0],t&&t.hidden){for(h=F(t,g),t.hidden=!1,t.attributes=u(t.attributes),t.footerAttributes=u(t.footerAttributes),t.headerAttributes=u(t.headerAttributes),m._templates(),m._updateCols(),m.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell)").eq(h).show(),v&&(m._appendCols(v.find("table:first")),v.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell)").eq(h).show()),n=m.tbody.children(),i=0,r=n.length;r>i;i+=1)a=n.eq(i),a.is(".k-grouping-row,.k-detail-row")?(o=a.children(":not(.k-group-cell):first,.k-detail-cell").last(),o.attr("colspan",parseInt(o.attr("colspan"),10)+1)):(a.hasClass("k-grid-edit-row")&&(o=a.children(".k-edit-container")[0])&&(o=e(o),o.attr("colspan",parseInt(o.attr("colspan"),10)+1),p(o.find(">form>table"),d(g),!1,0),a=o.find("tr:first")),a.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(h).show());if(s=e(">.k-grid-header table:first,>.k-grid-footer table:first",m.wrapper).add(m.table),t.width){for(l=0,f=m.thead.prev().find("col"),i=0,r=f.length;r>i;i+=1){if(c=f[i].style.width,c.indexOf("%")>-1){l=0;break}l+=parseInt(c,10)}l&&s.width(l)}else s.width("");m.trigger($,{column:t})}},_progress:function(e){var t=this,n=t.element.is("table")?t.element.parent():t.content&&t.content.length?t.content:t.element;m.ui.progress(n,e)},refresh:function(t){var n,i,r,a,s,l=this,c="",u=l.dataSource.view(),p=l.options.navigatable,f=e(l.current()),h=!1,m=(l.dataSource.group()||[]).length,g=m+d(l.columns).length;if(!(t&&"itemchange"===t.action&&l.editable||(t=t||{},l.trigger("dataBinding",{action:t.action||"rebind",index:t.index,items:t.items})))){if(p&&(l.table[0]===document.activeElement||e.contains(l.table[0],document.activeElement))&&(h=f.is("th"),s=0,h&&(s=l.thead.find("th:not(.k-group-cell)").index(f))),l._destroyEditable(),l._progress(!1),l._data=[],l.columns.length||(l._autoColumns(l._firstDataItem(u[0],m)),g=m+l.columns.length),l._group=m>0||l._group,l._group&&(l._templates(),l._updateCols(),l._updateHeader(m),l._group=m>0),m>0)for(l.detailTemplate&&g++,l.groupFooterTemplate&&(l._groupAggregatesDefaultObject=o(l.dataSource.aggregate())),i=0,n=u.length;n>i;i++)c+=l._groupRowHtml(u[i],g,0);else c+=l._rowsHtml(u);k?l.tbody[0].innerHTML=c:(a=document.createElement("div"),a.innerHTML="<table><tbody>"+c+"</tbody></table>",r=a.firstChild.firstChild,l.table[0].replaceChild(r,l.tbody[0]),l.tbody=e(r)),l._footer(),l._setContentHeight(),s>=0&&(l._removeCurrent(),h?l.current(l.thead.find("th:not(.k-group-cell)").eq(s)):l.current(l.items().eq(s).children().filter(H).first()),l._current.closest("table")[0].focus()),l.trigger(Y)}}});g.plugin(ht),g.plugin(pt)}(window.kendo.jQuery),function(e,t){var n=window.kendo,i="change",r="dataBound",a="dataBinding",o=n.ui.Widget,s=n.keys,l=">*",d="requestStart",c="error",u="k-state-focused",p="k-state-selected",f="k-edit-item",h="string",m="edit",g="remove",v="save",_="click",k=".kendoListView",b=e.proxy,w=n.ui.progress,y=n.data.DataSource,x=o.extend({init:function(t,i){var r=this;i=e.isArray(i)?{dataSource:i}:i,o.fn.init.call(r,t,i),i=r.options,r.wrapper=t=r.element,t[0].id&&(r._itemId=t[0].id+"_lv_active"),r._element(),r._dataSource(),r.template=n.template(i.template||""),r.altTemplate=n.template(i.altTemplate||i.template),r.editTemplate=n.template(i.editTemplate||""),r._navigatable(),r._selectable(),r._pageable(),r._crudHandlers(),r.options.autoBind&&r.dataSource.fetch(),n.notify(r)
|
19
|
+
},events:[i,a,r,m,g,v],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,template:"",altTemplate:"",editTemplate:""},_item:function(e){return this.element.children()[e]()},items:function(){return this.element.children()},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.options.autoBind&&e.fetch()},_unbindDataSource:function(){var e=this;e.dataSource.unbind(i,e._refreshHandler).unbind(d,e._requestStartHandler).unbind(c,e._errorHandler)},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():(e._refreshHandler=b(e.refresh,e),e._requestStartHandler=b(e._requestStart,e),e._errorHandler=b(e._error,e)),e.dataSource=y.create(e.options.dataSource).bind(i,e._refreshHandler).bind(d,e._requestStartHandler).bind(c,e._errorHandler)},_requestStart:function(){w(this.element,!0)},_error:function(){w(this.element,!1)},_element:function(){this.element.addClass("k-widget k-listview").attr("role","listbox")},refresh:function(i){var o,s,l,d,c,u=this,p=u.dataSource.view(),f="",h=u.template,m=u.altTemplate;if(i&&"itemchange"===i.action)return u.editable||(o=i.items[0],d=e.inArray(o,p),d>=0&&(l=e(h(o)).attr(n.attr("uid"),o.uid),u.items().eq(d).replaceWith(l),u.trigger("itemChange",{item:l,data:o}))),t;if(i=i||{},!u.trigger(a,{action:i.action||"rebind",items:i.items,index:i.index})){for(u._destroyEditable(),d=0,c=p.length;c>d;d++)f+=d%2?m(p[d]):h(p[d]);for(u.element.html(f),s=u.items(),d=0,c=p.length;c>d;d++)s.eq(d).attr(n.attr("uid"),p[d].uid).attr("role","option").attr("aria-selected","false");u.element[0]===document.activeElement&&u.options.navigatable&&u.current(s.eq(0)),u.trigger(r)}},_pageable:function(){var t,i,r=this,a=r.options.pageable;e.isPlainObject(a)&&(i=a.pagerId,t=e.extend({},a,{dataSource:r.dataSource,pagerId:null}),r.pager=new n.ui.Pager(e("#"+i),t))},_selectable:function(){var e,r,a=this,o=a.options.selectable,d=a.options.navigatable;o&&(e=typeof o===h&&o.toLowerCase().indexOf("multiple")>-1,e&&a.element.attr("aria-multiselectable",!0),a.selectable=new n.ui.Selectable(a.element,{aria:!0,multiple:e,filter:l,change:function(){a.trigger(i)}}),d&&a.element.on("keydown"+k,function(n){if(n.keyCode===s.SPACEBAR){if(r=a.current(),n.target==n.currentTarget&&n.preventDefault(),e)if(n.ctrlKey){if(r&&r.hasClass(p))return r.removeClass(p),t}else a.selectable.clear();else a.selectable.clear();a.selectable.value(r)}}))},current:function(e){var n=this,i=n.element,r=n._current;return e===t?r:(r&&(r.removeClass(u).removeAttr("id"),i.removeAttr("aria-activedescendant")),e&&e[0]&&(n._scrollTo(e[0]),i.attr("aria-activedescendant",n._itemId),e.addClass(u).attr("id",n._itemId)),n._current=e,t)},_scrollTo:function(t){var n,i=this,r=!1,a="scroll";"auto"==i.wrapper.css("overflow")||i.wrapper.css("overflow")==a?n=i.wrapper[0]:(n=window,r=!0);var o=function(i,o){var s=r?e(t).offset()[i.toLowerCase()]:t["offset"+i],l=t["client"+o],d=e(n)[a+i](),c=e(n)[o.toLowerCase()]();s+l>d+c?e(n)[a+i](s+l-c):d>s&&e(n)[a+i](s)};o("Top","Height"),o("Left","Width")},_navigatable:function(){var t=this,i=t.options.navigatable,r=t.element,a=function(n){t.current(e(n.currentTarget)),e(n.target).is(":button,a,:input,a>.k-icon,textarea")||r.focus()};i&&(t._tabindex(),r.on("focus"+k,function(){var e=t._current;e&&e.is(":visible")||(e=t._item("first")),t.current(e)}).on("focusout"+k,function(){t._current&&t._current.removeClass(u)}).on("keydown"+k,function(i){var a,o=i.keyCode,l=t.current(),d=e(i.target),c=!d.is(":button,textarea,a,a>.t-icon,input"),u=d.is(":text"),p=n.preventDefault,h=r.find("."+f);if(!(!c&&!u&&s.ESC!=o||u&&s.ESC!=o&&s.ENTER!=o))if(s.UP===o||s.LEFT===o)l&&(l=l.prev()),t.current(l&&l[0]?l:t._item("last")),p(i);else if(s.DOWN===o||s.RIGHT===o)l&&(l=l.next()),t.current(l&&l[0]?l:t._item("first")),p(i);else if(s.PAGEUP===o)t.current(null),t.dataSource.page(t.dataSource.page()-1),p(i);else if(s.PAGEDOWN===o)t.current(null),t.dataSource.page(t.dataSource.page()+1),p(i);else if(s.HOME===o)t.current(t._item("first")),p(i);else if(s.END===o)t.current(t._item("last")),p(i);else if(s.ENTER===o)if(0!==h.length&&(c||u)){a=t.items().index(h),document.activeElement.blur(),t.save();var m=function(){t.element.trigger("focus"),t.current(t.items().eq(a))};t.one("dataBound",m)}else""!==t.options.editTemplate&&t.edit(l);else if(s.ESC===o){if(h=r.find("."+f),0===h.length)return;a=t.items().index(h),t.cancel(),t.element.trigger("focus"),t.current(t.items().eq(a))}}),r.on("mousedown"+k+" touchstart"+k,l,b(a,t)))},clearSelection:function(){var e=this;e.selectable.clear(),e.trigger(i)},select:function(n){var i=this,r=i.selectable;return n=e(n),n.length?(r.options.multiple||(r.clear(),n=n.first()),r.value(n),t):r.value()},_destroyEditable:function(){var e=this;e.editable&&(e.editable.destroy(),delete e.editable)},_modelFromElement:function(e){var t=e.attr(n.attr("uid"));return this.dataSource.getByUid(t)},_closeEditable:function(t){var i,r,a=this,o=a.editable,s=!0;return o&&(t&&(s=o.end()),s&&(i=a._modelFromElement(o.element),r=e(a.template(i)).attr(n.attr("uid"),i.uid),a._destroyEditable(),o.element.replaceWith(r))),s},edit:function(t){var i=this,r=i._modelFromElement(t),a=e(i.editTemplate(r)).addClass(f);i.cancel(),a.attr(n.attr("uid"),r.uid),t.replaceWith(a),i.editable=a.kendoEditable({model:r,clearContainer:!1,errorTemplate:!1}).data("kendoEditable"),i.trigger(m,{model:r,item:a})},save:function(){var e=this,t=e.editable.element,n=e._modelFromElement(t);!e.trigger(v,{model:n,item:t})&&e._closeEditable(!0)&&e.dataSource.sync()},remove:function(e){var t=this,n=t.dataSource,i=t._modelFromElement(e);t.trigger(g,{model:i,item:e})||(e.hide(),n.remove(i),n.sync())},add:function(){var e=this,t=e.dataSource,n=t.indexOf((t.view()||[])[0]);0>n&&(n=0),e.cancel(),t.insert(n,{}),e.edit(e.element.children().first())},cancel:function(){var e=this,t=e.dataSource;e.editable&&(t.cancelChanges(e._modelFromElement(e.editable.element)),e._closeEditable(!1))},_crudHandlers:function(){var t=this,i="touchend"+k+" "+_+k;t.element.on(i,".k-edit-button",function(i){var r=e(this).closest("["+n.attr("uid")+"]");t.edit(r),i.preventDefault()}),t.element.on(i,".k-delete-button",function(i){var r=e(this).closest("["+n.attr("uid")+"]");t.remove(r),i.preventDefault()}),t.element.on(i,".k-update-button",function(e){t.save(),e.preventDefault()}),t.element.on(i,".k-cancel-button",function(e){t.cancel(),e.preventDefault()})},destroy:function(){var e=this;o.fn.destroy.call(e),e._unbindDataSource(),e._destroyEditable(),e.element.off(k),e.pager&&e.pager.destroy(),e.selectable&&e.selectable.destroy(),n.destroy(e.element)}});n.ui.plugin(x)}(window.kendo.jQuery),function(e,t){function n(e,t,n){var i,r;e.on("dragenter"+_,function(){t(),r=new Date,i||(i=setInterval(function(){var e=new Date-r;e>100&&(n(),clearInterval(i),i=null)},100))}).on("dragover"+_,function(){r=new Date})}function i(e,t){var n=e[t];return l(n)?n.field||t:n}function r(e,n){return e!==t&&e.match(/\/$/)||(e=(e||"")+"/"),e+n}function a(e){if(!e)return"";var t=" bytes";return e>=1073741824?(t=" GB",e/=1073741824):e>=1048576?(t=" MB",e/=1048576):e>=1024&&(t=" KB",e/=1024),Math.round(100*e)/100+t}var o=window.kendo,s=o.ui.Widget,l=e.isPlainObject,d=e.proxy,c=e.extend,u=o.support.placeholder,p=e.isFunction,f=/(^\/|\/$)/g,h="change",m="apply",g="error",v="click",_=".kendoImageBrowser",k=".kendoBreadcrumbs",b=".kendoSearchBox",w="name",y="size",x="type",C={field:x,dir:"asc"},T=o.template('<li data-#=ns#value="#=value#" class="k-item">${text}</li>'),S=o.template('<li class="k-tile-empty"><strong>${text}</strong></li>'),F='<div class="k-widget k-toolbar k-floatwrap"><div class="k-toolbar-wrap">#if(showUpload) { # <div class="k-widget k-upload"><div class="k-button k-button-icontext k-button-bare k-upload-button"><span class="k-icon k-add"></span>#=messages.uploadFile#<input type="file" name="file" /></div></div>#}##if(showCreate) {#<button type="button" class="k-button k-button-icon k-button-bare"><span class="k-icon k-addfolder"></span></button>#}##if(showDelete) {#<button type="button" class="k-button k-button-icon k-button-bare k-state-disabled"><span class="k-icon k-delete"></span></button> #}#</div><div class="k-tiles-arrange">#=messages.orderBy#: <a href="\\#" class="k-link"><span>#=messages.orderByName#</span><span class="k-icon k-i-arrow-s"></span></a></div></div>';c(!0,o.data,{schemas:{imagebrowser:{data:function(e){return e.items||e||[]},model:{id:"name",fields:{name:"name",size:"size",type:"type"}}}}}),c(!0,o.data,{transports:{imagebrowser:o.data.RemoteTransport.extend({init:function(t){o.data.RemoteTransport.fn.init.call(this,e.extend(!0,{},this.options,t))},_call:function(t,n){n.data=e.extend({},n.data,{path:this.options.path()}),p(this.options[t])?this.options[t].call(this,n):o.data.RemoteTransport.fn[t].call(this,n)},read:function(e){this._call("read",e)},create:function(e){this._call("create",e)},destroy:function(e){this._call("destroy",e)},update:function(){},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"}}})}});var D;D=e.browser.msie&&8>parseFloat(e.browser.version)?function(e){return e.offsetTop}:function(t){return t.offsetTop-e(t).height()};var E=s.extend({init:function(e,t){var n=this;t=t||{},s.fn.init.call(n,e,t),n.element.addClass("k-imagebrowser"),n.element.on(v+_,".k-toolbar button:not(.k-state-disabled):has(.k-delete)",d(n._deleteClick,n)).on(v+_,".k-toolbar button:not(.k-state-disabled):has(.k-addfolder)",d(n._addClick,n)).on("keydown"+_,"li.k-state-selected input",d(n._directoryKeyDown,n)).on("blur"+_,"li.k-state-selected input",d(n._directoryBlur,n)),n._dataSource(),n.refresh(),n.path(n.options.path)},options:{name:"ImageBrowser",messages:{uploadFile:"Upload",orderBy:"Arrange by",orderByName:"Name",orderBySize:"Size",directoryNotFound:"A directory with this name was not found.",emptyFolder:"Empty Folder",deleteFile:'Are you sure you want to delete "{0}"?',invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',dropFilesHere:"drop files here to upload"},transport:{},path:"/",fileTypes:"*.png,*.gif,*.jpg,*.jpeg"},events:[g,h,m],destroy:function(){var e=this;s.fn.destroy.call(e),e.dataSource.unbind(g,e._errorHandler),e.element.add(e.list).add(e.toolbar).off(_),e.arrangeByPopup&&e.arrangeByPopup.destroy(),o.destroy(e.element)},value:function(){var e,n=this,i=n._selectedItem(),a=n.options.transport.imageUrl;return i&&"f"===i.get(n._getFieldName(x))?(e=r(n.path(),i.get(n._getFieldName(w))).replace(f,""),a&&(e=p(a)?a(e):o.format(a,e)),e):t},_selectedItem:function(){var e=this.listView,n=e.select();return n.length?this.dataSource.getByUid(n.attr(o.attr("uid"))):t},_toolbar:function(){var t,n,i=this,r=o.template(F),a=i.options.messages,s=[{text:a.orderByName,value:"name",ns:o.ns},{text:a.orderBySize,value:"size",ns:o.ns}];i.toolbar=e(r({messages:a,showUpload:i.options.transport.uploadUrl,showCreate:i.options.transport.create,showDelete:i.options.transport.destroy})).appendTo(i.element).find(".k-upload input").kendoUpload({multiple:!1,localization:{dropFilesHere:a.dropFilesHere},async:{saveUrl:i.options.transport.uploadUrl,autoUpload:!0},upload:d(i._fileUpload,i)}).end(),i.upload=i.toolbar.find(".k-upload input").data("kendoUpload"),t=i.toolbar.find(".k-tiles-arrange a"),i.arrangeByPopup=n=e("<ul>"+o.render(T,s)+"</ul>").kendoPopup({anchor:t}).on(v+_,"li",function(){var t=e(this),r=t.attr(o.attr("value"));i.toolbar.find(".k-tiles-arrange a span:first").html(t.text()),n.close(),i.orderBy(r)}).data("kendoPopup"),t.on(v+_,function(e){e.preventDefault(),n.toggle()}),i._attachDropzoneEvents()},_attachDropzoneEvents:function(){var t=this;t.options.transport.uploadUrl&&(n(e(document.documentElement),e.proxy(t._dropEnter,t),e.proxy(t._dropLeave,t)),t._scrollHandler=d(t._positionDropzone,t))},_dropEnter:function(){this._positionDropzone(),e(document).on("scroll"+_,this._scrollHandler)},_dropLeave:function(){this._removeDropzone(),e(document).off("scroll"+_,this._scrollHandler)},_positionDropzone:function(){var e=this,t=e.element,n=t.offset();e.toolbar.find(".k-dropzone").addClass("k-imagebrowser-dropzone").offset(n).css({width:t[0].clientWidth,height:t[0].clientHeight,lineHeight:t[0].clientHeight+"px"})},_removeDropzone:function(){this.toolbar.find(".k-dropzone").removeClass("k-imagebrowser-dropzone").css({width:"",height:"",lineHeight:"",top:"",left:""})},_deleteClick:function(){var e=this,t=e.listView.select(),n=o.format(e.options.messages.deleteFile,t.find("strong").text());t.length&&e._showMessage(n,"confirm")&&e.listView.remove(t)},_addClick:function(){this.createDirectory()},_fileUpload:function(e){var t,n=this,i=n.options,r=i.fileTypes,a=RegExp(("("+r.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i"),s=e.files[0].name,l=n._getFieldName(w),d=n._getFieldName(y);a.test(s)?(e.data={path:n.path()},t=n._createFile(s),t?n.upload.one("success",function(e){t.set(l,e.response[l]),t.set(d,e.response[d]),n._tiles=n.listView.items().filter("["+o.attr("type")+"=f]")}):e.preventDefault()):(e.preventDefault(),n._showMessage(o.format(i.messages.invalidFileType,s,r)))},_findFile:function(e){var t,n,i,r=this.dataSource.data(),a=this._getFieldName(x),o=this._getFieldName(w);for(e=e.toLowerCase(),t=0,i=r.length;i>t;t++)if("f"===r[t].get(a)&&r[t].get(o).toLowerCase()===e){n=r[t];break}return n},_createFile:function(e){var t,n,i=this,r=0,a={},s=i._getFieldName(x),l=i.dataSource.view(),d=i._findFile(e);if(d&&!i._showMessage(o.format(i.options.messages.overwriteFile,e),"confirm"))return null;if(d)return d;for(t=0,n=l.length;n>t;t++)if("f"===l[t].get(s)){r=t;break}return a[s]="f",a[i._getFieldName(w)]=e,a[i._getFieldName(y)]=0,i.dataSource.insert(++r,a)},createDirectory:function(){var e,t,n=this,i=0,r=n._getFieldName(x),a=n._getFieldName(w),s=n.dataSource.data(),l=n._nameDirectory(),d=new n.dataSource.reader.model;for(e=0,t=s.length;t>e;e++)"d"===s[e].get(r)&&(i=e);d.set(r,"d"),d.set(a,l),n.listView.one("dataBound",function(){var e=n.listView.items().filter("["+o.attr("uid")+"="+d.uid+"]"),t=e.find("input");e.length&&this.edit(e),this.element.scrollTop(e.attr("offsetTop")-this.element[0].offsetHeight),setTimeout(function(){t.select()})}).one("save",function(e){var t=e.model.get(a);t?e.model.set(a,n._nameExists(t,d.uid)?n._nameDirectory():t):e.model.set(a,l)}),n.dataSource.insert(++i,d)},_directoryKeyDown:function(e){13==e.keyCode&&e.currentTarget.blur()},_directoryBlur:function(){this.listView.save()},_nameExists:function(e,t){var n,i,r=this.dataSource.data(),a=this._getFieldName(x),o=this._getFieldName(w);for(n=0,i=r.length;i>n;n++)if("d"===r[n].get(a)&&r[n].get(o).toLowerCase()===e.toLowerCase()&&r[n].uid!==t)return!0;return!1},_nameDirectory:function(){var t,n,i,r="New folder",a=this.dataSource.data(),o=[],s=this._getFieldName(x),l=this._getFieldName(w);for(n=0,i=a.length;i>n;n++)"d"===a[n].get(s)&&a[n].get(l).toLowerCase().indexOf(r.toLowerCase())>-1&&o.push(a[n].get(l));if(e.inArray(r,o)>-1){n=2;do t=r+" ("+n+")",n++;while(e.inArray(t,o)>-1);r=t}return r},orderBy:function(e){this.dataSource.sort([{field:this._getFieldName(x),dir:"asc"},{field:this._getFieldName(e),dir:"asc"}])},search:function(e){this.dataSource.filter({field:this._getFieldName(w),operator:"contains",value:e})},_content:function(){var t=this;t.list=e('<ul class="k-reset k-floats k-tiles" />').appendTo(t.element).on("scroll"+_,d(t._scroll,t)).on("dblclick"+_,"li",d(t._dblClick,t)),t.listView=new o.ui.ListView(t.list,{dataSource:t.dataSource,template:t._itemTmpl(),editTemplate:t._editTmpl(),selectable:!0,autoBind:!1,dataBinding:function(e){t.toolbar.find(".k-delete").parent().addClass("k-state-disabled"),("remove"===e.action||"sync"===e.action)&&e.preventDefault()},dataBound:function(){t.dataSource.view().length?(t._tiles=this.items().filter("["+o.attr("type")+"=f]"),t._scroll()):this.wrapper.append(S({text:t.options.messages.emptyFolder}))},change:d(t._listViewChange,t)})},_dblClick:function(t){var n=this,i=e(t.currentTarget);if(i.filter("["+o.attr("type")+"=d]").length){var a=n.dataSource.getByUid(i.attr(o.attr("uid")));a&&(n.path(r(n.path(),a.get(n._getFieldName(w)))),n.breadcrumbs.value(n.path()))}else i.filter("["+o.attr("type")+"=f]").length&&n.trigger(m)},_listViewChange:function(){var e=this._selectedItem();this.toolbar.find(".k-delete").parent().removeClass("k-state-disabled"),e&&"f"===e.get(this._getFieldName(x))&&this.trigger(h)},_dataSource:function(){var e,t=this,n=t.options,r=n.transport,a=c({},C),s={field:w,dir:"asc"},u={type:r.type||"imagebrowser",sort:[a,s]};l(r)&&(r.path=d(t.path,t),u.transport=r),l(n.schema)?(u.schema=n.schema,l(n.schema.model)&&n.schema.model.fields&&(a.field=i(n.schema.model.fields,x),s.field=i(n.schema.model.fields,w))):r.type&&l(o.data.schemas[r.type])&&(e=o.data.schemas[r.type],l(e.model)&&e.model.fields&&(a.field=i(e.model.fields,x),s.field=i(e.model.fields,w))),t.dataSource&&t._errorHandler?t.dataSource.unbind(g,t._errorHandler):t._errorHandler=d(t._error,t),t.dataSource=o.data.DataSource.create(u).bind(g,t._errorHandler)},_navigation:function(){var t=this,n=e('<div class="k-floatwrap"><input/><input/></div>').appendTo(this.element);t.breadcrumbs=n.find("input:first").kendoBreadcrumbs({value:t.options.path,change:function(){t.path(this.value())}}).data("kendoBreadcrumbs"),t.searchBox=n.parent().find("input:last").kendoSearchBox({change:function(){t.search(this.value())}}).data("kendoSearchBox")},_error:function(e){var t,n=this;n.trigger(g,e)||(t=e.xhr.status,"error"==e.status?"404"==t?n._showMessage(n.options.messages.directoryNotFound):"0"!=t&&n._showMessage("Error! The requested URL returned "+t+" - "+e.xhr.statusText):"timeout"==t&&n._showMessage("Error! Server timeout."))},_showMessage:function(e,t){return window[t||"alert"](e)},refresh:function(){var e=this;e._navigation(),e._toolbar(),e._content()},_loadImage:function(t){var n=this,i=e(t),r=n.dataSource.getByUid(i.attr(o.attr("uid"))),a=r.get(n._getFieldName(w)),s=e("<img />",{alt:a}).hide().on("load"+_,function(){e(this).prev().remove().end().addClass("k-image").fadeIn()});i.find(".k-loading").after(s),s.attr("src",n.options.transport.thumbnailUrl+"?path="+n.path()+encodeURIComponent(a)),t.loaded=!0},_scroll:function(){var e=this;e.options.transport&&e.options.transport.thumbnailUrl&&(clearTimeout(e._timeout),e._timeout=setTimeout(function(){var n=e.list.outerHeight(),i=e.list.scrollTop(),r=i+n;e._tiles.each(function(){var n=D(this),a=n+this.offsetHeight;return(n>=i&&r>n||a>=i&&r>a)&&e._loadImage(this),n>r?!1:t}),e._tiles=e._tiles.filter(function(){return!this.loaded})},250))},_editTmpl:function(){var e=this,t='<li class="k-tile k-state-selected" '+o.attr("uid")+'="#=uid#" ';return t+=o.attr("type")+'="${'+e._getFieldName(x)+'}">',t+="#if("+e._getFieldName(x)+' == "d") { #',t+='<div class="k-thumb"><span class="k-icon k-folder"></span></div>',t+="#}else{#",t+='<div class="k-thumb"><span class="k-icon k-loading"></span></div>',t+="#}#",t+="#if("+e._getFieldName(x)+' == "d") { #',t+='<input class="k-input" '+o.attr("bind")+'="value:'+e._getFieldName(w)+'"/>',t+="#}#",t+="</li>",d(o.template(t),{sizeFormatter:a})},_itemTmpl:function(){var e=this,t='<li class="k-tile" '+o.attr("uid")+'="#=uid#" ';return t+=o.attr("type")+'="${'+e._getFieldName(x)+'}">',t+="#if("+e._getFieldName(x)+' == "d") { #',t+='<div class="k-thumb"><span class="k-icon k-folder"></span></div>',t+="#}else{#",t+=e.options.transport&&e.options.transport.thumbnailUrl?'<div class="k-thumb"><span class="k-icon k-loading"></span></div>':'<div class="k-thumb"><span class="k-icon k-file"></span></div>',t+="#}#",t+="<strong>${"+e._getFieldName(w)+"}</strong>",t+="#if("+e._getFieldName(x)+' == "f") { # <span class="k-filesize">${this.sizeFormatter('+e._getFieldName(y)+")}</span> #}#",t+="</li>",d(o.template(t),{sizeFormatter:a})},_getFieldName:function(e){return i(this.dataSource.reader.model.fields,e)},path:function(e){var n=this,i=n._path||"";return e!==t?(n._path=e.replace(f,"")+"/",n.dataSource.read({path:n._path}),t):(i&&(i=i.replace(f,"")),"/"===i||""===i?"":i+"/")}}),A=s.extend({init:function(e,t){var n=this;t=t||{},s.fn.init.call(n,e,t),u&&n.element.attr("placeholder",n.options.label),n._wrapper(),n.element.on("keydown"+b,d(n._keydown,n)).on("change"+b,d(n._updateValue,n)),n.wrapper.on(v+b,"a",d(n._click,n)),u||n.element.on("focus"+b,d(n._focus,n)).on("blur"+b,d(n._blur,n))},options:{name:"SearchBox",label:"Search",value:""},events:[h],destroy:function(){var e=this;e.wrapper.add(e.element).add(e.label).off(b),s.fn.destroy.call(e)},_keydown:function(e){13===e.keyCode&&this._updateValue()},_click:function(e){e.preventDefault(),this._updateValue()},_updateValue:function(){var e=this,t=e.element.val();t!==e.value()&&(e.value(t),e.trigger(h))},_blur:function(){this._updateValue(),this._toggleLabel()},_toggleLabel:function(){u||this.label.toggle(!this.element.val())},_focus:function(){this.label.hide()},_wrapper:function(){var t=this.element,n=t.parents(".k-search-wrap");t[0].style.width="",t.addClass("k-input k-textbox"),n.length||(n=t.wrap(e('<div class="k-widget k-search-wrap k-textbox"/>')).parent(),u||e('<label style="display:block">'+this.options.label+"</label>").insertBefore(t),e('<a href="#" class="k-icon k-i-search k-search"/>').appendTo(n)),this.wrapper=n,this.label=n.find(">label")},value:function(e){var n=this;return e!==t?(n.options.value=e,n.element.val(e),n._toggleLabel(),t):n.options.value}}),N=s.extend({init:function(e,t){var n=this;t=t||{},s.fn.init.call(n,e,t),n._wrapper(),n.wrapper.on("focus"+k,"input",d(n._focus,n)).on("blur"+k,"input",d(n._blur,n)).on("keydown"+k,"input",d(n._keydown,n)).on(v+k,"a.k-i-arrow-n:first",d(n._rootClick,n)).on(v+k,"a:not(.k-i-arrow-n)",d(n._click,n)),n.value(n.options.value)},options:{name:"Breadcrumbs",gap:50},events:[h],destroy:function(){var e=this;s.fn.destroy.call(e),e.wrapper.add(e.wrapper.find("input")).add(e.wrapper.find("a")).off(k)},_update:function(e){e="/"===(e||"").charAt(0)?e:"/"+(e||""),e!==this.value()&&(this.value(e),this.trigger(h))},_click:function(t){t.preventDefault(),this._update(this._path(e(t.target).prevAll("a:not(.k-i-arrow-n)").andSelf()))},_rootClick:function(e){e.preventDefault(),this._update("")},_focus:function(){var e=this,t=e.element;e.overlay.hide(),e.element.val(e.value()),setTimeout(function(){t.select()})},_blur:function(){if(!this.overlay.is(":visible")){var e=this,t=e.element,n=t.val().replace(/\/{2,}/g,"/");e.overlay.show(),t.val(""),e._update(n)}},_keydown:function(e){var t=this;13===e.keyCode&&(t._blur(),setTimeout(function(){t.overlay.find("a:first").focus()}))},_wrapper:function(){var t,n=this.element,i=n.parents(".k-breadcrumbs");n[0].style.width="",n.addClass("k-input"),i.length||(i=n.wrap(e('<div class="k-widget k-breadcrumbs k-header k-state-default"/>')).parent()),t=i.find(".k-breadcrumbs-wrap"),t.length||(t=e('<div class="k-breadcrumbs-wrap"/>').appendTo(i)),this.wrapper=i,this.overlay=t},refresh:function(){var n,i,r,a,o="",s=this.value();for(s!==t&&s.match(/^\//)||(s="/"+(s||"")),n=s.split("/"),r=0,a=n.length;a>r;r++)i=n[r],i&&(o||(o+='<a href="#" class="k-icon k-i-arrow-n">root</a>'),o+='<a class="k-link" href="#">'+n[r]+"</a>",o+='<span class="k-icon k-i-arrow-e">></span>');this.overlay.empty().append(e(o)),this._adjustSectionWidth()},_adjustSectionWidth:function(){var t,n=this,i=n.wrapper,r=i.width()-n.options.gap,a=n.overlay.find("a");a.each(function(n){t=e(this),t.parent().width()>r&&(n==a.length-1?t.width(r):t.prev().andSelf().hide())})},value:function(e){return e!==t?(this._value=e.replace(/\/{2,}/g,"/"),this.refresh(),t):this._value},_path:function(t){return"/"+e.map(t,function(t){return e(t).text()}).join("/")}});o.ui.plugin(E),o.ui.plugin(N),o.ui.plugin(A)}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=n.Class,r=n.ui.Widget,a=n.support.mobileOS,o=n.support.browser,s=e.extend,l=n.deepExtend,d=".kendoEditor",c=n.keys,u=i.extend({init:function(e){var t=this;t.options=e},getHtml:function(){var e=this.options;return n.template(e.template)({cssClass:e.cssClass,tooltip:e.title,initialValue:e.initialValue})}}),p={select:function(e){e.trigger("select",{})},editorWrapperTemplate:'<table cellspacing="4" cellpadding="0" class="k-widget k-editor k-header" role="presentation"><tbody><tr role="presentation"><td class="k-editor-toolbar-wrap" role="presentation"><ul class="k-editor-toolbar" role="toolbar"></ul></td></tr><tr><td class="k-editable-area"></td></tr></tbody></table>',buttonTemplate:'<li class="k-editor-button" role="presentation"><a href="" role="button" class="k-tool-icon #= cssClass #" unselectable="on" title="#= tooltip #">#= tooltip #</a></li>',colorPickerTemplate:'<li class="k-editor-colorpicker" role="presentation"><div class="k-widget k-colorpicker k-header #= cssClass #" role="combobox" title="#=tooltip#"><span class="k-tool-icon"><span class="k-selected-color"></span></span><span class="k-icon k-i-arrow-s"></span></div></li>',comboBoxTemplate:'<li class="k-editor-combobox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',dropDownListTemplate:'<li class="k-editor-selectbox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',separatorTemplate:'<li class="k-separator"></li>',focusable:".k-colorpicker,a.k-tool-icon:not(.k-state-disabled),.k-selectbox, .k-combobox .k-input",wrapTextarea:function(t){var n=t.width(),i=t.height(),r=p.editorWrapperTemplate,a=e(r).insertBefore(t).width(n).height(i),o=a.find(".k-editable-area");return t.appendTo(o).addClass("k-content k-raw-content").hide(),t.closest(".k-editor")},renderTools:function(t,i){var r,a,o,l,d,c={},u=t._nativeTools,f=e(t.element).closest(".k-editor").find(".k-editor-toolbar");if(i)for(o=0;i.length>o;o++)r=i[o],d=null,e.isPlainObject(r)?r.name&&t.tools[r.name]?(e.extend(t.tools[r.name].options,r),c[r.name]=t.tools[r.name],d=c[r.name].options):(d=s({cssClass:"k-i-custom",type:"button",tooltip:""},r),d.name&&(d.cssClass="k-"+("custom"==d.name?"i-custom":d.name)),d.template||"button"==d.type&&(d.template=p.buttonTemplate)):t.tools[r]&&(c[r]=t.tools[r],d=c[r].options),d&&(l=d.template,l&&(l.getHtml?l=l.getHtml():(e.isFunction(l)||(l=n.template(l)),l=l(d)),0!==l.indexOf("<li")&&(l="<li class='k-editor-template'>"+l+"</li>"),a=e(l).appendTo(f),"button"==d.type&&d.exec&&a.find(".k-tool-icon").click(e.proxy(d.exec,t.element[0]))));for(o=0;u.length>o;o++)c[u[o]]||(c[u[o]]=t.tools[u[o]]);t.options.tools=c},decorateStyleToolItems:function(t){var i=t.data.closest(".k-editor").find(".k-style").data("kendoSelectBox");if(i){var r=i.dataSource.view();i.list.find(".k-item").each(function(i,a){var o=e(a),s=o.text(),l=n.ui.editor.Dom.inlineStyle(t.data.data("kendoEditor").document,"span",{className:r[i].value});o.html('<span unselectable="on" style="display:block;'+l+'">'+s+"</span>")})}},createContentElement:function(t,i){var r,a,o,s=n.support.isRtl(t)?"direction:rtl;":"";return t.hide(),r=e("<iframe />",{src:'javascript:""',frameBorder:"0"}).css("display","").addClass("k-content").insertBefore(t)[0],a=r.contentWindow||r,i.length>0&&e(r).one("load",t,p.decorateStyleToolItems),o=a.document||r.contentDocument,o.open(),o.write("<!DOCTYPE html><html><head><meta charset='utf-8' /><style>html,body{padding:0;margin:0;font-family:Verdana,Geneva,sans-serif;background:#fff;height:100%;min-height:100%;}html{font-size:100%}body{font-size:.75em;line-height:1.5;padding-top:1px;margin-top:-1px;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+s+"}"+"h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}"+"p{margin:0 0 1em;padding:0 .2em}.k-marker{display:none;}.k-paste-container{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}"+"ul,ol{padding-left:2.5em}"+"a{color:#00a}"+"code{font-size:1.23em}"+"</style>"+e.map(i,function(e){return"<link rel='stylesheet' href='"+e+"'>"}).join("")+"</head><body contenteditable='true'></body></html>"),o.close(),a},initializeContentElement:function(n){var i=!0;n.window=p.createContentElement(e(n.textarea),n.options.stylesheets),n.document=n.window.contentDocument||n.window.document,n.body=n.document.body,e(n.document).on("keydown"+d,function(e){if(e.keyCode===c.F10)return setTimeout(function(){var e="tabIndex",t=n.wrapper,i=t.attr(e);t.attr(e,i||0).focus().find("li:has("+h+")").first().focus(),i||0===i||t.removeAttr(e)},100),e.preventDefault(),t;var r=n.keyboard.toolFromShortcut(n.options.tools,e);if(r)return e.preventDefault(),/undo|redo/.test(r)||n.keyboard.endTyping(!0),n.exec(r),!1;if(n.keyboard.isTypingKey(e)&&n.pendingFormats.hasPending())if(i)i=!1;else{var a=n.getRange();n.pendingFormats.apply(a),n.selectRange(a)}n.keyboard.clearTimeout(),n.keyboard.keydown(e)}).on("keyup"+d,function(t){var r=[8,9,33,34,35,36,37,38,39,40,40,45,46];if((e.inArray(t.keyCode,r)>-1||65==t.keyCode&&t.ctrlKey&&!t.altKey&&!t.shiftKey)&&(n.pendingFormats.clear(),f(n)),n.keyboard.isTypingKey(t)){if(n.pendingFormats.hasPending()){var a=n.getRange();n.pendingFormats.apply(a),n.selectRange(a)}}else i=!0;n.keyboard.keyup(t)}).on("mousedown"+d,function(t){n.pendingFormats.clear();var i=e(t.target);!o.gecko&&2==t.which&&i.is("a[href]")&&window.open(i.attr("href"),"_new")}).on("mouseup"+d,function(){f(n)}),e(n.window).on("blur"+d,function(){var e=n.textarea.value,t=n.encodedValue();n.update(),t!=e&&n.trigger("change")}),e(n.body).on("cut"+d+" paste"+d,function(e){n.clipboard["on"+e.type](e)})},formatByName:function(t,n){for(var i=0;n.length>i;i++)if(e.inArray(t,n[i].tags)>=0)return n[i]},registerTool:function(e,t){var n=b.fn._tools;n[e]=t,n[e].options&&n[e].options.template&&(n[e].options.template.options.cssClass="k-"+e)},registerFormat:function(e,t){n.ui.Editor.fn.options.formats[e]=t},createDialog:function(t,i,r){var a=n.support.isRtl(i.wrapper),o=e(t).appendTo(document.body).kendoWindow(r);return a&&o.closest(".k-window").addClass("k-rtl"),o}},f=p.select,h=p.focusable,m=p.wrapTextarea,g=p.renderTools,v=p.initializeContentElement,_={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",foreColor:"Color",backColor:"Background color",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found.",imageWebAddress:"Web address",imageAltText:"Alternate text",dialogInsert:"Insert",dialogButtonSeparator:"or",dialogCancel:"Cancel"},k=!a||a.ios&&a.flatVersion>=500||!a.ios&&document.documentElement.contentEditable!==t,b=r.extend({init:function(t,i){function a(t){var n=e.grep(t.className.split(" "),function(e){return!/^k-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(e)});return n[0]?n[0].substring(n[0].lastIndexOf("-")+1):"custom"}function o(e,t){if(!t.key)return e;var n=e+" (";return t.ctrl&&(n+="Ctrl + "),t.shift&&(n+="Shift + "),t.alt&&(n+="Alt + "),n+=t.key+")"}if(k){var s,u,p=this,f=n.ui.editor;r.fn.init.call(p,t,i),p.tools=l({},n.ui.Editor.fn._tools),p.options=l({},p.options,i),t=e(t),t.closest("form").on("submit"+d,function(){p.update()
|
20
|
+
});for(var b in p.tools)p.tools[b].name=b.toLowerCase();p.textarea=t.attr("autocomplete","off")[0],s=p.wrapper=m(t),p.textarea.id&&s.find(".k-editor-toolbar").attr("aria-controls",p.textarea.id),g(p,p.options.tools),v(p),p.keyboard=new f.Keyboard([new f.TypingHandler(p),new f.SystemHandler(p)]),p.clipboard=new f.Clipboard(this),p.pendingFormats=new f.PendingFormats(this),p.undoRedoStack=new f.UndoRedoStack,u=i&&i.value?i.value:t.val().replace(/[\r\n\v\f\t ]+/gi," "),p.value(u);var w=".k-editor-toolbar > li > *, .k-editor-toolbar > li select",y=".k-editor-button .k-tool-icon",x=y+":not(.k-state-disabled)",C=y+".k-state-disabled";s.find(".k-combobox .k-input").keydown(function(t){var n=e(this).closest(".k-combobox").data("kendoComboBox"),i=t.keyCode;i==c.RIGHT||i==c.LEFT?n.close():i==c.DOWN&&(n.dropDown.isOpened()||(t.stopImmediatePropagation(),n.open()))}),s.on("mouseenter"+d,x,function(){e(this).addClass("k-state-hover")}).on("mouseleave"+d,x,function(){e(this).removeClass("k-state-hover")}).on("mousedown"+d,y,!1).on("keydown"+d,h,function(t){var n,i=e(this).closest("li"),r="li:has("+h+")",a=t.keyCode;if(a==c.RIGHT)n=i.nextAll(r).first().find(h);else if(a==c.LEFT)n=i.prevAll(r).first().find(h);else if(a==c.ESC)n=p;else if(a==c.TAB&&!t.ctrlKey&&!t.altKey)if(t.shiftKey){if(n=i.prevAll(r).first().find(h),!n.length)return;t.preventDefault()}else t.preventDefault(),n=i.nextAll(r).first().find(h),n.length||(n=p);n&&n.focus()}).on("click"+d,x,function(e){e.preventDefault(),e.stopPropagation(),p.exec(a(this))}).on("click"+d,C,function(e){e.preventDefault()}).find(w).each(function(){var t=a(this),n=p.options,i=n.tools[t],r=n.messages[t],s=e(this);if(i){if("fontSize"==t||"fontName"==t){var l=n.messages[t+"Inherit"]||_[t+"Inherit"];s.find("input").val(l).end().find("span.k-input").text(l).end()}i.initialize(s,{title:o(r,i),editor:p})}}),p.bind("select",function(){var t=p.getRange(),n=f.RangeUtils.textNodes(t);n.length||(n=[t.startContainer]),s.find(w).each(function(){var t=p.options.tools[a(this)];t&&t.update(e(this),n,p.pendingFormats)})}),p._DOMNodeInsertedHandler=function(e){p._DOMNodeInserted(e)},p._endTypingHandler=function(){p._endTyping()},e(document).on("DOMNodeInserted",p._DOMNodeInsertedHandler).on("mousedown",p._endTypingHandler),n.notify(p)}},_endTyping:function(){var e=this;try{e.keyboard.isTypingInProgress()&&e.keyboard.endTyping(!0),e.selectionRestorePoint||(e.selectionRestorePoint=new n.ui.editor.RestorePoint(e.getRange()))}catch(t){}},_DOMNodeInserted:function(t){var n=this,i=n.wrapper;(e.contains(t.target,i[0])||i[0]==t.target)&&(n.textarea.value=n.value(),i.find("iframe").remove(),v(n),n.value(n.textarea.value))},events:["select","change","execute","error","paste","keydown","keyup"],options:{name:"Editor",messages:_,formats:{},encoded:!0,stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},fontName:[{text:"Arial",value:"Arial,Helvetica,sans-serif"},{text:"Courier New",value:"'Courier New',Courier,monospace"},{text:"Georgia",value:"Georgia,serif"},{text:"Impact",value:"Impact,Charcoal,sans-serif"},{text:"Lucida Console",value:"'Lucida Console',Monaco,monospace"},{text:"Tahoma",value:"Tahoma,Geneva,sans-serif"},{text:"Times New Roman",value:"'Times New Roman',Times,serif"},{text:"Trebuchet MS",value:"'Trebuchet MS',Helvetica,sans-serif"},{text:"Verdana",value:"Verdana,Geneva,sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:["bold","italic","underline","strikethrough","fontName","fontSize","foreColor","backColor","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","formatBlock","createLink","unlink","insertImage"]},destroy:function(){var t=this;r.fn.destroy.call(t),e(t.window).add(t.document).add(t.wrapper).add(t.element.closest("form")).off(d),e(document).off("DOMNodeInserted",t._DOMNodeInsertedHandler).off("mousedown",t._endTypingHandler),n.destroy(t.wrapper)},_nativeTools:["insertLineBreak","insertParagraph","redo","undo","insertHtml"],_tools:{undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},tools:{},value:function(i){var r=this.body,a=n.ui.editor.Dom,s=n.ui.editor.Serializer.domToXhtml(r);if(i===t)return s;if(i!=s){if(this.pendingFormats.clear(),i=(i||"").replace(/<!\[CDATA\[(.*)?\]\]>/g,"<!--[CDATA[$1]]-->").replace(/<script([^>]*)>(.*)?<\/script>/gi,"<telerik:script $1>$2</telerik:script>").replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/gi,"$1"),o.msie||(i=i.replace(/<p([^>]*)>(\s*)?<\/p>/gi,'<p $1><br _moz_dirty="" /></p>')),o.msie&&9>parseInt(o.version,10)){i="<br/>"+i;var l="originalsrc",d="originalhref";i=i.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,d+'="$1"'),i=i.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,l+'="$1"'),r.innerHTML=i,a.remove(r.firstChild),e(r).find("telerik\\:script,script,link,img,a").each(function(){var e=this;e[d]&&(e.setAttribute("href",e[d]),e.removeAttribute(d)),e[l]&&(e.setAttribute("src",e[l]),e.removeAttribute(l))})}else r.innerHTML=i,o.msie&&(a.normalize(r),setTimeout(function(){var e,t,n,i=r.getElementsByTagName("ol");for(e=0;i.length>e;e++)t=i[e],n=t.getAttribute("start"),t.setAttribute("start",1),n?t.setAttribute("start",n):t.removeAttribute(n)},1));this.selectionRestorePoint=null,this.update()}},focus:function(){this.window.focus()},update:function(e){this.textarea.value=e||this.options.encoded?this.encodedValue():this.value()},encodedValue:function(){return n.ui.editor.Dom.encode(this.value())},createRange:function(e){return n.ui.editor.RangeUtils.createRange(e||this.document)},getSelection:function(){return n.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(e){this.focus();var t=this.getSelection();t.removeAllRanges(),t.addRange(e)},getRange:function(){var e=this.getSelection(),t=e.rangeCount>0?e.getRangeAt(0):this.createRange(),n=this.document;return t.startContainer!=n||t.endContainer!=n||t.startOffset||t.endOffset||(t.setStart(this.body,0),t.collapse(!0)),t},selectedHtml:function(){return n.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(e){this.clipboard.paste(e)},exec:function(n,i){var r,a,o,l,d=this,c="";n=n.toLowerCase(),d.keyboard.isTypingInProgress()||(d.focus(),r=d.getRange(),a=d.document.body);for(o in d.options.tools)if(o.toLowerCase()==n){c=d.options.tools[o];break}if(c){if(r=d.getRange(),!/undo|redo/i.test(n)&&c.willDelayExecution(r))return l=e.extend({},c),e.extend(l.options,{params:i}),d.pendingFormats.toggle(l),f(d),t;var u=c.command?c.command(s({range:r},i)):null;if(d.trigger("execute",{name:n,command:u}),/undo|redo/i.test(n))d.undoRedoStack[n]();else if(u&&(u.managesUndoRedo||d.undoRedoStack.push(u),u.editor=d,u.exec(),u.async))return u.change=e.proxy(function(){f(d)},d),t;f(d)}}});n.ui.plugin(b);var w=i.extend({init:function(e){this.options=e},initialize:function(e,t){e.attr({unselectable:"on",title:t.title})},command:function(e){return new this.options.command(e)},update:function(){},willDelayExecution:function(){return!1}});w.exec=function(e,t,n){e.exec(t,{value:n})};var y=w.extend({init:function(e){w.fn.init.call(this,e)},command:function(e){var t=this;return new n.ui.editor.FormatCommand(s(e,{formatter:t.options.formatter}))},update:function(e,t,n){var i=n.isPending(this.name),r=this.options.finder.isFormatted(t),a=i?!r:r;e.toggleClass("k-state-active",a),e.attr("aria-pressed",a)}});p.registerTool("separator",new w({template:new u({template:p.separatorTemplate})})),s(n.ui,{editor:{ToolTemplate:u,EditorUtils:p,Tool:w,FormatTool:y}})}(window.kendo.jQuery),function(e){function t(e){var t,n,i={};for(t=0,n=e.length;n>t;t++)i[e[t]]=!0;return i}var n=window.kendo,i=e.map,r=e.extend,a=n.support.browser,o="style",s="float",l="cssFloat",d="styleFloat",c="class",u="k-marker",p=t("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),f="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(","),h=t(f),m="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var".split(","),g=t(m),v=t("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),_=function(e){1==e.nodeType&&e.normalize()};a.msie&&parseInt(a.version,10)>=8&&(_=function(e){if(1==e.nodeType&&e.firstChild)for(var t=e.firstChild,n=t;;){if(n=n.nextSibling,!n)break;3==n.nodeType&&3==t.nodeType&&(n.nodeValue=t.nodeValue+n.nodeValue,F.remove(t)),t=n}});var k=/^\s+$/,b=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,w=/&/g,y=/</g,x=/>/g,C=/\u00a0/g,T=/\ufeff/g,S="color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height".split(","),F={findNodeIndex:function(e){for(var t=0;;){if(e=e.previousSibling,!e)break;t++}return t},isDataNode:function(e){return e&&null!==e.nodeValue&&null!==e.data},isAncestorOf:function(t,n){try{return!F.isDataNode(t)&&(e.contains(t,F.isDataNode(n)?n.parentNode:n)||n.parentNode==t)}catch(i){return!1}},isAncestorOrSelf:function(e,t){return F.isAncestorOf(e,t)||e==t},findClosestAncestor:function(e,t){if(F.isAncestorOf(e,t))for(;t&&t.parentNode!=e;)t=t.parentNode;return t},getNodeLength:function(e){return F.isDataNode(e)?e.length:e.childNodes.length},splitDataNode:function(e,t){for(var n=e.cloneNode(!1),i="",r=e;r.nextSibling&&3==r.nextSibling.nodeType&&r.nextSibling.nodeValue;)i+=r.nextSibling.nodeValue,r=r.nextSibling;e.deleteData(t,e.length),n.deleteData(0,t),n.nodeValue+=i,F.insertAfter(n,e)},attrEquals:function(t,n){for(var i in n){var r=t[i];if(i==s&&(r=t[e.support.cssFloat?l:d]),"object"==typeof r){if(!F.attrEquals(r,n[i]))return!1}else if(r!=n[i])return!1}return!0},blockParentOrBody:function(e){return F.parentOfType(e,f)||e.ownerDocument.body},blockParents:function(t){var n,i,r=[];for(n=0,i=t.length;i>n;n++){var a=F.parentOfType(t[n],F.blockElements);a&&0>e.inArray(a,r)&&r.push(a)}return r},windowFromDocument:function(e){return e.defaultView||e.parentWindow},normalize:_,blockElements:f,inlineElements:m,empty:p,fillAttrs:v,toHex:function(e){var t=b.exec(e);return t?"#"+i(t.slice(1),function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e}).join(""):e},encode:function(e){return e.replace(w,"&").replace(y,"<").replace(x,">").replace(C," ")},name:function(e){return e.nodeName.toLowerCase()},significantChildNodes:function(t){return e.grep(t.childNodes,function(e){return 3!=e.nodeType||!F.isWhitespace(e)})},lastTextNode:function(e){var t=null;if(3==e.nodeType)return e;for(var n=e.lastChild;n;n=n.previousSibling)if(t=F.lastTextNode(n))return t;return t},is:function(e,t){return F.name(e)==t},isMarker:function(e){return e.className==u},isWhitespace:function(e){return k.test(e.nodeValue)},isBlock:function(e){return h[F.name(e)]},isEmpty:function(e){return p[F.name(e)]},isInline:function(e){return g[F.name(e)]},scrollTo:function(t){var n,i,r=t.ownerDocument.body,a=e(F.isDataNode(t)?t.parentNode:t),o=F.windowFromDocument(t.ownerDocument).innerHeight;"br"==F.name(a[0])&&(a=a.parent()),n=a.offset().top,i=a[0].offsetHeight,i+n>r.scrollTop+o&&(r.scrollTop=i+n-o)},insertAt:function(e,t,n){e.insertBefore(t,e.childNodes[n]||null)},insertBefore:function(e,t){return t.parentNode?t.parentNode.insertBefore(e,t):t},insertAfter:function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},remove:function(e){e.parentNode.removeChild(e)},trim:function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];F.isDataNode(n)?(n.nodeValue.replace(T,"").length||F.remove(n),F.isWhitespace(n)&&F.insertBefore(n,e)):n.className!=u&&(F.trim(n),n.childNodes.length||F.isEmpty(n)||F.remove(n))}return e},parentOfType:function(e,t){do e=e.parentNode;while(e&&!F.ofType(e,t));return e},ofType:function(t,n){return e.inArray(F.name(t),n)>=0},changeTag:function(e,t){var n,i,r,a,s,l=F.create(e.ownerDocument,t),d=e.attributes;for(n=0,i=d.length;i>n;n++)s=d[n],s.specified&&(r=s.nodeName,a=s.nodeValue,r==c?l.className=a:r==o?l.style.cssText=e.style.cssText:l.setAttribute(r,a));for(;e.firstChild;)l.appendChild(e.firstChild);return F.insertBefore(l,e),F.remove(e),l},wrap:function(e,t){return F.insertBefore(t,e),t.appendChild(e),t},unwrap:function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)},create:function(e,t,n){return F.attr(e.createElement(t),n)},attr:function(e,t){return t=r({},t),t&&o in t&&(F.style(e,t.style),delete t.style),r(e,t)},style:function(t,n){e(t).css(n||{})},unstyle:function(t,n){for(var i in n)i==s&&(i=e.support.cssFloat?l:d),t.style[i]="";""===t.style.cssText&&t.removeAttribute(o)},inlineStyle:function(t,n,r){var o,s=e(F.create(t,n,r));return t.body.appendChild(s[0]),o=i(S,function(e){return a.msie&&"line-height"==e&&"1px"==s.css(e)?"line-height:1.5":e+":"+s.css(e)}).join(";"),s.remove(),o},removeClass:function(t,n){var i,r,a=" "+t.className+" ",o=n.split(" ");for(i=0,r=o.length;r>i;i++)a=a.replace(" "+o[i]+" "," ");a=e.trim(a),a.length?t.className=a:t.removeAttribute(c)},commonAncestor:function(){var e,t,n,i,r,a=arguments.length,o=[],s=1/0,l=null;if(!a)return null;if(1==a)return arguments[0];for(e=0;a>e;e++){for(t=[],n=arguments[e];n;)t.push(n),n=n.parentNode;o.push(t.reverse()),s=Math.min(s,t.length)}if(1==a)return o[0][0];for(e=0;s>e;e++){for(i=o[0][e],r=1;a>r;r++)if(i!=o[r][e])return l;l=i}return l}};n.ui.editor.Dom=F}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=n.ui.editor,r=i.Dom,a=e.extend,o="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),s=/"/g,l=/<br[^>]*>/i,d=/<p><\/p>/i,c=/([\w|\-]+)\s*:\s*([^;]+);?/i,u={domToXhtml:function(n){function i(n){var i,a,o,l=[],d=n.attributes,u=e.trim;if(r.is(n,"img")){var f=n.style.width,h=n.style.height,m=e(n);f&&(m.attr("width",parseInt(f,10)),r.unstyle(n,{width:t})),h&&(m.attr("height",parseInt(h,10)),r.unstyle(n,{height:t}))}for(a=0,o=d.length;o>a;a++){i=d[a];var g=i.nodeName;(i.specified||"value"==g&&!n.value||"type"==g&&"text"==i.nodeValue)&&0>g.indexOf("_moz")&&"complete"!=g&&"altHtml"!=g&&l.push(i)}if(l.length)for(l.sort(function(e,t){return e.nodeName>t.nodeName?1:t.nodeName>e.nodeName?-1:0}),a=0,o=l.length;o>a;a++){i=l[a];var v=i.nodeName,_=i.nodeValue;if(p.push(" "),p.push(v),p.push('="'),"style"==v)for(var k=u(_||n.style.cssText).split(";"),b=0,w=k.length;w>b;b++){var y=k[b];if(y.length){var x=c.exec(y),C=u(x[1].toLowerCase()),T=u(x[2]);if("font-size-adjust"==C||"font-stretch"==C)continue;C.indexOf("color")>=0&&(T=r.toHex(T)),C.indexOf("font")>=0&&(T=T.replace(s,"'")),p.push(C),p.push(":"),p.push(T),p.push(";")}}else"src"==v||"href"==v?p.push(n.getAttribute(v,2)):p.push(r.fillAttrs[v]?v:_);p.push('"')}}function a(e,t){for(var n=e.firstChild;n;n=n.nextSibling)u(n,t)}function u(n,o){var s,l,d,c,u,h=n.nodeType;if(1==h){if(s=r.name(n),!s||(n.attributes._moz_dirty||n.attributes._moz_editor_bogus_node)&&r.is(n,"br")||"k-marker"==n.className)return;if(l=f[s])return l.start(n),a(n),l.end(n),t;p.push("<"),p.push(s),i(n),r.empty[s]?p.push(" />"):(p.push(">"),a(n,o||r.is(n,"pre")),p.push("</"),p.push(s),p.push(">"))}else 3==h?(c=n.nodeValue,!o&&e.support.leadingWhitespace&&(d=n.parentNode,u=n.previousSibling,u||(u=(r.isInline(d)?d:n).previousSibling),(!u||""===u.innerHTML||r.isBlock(u))&&(c=c.replace(/^[\r\n\v\f\t ]+/,"")),c=c.replace(/ +/," ")),p.push(r.encode(c))):4==h?(p.push("<![CDATA["),p.push(n.data),p.push("]]>")):8==h&&(0>n.data.indexOf("[CDATA[")?(p.push("<!--"),p.push(n.data),p.push("-->")):(p.push("<!"),p.push(n.data),p.push(">")))}var p=[],f={"telerik:script":{start:function(e){p.push("<script"),i(e),p.push(">")},end:function(){p.push("</script>")}},b:{start:function(){p.push("<strong>")},end:function(){p.push("</strong>")}},i:{start:function(){p.push("<em>")},end:function(){p.push("</em>")}},u:{start:function(){p.push('<span style="text-decoration:underline;">')},end:function(){p.push("</span>")}},iframe:{start:function(e){p.push("<iframe"),i(e),p.push(">")},end:function(){p.push("</iframe>")}},font:{start:function(e){p.push('<span style="');var t=e.getAttribute("color"),n=o[e.getAttribute("size")],i=e.getAttribute("face");t&&(p.push("color:"),p.push(r.toHex(t)),p.push(";")),i&&(p.push("font-face:"),p.push(i),p.push(";")),n&&(p.push("font-size:"),p.push(n),p.push(";")),p.push('">')},end:function(){p.push("</span>")}}};return a(n),p=p.join(""),""===p.replace(l,"").replace(d,"")?"":p}};a(i,{Serializer:u})}(window.kendo.jQuery),function(e){function t(e,t,n,i){if(e==t)return i-n;for(var r=t;r&&r.parentNode!=e;)r=r.parentNode;if(r)return p(r)-n;for(r=e;r&&r.parentNode!=t;)r=r.parentNode;if(r)return i-p(r)-1;for(var a=u.commonAncestor(e,t),o=e;o&&o.parentNode!=a;)o=o.parentNode;o||(o=a);for(var s=t;s&&s.parentNode!=a;)s=s.parentNode;return s||(s=a),o==s?0:p(s)-p(o)}function n(e,n){function i(e){try{return 0>t(e.startContainer,e.endContainer,e.startOffset,e.endOffset)}catch(n){return!0}}i(e)&&(n?(e.commonAncestorContainer=e.endContainer=e.startContainer,e.endOffset=e.startOffset):(e.commonAncestorContainer=e.startContainer=e.endContainer,e.startOffset=e.endOffset),e.collapsed=!0)}function i(e){e.collapsed=e.startContainer==e.endContainer&&e.startOffset==e.endOffset;for(var t=e.startContainer;t&&t!=e.endContainer&&!u.isAncestorOf(t,e.endContainer);)t=t.parentNode;e.commonAncestorContainer=t}function r(e,t,n){var i=t[n?"startContainer":"endContainer"],r=t[n?"startOffset":"endOffset"],a=0,o=f(i)?i:i.childNodes[r]||null,s=f(i)?i.parentNode:i;(3==i.nodeType||4==i.nodeType)&&(a=r);var l=s.insertBefore(u.create(t.ownerDocument,"a"),o),d=t.ownerDocument.body.createTextRange();d.moveToElementText(l),u.remove(l),d[n?"moveStart":"moveEnd"]("character",a),d.collapse(!1),e.setEndPoint(n?"StartToStart":"EndToStart",d)}function a(e,t,n){var i=u.create(t.ownerDocument,"a"),r=e.duplicate();r.collapse(n);var a=r.parentElement();do a.insertBefore(i,i.previousSibling),r.moveToElementText(i);while(r.compareEndPoints(n?"StartToStart":"StartToEnd",e)>0&&i.previousSibling);r.setEndPoint(n?"EndToStart":"EndToEnd",e);var o=i.nextSibling;return o?(u.remove(i),f(o)?t[n?"setStart":"setEnd"](o,r.text.length):t[n?"setStartBefore":"setEndBefore"](o),void 0):(o=i.previousSibling,o&&f(o)?(t.setEnd(o,o.nodeValue.length),u.remove(i)):(t.selectNodeContents(a),u.remove(i),t.endOffset-=1),void 0)}var o=window.kendo,s=o.Class,l=e.extend,d=o.ui.editor,c=o.support.browser,u=d.Dom,p=u.findNodeIndex,f=u.isDataNode,h=u.findClosestAncestor,m=u.getNodeLength,g=u.normalize,v={selectionFromWindow:function(e){return c.msie&&9>c.version?new b(e.document):e.getSelection()},selectionFromRange:function(e){var t=T.documentFromRange(e);return v.selectionFromDocument(t)},selectionFromDocument:function(e){return v.selectionFromWindow(u.windowFromDocument(e))}},_=s.extend({init:function(t){e.extend(this,{ownerDocument:t,startContainer:t,endContainer:t,commonAncestorContainer:t,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(e,t){this.startContainer=e,this.startOffset=t,i(this),n(this,!0)},setEnd:function(e,t){this.endContainer=e,this.endOffset=t,i(this),n(this,!1)},setStartBefore:function(e){this.setStart(e.parentNode,p(e))},setStartAfter:function(e){this.setStart(e.parentNode,p(e)+1)},setEndBefore:function(e){this.setEnd(e.parentNode,p(e))},setEndAfter:function(e){this.setEnd(e.parentNode,p(e)+1)},selectNode:function(e){this.setStartBefore(e),this.setEndAfter(e)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e[1===e.nodeType?"childNodes":"nodeValue"].length)},collapse:function(e){var t=this;e?t.setEnd(t.startContainer,t.startOffset):t.setStart(t.endContainer,t.endOffset)},deleteContents:function(){var e=this,t=e.cloneRange();e.startContainer!=e.commonAncestorContainer&&e.setStartAfter(h(e.commonAncestorContainer,e.startContainer)),e.collapse(!0),function n(e){for(;e.next();)e.hasPartialSubtree()?n(e.getSubtreeIterator()):e.remove()}(new k(t))},cloneContents:function(){var e=T.documentFromRange(this);return function t(n){for(var i,r=e.createDocumentFragment();i=n.next();)i=i.cloneNode(!n.hasPartialSubtree()),n.hasPartialSubtree()&&i.appendChild(t(n.getSubtreeIterator())),r.appendChild(i);return r}(new k(this))},extractContents:function(){var e=this,t=e.cloneRange();e.startContainer!=e.commonAncestorContainer&&e.setStartAfter(h(e.commonAncestorContainer,e.startContainer)),e.collapse(!0);var n=T.documentFromRange(e);return function i(t){for(var r,a=n.createDocumentFragment();r=t.next();)t.hasPartialSubtree()?(r=r.cloneNode(!1),r.appendChild(i(t.getSubtreeIterator()))):t.remove(e.originalRange),a.appendChild(r);return a}(new k(t))},insertNode:function(e){var t=this;f(t.startContainer)?(t.startOffset!=t.startContainer.nodeValue.length&&u.splitDataNode(t.startContainer,t.startOffset),u.insertAfter(e,t.startContainer)):u.insertAt(t.startContainer,e,t.startOffset),t.setStart(t.startContainer,t.startOffset)},cloneRange:function(){return e.extend(new _(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var e=this.startContainer.nodeName,t=this.endContainer.nodeName;return["#text"==e?this.startContainer.nodeValue:e,"(",this.startOffset,") : ","#text"==t?this.endContainer.nodeValue:t,"(",this.endOffset,")"].join("")}}),k=s.extend({init:function(t){if(e.extend(this,{range:t,_current:null,_next:null,_end:null}),!t.collapsed){var n=t.commonAncestorContainer;this._next=t.startContainer!=n||f(t.startContainer)?h(n,t.startContainer):t.startContainer.childNodes[t.startOffset],this._end=t.endContainer!=n||f(t.endContainer)?h(n,t.endContainer).nextSibling:t.endContainer.childNodes[t.endOffset]}},hasNext:function(){return!!this._next},next:function(){var e=this,t=e._current=e._next;return e._next=e._current&&e._current.nextSibling!=e._end?e._current.nextSibling:null,f(e._current)&&(e.range.endContainer==e._current&&(t=t.cloneNode(!0),t.deleteData(e.range.endOffset,t.length-e.range.endOffset)),e.range.startContainer==e._current&&(t=t.cloneNode(!0),t.deleteData(0,e.range.startOffset))),t},traverse:function(e){function t(){return i._current=i._next,i._next=i._current&&i._current.nextSibling!=i._end?i._current.nextSibling:null,i._current}for(var n,i=this;n=t();)i.hasPartialSubtree()?i.getSubtreeIterator().traverse(e):e(n);return n},remove:function(e){var t,n,i,r=this,a=r.range.startContainer==r._current,o=r.range.endContainer==r._current;if(f(r._current)&&(a||o))t=a?r.range.startOffset:0,n=o?r.range.endOffset:r._current.length,i=n-t,e&&(a||o)&&(r._current==e.startContainer&&e.startOffset>=t&&(e.startOffset-=i),r._current==e.endContainer&&e.endOffset>=n&&(e.endOffset-=i)),r._current.deleteData(t,i);else{var s=r._current.parentNode;if(e&&(r.range.startContainer==s||r.range.endContainer==s)){var l=p(r._current);s==e.startContainer&&e.startOffset>=l&&(e.startOffset-=1),s==e.endContainer&&e.endOffset>l&&(e.endOffset-=1)}u.remove(r._current)}},hasPartialSubtree:function(){return!f(this._current)&&(u.isAncestorOrSelf(this._current,this.range.startContainer)||u.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){var e=this,t=e.range.cloneRange();return t.selectNodeContents(e._current),u.isAncestorOrSelf(e._current,e.range.startContainer)&&t.setStart(e.range.startContainer,e.range.startOffset),u.isAncestorOrSelf(e._current,e.range.endContainer)&&t.setEnd(e.range.endContainer,e.range.endOffset),new k(t)}}),b=s.extend({init:function(e){this.ownerDocument=e,this.rangeCount=1},addRange:function(e){var t=this.ownerDocument.body.createTextRange();r(t,e,!1),r(t,e,!0),t.select()},removeAllRanges:function(){this.ownerDocument.selection.empty()},getRangeAt:function(){var e,t,n=new _(this.ownerDocument),i=this.ownerDocument.selection;try{if(e=i.createRange(),t=e.item?e.item(0):e.parentElement(),t.ownerDocument!=this.ownerDocument)return n}catch(r){return n}if("Control"==i.type)n.selectNode(e.item(0));else{a(e,n,!0),a(e,n,!1),9==n.startContainer.nodeType&&n.setStart(n.endContainer,n.startOffset),9==n.endContainer.nodeType&&n.setEnd(n.startContainer,n.endOffset),0===e.compareEndPoints("StartToEnd",e)&&n.collapse(!1);var o=n.startContainer,s=n.endContainer,l=this.ownerDocument.body;if(!(n.collapsed||0!==n.startOffset||n.endOffset!=m(n.endContainer)||o==s&&f(o)&&o.parentNode==l)){for(var d=!1,c=!1;0===p(o)&&o==o.parentNode.firstChild&&o!=l;)o=o.parentNode,d=!0;for(;p(s)==m(s.parentNode)-1&&s==s.parentNode.lastChild&&s!=l;)s=s.parentNode,c=!0;o==l&&s==l&&d&&c&&(n.setStart(o,0),n.setEnd(s,m(l)))}}return n}}),w=s.extend({init:function(e){this.enumerate=function(){function t(e){if(u.is(e,"img")||3==e.nodeType&&!u.isWhitespace(e))n.push(e);else for(e=e.firstChild;e;)t(e),e=e.nextSibling}var n=[];return new k(e).traverse(t),n}}}),y=s.extend({init:function(e){var t=this;t.range=e,t.rootNode=T.documentFromRange(e),t.body=t.rootNode.body,t.html=t.body.innerHTML,t.startContainer=t.nodeToPath(e.startContainer),t.endContainer=t.nodeToPath(e.endContainer),t.startOffset=t.offset(e.startContainer,e.startOffset),t.endOffset=t.offset(e.endContainer,e.endOffset)},index:function(e){for(var t=0,n=e.nodeType;e=e.previousSibling;){var i=e.nodeType;(3!=i||n!=i)&&t++,n=i}return t},offset:function(e,t){if(3==e.nodeType)for(;(e=e.previousSibling)&&3==e.nodeType;)t+=e.nodeValue.length;return t},nodeToPath:function(e){for(var t=[];e!=this.rootNode;)t.push(this.index(e)),e=e.parentNode;return t},toRangePoint:function(e,t,n,i){for(var r=this.rootNode,a=n.length,o=i;a--;)r=r.childNodes[n[a]];for(;3==r.nodeType&&o>r.nodeValue.length;)o-=r.nodeValue.length,r=r.nextSibling;e[t?"setStart":"setEnd"](r,o)},toRange:function(){var e=this,t=e.range.cloneRange();return e.toRangePoint(t,!0,e.startContainer,e.startOffset),e.toRangePoint(t,!1,e.endContainer,e.endOffset),t}}),x=s.extend({init:function(){this.caret=null},addCaret:function(e){var t=this;return t.caret=u.create(T.documentFromRange(e),"span",{className:"k-marker"}),e.insertNode(t.caret),e.selectNode(t.caret),t.caret},removeCaret:function(e){var t=this,n=t.caret.previousSibling,i=0;n&&(i=f(n)?n.nodeValue.length:p(n));var r=t.caret.parentNode,a=n?p(n):0;u.remove(t.caret),g(r);var o=r.childNodes[a];if(f(o))e.setStart(o,i);else if(o){var s=u.lastTextNode(o);s?e.setStart(s,s.nodeValue.length):e[n?"setStartAfter":"setStartBefore"](o)}else c.msie||r.innerHTML||(r.innerHTML='<br _moz_dirty="" />'),e.selectNodeContents(r);e.collapse(!0)},add:function(e,t){var n=this;t&&e.collapsed&&(n.addCaret(e),e=T.expand(e));var i=e.cloneRange();return i.collapse(!1),n.end=u.create(T.documentFromRange(e),"span",{className:"k-marker"}),i.insertNode(n.end),i=e.cloneRange(),i.collapse(!0),n.start=n.end.cloneNode(!0),i.insertNode(n.start),e.setStartBefore(n.start),e.setEndAfter(n.end),g(e.commonAncestorContainer),e},remove:function(e){var t,n,i,r=this,a=r.start,o=r.end;for(g(e.commonAncestorContainer);!a.nextSibling&&a.parentNode;)a=a.parentNode;for(;!o.previousSibling&&o.parentNode;)o=o.parentNode;t=a.previousSibling&&3==a.previousSibling.nodeType&&a.nextSibling&&3==a.nextSibling.nodeType,n=o.previousSibling&&3==o.previousSibling.nodeType&&o.nextSibling&&3==o.nextSibling.nodeType,i=t&&n,a=a.nextSibling,o=o.previousSibling;var s=!1,l=!1;if(a==r.end&&(l=!!r.start.previousSibling,a=o=r.start.previousSibling||r.end.nextSibling,s=!0),u.remove(r.start),u.remove(r.end),!a||!o)return e.selectNodeContents(e.commonAncestorContainer),e.collapse(!0),void 0;var d=s?f(a)?a.nodeValue.length:a.childNodes.length:0,c=f(o)?o.nodeValue.length:o.childNodes.length;if(3==a.nodeType)for(;a.previousSibling&&3==a.previousSibling.nodeType;)a=a.previousSibling,d+=a.nodeValue.length;if(3==o.nodeType)for(;o.previousSibling&&3==o.previousSibling.nodeType;)o=o.previousSibling,c+=o.nodeValue.length;for(var h=p(a),m=a.parentNode,v=p(o),_=o.parentNode,k=a;k.previousSibling;k=k.previousSibling)3==k.nodeType&&3==k.previousSibling.nodeType&&h--;for(var b=o;b.previousSibling;b=b.previousSibling)3==b.nodeType&&3==b.previousSibling.nodeType&&v--;g(m),3==a.nodeType&&(a=m.childNodes[h]),g(_),3==o.nodeType&&(o=_.childNodes[v]),s?(3==a.nodeType?e.setStart(a,d):e[l?"setStartAfter":"setStartBefore"](a),e.collapse(!0)):(3==a.nodeType?e.setStart(a,d):e.setStartBefore(a),3==o.nodeType?e.setEnd(o,c):e.setEndAfter(o)),r.caret&&r.removeCaret(e)}}),C=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,T={nodes:function(e){var t=T.textNodes(e);return t.length||(e.selectNodeContents(e.commonAncestorContainer),t=T.textNodes(e),t.length||(t=u.significantChildNodes(e.commonAncestorContainer))),t},textNodes:function(e){return new w(e).enumerate()},documentFromRange:function(e){var t=e.startContainer;return 9==t.nodeType?t:t.ownerDocument},createRange:function(e){return c.msie&&9>c.version?new _(e):e.createRange()},selectRange:function(e){var t=T.image(e);t&&(e.setStartAfter(t),e.setEndAfter(t));var n=v.selectionFromRange(e);n.removeAllRanges(),n.addRange(e)},split:function(e,t,n){function i(i){var r=e.cloneRange();r.collapse(i),r[i?"setStartBefore":"setEndAfter"](t);var a=r.extractContents();n&&(a=u.trim(a)),u[i?"insertBefore":"insertAfter"](a,t)}i(!0),i(!1)},getMarkers:function(e){var t=[];return new k(e).traverse(function(e){"k-marker"==e.className&&t.push(e)}),t},image:function(e){var t=[];return new k(e).traverse(function(e){u.is(e,"img")&&t.push(e)}),1==t.length?t[0]:void 0},expand:function(e){var t=e.cloneRange(),n=t.startContainer.childNodes[0===t.startOffset?0:t.startOffset-1],i=t.endContainer.childNodes[t.endOffset];if(!f(n)||!f(i))return t;var r=n.nodeValue,a=i.nodeValue;if(!r||!a)return t;var o=r.split("").reverse().join("").search(C),s=a.search(C);return o&&s?(s=-1==s?a.length:s,o=-1==o?0:r.length-o,t.setStart(n,o),t.setEnd(i,s),t):t},isExpandable:function(e){var t=e.startContainer,n=T.documentFromRange(e);if(t==n||t==n.body)return!1;var i=e.cloneRange(),r=t.nodeValue;if(!r)return!1;var a=r.substring(0,i.startOffset),o=r.substring(i.startOffset),s=0,l=0;return a&&(s=a.split("").reverse().join("").search(C)),o&&(l=o.search(C)),s&&l}};l(d,{SelectionUtils:v,W3CRange:_,RangeIterator:k,W3CSelection:b,RangeEnumerator:w,RestorePoint:y,Marker:x,RangeUtils:T})}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.Class,i=t.ui.editor,r=i.EditorUtils,a=r.registerTool,o=i.Dom,s=i.RangeUtils,l=s.selectRange,d=i.Tool,c=i.ToolTemplate,u=i.RestorePoint,p=i.Marker,f=e.extend,h=n.extend({init:function(e){var t=this;t.options=e,t.restorePoint=new u(e.range),t.marker=new p,t.formatter=e.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(e){return this.marker.add(this.getRange(),e)},releaseRange:function(e){this.marker.remove(e),l(e)},undo:function(){var e=this.restorePoint;e.body.innerHTML=e.html,l(e.toRange())},redo:function(){this.exec()},exec:function(){var e=this,t=e.lockRange(!0);e.formatter.editor=e.editor,e.formatter.toggle(t),e.releaseRange(t)}}),m=n.extend({init:function(e,t){this.body=e.body,this.startRestorePoint=e,this.endRestorePoint=t
|
21
|
+
},redo:function(){this.body.innerHTML=this.endRestorePoint.html,l(this.endRestorePoint.toRange())},undo:function(){this.body.innerHTML=this.startRestorePoint.html,l(this.startRestorePoint.toRange())}}),g=h.extend({init:function(e){h.fn.init.call(this,e),this.managesUndoRedo=!0},exec:function(){var e=this.editor,t=e.getRange(),n=new u(t);e.clipboard.paste(this.options.value||""),e.undoRedoStack.push(new m(n,new u(e.getRange()))),e.focus()}}),v=d.extend({initialize:function(e,t){var n=t.editor;new i.SelectBox(e,{dataSource:n.options.insertHtml||[],dataTextField:"text",dataValueField:"value",change:function(){d.exec(n,"insertHtml",this.value())},title:n.options.messages.insertHtml,highlightFirst:!1})},command:function(e){return new g(e)},update:function(e){var t=e.data("kendoSelectBox")||e.find("select").data("kendoSelectBox");t.close(),t.value(t.options.title)}}),_=n.extend({init:function(){this.stack=[],this.currentCommandIndex=-1},push:function(e){var t=this;t.stack=t.stack.slice(0,t.currentCommandIndex+1),t.currentCommandIndex=t.stack.push(e)-1},undo:function(){this.canUndo()&&this.stack[this.currentCommandIndex--].undo()},redo:function(){this.canRedo()&&this.stack[++this.currentCommandIndex].redo()},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}}),k=n.extend({init:function(e){this.editor=e},keydown:function(t){var n=this,i=n.editor,r=i.keyboard,a=r.isTypingKey(t),o=f(e.Event(),t);if(n.editor.trigger("keydown",o),o.isDefaultPrevented()&&t.preventDefault(),!o.isDefaultPrevented()&&a&&!r.isTypingInProgress()){var s=i.getRange();return n.startRestorePoint=new u(s),r.startTyping(function(){i.selectionRestorePoint=n.endRestorePoint=new u(i.getRange()),i.undoRedoStack.push(new m(n.startRestorePoint,n.endRestorePoint))}),!0}return!1},keyup:function(e){var t=this.editor.keyboard;return this.editor.trigger("keyup",e),t.isTypingInProgress()?(t.endTyping(),!0):!1}}),b=n.extend({init:function(e){this.editor=e,this.systemCommandIsInProgress=!1},createUndoCommand:function(){var e=this;e.endRestorePoint=new u(e.editor.getRange()),e.editor.undoRedoStack.push(new m(e.startRestorePoint,e.endRestorePoint)),e.startRestorePoint=e.endRestorePoint},changed:function(){return this.startRestorePoint?this.startRestorePoint.html!=this.editor.body.innerHTML:!1},keydown:function(e){var t=this,n=t.editor,i=n.keyboard;return i.isModifierKey(e)?(i.isTypingInProgress()&&i.endTyping(!0),t.startRestorePoint=new u(n.getRange()),!0):i.isSystem(e)?(t.systemCommandIsInProgress=!0,t.changed()&&(t.systemCommandIsInProgress=!1,t.createUndoCommand()),!0):!1},keyup:function(e){var t=this;return t.systemCommandIsInProgress&&t.changed()?(t.systemCommandIsInProgress=!1,t.createUndoCommand(e),!0):!1}}),w=n.extend({init:function(e){this.handlers=e,this.typingInProgress=!1},isCharacter:function(e){return e>=48&&90>=e||e>=96&&111>=e||e>=186&&192>=e||e>=219&&222>=e},toolFromShortcut:function(t,n){var i,r,a=String.fromCharCode(n.keyCode);for(i in t)if(r=e.extend({ctrl:!1,alt:!1,shift:!1},t[i].options),(r.key==a||r.key==n.keyCode)&&r.ctrl==n.ctrlKey&&r.alt==n.altKey&&r.shift==n.shiftKey)return i},isTypingKey:function(e){var t=e.keyCode;return this.isCharacter(t)&&!e.ctrlKey&&!e.altKey||32==t||13==t||8==t||46==t&&!e.shiftKey&&!e.ctrlKey&&!e.altKey},isModifierKey:function(e){var t=e.keyCode;return 17==t&&!e.shiftKey&&!e.altKey||16==t&&!e.ctrlKey&&!e.altKey||18==t&&!e.ctrlKey&&!e.shiftKey},isSystem:function(e){return 46==e.keyCode&&e.ctrlKey&&!e.altKey&&!e.shiftKey},startTyping:function(e){this.onEndTyping=e,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress=!1,this.onEndTyping&&this.onEndTyping()},endTyping:function(t){var n=this;n.clearTimeout(),t?n.stopTyping():n.timeout=window.setTimeout(e.proxy(n.stopTyping,n),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(e,t){var n,i=this.handlers;for(n=0;i.length>n&&!i[n][t](e);n++);},keydown:function(e){this.notify(e,"keydown")},keyup:function(e){this.notify(e,"keyup")}}),y=n.extend({init:function(e){this.editor=e,this.cleaners=[new x]},htmlToFragment:function(e){var t=this.editor,n=t.document,i=o.create(n,"div"),r=n.createDocumentFragment();for(i.innerHTML=e;i.firstChild;)r.appendChild(i.firstChild);return r},isBlock:function(e){return/<(div|p|ul|ol|table|h[1-6])/i.test(e)},oncut:function(){var e=this.editor,t=new u(e.getRange());setTimeout(function(){e.undoRedoStack.push(new m(t,new u(e.getRange())))})},onpaste:function(t){var n=this.editor,r=n.getRange(),a="",s=new u(r),d=o.create(n.document,"div",{className:"k-paste-container",innerHTML:a});if(n.body.appendChild(d),n.body.createTextRange){t.preventDefault();var c=n.createRange();c.selectNodeContents(d),n.selectRange(c);var p=n.body.createTextRange();p.moveToElementText(d),e(n.body).unbind("paste"),p.execCommand("Paste"),e(n.body).bind("paste",e.proxy(arguments.callee,this))}else{var f=n.createRange();f.selectNodeContents(d),l(f)}setTimeout(function(){var e,t={html:""};l(r),o.remove(d),d.lastChild&&o.is(d.lastChild,"br")&&o.remove(d.lastChild),e=d.innerHTML,e!=a&&(t.html=e),n.trigger("paste",t),n.clipboard.paste(t.html,!0),n.undoRedoStack.push(new m(s,new u(n.getRange()))),i.EditorUtils.select(n)})},splittableParent:function(e,t){var n,i;if(e)return o.parentOfType(t,["p","ul","ol"])||t.parentNode;if(n=t.parentNode,i=t.ownerDocument.body,o.isInline(n))for(;n.parentNode!=i&&!o.isBlock(n.parentNode);)n=n.parentNode;return n},paste:function(e,t){var n,i,r=this.editor;for(n=0,i=this.cleaners.length;i>n;n++)this.cleaners[n].applicable(e)&&(e=this.cleaners[n].clean(e));t&&(e=e.replace(/(<br>(\s| )*)+(<\/?(div|p|li|col|t))/gi,"$3"),e=e.replace(/<(a|span)[^>]*><\/\1>/gi,"")),e=e.replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>");var a=this.isBlock(e),d=r.getRange();d.deleteContents(),d.startContainer==r.document&&d.selectNodeContents(r.body);var c=new p,u=c.addCaret(d),f=this.splittableParent(a,u),h=!1;/body|td/.test(o.name(f))||!a&&!o.isInline(f)||(d.selectNode(u),s.split(d,f,!0),h=!0);var m=this.htmlToFragment(e);if(m.firstChild&&"k-paste-container"===m.firstChild.className){var g=[];for(n=0,i=m.childNodes.length;i>n;n++)g.push(m.childNodes[n].innerHTML);m=this.htmlToFragment(g.join("<br />"))}if(d.insertNode(m),f=this.splittableParent(a,u),h){for(;u.parentNode!=f;)o.unwrap(u.parentNode);o.unwrap(u.parentNode)}o.normalize(d.commonAncestorContainer),u.style.display="inline",o.scrollTo(u),c.removeCaret(d),l(d)}}),x=n.extend({init:function(){this.replacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/"/g,"'",/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>/g," ",/<table([^>]*)>(\s| )+<t/gi,"<table$1><t",/<tr[^>]*>(\s| )*<\/tr>/gi,"",/<tbody[^>]*>(\s| )*<\/tbody>/gi,"",/<table[^>]*>(\s| )*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*( )+/gi,"",/( |<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/gi,"",/<(\/?)b(\s[^>]*)?>/gi,"<$1strong$2>",/<(\/?)i(\s[^>]*)?>/gi,"<$1em$2>",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/gi,"",/style=(["|'])\s*\1/g,""]},applicable:function(e){return/class="?Mso|style="[^"]*mso-/i.test(e)},listType:function(e){return/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(e)?"ul":/^\s*\w+[\.\)]\u00a0{2,}/.test(e)?"ol":void 0},lists:function(t){for(var n,i=o.create(document,"div",{innerHTML:t}),r=e(o.blockElements.join(","),i),a=-1,s={ul:{},ol:{}},l=i,d=0;r.length>d;d++){var c=r[d];t=c.innerHTML.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," ");var u=this.listType(t);if(u&&"p"==o.name(c)){var p=parseFloat(c.style.marginLeft||0),f=s[u][p];if((p>a||!f)&&(f=o.create(document,u),l==i?o.insertBefore(f,c):l.appendChild(f),s[u][p]=f),n!=u)for(var h in s)for(var m in s[h])e.contains(f,s[h][m])&&delete s[h][m];o.remove(c.firstChild),l=o.create(document,"li",{innerHTML:c.innerHTML}),f.appendChild(l),o.remove(c),a=p,n=u}else c.innerHTML?(s={ul:{},ol:{}},l=i,a=-1):o.remove(c)}return i.innerHTML},stripEmptyAnchors:function(e){return e.replace(/<a([^>]*)>\s*<\/a>/gi,function(e,t){return!t||0>t.indexOf("href")?"":e})},clean:function(e){var t,n,i=this,r=i.replacements;for(t=0,n=r.length;n>t;t+=2)e=e.replace(r[t],r[t+1]);return e=i.stripEmptyAnchors(e),e=i.lists(e),e=e.replace(/\s+class="?[^"\s>]*"?/gi,"")}});f(i,{Command:h,GenericCommand:m,InsertHtmlCommand:g,InsertHtmlTool:v,UndoRedoStack:_,TypingHandler:k,SystemHandler:b,Keyboard:w,Clipboard:y,MSWordFormatCleaner:x}),a("insertHtml",new v({template:new c({template:r.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}(window.kendo.jQuery),function(e){function t(e){return e.collapsed&&!u.isExpandable(e)}var n=window.kendo,i=n.Class,r=n.ui.editor,a=n.ui.Editor.fn.options.formats,o=r.EditorUtils,s=r.Tool,l=r.ToolTemplate,d=r.FormatTool,c=r.Dom,u=r.RangeUtils,p=e.extend,f=r.EditorUtils.registerTool,h=r.EditorUtils.registerFormat,m="k-marker",g=i.extend({init:function(e){this.format=e},numberOfSiblings:function(e){var t,n=0,i=0,r=0,a=e.parentNode;for(t=a.firstChild;t;t=t.nextSibling)t!=e&&(t.className==m?r++:3==t.nodeType?n++:i++);return r>1&&a.firstChild.className==m&&a.lastChild.className==m?0:i+n},findSuitable:function(e,t){return!t&&this.numberOfSiblings(e)>0?null:c.parentOfType(e,this.format[0].tags)},findFormat:function(e){var t,n,i,r,a,o=this.format,s=c.attrEquals;for(t=0,n=o.length;n>t;t++){if(i=e,r=o[t].tags,a=o[t].attr,i&&c.ofType(i,r)&&s(i,a))return i;for(;i;)if(i=c.parentOfType(i,r),i&&s(i,a))return i}return null},isFormatted:function(e){var t,n;for(t=0,n=e.length;n>t;t++)if(this.findFormat(e[t]))return!0;return!1}}),v=i.extend({init:function(e,t){var n=this;n.finder=new g(e),n.attributes=p({},e[0].attr,t),n.tag=e[0].tags[0]},wrap:function(e){return c.wrap(e,c.create(e.ownerDocument,this.tag,this.attributes))},activate:function(e,t){var n=this;n.finder.isFormatted(t)?(n.split(e),n.remove(t)):n.apply(t)},toggle:function(e){var t=u.textNodes(e);t.length>0&&this.activate(e,t)},apply:function(e){var t,n,i,r,a=this,o=[];for(t=0,n=e.length;n>t;t++)i=e[t],r=a.finder.findSuitable(i),r?c.attr(r,a.attributes):r=a.wrap(i),o.push(r);a.consolidate(o)},remove:function(e){var t,n,i,r=this;for(t=0,n=e.length;n>t;t++)i=r.finder.findFormat(e[t]),i&&(r.attributes&&r.attributes.style?(c.unstyle(i,r.attributes.style),i.style.cssText||c.unwrap(i)):c.unwrap(i))},split:function(e){var t,n,i=u.textNodes(e),r=i.length;if(r>0)for(t=0;r>t;t++)n=this.finder.findFormat(i[t]),n&&u.split(e,n,!0)},consolidate:function(e){for(var t,n;e.length>1;)if(t=e.pop(),n=e[e.length-1],t.previousSibling&&t.previousSibling.className==m&&n.appendChild(t.previousSibling),t.tagName==n.tagName&&t.previousSibling==n&&t.style.cssText==n.style.cssText){for(;t.firstChild;)n.appendChild(t.firstChild);c.remove(t)}}}),_=g.extend({init:function(e,t){var n=this;n.format=e,n.greedyProperty=t,g.fn.init.call(n,e)},getInlineCssValue:function(t){var n,i,r,a,o,s,l,d,u,p,f,h,m=t.attributes,g=e.trim;if(m)for(n=0,i=m.length;i>n;n++)if(r=m[n],a=r.nodeName,o=r.nodeValue,r.specified&&"style"==a)for(s=g(o||t.style.cssText).split(";"),d=0,u=s.length;u>d;d++)if(l=s[d],l.length){if(p=l.split(":"),f=g(p[0].toLowerCase()),h=g(p[1]),f!=this.greedyProperty)continue;return f.indexOf("color")>=0?c.toHex(h):h}},getFormatInner:function(t){var n,i,r,a=e(c.isDataNode(t)?t.parentNode:t),o=a.parents().andSelf();for(n=0,i=o.length;i>n;n++)if(r="className"==this.greedyProperty?o[n].className:this.getInlineCssValue(o[n]))return r;return"inherit"},getFormat:function(e){var t,n,i=this.getFormatInner(e[0]);for(t=1,n=e.length;n>t;t++)if(i!=this.getFormatInner(e[t]))return"";return i},isFormatted:function(e){return""!==this.getFormat(e)}}),k=v.extend({init:function(e,t,n){var i=this;v.fn.init.call(i,e,t),i.greedyProperty=n,i.values=t,i.finder=new _(e,n)},activate:function(e,t){var n,i=this,r=i.greedyProperty,a="apply";i.split(e),r&&(n=r.replace(/-([a-z])/,function(e,t){return t.toUpperCase()}),"inherit"==i.values.style[n]&&(a="remove")),i[a](t)}}),b=d.extend({init:function(e){d.fn.init.call(this,p(e,{finder:new g(e.format),formatter:function(){return new v(e.format)}})),this.willDelayExecution=t}}),w=s.extend({init:function(e){var t=this;s.fn.init.call(t,e),t.type=n.support.browser.msie||n.support.touch?"kendoDropDownList":"kendoComboBox",t.format=[{tags:["span"]}],t.finder=new _(t.format,e.cssAttr)},command:function(e){var t=this.options,n=this.format,i={};return new r.FormatCommand(p(e,{formatter:function(){return i[t.domAttr]=e.value,new k(n,{style:i},t.cssAttr)}}))},willDelayExecution:t,update:function(e,t,n){var i=this,r=e.data(i.type),a=n.getPending(i.name),o=a&&a.params?a.params.value:i.finder.getFormat(t);r.close(),r.value(o)},initialize:function(e,t){var n,i=t.editor,r=this.options,a=r.name,o=[];r.defaultValue&&(o=[{text:i.options.messages[r.defaultValue[0].text],value:r.defaultValue[0].value}]),n=o.concat(r.items?r.items:i.options[a]),e[this.type]({dataTextField:"text",dataValueField:"value",dataSource:n,change:function(){s.exec(i,a,this.value())},highlightFirst:!1}),e.closest(".k-widget").removeClass("k-"+a).find("*").andSelf().attr("unselectable","on"),e.data(this.type).value("inherit")}}),y=s.extend({init:function(e){s.fn.init.call(this,e),this.options=e,this.format=[{tags:["span"]}]},update:function(e){e.data("kendoColorPicker").close()},command:function(e){var t=this.options,n=this.format,i={};return new r.FormatCommand(p(e,{formatter:function(){return i[t.domAttr]=e.value,new k(n,{style:i},t.cssAttr)}}))},willDelayExecution:t,initialize:function(e,t){var i=t.editor,a=this.name;e.attr("title",t.title),new r.ColorPicker(e,{value:"#000000",ariaId:i.element[0].id?n.format("{0}_{1}_cp",i.element[0].id,a):"",change:function(e){s.exec(i,a,e.value)}})}}),x=s.extend({init:function(e){var t=this;s.fn.init.call(t,e),t.format=[{tags:["span"]}],t.finder=new _(t.format,"className")},command:function(e){var t=this.format;return new r.FormatCommand(p(e,{formatter:function(){return new k(t,{className:e.value})}}))},update:function(e,t){var n=e.data("kendoSelectBox");n.close(),n.value(this.finder.getFormat(t))},initialize:function(e,t){var n=t.editor;new r.SelectBox(e,{dataTextField:"text",dataValueField:"value",dataSource:n.options.style,title:n.options.messages.style,change:function(){s.exec(n,"style",this.value())},highlightFirst:!1}),e.closest(".k-widget").removeClass("k-"+this.name).find("*").andSelf().attr("unselectable","on")}});p(r,{InlineFormatFinder:g,InlineFormatter:v,GreedyInlineFormatFinder:_,GreedyInlineFormatter:k,InlineFormatTool:b,FontTool:w,ColorTool:y,StyleTool:x}),f("style",new r.StyleTool({template:new l({template:o.dropDownListTemplate,title:"Styles"})})),h("bold",[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),f("bold",new b({key:"B",ctrl:!0,format:a.bold,template:new l({template:o.buttonTemplate,title:"Bold"})})),h("italic",[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),f("italic",new b({key:"I",ctrl:!0,format:a.italic,template:new l({template:o.buttonTemplate,title:"Italic"})})),h("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}}]),f("underline",new b({key:"U",ctrl:!0,format:a.underline,template:new l({template:o.buttonTemplate,title:"Underline"})})),h("strikethrough",[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),f("strikethrough",new b({format:a.strikethrough,template:new l({template:o.buttonTemplate,title:"Strikethrough"})})),h("superscript",[{tags:["sup"]}]),f("superscript",new b({format:a.superscript,template:new l({template:o.buttonTemplate,title:"Superscript"})})),h("subscript",[{tags:["sub"]}]),f("subscript",new b({format:a.subscript,template:new l({template:o.buttonTemplate,title:"Subscript"})})),f("foreColor",new y({cssAttr:"color",domAttr:"color",name:"foreColor",template:new l({template:o.colorPickerTemplate,title:"Color"})})),f("backColor",new y({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new l({template:o.colorPickerTemplate,title:"Background Color"})})),f("fontName",new w({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName",defaultValue:[{text:"fontNameInherit",value:"inherit"}],template:new l({template:o.comboBoxTemplate,title:"Font Name"})})),f("fontSize",new w({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize",defaultValue:[{text:"fontSizeInherit",value:"inherit"}],template:new l({template:o.comboBoxTemplate,title:"Font Size"})}))}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.Class,i=e.extend,r=t.ui.editor,a=t.ui.Editor.fn.options.formats,o=r.Dom,s=r.Command,l=r.Tool,d=r.ToolTemplate,c=r.FormatTool,u=r.EditorUtils,p=u.registerTool,f=u.registerFormat,h=r.RangeUtils,m=n.extend({init:function(e){this.format=e},contains:function(e,t){var n,i,r;for(n=0,i=t.length;i>n;n++)if(r=t[n],!r||!o.isAncestorOrSelf(e,r))return!1;return!0},findSuitable:function(t){var n,i,r,a=this.format,s=[];for(n=0,i=t.length;i>n;n++){if(r=o.ofType(t[n],a[0].tags)?t[n]:o.parentOfType(t[n],a[0].tags),!r)return[];0>e.inArray(r,s)&&s.push(r)}for(n=0,i=s.length;i>n;n++)if(this.contains(s[n],s))return[s[n]];return s},findFormat:function(e){var t,n,i,r,a,s=this.format;for(t=0,n=s.length;n>t;t++)for(i=e,r=s[t].tags,a=s[t].attr;i;){if(o.ofType(i,r)&&o.attrEquals(i,a))return i;i=i.parentNode}return null},getFormat:function(e){var t,n,i=this,r=function(e){return i.findFormat(o.isDataNode(e)?e.parentNode:e)},a=r(e[0]);if(!a)return"";for(t=1,n=e.length;n>t;t++)if(a!=r(e[t]))return"";return a.nodeName.toLowerCase()},isFormatted:function(e){for(var t=0,n=e.length;n>t;t++)if(!this.findFormat(e[t]))return!1;return!0}}),g=n.extend({init:function(e,t){this.format=e,this.values=t,this.finder=new m(e)},wrap:function(e,t,n){var i=1==n.length?o.blockParentOrBody(n[0]):o.commonAncestor.apply(null,n);o.isInline(i)&&(i=o.blockParentOrBody(i));var r,a,s=o.significantChildNodes(i),l=o.findNodeIndex(s[0]),d=o.create(i.ownerDocument,e,t);for(r=0;s.length>r;r++)a=s[r],o.isBlock(a)?(o.attr(a,t),d.childNodes.length&&(o.insertBefore(d,a),d=d.cloneNode(!1)),l=o.findNodeIndex(a)+1):d.appendChild(a);d.firstChild&&o.insertAt(i,d,l)},apply:function(e){var t,n,r=this,a=o.is(e[0],"img")?[e[0]]:r.finder.findSuitable(e),s=a.length?u.formatByName(o.name(a[0]),r.format):r.format[0],l=s.tags[0],d=i({},s.attr,r.values);if(a.length)for(t=0,n=a.length;n>t;t++)o.attr(a[t],d);else r.wrap(l,d,e)},remove:function(e){var t,n,i,r;for(t=0,n=e.length;n>t;t++)i=this.finder.findFormat(e[t]),i&&(o.ofType(i,["p","img","li"])?(r=u.formatByName(o.name(i),this.format),r.attr.style&&o.unstyle(i,r.attr.style),r.attr.className&&o.removeClass(i,r.attr.className)):o.unwrap(i))},toggle:function(e){var t=this,n=h.nodes(e);t.finder.isFormatted(n)?t.remove(n):t.apply(n)}}),v=n.extend({init:function(e,t){var n=this;n.format=e,n.values=t,n.finder=new m(e)},apply:function(e){var t,n,i,a,s,l=this.format,d=o.blockParents(e),c=l[0].tags[0];if(d.length)for(t=0,n=d.length;n>t;t++)o.is(d[t],"li")?(i=d[t].parentNode,a=new r.ListFormatter(i.nodeName.toLowerCase(),c),s=this.editor.createRange(),s.selectNode(d[t]),a.toggle(s)):o.changeTag(d[t],c);else new g(l,this.values).apply(e)},toggle:function(e){var t=h.textNodes(e);t.length||(e.selectNodeContents(e.commonAncestorContainer),t=h.textNodes(e),t.length||(t=o.significantChildNodes(e.commonAncestorContainer))),this.apply(t)}}),_=s.extend({init:function(e){e.formatter=e.formatter(),s.fn.init.call(this,e)}}),k=c.extend({init:function(e){c.fn.init.call(this,i(e,{finder:new m(e.format),formatter:function(){return new g(e.format)}}))}}),b=l.extend({init:function(e){l.fn.init.call(this,e),this.finder=new m([{tags:o.blockElements}])},command:function(e){return new _(i(e,{formatter:function(){return new v([{tags:[e.value]}],{})}}))},update:function(e,t){var n;n=e.is("select")?e.data("kendoSelectBox"):e.find("select").data("kendoSelectBox"),n.close(),n.value(this.finder.getFormat(t))},initialize:function(e,t){var n=t.editor,i="formatBlock";new r.SelectBox(e,{dataTextField:"text",dataValueField:"value",dataSource:this.options.items?this.options.items:n.options.formatBlock,title:n.options.messages.formatBlock,change:function(){l.exec(n,i,this.value())},highlightFirst:!1}),e.closest(".k-widget").removeClass("k-"+i).find("*").andSelf().attr("unselectable","on")}});i(r,{BlockFormatFinder:m,BlockFormatter:g,GreedyBlockFormatter:v,FormatCommand:_,BlockFormatTool:k,FormatBlockTool:b}),p("formatBlock",new b({template:new d({template:u.dropDownListTemplate})})),f("justifyLeft",[{tags:o.blockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}]),p("justifyLeft",new k({format:a.justifyLeft,template:new d({template:u.buttonTemplate,title:"Justify Left"})})),f("justifyCenter",[{tags:o.blockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}]),p("justifyCenter",new k({format:a.justifyCenter,template:new d({template:u.buttonTemplate,title:"Justify Center"})})),f("justifyRight",[{tags:o.blockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}]),p("justifyRight",new k({format:a.justifyRight,template:new d({template:u.buttonTemplate,title:"Justify Right"})})),f("justifyFull",[{tags:o.blockElements,attr:{style:{textAlign:"justify"}}}]),p("justifyFull",new k({format:a.justifyFull,template:new d({template:u.buttonTemplate,title:"Justify Full"})}))}(window.kendo.jQuery),function(e){var t=window.kendo,n=e.extend,i=t.ui.editor,r=i.Dom,a=i.Command,o=i.Tool,s=i.BlockFormatter,l=r.normalize,d=i.RangeUtils,c=i.EditorUtils.registerTool,u=a.extend({init:function(e){this.options=e,a.fn.init.call(this,e)},exec:function(){function e(e){if(e.firstChild&&r.is(e.firstChild,"br")&&r.remove(e.firstChild),r.isDataNode(e)&&!e.nodeValue&&(e=e.parentNode),e&&!r.is(e,"img")){for(;e.firstChild&&1==e.firstChild.nodeType;)e=e.firstChild;""===e.innerHTML&&(e.innerHTML=v)}}var n,i,a,o,c,u,p,f,h,m=this.getRange(),g=d.documentFromRange(m),v=t.support.browser.msie?"":'<br _moz_dirty="" />',_="p,h1,h2,h3,h4,h5,h6".split(","),k=r.parentOfType(m.startContainer,_),b=r.parentOfType(m.endContainer,_),w=k&&!b||!k&&b;if(m.deleteContents(),u=r.create(g,"a"),m.insertNode(u),u.parentNode||(o=m.commonAncestorContainer,o.innerHTML="",o.appendChild(u)),l(u.parentNode),p=r.parentOfType(u,["li"]),f=r.parentOfType(u,"h1,h2,h3,h4,h5,h6".split(",")),p?(h=m.cloneRange(),h.selectNode(p),d.textNodes(h).length||(c=r.create(g,"p"),p.nextSibling&&d.split(h,p.parentNode),r.insertAfter(c,p.parentNode),r.remove(1==p.parentNode.childNodes.length?p.parentNode:p),c.innerHTML=v,a=c)):f&&!u.nextSibling&&(c=r.create(g,"p"),r.insertAfter(c,f),c.innerHTML=v,r.remove(u),a=c),a||(p||f||new s([{tags:["p"]}]).apply([u]),m.selectNode(u),n=r.parentOfType(u,[p?"li":f?r.name(f):"p"]),d.split(m,n,w),i=n.previousSibling,r.is(i,"li")&&i.firstChild&&!r.is(i.firstChild,"br")&&(i=i.firstChild),a=n.nextSibling,r.is(a,"li")&&a.firstChild&&!r.is(a.firstChild,"br")&&(a=a.firstChild),r.remove(n),e(i),e(a),l(i)),l(a),r.is(a,"img"))m.setStartBefore(a);else{m.selectNodeContents(a);var y=d.textNodes(m)[0];y&&m.selectNodeContents(y)}m.collapse(!0),r.scrollTo(a),d.selectRange(m)}}),p=a.extend({init:function(e){this.options=e,a.fn.init.call(this,e)},exec:function(){var e=this.getRange();e.deleteContents();var n=r.create(d.documentFromRange(e),"br");if(e.insertNode(n),l(n.parentNode),!t.support.browser.msie&&(!n.nextSibling||r.isWhitespace(n.nextSibling))){var i=n.cloneNode(!0);i.setAttribute("_moz_dirty",""),r.insertAfter(i,n)}e.setStartAfter(n),e.collapse(!0),r.scrollTo(n.nextSibling),d.selectRange(e)}});n(i,{ParagraphCommand:u,NewLineCommand:p}),c("insertLineBreak",new o({key:13,shift:!0,command:p})),c("insertParagraph",new o({key:13,command:u}))}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.Class,i=e.extend,r=t.ui.editor,a=r.Dom,o=r.RangeUtils,s=r.EditorUtils,l=r.Command,d=r.ToolTemplate,c=r.FormatTool,u=r.BlockFormatFinder,p=o.textNodes,f=r.EditorUtils.registerTool,h=u.extend({init:function(e){this.tag=e;var t=this.tags=["ul"==e?"ol":"ul",e];u.fn.init.call(this,[{tags:t}])},isFormatted:function(e){for(var t,n=[],i=0;e.length>i;i++)(t=this.findFormat(e[i]))&&a.name(t)==this.tag&&n.push(t);if(1>n.length)return!1;if(n.length!=e.length)return!1;for(i=0;n.length>i&&n[i].parentNode==t.parentNode;i++)if(n[i]!=t)return!1;return!0},findSuitable:function(e){var t=a.parentOfType(e[0],this.tags);return t&&a.name(t)==this.tag?t:null}}),m=n.extend({init:function(e,t){var n=this;n.finder=new h(e),n.tag=e,n.unwrapTag=t},wrap:function(e,t){var n,i,r=a.create(e.ownerDocument,"li");for(n=0;t.length>n;n++)if(i=t[n],a.is(i,"li"))e.appendChild(i);else if(a.is(i,"ul")||a.is(i,"ol"))for(;i.firstChild;)e.appendChild(i.firstChild);else if(a.is(i,"td")){for(;i.firstChild;)r.appendChild(i.firstChild);e.appendChild(r),i.appendChild(e),e=e.cloneNode(!1),r=r.cloneNode(!1)}else r.appendChild(i),a.isBlock(i)&&(e.appendChild(r),a.unwrap(i),r=r.cloneNode(!1));r.firstChild&&e.appendChild(r)},containsAny:function(e,t){for(var n=0;t.length>n;n++)if(a.isAncestorOrSelf(e,t[n]))return!0;return!1},suitable:function(e,t){if("k-marker"==e.className){var n=e.nextSibling;if(n&&a.isBlock(n))return!1;if(n=e.previousSibling,n&&a.isBlock(n))return!1}return this.containsAny(e,t)||a.isInline(e)||3==e.nodeType},split:function(t){var n,i,r=p(t);if(r.length){n=a.parentOfType(r[0],["li"]),i=a.parentOfType(r[r.length-1],["li"]),t.setStartBefore(n),t.setEndAfter(i);for(var s=0,l=r.length;l>s;s++){var d=this.finder.findFormat(r[s]);if(d){var c=e(d).parents("ul,ol");c[0]?o.split(t,c.last()[0],!0):o.split(t,d,!0)}}}},merge:function(e,t){for(var n,i=t.previousSibling;i&&("k-marker"==i.className||3==i.nodeType&&a.isWhitespace(i));)i=i.previousSibling;if(i&&a.name(i)==e){for(;t.firstChild;)i.appendChild(t.firstChild);a.remove(t),t=i}for(n=t.nextSibling;n&&("k-marker"==n.className||3==n.nodeType&&a.isWhitespace(n));)n=n.nextSibling;if(n&&a.name(n)==e){for(;t.lastChild;)n.insertBefore(t.lastChild,n.firstChild);a.remove(t)}},applyOnSection:function(t,n){function i(){s.push(this)}var r,o=this.tag;r=1==n.length?a.parentOfType(n[0],["ul","ol"]):a.commonAncestor.apply(null,n),r||(r=a.parentOfType(n[0],["td"])||n[0].ownerDocument.body),a.isInline(r)&&(r=a.blockParentOrBody(r));var s=[],l=this.finder.findSuitable(n);l||(l=new h("ul"==o?"ol":"ul").findSuitable(n));var d=a.significantChildNodes(r);d.length||(d=n),/table|tbody/.test(a.name(r))&&(d=e.map(n,function(e){return a.parentOfType(e,["td"])}));for(var c=0;d.length>c;c++){var u=d[c],p=a.name(u);!this.suitable(u,n)||l&&a.isAncestorOrSelf(l,u)||(!l||"ul"!=p&&"ol"!=p?s.push(u):(e.each(u.childNodes,i),a.remove(u)))}s.length!=d.length||r==n[0].ownerDocument.body||/table|tbody|tr|td/.test(a.name(r))||(s=[r]),l||(l=a.create(r.ownerDocument,o),a.insertBefore(l,s[0])),this.wrap(l,s),a.is(l,o)||a.changeTag(l,o),this.merge(o,l)},apply:function(e){var t,n,i,r=0,o=[];do i=a.parentOfType(e[r],["td","body"]),t&&i==t?n.push(e[r]):(t&&o.push({section:t,nodes:n}),n=[e[r]],t=i),r++;while(e.length>r);for(o.push({section:t,nodes:n}),r=0;o.length>r;r++)this.applyOnSection(o[r].section,o[r].nodes)},unwrap:function(t){var n,i,r,o,s=t.ownerDocument.createDocumentFragment(),l=this.unwrapTag;for(i=t.firstChild;i;i=i.nextSibling){for(r=a.create(t.ownerDocument,l||"p");i.firstChild;)o=i.firstChild,a.isBlock(o)?(r.firstChild&&(s.appendChild(r),r=a.create(t.ownerDocument,l||"p")),s.appendChild(o)):r.appendChild(o);r.firstChild&&s.appendChild(r)}n=e(t).parents("ul,ol"),n[0]?(a.insertAfter(s,n.last()[0]),n.last().remove()):a.insertAfter(s,t),a.remove(t)},remove:function(e){for(var t,n=0,i=e.length;i>n;n++)t=this.finder.findFormat(e[n]),t&&this.unwrap(t)},toggle:function(e){var t=this,n=p(e),i=e.commonAncestorContainer;if(!n.length&&(e.selectNodeContents(i),n=p(e),!n.length)){var r=i.ownerDocument.createTextNode("");e.startContainer.appendChild(r),n=[r],e.selectNode(r.parentNode)}t.finder.isFormatted(n)?(t.split(e),t.remove(n)):t.apply(n)}}),g=l.extend({init:function(e){e.formatter=new m(e.tag),l.fn.init.call(this,e)}}),v=c.extend({init:function(e){this.options=e,c.fn.init.call(this,i(e,{finder:new h(e.tag)}))},command:function(e){return new g(i(e,{tag:this.options.tag}))}});i(r,{ListFormatFinder:h,ListFormatter:m,ListCommand:g,ListTool:v}),f("insertUnorderedList",new v({tag:"ul",template:new d({template:s.buttonTemplate,title:"Remove Link"})})),f("insertOrderedList",new v({tag:"ol",template:new d({template:s.buttonTemplate,title:"Remove Link"})}))}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.Class,i=e.extend,r=t.ui.editor,a=r.Dom,o=r.RangeUtils,s=r.EditorUtils,l=r.Command,d=r.Tool,c=r.ToolTemplate,u=r.InlineFormatter,p=r.InlineFormatFinder,f=o.textNodes,h=r.EditorUtils.registerTool,m=n.extend({findSuitable:function(e){return a.parentOfType(e,["a"])}}),g=n.extend({init:function(){this.finder=new m},apply:function(e,t){var n,i,r,s,l=f(e);t.innerHTML?(n=o.getMarkers(e),i=o.documentFromRange(e),e.deleteContents(),s=a.create(i,"a",t),e.insertNode(s),n.length>1&&(a.insertAfter(n[n.length-1],s),a.insertAfter(n[1],s),a[l.length>0?"insertBefore":"insertAfter"](n[0],s))):(r=new u([{tags:["a"]}],t),r.finder=this.finder,r.apply(l))}}),v=l.extend({init:function(e){e.formatter={toggle:function(e){new u([{tags:["a"]}]).remove(f(e))}},this.options=e,l.fn.init.call(this,e)}}),_=l.extend({init:function(e){var t=this;t.options=e,l.fn.init.call(t,e),t.attributes=null,t.async=!0,t.formatter=new g},exec:function(){function n(t){var n,r,a,o=e("#k-editor-link-url",g.element).val();o&&"http://"!=o&&(l.attributes={href:o},n=e("#k-editor-link-title",g.element).val(),n&&(l.attributes.title=n),r=e("#k-editor-link-text",g.element).val(),r!==u&&(l.attributes.innerHTML=r||o),a=e("#k-editor-link-target",g.element).is(":checked"),a&&(l.attributes.target="_blank"),l.formatter.apply(d,l.attributes)),i(t),l.change&&l.change()}function i(e){e.preventDefault(),g.destroy(),a.windowFromDocument(o.documentFromRange(d)).focus(),l.releaseRange(d)}var r,l=this,d=l.getRange(),c=d.collapsed,u=null;d=l.lockRange(!0),r=f(d);var p=r.length?l.formatter.finder.findSuitable(r[0]):null,h=1>=r.length||2==r.length&&c,m="<div class='k-editor-dialog'><ol><li class='k-form-text-row'><label for='k-editor-link-url'>Web address</label><input type='text' class='k-input' id='k-editor-link-url'></li>"+(h?"<li class='k-form-text-row'><label for='k-editor-link-text'>Text</label><input type='text' class='k-input' id='k-editor-link-text'></li>":"")+"<li class='k-form-text-row'><label for='k-editor-link-title'>Tooltip</label><input type='text' class='k-input' id='k-editor-link-title'></li>"+"<li class='k-form-checkbox-row'><input type='checkbox' id='k-editor-link-target'><label for='k-editor-link-target'>Open link in new window</label></li>"+"</ol>"+"<div class='k-button-wrapper'>"+"<button class='k-dialog-insert k-button'>Insert</button>"+" or "+"<a href='#' class='k-dialog-close k-link'>Close</a>"+"</div>"+"</div>",g=s.createDialog(m,l.editor,e.extend({},l.editor.options.dialogOptions,{title:"Insert link",close:i})).hide().find(".k-dialog-insert").click(n).end().find(".k-dialog-close").click(i).end().find(".k-form-text-row input").keydown(function(e){var r=t.keys;e.keyCode==r.ENTER?n(e):e.keyCode==r.ESC&&i(e)}).end().find("#k-editor-link-url").val(p?p.getAttribute("href",2):"http://").end().find("#k-editor-link-text").val(r.length>0?1==r.length?r[0].nodeValue:r[0].nodeValue+r[1].nodeValue:"").end().find("#k-editor-link-title").val(p?p.title:"").end().find("#k-editor-link-target").attr("checked",p?"_blank"==p.target:!1).end().show().data("kendoWindow").center();h&&r.length>0&&(u=e("#k-editor-link-text",g.element).val()),e("#k-editor-link-url",g.element).focus().select()
|
22
|
+
},redo:function(){var e=this,t=e.lockRange(!0);e.formatter.apply(t,e.attributes),e.releaseRange(t)}}),k=d.extend({init:function(t){this.options=t,this.finder=new p([{tags:["a"]}]),d.fn.init.call(this,e.extend(t,{command:v}))},initialize:function(e){e.attr("unselectable","on").addClass("k-state-disabled")},update:function(e,t){e.toggleClass("k-state-disabled",!this.finder.isFormatted(t)).removeClass("k-state-hover")}});i(t.ui.editor,{LinkFormatFinder:m,LinkFormatter:g,UnlinkCommand:v,LinkCommand:_,UnlinkTool:k}),h("createLink",new d({key:"K",ctrl:!0,command:_,template:new c({template:s.buttonTemplate,title:"Create Link"})})),h("unlink",new k({key:"K",ctrl:!0,shift:!0,template:new c({template:s.buttonTemplate,title:"Remove Link"})}))}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=e.extend,r=n.ui.editor,a=r.EditorUtils,o=r.Dom,s=a.registerTool,l=r.ToolTemplate,d=r.RangeUtils,c=r.Command,u=n.keys,p="Insert Image",f="#k-editor-image-url",h="#k-editor-image-title",m=c.extend({init:function(e){var t=this;c.fn.init.call(t,e),t.async=!0,t.attributes={}},insertImage:function(e,t){var n=this.attributes;if(n.src&&"http://"!=n.src){if(!e)return e=o.create(d.documentFromRange(t),"img",n),e.onload=e.onerror=function(){e.removeAttribute("complete"),e.removeAttribute("width"),e.removeAttribute("height")},t.deleteContents(),t.insertNode(e),t.setStartAfter(e),t.setEndAfter(e),d.selectRange(t),!0;o.attr(e,n)}return!1},_dialogTemplate:function(e){return n.template('<div class="k-editor-dialog"># if (showBrowser) { #<div class="k-imagebrowser"></div># } #<ol><li class="k-form-text-row"><label for="k-editor-image-url">#: messages.imageWebAddress #</label><input type="text" class="k-input" id="k-editor-image-url"></li><li class="k-form-text-row"><label for="k-editor-image-title">#: messages.imageAltText #</label><input type="text" class="k-input" id="k-editor-image-title"></li></ol><div class="k-button-wrapper"><button class="k-dialog-insert k-button">#: messages.dialogInsert #</button> #: messages.dialogButtonSeparator # <a href="\\#" class="k-dialog-close k-link">#: messages.dialogCancel #</a></div></div>')({messages:this.editor.options.messages,showBrowser:e})},redo:function(){var e=this,t=e.lockRange();e.insertImage(d.image(t),t)||e.releaseRange(t)},exec:function(){function r(t){g.attributes={src:e(f,c.element).val(),alt:e(h,c.element).val()},_=g.insertImage(k,v),s(t),g.change&&g.change()}function s(e){e.preventDefault(),c.destroy(),o.windowFromDocument(d.documentFromRange(v)).focus(),_||g.releaseRange(v)}function l(e){e.keyCode==u.ENTER?r(e):e.keyCode==u.ESC&&s(e)}var c,m,g=this,v=g.lockRange(),_=!1,k=d.image(v),b=g.editor.options,w=b.imageBrowser,y=!!(n.ui.ImageBrowser&&w&&w.transport&&w.transport.read!==t);m=y?{width:"960px"}:{},c=a.createDialog(g._dialogTemplate(y),g.editor,i(m,b.dialogOptions,{title:p,close:s,resizable:y,activate:function(){if(y){var e=this;new n.ui.ImageBrowser(e.element.find(".k-imagebrowser"),i({},w,{change:function(){e.element.find(f).val(this.value())},apply:r}))}}})).hide().find(".k-dialog-insert").click(r).end().find(".k-dialog-close").click(s).end().find(".k-form-text-row input").keydown(l).end().find(f).val(k?k.getAttribute("src",2):"http://").end().find(h).val(k?k.alt:"").end().show().data("kendoWindow").center(),e(f,c.element).focus().select()}});n.ui.editor.ImageCommand=m,s("insertImage",new r.Tool({command:m,template:new l({template:a.buttonTemplate,title:p})}))}(window.kendo.jQuery),function(e,t){var n=window.kendo,i=n.ui.Widget,r=n.ui.DropDownList,a=n.ui.editor,o=a.Dom,s="change",l="k-state-selected",d="."+l,c=".k-selected-color",u="unselectable",p="background-color",f="aria-selected",h="aria-labelledby",m=n.keys,g=n.template('<div class="k-colorpicker-popup"><ul class="k-reset"># for(var i = 0; i < colors.length; i++) { #<li #=(id && i === 0) ? "id=\\""+id+"\\" aria-selected=\\"true\\"" : "" # class="k-item #= colors[i] == value ? "k-state-selected" : "" #" aria-label="\\##= colors[i]#"><div style="background-color:\\##= colors[i] #"></div></li># } #</ul></div>'),v=i.extend({init:function(t,n){var r,a=this;i.fn.init.call(a,t,n),t=a.element,n=a.options,a._value=n.value,a._ariaId=r=n.ariaId,r&&t.attr(h,r),a.popup=e(g({colors:n.colors,value:n.value.substring(1),id:r})).kendoPopup({anchor:t,toggleTarget:t.find(".k-icon")}).delegate(".k-item","click",function(t){a.select(e(t.currentTarget).find("div").css(p))}).find("*").attr(u,"on").end().data("kendoPopup"),t.attr("tabIndex",0).keydown(function(e){a.keydown(e)}).focus(function(){t.css("outline","1px dotted #000")}).blur(function(){t.css("outline","")}).delegate(".k-tool-icon","click",function(){a.select()}).find("*").attr(u,"on"),a._value&&t.find(c).css(p,a._value)},options:{name:"ColorPicker",colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),value:null},events:[s],select:function(e){var t=this;e?(e=o.toHex(e),t.trigger(s,{value:e})||(t.value(e),t.close())):t.trigger(s,{value:t._value})},open:function(){this.popup.open()},close:function(){this.popup.close()},toggle:function(){this.popup.toggle()},_applyAriaAttributes:function(e,t){var n=this;n.element.removeAttr(h),n.element.attr(h,n._ariaId),e.removeAttr("id"),e.attr(f,!1),t.attr({id:n._ariaId,"aria-selected":!0})},keydown:function(e){var t,n,i,r=this,a=r.popup.element,o=r.popup.visible(),s=!1,c=e.keyCode;c==m.DOWN?(o?(t=a.find(d),n=t[0]?t.next():a.find("li:first"),n[0]&&(t.removeClass(l),n.addClass(l),r._applyAriaAttributes(t,n))):r.open(),s=!0):c==m.UP?(o&&(t=a.find(d),i=t.prev(),i[0]&&(t.removeClass(l),i.addClass(l),r._applyAriaAttributes(t,i))),s=!0):c==m.TAB||c==m.RIGHT||c==m.LEFT?r.close():c==m.ENTER&&(a.find(d).click(),s=!0),s&&e.preventDefault()},value:function(e){var n=this;return e===t?n._value:(e=o.toHex(e),n._value=e,n.element.find(c).css(p,e),t)}}),_=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n.value(n.options.title)},options:{name:"SelectBox"},value:function(e){var n=this,i=r.fn.value.call(n,e);return e===t?i:(e!==r.fn.value.call(n)&&(n.text(n.options.title),n._current.removeClass("k-state-selected"),n.current(null),n._oldIndex=n.selectedIndex=-1),t)}});n.ui.editor.ColorPicker=v,n.ui.editor.SelectBox=_}(window.kendo.jQuery),function(e,t){function n(n,i){var r="rtl"==e(n).css("direction"),a=r?"Right":"Left",o="td"!=s.name(n)?"margin"+a:"padding"+a;return i===t?n.style[o]||0:(i>0?n.style[o]=i+"px":(n.style[o]="",n.style.cssText||n.removeAttribute("style")),t)}var i=window.kendo,r=i.Class,a=e.extend,o=i.ui.editor,s=o.Dom,l=o.EditorUtils,d=l.registerTool,c=o.Command,u=o.Tool,p=o.ToolTemplate,f=o.RangeUtils,h=s.blockElements,m=o.BlockFormatFinder,g=o.BlockFormatter,v=r.extend({init:function(){this.finder=new m([{tags:s.blockElements}])},apply:function(t){var i,r,a,o,l,d=this.finder.findSuitable(t),c=[];if(d.length){for(i=0,r=d.length;r>i;i++)s.is(d[i],"li")?e(d[i]).index()?0>e.inArray(d[i].parentNode,c)&&c.push(d[i]):c.push(d[i].parentNode):c.push(d[i]);for(;c.length;)if(a=c.shift(),s.is(a,"li")){o=a.parentNode,l=e(a).prev("li");var u=l.find("ul,ol").last(),p=e(a).children("ul,ol")[0];if(p&&l[0])u[0]?(u.append(a),u.append(e(p).children()),s.remove(p)):(l.append(p),p.insertBefore(a,p.firstChild));else for(p=l.children("ul,ol")[0],p||(p=s.create(a.ownerDocument,s.name(o)),l.append(p));a&&a.parentNode==o;)p.appendChild(a),a=c.shift()}else{var f=parseInt(n(a),10)+30;n(a,f);for(var h=0;c.length>h;h++)e.contains(a,c[h])&&c.splice(h,1)}}else{var m=new g([{tags:"p"}],{style:{marginLeft:30}});m.apply(t)}},remove:function(t){var i,r,a,o,s,l,d,c,u=this.finder.findSuitable(t);for(r=0,a=u.length;a>r;r++){if(d=e(u[r]),d.is("li")){if(o=d.parent(),s=o.parent(),s.is("li,ul,ol")&&!n(o[0])){if(i&&e.contains(i,s[0]))continue;l=d.nextAll("li"),l.length&&e(o[0].cloneNode(!1)).appendTo(d).append(l),s.is("li")?d.insertAfter(s):d.appendTo(s),o.children("li").length||o.remove();continue}if(i==o[0])continue;i=o[0]}else i=u[r];c=parseInt(n(i),10)-30,n(i,c)}}}),_=c.extend({init:function(e){e.formatter={toggle:function(e){(new v).apply(f.nodes(e))}},c.fn.init.call(this,e)}}),k=c.extend({init:function(e){e.formatter={toggle:function(e){(new v).remove(f.nodes(e))}},c.fn.init.call(this,e)}}),b=u.extend({init:function(e){u.fn.init.call(this,a(e,{command:k})),this.finder=new m([{tags:h}])},initialize:function(e){e.attr("unselectable","on").addClass("k-state-disabled")},update:function(i,r){var a,o,l,d,c=this.finder.findSuitable(r);for(l=0,d=c.length;d>l;l++)if(a=n(c[l]),a||(o=e(c[l]).parents("ul,ol").length,a=s.is(c[l],"li")&&(o>1||n(c[l].parentNode))||s.ofType(c[l],["ul","ol"])&&o>0),a)return i.removeClass("k-state-disabled"),t;i.addClass("k-state-disabled").removeClass("k-state-hover")}});a(o,{IndentFormatter:v,IndentCommand:_,OutdentCommand:k,OutdentTool:b}),d("indent",new u({command:_,template:new p({template:l.buttonTemplate,title:"Indent"})})),d("outdent",new b({template:new p({template:l.buttonTemplate,title:"Outdent"})}))}(window.kendo.jQuery),function(e){var t=window.kendo,n=e.extend,i=t.ui.editor,r=i.Dom,a=i.RangeUtils,o=i.EditorUtils,s=i.Command,l=i.Tool,d=i.ToolTemplate,c=s.extend({init:function(e){var t=this;t.options=e,s.fn.init.call(t,e),t.attributes=null,t.async=!0},exec:function(){function t(e){s.value(d.find(p).val()),i(e),o.change&&o.change(),s.trigger("change")}function i(e){e.preventDefault(),d.data("kendoWindow").destroy(),r.windowFromDocument(a.documentFromRange(l)).focus()}var o=this,s=o.editor,l=s.getRange(),d=e(c.template).appendTo(document.body),u=c.indent(s.value()),p=".k-editor-textarea";d.kendoWindow(n({},s.options.dialogOptions,{title:"View HTML",close:i})).hide().find(p).val(u).end().find(".k-dialog-update").click(t).end().find(".k-dialog-close").click(i).end().show().data("kendoWindow").center(),d.find(p).focus()}});n(c,{template:"<div class='k-editor-dialog'><textarea class='k-editor-textarea k-input'></textarea><div class='k-button-wrapper'><button class='k-dialog-update k-button'>Update</button> or <a href='#' class='k-dialog-close k-link'>Close</a></div></div>",indent:function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}}),t.ui.editor.ViewHtmlCommand=c,i.EditorUtils.registerTool("viewHtml",new l({command:c,template:new d({template:o.buttonTemplate,title:"View HTML"})}))}(window.kendo.jQuery),function(e){var t=window.kendo,n=t.Class,i=e.extend,r=t.ui.editor,a=r.RangeUtils,o=r.Marker,s=n.extend({init:function(e){this.editor=e,this.formats=[]},apply:function(e){if(this.hasPending()){var t=new o;t.addCaret(e);var n=e.startContainer.childNodes[e.startOffset],r=n.previousSibling;if(r.nodeValue||(r=r.previousSibling),e.setStart(r,r.nodeValue.length-1),t.add(e),!a.textNodes(e).length)return t.remove(e),e.collapse(!0),this.editor.selectRange(e),void 0;for(var s,l=t.end.previousSibling.previousSibling,d=this.formats,c=0;d.length>c;c++){s=d[c];var u=s.command(i({range:e},s.options.params));u.editor=this.editor,u.exec(),e.selectNode(l)}t.remove(e),l.parentNode&&(e.setStart(l,1),e.collapse(!0)),this.clear(),this.editor.selectRange(e)}},hasPending:function(){return this.formats.length>0},isPending:function(e){return!!this.getPending(e)},getPending:function(e){for(var t=this.formats,n=0;t.length>n;n++)if(t[n].name==e)return t[n]},toggle:function(e){for(var t=this.formats,n=0;t.length>n;n++)if(t[n].name==e.name)return t[n].params&&t[n].params.value!=e.params.value?t[n].params.value=e.params.value:t.splice(n,1),void 0;t.push(e)},clear:function(){this.formats=[]}});i(r,{PendingFormats:s})}(window.kendo.jQuery),function(e,t){function n(e,t){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+e+'" title="'+t+'">'+t+"</span></span>"}function i(n,i){var r,a=i!==t;if(document.selection)if(e(n).is(":visible")&&n.focus(),r=document.selection.createRange(),a)r.move("character",i),r.select();else{var o=n.createTextRange(),s=o.duplicate();o.moveToBookmark(r.getBookmark()),s.setEndPoint("EndToStart",o),i=s.text.length}else n.selectionStart!==t&&(a?(n.focus(),n.setSelectionRange(i,i)):i=n.selectionStart);return i}var r=window.kendo,a=r.keys,o=r.ui,s=o.Widget,l=r._extractFormat,d=r.parseFloat,c=r.support.placeholder,u=r.getCulture,p="change",f="disabled",h="k-input",m="spin",g=".kendoNumericTextBox",v="touchend",_="mouseleave"+g,k="touchstart"+g+" mousedown"+g,b="touchcancel"+g+" "+"touchend"+g+" mouseup"+g+" "+_,w="mouseenter"+g+" "+_,y="k-state-default",x="k-state-focused",C="k-state-hover",T=".",S="k-state-selected",F="k-state-disabled",D=null,E=e.proxy,A={190:".",188:","},N=s.extend({init:function(e,n){var i,a,o,d,c=this,u=n&&n.step!==t;s.fn.init.call(c,e,n),n=c.options,e=c.element.addClass(h).on("keydown"+g,E(c._keydown,c)).on("paste"+g,E(c._paste,c)).on("blur"+g,E(c._focusout,c)).attr("role","spinbutton"),n.placeholder=n.placeholder||e.attr("placeholder"),c._reset(),c._wrapper(),c._arrows(),c._input(),c._text.on(v+g,function(){c._toggleText(!1)}),r.support.mobileOS||c._text.on("focus"+g,E(c._click,c)),i=c.min(e.attr("min")),a=c.max(e.attr("max")),o=c._parse(e.attr("step")),n.min===D&&i!==D&&(n.min=i),n.max===D&&a!==D&&(n.max=a),u||o===D||(n.step=o),e.attr("aria-valuemin",n.min).attr("aria-valuemax",n.max),n.format=l(n.format),d=n.value,c.value(d!==D?d:e.val()),c.enable(!e.is("[disabled]")),r.notify(c)},options:{name:"NumericTextBox",decimals:D,min:D,max:D,value:D,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[p,m],enable:function(e){var t=this,n=t._text.add(t.element),i=t._inputWrapper.off(w),r=t._upArrow.off(k),a=t._downArrow.off(k);t._toggleText(!0),e===!1?(i.removeClass(y).addClass(F),n.attr(f,f)):(i.addClass(y).removeClass(F).on(w,t._toggleHover),n.removeAttr(f),r.on(k,function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(S)}),a.on(k,function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(S)}))},destroy:function(){var e=this;e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(g),e._form&&e._form.off("reset",e._resetHandler),s.fn.destroy.call(e)},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},step:function(e){return this._option("step",e)},value:function(e){var n,i=this;return e===t?i._value:(e=i._parse(e),n=i._adjust(e),e===n&&(i._update(e),i._old=i._value),t)},focus:function(){this._focusin()},_adjust:function(e){var t=this,n=t.options,i=n.min,r=n.max;return e===D?e:(i!==D&&i>e?e=i:r!==D&&e>r&&(e=r),e)},_arrows:function(){var t,i=this,r=i.options,a=r.spinners,o=i.element;t=o.siblings(".k-icon"),t[0]||(t=e(n("n",r.upArrowText)+n("s",r.downArrowText)).insertAfter(o),t.wrapAll('<span class="k-select"/>')),t.on(b,function(){clearTimeout(i._spinning),t.removeClass(S)}),a||(t.toggle(a),i._inputWrapper.addClass("k-expand-padding")),i._upArrow=t.eq(0),i._downArrow=t.eq(1)},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var n=e.target,r=i(n),a=n.value.substring(0,r),o=t._format(t.options.format),s=o[","],l=RegExp("\\"+s,"g"),d=RegExp("([\\d\\"+s+"]+)(\\"+o[T]+")?(\\d+)?"),c=d.exec(a),u=0;c&&(u=c[0].replace(l,"").length,-1!=a.indexOf("(")&&0>t._value&&u++),t._focusin(),i(t.element[0],u)})},_change:function(e){var t=this;t._update(e),e=t._value,t._old!=e&&(t._old=e,t.trigger(p),t.element.trigger(p))},_culture:function(e){return e||u(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(x),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(x),e._blur()},_format:function(e,t){var n=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?n=n.currency:e.indexOf("p")>-1&&(n=n.percent),n},_input:function(){var t,n,i=this,r="k-formatted-value",a=i.element.show()[0],o=a.accessKey,s=i.wrapper;n=s.find(T+r),n[0]||(n=e("<input />").insertBefore(a).addClass(r)),t=n[0],t.type="text",t.style.cssText=a.style.cssText,t.tabIndex=a.tabIndex,a.tabIndex=0,a.type="text",n.attr("placeholder",i.options.placeholder),o&&(n.attr("accesskey",o),a.accessKey=""),i._text=n.attr("readonly",!0).addClass(a.className)},_keydown:function(e){var t=this,n=e.keyCode;n==a.DOWN?t._step(-1):n==a.UP?t._step(1):n==a.ENTER&&t._change(t.element.val()),t._prevent(n,e.shiftKey)&&!e.ctrlKey&&e.preventDefault()},_paste:function(e){var t=this,n=e.target,i=n.value;setTimeout(function(){t._parse(n.value)===D&&t._update(i)})},_prevent:function(e,t){var n,r=this,o=r.element[0],s=o.value,l=r.options,d=l.min,c=r._format(l.format),u=c[T],p=l.decimals,f=i(o),h=!0;return p===D&&(p=c.decimals),e>16&&21>e||e>32&&37>e||e>47&&58>e||e>95&&106>e||e==a.INSERT||e==a.DELETE||e==a.LEFT||e==a.RIGHT||e==a.TAB||e==a.BACKSPACE||e==a.ENTER?(h=!1,t&&(n=parseInt(String.fromCharCode(e),10),isNaN(n)||(o.value=s.substring(0,f)+n+s.substring(f),h=!0))):A[e]===u&&p>0&&-1==s.indexOf(u)?h=!1:!(d===D||0>d)||-1!=s.indexOf("-")||189!=e&&109!=e||0!==f?110==e&&p>0&&-1==s.indexOf(u)&&(o.value=s.substring(0,f)+u+s.substring(f)):h=!1,h},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=i._parse(n),(n||"step"!==e)&&(r[e]=i._parse(n),i.element.attr("aria-value"+e,r[e])),t)},_spin:function(e,t){var n=this;t=t||500,clearTimeout(n._spinning),n._spinning=setTimeout(function(){n._spin(e,50)},t),n._step(e)},_step:function(e){var t=this,n=t.element,i=t._parse(n.val())||0;document.activeElement!=n[0]&&t._focusin(),i+=t.options.step*e,t._update(t._adjust(i)),t.trigger(m)},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),t.element.toggle(!e)},_parse:function(e,t){return d(e,this._culture(t),this.options.format)},_update:function(e){var t,n=this,i=n.options,a=i.format,o=i.decimals,s=n._culture(),l=n._format(a,s);o===D&&(o=l.decimals),e=n._parse(e,s),t=e!==D,t&&(e=parseFloat(e.toFixed(o))),n._value=e=n._adjust(e),n._placeholder(r.toString(e,a,s)),n.element.val(t?(""+e).replace(T,l[T]):"").attr("aria-valuenow",e)},_placeholder:function(e){this._text.val(e),c||e||this._text.val(this.options.placeholder)},_wrapper:function(){var t,n=this,i=n.element,r=i[0];t=i.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=i.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=r.style.cssText,r.style.width="",n.wrapper=t.addClass("k-widget k-numerictextbox").addClass(r.className).css("display",""),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var e=this,t=e.element,n=t.closest("form");n[0]&&(e._resetHandler=function(){setTimeout(function(){e.value(t[0].value)})},e._form=n.on("reset",e._resetHandler))}});o.plugin(N)}(window.kendo.jQuery),function(e,t){function n(e,t){return e=e.split(" ")[!t+0]||e,e.replace("top","up").replace("bottom","down")}function i(e,t,n){e=e.split(" ")[!t+0]||e;var i={origin:["bottom",n?"right":"left"],position:["top",n?"right":"left"]},r=/left|right/.test(e);return r?(i.origin=["top",e],i.position[1]=l.directions[e].reverse):(i.origin[0]=e,i.position[0]=l.directions[e].reverse),i.origin=i.origin.join(" "),i.position=i.position.join(" "),i}function r(t,n){try{return e.contains(t,n)}catch(i){return!1}}function a(t){t=e(t),t.addClass("k-item").children(w).addClass(E),t.children("a").addClass(C).children(w).addClass(E),t.filter(":not([disabled])").addClass(z),t.filter(".k-separator:empty").append(" "),t.filter("li[disabled]").addClass(P).removeAttr("disabled").attr("aria-disabled",!0),t.children("a").filter(":focus").parent().addClass(L),t.filter("[role]").length||t.attr("role","menuitem"),t.children("."+C).length||t.contents().filter(function(){return!(this.nodeName.match(k)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll("<span class='"+C+"'/>"),o(t),s(t)}function o(t){t=e(t),t.find(".k-icon").remove(),t.filter(":has(.k-group)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent().parent();t.append("<span class='k-icon "+(n.hasClass(x+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function s(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(D),t.filter(".k-last:not(:last-child)").removeClass(T),t.filter(":first-child").addClass(D),t.filter(":last-child").addClass(T)}var l=window.kendo,d=l.ui,c=l.support.touch&&l.support.mobileOS||l.support.pointers,u=l.support.mousedown,p=l.support.click,f=e.extend,h=e.proxy,m=e.each,g=l.template,v=l.keys,_=d.Widget,k=/^(ul|a|div)$/i,b=".kendoMenu",w="img",y="open",x="k-menu",C="k-link",T="k-last",S="close",F="timer",D="k-first",E="k-image",A="select",N="zIndex",I="mouseenter",R="mouseleave",H="kendoPopup",z="k-state-default",O="k-state-hover",M="k-state-focused",P="k-state-disabled",B=".k-group",L="k-state-active",U=":not(.k-list) > .k-item",W=".k-item.k-state-disabled",q=".k-item:not(.k-state-disabled)",V=".k-item:not(.k-state-disabled) > .k-link",j="div:not(.k-animation-container,.k-list-container)",$={content:g("<div class='k-content k-group'>#= content(item) #</div>"),group:g("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:g("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:g("<li class='#= wrapperCssClass(group, item) #' role='menuitem' #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } #</li>"),image:g("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:g("<span class='#= arrowClass(item, group) #'></span>"),sprite:g("<span class='k-sprite #= spriteCssClass #'></span>"),empty:g("")},G={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},textClass:function(){return C},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e,t){var n="k-icon";return n+=t.horizontal?" k-i-arrow-s":" k-i-arrow-e"},text:function(e){return e.encoded===!1?e.text:l.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group"},content:function(e){return e.content?e.content:" "}},Y=_.extend({init:function(t,n){var i=this;_.fn.init.call(i,t,n),t=i.wrapper=i.element,n=i.options,n.dataSource&&(i.element.empty(),i.append(n.dataSource,t)),i._updateClasses(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),i.nextItemZIndex=100,i._tabindex(),t.on("touchstart",function(t){i.element[0].blur(),i.element[0].focus(),setTimeout(function(){i._moveHover([],e(l.eventTarget(t)).closest(U))},200)}).on("MSPointerDown",function(t){i._oldHoverItem=e(t.target).closest(U)}).on(p+b,W,!1).on(p+b,q,h(i._click,i)).on("keydown"+b,h(i._keydown,i)).on("focus"+b,h(i._focus,i)).on("blur"+b,h(i._removeHoverItem,i)).on(I+b,q,h(i._mouseenter,i)).on(R+b,q,h(i._mouseleave,i)).on(I+b+" "+R+b+" "+u+b+" "+p+b,V,h(i._toggleHover,i)),n.openOnClick&&(i.clicked=!1,i._documentClickHandler=h(i._documentClick,i),e(document).click(i._documentClickHandler)),t.attr("role","menubar"),t[0].id&&(i._ariaId=l.format("{0}_mn_active",t[0].id)),l.notify(i)},events:[y,S,A],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100},destroy:function(){var t=this;_.fn.destroy.call(t),t.element.off(b),t._documentClickHandler&&e(document).unbind(t._documentClickHandler)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(t,n){n=this.element.find(n);var i=this._insert(t,n,n.length?n.find("> .k-group, .k-animation-container > .k-group"):null);return m(i.items,function(t){i.group.append(this);var n=i.contents[t];n&&e(this).append(n),o(this)}),o(n),s(i.group.find(".k-first, .k-last").add(i.items)),this},insertBefore:function(t,n){n=this.element.find(n);var i=this._insert(t,n,n.parent());return m(i.items,function(t){n.before(this);var r=i.contents[t];r&&e(this).append(r),o(this),s(this)}),s(n),this},insertAfter:function(t,n){n=this.element.find(n);var i=this._insert(t,n,n.parent());return m(i.items,function(t){n.after(this);var r=i.contents[t];r&&e(this).append(r),o(this),s(this)}),s(n),this},_insert:function(t,n,i){var r,o,s=this,l=[];n&&n.length||(i=s.element);var d=e.isPlainObject(t),c={firstLevel:i.hasClass(x),horizontal:i.hasClass(x+"-horizontal"),expanded:!0,length:i.children().length};return n&&!i.length&&(i=e(Y.renderGroup({group:c})).appendTo(n)),d||e.isArray(t)?(r=e.map(d?[t]:t,function(t,n){return"string"==typeof t?e(t):e(Y.renderItem({group:c,item:f(t,{index:n})}))}),l=e.map(d?[t]:t,function(t,n){return t.content||t.contentUrl?e(Y.renderContent({item:f(t,{index:n})})):!1})):(r=e(t),o=r.find("> ul").addClass("k-group").attr("role","menu"),r=r.filter("li"),r.add(o.find("> li")).each(function(){a(this)})),{items:r,group:i,contents:l}},remove:function(e){e=this.element.find(e);var t=this,n=e.parentsUntil(t.element,U),i=e.parent("ul");if(e.remove(),i&&!i.children(U).length){var r=i.parent(".k-animation-container");r.length?r.remove():i.remove()}return n.length&&(n=n.eq(0),o(n),s(n)),t},open:function(r){var a=this,o=a.options,s="horizontal"==o.orientation,d=o.direction,c=l.support.isRtl(a.wrapper);return r=a.element.find(r),/^(top|bottom|default)$/.test(d)&&(d=c?s?(d+" left").replace("default","bottom"):"left":s?(d+" right").replace("default","bottom"):"right"),r.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var t=e(this).data("kendoPopup");t&&t.close()}),r.each(function(){var r=e(this);clearTimeout(r.data(F)),r.data(F,setTimeout(function(){var e,l=r.find(".k-group:first:hidden");if(l[0]&&a.trigger(y,{item:r[0]})===!1){r.data(N,r.css(N)),r.css(N,a.nextItemZIndex++),e=l.data(H);var u=r.parent().hasClass(x),p=u&&s,h=i(d,u,c),m=o.animation.open.effects,g=m!==t?m:"slideIn:"+n(d,u);e?(e=l.data(H),e.options.origin=h.origin,e.options.position=h.position,e.options.animation.open.effects=g):e=l.kendoPopup({origin:h.origin,position:h.position,collision:o.popupCollision!==t?o.popupCollision:p?"fit":"fit flip",anchor:r,appendTo:r,animation:{open:f(!0,{effects:g},o.animation.open),close:o.animation.close},close:function(e){var t=e.sender.wrapper.parent();a.trigger(S,{item:t[0]})?e.preventDefault():(t.css(N,t.data(N)),t.removeData(N))}}).data(H),l.removeAttr("aria-hidden"),e.open()}},a.options.hoverDelay))}),a},close:function(t){var n=this,i=n.element;return t=i.find(t),t.length||(t=i.find(">.k-item")),t.each(function(){var t=e(this);clearTimeout(t.data(F)),t.data(F,setTimeout(function(){var e=t.find(".k-group:first:visible").data(H);e&&(e.close(),e.element.attr("aria-hidden",!0))},n.options.hoverDelay))}),n},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(z,n).toggleClass(P,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(l.eventTarget(t)||t.target).closest(U),i=t.type==I||-1!==u.indexOf(t.type);n.parents("li."+P).length||n.toggleClass(O,i),this._removeHoverItem()},_removeHoverItem:function(){var e=this._oldHoverItem;e&&e.hasClass(M)&&(e.removeClass(M),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element;t.addClass("k-widget k-reset k-header "+x).addClass(x+"-"+this.options.orientation),t.find("li > ul").addClass("k-group").attr("role","menu").attr("aria-hidden",t.is(":visible")),e=t.find("> li,.k-group > li"),e.each(function(){a(this)})},_mouseenter:function(t){var n=this,i=e(t.currentTarget),a=i.children(".k-animation-container").length||i.children(B).length;t.delegateTarget==i.parents(".k-menu")[0]&&((!n.options.openOnClick||n.clicked)&&!r(t.currentTarget,t.relatedTarget)&&a&&n.open(i),(n.options.openOnClick&&n.clicked||c)&&i.siblings().each(h(function(e,t){n.close(t)},n)))},_mouseleave:function(n){var i=this,a=e(n.currentTarget),o=a.children(".k-animation-container").length||a.children(B).length;return a.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?(n.stopImmediatePropagation(),t):(i.options.openOnClick||c||r(n.currentTarget,n.relatedTarget)||!o||i.close(a),t)},_click:function(n){var i,r,a,o=this,s=o.options,d=e(l.eventTarget(n)),c=d[0]?d[0].nodeName.toUpperCase():"",u="INPUT"==c||"SELECT"==c||"BUTTON"==c,p=d.closest("."+C),f=d.closest(U),h=p.attr("href"),m=!!h&&"#"!=h.charAt(h.length-1);if(!f.children(j)[0])return f.hasClass(P)?(n.preventDefault(),t):(n.handled||!o.trigger(A,{item:f[0]})||u||n.preventDefault(),n.handled=!0,r=f.children(B+",.k-animation-container"),a=r.is(":visible"),s.closeOnClick&&!m&&(!r.length||s.openOnClick&&a)?(f.removeClass(O).css("height"),o._oldHoverItem=o._findRootParent(f),o.close(p.parentsUntil(o.element,U)),o.clicked=!1,-1!="touchend MSPointerUp".indexOf(n.type)&&n.preventDefault(),t):((f.parent().hasClass(x)&&s.openOnClick||l.support.touch)&&(m||u||n.preventDefault(),o.clicked=!0,i=r.is(":visible")?S:y,o[i](f)),t))},_documentClick:function(e){r(this.element[0],e.target)||(this.clicked=!1)},_focus:function(e){var t=this,n=e.target,i=t._hoverItem();n==t.wrapper[0]&&i.length?t._moveHover([],i):n!=t.wrapper[0]||t._oldHoverItem||t._moveHover([],t.wrapper.children().first())},_keydown:function(e){var n,i,r,a=this,o=e.keyCode,s=a._oldHoverItem,d=l.support.isRtl(a.wrapper);if(e.target==e.currentTarget||o==v.ESC){if(s||(s=a._oldHoverItem=a._hoverItem()),i=a._itemBelongsToVertival(s),r=a._itemHasChildren(s),o==v.RIGHT)n=a[d?"_itemLeft":"_itemRight"](s,i,r);else if(o==v.LEFT)n=a[d?"_itemRight":"_itemLeft"](s,i,r);else if(o==v.DOWN)n=a._itemDown(s,i,r);else if(o==v.UP)n=a._itemUp(s,i,r);else if(o==v.ESC)n=a._itemEsc(s,i);else if(o==v.ENTER||o==v.SPACEBAR)n=s.children(".k-link"),n.length>0&&(a._click({target:n[0],preventDefault:function(){}}),a._moveHover(s,a._findRootParent(s)));else if(o==v.TAB)return n=a._findRootParent(s),a.close(n),a._moveHover(s,n),t;n&&n[0]&&(e.preventDefault(),e.stopPropagation())}},_hoverItem:function(){return this.wrapper.find("li.k-item.k-state-hover").filter(":visible")},_itemBelongsToVertival:function(e){var t=this.wrapper.hasClass("k-menu-vertical");return e.length?e.parent().hasClass("k-group")||t:t},_itemHasChildren:function(e){return e.length?e.children("ul.k-group, div.k-animation-container").length>0:!1},_moveHover:function(e,t){var n=this,i=n._ariaId;e.length&&t.length&&(e.removeClass(M),e[0].id===i&&e.removeAttr("id")),t.length&&(t[0].id&&(i=t[0].id),t.addClass(M),n._oldHoverItem=t,i&&(n.element.removeAttr("aria-activedescendant"),t.attr("id",i),n.element.attr("aria-activedescendant",i)))},_findRootParent:function(e){return e.parent().hasClass("k-menu")?e:e.parentsUntil(".k-menu","li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass("k-menu")},_itemRight:function(e,t,n){var i,r,a=this;return t?n?(a.open(e),i=e.find(".k-group").children().first()):"horizontal"==a.options.orientation&&(r=a._findRootParent(e),a.close(r),i=r.next(),i.is(".k-separator")&&(i=i.next())):(i=e.next(),i.is(".k-separator")&&(i=i.next()),i.length||(i=e.parent().children().first())),i&&!i.length?i=a.wrapper.children(".k-item").first():i||(i=[]),a._moveHover(e,i),i},_itemLeft:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._isRootItem(n)&&"horizontal"==i.options.orientation&&(n=n.prev(),n.is(".k-separator")&&(n=n.prev()))):(n=e.prev(),n.is(".k-separator")&&(n=n.prev()),n.length||(n=e.parent().children().last())),n.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n
|
23
|
+
},_itemDown:function(e,t,n){var i,r=this;if(t)i=e.next(),i.is(".k-separator")&&(i=i.next());else{if(!n||e.hasClass(P))return;r.open(e),i=e.find(".k-group").children().first()}return!i.length&&e.length?i=e.parent().children().first():e.length||(i=r.wrapper.children(".k-item").first()),r._moveHover(e,i),i},_itemUp:function(e,t){var n,i=this;if(t)return n=e.prev(),n.is(".k-separator")&&(n=n.prev()),!n.length&&e.length?n=e.parent().children().last():e.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemEsc:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._moveHover(e,n),n):e}});f(Y,{renderItem:function(e){e=f({menu:{},group:{}},e);var t=$.empty,n=e.item;return $.item(f(e,{image:n.imageUrl?$.image:t,sprite:n.spriteCssClass?$.sprite:t,itemWrapper:$.itemWrapper,arrow:n.items||n.content?$.arrow:t,subGroup:Y.renderGroup},G))},renderGroup:function(e){return $.group(f({renderItems:function(e){for(var t="",n=0,i=e.items,r=i?i.length:0,a=f({length:r},e.group);r>n;n++)t+=Y.renderItem(f(e,{group:a,item:f({index:n},i[n])}));return t}},e,G))},renderContent:function(e){return $.content(f(e,G))}}),l.ui.plugin(Y)}(window.kendo.jQuery),function(e,t){function n(t){return t=null!=t?t:"",t.type||e.type(t)||"string"}function i(t){t.find(":input:not(:button, ["+s.attr("role")+"=upload], ["+s.attr("skip")+"]), select").each(function(){var t=s.attr("bind"),n=this.getAttribute(t)||"",i="checkbox"===this.type||"radio"===this.type?"checked:":"value:",r=this.name;-1===n.indexOf(i)&&r&&(n+=(n.length?",":"")+i+r,e(this).attr(t,n))})}function r(e){var t,i,r=(e.model.fields||e.model)[e.field],a=n(r),o=r?r.validation:{},l=s.attr("type"),d=s.attr("bind"),c={name:e.field};for(t in o)i=o[t],f(t,v)>=0?c[l]=t:u(i)||(c[t]=p(i)?i.value||t:i),c[s.attr(t+"-msg")]=i.message;return f(a,v)>=0&&(c[l]=a),c[d]=("boolean"===a?"checked:":"value:")+e.field,c}function a(e){var t,n,i,r,a,o;if(e&&e.length)for(o=[],t=0,n=e.length;n>t;t++)i=e[t],a=i.text||i.value||i,r=null==i.value?i.text||i:i.value,o[t]={text:a,value:r};return o}function o(e,t){var n,i=e?e.validation||{}:{};for(n in i)u(i[n])&&(t[n]=i[n])}var s=window.kendo,l=s.ui,d=l.Widget,c=e.extend,u=e.isFunction,p=e.isPlainObject,f=e.inArray,h=/(\[|\]|\$|\.|\:|\+)/g,m='<div class="k-widget k-tooltip k-tooltip-validation" style="margin:0.5em"><span class="k-icon k-warning"> </span>#=message#<div class="k-callout k-callout-n"></div></div>',g="change",v=["url","email","number","date","boolean"],_={number:function(t,n){var i=r(n);e('<input type="text"/>').attr(i).appendTo(t).kendoNumericTextBox({format:n.format}),e("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},date:function(t,n){var i=r(n),a=n.format;a&&(a=s._extractFormat(a)),i[s.attr("format")]=a,e('<input type="text"/>').attr(i).appendTo(t).kendoDatePicker({format:n.format}),e("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)},string:function(t,n){var i=r(n);e('<input type="text" class="k-input k-textbox"/>').attr(i).appendTo(t)},"boolean":function(t,n){var i=r(n);e('<input type="checkbox" />').attr(i).appendTo(t)},values:function(t,n){var i=r(n);e("<select "+s.attr("text-field")+'="text"'+s.attr("value-field")+'="value"'+s.attr("source")+"='"+s.stringify(a(n.values)).replace(/\'/g,"'")+"'"+s.attr("role")+'="dropdownlist"/>').attr(i).appendTo(t),e("<span "+s.attr("for")+'="'+n.field+'" class="k-invalid-msg"/>').hide().appendTo(t)}},k=d.extend({init:function(t,n){var i=this;d.fn.init.call(i,t,n),i._validateProxy=e.proxy(i._validate,i),i.refresh()},events:[g],options:{name:"Editable",editors:_,clearContainer:!0,errorTemplate:m},editor:function(e,t){var i=this,r=i.options.editors,a=p(e),o=a?e.field:e,s=i.options.model||{},l=a&&e.values,d=l?"values":n(t),u=a&&e.editor,f=u?e.editor:r[d],m=i.element.find("[data-container-for="+o.replace(h,"\\$1")+"]");f=f?f:r.string,u&&"string"==typeof e.editor&&(f=function(t){t.append(e.editor)}),m=m.length?m:i.element,f(m,c(!0,{},a?e:{field:o},{model:s}))},_validate:function(t){var n,i=this,r="boolean"==typeof t.value,a=i._validationEventInProgress,o={};o[t.field]=t.value,n=e(":input["+s.attr("bind")+'="'+(r?"checked:":"value:")+t.field+'"]',i.element);try{i._validationEventInProgress=!0,(!i.validatable.validateInput(n)||!a&&i.trigger(g,{values:o}))&&t.preventDefault()}finally{i._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){var e=this;d.fn.destroy.call(e),e.options.model.unbind("set",e._validateProxy),s.unbind(e.element),s.destroy(e.element),e.element.removeData("kendoValidator")},refresh:function(){var n,r,a,l,d,c,u,f=this,h=f.options.fields||[],m=f.options.clearContainer?f.element.empty():f.element,g=f.options.model||{},v={};for(e.isArray(h)||(h=[h]),n=0,r=h.length;r>n;n++)a=h[n],l=p(a),d=l?a.field:a,c=(g.fields||g)[d],o(c,v),f.editor(a,c);if(!r){u=g.fields||g;for(d in u)o(u[d],v)}i(m),s.bind(m,f.options.model),f.options.model.bind("set",f._validateProxy),f.validatable=m.kendoValidator({validateOnBlur:!1,errorTemplate:f.options.errorTemplate||t,rules:v}).data("kendoValidator"),m.find(":focusable:first").focus()}});l.plugin(k)}(window.kendo.jQuery),function(e){function t(n,i){n.filters&&(n.filters=e.grep(n.filters,function(e){return t(e,i),e.filters?e.filters.length:e.field!=i}))}function n(e){var t,n,i,r,a,o;if(e&&e.length)for(o=[],t=0,n=e.length;n>t;t++)i=e[t],a=i.text||i.value||i,r=null==i.value?i.text||i:i.value,o[t]={text:a,value:r};return o}var i=window.kendo,r=i.ui,a="kendoNumericTextBox",o="kendoDatePicker",s=e.proxy,l="kendoPopup",d=".kendoFilterMenu",c="Is equal to",u="Is not equal to",p=r.Widget,f='<div><div class="k-filter-help-text">#=messages.info#</div><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value"/>#=messages.isTrue#</label><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value"/>#=messages.isFalse#</label><button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',h='<div><div class="k-filter-help-text">#=messages.info#</div><select data-#=ns#bind="value: filters[0].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[0].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values).replace(/\'/g,"&\\#39;")#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value:filters[0].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##if(extra){#<select class="k-filter-and" data-#=ns#bind="value: logic" data-#=ns#role="dropdownlist"><option value="and">#=messages.and#</option><option value="or">#=messages.or#</option></select><select data-#=ns#bind="value: filters[1].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[1].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values).replace(/\'/g,"&\\#39;")#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value: filters[1].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##}#<button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',m=p.extend({init:function(t,r){var c,u,m,g=this,v="string";p.fn.init.call(g,t,r),m=r.operators||{},t=g.element,r=g.options,r.appendToElement?g.link=e():(c=t.addClass("k-filterable").find(".k-grid-filter"),c[0]||(c=t.prepend('<a class="k-grid-filter" href="#"><span class="k-icon k-filter"/></a>').find(".k-grid-filter")),c.attr("tabindex",-1).on("click"+d,s(g._click,g))),g._refreshHandler=s(g.refresh,g),g.dataSource=r.dataSource.bind("change",g._refreshHandler),g.field=r.field||t.attr(i.attr("field")),g.model=g.dataSource.reader.model,g._parse=function(e){return e+""},g.model&&g.model.fields&&(u=g.model.fields[g.field],u&&(v=u.type||"string",g._parse=s(u.parse,u))),r.values&&(v="enums"),m=m[v]||r.operators[v],g.form=e('<form class="k-filter-menu"/>').html(i.template("boolean"===v?f:h)({field:g.field,ns:i.ns,messages:r.messages,extra:r.extra,operators:m,type:v,values:n(r.values)})).on("keydown"+d,s(g._keydown,g)).on("submit"+d,s(g._submit,g)).on("reset"+d,s(g._reset,g)),r.appendToElement?(t.append(g.form),g.popup=g.element.closest(".k-popup").data(l)):(g.popup=g.form[l]({anchor:c,open:s(g._open,g),activate:s(g._activate,g),close:g.options.closeCallback}).data(l),g.link=c),g.form.find("["+i.attr("type")+"=number]").removeClass("k-textbox")[a]().end().find("["+i.attr("type")+"=date]").removeClass("k-textbox")[o](),g.refresh()},refresh:function(){var e=this,t=e.dataSource.filter()||{filters:[],logic:"and"};e.filterModel=i.observable({logic:"and",filters:[{field:e.field,operator:"eq",value:""},{field:e.field,operator:"eq",value:""}]}),i.bind(e.form.children().first(),e.filterModel),e._bind(t)?e.link.addClass("k-state-active"):e.link.removeClass("k-state-active")},destroy:function(){var e=this;p.fn.destroy.call(e),i.unbind(e.form),i.destroy(e.form),e.form.unbind(d),e.popup.destroy(),e.link.unbind(d),e.dataSource.unbind("change",e._refreshHandler)},_bind:function(e){var t,n,i,r,a=this,o=e.filters,s=!1,l=0,d=a.filterModel;for(t=0,n=o.length;n>t;t++)r=o[t],r.field==a.field?(d.set("logic",e.logic),i=d.filters[l],i||(d.filters.push({field:a.field}),i=d.filters[l]),i.set("value",a._parse(r.value)),i.set("operator",r.operator),l++,s=!0):r.filters&&(s=s||a._bind(r));return s},_merge:function(n){var i,r,a,o=this,s=n.logic||"and",l=n.filters,d=o.dataSource.filter()||{filters:[],logic:"and"};for(t(d,o.field),l=e.grep(l,function(e){return""!==e.value}),r=0,a=l.length;a>r;r++)i=l[r],i.value=o._parse(i.value);return l.length&&(d.filters.length?(n.filters=l,"and"!==d.logic&&(d.filters=[{logic:d.logic,filters:d.filters}],d.logic="and"),l.length>1?d.filters.push(n):d.filters.push(l[0])):(d.filters=l,d.logic=s)),d},filter:function(e){e=this._merge(e),e.filters.length&&this.dataSource.filter(e)},clear:function(){var t=this,n=t.dataSource.filter()||{filters:[]};n.filters=e.grep(n.filters,function(n){return n.filters?(n.filters=e.grep(n.filters,function(e){return e.field!=t.field}),n.filters.length):n.field!=t.field}),n.filters.length||(n=null),t.dataSource.filter(n)},_submit:function(e){var t=this;e.preventDefault(),t.filter(t.filterModel.toJSON()),t.popup.close()},_reset:function(){this.clear(),this.popup.close()},_click:function(e){e.preventDefault(),e.stopPropagation(),this.popup.toggle()},_open:function(){var t;e(".k-filter-menu").not(this.form).each(function(){t=e(this).data(l),t&&t.close()})},_activate:function(){this.form.find(":focusable:first").focus()},_keydown:function(e){e.keyCode==i.keys.ESC&&this.popup.close()},options:{name:"FilterMenu",extra:!0,appendToElement:!1,type:"string",operators:{string:{eq:c,neq:u,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with"},number:{eq:c,neq:u,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"},date:{eq:c,neq:u,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before"},enums:{eq:c,neq:u}},messages:{info:"Show items with value that:",isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear",and:"And",or:"Or",selectValue:"-Select value-"}}});r.plugin(m)}(window.kendo.jQuery),function(e,t){function n(t){t=e(t),t.children(v).children(".k-icon").remove(),t.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent();t.append("<span class='k-icon "+(n.hasClass(R)?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function i(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(x),t.filter(".k-last:not(:last-child)").removeClass(m),t.filter(":first-child").addClass(x),t.filter(":last-child").addClass(m)}var r=window.kendo,a=r.ui,o=r.keys,s=e.extend,l=e.each,d=r.template,c=a.Widget,u=/^(ul|a|div)$/i,p=".kendoPanelBar",f="img",h="href",m="k-last",g="k-link",v="."+g,_="error",k=".k-item",b=".k-group",w=b+":visible",y="k-image",x="k-first",C="expand",T="select",S="k-content",F="activate",D="collapse",E="contentUrl",A="mouseenter",N="mouseleave",I="contentLoad",R="k-state-active",H="> .k-panel",z="> .k-content",O="k-state-focused",M="k-state-disabled",P="k-state-selected",B="."+P,L="k-state-highlighted",U=k+":not(.k-state-disabled)",W=U+" > .k-link",q=k+".k-state-disabled > .k-link",V="> li > "+B+", .k-panel > li > "+B,j="k-state-default",$="aria-disabled",G="aria-expanded",Y="aria-hidden",K="aria-selected",Q=":visible",J=":empty",X="single",Z={content:d("<div role='region' class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:d("<ul role='group' aria-hidden='true' class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:d("<#= tag(item) # class='#= textClass(item, group) #' #= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:d("<li role='menuitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:d("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:d("<span class='#= arrowClass(item) #'></span>"),sprite:d("<span class='k-sprite #= spriteCssClass #'></span>"),empty:d("")},et={aria:function(e){var t="";return(e.items||e.content||e.contentUrl)&&(t+=G+"='"+(e.expanded?"true":"false")+"' "),e.enabled===!1&&(t+=$+"='true'"),t},wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" "+M:t.expanded===!0?" "+R:" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},textClass:function(e,t){var n=g;return t.firstLevel&&(n+=" k-header"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e){var t="k-icon";return t+=e.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand"},text:function(e){return e.encoded===!1?e.text:r.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-panel"},contentAttributes:function(e){return e.item.expanded!==!0?" style='display:none'":""},content:function(e){return e.content?e.content:e.contentUrl?"":" "},contentUrl:function(e){return e.contentUrl?r.attr("content-url")+'="'+e.contentUrl+'"':""}},tt=c.extend({init:function(t,n){var i,a=this;c.fn.init.call(a,t,n),t=a.wrapper=a.element.addClass("k-widget k-reset k-header k-panelbar"),n=a.options,n.dataSource&&(a.element.empty(),a.append(n.dataSource,t)),t[0].id&&(a._itemId=t[0].id+"_pb_active"),a._tabindex(),a._updateClasses(),n.animation===!1&&(n.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),t.on("touchend"+p+" click"+p,W,function(t){a._click(e(t.currentTarget))&&t.preventDefault()}).on(A+p+" "+N+p,W,a._toggleHover).on("touchend"+p+" click"+p,q,!1).on("keydown"+p,e.proxy(a._keydown,a)).on("focus"+p,function(){var e=a.select();a._current(e[0]?e:a._first())}).on("blur"+p,function(){a._current(null)}).attr("role","menu"),n.contentUrls&&t.find("> .k-item").each(function(t,i){e(i).find(v).data(E,n.contentUrls[t])}),i=t.find("li."+R+" > ."+S),i[0]&&a.expand(i.parent(),!1),r.notify(a)},events:[C,D,T,F,_,I],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:200}},expandMode:"multiple"},destroy:function(){c.fn.destroy.call(this),this.element.off(p),r.destroy(this.element)},expand:function(t,n){var i=this,r={};return n=n!==!1,t=this.element.find(t),t.each(function(a,o){o=e(o);var s=o.find(H).add(o.find(z));if(!o.hasClass(M)&&s.length>0){if(i.options.expandMode==X&&i._collapseAllExpanded(o))return i;t.find("."+L).removeClass(L),o.addClass(L),n||(r=i.options.animation,i.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),i._triggerEvent(C,o)||i._toggleItem(o,!1),n||(i.options.animation=r)}}),i},collapse:function(t,n){var i=this,r={};return n=n!==!1,t=i.element.find(t),t.each(function(t,a){a=e(a);var o=a.find(H).add(a.find(z));!a.hasClass(M)&&o.is(Q)&&(a.removeClass(L),n||(r=i.options.animation,i.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),i._triggerEvent(D,a)||i._toggleItem(a,!0),n||(i.options.animation=r))}),i},_toggleDisabled:function(e,t){e=this.element.find(e),e.toggleClass(j,t).toggleClass(M,!t).attr($,!t)},select:function(n){var i=this;return n===t?i.element.find(V).parent():(i.element.find(n).each(function(){var n=e(this),r=n.children(v);return n.hasClass(M)?i:(i._updateSelected(r),t)}),i)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(t,r){r=this.element.find(r);var a=this._insert(t,r,r.length?r.find(H):null);return l(a.items,function(t){a.group.append(this);var n=a.contents[t];n&&e(this).append(n),i(this)}),n(r),i(a.group.find(".k-first, .k-last")),a.group.height("auto"),this},insertBefore:function(t,n){n=this.element.find(n);var r=this._insert(t,n,n.parent());return l(r.items,function(t){n.before(this);var a=r.contents[t];a&&e(this).append(a),i(this)}),i(n),r.group.height("auto"),this},insertAfter:function(t,n){n=this.element.find(n);var r=this._insert(t,n,n.parent());return l(r.items,function(t){n.after(this);var a=r.contents[t];a&&e(this).append(a),i(this)}),i(n),r.group.height("auto"),this},remove:function(e){e=this.element.find(e);var t=this,r=e.parentsUntil(t.element,k),a=e.parent("ul");return e.remove(),!a||a.hasClass("k-panelbar")||a.children(k).length||a.remove(),r.length&&(r=r.eq(0),n(r),i(r)),t},reload:function(t){var n=this;t=n.element.find(t),t.each(function(){var t=e(this);n._ajaxRequest(t,t.children("."+S),!t.is(Q))})},_first:function(){return this.element.children(U).first()},_last:function(){var e=this.element.children(U).last(),t=e.children(w);return t[0]?t.children(U).last():e},_current:function(e){var n=this,i=n._focused;return e===t?i:(n.element.removeAttr("aria-activedescendant"),i&&i.removeAttr("id").children(v).removeClass(O),e&&(e.attr("id",n._itemId).children(v).addClass(O),n.element.attr("aria-activedescendant",n._itemId)),n._focused=e,t)},_keydown:function(e){var t=this,n=e.keyCode,i=t._current();e.target==e.currentTarget&&(n==o.DOWN||n==o.RIGHT?(t._current(t._nextItem(i)),e.preventDefault()):n==o.UP||n==o.LEFT?(t._current(t._prevItem(i)),e.preventDefault()):n==o.ENTER||n==o.SPACEBAR?(t._click(i.children(v)),e.preventDefault()):n==o.HOME?(t._current(t._first()),e.preventDefault()):n==o.END&&(t._current(t._last()),e.preventDefault()))},_nextItem:function(e){if(!e)return this._first();var t=e.children(w),n=e.next();return t[0]&&(n=t.children("."+x)),n[0]||(n=e.parent(w).parent(k).next()),n[0]&&n.is(":visible")||(n=this._first()),n.hasClass(M)&&(n=this._nextItem(n)),n},_prevItem:function(e){if(!e)return this._last();var t,n=e.prev();if(n[0])for(t=n;t[0];)t=t.children(w).children("."+m),t[0]&&(n=t);else n=e.parent(w).parent(k),n[0]||(n=this._last());return n.hasClass(M)&&(n=this._prevItem(n)),n},_insert:function(t,n,i){var r,a,o=this,l=[],d=e.isPlainObject(t),c=n&&n[0];return c||(i=o.element),a={firstLevel:i.hasClass("k-panelbar"),expanded:i.parent().hasClass(R),length:i.children().length},c&&!i.length&&(i=e(tt.renderGroup({group:a})).appendTo(n)),d||e.isArray(t)?(r=e.map(d?[t]:t,function(t,n){return"string"==typeof t?e(t):e(tt.renderItem({group:a,item:s(t,{index:n})}))}),l=e.map(d?[t]:t,function(t,n){return t.content||t.contentUrl?e(tt.renderContent({item:s(t,{index:n})})):!1}),c&&n.attr(G,!1)):(r=e(t),o._updateItemsClasses(r)),{items:r,group:i,contents:l}},_toggleHover:function(t){var n=e(t.currentTarget);n.parents("li."+M).length||n.toggleClass("k-state-hover",t.type==A)},_updateClasses:function(){var t,r,a=this;t=a.element.find("li > ul").not(function(){return e(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").attr("role","group"),t.parent().attr(G,!1).not("."+R).children("ul").attr(Y,!0).hide(),r=a.element.add(t).children(),a._updateItemsClasses(r),n(r),i(r)},_updateItemsClasses:function(e){for(var t=e.length,n=0;t>n;n++)this._updateItemClasses(e[n])},_updateItemClasses:function(t){var n,i=this._selected;t=e(t).addClass("k-item").attr("role","menuitem"),t.children(f).addClass(y),t.children("a").addClass(g).children(f).addClass(y),t.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),t.filter("li[disabled]").addClass("k-state-disabled").attr($,!0).removeAttr("disabled"),t.children("div").addClass(S).attr("role","region").attr(Y,!0).hide().parent().attr(G,!1),n=t.children(B),n[0]&&(i&&i.removeAttr(K).children(B).removeClass(P),n.addClass(P),this._selected=t.attr(K,!0)),t.children(v)[0]||t.contents().filter(function(){return!(this.nodeName.match(u)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll("<span class='"+g+"'/>"),t.parent(".k-panelbar")[0]&&t.children(v).addClass("k-header")},_click:function(e){var t,n=this,i=n.element;if(!e.parents("li."+M).length&&e.closest(".k-widget")[0]==i[0]){var r=e.closest(v),a=r.closest(k);n._updateSelected(r);var o=a.find(H).add(a.find(z)),s=r.attr(h),l=r.data(E)||s&&("#"==s.charAt(s.length-1)||-1!=s.indexOf("#"+n.element[0].id+"-"));if(!o.data("animating")&&(n._triggerEvent(T,a)&&(t=!0),(l||o.length)&&(t=!0,n.options.expandMode!=X||!n._collapseAllExpanded(a)))){if(o.length){var d=o.is(Q);n._triggerEvent(d?D:C,a)||(t=n._toggleItem(a,d))}return t}}},_toggleItem:function(e,t){var n,i,r=this,a=e.find(H);return a.length?(this._toggleGroup(a,t),n=!0):(i=e.children("."+S),i.length&&(n=!0,i.is(J)?r._ajaxRequest(e,i,t):r._toggleGroup(i,t))),n},_toggleGroup:function(e,t){var n=this,i=n.options.animation,r=i.expand,a=s({},i.collapse),o=a&&"effects"in a;e.is(Q)==t&&(e.parent().attr(G,!t).attr(Y,t).toggleClass(j,t).toggleClass(R,!t).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!t).toggleClass("k-panelbar-collapse",!t).toggleClass("k-i-arrow-s",t).toggleClass("k-panelbar-expand",t),r=t?s(o?a:s({reverse:!0},r),{hide:!0}):s({complete:function(e){n._triggerEvent(F,e.closest(k))}},r),e.kendoStop(!0,!0).kendoAnimate(r))},_collapseAllExpanded:function(t){var n,i=this,r=!1;if(t.children(v).hasClass("k-header")){var a=t.find(H).add(t.find(z));return a.is(Q)&&(r=!0),a.is(Q)||0===a.length||(n=e(i.element).children(),n.find(H).add(n.find(z)).filter(function(){return e(this).is(Q)}).each(function(t,n){n=e(n),r=i._triggerEvent(D,n.closest(k)),r||i._toggleGroup(n,!0)})),r}},_ajaxRequest:function(t,n,i){var r=this,a=t.find(".k-panelbar-collapse, .k-panelbar-expand"),o=t.find(v),s=setTimeout(function(){a.addClass("k-loading")},100),l={};e.ajax({type:"GET",cache:!1,url:o.data(E)||o.attr(h),dataType:"html",data:l,error:function(e,t){a.removeClass("k-loading"),r.trigger(_,{xhr:e,status:t})&&this.complete()},complete:function(){clearTimeout(s),a.removeClass("k-loading")},success:function(e){n.html(e),r._toggleGroup(n,i),r.trigger(I,{item:t[0],contentElement:n[0]})}})},_triggerEvent:function(e,t){var n=this;return n.trigger(e,{item:t[0]})},_updateSelected:function(e){var t=this,n=t.element,i=e.parent(k),r=t._selected;r&&r.removeAttr(K),t._selected=i.attr(K,!0),n.find(V).removeClass(P),n.find("> .k-state-highlighted, .k-panel > .k-state-highlighted").removeClass(L),e.addClass(P),e.parentsUntil(n,k).filter(":has(.k-header)").addClass(L),t._current(i)}});s(tt,{renderItem:function(e){e=s({panelBar:{},group:{}},e);var t=Z.empty,n=e.item;return Z.item(s(e,{image:n.imageUrl?Z.image:t,sprite:n.spriteCssClass?Z.sprite:t,itemWrapper:Z.itemWrapper,arrow:n.items||n.content||n.contentUrl?Z.arrow:t,subGroup:tt.renderGroup},et))},renderGroup:function(e){return Z.group(s({renderItems:function(e){for(var t="",n=0,i=e.items,r=i?i.length:0,a=s({length:r},e.group);r>n;n++)t+=tt.renderItem(s(e,{group:a,item:s({index:n},i[n])}));return t}},e,et))},renderContent:function(e){return Z.content(s(e,et))}}),r.ui.plugin(tt)}(window.kendo.jQuery),function(e,t){function n(t){t.children(m).addClass(x),t.children("a").addClass(_).children(m).addClass(x),t.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(R),t.filter("li[disabled]").addClass(I).removeAttr("disabled"),t.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(H+" "+M),t.attr("role","tab"),t.filter("."+H).attr("aria-selected",!0),t.each(function(){var t=e(this);t.children("."+_).length||t.contents().filter(function(){return!(this.nodeName.match(f)||3==this.nodeType&&!d(this.nodeValue))}).wrapAll("<a class='"+_+"'/>")})}function i(e){var t=e.children(".k-item");t.filter(".k-first:not(:first-child)").removeClass(C),t.filter(".k-last:not(:last-child)").removeClass(k),t.filter(":first-child").addClass(C),t.filter(":last-child").addClass(k)}var r=window.kendo,a=r.ui,o=r.keys,s=e.map,l=e.each,d=e.trim,c=e.extend,u=r.template,p=a.Widget,f=/^(a|div)$/i,h=".kendoTabStrip",m="img",g="href",v="prev",_="k-link",k="k-last",b="click",w="error",y=":empty",x="k-image",C="k-first",T="select",S="activate",F="k-content",D="contentUrl",E="mouseenter",A="mouseleave",N="contentLoad",I="k-state-disabled",R="k-state-default",H="k-state-active",z="k-state-focused",O="k-state-hover",M="k-tab-on-top",P=".k-item:not(."+I+")",B=".k-tabstrip-items > "+P,L=".k-tabstrip-items > "+P+":not(."+H+")",U=".k-tabstrip-items > .k-state-disabled .k-link",W={content:u("<div class='k-content'#= contentAttributes(data) # role='tabpanel'>#= content(item) #</div>"),itemWrapper:u("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:u("<li class='#= wrapperCssClass(group, item) #' role='tab' #=item.active ? \"aria-selected='true'\" : ''#>#= itemWrapper(data) #</li>"),image:u("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:u("<span class='k-sprite #= spriteCssClass #'></span>"),empty:u("")},q={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},text:function(e){return e.encoded===!1?e.text:r.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},contentAttributes:function(e){return e.active!==!0?" style='display:none' aria-hidden='true' aria-expanded='false'":""},content:function(e){return e.content?e.content:e.contentUrl?"":" "},contentUrl:function(e){return e.contentUrl?r.attr("content-url")+'="'+e.contentUrl+'"':""}},V=p.extend({init:function(t,n){var i=this;p.fn.init.call(i,t,n),i._animations(i.options),i.wrapper=i.element.is("ul")?i.element.wrapAll("<div />").parent():i.element,n=i.options,i.wrapper.on(b+h,U,!1).on("touchend"+h+" click"+h,B,function(t){i._click(e(t.currentTarget))&&t.preventDefault()}).on(E+h+" "+A+h,L,i._toggleHover).on("keydown"+h,e.proxy(i._keydown,i)).on("focus"+h,e.proxy(i._active,i)).on("blur"+h,function(){i._current(null)}),i._isRtl=r.support.isRtl(i.wrapper),i._tabindex(),i._updateClasses(),i._dataSource(),n.dataSource&&i.dataSource.fetch(),i.options.contentUrls&&i.wrapper.find(".k-tabstrip-items > .k-item").each(function(t,n){e(n).find(">."+_).data(D,i.options.contentUrls[t])});var a=i.wrapper.find("li."+H),o=e(i.contentElement(a.parent().children().index(a)));o.length>0&&0===o[0].childNodes.length&&i.activateTab(a.eq(0)),i.element.attr("role","tablist"),i.element[0].id&&(i._ariaId=i.element[0].id+"_ts_active"),r.notify(i)},_active:function(){var e=this.tabGroup.children().filter("."+H);this._current(e[0]?e:this._endItem("first"))},_endItem:function(e){return this.tabGroup.children(P)[e]()},_item:function(e,t){var n;return n=t===v?"last":"first",e?(e=e[t](),e[0]||(e=this._endItem(n)),e.hasClass(I)&&(e=this._item(e,t)),e):this._endItem(n)},_current:function(e){var n=this,i=n._focused,r=n._ariaId;return e===t?i:(i&&(i.removeClass(z),i.removeAttr("id")),e&&(e.hasClass(H)||e.addClass(z),n.element.removeAttr("aria-activedescendant"),r&&(e.attr("id",r),n.element.attr("aria-activedescendant",r))),n._focused=e,t)},_keydown:function(e){var n,i=this,r=e.keyCode,a=i._current(),s=i._isRtl;if(e.target==e.currentTarget){if(r==o.DOWN||r==o.RIGHT)n=s?v:"next";else if(r==o.UP||r==o.LEFT)n=s?"next":v;else if(r==o.ENTER||r==o.SPACEBAR)i._click(a),e.preventDefault();else{if(r==o.HOME)return i._click(i._endItem("first")),e.preventDefault(),t;if(r==o.END)return i._click(i._endItem("last")),e.preventDefault(),t}n&&(i._click(i._item(a,n)),e.preventDefault())}},_dataSource:function(){var t=this;t.dataSource&&t._refreshHandler?t.dataSource.unbind("change",t._refreshHandler):t._refreshHandler=e.proxy(t.refresh,t),t.dataSource=r.data.DataSource.create(t.options.dataSource).bind("change",t._refreshHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),e.fetch()},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{effects:{}}})},refresh:function(e){var t,n,i,a,o=this,s=o.options,l=r.getter(s.dataTextField),d=r.getter(s.dataContentField),c=r.getter(s.dataContentUrlField),u=r.getter(s.dataImageUrlField),p=r.getter(s.dataUrlField),f=r.getter(s.dataSpriteCssClass),h=[],m=o.dataSource.view();for(e=e||{},i=e.action,i&&(m=e.items),t=0,a=m.length;a>t;t++)n={text:l(m[t])},s.dataContentField&&(n.content=d(m[t])),s.dataContentUrlField&&(n.contentUrl=c(m[t])),s.dataUrlField&&(n.url=p(m[t])),s.dataImageUrlField&&(n.imageUrl=u(m[t])),s.dataSpriteCssClass&&(n.spriteCssClass=f(m[t])),h[t]=n;if("add"==e.action)o.tabGroup.children().length>e.index?o.insertBefore(h,o.tabGroup.children().eq(e.index)):o.append(h);else if("remove"==e.action)for(t=0;m.length>t;t++)o.remove(e.index);else"itemchange"==e.action?(t=o.dataSource.view().indexOf(m[0]),e.field===s.dataTextField&&o.tabGroup.children().eq(t).find(".k-link").text(m[0].get(e.field))):(o.trigger("dataBinding"),o.remove("li"),o.append(h),o.trigger("dataBound"))},value:function(n){var i=this;return n===t?i.select().text():(n!=i.value()&&i.tabGroup.children().each(function(){e.trim(e(this).text())==n&&i.select(this)}),t)},items:function(){return this.tabGroup[0].children},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=c(!0,t,e.animation),p.fn.setOptions.call(this,e)},events:[T,S,w,N,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200},close:{duration:200}},collapsible:!1},destroy:function(){var e=this;p.fn.destroy.call(e),e._refreshHandler&&e.dataSource.unbind("change",e._refreshHandler),e.wrapper.off(h),r.destroy(e.wrapper)},select:function(t){var n=this;return 0===arguments.length?n.tabGroup.find("li."+H):(isNaN(t)||(t=n.tabGroup.children().get(t)),t=n.tabGroup.find(t),e(t).each(function(t,i){i=e(i),i.hasClass(H)||n.trigger(T,{item:i[0],contentElement:n.contentElement(i.index())})||n.activateTab(i)}),n)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},reload:function(t){t=this.tabGroup.find(t);var n=this;return t.each(function(){var t=e(this),i=t.find("."+_).data(D),r=e(n.contentElement(t.index()));i&&n.ajaxRequest(t,r,null,i)}),n},append:function(e){var t=this,n=t._create(e);return l(n.tabs,function(e){t.tabGroup.append(this),t.wrapper.append(n.contents[e])
|
24
|
+
}),i(t.tabGroup),t._updateContentElements(),t},insertBefore:function(t,n){var r=this,a=r._create(t),o=e(r.contentElement(n.index()));return l(a.tabs,function(e){n.before(this),o.before(a.contents[e])}),i(r.tabGroup),r._updateContentElements(),r},insertAfter:function(t,n){var r=this,a=r._create(t),o=e(r.contentElement(n.index()));return l(a.tabs,function(e){n.after(this),o.after(a.contents[e])}),i(r.tabGroup),r._updateContentElements(),r},remove:function(t){var n=this,i=typeof t,r=e();return"string"===i?t=n.tabGroup.find(t):"number"===i&&(t=n.tabGroup.children().eq(t)),t.each(function(){r.push(n.contentElement(e(this).index()))}),t.remove(),r.remove(),n._updateContentElements(),n},_create:function(i){var r,a,o=e.isPlainObject(i),l=this;return o||e.isArray(i)?(i=e.isArray(i)?i:[i],r=s(i,function(t,n){return e(V.renderItem({group:l.tabGroup,item:c(t,{index:n})}))}),a=s(i,function(n,i){return n.content||n.contentUrl?e(V.renderContent({item:c(n,{index:i})})):t})):(r=e(i),a=e("<div class='"+F+"'/>"),n(r)),{tabs:r,contents:a}},_toggleDisabled:function(t,n){t=this.tabGroup.find(t),t.each(function(){e(this).toggleClass(R,n).toggleClass(I,!n)})},_updateClasses:function(){var r,a,o,s=this;s.wrapper.addClass("k-widget k-header k-tabstrip"),s.tabGroup=s.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),s.tabGroup[0]||(s.tabGroup=e("<ul class='k-tabstrip-items k-reset'/>").appendTo(s.wrapper)),r=s.tabGroup.find("li").addClass("k-item"),r.length&&(a=r.filter("."+H).index(),o=a>=0?a:t,s.tabGroup.contents().filter(function(){return 3==this.nodeType&&!d(this.nodeValue)}).remove()),r.eq(a).addClass(M),s.contentElements=s.wrapper.children("div"),s.contentElements.addClass(F).eq(o).addClass(H).css({display:"block"}),r.length&&(n(r),i(s.tabGroup),s._updateContentElements())},_updateContentElements:function(){var t=this,n=t.options.contentUrls||[],i=t.element.attr("id"),a=t.wrapper.children("div");t.tabGroup.find(".k-item").each(function(r){var o=a.eq(r),s=i+"-"+(r+1);this.setAttribute("aria-controls",s),!o.length&&n[r]?e("<div id='"+s+"' class='"+F+"'/>").appendTo(t.wrapper):o.attr("id",s),o.attr("role","tabpanel"),o.filter(":not(."+H+")").attr("aria-hidden",!0).attr("aria-expanded",!1),o.filter("."+H).attr("aria-expanded",!0)}),t.contentElements=t.contentAnimators=t.wrapper.children("div"),r.kineticScrollNeeded&&r.mobile.ui.Scroller&&(r.touchScroller(t.contentElements),t.contentElements=t.contentElements.children(".km-scroll-container"))},_toggleHover:function(t){e(t.currentTarget).toggleClass(O,t.type==E)},_click:function(t){var n,i,r=this,a=t.find("."+_),o=a.attr(g),s=r.options.collapsible,l=e(r.contentElement(t.index()));if(t.closest(".k-widget")[0]==r.wrapper[0]){if(t.is("."+I+(s?"":",."+H)))return!0;if(!r.tabGroup.children("[data-animating], [data-in-request]").length){if(r.trigger(T,{item:t[0],contentElement:l[0]}))return!0;if(i=a.data(D)||o&&("#"==o.charAt(o.length-1)||-1!=o.indexOf("#"+r.element[0].id+"-")),!o||i)return n=!0,s&&t.is("."+H)?(r.deactivateTab(t),!0):(r.activateTab(t)&&(n=!0),n)}}},deactivateTab:function(e){var t=this,n=t.options.animation,i=n.open,a=c({},n.close),o=a&&"effects"in a;e=t.tabGroup.find(e),a=c(o?a:c({reverse:!0},i),{hide:!0}),r.size(i.effects)?(e.kendoAddClass(R,{duration:i.duration}),e.kendoRemoveClass(H,{duration:i.duration})):(e.addClass(R),e.removeClass(H)),e.removeAttr("aria-selected"),t.contentAnimators.filter("."+H).kendoStop(!0,!0).kendoAnimate(a).removeClass(H).attr("aria-hidden",!0)},activateTab:function(t){t=this.tabGroup.find(t);var n=this,i=n.options.animation,a=i.open,o=c({},i.close),s=o&&"effects"in o,l=t.parent().children(),d=l.filter("."+H),u=l.index(t);o=c(s?o:c({reverse:!0},a),{hide:!0}),r.size(a.effects)?(d.kendoRemoveClass(H,{duration:o.duration}),t.kendoRemoveClass(O,{duration:o.duration})):(d.removeClass(H),t.removeClass(O));var p=n.contentAnimators;if(0===p.length)return d.removeClass(M),t.addClass(M).css("z-index"),t.addClass(H),n._current(t),n.trigger("change"),!1;var f=p.filter("."+H),h=e(n.contentElement(u));if(0===h.length)return f.removeClass(H).attr("aria-hidden",!0).kendoStop(!0,!0).kendoAnimate(o),!1;t.attr("data-animating",!0);var m=(t.children("."+_).data(D)||!1)&&h.is(y),g=function(){d.removeClass(M),t.addClass(M).css("z-index"),r.size(a.effects)?(d.kendoAddClass(R,{duration:a.duration}),t.kendoAddClass(H,{duration:a.duration})):(d.addClass(R),t.addClass(H)),d.removeAttr("aria-selected"),t.attr("aria-selected",!0),n._current(t),h.closest(".k-content").addClass(H).removeAttr("aria-hidden").kendoStop(!0,!0).attr("aria-expanded",!0).kendoAnimate(c({init:function(){n.trigger(S,{item:t[0],contentElement:h[0]})}},a,{complete:function(){t.removeAttr("data-animating")}}))},v=function(){m?n.ajaxRequest(t,h,function(){g(),n.trigger("change")}):(g(),n.trigger("change"))};return f.removeClass(H),f.attr("aria-hidden",!0),f.attr("aria-expanded",!1),f.length?f.kendoStop(!0,!0).kendoAnimate(c({complete:v},o)):v(),!0},contentElement:function(e){if(isNaN(e-0))return t;var n=this.contentElements&&this.contentElements[0]&&!r.kineticScrollNeeded?this.contentElements:this.contentAnimators,i=RegExp("-"+(e+1)+"$");if(n)for(var a=0,o=n.length;o>a;a++)if(i.test(n.closest(".k-content")[a].id))return n[a];return t},ajaxRequest:function(t,n,i,r){if(t=this.tabGroup.find(t),!t.find(".k-loading").length){var a=this,o=t.find("."+_),s={},l=null,d=setTimeout(function(){l=e("<span class='k-icon k-loading'/>").prependTo(o)},100);t.attr("data-in-request",!0),e.ajax({type:"GET",cache:!1,url:r||o.data(D)||o.attr(g),dataType:"html",data:s,error:function(e,n){t.removeAttr("data-animating"),a.trigger("error",{xhr:e,status:n})&&this.complete()},complete:function(){t.removeAttr("data-in-request"),clearTimeout(d),null!==l&&l.remove()},success:function(e){n.html(e),i&&i.call(a,n),a.trigger(N,{item:t[0],contentElement:n[0]})}})}}});c(V,{renderItem:function(e){e=c({tabStrip:{},group:{}},e);var t=W.empty,n=e.item;return W.item(c(e,{image:n.imageUrl?W.image:t,sprite:n.spriteCssClass?W.sprite:t,itemWrapper:W.itemWrapper},q))},renderContent:function(e){return W.content(c(e,q))}}),r.ui.plugin(V)}(window.kendo.jQuery),function(e,t){function n(e,t,n){var i,r=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-r,e.setTime(e.getTime()+i*S))}function i(){var e=new P,t=new P(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=new P(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);return-1*(t.getTimezoneOffset()-n.getTimezoneOffset())}function r(e){return 60*e.getHours()*S+e.getMinutes()*S+1e3*e.getSeconds()+e.getMilliseconds()}function a(e,t,n){var i,a=r(t),o=r(n);return e&&a!=o?(i=r(e),a>i&&(i+=F),a>o&&(o+=F),i>=a&&o>=i):!0}function o(e){var t=e.parseFormats;e.format=c(e.format||l.getCulture(e.culture).calendars.standard.patterns.t),t=z(t)?t:[t],t.splice(0,0,e.format),e.parseFormats=t}function s(e){e.preventDefault()}var l=window.kendo,d=l.keys,c=l._extractFormat,u=l.ui,p=u.Widget,f="open",h="close",m="change",g=".kendoTimePicker",v="touchend"+g+" click"+g,_="k-state-default",k="disabled",b="li",w="<span/>",y="k-state-focused",x="k-state-hover",C="mouseenter"+g+" mouseleave"+g,T="mousedown"+g,S=6e4,F=864e5,D="k-state-selected",E="k-state-disabled",A="aria-selected",N="aria-expanded",I="aria-hidden",R="aria-activedescendant",H="id",z=e.isArray,O=e.extend,M=e.proxy,P=Date,B=new P;B=new P(B.getFullYear(),B.getMonth(),B.getDate(),0,0,0);var L=function(t){var n=this,i=t.id;n.options=t,n.ul=e('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:l.support.kineticScrollNeeded?"":"auto"}).on(v,b,M(n._click,n)).on("mouseenter"+g,b,function(){e(this).addClass(x)}).on("mouseleave"+g,b,function(){e(this).removeClass(x)}),n.list=e("<div class='k-list-container'/>").append(n.ul).on(T,s),i&&(n._timeViewID=i+"_timeview",n._optionID=i+"_option_selected",n.ul.attr(H,n._timeViewID)),n._popup(),n.template=l.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};L.prototype={current:function(n){var i=this,r=i.options.active;return n===t?i._current:(i._current&&i._current.removeClass(D).removeAttr(A).removeAttr(H),n&&(n=e(n).addClass(D).attr(H,i._optionID).attr(A,!0),i.scroll(n[0])),i._current=n,r&&r(n),t)},close:function(){this.popup.close()},destroy:function(){var e=this;e.ul.off(g),e.list.off(g),e.popup.destroy()},open:function(){var e=this;e.ul[0].firstChild||e.bind(),e.popup.open(),e._current&&e.scroll(e._current[0])},dataBind:function(e){for(var t,n=this,i=n.options,r=i.format,o=l.toString,s=n.template,d=e.length,c=0,u="";d>c;c++)t=e[c],a(t,i.min,i.max)&&(u+=s(o(t,r,i.culture)));n._html(u,d)},refresh:function(){var e,t=this,a=t.options,o=a.format,s=i(),d=0>s,c=a.min,u=a.max,p=r(c),f=r(u),h=a.interval*S,m=l.toString,g=t.template,v=new P(+c),_=0,k="";for(e=d?(F+s*S)/h:F/h,p!=f&&(p>f&&(f+=F),e=(f-p)/h+1);e>_;_++)_&&n(v,h,d),f&&r(v)>f&&(v=new P(+u)),k+=g(m(v,o,a.culture));t._html(k,e)},bind:function(){var e=this,t=e.options.dates;t&&t[0]?e.dataBind(t):e.refresh()},_html:function(e,t){var n=this;n.ul[0].innerHTML=e,n._height(t),n.current(null),n.select(n._value)},scroll:function(e){if(e){var t=this.ul[0],n=e.offsetTop,i=e.offsetHeight,r=t.scrollTop,a=t.clientHeight,o=n+i;t.scrollTop=r>n?n:o>r+a?o-a:r}},select:function(t){var n=this,i=n.options,r=n._current;t instanceof Date&&(t=l.toString(t,i.format,i.culture)),"string"==typeof t&&(r&&r.text()===t?t=r:(t=e.grep(n.ul[0].childNodes,function(e){return(e.textContent||e.innerText)==t}),t=t[0]?t:null)),n.current(t)},toggle:function(){var e=this;e.popup.visible()?e.close():e.open()},value:function(e){var t=this;t._value=e,t.ul[0].firstChild&&t.select(e)},_click:function(t){var n=this,i=e(t.currentTarget);t.isDefaultPrevented()||(n.select(i),n.options.change(i.text(),!0),n.close())},_height:function(e){if(e){var t=this,n=t.list,i=n.parent(".k-animation-container"),r=t.options.height;n.add(i).show().height(t.ul[0].scrollHeight>r?r:"auto").hide()}},_parse:function(e){var t=this,n=t.options,i=t._value||B;return e instanceof P?e:(e=l.parseDate(e,n.parseFormats,n.culture),e&&(e=new P(i.getFullYear(),i.getMonth(),i.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),e)},_popup:function(){var e,t=this,n=t.list,i=t.options,r=i.anchor;t.popup=new u.Popup(n,O(i.popup,{anchor:r,open:i.open,close:i.close,animation:i.animation,isRtl:l.support.isRtl(i.anchor)})),e=r.outerWidth()-(n.outerWidth()-n.width()),n.css({fontFamily:r.css("font-family"),width:e}),l.touchScroller(t.popup.element)},move:function(e){var n=this,i=e.keyCode,r=n.ul[0],a=n._current,o=i===d.DOWN;if(i===d.UP||o){if(e.altKey)return n.toggle(o),t;a=o?a?a[0].nextSibling:r.firstChild:a?a[0].previousSibling:r.lastChild,a&&n.select(a),n.options.change(n._current.text()),e.preventDefault()}else(i===d.ENTER||i===d.TAB||i===d.ESC)&&(e.preventDefault(),a&&n.options.change(a.text(),!0),n.close())}},L.getMilliseconds=r,l.TimeView=L;var U=p.extend({init:function(e,t){var n,i,r=this;p.fn.init.call(r,e,t),e=r.element,t=r.options,o(t),r._wrapper(),r.timeView=i=new L(O({},t,{id:e.attr(H),anchor:r.wrapper,format:t.format,change:function(t,n){n?r._change(t):e.val(t)},open:function(t){r.trigger(f)?t.preventDefault():(e.attr(N,!0),n.attr(I,!1))},close:function(t){r.trigger(h)?t.preventDefault():(e.attr(N,!1),n.attr(I,!0))},active:function(t){e.removeAttr(R),t&&e.attr(R,i._optionID)}})),n=i.ul,r._icon(),r._reset(),e[0].type="text",e.addClass("k-input").on("keydown"+g,M(r._keydown,r)).on("blur"+g,M(r._blur,r)).on("focus"+g,function(){r._inputWrapper.addClass(y)}).attr({role:"textbox","aria-haspopup":!0,"aria-expanded":!1,"aria-owns":i._timeViewID}),r.enable(!e.is("[disabled]")),r.value(t.value||e.val()),l.notify(r)},options:{name:"TimePicker",min:B,max:B,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[f,h,m],setOptions:function(e){var t=this,n=t.timeView,i=n.options;p.fn.setOptions.call(t,e),o(t.options),n.options=O(i,t.options,{active:i.active,change:i.change,close:i.close,open:i.open}),n.ul[0].innerHTML=""},dataBind:function(e){z(e)&&this.timeView.dataBind(e)},enable:function(e){var t=this,n=t.element,i=t._arrow.off(g),r=t._inputWrapper.off(C);e===!1?(r.removeClass(_).addClass(E),n.attr(k,k)):(r.removeClass(E).addClass(_).on(C,t._toggleHover),n.removeAttr(k),i.on(v,M(t._click,t)).on(T,s))},destroy:function(){var e=this;p.fn.destroy.call(e),e.timeView.destroy(),e.element.off(g),e._arrow.off(g),e._inputWrapper.off(g),e._form&&e._form.off("reset",e._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),t)},_blur:function(){var e=this;e.close(),e._change(e.element.val()),e._inputWrapper.removeClass(y)},_click:function(e){var t=this,n=t.element;t.timeView.toggle(),"click"===e.type&&n[0]!==document.activeElement&&n.focus()},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t.trigger(m),t.element.trigger(m))},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),n._arrow=t.attr({role:"button","aria-controls":n.timeView._timeViewID})},_keydown:function(e){var t=this,n=e.keyCode,i=t.timeView;i.popup.visible()||e.altKey?i.move(e):n===d.ENTER&&t._change(t.element.val())},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=i.timeView._parse(n),n&&(n=new P(+n),r[e]=n,i.timeView.options[e]=n,i.timeView.bind()),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(x,"mouseenter"===t.type)},_update:function(e){var t=this,n=t.options,i=t.timeView,r=i._parse(e);return a(r,n.min,n.max)||(r=null),t._value=r,t.element.val(r?l.toString(r,n.format,n.culture):e),i.value(r),r},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-timepicker"),t[0]||(t=i.wrap(w).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(w).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-timepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var e=this,t=e.element,n=t.closest("form");n[0]&&(e._resetHandler=function(){e.value(t[0].defaultValue)},e._form=n.on("reset",e._resetHandler))}});u.plugin(U)}(window.kendo.jQuery),function(e,t){function n(e){e.preventDefault()}function i(e){var t=r.getCulture(e.culture).calendars.standard.patterns;e.format=s(e.format||t.g),e.timeFormat=s(e.timeFormat||t.t),r.DateView.normalize(e),e.parseFormats.splice(1,0,e.timeFormat)}var r=window.kendo,a=r.TimeView,o=r.parseDate,s=r._extractFormat,l=r.calendar,d=l.isInRange,c=l.restrictValue,u=l.isEqualDatePart,p=a.getMilliseconds,f=r.ui,h=f.Widget,m="open",g="close",v="change",_=".kendoDateTimePicker",k="touchend"+_+" click"+_,b="disabled",w="k-state-default",y="k-state-focused",x="k-state-hover",C="k-state-disabled",T="mouseenter"+_+" mouseleave"+_,S="touchstart"+_+" mousedown"+_,F="month",D="<span/>",E="aria-activedescendant",A="aria-expanded",N="aria-hidden",I="aria-owns",R=Date,H=new R(1900,0,1),z=new R(2099,11,31),O={view:"date"},M={view:"time"},P=e.extend,B=h.extend({init:function(t,n){var a=this;h.fn.init.call(a,t,n),t=a.element,n=a.options,i(n),a._wrapper(),a._views(),a._icons(),a._reset(),a._template(),t[0].type="text",t.addClass("k-input").on("keydown"+_,e.proxy(a._keydown,a)).on("focus"+_,function(){a._inputWrapper.addClass(y)}).on("blur"+_,function(){a._inputWrapper.removeClass(y),a._change(t.val()),a.close("date"),a.close("time")}).attr({role:"textbox","aria-haspopup":!0,"aria-expanded":!1}),a._midnight=0===p(n.min)+p(n.max),a.enable(!t.is("[disabled]")),a.value(n.value||t.val()),r.notify(a)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],min:new R(H),max:new R(z),interval:30,height:200,footer:"",start:F,depth:F,animation:{},month:{},ARIATemplate:'Current focused date is #=kendo.toString(data.current, "G")#'},events:[m,g,v],setOptions:function(e){var t=this,n=t.dateView.options,r=t.timeView.options;h.fn.setOptions.call(t,e),i(t.options),e=t.options,P(n,e,{change:n.change,close:n.close,open:n.open}),P(r,e,{format:e.timeFormat,active:r.active,change:r.change,close:r.close,open:r.open}),t.timeView.ul[0].innerHTML=""},enable:function(e){var t=this,i=t.element,r=t._dateIcon.off(_),a=t._timeIcon.off(_),o=t._inputWrapper.off(T);e===!1?(o.removeClass(w).addClass(C),i.attr(b,b)):(o.addClass(w).removeClass(C).on(T,t._toggleHover),i.removeAttr(b),r.on(S,n).on(k,function(e){t.toggle("date"),"click"===e.type&&i[0]!==document.activeElement&&i.focus()}),a.on(S,n).on(k,function(e){t.toggle("time"),"click"===e.type&&i[0]!==document.activeElement&&i.focus()}))},destroy:function(){var e=this;h.fn.destroy.call(e),e.dateView.destroy(),e.timeView.destroy(),e.element.off(_),e._dateIcon.off(_),e._timeIcon.off(_),e._inputWrapper.off(_),e._form&&e._form.off("reset",e._resetHandler)},close:function(e){"time"!==e&&(e="date"),this[e+"View"].close()},open:function(e){"time"!==e&&(e="date"),this[e+"View"].open()},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},toggle:function(e){var t="timeView";"time"!==e?e="date":t="dateView",this[e+"View"].toggle(),this[t].close()},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),t)},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t.trigger(v),t.element.trigger(v))},_option:function(e,n){var i=this,r=i.options,a=i.timeView,s=a.options,l=i._value||i._old;if(n===t)return r[e];if(n=o(n,r.parseFormats,r.culture)){if(r[e]=new R(+n),i.dateView[e](n),i._midnight=0===p(r.min)+p(r.max),l&&u(n,l)){if(i._midnight&&"max"==e)return s[e]=z,a.dataBind([z]),t;s[e]=n}else s.max=z,s.min=H;a.bind()}},_toggleHover:function(t){e(t.currentTarget).toggleClass(x,"mouseenter"===t.type)},_update:function(t){var n,i,a,s,l,p=this,f=p.options,h=f.min,m=f.max,g=f.dates,v=p.timeView,_=o(t,f.parseFormats,f.culture);return+_===+p._value?(l=r.toString(_,f.format,f.culture),l!==t&&p.element.val(null===_?t:l),_):(null!==_&&u(_,h)?_=c(_,h,m):d(_,h,m)||(_=null),p._value=_,v.value(_),p.dateView.value(_),_&&(a=p._old,i=v.options,g[0]&&(g=e.grep(g,function(e){return u(_,e)}),g[0]&&(v.dataBind(g),s=!0)),s||(u(_,h)&&(i.min=h,i.max=z,n=!0),u(_,m)&&(p._midnight?(v.dataBind([z]),s=!0):(i.max=m,n||(i.min=H),n=!0))),!s&&(!a&&n||a&&!u(a,_))&&(n||(i.max=z,i.min=H),v.bind())),p.element.val(_?r.toString(_,f.format,f.culture):t),p._updateARIA(_),_)},_keydown:function(e){var t=this,n=t.dateView,i=t.timeView,a=n.popup.visible();e.altKey&&e.keyCode===r.keys.DOWN?t.toggle(a?"time":"date"):a?(n.move(e),t._updateARIA(n._current)):i.popup.visible()?i.move(e):e.keyCode===r.keys.ENTER&&t._change(t.element.val())},_views:function(){var e,t,n,i,s,l=this,c=l.element,u=l.options,p=c.attr("id");l.dateView=e=new r.DateView(P({},u,{id:p,anchor:l.wrapper,change:function(){var t,n=e.calendar.value(),i=+n,r=+u.min,a=+u.max;(i===r||i===a)&&(t=new R(+l._value),t.setFullYear(n.getFullYear()),t.setMonth(n.getMonth()),t.setDate(n.getDate()),d(t,r,a)&&(n=t)),l._change(n),l.close("date")},close:function(e){l.trigger(g,O)?e.preventDefault():(c.attr(A,!1),n.attr(N,!0),t.popup.visible()||c.removeAttr(I))},open:function(t){l.trigger(m,O)?t.preventDefault():(s=o(c.val(),u.parseFormats,u.culture),s?(l.dateView._current=s,l.dateView.calendar._focus(s)):l.dateView.value(s),n.attr(N,!1),c.attr(A,!0).attr(I,e._dateViewID))}})),n=e.div,l.timeView=t=new a({id:p,value:u.value,anchor:l.wrapper,animation:u.animation,format:u.timeFormat,culture:u.culture,height:u.height,interval:u.interval,min:new R(H),max:new R(z),parseFormats:u.parseFormats,change:function(n,i){n=t._parse(n),u.min>n?(n=new R(+u.min),t.options.min=n):n>u.max&&(n=new R(+u.max),t.options.max=n),i?(l._timeSelected=!0,l._change(n)):(c.val(r.toString(n,u.format,u.culture)),e.value(n),l._updateARIA(n))},close:function(t){l.trigger(g,M)?t.preventDefault():(i.attr(N,!0),c.attr(A,!1),e.popup.visible()||c.removeAttr(I))},open:function(e){l.trigger(m,M)?e.preventDefault():(i.attr(N,!1),c.attr(A,!0).attr(I,t._timeViewID))},active:function(e){c.removeAttr(E),e&&c.attr(E,t._optionID)}}),i=t.ul},_icons:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),t=t.children(),n._dateIcon=t.eq(0).attr({role:"button","aria-controls":n.dateView._dateViewID}),n._timeIcon=t.eq(1).attr({role:"button","aria-controls":n.timeView._timeViewID})},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datetimepicker"),t[0]||(t=i.wrap(D).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(D).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datetimepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var e=this,t=e.element,n=t.closest("form");n[0]&&(e._resetHandler=function(){e.value(t[0].defaultValue)},e._form=n.on("reset",e._resetHandler))},_template:function(){this._ariaTemplate=r.template(this.options.ARIATemplate)},_updateARIA:function(e){this.element.attr("aria-label",this._ariaTemplate({current:e}))}});f.plugin(B)}(window.kendo.jQuery),function(e,t){function n(e){return function(t){var n=t.children(".k-animation-container");return n.length||(n=t),n.children(e)}}function i(e){return e.children("div").find(":checkbox:first")}function r(t){var n,i,r=t.children("div"),a=t.children("ul"),o=r.children(".k-icon"),s=t.children(":checkbox"),l=r.children(".k-in");if(!t.hasClass("k-treeview")&&(r.length||(r=e("<div />").prependTo(t)),!o.length&&a.length?o=e("<span class='k-icon' />").prependTo(r):a.length&&a.children().length||(o.remove(),a.remove()),s.length&&e("<span class='k-checkbox' />").appendTo(r).append(s),!l.length))for(l=e("<span class='k-in' />").appendTo(r)[0],n=r[0].nextSibling,l=r.find(".k-in")[0];n&&"ul"!=n.nodeName.toLowerCase();)i=n,n=n.nextSibling,3==i.nodeType&&(i.nodeValue=e.trim(i.nodeValue)),l.appendChild(i)}function a(e){var t=this;t.treeview=e,t.hovered=e.element,t._draggable=new u.Draggable(e.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(t){return e.templates.dragClue({text:t.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:_(t.dragstart,t),dragcancel:_(t.dragcancel,t),drag:_(t.drag,t),dragend:_(t.dragend,t)})}var o,s,l,d,c=window.kendo,u=c.ui,p=c.data,f=e.extend,h=c.template,m=e.isArray,g=u.Widget,v=p.HierarchicalDataSource,_=e.proxy,k=c.keys,b=".kendoTreeView",w="select",y="navigate",x="expand",C="change",T="checked",S="collapse",F="dragstart",D="drag",E="drop",A="dragend",N="dataBound",I="click",R="visibility",H="undefined",z="k-state-hover",O="k-treeview",M=":visible",P=".k-item",B="aria-selected",L="aria-disabled",U={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},W=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName};s=n(".k-group"),l=n(".k-group,.k-content"),d=function(e){return e.children("div").children(".k-icon")},o=g.extend({init:function(t,n){var i,r=this,o=!1;m(n)&&(i=!0,n={dataSource:n}),n&&typeof n.loadOnDemand==H&&m(n.dataSource)&&(n.loadOnDemand=!1),g.prototype.init.call(r,t,n),t=r.element,n=r.options,o=t.is("ul")||t.hasClass(O),o&&(n.dataSource.list=t.is("ul")?t:t.children("ul")),r._animation(),r._accessors(),r._templates(),t.hasClass(O)?(r.wrapper=t,r.root=t.children("ul").eq(0)):(r._wrapper(),o&&(r.root=t,r._group(r.wrapper))),r._tabindex(),r.wrapper.filter("[role=tree]").length||r.wrapper.attr("role","tree"),r._dataSource(o),r._attachEvents(),n.dragAndDrop&&(r.dragging=new a(r)),o?r._attachUids():n.autoBind&&(r._progress(!0),r.dataSource.fetch()),n.checkboxes&&n.checkboxes.checkChildren&&r.wrapper.find(":checkbox").closest(P).each(function(){r._updateIndeterminate(e(this))}),r.element[0].id&&(r._ariaId=c.format("{0}_tv_active",r.element[0].id))},_attachEvents:function(){var t=this,n=".k-in:not(.k-state-selected,.k-state-disabled)",i="mouseenter";t.wrapper.on(i+b,".k-in.k-state-selected",function(e){e.preventDefault()}).on(i+b,n,function(){e(this).addClass(z)}).on("mouseleave"+b,n,function(){e(this).removeClass(z)}).on(I+b,n,_(t._click,t)).on("dblclick"+b,".k-in:not(.k-state-disabled)",_(t._toggleButtonClick,t)).on(I+b,".k-plus,.k-minus",_(t._toggleButtonClick,t)).on("keydown"+b,_(t._keydown,t)).on("focus"+b,_(t._focus,t)).on("blur"+b,_(t._blur,t)).on("mousedown"+b,".k-in,.k-checkbox :checkbox",_(t._mousedown,t)).on("change"+b,".k-checkbox :checkbox",_(t._checkboxChange,t)).on("click"+b,".k-checkbox :checkbox",_(t._checkboxClick,t)).on("click"+b,function(){t.focus()})},_checkboxClick:function(t){var n=e(t.target);n.data("indeterminate")&&(n.data("indeterminate",!1).prop("indeterminate",!1).prop(T,!0),this._checkboxChange(t))},_attachUids:function(t,n){var i,r=this,a=c.attr("uid");t=t||r.root,n=n||r.dataSource,i=n.view(),t.children("li").each(function(t,n){n=e(n).attr(a,i[t].uid),n.attr("role","treeitem"),r._attachUids(n.children("ul"),i[t].children)})},_animation:function(){var e=this.options,t=e.animation;t===!1?t={expand:{effects:{}},collapse:{hide:!0,effects:{}}}:t.collapse&&"effects"in t.collapse||(t.collapse=f({reverse:!0},t.expand)),f(t.collapse,{hide:!0}),e.animation=t},_templates:function(){var e=this,t=e.options,n=_(e._fieldAccessor,e);t.template&&"string"==typeof t.template?t.template=h(t.template):t.template||(t.template=h("# var text = "+n("text")+"(item); #"+"# if (typeof item.encoded != 'undefined' && item.encoded === false) {#"+"#= text #"+"# } else { #"+"#: text #"+"# } #")),e._checkboxes(),e.templates={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),n},cssClass:function(e,t){var n="",i=t.index,r=e.length-1;return e.firstLevel&&0===i&&(n+="k-top "),n+=0===i&&i!=r?"k-top":i==r?"k-bot":"k-mid"},textClass:function(e){var t="k-in";return e.enabled===!1&&(t+=" k-state-disabled"),e.selected===!0&&(t+=" k-state-selected"),t},toggleButtonClass:function(e){var t="k-icon";return t+=e.expanded!==!0?" k-plus":" k-minus",e.enabled===!1&&(t+="-disabled"),t},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(e){var t="k-group";return e.firstLevel&&(t+=" k-treeview-lines"),t},dragClue:h("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:h("<ul class='#= r.groupCssClass(group) #'#= r.groupAttributes(group) # role='group'>#= renderItems(data) #</ul>"),itemContent:h("# var imageUrl = "+n("imageUrl")+"(item); #"+"# var spriteCssClass = "+n("spriteCssClass")+"(item); #"+"# if (imageUrl) { #"+"<img class='k-image' alt='' src='#= imageUrl #'>"+"# } #"+"# if (spriteCssClass) { #"+"<span class='k-sprite #= spriteCssClass #'></span>"+"# } #"+"#= treeview.template(data) #"),itemElement:h("# var url = "+n("url")+"(item); #"+"<div class='#= r.cssClass(group, item) #'>"+"# if (item.hasChildren) { #"+"<span class='#= r.toggleButtonClass(item) #' role='presentation'></span>"+"# } #"+"# if (treeview.checkboxes) { #"+"<span class='k-checkbox' role='presentation'>"+"#= treeview.checkboxes.template(data) #"+"</span>"+"# } #"+"# var tag = url ? 'a' : 'span'; #"+"# var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #"+"<#=tag# class='#= r.textClass(item) #'#= textAttr #>"+"#= r.itemContent(data) #"+"</#=tag#>"+"</div>"),item:h("<li role='treeitem' class='#= r.wrapperCssClass(group, item) #' "+c.attr("uid")+"='#= item.uid #'"+"#=item.selected ? \"aria-selected='true'\" : ''#"+"#=item.enabled === false ? \"aria-disabled='true'\" : ''#"+">"+"#= r.itemElement(data) #"+"</li>"),loading:h("<div class='k-icon k-loading' /> Loading...")}},items:function(){return this.element.find(".k-item")},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.dataSource.fetch()},_dataSource:function(e){function t(e){for(var n=0;e.length>n;n++)e[n]._initChildren(),e[n].children.fetch(),t(e[n].children.view())}var n=this,i=n.options,r=i.dataSource;r=m(r)?{data:r}:r,n.dataSource&&n._refreshHandler?n.dataSource.unbind(C,n._refreshHandler):n._refreshHandler=_(n.refresh,n),r.fields||(r.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),n.dataSource=v.create(r),e&&(n.dataSource.fetch(),t(n.dataSource.view())),n.dataSource.bind(C,n._refreshHandler)},events:[F,D,E,A,N,x,S,w,y],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:100}},dragAndDrop:!1,checkboxes:!1,autoBind:!0,loadOnDemand:!0,template:""},_accessors:function(){var e,t,n,i=this,r=i.options,a=i.element;for(e in U)t=r[U[e]],n=a.attr(c.attr(e+"-field")),n&&(t=n),t||(t=e),m(t)||(t=[t]),r[U[e]]=t},_fieldAccessor:function(t){var n=this.options[U[t]],i=n.length,r="(function(item) {";return 0===i?r+="return item['"+t+"'];":(r+="var level = item.level();var levels = ["+e.map(n,function(e){return"function(d){ return "+c.expr(e)+"}"}).join(",")+"];",r+="return levels[Math.min(level, "+i+"-1)](item)"),r+="})"},setOptions:function(e){var t=this;"dragAndDrop"in e&&e.dragAndDrop&&!t.options.dragAndDrop&&(t.dragging=new a(t)),g.fn.setOptions.call(t,e),t._animation(),t._templates()},_trigger:function(e,t){return this.trigger(e,{node:t.closest(P)[0]})},_updateIndeterminate:function(e){var t,n,r=e.parent().closest(P),a=!0;if(r.length){for(t=i(e.siblings().andSelf()),n=1;t.length>n;n++)if(t[n].checked!=t[n-1].checked||t[n].indeterminate||t[n-1].indeterminate){a=!1;break}i(r).data("indeterminate",!a).prop("indeterminate",!a).prop(T,a&&t[0].checked),this._updateIndeterminate(r)}},_checkboxChange:function(t){var n=e(t.target),i=n.prop(T),r=n.closest(P),a=this;a.options.checkboxes.checkChildren?(r.find(":checkbox").each(function(){a.dataItem(this).set(T,i)}),a._updateIndeterminate(r)):a.dataItem(r).set(T,i)},_toggleButtonClick:function(t){this.toggle(e(t.target).closest(P))},_mousedown:function(t){this._clickTarget=e(t.currentTarget).closest(P)},_focusable:function(e){return e&&e.length&&e.is(":visible")&&!e.find(".k-in:first").hasClass("k-state-disabled")},_focus:function(){var t=this.select();this._focusable(t)||(t=this._clickTarget),this._focusable(t)||(t=this.current()),this._focusable(t)||(t=this._nextVisible(e())),this.current(t)},focus:function(){this.wrapper.focus()},_blur:function(){this.current().find(".k-in:first").removeClass("k-state-focused")},_enabled:function(e){return!e.children("div").children(".k-in").hasClass("k-state-disabled")},parent:function(t){return e(t).parent().closest(P)},_nextVisible:function(e){var t,n=this,i=n._expanded(e);if(e.length&&e.is(":visible"))if(i)t=s(e).children().first();else{for(;e.length&&!e.next().length;)e=n.parent(e);t=e.next().length?e.next():e}else t=n.root.children().eq(0);return n._enabled(t)||(t=n._nextVisible(t)),t},_previousVisible:function(e){var t,n=this;if(!e.length||e.prev().length)for(t=e.length?e.prev():n.root.children().last();n._expanded(t);)t=s(t).children().last();else t=n.parent(e)||e;return n._enabled(t)||(t=n._previousVisible(t)),t},_keydown:function(n){var i,r=this,a=n.keyCode,o=r.current(),s=r._expanded(o),l=o.find(":checkbox:first"),d=c.support.isRtl(r.element);n.target==n.currentTarget&&(!d&&a==k.RIGHT||d&&a==k.LEFT?s?i=r._nextVisible(o):r.expand(o):!d&&a==k.LEFT||d&&a==k.RIGHT?s?r.collapse(o):(i=r.parent(o),r._enabled(i)||(i=t)):a==k.DOWN?i=r._nextVisible(o):a==k.UP?i=r._previousVisible(o):a==k.HOME?i=r._nextVisible(e()):a==k.END?i=r._previousVisible(e()):a==k.ENTER?o.find(".k-in:first").hasClass("k-state-selected")||r._trigger(w,o)||r.select(o):a==k.SPACEBAR&&l.length&&(l.prop(T,!l.prop(T)).data("indeterminate",!1).prop("indeterminate",!1),r._checkboxChange({target:l}),i=o),i&&(n.preventDefault(),o[0]!=i[0]&&(r._trigger(y,i),r.current(i))))
|
25
|
+
},_click:function(t){var n,i=this,r=e(t.target),a=l(r.closest(P)),o=r.attr("href");n=o?"#"==o||o.indexOf("#"+this.element.id+"-")>=0:a.length&&!a.children().length,n&&t.preventDefault(),r.hasClass(".k-state-selected")||i._trigger(w,r)||i.select(r)},_wrapper:function(){var e,t,n=this,i=n.element,r="k-widget k-treeview";i.is("div")?(e=i,t=e.children("ul").eq(0)):(e=i.wrap("<div />").parent(),t=i),n.wrapper=e.addClass(r),n.root=t},_group:function(e){var t=this,n=e.hasClass(O),i={firstLevel:n,expanded:n||t._expanded(e)},r=e.children("ul");r.addClass(t.templates.groupCssClass(i)).css("display",i.expanded?"":"none"),t._nodes(r,i)},_nodes:function(t,n){var i,a=this,o=t.children("li");n=f({length:o.length},n),o.each(function(t,o){o=e(o),i={index:t,expanded:a._expanded(o)},r(o),a._updateNodeClasses(o,n,i),a._group(o)})},_checkboxes:function(){var e,t=this.options,n=t.checkboxes;(n||t.checkboxTemplate)&&(t.checkboxTemplate?e=t.checkboxTemplate:(e="<input type='checkbox' #= item.checked ? 'checked' : '' #",n.name&&(e+=" name='"+n.name+"'"),e+=" />"),n=f({template:e},t.checkboxes),"string"==typeof n.template&&(n.template=h(n.template)),t.checkboxes=n)},_updateNodeClasses:function(e,t,n){var i=e.children("div"),r=e.children("ul"),a=this.templates;e.hasClass("k-treeview")||(n=n||{},n.expanded=typeof n.expanded!=H?n.expanded:this._expanded(e),n.index=typeof n.index!=H?n.index:e.index(),n.enabled=typeof n.enabled!=H?n.enabled:!i.children(".k-in").hasClass("k-state-disabled"),t=t||{},t.firstLevel=typeof t.firstLevel!=H?t.firstLevel:e.parent().parent().hasClass(O),t.length=typeof t.length!=H?t.length:e.parent().children().length,e.removeClass("k-first k-last").addClass(a.wrapperCssClass(t,n)),i.removeClass("k-top k-mid k-bot").addClass(a.cssClass(t,n)),i.children(".k-in").removeClass("k-in k-state-default k-state-disabled").addClass(a.textClass(n)),(r.length||"true"==e.attr("data-hasChildren"))&&(i.children(".k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(a.toggleButtonClass(n)),r.addClass("k-group")))},_processNodes:function(t,n){var i=this;i.element.find(t).each(function(t,r){n.call(i,t,e(r).closest(P))})},dataItem:function(t){var n=e(t).closest(P).attr(c.attr("uid")),i=this.dataSource;return i&&i.getByUid(n)},_insertNode:function(t,n,i,a,o){var l,d,c,u,p=this,f=s(i),h=f.children().length+1,m={firstLevel:i.hasClass(O),expanded:!o,length:h},g="",v=function(e,t){e.appendTo(t)};for(c=0;t.length>c;c++)u=t[c],u.index=n+c,g+=p._renderItem({group:m,item:u});if(d=e(g),d.length){for(f.length||(f=e(p._renderGroup({group:m})).appendTo(i)),a(d,f),i.hasClass("k-item")&&(r(i),p._updateNodeClasses(i)),p._updateNodeClasses(d.prev().first()),p._updateNodeClasses(d.next().last()),c=0;t.length>c;c++)u=t[c],u.hasChildren&&(l=u.children.data(),l.length&&p._insertNode(l,u.index,d.eq(c),v,!p._expanded(d.eq(c))));return d}},_updateNode:function(t,n){var i,r,a,o=this,s={treeview:o.options,item:a};if("selected"==t)a=n[0],r=o.findByUid(a.uid).find(".k-in:first").removeClass("k-state-hover").toggleClass("k-state-selected",a[t]).end(),a[t]?(o.current(r),r.attr(B,!0)):r.attr(B,!1);else for(i=0;n.length>i;i++)s.item=a=n[i],"spriteCssClass"==t||"imageUrl"==t||e.inArray(t,o.options.dataTextField)>=0?o.findByUid(a.uid).find(">div>.k-in").html(o.templates.itemContent(s)):t==T?(r=o.findByUid(a.uid),r.children("div").find(":checkbox").prop(T,a[t]).data("indeterminate",!1).prop("indeterminate",!1)):"expanded"==t&&o._toggle(o.findByUid(a.uid),a,a[t])},refresh:function(e){function n(e,t){var n=s(t),i=n.children(),a=!r._expanded(t);typeof c==H&&(c=i.length),r._insertNode(e,c,t,function(e,t){c==i.length?e.appendTo(t):e.insertBefore(i.eq(c))},a),r._expanded(t)&&(r._updateNodeClasses(t),s(t).css("display","block"))}var i,r=this,a=r.wrapper,o=e.node,l=e.action,d=e.items,c=e.index,u=r.options.loadOnDemand;if(e.field)return r._updateNode(e.field,d);for(o&&(a=r.findByUid(o.uid),r._progress(a,!1)),"add"==l?n(d,a):"remove"==l?r._remove(r.findByUid(d[0].uid),!1):o?(s(a).empty(),n(d,a)):r.root=r.wrapper.html(r._renderGroup({items:d,group:{firstLevel:!0,expanded:!0}})).children("ul"),i=0;d.length>i;i++)(!u||d[i].expanded)&&d[i].load();r.trigger(N,{node:o?a:t})},expand:function(e){this._processNodes(e,function(e,t){this.toggle(t,!0)})},collapse:function(e){this._processNodes(e,function(e,t){this.toggle(t,!1)})},enable:function(e,t){t=2==arguments.length?!!t:!0,this._processNodes(e,function(e,n){var i=!l(n).is(M);n.removeAttr(L),t||(this.collapse(n),i=!0,n.find(".k-in:first").removeClass("k-state-selected"),n.removeAttr(B),n.attr(L,!0)),this._updateNodeClasses(n,{},{enabled:t,expanded:!i})})},current:function(n){var i=this,r=i._current,a=i.element,o=i._ariaId;return arguments.length>0&&n&&n.length?(r&&r.removeAttr("id").find(".k-in:first").removeClass("k-state-focused"),r=i._current=e(n,a).closest(P),r.find(".k-in:first").addClass("k-state-focused"),o&&(i.wrapper.removeAttr("aria-activedescendant"),r.attr("id",o),i.wrapper.attr("aria-activedescendant",o)),t):(r||(r=i._nextVisible(e())),r)},select:function(n){var i=this,r=i.element;return arguments.length?(n=e(n,r).closest(P),n.length&&(r.find(".k-state-selected").each(function(){var e=i.dataItem(this);e.set("selected",!1),delete e.selected}),i.dataItem(n).set("selected",!0)),t):r.find(".k-state-selected").closest(P)},_toggle:function(e,t,n){var i,r=this,a=r.options,o=l(e),s=n?"expand":"collapse",d=a.animation[s];if(!o.data("animating")&&!r._trigger(s,e))if(r._expanded(e,n),i=t&&t.loaded(),i&&o.children().length>0){if(r._updateNodeClasses(e,{},{expanded:n}),o.is(":visible")==n)return;n||o.css("height",o.height()).css("height"),o.kendoStop(!0,!0).kendoAnimate(f({reset:!0},d,{complete:function(){n&&o.css("height","")}}))}else t&&(a.loadOnDemand&&r._progress(e,!0),o.remove(),t.load())},toggle:function(t,n){t=e(t),d(t).is(".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled")&&(1==arguments.length&&(n=!this._expanded(t)),this._expanded(t,n))},destroy:function(){var e=this;g.fn.destroy.call(e),e.element.off(b),e.dragging&&e.dragging.destroy(),c.destroy(e.element)},_expanded:function(e,n){var i=c.attr("expanded"),r=this.dataItem(e);return 1==arguments.length?"true"===e.attr(i)||r&&r.expanded:(l(e).data("animating")||(r&&r.set("expanded",n),n?(e.attr(i,"true"),e.attr("aria-expanded","true")):(e.removeAttr(i),e.attr("aria-expanded","false"))),t)},_progress:function(e,t){var n=this.element;1==arguments.length?(t=e,t?n.html(this.templates.loading):n.empty()):d(e).toggleClass("k-loading",t)},text:function(e,n){var i=this.dataItem(e),r=this.options[U.text],a=i.level(),o=r.length,s=r[Math.min(a,o-1)];return n?(i.set(s,n),t):i[s]},_objectOrSelf:function(t){return e(t).closest("[data-role=treeview]").data("kendoTreeView")||this},_dataSourceMove:function(t,n,i,r){var a,o,s,l,d=this,u=d._objectOrSelf(t),f=d._objectOrSelf(i||n),h=f.dataSource;if(i&&(s=f.dataItem(i),s.loaded()||(f._progress(i,!0),s.load()),i!=d.root&&(h=s.children)),t instanceof window.jQuery||W(t))t=e(t),a=u.dataSource,o=a.getByUid(t.attr(c.attr("uid"))),o&&(o=a.remove(o)),o=r(h,o);else if(m(t)||t instanceof p.ObservableArray)for(l=0;t.length>l;l++)o=r(h,t[l]);else o=r(h,t);return o&&d.findByUid(o.uid)},insertAfter:function(e,t){var n,i=t.parent();return i.parent().is("li")&&(n=i.parent()),this._dataSourceMove(e,i,n,function(e,n){return e.insert(t.index()+1,n)})},insertBefore:function(e,t){var n,i=t.parent();return i.parent().is("li")&&(n=i.parent()),this._dataSourceMove(e,i,n,function(e,n){return e.insert(t.index(),n)})},append:function(e,t){var n=this,i=n.root;return t&&(i=s(t)),n._dataSourceMove(e,i,t,function(e,i){function r(){return t&&n._expanded(t,!0),e.add(i)}return e.data()?r():(e.one(C,r),null)})},_remove:function(t,n){var i,a,o,s=this;return t=e(t,s.element),i=t.parent().parent(),a=t.prev(),o=t.next(),t[n?"detach":"remove"](),i.hasClass("k-item")&&(r(i),s._updateNodeClasses(i)),s._updateNodeClasses(a),s._updateNodeClasses(o),t},remove:function(e){var t=this.dataItem(e);t&&this.dataSource.remove(t)},detach:function(e){return this._remove(e,!0)},findByText:function(t){return e(this.element).find(".k-in").filter(function(n,i){return e(i).text()==t}).closest(P)},findByUid:function(e){return this.element.find(".k-item["+c.attr("uid")+"="+e+"]")},_renderItem:function(e){return e.group||(e.group={}),e.treeview=this.options,e.r=this.templates,this.templates.item(e)},_renderGroup:function(e){var t=this;return e.renderItems=function(e){var n="",i=0,r=e.items,a=r?r.length:0,o=e.group;for(o.length=a;a>i;i++)e.group=o,e.item=r[i],e.item.index=i,n+=t._renderItem(e);return n},e.r=t.templates,t.templates.group(e)}}),a.prototype={_removeTouchHover:function(){var e=this;c.support.touch&&e.hovered&&(e.hovered.find("."+z).removeClass(z),e.hovered=!1)},_hintStatus:function(n){var i=this._draggable.hint.find(".k-drag-status")[0];return n?(i.className="k-icon k-drag-status "+n,t):e.trim(i.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(t){var n=this,i=n.treeview,r=n.sourceNode=t.currentTarget.closest(P);i.trigger(F,{sourceNode:r[0]})&&t.preventDefault(),n.dropHint=e("<div class='k-drop-hint' />").css(R,"hidden").appendTo(i.element)},drag:function(t){var n,i,r,a,o,s,l,d,u,p,f=this,h=f.treeview,m=f.sourceNode,g=f.dropTarget=e(c.eventTarget(t)),v=g.closest(".k-treeview");v.length?e.contains(m[0],g[0])?n="k-denied":(n="k-insert-middle",i=g.closest(".k-top,.k-mid,.k-bot"),i.length?(a=i.outerHeight(),o=i.offset().top,s=g.closest(".k-in"),l=a/(s.length>0?4:2),d=o+l>t.y.location,u=t.y.location>o+a-l,f._removeTouchHover(),p=s.length&&!d&&!u,f.hovered=p?v:!1,f.dropHint.css(R,p?"hidden":"visible"),s.toggleClass(z,p),p?n="k-add":(r=i.position(),r.top+=d?0:a,f.dropHint.css(r)[d?"prependTo":"appendTo"](g.closest(P).children("div:first")),d&&i.hasClass("k-top")&&(n="k-insert-top"),u&&i.hasClass("k-bot")&&(n="k-insert-bottom"))):g[0]!=f.dropHint[0]&&(n="k-denied")):(n="k-denied",f._removeTouchHover()),h.trigger(D,{sourceNode:m[0],dropTarget:g[0],pageY:t.y.location,pageX:t.x.location,statusClass:n.substring(2),setStatusClass:function(e){n=e}}),0!==n.indexOf("k-insert")&&f.dropHint.css(R,"hidden"),f._hintStatus(n)},dragcancel:function(){this.dropHint.remove()},dragend:function(){var e,n,i,r=this,a=r.treeview,o="over",s=r.sourceNode,l=r.dropHint;return"visible"==l.css(R)?(o=l.prevAll(".k-in").length>0?"after":"before",e=l.closest(P)):r.dropTarget&&(e=r.dropTarget.closest(P)),n="k-denied"!=r._hintStatus(),i=a.trigger(E,{sourceNode:s[0],destinationNode:e[0],valid:n,setValid:function(e){n=e},dropTarget:r.dropTarget[0],dropPosition:o}),l.remove(),r._removeTouchHover(),!n||i?(r._draggable.dropped=n,t):(r._draggable.dropped=!0,"over"==o?s=a.append(s,e):"before"==o?s=a.insertBefore(s,e):"after"==o&&(s=a.insertAfter(s,e)),a.trigger(A,{sourceNode:s&&s[0],destinationNode:e[0],dropPosition:o}),t)},destroy:function(){this._draggable.destroy()}},u.plugin(o)}(window.kendo.jQuery),function(e,t){function n(e,t,n){var i=n?" k-slider-horizontal":" k-slider-vertical",r=e.style?e.style:t.attr("style"),a=t.attr("class")?" "+t.attr("class"):"",o="";return"bottomRight"==e.tickPlacement?o=" k-slider-bottomright":"topLeft"==e.tickPlacement&&(o=" k-slider-topleft"),r=r?" style='"+r+"'":"","<div class='k-widget k-slider"+i+a+"'"+r+">"+"<div class='k-slider-wrap"+(e.showButtons?" k-slider-buttons":"")+o+"'></div></div>"}function i(e,t,n){var i="";return i="increase"==t?n?"k-i-arrow-e":"k-i-arrow-n":n?"k-i-arrow-w":"k-i-arrow-s","<a class='k-button k-button-"+t+"'><span class='k-icon "+i+"' title='"+e[t+"ButtonTitle"]+"'>"+e[t+"ButtonTitle"]+"</span></a>"}function r(e,t){var n,i="<ul class='k-reset k-slider-items'>",r=b.floor(d(t/e.smallStep))+1;for(n=0;r>n;n++)i+="<li class='k-tick' role='presentation'> </li>";return i+="</ul>"}function a(e,t){var n=t.is("input")?1:2,i=2==n?e.leftDragHandleTitle:e.dragHandleTitle;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='"+i+"' role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(n>1?e.selectionStart||e.min:e.value||e.min)+"'>Drag</a>"+(n>1?"<a href='#' class='k-draghandle' title='"+e.rightDragHandleTitle+"'role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(e.selectionEnd||e.max)+"'>Drag</a>":"")+"</div>"}function o(e){return function(t){return t+e}}function s(e){return function(){return e}}function l(e){return(e+"").replace(".",p.cultures.current.numberFormat["."])}function d(e){e=parseFloat(e,10);var t=b.pow(10,U||0);return b.round(e*t)/t}function c(e,n){var i=v(e.getAttribute(n));return null===i&&(i=t),i}function u(e){return typeof e!==q}var p=window.kendo,f=p.ui.Widget,h=p.ui.Draggable,m=e.extend,g=p.format,v=p.parseFloat,_=e.proxy,k=e.isArray,b=Math,w=p.support,y=w.pointers,x="change",C="slide",T=".slider",S="touchstart"+T+" mousedown"+T,F=y?"MSPointerDown"+T:"mousedown"+T+" touchstart"+T,D="touchend"+T+" mouseup"+T,E="moveSelection",A="keydown"+T,N="click"+T,I="mouseover"+T,R="focus"+T,H="blur"+T,z=".k-draghandle",O=".k-slider-track",M=".k-tick",P="k-state-selected",B="k-state-default",L="k-state-disabled",U=3,W="disabled",q="undefined",V=f.extend({init:function(e,t){var n=this;f.fn.init.call(n,e,t),t=n.options,n._distance=t.max-t.min,n._isHorizontal="horizontal"==t.orientation,n._isRtl=n._isHorizontal&&p.support.isRtl(e),n._position=n._isHorizontal?"left":"bottom",n._size=n._isHorizontal?"width":"height",n._outerSize=n._isHorizontal?"outerWidth":"outerHeight",t.tooltip.format=t.tooltip.enabled?t.tooltip.format||"{0}":"{0}",n._createHtml(),n.wrapper=n.element.closest(".k-slider"),n._trackDiv=n.wrapper.find(O),n._setTrackDivWidth(),n._maxSelection=n._trackDiv[n._size]();var i=n._maxSelection/((t.max-t.min)/t.smallStep),a=n._calculateItemsWidth(b.floor(n._distance/t.smallStep));"none"!=t.tickPlacement&&i>=2&&(n._trackDiv.before(r(t,n._distance)),n._setItemsWidth(a),n._setItemsTitle(),n._setItemsLargeTick()),n._calculateSteps(a),n._tabindex(n.wrapper.find(z)),n[t.enabled?"enable":"disable"]();var l=p.support.isRtl(n.wrapper)?-1:1;n._keyMap={37:o(-1*l*t.smallStep),40:o(-t.smallStep),39:o(1*l*t.smallStep),38:o(+t.smallStep),35:s(t.max),36:s(t.min),33:o(+t.largeStep),34:o(-t.largeStep)},p.notify(n)},events:[x,C],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var e=this,t=2*parseFloat(e._trackDiv.css(e._isRtl?"right":e._position),10);e._trackDiv[e._size](e.wrapper[e._size]()-2-t)},_setItemsWidth:function(t){var n,i=this,r=i.options,a=0,o=t.length-1,s=i.wrapper.find(M),l=0,d=2,c=s.length,u=0;for(n=0;c-2>n;n++)e(s[n+1])[i._size](t[n]);if(i._isHorizontal?(e(s[a]).addClass("k-first")[i._size](t[o-1]),e(s[o]).addClass("k-last")[i._size](t[o])):(e(s[o]).addClass("k-first")[i._size](t[o]),e(s[a]).addClass("k-last")[i._size](t[o-1])),0!==i._distance%r.smallStep&&!i._isHorizontal){for(n=0;t.length>n;n++)u+=t[n];l=i._maxSelection-u,l+=parseFloat(i._trackDiv.css(i._position),10)+d,i.wrapper.find(".k-slider-items").css("padding-top",l)}},_setItemsTitle:function(){for(var t=this,n=t.options,i=t.wrapper.find(M),r=n.min,a=i.length,o=t._isHorizontal&&!t._isRtl?0:a-1,s=t._isHorizontal&&!t._isRtl?a:-1,l=t._isHorizontal&&!t._isRtl?1:-1;0!==o-s;o+=l)e(i[o]).attr("title",g(n.tooltip.format,d(r))),r+=n.smallStep},_setItemsLargeTick:function(){var t,n=this,i=n.options,r=n.wrapper.find(M),a={},o=d(i.largeStep/i.smallStep);if(0===1e3*i.largeStep%(1e3*i.smallStep))if(n._isHorizontal&&!n._isRtl)for(t=0;r.length>t;t=d(t+o))a=e(r[t]),a.addClass("k-tick-large").html("<span class='k-label'>"+a.attr("title")+"</span>");else for(t=r.length-1;t>=0;t=d(t-o))a=e(r[t]),a.addClass("k-tick-large").html("<span class='k-label'>"+a.attr("title")+"</span>"),n._isRtl||0!==t&&t!==r.length-1&&a.css("line-height",a[n._size]()+"px")},_calculateItemsWidth:function(e){var t,n,i,r=this,a=r.options,o=parseFloat(r._trackDiv.css(r._size))+1,s=o/r._distance;for(r._distance/a.smallStep-b.floor(r._distance/a.smallStep)>0&&(o-=r._distance%a.smallStep*s),t=o/e,n=[],i=0;e-1>i;i++)n[i]=t;return n[e-1]=n[e]=t/2,r._roundWidths(n)},_roundWidths:function(e){var t,n=0,i=e.length;for(t=0;i>t;t++)n+=e[t]-b.floor(e[t]),e[t]=b.floor(e[t]);return n=b.round(n),this._addAdditionalSize(n,e)},_addAdditionalSize:function(e,t){if(0===e)return t;var n,i=parseFloat(t.length-1)/parseFloat(1==e?e:e-1);for(n=0;e>n;n++)t[parseInt(b.round(i*n),10)]+=1;return t},_calculateSteps:function(e){var t,n=this,i=n.options,r=i.min,a=0,o=b.ceil(n._distance/i.smallStep),s=1;if(o+=0===n._distance/i.smallStep%1?1:0,e.splice(0,0,2*e[o-2]),e.splice(o-1,1,2*e.pop()),n._pixelSteps=[a],n._values=[r],0!==o){for(;o>s;)a+=(e[s-1]+e[s])/2,n._pixelSteps[s]=a,n._values[s]=r+=i.smallStep,s++;t=0===n._distance%i.smallStep?o-1:o,n._pixelSteps[t]=n._maxSelection,n._values[t]=i.max,n._isRtl&&(n._pixelSteps.reverse(),n._values.reverse())}},_getValueFromPosition:function(e,t){var n,i=this,r=i.options,a=b.max(r.smallStep*(i._maxSelection/i._distance),0),o=0,s=a/2;if(i._isHorizontal?(o=e-t.startPoint,i._isRtl&&(o=i._maxSelection-o)):o=t.startPoint-e,o>i._maxSelection-(parseInt(i._maxSelection%a,10)-3)/2)return r.max;for(n=0;i._pixelSteps.length>n;n++)if(s>=b.abs(i._pixelSteps[n]-o)-1)return d(i._values[n])},_getFormattedValue:function(e,t){var n,i,r,a=this,o="",s=a.options.tooltip;return k(e)?(i=e[0],r=e[1]):t&&t.type&&(i=t.selectionStart,r=t.selectionEnd),t&&(n=t.tooltipTemplate),!n&&s.template&&(n=p.template(s.template)),k(e)||t&&t.type?n?o=n({selectionStart:i,selectionEnd:r}):(i=g(s.format,i),r=g(s.format,r),o=i+" - "+r):(t&&(t.val=e),o=n?n({value:e}):g(s.format,e)),o},_getDragableArea:function(){var e=this,t=e._trackDiv.offset().left,n=e._trackDiv.offset().top;return{startPoint:e._isHorizontal?t:n+e._maxSelection,endPoint:e._isHorizontal?t+e._maxSelection:n}},_createHtml:function(){var e=this,t=e.element,r=e.options,o=t.find("input");2==o.length?(o.eq(0).val(r.selectionStart),o.eq(1).val(r.selectionEnd)):t.val(r.value),t.wrap(n(r,t,e._isHorizontal)).hide(),r.showButtons&&t.before(i(r,"increase",e._isHorizontal)).before(i(r,"decrease",e._isHorizontal)),t.before(a(r,t))},_focus:function(t){var n=this,i=t.target,r=n.value(),a=n._drag;a||(i==n.wrapper.find(z).eq(0)[0]?(a=n._firstHandleDrag,n._activeHandle=0):(a=n._lastHandleDrag,n._activeHandle=1),r=r[n._activeHandle]),e(i).addClass(P),a&&(n._activeHandleDrag=a,a.selectionStart=n.options.selectionStart,a.selectionEnd=n.options.selectionEnd,a._updateTooltip(r))},_focusWithMouse:function(t){var n=this,i=e(t.target),r=i.is(z)?i.index():0;window.setTimeout(function(){n.wrapper.find(z)[2==r?1:0].focus()},1),n._setTooltipTimeout()},_blur:function(t){var n=this,i=n._activeHandleDrag;e(t.target).removeClass(P),i&&(i._removeTooltip(),delete n._activeHandleDrag,delete n._activeHandle)},_setTooltipTimeout:function(){var e=this;e._tooltipTimeout=window.setTimeout(function(){var t=e._drag||e._activeHandleDrag;t&&t._removeTooltip()},300)},_clearTooltipTimeout:function(){var e=this;window.clearTimeout(this._tooltipTimeout);var t=e._drag||e._activeHandleDrag;t&&t.tooltipDiv&&t.tooltipDiv.stop(!0,!1).css("opacity",1)}}),j=function(e){return{idx:0,x:e.pageX,y:e.pageY}};w.pointers&&(j=function(e){return{idx:0,x:e.originalEvent.clientX,y:e.originalEvent.clientY}}),w.touch&&(j=function(t,n){var i=t.changedTouches||t.originalEvent.changedTouches;if(n){var r=null;return e.each(i,function(e,t){n==t.identifier&&(r={idx:t.identifier,x:t.pageX,y:t.pageY})}),r}return{idx:i[0].identifier,x:i[0].pageX,y:i[0].pageY}});var $=V.extend({init:function(n,i){var r,a=this;n.type="text",i=m({},{value:c(n,"value"),min:c(n,"min"),max:c(n,"max"),smallStep:c(n,"step")},i),n=e(n),i&&i.enabled===t&&(i.enabled=!n.is("[disabled]")),V.fn.init.call(a,n,i),i=a.options,u(i.value)||(i.value=i.min,n.val(i.min)),r=a.wrapper.find(z),new $.Selection(r,a,i),a._drag=new $.Drag(r,"",a,i)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",dragHandleTitle:"drag",tooltip:{format:"{0}"}},enable:function(n){var i,r,a=this,o=a.options;if(a.disable(),n!==!1){if(a.wrapper.removeClass(L).addClass(B),a.wrapper.find("input").removeAttr(W),i=function(n){var i=j(n),r=a._isHorizontal?i.x:i.y,o=a._getDragableArea(),s=e(n.target);return s.hasClass("k-draghandle")?(s.addClass(P),t):(a._update(a._getValueFromPosition(r,o)),a._focusWithMouse(n),a._drag.dragstart(n),t)},a.wrapper.find(M+", "+O).on(F,i).end().on(F,function(){e(document.documentElement).one("selectstart",p.preventDefault)}),a.wrapper.find(z).on(D,function(){a._setTooltipTimeout()}).on(N,function(e){a._focusWithMouse(e),e.preventDefault()}).on(R,_(a._focus,a)).on(H,_(a._blur,a)),r=_(function(e){var t=a._nextValueByIndex(a._valueIndex+1*e);a._setValueInRange(t),a._drag._updateTooltip(t)},a),o.showButtons){var s=_(function(e,t){this._clearTooltipTimeout(),(1===e.which||w.touch&&0===e.which)&&(r(t),this.timeout=setTimeout(_(function(){this.timer=setInterval(function(){r(t)},60)},this),200))},a);a.wrapper.find(".k-button").on(D,_(function(e){this._clearTimer(),a._focusWithMouse(e)},a)).on(I,function(t){e(t.currentTarget).addClass("k-state-hover")}).on("mouseout"+T,_(function(t){e(t.currentTarget).removeClass("k-state-hover"),this._clearTimer()},a)).eq(0).on(S,_(function(e){s(e,1)},a)).click(!1).end().eq(1).on(S,_(function(e){s(e,-1)},a)).click(p.preventDefault)}a.wrapper.find(z).off(A,!1).on(A,_(this._keydown,a)),o.enabled=!0}},disable:function(){var t=this;t.wrapper.removeClass(B).addClass(L),e(t.element).attr(W,W),t.wrapper.find(".k-button").off(S).on(S,p.preventDefault).off(D).on(D,p.preventDefault).off("mouseleave"+T).on("mouseleave"+T,p.preventDefault).off(I).on(I,p.preventDefault),t.wrapper.find(M+", "+O).off(F),t.wrapper.find(z).off(D).off(A).off(N).off(R).off(H),t.options.enabled=!1},_update:function(e){var t=this,n=t.value()!=e;t.value(e),n&&t.trigger(x,{value:t.options.value})},value:function(e){var n=this,i=n.options;return e=d(e),isNaN(e)?i.value:(e>=i.min&&i.max>=e&&i.value!=e&&(n.element.attr("value",l(e)),i.value=e,n._refreshAriaAttr(e),n._refresh()),t)},_refresh:function(){this.trigger(E,{value:this.options.value})},_refreshAriaAttr:function(e){var t,n=this,i=n._drag;t=i&&i._tooltipDiv?i._tooltipDiv.text():n._getFormattedValue(e,null),this.wrapper.find(z).attr("aria-valuenow",e).attr("aria-valuetext",t)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(e){var t=this;e.keyCode in t._keyMap&&(t._clearTooltipTimeout(),t._setValueInRange(t._keyMap[e.keyCode](t.options.value)),t._drag._updateTooltip(t.value()),e.preventDefault())},_setValueInRange:function(e){var n=this,i=n.options;return e=d(e),isNaN(e)?(n._update(i.min),t):(e=b.max(b.min(e,i.max),i.min),n._update(e),t)},_nextValueByIndex:function(e){var t=this._values.length;return this._isRtl&&(e=t-1-e),this._values[b.max(0,b.min(e,t-1))]},destroy:function(){var e=this;f.fn.destroy.call(e),e.wrapper.off(T).find(".k-button").off(T).end().find(z).off(T).end().find(M+", "+O).off(T).end(),e._drag.draggable.destroy()}});$.Selection=function(e,t,n){function i(i){var r=i-n.min,a=t._valueIndex=b.ceil(d(r/n.smallStep)),o=parseInt(t._pixelSteps[a],10),s=t._trackDiv.find(".k-slider-selection"),l=parseInt(e[t._outerSize]()/2,10),c=t._isRtl?2:0;s[t._size](t._isRtl?t._maxSelection-o:o),e.css(t._position,o-l-c)}i(n.value),t.bind([x,C,E],function(e){i(parseFloat(e.value,10))})},$.Drag=function(e,t,n,i){var r=this;r.owner=n,r.options=i,r.dragHandle=e,r.dragHandleSize=e[n._outerSize](),r.type=t,r.draggable=new h(e,{threshold:0,dragstart:_(r._dragstart,r),drag:_(r.drag,r),dragend:_(r.dragend,r),dragcancel:_(r.dragcancel,r)}),e.click(!1)},$.Drag.prototype={dragstart:function(e){this.draggable.userEvents._start(e)},_dragstart:function(e){var n=this,i=n.owner,r=n.options;return r.enabled?(i.element.off(I),n.dragHandle.addClass(P),n.dragableArea=i._getDragableArea(),n.step=b.max(r.smallStep*(i._maxSelection/i._distance),0),n.type?(n.selectionStart=r.selectionStart,n.selectionEnd=r.selectionEnd,i._setZIndex(n.type)):n.oldVal=n.val=r.value,n._removeTooltip(!0),n._createTooltip(),t):(e.preventDefault(),t)},_createTooltip:function(){var t,n=this,i=n.owner,r=n.options.tooltip,a="";r.enabled&&(r.template&&(t=n.tooltipTemplate=p.template(r.template)),e(".k-slider-tooltip").remove(),n.tooltipDiv=e("<div class='k-widget k-tooltip k-slider-tooltip'><!-- --></div>").appendTo(document.body),a=i._getFormattedValue(n.val||i.value(),n),n.type||(n.tooltipInnerDiv="<div class='k-callout k-callout-"+(i._isHorizontal?"s":"e")+"'><!-- --></div>",a+=n.tooltipInnerDiv),n.tooltipDiv.html(a),n.moveTooltip())},drag:function(e){var t,n=this,i=n.owner,r=e.x.location,a=e.y.location,o=n.dragableArea.startPoint,s=n.dragableArea.endPoint;e.preventDefault(),n.val=i._isHorizontal?i._isRtl?n.constrainValue(r,o,s,s>r):n.constrainValue(r,o,s,r>=s):n.constrainValue(a,s,o,s>=a),n.oldVal!=n.val&&(n.oldVal=n.val,n.type?("firstHandle"==n.type?n.selectionStart=n.selectionEnd>n.val?n.val:n.selectionEnd=n.val:n.val>n.selectionStart?n.selectionEnd=n.val:n.selectionStart=n.selectionEnd=n.val,t={values:[n.selectionStart,n.selectionEnd],value:[n.selectionStart,n.selectionEnd]}):t={value:n.val},i.trigger(C,t)),n._updateTooltip(n.val)},_updateTooltip:function(e){var t=this,n=t.options,i=n.tooltip,r="";i.enabled&&(t.tooltipDiv||t._createTooltip(),r=t.owner._getFormattedValue(e,t),t.type||(r+=t.tooltipInnerDiv),t.tooltipDiv.html(r),t.moveTooltip())},dragcancel:function(){return this.owner._refresh(),this._end()},dragend:function(){var e=this,t=e.owner;return e.type?t._update(e.selectionStart,e.selectionEnd):t._update(e.val),e._end()},_end:function(){var e=this,t=e.owner;return t._focusWithMouse({target:e.dragHandle[0]}),t.element.on(I),!1},_removeTooltip:function(t){var n=this,i=n.owner;n.tooltipDiv&&i.options.tooltip.enabled&&i.options.enabled&&(t?(n.tooltipDiv.remove(),n.tooltipDiv=null):n.tooltipDiv.fadeOut("slow",function(){e(this).remove(),n.tooltipDiv=null}))},moveTooltip:function(){var e,t,n,i=this,r=i.owner,a=0,o=0,s=i.dragHandle.offset(),l=4,d=i.tooltipDiv.find(".k-callout");i.type?(e=r.wrapper.find(z),t=e.eq(0).offset(),n=e.eq(1).offset(),r._isHorizontal?(a=n.top,o=t.left+(n.left-t.left)/2):(a=t.top+(n.top-t.top)/2,o=n.left)):(a=s.top,o=s.left),r._isHorizontal?(o-=parseInt((i.tooltipDiv.outerWidth()-i.dragHandle[r._outerSize]())/2,10),a-=i.tooltipDiv.outerHeight()+(d.height()||0)+l):(a-=parseInt((i.tooltipDiv.outerHeight()-i.dragHandle[r._outerSize]())/2,10),o-=i.tooltipDiv.outerWidth()+(d.width()||0)+l),i.tooltipDiv.css({top:a,left:o})},constrainValue:function(e,t,n,i){var r=this,a=0;return a=e>t&&n>e?r.owner._getValueFromPosition(e,r.dragableArea):i?r.options.max:r.options.min}},p.ui.plugin($);var G=V.extend({init:function(n,i){var r=this,a=e(n).find("input"),o=a.eq(0)[0],s=a.eq(1)[0];o.type="text",s.type="text",i=m({},{selectionStart:c(o,"value"),min:c(o,"min"),max:c(o,"max"),smallStep:c(o,"step")},{selectionEnd:c(s,"value"),min:c(s,"min"),max:c(s,"max"),smallStep:c(s,"step")},i),i&&i.enabled===t&&(i.enabled=!a.is("[disabled]")),V.fn.init.call(r,n,i),i=r.options,u(i.selectionStart)||(i.selectionStart=i.min,a.eq(0).val(i.min)),u(i.selectionEnd)||(i.selectionEnd=i.max,a.eq(1).val(i.max));var l=r.wrapper.find(z);new G.Selection(l,r,i),r._firstHandleDrag=new $.Drag(l.eq(0),"firstHandle",r,i),r._lastHandleDrag=new $.Drag(l.eq(1),"lastHandle",r,i)},options:{name:"RangeSlider",leftDragHandleTitle:"drag",rightDragHandleTitle:"drag",tooltip:{format:"{0}"}},enable:function(n){var i,r=this,a=r.options;r.disable(),n!==!1&&(r.wrapper.removeClass(L).addClass(B),r.wrapper.find("input").removeAttr(W),i=function(n){var i,o=j(n),s=r._isHorizontal?o.x:o.y,l=r._getDragableArea(),d=r._getValueFromPosition(s,l),c=e(n.target);return c.hasClass("k-draghandle")?(c.addClass(P),t):(a.selectionStart>d?(r._setValueInRange(d,a.selectionEnd),r._firstHandleDrag.dragstart(n),i=0):d>r.selectionEnd?(r._setValueInRange(a.selectionStart,d),r._lastHandleDrag.dragstart(n),i=1):a.selectionEnd-d>=d-a.selectionStart?(r._setValueInRange(d,a.selectionEnd),r._firstHandleDrag.dragstart(n),i=0):(r._setValueInRange(a.selectionStart,d),r._lastHandleDrag.dragstart(n),i=1),r._focusWithMouse({target:r.wrapper.find(z)[i]}),t)},r.wrapper.find(M+", "+O).on(F,i).end().on(F,function(){e(document.documentElement).one("selectstart",p.preventDefault)}),r.wrapper.find(z).on(D,function(){r._setTooltipTimeout()}).on(N,function(e){r._focusWithMouse(e),e.preventDefault()}).on(R,_(r._focus,r)).on(H,_(r._blur,r)),r.wrapper.find(z).off(A,p.preventDefault).eq(0).on(A,_(function(e){this._keydown(e,"firstHandle")},r)).end().eq(1).on(A,_(function(e){this._keydown(e,"lastHandle")},r)),r.options.enabled=!0)},disable:function(){var e=this;e.wrapper.removeClass(B).addClass(L),e.wrapper.find("input").attr(W,W),e.wrapper.find(M+", "+O).off(F),e.wrapper.find(z).off(D).off(A).off(N).off(R).off(H),e.options.enabled=!1},_keydown:function(e,t){var n,i,r,a=this,o=a.options.selectionStart,s=a.options.selectionEnd;e.keyCode in a._keyMap&&(a._clearTooltipTimeout(),"firstHandle"==t?(r=a._activeHandleDrag=a._firstHandleDrag,o=a._keyMap[e.keyCode](o),o>s&&(s=o)):(r=a._activeHandleDrag=a._lastHandleDrag,s=a._keyMap[e.keyCode](s),o>s&&(o=s)),a._setValueInRange(o,s),n=Math.max(o,a.options.selectionStart),i=Math.min(s,a.options.selectionEnd),r.selectionEnd=Math.max(i,a.options.selectionStart),r.selectionStart=Math.min(n,a.options.selectionEnd),r._updateTooltip(a.value()[a._activeHandle]),e.preventDefault())},_update:function(e,t){var n=this,i=n.value(),r=i[0]!=e||i[1]!=t;n.value([e,t]),r&&n.trigger(x,{values:[e,t],value:[e,t]})},value:function(e){return e&&e.length?this._value(e[0],e[1]):this._value()},_value:function(e,n){var i=this,r=i.options,a=r.selectionStart,o=r.selectionEnd;return isNaN(e)&&isNaN(n)?[a,o]:(e=d(e),n=d(n),e>=r.min&&r.max>=e&&n>=r.min&&r.max>=n&&n>=e&&(a!=e||o!=n)&&(i.element.find("input").eq(0).attr("value",l(e)).end().eq(1).attr("value",l(n)),r.selectionStart=e,r.selectionEnd=n,i._refresh(),i._refreshAriaAttr(e,n)),t)},values:function(e,t){return k(e)?this._value(e[0],e[1]):this._value(e,t)},_refresh:function(){var e=this,t=e.options;e.trigger(E,{values:[t.selectionStart,t.selectionEnd],value:[t.selectionStart,t.selectionEnd]}),t.selectionStart==t.max&&t.selectionEnd==t.max&&e._setZIndex("firstHandle")},_refreshAriaAttr:function(e,t){var n,i=this,r=i.wrapper.find(z),a=i._activeHandleDrag;n=i._getFormattedValue([e,t],a),r.eq(0).attr("aria-valuenow",e),r.eq(1).attr("aria-valuenow",t),r.attr("aria-valuetext",n)},_setValueInRange:function(e,t){var n=this.options;e=b.max(b.min(e,n.max),n.min),t=b.max(b.min(t,n.max),n.min),e==n.max&&t==n.max&&this._setZIndex("firstHandle"),this._update(b.min(e,t),b.max(e,t))},_setZIndex:function(t){this.wrapper.find(z).each(function(n){e(this).css("z-index","firstHandle"==t?1-n:n)})},destroy:function(){var e=this;f.fn.destroy.call(e),e.wrapper.off(T).find(M+", "+O).off(T).end().find(z).off(T),e._firstHandleDrag.draggable.destroy(),e._lastHandleDrag.draggable.destroy()}});G.Selection=function(e,t,n){function i(i){i=i||[];var a=i[0]-n.min,o=i[1]-n.min,s=b.ceil(d(a/n.smallStep)),l=b.ceil(d(o/n.smallStep)),c=t._pixelSteps[s],u=t._pixelSteps[l],p=parseInt(e.eq(0)[t._outerSize]()/2,10),f=t._isRtl?2:0;e.eq(0).css(t._position,c-p-f).end().eq(1).css(t._position,u-p-f),r(c,u)}function r(e,n){var i,r,a=t._trackDiv.find(".k-slider-selection");i=b.abs(e-n),a[t._size](i),t._isRtl?(r=b.max(e,n),a.css("right",t._maxSelection-r-1)):(r=b.min(e,n),a.css(t._position,r-1))}i(t.value()),t.bind([x,C,E],function(e){i(e.values)})},p.ui.plugin(G)}(window.kendo.jQuery),function(e,t){function n(e){return h.test(e)}function i(e){return f.test(e)}function r(e){return!n(e)&&!i(e)}function a(t,n){return function(i,r){var a=e(i).data(T);if(1==arguments.length)return a[t];if(a[t]=r,n){var o=this.element.data("kendoSplitter");
|
26
|
+
o.trigger(k)}}}function o(e){var t=this,n=e.orientation;t.owner=e,t._element=e.element,t.orientation=n,c(t,n===w?I:N),t._resizable=new s.ui.Resizable(e.element,{orientation:n,handle:".k-splitbar-draggable-"+n+"[data-marker="+e._marker+"]",hint:u(t._createHint,t),start:u(t._start,t),max:u(t._max,t),min:u(t._min,t),invalidClass:"k-restricted-size-"+n,resizeend:u(t._stop,t)})}var s=window.kendo,l=s.ui,d=s.keys,c=e.extend,u=e.proxy,p=l.Widget,f=/^\d+(\.\d+)?px$/i,h=/^\d+(\.\d+)?%$/i,m=".kendoSplitter",g="expand",v="collapse",_="contentLoad",k="resize",b="layoutChange",w="horizontal",y="vertical",x="mouseenter",C="click",T="pane",S="mouseleave",F="k-state-focused",D="k-"+T,E="."+D,A=p.extend({init:function(t,n){var i,r=this;p.fn.init.call(r,t,n),r.wrapper=r.element,i=r.options.orientation.toLowerCase()!=y,r.orientation=i?w:y,r._dimension=i?"width":"height",r._keys={decrease:i?d.LEFT:d.UP,increase:i?d.RIGHT:d.DOWN},r._resizeStep=10,r.bind(k,u(r._resize,r)),r._marker=s.guid().substring(0,8),r._initPanes(),r._resizeHandler=function(){r.trigger(k)},r._attachEvents(),e(window).on("resize",r._resizeHandler),r.resizing=new o(r),r.element.triggerHandler("init.kendoSplitter")},events:[g,v,_,k,b],_attachEvents:function(){var t=this,n=t.options.orientation,i=".k-splitbar-"+n,r=".k-splitbar-draggable-"+n,a=".k-splitbar .k-icon:not(.k-resize-handle)";t.element.on("keydown"+m,i,"_keydown").on("mousedown"+m,i,function(e){e.currentTarget.focus()}).on("focus"+m,i,function(t){e(t.currentTarget).addClass(F)}).on("blur"+m,i,function(n){e(n.currentTarget).removeClass(F),t.resizing.end()}).on(x+m,r,function(){e(this).addClass("k-splitbar-"+t.orientation+"-hover")}).on(S+m,r,function(){e(this).removeClass("k-splitbar-"+t.orientation+"-hover")}).on("mousedown"+m,r,function(){t.resizing.end(),t._panes().append("<div class='k-splitter-overlay k-overlay' />")}).on("mouseup"+m,r,function(){t._panes().children(".k-splitter-overlay").remove()}).on(x+m,a,function(){e(this).addClass("k-state-hover")}).on(S+m,a,function(){e(this).removeClass("k-state-hover")}).on(C+m,".k-splitbar .k-collapse-next, .k-splitbar .k-collapse-prev",t._arrowClick(v)).on(C+m,".k-splitbar .k-expand-next, .k-splitbar .k-expand-prev",t._arrowClick(g)).on("dblclick"+m,".k-splitbar",u(t._togglePane,t)).parent().closest(".k-splitter").each(function(){var n=e(this),i=n.data("kendoSplitter");i?i.bind(k,t._resizeHandler):n.one("init"+m,function(){e(this).data("kendoSplitter").bind(k,t._resizeHandler),t._resizeHandler()})})},options:{name:"Splitter",orientation:w},destroy:function(){var t=this;p.fn.destroy.call(t),t.element.off(m),t.resizing.destroy(),e(window).off("resize",t._resizeHandler),s.destroy(t.element)},_keydown:function(t){var n,i=this,r=t.keyCode,a=i.resizing,o=e(t.currentTarget),s=i._keys,l=r===s.increase,c=r===s.decrease;l||c?(t.ctrlKey?(n=o[c?"next":"prev"](),a.isResizing()&&a.end(),n[i._dimension]()?i._triggerAction(v,o[c?"prev":"next"]()):i._triggerAction(g,n)):a.move((c?-1:1)*i._resizeStep,o),t.preventDefault()):r===d.ENTER&&(a.end(),t.preventDefault())},_initPanes:function(){var t=this,n=t.options.panes||[];t.element.addClass("k-widget").addClass("k-splitter").children().each(function(i,r){var a=n&&n[i];r=e(r).attr("role","group").addClass(D),r.data(T,a?a:{}).toggleClass("k-scrollable",a?a.scrollable!==!1:!0),t.ajaxRequest(r)}).end(),t.trigger(k)},ajaxRequest:function(t,n,i){t=e(t);var r=this,a=t.data(T);n=n||a.contentUrl,n&&(t.append("<span class='k-icon k-loading k-pane-loading' />"),s.isLocalUrl(n)?jQuery.ajax({url:n,data:i||{},type:"GET",dataType:"html",success:function(e){t.html(e),r.trigger(_,{pane:t[0]})}}):t.removeClass("k-scrollable").html("<iframe src='"+n+"' frameborder='0' class='k-content-frame'>"+"This page requires frames in order to show content"+"</iframe>"))},_triggerAction:function(e,t){this.trigger(e,{pane:t[0]})||this[e](t[0])},_togglePane:function(t){var n,i=this,r=e(t.target);r.closest(".k-splitter")[0]==i.element[0]&&(n=r.children(".k-icon:not(.k-resize-handle)"),1===n.length&&(n.is(".k-collapse-prev")?i._triggerAction(v,r.prev()):n.is(".k-collapse-next")?i._triggerAction(v,r.next()):n.is(".k-expand-prev")?i._triggerAction(g,r.prev()):n.is(".k-expand-next")&&i._triggerAction(g,r.next())))},_arrowClick:function(t){var n=this;return function(i){var r,a=e(i.target);a.closest(".k-splitter")[0]==n.element[0]&&(r=a.is(".k-"+t+"-prev")?a.parent().prev():a.parent().next(),n._triggerAction(t,r))}},_updateSplitBar:function(e,t,n){var i=function(e,t){return t?"<div class='k-icon "+e+"' />":""},r=this.orientation,a=t.resizable!==!1&&n.resizable!==!1,o=t.collapsible,s=t.collapsed,l=n.collapsible,d=n.collapsed;e.addClass("k-splitbar k-state-default k-splitbar-"+r).attr("role","separator").attr("aria-expanded",!(s||d)).removeClass("k-splitbar-"+r+"-hover").toggleClass("k-splitbar-draggable-"+r,a&&!s&&!d).toggleClass("k-splitbar-static-"+r,!a&&!o&&!l).html(i("k-collapse-prev",o&&!s&&!d)+i("k-expand-prev",o&&s&&!d)+i("k-resize-handle",a)+i("k-collapse-next",l&&!d&&!s)+i("k-expand-next",l&&d&&!s))},_updateSplitBars:function(){var t=this;this.element.children(".k-splitbar").each(function(){var n=e(this),i=n.prev(E).data(T),r=n.next(E).data(T);r&&t._updateSplitBar(n,i,r)})},_panes:function(){return this.element.children(E)},_resize:function(){var i=this,a=i.element,o=a.children(":not(.k-splitbar)"),s=i.orientation==w,l=a.children(".k-splitbar"),d=l.length,c=s?"width":"height",u=a[c]();0===d?(d=o.length-1,o.slice(0,d).after("<div tabindex='0' class='k-splitbar' data-marker='"+i._marker+"' />"),i._updateSplitBars(),l=a.children(".k-splitbar")):i._updateSplitBars(),l.each(function(){u-=this[s?"offsetWidth":"offsetHeight"]});var p=0,f=0,h=e();o.css({position:"absolute",top:0})[c](function(){var i,a=e(this).data(T)||{};if(a.collapsed)i=0,e(this).css("overflow","hidden");else{if(r(a.size))return h=h.add(this),t;i=parseInt(a.size,10),n(a.size)&&(i=Math.floor(i*u/100))}return f++,p+=i,i}),u-=p;var m=h.length,g=Math.floor(u/m);h.slice(0,m-1).css(c,g).end().eq(m-1).css(c,u-(m-1)*g);var v=0,_=s?"height":"width",k=s?"left":"top",y=s?"offsetWidth":"offsetHeight";if(0===m){var x=o.filter(function(){return!(e(this).data(T)||{}).collapsed}).last();x[c](u+x[0][y])}a.children().css(_,a[_]()).each(function(e,t){t.style[k]=Math.floor(v)+"px",v+=t[y]}),i.trigger(b)},toggle:function(n,i){var r;n=e(n),r=n.data(T),(i||r.collapsible)&&(1==arguments.length&&(i=r.collapsed===t?!1:r.collapsed),r.collapsed=!i,r.collapsed?n.css("overflow","hidden"):n.css("overflow",""),this.trigger(k),this.resizing.destroy(),this.resizing=new o(this))},collapse:function(e){this.toggle(e,!1)},expand:function(e){this.toggle(e,!0)},size:a("size",!0),min:a("min"),max:a("max")});l.plugin(A);var N={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},I={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};o.prototype={press:function(e){this._resizable.press(e)},move:function(e,t){this._resizable.target||this._resizable.press(t),this._resizable.move(e)},end:function(){this._resizable.end()},destroy:function(){this._resizable.destroy()},isResizing:function(){return this._resizable.resizing},_createHint:function(t){var n=this;return e("<div class='k-ghost-splitbar k-ghost-splitbar-"+n.orientation+" k-state-default' />").css(n.alternateSizingProperty,t[n.alternateSizingProperty]())},_start:function(t){var n=this,r=e(t.currentTarget),a=r.prev(),o=r.next(),s=a.data(T),l=o.data(T),d=parseInt(a[0].style[n.positioningProperty],10),c=parseInt(o[0].style[n.positioningProperty],10)+o[0][n.sizingDomProperty]-r[0][n.sizingDomProperty],u=n._element.css(n.sizingProperty),p=function(e){var t=parseInt(e,10);return(i(e)?t:u*t/100)||0},f=p(s.min),h=p(s.max)||c-d,m=p(l.min),g=p(l.max)||c-d;n.previousPane=a,n.nextPane=o,n._maxPosition=Math.min(c-m,d+h),n._minPosition=Math.max(d+f,c-g)},_max:function(){return this._maxPosition},_min:function(){return this._minPosition},_stop:function(t){var n=this,i=e(t.currentTarget),a=n.owner;if(a._panes().children(".k-splitter-overlay").remove(),t.keyCode!==s.keys.ESC){var o=t.position,l=i.prev(),d=i.next(),c=l.data(T),u=d.data(T),p=o-parseInt(l[0].style[n.positioningProperty],10),f=parseInt(d[0].style[n.positioningProperty],10)+d[0][n.sizingDomProperty]-o-i[0][n.sizingDomProperty],h=n._element.children(E).filter(function(){return r(e(this).data(T).size)}).length;(!r(c.size)||h>1)&&(r(c.size)&&h--,c.size=p+"px"),(!r(u.size)||h>1)&&(u.size=f+"px"),a.trigger(k)}return setTimeout(function(){n.press(i)}),!1}}}(window.kendo.jQuery),function(e,t){function n(t){return e.map(i(t),function(e){return e.name}).join(", ")}function i(e){var t=e[0];return t.files?r(t.files):[{name:s(t.value),extension:o(t.value),size:null}]}function r(t){return e.map(t,function(e){return a(e)})}function a(e){var t=e.name||e.fileName;return{name:t,extension:o(t),size:e.size||e.fileSize,rawFile:e}}function o(e){var t=e.match(_);return t?t[0]:""}function s(e){var t=e.lastIndexOf("\\");return-1!=t?e.substr(t+1):e}function l(t,n,i){if(n._supportsRemove()){var r=t.data("fileNames"),a=e.map(r,function(e){return e.name});n._submitRemove(a,i,function(e,i,a){n._removeFileEntry(t),n.trigger(y,{operation:"remove",files:r,response:e,XMLHttpRequest:a})},function(e){n.trigger(x,{operation:"remove",files:r,XMLHttpRequest:e}),v("Server response: "+e.responseText)})}}function d(t,n,i){var r=!1,a="";try{a=e.parseJSON(t),r=!0}catch(o){i()}r&&n(a)}function c(e){e.stopPropagation(),e.preventDefault()}function u(e,t,n,i){var r,a;e.on("dragenter"+t,function(){n(),a=new Date,r||(r=setInterval(function(){var e=new Date-a;e>100&&(i(),clearInterval(r),r=null)},100))}).on("dragover"+t,function(){a=new Date})}function p(e){return e.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function f(t){return e(t.target).closest(".k-file")}function h(){var n={},i=e("meta[name=csrf-token]").attr("content"),r=e("meta[name=csrf-param]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){n[this.name]=this.value}),r!==t&&i!==t&&(n[r]=i),n}var m=window.kendo,g=m.ui.Widget,v=m.logToConsole,_=/\.([^\.]+)$/,k=".kendoUpload",b="select",w="upload",y="success",x="error",C="complete",T="cancel",S="progress",F="remove",D=g.extend({init:function(t,n){var i=this;g.fn.init.call(i,t,n),i.name=t.name,i.multiple=i.options.multiple,i.localization=i.options.localization;var r=i.element;i.wrapper=r.closest(".k-upload"),0===i.wrapper.length&&(i.wrapper=i._wrapInput(r)),i._activeInput(r),i.toggle(i.options.enabled);var a=i._ns=k+"-"+m.guid();r.closest("form").on("submit"+a,e.proxy(i._onParentFormSubmit,i)).on("reset"+a,e.proxy(i._onParentFormReset,i)),i.options.async.saveUrl?(i._module=i._supportsFormData()?new N(i):new A(i),i._async=!0):i._module=new E(i),i._supportsDrop()&&i._setupDropZone(),i.wrapper.delegate(".k-upload-action","click",e.proxy(i._onFileAction,i)).delegate(".k-upload-selected","click",e.proxy(i._onUploadSelected,i)).delegate(".k-file","t:progress",e.proxy(i._onFileProgress,i)).delegate(".k-file","t:upload-success",e.proxy(i._onUploadSuccess,i)).delegate(".k-file","t:upload-error",e.proxy(i._onUploadError,i))},events:[b,w,y,x,C,T,S,F],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(e){var t=this,n=t.element;g.fn.setOptions.call(t,e),t.multiple=t.options.multiple,n.attr("multiple",t._supportsMultiple()?t.multiple:!1),t.toggle(t.options.enabled)},enable:function(e){e=e===t?!0:e,this.toggle(e)},disable:function(){this.toggle(!1)},toggle:function(e){e=e===t?e:!e,this.wrapper.toggleClass("k-state-disabled",e)},destroy:function(){var t=this;e(document).add(e(".k-dropzone",t.wrapper)).add(t.wrapper.closest("form")).off(t._ns),g.fn.destroy.call(t)},_addInput:function(t){var n=this;t.insertAfter(n.element).data("kendoUpload",n),e(n.element).hide().removeAttr("id"),n._activeInput(t)},_activeInput:function(t){var n=this,i=n.wrapper;n.element=t,t.attr("multiple",n._supportsMultiple()?n.multiple:!1).attr("autocomplete","off").click(function(e){i.hasClass("k-state-disabled")&&e.preventDefault()}).change(e.proxy(n._onInputChange,n))},_onInputChange:function(t){var n=this,r=e(t.target),a=n.trigger(b,{files:i(r)});a?(n._addInput(r.clone().val("")),r.remove()):r.trigger("t:select")},_onDrop:function(t){var n=t.originalEvent.dataTransfer,i=this,a=n.files;if(c(t),a.length>0){var o=i.trigger(b,{files:r(a)});o||e(".k-dropzone",i.wrapper).trigger("t:select",[a])}},_enqueueFile:function(t,n){var i,r,a=this,o=e(".k-upload-files",a.wrapper);return 0===o.length&&(o=e("<ul class='k-upload-files k-reset'></ul>").appendTo(a.wrapper),a.options.showFileList||o.hide()),i=e(".k-file",o),r=e("<li class='k-file'><span class='k-filename' title='"+t+"'>"+t+"</span></li>").appendTo(o).data(n),a._async&&r.prepend("<span class='k-icon'></span>"),a.multiple||i.trigger("t:remove"),r},_removeFileEntry:function(t){var n,i=t.closest(".k-upload-files");t.remove(),n=e(".k-file",i),n.find("> .k-fail").length===n.length&&this._hideUploadButton(),0===n.length&&i.remove()},_fileAction:function(e,t){var n={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};n.hasOwnProperty(t)&&(this._clearFileAction(e),e.append(this._renderAction(n[t],this.localization[t]).addClass("k-upload-action")))},_fileState:function(e,t){var n=this.localization,i={uploading:{cssClass:"k-loading",text:n.statusUploading},uploaded:{cssClass:"k-success",text:n.statusUploaded},failed:{cssClass:"k-fail",text:n.statusFailed}},r=i[t];if(r){var a=e.children(".k-icon").text(r.text);a[0].className="k-icon "+r.cssClass}},_renderAction:function(t,n){return""!==t?e("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+t+"'></span>"+n+"</button>"):e("<button type='button' class='k-button'>"+n+"</button>")},_clearFileAction:function(e){e.find(".k-upload-action").remove()},_onFileAction:function(t){var n=this;if(!n.wrapper.hasClass("k-state-disabled")){var i=e(t.target).closest(".k-upload-action"),r=i.find(".k-icon"),a=i.closest(".k-file"),o={files:a.data("fileNames")};r.hasClass("k-delete")?n.trigger(F,o)||a.trigger("t:remove",o.data):r.hasClass("k-cancel")?(n.trigger(T,o),a.trigger("t:cancel"),this._checkAllComplete()):r.hasClass("k-retry")&&a.trigger("t:retry")}return!1},_onUploadSelected:function(){return this.wrapper.trigger("t:saveSelected"),!1},_onFileProgress:function(t,n){var i=e(".k-progress-status",t.target);0===i.length&&(i=e("<span class='k-progress'><span class='k-state-selected k-progress-status' style='width: 0;'></span></span>").appendTo(e(".k-filename",t.target)).find(".k-progress-status")),i.width(n+"%"),this.trigger(S,{files:f(t).data("fileNames"),percentComplete:n})},_onUploadSuccess:function(e,t,n){var i=f(e);this._fileState(i,"uploaded"),this.trigger(y,{files:i.data("fileNames"),response:t,operation:"upload",XMLHttpRequest:n}),this._supportsRemove()?this._fileAction(i,F):this._clearFileAction(i),this._checkAllComplete()},_onUploadError:function(e,t){var n=f(e);this._fileState(n,"failed"),this._fileAction(n,"retry"),this.trigger(x,{operation:"upload",files:n.data("fileNames"),XMLHttpRequest:t}),v("Server response: "+t.responseText),this._checkAllComplete()},_showUploadButton:function(){var t=e(".k-upload-selected",this.wrapper);0===t.length&&(t=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(t)},_hideUploadButton:function(){e(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var t=this,n=t.element;if(n.trigger("t:abort"),!n.value){var i=e(n);i.attr("disabled","disabled"),window.setTimeout(function(){i.removeAttr("disabled")},0)}},_onParentFormReset:function(){e(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return"undefined"!=typeof FormData},_supportsMultiple:function(){var e=this._userAgent().indexOf("Windows")>-1;return!(m.support.browser.opera||m.support.browser.safari&&e)},_supportsDrop:function(){var e=this._userAgent().toLowerCase(),t=/chrome/.test(e),n=!t&&/safari/.test(e),i=n&&/windows/.test(e);return!i&&this._supportsFormData()&&this.options.async.saveUrl},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){var t=this;e(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var n=t._ns,i=e(".k-dropzone",t.wrapper).append(e("<em>"+t.localization.dropFilesHere+"</em>")).on("dragenter"+n,c).on("dragover"+n,function(e){e.preventDefault()}).on("drop"+n,e.proxy(this._onDrop,this));u(i,n,function(){i.addClass("k-dropzone-hovered")},function(){i.removeClass("k-dropzone-hovered")}),u(e(document),n,function(){i.addClass("k-dropzone-active")},function(){i.removeClass("k-dropzone-active")})},_supportsRemove:function(){return!!this.options.async.removeUrl},_submitRemove:function(t,n,i,r){var a=this,o=a.options.async.removeField||"fileNames",s=e.extend(n,h());s[o]=t,jQuery.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:s,success:i,error:r})},_wrapInput:function(e){return e.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),e.closest(".k-button").append("<span>"+this.localization.select+"</span>"),e.closest(".k-upload")},_checkAllComplete:function(){0===e(".k-file .k-icon.k-loading",this.wrapper).length&&this.trigger(C)}}),E=function(t){this.name="syncUploadModule",this.element=t.wrapper,this.upload=t,this.element.bind("t:select",e.proxy(this.onSelect,this)).bind("t:remove",e.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};E.prototype={onSelect:function(t){var r=this.upload,a=e(t.target);r._addInput(a.clone().val(""));var o=r._enqueueFile(n(a),{relatedInput:a,fileNames:i(a)});r._fileAction(o,F)},onRemove:function(e){var t=f(e);t.data("relatedInput").remove(),this.upload._removeFileEntry(t)}};var A=function(t){this.name="iframeUploadModule",this.element=t.wrapper,this.upload=t,this.iframes=[],this.element.bind("t:select",e.proxy(this.onSelect,this)).bind("t:cancel",e.proxy(this.onCancel,this)).bind("t:retry",e.proxy(this.onRetry,this)).bind("t:remove",e.proxy(this.onRemove,this)).bind("t:saveSelected",e.proxy(this.onSaveSelected,this)).bind("t:abort",e.proxy(this.onAbort,this))};D._frameId=0,A.prototype={onSelect:function(t){var n=this.upload,i=e(t.target),r=this.prepareUpload(i);n.options.async.autoUpload?this.performUpload(r):(n._supportsRemove()&&this.upload._fileAction(r,F),n._showUploadButton())},prepareUpload:function(t){var r=this.upload,a=e(r.element),o=r.options.async.saveField||t.attr("name");r._addInput(t.clone().val("")),t.attr("name",o);var s=this.createFrame(r.name+"_"+D._frameId++);this.registerFrame(s);var l=this.createForm(r.options.async.saveUrl,s.attr("name")).append(a),d=r._enqueueFile(n(t),{frame:s,relatedInput:a,fileNames:i(t)});return s.data({form:l,file:d}),d},performUpload:function(t){var n={files:t.data("fileNames")},i=t.data("frame"),r=this.upload;if(r.trigger(w,n))r._removeFileEntry(i.data("file")),this.cleanupFrame(i),this.unregisterFrame(i);else{r._hideUploadButton(),i.appendTo(document.body);var a=i.data("form").appendTo(document.body);n.data=e.extend({},n.data,h());for(var o in n.data){var s=a.find("input[name='"+o+"']");0===s.length&&(s=e("<input>",{type:"hidden",name:o}).appendTo(a)),s.val(n.data[o])}r._fileAction(t,T),r._fileState(t,"uploading"),i.one("load",e.proxy(this.onIframeLoad,this)),a[0].submit()}},onSaveSelected:function(){var t=this;e(".k-file",this.element).each(function(){var n=e(this),i=p(n);i||t.performUpload(n)})},onIframeLoad:function(t){var n,i=e(t.target);try{n=i.contents().text()}catch(t){n="Error trying to get server response: "+t}this.processResponse(i,n)},processResponse:function(t,n){var i=t.data("file"),r=this,a={responseText:n};d(n,function(n){e.extend(a,{statusText:"OK",status:"200"}),i.trigger("t:progress",[100]),i.trigger("t:upload-success",[n,a]),r.cleanupFrame(t),r.unregisterFrame(t)},function(){e.extend(a,{statusText:"error",status:"500"}),i.trigger("t:upload-error",[a])})},onCancel:function(t){var n=e(t.target).data("frame");this.stopFrameSubmit(n),this.cleanupFrame(n),this.unregisterFrame(n),this.upload._removeFileEntry(n.data("file"))},onRetry:function(e){var t=f(e);this.performUpload(t)},onRemove:function(e,t){var n=f(e),i=n.data("frame");i?(this.unregisterFrame(i),this.upload._removeFileEntry(n),this.cleanupFrame(i)):l(n,this.upload,t)},onAbort:function(){var t=this.element,n=this;e.each(this.iframes,function(){e("input",this.data("form")).appendTo(t),n.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(t){return e("<iframe name='"+t+"'"+" id='"+t+"'"+" style='display:none;' />")},createForm:function(t,n){return e("<form enctype='multipart/form-data' method='POST' action='"+t+"'"+" target='"+n+"'"+"/>")},stopFrameSubmit:function(e){e.stop!==t?e.stop():e.document&&(e.document.execCommand("Stop"),e.contentWindow.location.href=e.contentWindow.location.href)},registerFrame:function(e){this.iframes.push(e)},unregisterFrame:function(t){this.iframes=e.grep(this.iframes,function(e){return e.attr("name")!=t.attr("name")})},cleanupFrame:function(e){var t=e.data("form");e.data("file").data("frame",null),setTimeout(function(){t.remove(),e.remove()},1)}};var N=function(t){this.name="formDataUploadModule",this.element=t.wrapper,this.upload=t,this.element.bind("t:select",e.proxy(this.onSelect,this)).bind("t:cancel",e.proxy(this.onCancel,this)).bind("t:remove",e.proxy(this.onRemove,this)).bind("t:retry",e.proxy(this.onRetry,this)).bind("t:saveSelected",e.proxy(this.onSaveSelected,this)).bind("t:abort",e.proxy(this.onAbort,this))};N.prototype={onSelect:function(t,n){var i=this.upload,a=this,o=e(t.target),s=n?r(n):this.inputFiles(o),l=this.prepareUpload(o,s);e.each(l,function(){i.options.async.autoUpload?a.performUpload(this):(i._supportsRemove()&&i._fileAction(this,F),i._showUploadButton())})},prepareUpload:function(t,n){var i=this.enqueueFiles(n);return t.is("input")&&(e.each(i,function(){e(this).data("relatedInput",t)}),t.data("relatedFileEntries",i),this.upload._addInput(t.clone().val(""))),i},enqueueFiles:function(t){var n,i,r,a,o=this.upload,s=t.length,l=[];if(o.options.async.batch===!0)n=e.map(t,function(e){return e.name}).join(", "),a=o._enqueueFile(n,{fileNames:t}),a.data("files",t),l.push(a);else for(i=0;s>i;i++)r=t[i],n=r.name,a=o._enqueueFile(n,{fileNames:[r]}),a.data("files",[r]),l.push(a);return l},inputFiles:function(e){return i(e)},performUpload:function(t){var n=this.upload,i=this.createFormData(t.data("files")),r={files:t.data("fileNames")};if(n.trigger(w,r))this.removeFileEntry(t);else{n._fileAction(t,T),n._hideUploadButton(),r.data=e.extend({},r.data,h());for(var a in r.data)i.append(a,r.data[a]);n._fileState(t,"uploading"),this.postFormData(this.upload.options.async.saveUrl,i,t)}},onSaveSelected:function(){var t=this;e(".k-file",this.element).each(function(){var n=e(this),i=p(n);i||t.performUpload(n)})},onCancel:function(e){var t=f(e);this.stopUploadRequest(t),this.removeFileEntry(t)},onRetry:function(e){var t=f(e);this.performUpload(t)},onRemove:function(e,t){var n=f(e);n.children(".k-icon").is(".k-success")?l(n,this.upload,t):this.removeFileEntry(n)},postFormData:function(e,t,n){var i=new XMLHttpRequest,r=this;n.data("request",i),i.addEventListener("load",function(e){r.onRequestSuccess.call(r,e,n)},!1),i.addEventListener(x,function(e){r.onRequestError.call(r,e,n)},!1),i.upload.addEventListener("progress",function(e){r.onRequestProgress.call(r,e,n)},!1),i.open("POST",e),i.withCredentials="true",i.send(t)},createFormData:function(e){var t,n=new FormData,i=this.upload,r=e.length;for(t=0;r>t;t++)n.append(i.options.async.saveField||i.name,e[t].rawFile);return n},onRequestSuccess:function(e,t){function n(){t.trigger("t:upload-error",[i])}var i=e.target,r=this;i.status>=200&&299>=i.status?d(i.responseText,function(e){t.trigger("t:progress",[100]),t.trigger("t:upload-success",[e,i]),r.cleanupFileEntry(t)},n):n()},onRequestError:function(e,t){var n=e.target;t.trigger("t:upload-error",[n])},cleanupFileEntry:function(t){var n=t.data("relatedInput"),i=!0;n&&(e.each(n.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=t[0]&&(i=i&&this.children(".k-icon").is(".k-success"))}),i&&n.remove())},removeFileEntry:function(e){this.cleanupFileEntry(e),this.upload._removeFileEntry(e)},onRequestProgress:function(e,t){var n=Math.round(100*e.loaded/e.total);t.trigger("t:progress",[n])},stopUploadRequest:function(e){e.data("request").abort()}},m.ui.plugin(D)}(window.kendo.jQuery),function(e,t){function n(e){return e!==t}function i(e,t,n){return Math.max(Math.min(e,n),t)}function r(e,t){var n=e.children(x);return n.data("kendoWindow")||n.data("kendo"+t)}function a(t){return e(b).filter(function(){var n=e(this);return n.is(A)&&r(n,t).options.modal}).sort(function(t,n){return+e(t).css("zIndex")-+e(n).css("zIndex")})}function o(e,t){return function(){var e=this,n=e.wrapper,i=n[0].style,r=e.options;if(!r.isMaximized&&!r.isMinimized)return e.restoreOptions={width:i.width,height:i.height},n.find(C).hide().end().find(V).parent().hide().eq(0).before(d.action({name:"Restore"})),t.call(e),e}}function s(e){var t=this;t.owner=e,t._draggable=new p(e.wrapper,{filter:C,group:e.wrapper.id+"-resizing",dragstart:h(t.dragstart,t),drag:h(t.drag,t),dragend:h(t.dragend,t)})}function l(e){var t=this;t.owner=e,t._draggable=new p(e.wrapper,{filter:y,group:e.wrapper.id+"-moving",dragstart:h(t.dragstart,t),drag:h(t.drag,t),dragend:h(t.dragend,t),dragcancel:h(t.dragcancel,t)})}var d,c=window.kendo,u=c.ui.Widget,p=c.ui.Draggable,f=e.isPlainObject,h=e.proxy,m=e.extend,g=e.each,v=c.template,_="body",k=".kendoWindow",b=".k-window",w=".k-window-title",y=w+"bar",x=".k-window-content",C=".k-resize-handle",T=".k-overlay",S="k-content-frame",F="k-loading",D="k-state-hover",E="k-state-focused",A=":visible",N="hidden",I="cursor",R="open",H="activate",z="deactivate",O="close",M="refresh",P="resize",B="dragstart",L="dragend",U="error",W="overflow",q="zIndex",V=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",j=".k-window-titlebar .k-window-action",$=c.isLocalUrl,G=u.extend({init:function(t,i){var r,a,o,p,m,v,_,C=this,T=!1;u.fn.init.call(C,t,i),i=C.options,t=C.element,m=i.content,C.appendTo=e(i.appendTo||document.body),C._animations(),m&&!f(m)&&(m=i.content={url:m}),t.parent().is(C.appendTo)||(t.is(A)?(a=t.offset(),T=!0):(o=t.css("visibility"),p=t.css("display"),t.css({visibility:N,display:""}),a=t.offset(),t.css({visibility:o,display:p}))),n(i.visible)||(i.visible=t.is(A)),r=C.wrapper=t.closest(b),t.is(".k-content")&&r[0]||(t.addClass("k-window-content k-content"),C._createWindow(t,i),r=C.wrapper=t.closest(b),C._dimensions()),a&&r.css({top:a.top,left:a.left}),m&&C.refresh(m),C.toFront(),v=r.children(x),C._tabindex(v),i.visible&&i.modal&&C._overlay(r.is(A)).css({opacity:.5}),r.on("mouseenter"+k,j,function(){e(this).addClass(D)}).on("mouseleave"+k,j,function(){e(this).removeClass(D)}).on("touchend"+k+" click"+k,j,h(C._windowActionHandler,C)),v.on("keydown"+k,h(C._keydown,C)).on("focus"+k,function(){r.addClass(E)}).on("blur"+k,function(){r.removeClass(E)}),i.resizable&&(r.on("dblclick"+k,y,h(C.toggleMaximization,C)),g("n e s w se sw ne nw".split(" "),function(e,t){r.append(d.resizeHandle(t))}),C.resizing=new s(C)),i.draggable&&(C.dragging=new l(C)),_=t.attr("id"),_&&(_+="_wnd_title",r.find(y).children(w).attr("id",_),v.attr({role:"dialog","aria-labelledby":_})),r.add(r.find(".k-resize-handle,.k-window-titlebar")).on("mousedown"+k,h(C.toFront,C)),C.touchScroller=c.touchScroller(t),C._resizeHandler=function(e){return C._onDocumentResize(e)},e(window).on("resize",C._resizeHandler),i.visible&&(C.trigger(R),C.trigger(H)),c.notify(C)},_dimensions:function(){var e=this,t=e.wrapper,n=e.element,i=e.options;e.title(i.title),i.width&&t.width(i.width),i.height&&t.height(i.height),g(["minWidth","minHeight","maxWidth","maxHeight"],function(e,t){var r=i[t];r&&1/0!=r&&n.css(t,r)}),i.visible||t.hide()},_animations:function(){var e=this.options;e.animation===!1&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(e){u.fn.setOptions.call(this,e),this._animations(),this._dimensions()},events:[R,H,z,O,M,P,B,L,U],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0},_keydown:function(e){var t,n,r,a,o=this,s=o.options,l=c.keys,d=e.keyCode,u=o.wrapper,p=10;e.target==e.currentTarget&&(d==l.ESC&&o._close(!0),s.draggable&&!e.ctrlKey&&(t=u.offset(),d==l.UP?n=u.css("top",t.top-p):d==l.DOWN?n=u.css("top",t.top+p):d==l.LEFT?n=u.css("left",t.left-p):d==l.RIGHT&&(n=u.css("left",t.left+p))),s.resizable&&e.ctrlKey&&(d==l.UP?(n=!0,a=u.height()-p):d==l.DOWN&&(n=!0,a=u.height()+p),d==l.LEFT?(n=!0,r=u.width()-p):d==l.RIGHT&&(n=!0,r=u.width()+p),n&&u.css({width:i(r,s.minWidth,s.maxWidth),height:i(a,s.minHeight,s.maxHeight)})),n&&e.preventDefault())},_overlay:function(t){var n=this.appendTo.children(".k-overlay"),i=this.wrapper;return n.length||(n=e("<div class='k-overlay' />")),n.insertBefore(i[0]).toggle(t).css(q,parseInt(i.css(q),10)-1),n},_windowActionHandler:function(n){var i=e(n.target).closest(".k-window-action").find(".k-icon"),r=this;g({"k-i-close":function(){r._close(!0)},"k-i-maximize":r.maximize,"k-i-minimize":r.minimize,"k-i-restore":r.restore,"k-i-refresh":r.refresh},function(e,a){return i.hasClass(e)?(n.preventDefault(),a.call(r),!1):t})},center:function(){var t=this.wrapper,n=e(window);return t.css({left:n.scrollLeft()+Math.max(0,(n.width()-t.width())/2),top:n.scrollTop()+Math.max(0,(n.height()-t.height())/2)}),this},title:function(e){var t=this,n=t.wrapper,i=t.options,r=n.find(y),a=r.children(w),o=r.outerHeight();return arguments.length?(e===!1?(n.addClass("k-window-titleless"),r.remove()):(r.length||n.prepend(d.titlebar(m(d,i))),n.css("padding-top",o),r.css("margin-top",-o)),a.text(e),t):a.text()},content:function(e){var t=this.wrapper.children(x);return e?(t.html(e),this):t.html()},open:function(){var t,n=this,i=n.wrapper,r=n.options,a=r.animation.open,o=i.children(x),s=o.css(W);return n.trigger(R)||(n.toFront(),r.visible=!0,r.modal&&(t=n._overlay(!1),a.duration?t.kendoStop().kendoAnimate({effects:"fade:in",duration:a.duration}):t.css("opacity",.5).show()),i.is(A)||(o.css(W,N),i.show().kendoStop().kendoAnimate({effects:a.effects,duration:a.duration,complete:function(){n.element.focus(),n.trigger(H),o.css(W,s)}}))),r.isMaximized&&(n._documentScrollTop=e(document).scrollTop(),e("html, body").css(W,N)),n},_close:function(n){var i,o,s,l=this,d=l.wrapper,c=l.options,u=c.animation.open,p=c.animation.close;d.is(A)&&!l.trigger(O,{userTriggered:!!n})&&(c.visible=!1,i=a(c.name),o=c.modal&&1==i.length&&i[0]==l.wrapper[0],s=c.modal?l._overlay(!0):e(t),o?p.duration?s.kendoStop().kendoAnimate({effects:"fade:out",duration:p.duration,hide:!0}):s.hide():i.length&&r(i.eq(i.length-2),c.name)._overlay(!0),d.kendoStop().kendoAnimate({effects:p.effects||u.effects,reverse:p.reverse===!0,duration:p.duration,complete:function(){d.hide(),l.trigger(z)}})),l.options.isMaximized&&(e("html, body").css(W,""),l._documentScrollTop&&l._documentScrollTop>0&&e(document).scrollTop(l._documentScrollTop))},close:function(){return this._close(!1),this},toFront:function(){var t=this,n=t.wrapper,i=n[0],r=+n.css(q),a=r;
|
27
|
+
return e(b).each(function(t,n){var a=e(n),o=a.css(q),s=a.find(x);isNaN(o)||(r=Math.max(+o,r)),n!=i&&s.find("> ."+S).length>0&&s.append(d.overlay)}),(10001==r||r>a)&&(n.css(q,r+2),t.element.find("> .k-overlay").remove()),t.element.focus(),t},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var t=this,n=t.options,i=t.restoreOptions;if(n.isMaximized||n.isMinimized)return t.wrapper.css({position:"absolute",left:i.left,top:i.top,width:i.width,height:i.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(V).parent().show(),e("html, body").css(W,""),this._documentScrollTop&&this._documentScrollTop>0&&e(document).scrollTop(this._documentScrollTop),n.isMaximized=n.isMinimized=!1,t.trigger(P),t},maximize:o("maximize",function(){var t=this,n=t.wrapper,i=n.position();m(t.restoreOptions,{left:i.left,top:i.top}),n.css({left:0,top:0,position:"fixed"}),this._documentScrollTop=e(document).scrollTop(),e("html, body").css(W,N),t.options.isMaximized=!0,t._onDocumentResize()}),minimize:o("minimize",function(){var e=this;e.wrapper.css("height",""),e.element.hide(),e.options.isMinimized=!0}),_onDocumentResize:function(){var t=this,n=t.wrapper,i=e(window);t.options.isMaximized&&(n.css({width:i.width(),height:i.height()-parseInt(n.css("padding-top"),10)}),t.trigger(P))},refresh:function(t){var i,r,a,o=this,s=o.options,l=e(o.element);return f(t)||(t={url:t}),t=m({},s.content,t),r=n(s.iframe)?s.iframe:t.iframe,a=t.url,a?(n(r)||(r=!$(a)),r?(i=l.find("."+S)[0],i?i.src=a||i.src:l.html(d.contentFrame(m({},s,{content:t}))),l.find("."+S).unbind("load"+k).on("load"+k,function(){o.trigger(M)})):o._ajaxRequest(t)):(t.template&&o.content(v(t.template)({})),o.trigger(M)),o},_ajaxRequest:function(e){var t=this,n=e.template,i=t.wrapper.find(".k-window-titlebar .k-i-refresh"),r=setTimeout(function(){i.addClass(F)},100);jQuery.ajax(m({type:"GET",dataType:"html",cache:!1,error:h(function(e,n){t.trigger(U,{status:n,xhr:e})},t),complete:function(){clearTimeout(r),i.removeClass(F)},success:h(function(e){n&&(e=v(n)(e||{})),t.element.html(e),t.trigger(M)},t)},e))},destroy:function(){var t,n,i=this;u.fn.destroy.call(i),c.destroy(i.wrapper),i.resizing&&i.resizing.destroy(),i.dragging&&i.dragging.destroy(),i.wrapper.remove().add(i.wrapper.find(".k-resize-handle,.k-window-titlebar")).off(k),e(window).off("resize",i._resizeHandler),t=a(),n=i.options.modal&&!t.length,n?i._overlay(!1).remove():t.length>0&&r(t.eq(t.length-2),i.options.name)._overlay(!0)},_createWindow:function(){var t,n,i=this,r=i.element,a=i.options,o=c.support.isRtl(r);a.scrollable===!1&&r.attr("style","overflow:hidden;"),a.iframe&&a.content&&r.html(d.contentFrame(a)),n=e(d.wrapper(a)),a.title!==!1&&n.append(d.titlebar(m(d,a))),t=r.find("iframe:not(.k-content)").map(function(){var e=this.getAttribute("src");return this.src="",e}),n.toggleClass("k-rtl",o).appendTo(i.appendTo).append(r).find("iframe:not(.k-content)").each(function(e){this.src=t[e]}),n.find(".k-window-title").css(o?"left":"right",n.find(".k-window-actions").outerWidth()+10),r.show()}});d={wrapper:v("<div class='k-widget k-window' />"),action:v("<a role='button' href='\\#' class='k-window-action k-link'><span role='presentation' class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:v("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:v("<iframe frameborder='0' title='#= title #' class='"+S+"' "+"src='#= content.url #'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:v("<div class='k-resize-handle k-resize-#= data #'></div>")},s.prototype={dragstart:function(t){var n=this,i=n.owner,r=i.wrapper;n.elementPadding=parseInt(i.wrapper.css("padding-top"),10),n.initialCursorPosition=r.offset(),n.resizeDirection=t.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),n.initialSize={width:r.width(),height:r.height()},n.containerOffset=i.appendTo.offset(),r.append(d.overlay).find(C).not(t.currentTarget).hide(),e(_).css(I,t.currentTarget.css(I))},drag:function(e){var t,n,r,a,o=this,s=o.owner,l=s.wrapper,d=s.options,c=o.resizeDirection,u=o.containerOffset,p=o.initialCursorPosition,f=o.initialSize,h=e.x.location,m=e.y.location;c.indexOf("e")>=0?(t=h-p.left,l.width(i(t,d.minWidth,d.maxWidth))):c.indexOf("w")>=0&&(a=p.left+f.width,t=i(a-h,d.minWidth,d.maxWidth),l.css({left:a-t-u.left,width:t})),c.indexOf("s")>=0?(n=m-p.top-o.elementPadding,l.height(i(n,d.minHeight,d.maxHeight))):c.indexOf("n")>=0&&(r=p.top+f.height,n=i(r-m,d.minHeight,d.maxHeight),l.css({top:r-n-u.top,height:n})),s.trigger(P)},dragend:function(t){var n=this,i=n.owner,r=i.wrapper;return r.find(T).remove().end().find(C).not(t.currentTarget).show(),e(_).css(I,""),i.touchScroller&&i.touchScroller.reset(),27==t.keyCode&&r.css(n.initialCursorPosition).css(n.initialSize),!1},destroy:function(){this._draggable.destroy()}},l.prototype={dragstart:function(t){var n=this.owner,i=n.element,r=i.find(".k-window-actions"),a=n.appendTo.offset();n.trigger(B),n.initialWindowPosition=n.wrapper.position(),n.startPosition={left:t.x.client-n.initialWindowPosition.left,top:t.y.client-n.initialWindowPosition.top},n.minLeftPosition=r.length>0?r.outerWidth()+parseInt(r.css("right"),10)-i.outerWidth():20-i.outerWidth(),n.minLeftPosition-=a.left,n.minTopPosition=-a.top,n.wrapper.append(d.overlay).find(C).hide(),e(_).css(I,t.currentTarget.css(I))},drag:function(t){var n=this.owner,i={left:Math.max(t.x.client-n.startPosition.left,n.minLeftPosition),top:Math.max(t.y.client-n.startPosition.top,n.minTopPosition)};e(n.wrapper).css(i)},_finishDrag:function(){var t=this.owner;t.wrapper.find(C).toggle(!t.options.isMinimized).end().find(T).remove(),e(_).css(I,"")},dragcancel:function(e){this._finishDrag(),e.currentTarget.closest(b).css(this.owner.initialWindowPosition)},dragend:function(){return this._finishDrag(),this.owner.trigger(L),!1},destroy:function(){this._draggable.destroy()}},c.ui.plugin(G)}(window.kendo.jQuery);
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
;(function(a,b){function Q(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:n,group:a.wrapper.id+"-moving",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b),dragcancel:g(b.dragcancel,b)})}function P(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:p,group:a.wrapper.id+"-resizing",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b)})}function N(a,b){return function(){var a=this,c=a.wrapper,d=c[0].style,e=a.options;if(!e.isMaximized&&!e.isMinimized){a.restoreOptions={width:d.width,height:d.height},c.find(p).hide().end().find(I).parent().hide().eq(0).before(l.action({name:"Restore"})),b.call(a);return a}}}function M(){return a(m).filter(function(){var b=a(this);return b.is(u)&&L(b).options.modal}).sort(function(b,c){return+a(b).css("zIndex")- +a(c).css("zIndex")})}function L(a){return a.children(o).data("kendoWindow")}function K(a,b,c){return Math.max(Math.min(a,c),b)}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.isPlainObject,g=a.proxy,h=a.extend,i=a.each,j=c.template,k="body",l,m=".k-window",n=".k-window-titlebar",o=".k-window-content",p=".k-resize-handle",q=".k-overlay",r="k-content-frame",s="k-loading",t="k-state-hover",u=":visible",v="hidden",w="cursor",x="open",y="activate",z="deactivate",A="close",B="refresh",C="resize",D="dragstart",E="dragend",F="error",G="overflow",H="zIndex",I=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",J=c.isLocalUrl,O=d.extend({init:function(b,e){var h=this,j,k,o,p,q=!1,r;d.fn.init.call(h,b,e),e=h.options,b=h.element,r=e.content,h.appendTo=a(e.appendTo||document.body),h._animations(),f(r)||(r=e.content={url:r}),b.parent().is(h.appendTo)||(b.is(u)?(k=b.offset(),q=!0):(o=b.css("visibility"),p=b.css("display"),b.css({visibility:v,display:""}),k=b.offset(),b.css({visibility:o,display:p}))),typeof e.visible=="undefined"&&(e.visible=b.is(u)),j=h.wrapper=b.closest(m);if(!b.is(".k-content")||!j[0])b.addClass("k-window-content k-content"),h._createWindow(b,e),j=h.wrapper=b.closest(m),h._dimensions();k&&j.css({top:k.top,left:k.left}),r&&h.refresh(r),h.toFront(),e.visible&&e.modal&&h._overlay(j.is(u)).css({opacity:.5}),j.on({mouseenter:function(){a(this).addClass(t)},mouseleave:function(){a(this).removeClass(t)},click:g(h._windowActionHandler,h)},".k-window-titlebar .k-window-action"),e.resizable&&(j.on("dblclick",n,g(h.toggleMaximization,h)),i("n e s w se sw ne nw".split(" "),function(a,b){j.append(l.resizeHandle(b))}),h.resizing=new P(h)),e.draggable&&(h.dragging=new Q(h)),j.add(j.find(".k-resize-handle,.k-window-titlebar")).on("mousedown",g(h.toFront,h)),h.touchScroller=c.touchScroller(b),a(window).resize(g(h._onDocumentResize,h)),e.visible&&(h.trigger(x),h.trigger(y)),c.notify(h)},_dimensions:function(){var a=this,b=a.wrapper,c=a.element,d=a.options;a.title(d.title),d.width&&b.width(d.width),d.height&&b.height(d.height),i(["minWidth","minHeight","maxWidth","maxHeight"],function(a,b){var e=d[b];e&&e!=Infinity&&c.css(b,e)}),d.visible||b.hide()},_animations:function(){var a=this.options;a.animation===!1&&(a.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(a){d.fn.setOptions.call(this,a),this._animations(),this._dimensions()},events:[x,y,z,A,B,C,D,E,F],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350,show:!0},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:Infinity,maxHeight:Infinity},_overlay:function(b){var c=this.appendTo.children(".k-overlay"),d=this.wrapper;c.length||(c=a("<div class='k-overlay' />")),c.insertBefore(d[0]).toggle(b).css(H,parseInt(d.css(H),10)-1);return c},_windowActionHandler:function(b){var c=a(b.target).closest(".k-window-action").find(".k-icon"),d=this;i({"k-i-close":d.close,"k-i-maximize":d.maximize,"k-i-minimize":d.minimize,"k-i-restore":d.restore,"k-i-refresh":d.refresh},function(a,e){if(c.hasClass(a)){b.preventDefault(),e.call(d);return!1}})},center:function(){var b=this.wrapper,c=a(window);b.css({left:c.scrollLeft()+Math.max(0,(c.width()-b.width())/2),top:c.scrollTop()+Math.max(0,(c.height()-b.height())/2)});return this},title:function(a){var b=this,c=b.wrapper,d=b.options,e=c.find(n),f=e.children(".k-window-title"),g=e.outerHeight();if(!arguments.length)return f.text();a===!1?(c.addClass("k-window-titleless"),e.remove()):(e.length||c.prepend(l.titlebar(h(l,d))),c.css("padding-top",g),e.css("margin-top",-g)),f.text(a);return b},content:function(a){var b=this.wrapper.children(o);if(!a)return b.html();b.html(a);return this},open:function(){var b=this,c=b.wrapper,d=b.options,e=d.animation.open,f=c.children(o),g=f.css(G),h;b.trigger(x)||(b.toFront(),d.visible=!0,d.modal&&(h=b._overlay(!1),e.duration?h.kendoStop().kendoAnimate({effects:{fade:{direction:"out",properties:{opacity:.5}}},duration:e.duration,show:!0}):h.css("opacity",.5).show()),c.is(u)||(f.css(G,v),c.show().kendoStop().kendoAnimate({effects:e.effects,duration:e.duration,complete:function(){b.trigger(y),f.css(G,g)}}))),d.isMaximized&&(b._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v));return b},close:function(){var c=this,d=c.wrapper,e=c.options,f=e.animation.open,g=e.animation.close,h,i,j;d.is(u)&&!c.trigger(A)&&(e.visible=!1,h=M(),i=e.modal&&h.length==1,j=e.modal?c._overlay(!0):a(b),i?g.duration?j.kendoStop().kendoAnimate({effects:{fadeOut:{properties:{opacity:0}}},duration:g.duration,hide:!0}):j.hide():h.length&&L(h.eq(h.length-2))._overlay(!0),d.kendoStop().kendoAnimate({effects:g.effects||f.effects,reverse:g.reverse===!0,duration:g.duration,complete:function(){d.hide(),c.trigger(z)}})),c.options.isMaximized&&(a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop));return c},toFront:function(){var b=this,c=b.wrapper,d=c[0],e=+c.css(H),f=e;a(m).each(function(b,c){var f=a(c),g=f.css(H),h=f.find(o);isNaN(g)||(e=Math.max(+g,e)),c!=d&&h.find("> ."+r).length>0&&h.append(l.overlay)});if(e==10001||f<e)c.css(H,e+2),b.element.find("> .k-overlay").remove();return b},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var b=this,c=b.options,d=b.restoreOptions;if(!!c.isMaximized||!!c.isMinimized){b.wrapper.css({position:"absolute",left:d.left,top:d.top,width:d.width,height:d.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(I).parent().show(),a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop),c.isMaximized=c.isMinimized=!1,b.trigger(C);return b}},maximize:N("maximize",function(){var b=this,c=b.wrapper,d=c.position();h(b.restoreOptions,{left:d.left,top:d.top}),c.css({left:0,top:0,position:"fixed"}),this._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v),b.options.isMaximized=!0,b._onDocumentResize()}),minimize:N("minimize",function(){var a=this;a.wrapper.css("height",""),a.element.hide(),a.options.isMinimized=!0}),_onDocumentResize:function(){var b=this,c=b.wrapper,d=a(window);!b.options.isMaximized||(c.css({width:d.width(),height:d.height()-parseInt(c.css("padding-top"),10)}),b.trigger(C))},refresh:function(b){var c=this,d=c.options,e=a(c.element),g,i=d.iframe,k;f(b)||(b={url:b}),b=h({},d.content,b),k=b.url,k?(typeof i=="undefined"&&(i=!J(k)),i?(g=e.find("."+r)[0],g?g.src=k||g.src:e.html(l.contentFrame(h({},d,{content:b})))):c._ajaxRequest(b)):b.template&&c.content(j(b.template)({}));return c},_ajaxRequest:function(b){var c=this,d=b.template,e=c.wrapper.find(".k-window-titlebar .k-i-refresh"),f=setTimeout(function(){e.addClass(s)},100);a.ajax(h({type:"GET",dataType:"html",cache:!1,error:g(function(a,b){c.trigger(F)},c),complete:function(){clearTimeout(f),e.removeClass(s)},success:g(function(a,b){d&&(a=j(d)(a||{})),c.element.html(a),c.trigger(B)},c)},b))},destroy:function(){var a=this,b,c;a.wrapper.remove(),b=M(),c=a.options.modal&&!b.length,c?a._overlay(!1).remove():b.length>0&&L(b.eq(b.length-2))._overlay(!0)},_createWindow:function(){var b=this,c=b.element,d=b.options,e,f;d.scrollable===!1&&c.attr("style","overflow:hidden;"),d.iframe&&c.html(l.contentFrame(d)),f=a(l.wrapper(d)),d.title!==!1&&f.append(l.titlebar(h(l,d))),f.toggleClass("k-rtl",!!b.element.closest(".k-rtl").length),e=c.find("iframe").map(function(a){var b=this.getAttribute("src");this.src="";return b}),f.appendTo(b.appendTo).append(c).find("iframe").each(function(a){this.src=e[a]}),c.show()}});l={wrapper:j("<div class='k-widget k-window' />"),action:j("<a href='\\#' class='k-window-action k-link'><span class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:j("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions k-header'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:j("<iframe src='#= content.url #' title='#= title #' frameborder='0' class='"+r+"'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:j("<div class='k-resize-handle k-resize-#= data #'></div>")},P.prototype={dragstart:function(b){var c=this,d=c.owner,e=d.wrapper;c.elementPadding=parseInt(d.wrapper.css("padding-top"),10),c.initialCursorPosition=e.offset(),c.resizeDirection=b.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),c.initialSize={width:e.width(),height:e.height()},c.containerOffset=d.appendTo.offset(),e.append(l.overlay).find(p).not(b.currentTarget).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(a){var b=this,c=b.owner,d=c.wrapper,e=c.options,f=b.resizeDirection,g=b.containerOffset,h=b.initialCursorPosition,i=b.initialSize,j,k,l,m,n=a.x.location,o=a.y.location;f.indexOf("e")>=0?(j=n-h.left,d.width(K(j,e.minWidth,e.maxWidth))):f.indexOf("w")>=0&&(m=h.left+i.width,j=K(m-n,e.minWidth,e.maxWidth),d.css({left:m-j-g.left,width:j})),f.indexOf("s")>=0?(k=o-h.top-b.elementPadding,d.height(K(k,e.minHeight,e.maxHeight))):f.indexOf("n")>=0&&(l=h.top+i.height,k=K(l-o,e.minHeight,e.maxHeight),d.css({top:l-k-g.top,height:k})),c.trigger(C)},dragend:function(b){var c=this,d=c.owner,e=d.wrapper;e.find(q).remove().end().find(p).not(b.currentTarget).show(),a(k).css(w,""),d.touchScroller&&d.touchScroller.reset(),b.keyCode==27&&e.css(c.initialCursorPosition).css(c.initialSize);return!1}},Q.prototype={dragstart:function(b){var c=this.owner,d=c.element,e=d.find(".k-window-actions"),f=c.appendTo.offset();c.trigger(D),c.initialWindowPosition=c.wrapper.position(),c.startPosition={left:b.x.client-c.initialWindowPosition.left,top:b.y.client-c.initialWindowPosition.top},e.length>0?c.minLeftPosition=e.outerWidth()+parseInt(e.css("right"),10)-d.outerWidth():c.minLeftPosition=20-d.outerWidth(),c.minLeftPosition-=f.left,c.minTopPosition=-f.top,c.wrapper.append(l.overlay).find(p).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(b){var c=this.owner,d={left:Math.max(b.x.client-c.startPosition.left,c.minLeftPosition),top:Math.max(b.y.client-c.startPosition.top,c.minTopPosition)};a(c.wrapper).css(d)},dragcancel:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),b.currentTarget.closest(m).css(c.initialWindowPosition)},dragend:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),c.trigger(E);return!1}},c.ui.plugin(O)})(jQuery);
|
11
|
+
(function(e,i){function t(e){return e!==i}function n(e,i,t){return Math.max(Math.min(e,t),i)}function o(e,i){var t=e.children(b);return t.data("kendoWindow")||t.data("kendo"+i)}function r(i){return e(z).filter(function(){var t=e(this);return t.is(S)&&o(t,i).options.modal}).sort(function(i,t){return+e(i).css("zIndex")-+e(t).css("zIndex")})}function s(e,i){return function(){var e=this,t=e.wrapper,n=t[0].style,o=e.options;if(!o.isMaximized&&!o.isMinimized)return e.restoreOptions={width:n.width,height:n.height},t.find(_).hide().end().find(U).parent().hide().eq(0).before(c.action({name:"Restore"})),i.call(e),e}}function a(e){var i=this;i.owner=e,i._draggable=new h(e.wrapper,{filter:_,group:e.wrapper.id+"-resizing",dragstart:m(i.dragstart,i),drag:m(i.drag,i),dragend:m(i.dragend,i)})}function d(e){var i=this;i.owner=e,i._draggable=new h(e.wrapper,{filter:x,group:e.wrapper.id+"-moving",dragstart:m(i.dragstart,i),drag:m(i.drag,i),dragend:m(i.dragend,i),dragcancel:m(i.dragcancel,i)})}var c,l=window.kendo,p=l.ui.Widget,h=l.ui.Draggable,f=e.isPlainObject,m=e.proxy,u=e.extend,g=e.each,w=l.template,v="body",k=".kendoWindow",z=".k-window",y=".k-window-title",x=y+"bar",b=".k-window-content",_=".k-resize-handle",T=".k-overlay",W="k-content-frame",M="k-loading",H="k-state-hover",P="k-state-focused",S=":visible",C="hidden",O="cursor",D="open",F="activate",I="deactivate",R="close",L="refresh",A="resize",j="dragstart",q="dragend",N="error",E="overflow",G="zIndex",U=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",K=".k-window-titlebar .k-window-action",Q=l.isLocalUrl,B=p.extend({init:function(i,n){var o,r,s,h,u,w,v,_=this,T=!1;p.fn.init.call(_,i,n),n=_.options,i=_.element,u=n.content,_.appendTo=e(n.appendTo||document.body),_._animations(),u&&!f(u)&&(u=n.content={url:u}),i.parent().is(_.appendTo)||(i.is(S)?(r=i.offset(),T=!0):(s=i.css("visibility"),h=i.css("display"),i.css({visibility:C,display:""}),r=i.offset(),i.css({visibility:s,display:h}))),t(n.visible)||(n.visible=i.is(S)),o=_.wrapper=i.closest(z),i.is(".k-content")&&o[0]||(i.addClass("k-window-content k-content"),_._createWindow(i,n),o=_.wrapper=i.closest(z),_._dimensions()),r&&o.css({top:r.top,left:r.left}),u&&_.refresh(u),_.toFront(),w=o.children(b),_._tabindex(w),n.visible&&n.modal&&_._overlay(o.is(S)).css({opacity:.5}),o.on("mouseenter"+k,K,function(){e(this).addClass(H)}).on("mouseleave"+k,K,function(){e(this).removeClass(H)}).on("touchend"+k+" click"+k,K,m(_._windowActionHandler,_)),w.on("keydown"+k,m(_._keydown,_)).on("focus"+k,function(){o.addClass(P)}).on("blur"+k,function(){o.removeClass(P)}),n.resizable&&(o.on("dblclick"+k,x,m(_.toggleMaximization,_)),g("n e s w se sw ne nw".split(" "),function(e,i){o.append(c.resizeHandle(i))}),_.resizing=new a(_)),n.draggable&&(_.dragging=new d(_)),v=i.attr("id"),v&&(v+="_wnd_title",o.find(x).children(y).attr("id",v),w.attr({role:"dialog","aria-labelledby":v})),o.add(o.find(".k-resize-handle,.k-window-titlebar")).on("mousedown"+k,m(_.toFront,_)),_.touchScroller=l.touchScroller(i),_._resizeHandler=function(e){return _._onDocumentResize(e)},e(window).on("resize",_._resizeHandler),n.visible&&(_.trigger(D),_.trigger(F)),l.notify(_)},_dimensions:function(){var e=this,i=e.wrapper,t=e.element,n=e.options;e.title(n.title),n.width&&i.width(n.width),n.height&&i.height(n.height),g(["minWidth","minHeight","maxWidth","maxHeight"],function(e,i){var o=n[i];o&&1/0!=o&&t.css(i,o)}),n.visible||i.hide()},_animations:function(){var e=this.options;e.animation===!1&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(e){p.fn.setOptions.call(this,e),this._animations(),this._dimensions()},events:[D,F,I,R,L,A,j,q,N],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0},_keydown:function(e){var i,t,o,r,s=this,a=s.options,d=l.keys,c=e.keyCode,p=s.wrapper,h=10;e.target==e.currentTarget&&(c==d.ESC&&s._close(!0),a.draggable&&!e.ctrlKey&&(i=p.offset(),c==d.UP?t=p.css("top",i.top-h):c==d.DOWN?t=p.css("top",i.top+h):c==d.LEFT?t=p.css("left",i.left-h):c==d.RIGHT&&(t=p.css("left",i.left+h))),a.resizable&&e.ctrlKey&&(c==d.UP?(t=!0,r=p.height()-h):c==d.DOWN&&(t=!0,r=p.height()+h),c==d.LEFT?(t=!0,o=p.width()-h):c==d.RIGHT&&(t=!0,o=p.width()+h),t&&p.css({width:n(o,a.minWidth,a.maxWidth),height:n(r,a.minHeight,a.maxHeight)})),t&&e.preventDefault())},_overlay:function(i){var t=this.appendTo.children(".k-overlay"),n=this.wrapper;return t.length||(t=e("<div class='k-overlay' />")),t.insertBefore(n[0]).toggle(i).css(G,parseInt(n.css(G),10)-1),t},_windowActionHandler:function(t){var n=e(t.target).closest(".k-window-action").find(".k-icon"),o=this;g({"k-i-close":function(){o._close(!0)},"k-i-maximize":o.maximize,"k-i-minimize":o.minimize,"k-i-restore":o.restore,"k-i-refresh":o.refresh},function(e,r){return n.hasClass(e)?(t.preventDefault(),r.call(o),!1):i})},center:function(){var i=this.wrapper,t=e(window);return i.css({left:t.scrollLeft()+Math.max(0,(t.width()-i.width())/2),top:t.scrollTop()+Math.max(0,(t.height()-i.height())/2)}),this},title:function(e){var i=this,t=i.wrapper,n=i.options,o=t.find(x),r=o.children(y),s=o.outerHeight();return arguments.length?(e===!1?(t.addClass("k-window-titleless"),o.remove()):(o.length||t.prepend(c.titlebar(u(c,n))),t.css("padding-top",s),o.css("margin-top",-s)),r.text(e),i):r.text()},content:function(e){var i=this.wrapper.children(b);return e?(i.html(e),this):i.html()},open:function(){var i,t=this,n=t.wrapper,o=t.options,r=o.animation.open,s=n.children(b),a=s.css(E);return t.trigger(D)||(t.toFront(),o.visible=!0,o.modal&&(i=t._overlay(!1),r.duration?i.kendoStop().kendoAnimate({effects:"fade:in",duration:r.duration}):i.css("opacity",.5).show()),n.is(S)||(s.css(E,C),n.show().kendoStop().kendoAnimate({effects:r.effects,duration:r.duration,complete:function(){t.element.focus(),t.trigger(F),s.css(E,a)}}))),o.isMaximized&&(t._documentScrollTop=e(document).scrollTop(),e("html, body").css(E,C)),t},_close:function(t){var n,s,a,d=this,c=d.wrapper,l=d.options,p=l.animation.open,h=l.animation.close;c.is(S)&&!d.trigger(R,{userTriggered:!!t})&&(l.visible=!1,n=r(l.name),s=l.modal&&1==n.length&&n[0]==d.wrapper[0],a=l.modal?d._overlay(!0):e(i),s?h.duration?a.kendoStop().kendoAnimate({effects:"fade:out",duration:h.duration,hide:!0}):a.hide():n.length&&o(n.eq(n.length-2),l.name)._overlay(!0),c.kendoStop().kendoAnimate({effects:h.effects||p.effects,reverse:h.reverse===!0,duration:h.duration,complete:function(){c.hide(),d.trigger(I)}})),d.options.isMaximized&&(e("html, body").css(E,""),d._documentScrollTop&&d._documentScrollTop>0&&e(document).scrollTop(d._documentScrollTop))},close:function(){return this._close(!1),this},toFront:function(){var i=this,t=i.wrapper,n=t[0],o=+t.css(G),r=o;return e(z).each(function(i,t){var r=e(t),s=r.css(G),a=r.find(b);isNaN(s)||(o=Math.max(+s,o)),t!=n&&a.find("> ."+W).length>0&&a.append(c.overlay)}),(10001==o||o>r)&&(t.css(G,o+2),i.element.find("> .k-overlay").remove()),i.element.focus(),i},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var i=this,t=i.options,n=i.restoreOptions;if(t.isMaximized||t.isMinimized)return i.wrapper.css({position:"absolute",left:n.left,top:n.top,width:n.width,height:n.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(U).parent().show(),e("html, body").css(E,""),this._documentScrollTop&&this._documentScrollTop>0&&e(document).scrollTop(this._documentScrollTop),t.isMaximized=t.isMinimized=!1,i.trigger(A),i},maximize:s("maximize",function(){var i=this,t=i.wrapper,n=t.position();u(i.restoreOptions,{left:n.left,top:n.top}),t.css({left:0,top:0,position:"fixed"}),this._documentScrollTop=e(document).scrollTop(),e("html, body").css(E,C),i.options.isMaximized=!0,i._onDocumentResize()}),minimize:s("minimize",function(){var e=this;e.wrapper.css("height",""),e.element.hide(),e.options.isMinimized=!0}),_onDocumentResize:function(){var i=this,t=i.wrapper,n=e(window);i.options.isMaximized&&(t.css({width:n.width(),height:n.height()-parseInt(t.css("padding-top"),10)}),i.trigger(A))},refresh:function(i){var n,o,r,s=this,a=s.options,d=e(s.element);return f(i)||(i={url:i}),i=u({},a.content,i),o=t(a.iframe)?a.iframe:i.iframe,r=i.url,r?(t(o)||(o=!Q(r)),o?(n=d.find("."+W)[0],n?n.src=r||n.src:d.html(c.contentFrame(u({},a,{content:i}))),d.find("."+W).unbind("load"+k).on("load"+k,function(){s.trigger(L)})):s._ajaxRequest(i)):(i.template&&s.content(w(i.template)({})),s.trigger(L)),s},_ajaxRequest:function(e){var i=this,t=e.template,n=i.wrapper.find(".k-window-titlebar .k-i-refresh"),o=setTimeout(function(){n.addClass(M)},100);jQuery.ajax(u({type:"GET",dataType:"html",cache:!1,error:m(function(e,t){i.trigger(N,{status:t,xhr:e})},i),complete:function(){clearTimeout(o),n.removeClass(M)},success:m(function(e){t&&(e=w(t)(e||{})),i.element.html(e),i.trigger(L)},i)},e))},destroy:function(){var i,t,n=this;p.fn.destroy.call(n),l.destroy(n.wrapper),n.resizing&&n.resizing.destroy(),n.dragging&&n.dragging.destroy(),n.wrapper.remove().add(n.wrapper.find(".k-resize-handle,.k-window-titlebar")).off(k),e(window).off("resize",n._resizeHandler),i=r(),t=n.options.modal&&!i.length,t?n._overlay(!1).remove():i.length>0&&o(i.eq(i.length-2),n.options.name)._overlay(!0)},_createWindow:function(){var i,t,n=this,o=n.element,r=n.options,s=l.support.isRtl(o);r.scrollable===!1&&o.attr("style","overflow:hidden;"),r.iframe&&r.content&&o.html(c.contentFrame(r)),t=e(c.wrapper(r)),r.title!==!1&&t.append(c.titlebar(u(c,r))),i=o.find("iframe:not(.k-content)").map(function(){var e=this.getAttribute("src");return this.src="",e}),t.toggleClass("k-rtl",s).appendTo(n.appendTo).append(o).find("iframe:not(.k-content)").each(function(e){this.src=i[e]}),t.find(".k-window-title").css(s?"left":"right",t.find(".k-window-actions").outerWidth()+10),o.show()}});c={wrapper:w("<div class='k-widget k-window' />"),action:w("<a role='button' href='\\#' class='k-window-action k-link'><span role='presentation' class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:w("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:w("<iframe frameborder='0' title='#= title #' class='"+W+"' "+"src='#= content.url #'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:w("<div class='k-resize-handle k-resize-#= data #'></div>")},a.prototype={dragstart:function(i){var t=this,n=t.owner,o=n.wrapper;t.elementPadding=parseInt(n.wrapper.css("padding-top"),10),t.initialCursorPosition=o.offset(),t.resizeDirection=i.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),t.initialSize={width:o.width(),height:o.height()},t.containerOffset=n.appendTo.offset(),o.append(c.overlay).find(_).not(i.currentTarget).hide(),e(v).css(O,i.currentTarget.css(O))},drag:function(e){var i,t,o,r,s=this,a=s.owner,d=a.wrapper,c=a.options,l=s.resizeDirection,p=s.containerOffset,h=s.initialCursorPosition,f=s.initialSize,m=e.x.location,u=e.y.location;l.indexOf("e")>=0?(i=m-h.left,d.width(n(i,c.minWidth,c.maxWidth))):l.indexOf("w")>=0&&(r=h.left+f.width,i=n(r-m,c.minWidth,c.maxWidth),d.css({left:r-i-p.left,width:i})),l.indexOf("s")>=0?(t=u-h.top-s.elementPadding,d.height(n(t,c.minHeight,c.maxHeight))):l.indexOf("n")>=0&&(o=h.top+f.height,t=n(o-u,c.minHeight,c.maxHeight),d.css({top:o-t-p.top,height:t})),a.trigger(A)},dragend:function(i){var t=this,n=t.owner,o=n.wrapper;return o.find(T).remove().end().find(_).not(i.currentTarget).show(),e(v).css(O,""),n.touchScroller&&n.touchScroller.reset(),27==i.keyCode&&o.css(t.initialCursorPosition).css(t.initialSize),!1},destroy:function(){this._draggable.destroy()}},d.prototype={dragstart:function(i){var t=this.owner,n=t.element,o=n.find(".k-window-actions"),r=t.appendTo.offset();t.trigger(j),t.initialWindowPosition=t.wrapper.position(),t.startPosition={left:i.x.client-t.initialWindowPosition.left,top:i.y.client-t.initialWindowPosition.top},t.minLeftPosition=o.length>0?o.outerWidth()+parseInt(o.css("right"),10)-n.outerWidth():20-n.outerWidth(),t.minLeftPosition-=r.left,t.minTopPosition=-r.top,t.wrapper.append(c.overlay).find(_).hide(),e(v).css(O,i.currentTarget.css(O))},drag:function(i){var t=this.owner,n={left:Math.max(i.x.client-t.startPosition.left,t.minLeftPosition),top:Math.max(i.y.client-t.startPosition.top,t.minTopPosition)};e(t.wrapper).css(n)},_finishDrag:function(){var i=this.owner;i.wrapper.find(_).toggle(!i.options.isMinimized).end().find(T).remove(),e(v).css(O,"")},dragcancel:function(e){this._finishDrag(),e.currentTarget.closest(z).css(this.owner.initialWindowPosition)},dragend:function(){return this._finishDrag(),this.owner.trigger(q),!1},destroy:function(){this._draggable.destroy()}},l.ui.plugin(B)})(window.kendo.jQuery);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
.k-block,.k-widget{background-color:#4d4d4d}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#2e2e2e}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#555}.k-list-container{border-color:#2e2e2e;background-color:#272727}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#3d3d3d}.k-alt,.k-separator{background-color:#525252}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#2e2e2e;background-color:#272727}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#2e2e2e}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#181818}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#fff}.k-link:link,.k-link:visited{color:#fff}.k-header{color:#fff}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/glass.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#1d1d1d}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('Black/sprite.png')}.k-loading{background-image:url('Black/loading.gif')}.k-loading-image{background-image:url('Black/loading-image.gif')}.k-loading-color{background-color:#666}.k-button{color:#fff}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#2e2e2e;background-color:#1d1d1d}.k-button:hover,.k-draghandle:hover{border-color:#222;background-color:#474747}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#4d4d4d;border-color:#020202;color:#fff}.k-state-focused{color:#fff;background-color:#474747;border-color:#222}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#0070e4;border-color:#004483}.k-state-selected.k-state-focused{background-color:#005cbb}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#fff;background-color:#474747;border-color:#222}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#fff}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#4d4d4d;border-color:#2e2e2e}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#fff}.k-dropdown .k-state-focused .k-input{color:#fff}.k-state-error{border-color:#ff9b9b;background-color:#ff5252;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#7e7e7e}.k-slider-track{background-color:#1d1d1d}.k-slider-selection{background-color:#0070e4}.k-slider-horizontal .k-tick{background-image:url('Black/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Black/slider-v.gif')}.k-tooltip{border-color:#030303;background-color:#fff;color:#062430}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#4c4c4c}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#fff}.k-progress-status{border-color:#222 transparent}.k-tile{border-color:#3d3d3d}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#222}.k-tiles li.k-state-selected{border-color:#004483}.k-tile .k-folder{background-image:url('Black/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #aaa;-webkit-box-shadow:inset 0 0 1px 1px #aaa}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
11
|
+
.k-in,.k-item,.k-window-action{border-color:transparent}.k-block,.k-widget{background-color:#4d4d4d}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid td.k-state-selected,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-tooltip,.k-progress{border-color:#2b2b2b}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#555}.k-list-container{border-color:#2b2b2b;background-color:#272727}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#3d3d3d}.k-alt,.k-separator{background-color:#525252}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,span.k-dropdown-wrap.k-state-active,span.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#2b2b2b;background-color:#272727}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#2b2b2b}input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background:0}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#181818}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#fff}.k-link:link,.k-link:visited{color:#fff}.k-header{color:#fff}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-pager-wrap,.k-textbox,.k-button,.k-draghandle,.k-tile,.k-autocomplete,.k-state-highlight,.k-tabstrip-items .k-item{background-image:url('textures/glass.png');background-image:none,-webkit-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%);background-image:none,-moz-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%);background-image:none,-o-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%);background-image:none,linear-gradient(to bottom,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%)}.k-tabstrip-items .k-state-active{background:#4d4d4d}.k-tooltip{background-image:none}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#1d1d1d}.k-icon,.k-column-menu .k-sprite{opacity:.85}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-column-menu .k-sprite{background-image:url('Black/sprite.png');border-color:transparent}.k-loading,.k-state-hover .k-loading{background-image:url('Black/loading.gif');background-position:50% 50%}.k-loading-image{background-image:url('Black/loading-image.gif')}.k-loading-color{background-color:#666}.k-button{color:#fff}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:active,.k-state-disabled .k-button:active{border-color:#2b2b2b;background-color:#272727}.k-button:hover{color:#fff;border-color:#2b2b2b;background-color:#3d3d3d}.k-draghandle{border-color:#2b2b2b;background-color:#4d4d4d;-webkit-box-shadow:none;box-shadow:none}.k-draghandle:hover{border-color:#2b2b2b;background-color:#3d3d3d;background-image:url('textures/glass.png');background-image:none,-webkit-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);background-image:none,-moz-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);background-image:none,-o-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);background-image:none,linear-gradient(to bottom,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);-webkit-box-shadow:none;box-shadow:none}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#4d4d4d;border-color:#020202;color:#fff}.k-state-highlight{background-color:#4d4d4d;color:#fff}.k-state-focused,.k-grouping-row .k-state-focused{background-color:#3d3d3d;border-color:#2b2b2b}.k-state-selected,.k-state-selected:link,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-list>.k-state-highlight,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#06c;border-color:#06c}.k-state-selected.k-state-focused,.k-state-selected.k-state-highlight{background-color:#0052a3;border-color:#0052a3}.k-state-selected>.k-link{color:#fff}.k-state-selected,.k-button:active{background-image:url('textures/glass.png');background-image:none,-webkit-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%);background-image:none,-moz-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%);background-image:none,-o-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%);background-image:none,linear-gradient(to bottom,rgba(255,255,255,.12) 0,rgba(255,255,255,.08) 50%,rgba(255,255,255,.05) 51%,rgba(255,255,255,.0) 100%)}.k-state-hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover,.k-dropdown .k-state-focused,.k-imagebrowser-dropzone{color:#fff;background-color:#3d3d3d;border-color:#2b2b2b}.k-button:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-textbox:hover,.k-state-hover,.k-state-hover:hover,.k-pager-wrap .k-link:hover,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{background-image:url('textures/glass.png');background-image:none,-webkit-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);background-image:none,-moz-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);background-image:none,-o-linear-gradient(top,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%);background-image:none,linear-gradient(to bottom,rgba(255,255,255,.12) 0,rgba(255,255,255,.20) 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.07) 100%)}.k-autocomplete.k-state-active,.k-picker-wrap.k-state-active,.k-numeric-wrap.k-state-active,.k-dropdown-wrap.k-state-active,.k-state-active,.k-state-active:hover,.k-state-active>.k-link,.k-button:active{background-image:none}.k-tool-icon,.k-tool-icon.k-state-hover,.k-tool-icon.k-state-active,.k-tool-icon.k-state-active.k-state-hover{background-image:url('Black/sprite.png')}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{color:#fff}.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#3d3d3d;border-color:#2b2b2b}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#fff}.k-dropdown .k-state-focused .k-input{color:#fff}.k-state-error{border-color:#f00;background-color:#f00;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-button.k-state-disabled:active,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#7a7a7a}.k-slider-track{background-color:#2b2b2b}.k-slider-selection{background-color:#06c}.k-slider-horizontal .k-tick{background-image:url('Black/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Black/slider-v.gif')}.k-tooltip{border-color:#030303;background-color:#fff;color:#062430}.k-tooltip-validation{border-color:#ffb400;background-color:#ffb400;color:#080808}.k-splitbar{background-color:#4c4c4c}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#fff}.k-progress-status{border-color:#2b2b2b transparent}.k-tile{border-color:#3d3d3d}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#2b2b2b}.k-tiles li.k-state-selected{border-color:#06c}.k-tile .k-folder,.k-tile .k-file{background-image:url('Black/imagebrowser.png')}.k-widget,.k-button{-webkit-box-shadow:none;box-shadow:none}.k-slider,.k-treeview,.k-upload{-webkit-box-shadow:none;box-shadow:none}.k-state-hover,.k-state-focused{-webkit-box-shadow:none;box-shadow:none}.k-state-selected{-webkit-box-shadow:none;box-shadow:none}.k-state-active{-webkit-box-shadow:none;box-shadow:none}.k-grid-header .k-header.k-state-focused,.k-grid td.k-state-focused{background-color:#707070;-webkit-box-shadow:inset 0 0 6px #2b2b2b;box-shadow:inset 0 0 6px #2b2b2b}.k-grid td.k-state-selected.k-state-focused{-webkit-box-shadow:inset 0 0 6px #001933;box-shadow:inset 0 0 6px #001933;background-color:#006edb}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(128,128,128,0.3);box-shadow:1px 1px 7px 1px rgba(128,128,128,0.3);background-color:#4d4d4d}.k-window.k-state-focused{border-color:rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{-webkit-box-shadow:inset 0 0 1px 1px #aaa;box-shadow:inset 0 0 1px 1px #aaa}.k-shadow{-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-in,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-highlight,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#94c0d2}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#daecf4}.k-list-container{border-color:#94c0d2;background-color:#daecf4}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#eaf4f9}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#94c0d2;background-color:#daecf4}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#94c0d2}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#293135}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#293135}.k-link:link,.k-link:visited{color:#293135}.k-header{color:#293135}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/highlight.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#daecf4}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('BlueOpal/sprite.png')}.k-loading{background-image:url('BlueOpal/loading.gif')}.k-loading-image{background-image:url('BlueOpal/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#293135}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#94c0d2;background-color:#daecf4}.k-button:hover,.k-draghandle:hover{border-color:#7ec6e3;background-color:#7bd2f6}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#f5f7f8;border-color:#9aabb2;color:#293135}.k-state-focused{color:#005c83;background-color:#7bd2f6;border-color:#7ec6e3}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#005c83;border-color:#005c83}.k-state-selected.k-state-focused{background-color:#003f5a}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#005c83;background-color:#7bd2f6;border-color:#7ec6e3}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#005c83}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#7bd2f6;border-color:#7ec6e3}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#005c83}.k-dropdown .k-state-focused .k-input{color:#293135}.k-state-error{border-color:#f77;background-color:#fff1f1;color:#f60000}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#8b9097}.k-slider-track{background-color:#daecf4}.k-slider-selection{background-color:#005c83}.k-slider-horizontal .k-tick{background-image:url('BlueOpal/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('BlueOpal/slider-v.gif')}.k-tooltip{border-color:#005c83;background-color:#fff;color:#293135}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#daecf4}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#f60000}.k-progress-status{border-color:#7ec6e3 transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#7ec6e3}.k-tiles li.k-state-selected{border-color:#005c83}.k-tile .k-folder{background-image:url('BlueOpal/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #b4d5e2;-webkit-box-shadow:inset 0 0 1px 1px #b4d5e2}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
11
|
+
.k-in,.k-item,.k-window-action{border-color:transparent}.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid td.k-state-selected,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-tooltip,.k-progress{border-color:#94c0d2}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#daecf4}.k-list-container{border-color:#94c0d2;background-color:#daecf4}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#eaf4f9}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,span.k-dropdown-wrap.k-state-active,span.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#94c0d2;background-color:#daecf4}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#94c0d2}input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background:0}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#003f59}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#003f59}.k-link:link,.k-link:visited{color:#003f59}.k-header{color:#003f59}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-pager-wrap,.k-textbox,.k-button,.k-draghandle,.k-tile,.k-autocomplete,.k-state-highlight,.k-tabstrip-items .k-item{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#eaf4f9 0,#dbecf4 100%);background-image:none,-moz-linear-gradient(top,#eaf4f9 0,#dbecf4 100%);background-image:none,-o-linear-gradient(top,#eaf4f9 0,#dbecf4 100%);background-image:none,linear-gradient(to bottom,#eaf4f9 0,#dbecf4 100%)}.k-tabstrip-items .k-state-active{background:#fff}.k-tooltip{background-image:none}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#daecf4}.k-icon,.k-column-menu .k-sprite{opacity:.9}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-column-menu .k-sprite{background-image:url('BlueOpal/sprite.png');border-color:transparent}.k-loading,.k-state-hover .k-loading{background-image:url('BlueOpal/loading.gif');background-position:50% 50%}.k-loading-image{background-image:url('BlueOpal/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#003f59}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:active,.k-state-disabled .k-button:active{border-color:#94c0d2;background-color:#daecf4}.k-button:hover{color:#005c83;border-color:#7ec6e3;background-color:#7dd3f6}.k-draghandle{border-color:#94c0d2;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.k-draghandle:hover{border-color:#7ec6e3;background-color:#7dd3f6;background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#afe4fa 0,#7dd3f6 100%);background-image:none,-moz-linear-gradient(top,#afe4fa 0,#7dd3f6 100%);background-image:none,-o-linear-gradient(top,#afe4fa 0,#7dd3f6 100%);background-image:none,linear-gradient(to bottom,#afe4fa 0,#7dd3f6 100%);-webkit-box-shadow:none;box-shadow:none}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#7ec6e3;color:#003f59}.k-state-highlight{background-color:#fff;color:#003f59}.k-state-focused,.k-grouping-row .k-state-focused{background-color:#7dd3f6;border-color:#7ec6e3}.k-state-selected,.k-state-selected:link,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-list>.k-state-highlight,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#58a5c6;border-color:#58a5c6}.k-state-selected.k-state-focused,.k-state-selected.k-state-highlight{background-color:#3e93b7;border-color:#3e93b7}.k-state-selected>.k-link{color:#fff}.k-state-selected,.k-button:active{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#12739d 0,#58a5c6 100%);background-image:none,-moz-linear-gradient(top,#12739d 0,#58a5c6 100%);background-image:none,-o-linear-gradient(top,#12739d 0,#58a5c6 100%);background-image:none,linear-gradient(to bottom,#12739d 0,#58a5c6 100%)}.k-state-hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover,.k-dropdown .k-state-focused,.k-imagebrowser-dropzone{color:#005c83;background-color:#7dd3f6;border-color:#7ec6e3}.k-button:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-textbox:hover,.k-state-hover,.k-state-hover:hover,.k-pager-wrap .k-link:hover,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#afe4fa 0,#7dd3f6 100%);background-image:none,-moz-linear-gradient(top,#afe4fa 0,#7dd3f6 100%);background-image:none,-o-linear-gradient(top,#afe4fa 0,#7dd3f6 100%);background-image:none,linear-gradient(to bottom,#afe4fa 0,#7dd3f6 100%)}.k-autocomplete.k-state-active,.k-picker-wrap.k-state-active,.k-numeric-wrap.k-state-active,.k-dropdown-wrap.k-state-active,.k-state-active,.k-state-active:hover,.k-state-active>.k-link,.k-button:active{background-image:none}.k-tool-icon,.k-tool-icon.k-state-hover,.k-tool-icon.k-state-active,.k-tool-icon.k-state-active.k-state-hover{background-image:url('BlueOpal/sprite.png')}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{color:#005c83}.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#7dd3f6;border-color:#7ec6e3}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#005c83}.k-dropdown .k-state-focused .k-input{color:#003f59}.k-state-error{border-color:#f77;background-color:#fff1f1;color:#f60000}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-button.k-state-disabled:active,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#64a1bb}.k-slider-track{background-color:#94c0d2}.k-slider-selection{background-color:#58a5c6}.k-slider-horizontal .k-tick{background-image:url('BlueOpal/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('BlueOpal/slider-v.gif')}.k-tooltip{border-color:#58a5c6;background-color:#fff;color:#003f59}.k-tooltip-validation{border-color:#ffebaf;background-color:#ffebaf;color:#2e6172}.k-splitbar{background-color:#daecf4}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#f60000}.k-progress-status{border-color:#7ec6e3 transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#7ec6e3}.k-tiles li.k-state-selected{border-color:#58a5c6}.k-tile .k-folder,.k-tile .k-file{background-image:url('BlueOpal/imagebrowser.png')}.k-widget,.k-button{-webkit-box-shadow:none;box-shadow:none}.k-slider,.k-treeview,.k-upload{-webkit-box-shadow:none;box-shadow:none}.k-state-hover,.k-state-focused{-webkit-box-shadow:none;box-shadow:none}.k-state-selected{-webkit-box-shadow:inset 0 0 8px rgba(0,92,131,0.5);box-shadow:inset 0 0 8px rgba(0,92,131,0.5)}.k-state-active{-webkit-box-shadow:none;box-shadow:none}.k-grid-header .k-header.k-state-focused,.k-grid td.k-state-focused{background-color:#dcf3fd;-webkit-box-shadow:inset 0 0 6px #7ec6e3;box-shadow:inset 0 0 6px #7ec6e3}.k-grid td.k-state-selected.k-state-focused{-webkit-box-shadow:inset 0 0 6px #225063;box-shadow:inset 0 0 6px #225063;background-color:#63abca}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{-webkit-box-shadow:0 2px 2px 0 rgba(18,115,157,0.5);box-shadow:0 2px 2px 0 rgba(18,115,157,0.5)}.k-window{border-color:rgba(18,115,157,0.5);-webkit-box-shadow:1px 1px 7px 1px rgba(183,228,247,0.5);box-shadow:1px 1px 7px 1px rgba(183,228,247,0.5);background-color:#fff}.k-window.k-state-focused{border-color:rgba(18,115,157,0.5);-webkit-box-shadow:1px 1px 7px 1px rgba(18,115,157,0.5);box-shadow:1px 1px 7px 1px rgba(18,115,157,0.5)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{-webkit-box-shadow:inset 0 0 1px 1px #b4d5e2;box-shadow:inset 0 0 1px 1px #b4d5e2}.k-shadow{-webkit-box-shadow:0 1px 2px 0 rgba(18,115,157,0.5);box-shadow:0 1px 2px 0 rgba(18,115,157,0.5)}.k-inset{-webkit-box-shadow:inset 0 1px 1px rgba(18,115,157,0.5);box-shadow:inset 0 1px 1px rgba(18,115,157,0.5)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-in,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-highlight,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
7
|
+
* If you do not own a commercial license, this file shall be governed by the
|
8
|
+
* GNU General Public License (GPL) version 3.
|
9
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
10
|
+
*/
|
11
|
+
.k-in,.k-item,.k-window-action{border-color:transparent}.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid td.k-state-selected,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-tooltip,.k-progress{border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25)}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#fff}.k-list-container{border-color:rgba(0,0,0,0.2);background-color:#f5f5f5}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,span.k-dropdown-wrap.k-state-active,span.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25);background-color:#f5f5f5}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25)}input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background:0}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#333}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#333}.k-link:link,.k-link:visited{color:#333}.k-header{color:#333}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-pager-wrap,.k-textbox,.k-button,.k-draghandle,.k-tile,.k-autocomplete,.k-state-highlight,.k-tabstrip-items .k-item{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#fff 0,#e6e6e6 100%);background-image:none,-moz-linear-gradient(top,#fff 0,#e6e6e6 100%);background-image:none,-o-linear-gradient(top,#fff 0,#e6e6e6 100%);background-image:none,linear-gradient(to bottom,#fff 0,#e6e6e6 100%)}.k-tabstrip-items .k-state-active{background:#fff}.k-tooltip{background-image:none}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#f5f5f5}.k-icon,.k-column-menu .k-sprite{opacity:1}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-column-menu .k-sprite{background-image:url('Bootstrap/sprite.png');border-color:transparent}.k-loading,.k-state-hover .k-loading{background-image:url('Bootstrap/loading.gif');background-position:50% 50%}.k-loading-image{background-image:url('Bootstrap/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#333}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:active,.k-state-disabled .k-button:active{border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25);background-color:#f5f5f5}.k-button:hover{color:#fff;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);background-color:#006dcc}.k-draghandle{border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25);background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.k-draghandle:hover{border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);background-color:#006dcc;background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#08c 0,#04c 100%);background-image:none,-moz-linear-gradient(top,#08c 0,#04c 100%);background-image:none,-o-linear-gradient(top,#08c 0,#04c 100%);background-image:none,linear-gradient(to bottom,#08c 0,#04c 100%);-webkit-box-shadow:none;box-shadow:none}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#006dcc;color:#333}.k-state-highlight{background-color:#fff;color:#333}.k-state-focused,.k-grouping-row .k-state-focused{background-color:#006dcc;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.k-state-selected,.k-state-selected:link,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-list>.k-state-highlight,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#04c;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.k-state-selected.k-state-focused,.k-state-selected.k-state-highlight{background-color:#0036a3;border-color:#0036a3}.k-state-selected>.k-link{color:#fff}.k-state-selected,.k-button:active{background-image:none}.k-state-hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover,.k-dropdown .k-state-focused,.k-imagebrowser-dropzone{color:#fff;background-color:#006dcc;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.k-button:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-textbox:hover,.k-state-hover,.k-state-hover:hover,.k-pager-wrap .k-link:hover,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#08c 0,#04c 100%);background-image:none,-moz-linear-gradient(top,#08c 0,#04c 100%);background-image:none,-o-linear-gradient(top,#08c 0,#04c 100%);background-image:none,linear-gradient(to bottom,#08c 0,#04c 100%)}.k-autocomplete.k-state-active,.k-picker-wrap.k-state-active,.k-numeric-wrap.k-state-active,.k-dropdown-wrap.k-state-active,.k-state-active,.k-state-active:hover,.k-state-active>.k-link,.k-button:active{background-image:none}.k-tool-icon,.k-tool-icon.k-state-hover,.k-tool-icon.k-state-active,.k-tool-icon.k-state-active.k-state-hover{background-image:url('Bootstrap/sprite.png')}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{color:#fff}.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#006dcc;border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25)}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#fff}.k-dropdown .k-state-focused .k-input{color:#333}.k-state-error{border-color:#eed3d7;background-color:#f2dede;color:#b94a48}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-button.k-state-disabled:active,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#999}.k-slider-track{background-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25)}.k-slider-selection{background-color:#04c}.k-slider-horizontal .k-tick{background-image:url('Bootstrap/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Bootstrap/slider-v.gif')}.k-tooltip{border-color:#04c;background-color:#04c;color:#fff}.k-tooltip-validation{border-color:#fbeed5;background-color:#fcf8e3;color:#c09853}.k-splitbar{background-color:#f5f5f5}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#b94a48}.k-progress-status{border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25) transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.k-tiles li.k-state-selected{border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.k-tile .k-folder,.k-tile .k-file{background-image:url('Bootstrap/imagebrowser.png')}.k-widget,.k-button{-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.k-slider,.k-treeview,.k-upload{-webkit-box-shadow:none;box-shadow:none}.k-state-hover,.k-state-focused{-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.2) inset,0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 0 rgba(255,255,255,0.2) inset,0 1px 2px rgba(0,0,0,0.05)}.k-state-selected{-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.15) inset,0 1px 2px rgba(0,0,0,0.05);box-shadow:0 2px 4px rgba(0,0,0,0.15) inset,0 1px 2px rgba(0,0,0,0.05)}.k-state-active{-webkit-box-shadow:none;box-shadow:none}.k-grid-header .k-header.k-state-focused,.k-grid td.k-state-focused{background-color:#33a0ff;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);box-shadow:inset 0 0 6px rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.k-grid td.k-state-selected.k-state-focused{-webkit-box-shadow:inset 0 0 6px #013;box-shadow:inset 0 0 6px #013;background-color:#0049db}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.2)}.k-window{border-color:rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 7px 1px rgba(128,128,128,0.2);box-shadow:1px 1px 7px 1px rgba(128,128,128,0.2);background-color:#fff}.k-window.k-state-focused{border-color:rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.2)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{-webkit-box-shadow:inset 0 0 1px 1px #ccc;box-shadow:inset 0 0 1px 1px #ccc}.k-shadow{-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);box-shadow:0 1px 2px 0 rgba(0,0,0,0.2)}.k-inset{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.2);box-shadow:inset 0 1px 1px rgba(0,0,0,0.2)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-in,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 6px 6px;-webkit-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 6px 6px 0;-webkit-border-radius:0 6px 6px 0;border-radius:0 6px 6px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-highlight,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
.fake{color:red}.k-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.k-floatwrap:after,.k-slider-items:after,.k-grid-toolbar:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:inline-block}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:block}.k-block,.k-button,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-tabstrip-items .k-item,.k-link.k-state-hover,.k-textbox,.k-textbox:hover,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-autocomplete.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-draghandle{background-repeat:repeat-x;background-position:0 center}.k-tabstrip,.k-menu-vertical,.k-editor,.k-tooltip,.k-state-hover,.k-state-focused,.k-state-selected{background-position:0 -258px}.k-block,.k-widget,.k-inline-block,.k-textbox>input,.k-input[type="text"],.k-input[type="number"],.k-textbox,.k-picker-wrap .k-input,.k-button,.k-draghandle{font-size:100%;font-family:inherit;border-style:solid;border-width:1px;-webkit-appearance:none}.k-block,.k-widget{line-height:normal}.k-block{width:200px;height:100px;padding:2px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-button{display:inline-block;margin:0;padding:2px 7px 2px;font-family:inherit;line-height:1.66em;text-align:center;cursor:pointer;outline:0;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}a.k-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-button:-moz-any(input){padding-bottom:.37em;padding-top:.37em}*+html .k-button{overflow:visible;margin-right:4px}*+html a.k-button{line-height:1.6;padding-left:7px;padding-right:7px}*+html .k-button-expand{margin-left:0;margin-right:0}button.k-button::-moz-focus-inner,input.k-button::-moz-focus-inner{padding:0;border:0}a.k-button-expand{display:block}button.k-button-expand,input[type="submit"].k-button-expand,input[type="button"].k-button-expand,input[type="reset"].k-button-expand{width:100%}body .k-button-icon{padding-left:4px;padding-right:4px}*+html a.k-button-icon{padding-left:5px;padding-right:5px}.k-button-icontext{padding-right:8px;overflow:visible}.k-button-icontext .k-icon{margin:0 3px 0 -3px;vertical-align:text-top}*+html .k-button-icontext .k-icon{margin-right:4px}html body .k-button-bare{background:none!important;border-width:0}.k-link{cursor:pointer;outline:0;text-decoration:none}.k-grid-header span.k-link{cursor:default}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-picker-wrap .k-icon,.k-state-disabled .k-button,.k-state-disabled .k-draghandle,.k-state-disabled .k-slider .k-icon,.k-state-disabled .k-upload-button input{cursor:default;outline:0}.k-state-error{border-style:ridge}.k-state-empty{font-style:italic}.k-icon,.k-sprite,.k-editor-button .k-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;background-color:transparent;background-repeat:no-repeat;font-size:0;line-height:0;text-indent:-3333px;text-align:center;vertical-align:middle}*+html .k-icon,*+html .k-sprite{text-indent:0}.k-numerictextbox .k-i-arrow-n{background-position:0 -2px}.k-numerictextbox .k-i-arrow-s{background-position:0 -35px}.k-state-selected .k-i-arrow-n{background-position:-16px 0}.k-numerictextbox .k-state-selected .k-i-arrow-n{background-position:-16px -2px}.k-state-selected .k-i-arrow-s{background-position:-16px -32px}.k-numerictextbox .k-state-selected .k-i-arrow-s{background-position:-16px -35px}.k-i-arrow-n{background-position:0 0}.k-i-arrow-e{background-position:0 -16px}.k-i-arrow-s{background-position:0 -32px}.k-i-arrow-w{background-position:0 -48px}.k-i-seek-n{background-position:0 -64px}.k-i-seek-e{background-position:0 -80px}.k-i-seek-s{background-position:0 -96px}.k-i-seek-w{background-position:0 -112px}.k-si-arrow-n{background-position:0 -129px}.k-si-arrow-e{background-position:0 -144px}.k-si-arrow-s{background-position:0 -159px}.k-si-arrow-w{background-position:0 -176px}.k-i-arrowhead-n{background-position:0 -256px}.k-i-arrowhead-e{background-position:0 -272px}.k-i-arrowhead-s{background-position:0 -288px}.k-i-arrowhead-w{background-position:0 -304px}.k-i-expand,.k-plus{background-position:0 -192px}.k-i-expand-w,.k-rtl .k-i-expand,.k-rtl .k-plus{background-position:0 -208px}.k-i-collapse,.k-minus{background-position:0 -226px}.k-i-collapse-w,.k-rtl .k-i-collapse,.k-rtl .k-minus{background-position:0 -240px}.k-i-pencil,.k-edit{background-position:-32px 0}.k-i-close,.k-delete,.k-group-delete{background-position:-32px -16px}.k-i-tick,.k-insert,.k-update{background-position:-32px -32px}.k-i-cancel,.k-cancel,.k-denied{background-position:-32px -48px}.k-i-plus,.k-add{background-position:-32px -64px}.k-i-funnel,.k-filter{background-position:-32px -80px}.k-i-funnel-clear,.k-clear-filter{background-position:-32px -96px}.k-i-refresh{background-position:-32px -112px}.k-i-restore{background-position:-32px -128px}.k-i-maximize{background-position:-32px -144px}.k-i-minimize{background-position:-64px -288px}.k-resize-se{background-position:-32px -160px}.k-i-calendar{background-position:-32px -176px}.k-i-clock{background-position:-32px -192px}.k-si-plus{background-position:-32px -208px}.k-si-minus{background-position:-32px -224px}.k-i-search{background-position:-32px -240px}.k-i-custom{background-position:-115px -113px}.k-editor .k-i-custom{background-position:-112px -110px}.k-viewHtml{background-position:-112px -132px}.k-i-insert-n,.k-insert-top{background-position:-160px -32px}.k-i-insert-m,.k-insert-middle{background-position:-160px -48px}.k-i-insert-s,.k-insert-bottom{background-position:-160px -64px}.k-drop-hint{background-position:0 -326px}.k-i-note,.k-warning{background-position:-160px -240px}.k-i-sort-asc{background-position:-112px -240px}.k-i-sort-desc{background-position:-112px -256px}.k-i-group{background-position:-112px -272px}.k-i-ungroup{background-position:-112px -288px}.k-i-columns{background-position:-112px -304px}.k-image{border:0}html .k-success-colored{color:#507f50;border-color:#d0dfd0;background-color:#f0fff0}html .k-info-colored{color:#50607f;border-color:#d0d9df;background-color:#f0f9ff}html .k-error-colored{color:#7f5050;border-color:#dfd0d0;background-color:#fff0f0}.k-inline-block{padding:0 2px}.k-loading,.k-loading-image{background-color:transparent;background-repeat:no-repeat;background-position:center center}.k-loading-mask,.k-loading-image,.k-loading-text{position:absolute}.k-loading-text{top:-4000px;left:-4000px}.k-loading-image,.k-loading-color{width:100%;height:100%}.k-loading-image{top:0;left:0;z-index:2}.k-loading-color{filter:alpha(opacity=30);opacity:.3}.k-content-frame{border:0;width:100%;height:100%}.k-content-frame+.k-overlay{filter:alpha(opacity=0);opacity:0;position:absolute}.k-drag-clue{position:absolute;z-index:10003;border-style:solid;border-width:1px;font-size:.9em;padding:.2em .4em;white-space:nowrap;cursor:default}.k-drag-status{margin-top:-3px;margin-right:4px;vertical-align:middle}.k-reorder-cue{position:absolute;width:1px;overflow:visible}.k-reorder-cue .k-icon{position:absolute;left:-4px;width:8px;height:4px}.k-reorder-cue .k-i-arrow-s{top:-4px;background-position:-4px -166px}.k-reorder-cue .k-i-arrow-n{bottom:-4px;background-position:-4px -134px}.k-scrollbar{position:absolute;overflow:scroll}.k-scrollbar-vertical{top:0;right:0;width:17px;height:100%;overflow-x:hidden}.k-touch-scrollbar{display:none;position:absolute;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585}@media only screen and (-webkit-min-device-pixel-ratio:2){body .k-touch-scrollbar{height:12px;width:12px;-webkit-border-radius:7px}}div.k-window{display:inline-block;position:absolute;z-index:10001;border-style:solid;border-width:1px;padding-top:2em}.k-block>.k-header,.k-window-titlebar{position:absolute;width:100%;height:1.1em;line-height:1.1em;border-bottom-style:solid;border-bottom-width:1px;margin-top:-2em;padding:.4em 0;font-size:1.2em;white-space:nowrap;min-height:16px}.k-block>.k-header{position:relative;margin:-2px 0 0 -2px;padding:.3em 2px}.k-window-title{position:absolute;left:.44em;right:.44em;overflow:hidden;cursor:default;text-overflow:ellipsis}.k-window-title .k-image{margin:0 5px 0 0;vertical-align:middle}div.k-window-titleless{padding-top:0}div.k-window-content{position:relative;z-index:-1;height:100%;padding:.58em;overflow:auto;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}*+html .k-window{padding-bottom:1.16em}.k-window-titlebar .k-window-actions{position:absolute;top:0;right:.5em;padding-top:.3em;white-space:nowrap}.k-window-titlebar .k-window-action{display:inline-block;width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;filter:alpha(opacity=70);opacity:.7}.k-window-titlebar .k-state-hover{border-style:solid;border-width:1px;padding:1px;filter:alpha(opacity=100);opacity:1}.k-window-action .k-icon{margin:0;vertical-align:top}.k-window .k-resize-handle{position:absolute;z-index:1;background-color:#fff;font-size:0;line-height:6px;filter:alpha(opacity=0);opacity:0;zoom:1}.k-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize}.k-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize}.k-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize}.k-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize}.k-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize}.k-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize}.k-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize}.k-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize}.k-overlay{position:fixed;top:0;left:0;z-index:10001;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);opacity:.5}.k-window .k-overlay{position:absolute;width:100%;height:100%;background-color:#fff;filter:alpha(opacity=0);opacity:0}.k-window .k-widget{z-index:10002}.k-tabstrip{margin:0;padding:0;zoom:1}.k-tabstrip .k-tabstrip-items{padding:.3em .3em 0}.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item{list-style-type:none;display:inline-block;position:relative;border-style:solid;border-width:1px 1px 0;margin:0 -1px 0 0;padding:0;vertical-align:top}.k-tabstrip-items .k-tab-on-top,.k-tabstrip-items .k-state-active,.k-panelbar .k-tabstrip-items .k-state-active{margin-bottom:-1px;padding-bottom:1px}.k-tabstrip-items .k-tab-on-top{z-index:1}.k-tabstrip-items .k-link,.k-panelbar .k-tabstrip-items .k-link{display:inline-block;border-bottom-width:0;padding:.5em .92em;outline:0}.k-tabstrip-items .k-icon,.k-panelbar .k-tabstrip-items .k-icon{margin:-1px 4px 0 -3px;vertical-align:top}.k-tabstrip-items .k-item .k-image,.k-tabstrip-items .k-item .k-sprite,.k-panelbar .k-tabstrip-items .k-item .k-image,.k-panelbar .k-tabstrip-items .k-item .k-sprite{margin:-3px 3px 0 -6px;vertical-align:middle}*+html .k-tabstrip-items .k-item .k-image,*+html .k-tabstrip-items .k-item .k-sprite{margin-top:-1px;vertical-align:top}.k-tabstrip .k-content,.k-panelbar .k-tabstrip .k-content{position:static;border-style:solid;border-width:1px;margin:0 .3em .3em;padding:.3em .92em;zoom:1}.k-tabstrip>.k-content{display:none}.k-panelbar{zoom:1}.k-panelbar>.k-item,.k-panel>.k-item{list-style-type:none;display:block;border-width:0;margin:0;zoom:1;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-panelbar .k-image,.k-panelbar .k-sprite{float:left;margin-top:4px;margin-right:5px;vertical-align:middle}.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link{display:block;position:relative;border-bottom-style:solid;border-bottom-width:1px;padding:0 1em;line-height:2.34em;text-decoration:none;zoom:1}.k-panelbar-expand,.k-panelbar-collapse{position:absolute;top:5px;right:2px}.k-panelbar .k-panel,.k-panelbar .k-content{position:relative;border-bottom-style:solid;border-bottom-width:1px;margin:0;padding:0;zoom:1}.k-panel>.k-item>.k-link{border-bottom:0;font-size:.95em;line-height:2.2}.k-panel .k-i-arrow-n,.k-panel .k-i-arrow-s{top:4px}.k-panel .k-panel>.k-item>.k-link{padding-left:2em}.k-panelbar .k-i-seek-e .k-link{border-bottom:0}.k-panel .k-panel{border-bottom:0}.k-menu{cursor:default}.k-menu,.k-menu .k-group{list-style:none;margin:0;padding:0;zoom:1}.k-menu:after{content:'\A0';display:block;width:99%;height:0;overflow:hidden}.k-menu .k-item .k-item,ul.k-menu-vertical>.k-item{display:block;float:none;border-width:0}*+html .k-menu .k-item .k-item{zoom:normal}.k-menu .k-item>.k-link>.k-icon,.k-menu .k-image,.k-menu .k-sprite{margin:-2px 4px 0 -4px;vertical-align:middle}.k-menu .k-item>.k-link>.k-icon{margin:-2px 0 0}*+html .k-menu .k-item>.k-link>.k-i-arrow-s,*+html .k-menu .k-image,*+html .k-menu .k-sprite{margin-top:0}.k-menu .k-item>.k-link{display:block;padding:.5em .9em .4em;line-height:1.34em}.k-menu .k-group{display:none;border-style:solid;border-width:1px;overflow:visible;white-space:nowrap}.k-menu .k-group .k-item{display:block;border-width:0}.k-menu .k-item,.k-widget.k-menu-horizontal>.k-item{position:relative;float:left;border-style:solid;border-width:0 1px 0 0;vertical-align:top;zoom:1;box-sizing:content-box}.k-menu .k-group .k-item>.k-link{padding:.28em 1.8em .38em .9em}*+html .k-menu .k-group .k-link{width:100%}.k-menu .k-item>.k-link>.k-i-arrow-s{margin-right:-8px}.k-menu .k-item>.k-link>.k-i-arrow-e{position:absolute;top:50%;margin-top:-8px;right:2px}.k-menu .k-animation-container{border:0}.k-menu .k-animation-container,.k-menu .k-group{position:absolute;left:0}.k-menu .k-animation-container .k-animation-container,.k-menu .k-group .k-group,.k-menu-vertical .k-animation-container,.k-menu-vertical .k-group{top:0;left:0}.k-menu .k-animation-container .k-group{top:auto;left:auto;margin-left:-1px}.k-menu .k-animation-container,.k-popup .k-animation-container{margin-top:-1px;padding-left:1px}.k-popup .k-animation-container .k-popup{margin-left:-1px}ul.k-menu .k-separator{padding:.25em 0;height:100%;width:1px;font-size:0;line-height:0;border-width:0 1px 0 0}ul.k-menu-vertical .k-separator,.k-menu .k-group .k-separator{padding:0;height:1px;width:100%;border-width:1px 0 0}.k-grid,.k-listview{position:relative;zoom:1}.k-grid table{width:100%;border-collapse:separate;empty-cells:show;border-width:0}.k-grid-header .k-header{text-align:left}.k-grid-header .k-header{overflow:hidden;border-style:solid;border-width:0 0 1px 1px;padding:.5em .6em .4em .6em;font-weight:normal;white-space:nowrap;text-overflow:ellipsis}.k-grid-header .k-header .k-link{display:block;min-height:18px;line-height:18px;margin:-.5em -.6em -.4em -.6em;padding:.5em .6em .4em .6em}.k-grid-header .k-filterable .k-link{padding-right:2.4em}.k-grid-header .k-header .k-icon{position:static}.k-grid-header .k-link>.k-icon{vertical-align:text-top}.k-grid .k-state-hover{cursor:pointer}.k-grid td{border-style:solid;border-width:0 0 0 1px;padding:.4em .6em;overflow:hidden;line-height:1.6em;vertical-align:middle;text-overflow:ellipsis}.k-grid .k-grouping-row td,.k-grid .k-hierarchy-cell{overflow:visible}.k-grid-edit-row td{text-overflow:clip}.k-grid-edit-row .k-textbox{margin-top:0;margin-bottom:0}.k-grid-header-wrap,.k-grid-footer-wrap{position:relative;width:100%;overflow:hidden;border-style:solid;border-width:0 1px 0 0;zoom:1}div.k-grid-header,div.k-grid-footer{padding-right:17px;border-bottom-style:solid;border-bottom-width:1px;zoom:1}div.k-grid-header .k-header{border-bottom-width:0}.k-grid{outline:0}.k-grid-content{position:relative;width:100%;overflow:auto;overflow-x:auto;overflow-y:scroll;zoom:1}@media print{.k-grid{height:auto!important}.k-grid-header{padding:0!important}.k-grid-content{overflow:visible;height:auto!important}}.k-virtual-scrollable-wrap{height:100%;overflow-y:hidden;position:relative}.k-grid-header table,.k-grid-content table,.k-grid-footer table{table-layout:fixed}*+html .k-grid-content table{width:auto}.k-grid-toolbar{border-style:solid;border-width:1px 0 0}.k-grid-header .k-header:first-child,.k-grid tbody td:first-child,.k-grid tfoot td:first-child{border-left-width:0}.k-grid-toolbar:first-child,.k-grouping-header+.k-grid-toolbar{border-width:0 0 1px}.k-footer-template td{border-style:solid;border-width:1px 0 0 1px}.k-group-footer td{border-style:solid;border-width:1px 0}.k-grid-footer{border-style:solid;border-width:1px 0 0}.k-grid-footer td{border-top-width:0}.k-pager-wrap{overflow:auto;border-style:solid;border-width:1px;line-height:24px;padding:4px 0 4px 3px}.k-grid-pager{border-width:1px 0 0}.k-grid .k-pager-numbers,.k-pager-numbers .k-link,.k-pager-numbers .k-state-selected{display:inline-block;vertical-align:top}.k-pager-numbers{margin:0 2px}.k-pager-numbers .k-state-selected{vertical-align:top}.k-pager-numbers li,.k-pager-input{float:left}.k-grid .k-pager-numbers{float:left;cursor:default}.k-pager-info{float:right;padding:0 16px}.k-pager-numbers .k-link{text-decoration:none}.k-pager-wrap>.k-link{float:left;margin:0 1px;padding:0 3px;height:22px;line-height:22px;border-radius:13px;cursor:pointer}.k-pager-wrap>a.k-state-disabled:hover{background:0;cursor:default}.k-pager-wrap>.k-link .k-icon{vertical-align:top;margin-top:3px}.k-pager-numbers .k-link{padding:0 8px;border-radius:13px}.k-pager-numbers .k-link:hover{padding:0 7px;border-style:solid;border-width:1px;line-height:22px}.k-pager-wrap>.k-link{border-style:solid;border-width:1px}.k-pager-wrap .k-pager-refresh{float:right;margin-right:6px;border-width:0;border-radius:0}.k-pager-numbers .k-state-selected{border-style:solid;border-width:1px;line-height:22px;padding:0 7px;border-radius:13px}.k-pager-wrap .k-textbox{width:40px}*+html .k-pager-wrap .k-textbox{height:16px;margin-top:2px}.k-pager-wrap .k-dropdown{width:50px}.k-pager-refresh{float:right}.k-pager-input,.k-pager-sizes{padding:0 17px}*+html .k-pager-sizes{float:left}.k-pager-wrap .k-textbox,.k-pager-wrap .k-widget{margin:-.3em .4em 0}.k-grid-filter,.k-header-column-menu{float:right;margin:-.5em -.6em -.4em;padding:.5em .2em .4em}.k-grid .k-animation-container{position:absolute}.k-filter-menu{padding:.5em}.k-filter-menu .k-widget,.k-filter-menu .k-textbox{display:block}.k-filter-help-text,.k-filter-menu .k-widget{margin:.3em 0 0}.k-filter-menu .k-filter-and{width:6em;margin:.6em 0 0}.k-filter-menu .k-button{width:48%;margin:.6em 4% 0 0}.k-filter-menu .k-button+.k-button{margin-right:0}.k-grouping-row .k-icon{margin:0 4px 0 0}.k-grouping-row p{display:inline-block;vertical-align:middle;margin-left:-.6em;padding:0 .6em}.k-grid .k-group-cell+td,.k-grid .k-hierarchy-cell+td{border-left-width:0}.k-grid .k-group-col,.k-grid .k-hierarchy-col{width:30px}.k-grouping-header{border-bottom-style:solid;border-bottom-width:1px}.k-grouping-header{line-height:2}.k-grouping-dropclue{position:absolute;width:6px;height:25px;background-repeat:no-repeat;background-position:-165px -148px}.k-grouping-header .k-group-indicator{display:inline-block;border-style:solid;border-width:1px;margin:0 3px;padding:.15em .15em .15em .4em;line-height:1.5em}.k-grouping-header .k-link{display:inline-block;border-width:0;padding:0;line-height:normal;text-decoration:none}.k-grouping-header .k-button{border:0;padding:0;background:transparent;line-height:1}.k-grouping-header .k-link .k-icon{margin:0 0 0 -3px}.k-grouping-header .k-button .k-icon{margin:0 0 0 3px}.k-grouping-header a,.k-grouping-header .k-button{display:inline-block;vertical-align:middle}.k-dirty{position:absolute;width:0;height:0;border-style:solid;border-width:3px;border-color:#f00 transparent transparent #f00;margin:-0.45em 0 0 -0.6em;padding:0;overflow:hidden;vertical-align:top}.k-grouping-header,.k-grid-toolbar{margin:0;padding:.2em .6em;cursor:default}.k-grid .k-edit-container{padding:0}.k-edit-form{margin:0;padding:0}.k-grid-edit-row .k-edit-form td{border-bottom-width:0}.k-edit-form-container{position:relative;width:400px}.k-edit-label,.k-edit-field,.editor-label,.editor-field{display:inline-block;padding-bottom:1em}.k-edit-label,.editor-label{width:30%;text-align:right;padding-right:3%}.k-edit-field,.editor-field{width:60%}.k-grid .field-validation-error{display:block}.k-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb}.k-grid-toolbar .k-button{vertical-align:middle}.k-grid-actions{display:inline-block}*+html .k-grid-actions{vertical-align:bottom}.k-grid .k-button,.k-edit-form-container .k-button{margin:0 .2em}.k-grid tbody .k-button{min-width:64px}.k-grid tbody button.k-button,#ie8#skips{min-width:78px}*+html .k-grid tbody a.k-button{min-width:62px}html body .k-grid tbody .k-button-icon{width:auto;min-width:0}.k-detail-row{position:relative}.k-grid .k-detail-cell{overflow:visible}.k-grid .k-edit-cell{padding:0 .3em}.k-edit-cell .k-textbox,.k-edit-cell .k-widget,.k-grid-edit-row .k-textbox,.k-grid-edit-row .k-widget{width:100%}.k-edit-cell .k-widget,.k-grid-edit-row .k-widget{-moz-box-sizing:border-box;box-sizing:border-box}*+html .k-edit-cell .k-textbox,*+html .k-edit-cell .k-widget,*+html .k-grid-edit-row .k-textbox,*+html .k-grid-edit-row .k-widget{display:inline;width:90%}html .k-edit-cell .k-tooltip,html .k-grid-edit-row .k-tooltip{width:auto;max-width:300px}.k-edit-cell input[type="checkbox"]{margin-left:.6em}.k-grid tbody td>.k-grid-delete{margin-top:-.2em;margin-bottom:-.2em}.k-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa}.k-grid .k-resize-handle{position:absolute;height:25px;cursor:col-resize}.k-marquee{position:absolute;filter:alpha(opacity=30);opacity:.3}.k-column-menu .k-sprite{margin-right:10px}span.k-datepicker,span.k-numerictextbox,span.k-combobox,span.k-dropdown{background:0}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-numerictextbox,.k-dropdown,.k-selectbox,.k-textbox{position:relative;display:inline-block;width:12.4em;overflow:visible;border-width:0;white-space:nowrap;vertical-align:middle}.k-datetimepicker{width:15em}.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{position:relative;cursor:default}.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{display:block}.k-calendar-container .k-header{background:0}.k-block,.k-widget,.k-grid,.k-slider,.k-splitter,.k-treeview,.k-panelbar{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-popup.k-list-container,.k-popup.k-calendar-container{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:2px;border-width:1px;border-style:solid}.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up{border-top:0;padding-top:3px}.k-dropdown-wrap.k-state-border-up .k-select,.k-picker-wrap.k-state-border-up .k-select{top:1px}.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{border-bottom:0;padding-bottom:3px}.k-textbox,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{border-width:1px;border-style:solid;padding:2px 22px 2px 2px}.k-numeric-wrap.k-expand-padding{padding-right:2px}.k-textbox,.k-autocomplete{padding:2px}.k-textbox.k-space-left{padding-left:22px}.k-textbox.k-space-right{padding-right:22px}.k-textbox .k-icon{font-size:inherit;top:50%;margin:-8px 0 0;position:absolute}.k-space-left .k-icon{left:3px}.k-space-right .k-icon{right:3px}.k-autocomplete,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-hover{-webkit-transition:-webkit-box-shadow .15s ease-out;-moz-transition:-moz-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out;-ms-transition:box-shadow .15s ease-out;transition:box-shadow .15s ease-out}.k-textbox>input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-combobox .k-input{width:100%;vertical-align:top}.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{font-family:inherit;border-width:0;outline:0}.k-dropdown{outline:0}.k-dropdown .k-input,.k-selectbox .k-input{background:transparent}*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-combobox .k-input{margin:-1px 0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{position:absolute;top:0;right:0;display:inline-block;vertical-align:top;text-decoration:none;cursor:default}.k-combobox .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select{border-style:solid;border-width:0;border-color:inherit}.k-picker-wrap .k-select,.k-numeric-wrap .k-select{padding:0 2px}span.k-datetimepicker .k-select,span.k-datetimepicker .k-select+.k-select{right:0}.k-textbox,.k-autocomplete{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.k-textbox>input,.k-autocomplete .k-input{display:block}.k-combobox .k-icon{margin-top:1px}.k-dropdown .k-select,.k-selectbox .k-select{overflow:hidden;border:0;text-decoration:none;font:inherit;color:inherit;cursor:default}.k-dropdown .k-input,.k-selectbox .k-input{display:block;overflow:hidden;text-overflow:ellipsis}.k-textbox>input,.k-autocomplete .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{height:1.31em;line-height:1.31em;padding:.18em 0;text-indent:4px;border:0;margin:0}*+html .k-autocomplete .k-input,*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-dropdown-wrap .k-input,*+html .k-selectbox .k-input{text-indent:0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{min-height:1.3em;line-height:1.3em;vertical-align:middle;padding:3px}body .k-datetimepicker .k-select{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-popup{border-style:solid;border-width:1px}.k-popup .k-item{cursor:default}.k-popup .k-calendar{border:0}.k-list{height:100%}.k-popup .k-list .k-item{padding:1px 5px 1px 5px;line-height:1.8em}.k-popup .k-list .k-state-hover,.k-popup .k-list .k-state-focused,.k-popup .k-list .k-state-selected{padding:0 4px;border-width:1px;border-style:solid}.k-calendar{position:relative;display:inline-block;width:203px;overflow:hidden}.k-calendar td,.k-calendar .k-link{text-decoration:none}.k-calendar .k-action-link{text-decoration:underline}.k-calendar .k-header,.k-calendar .k-footer{position:relative;text-align:center;zoom:1}.k-widget.k-calendar .k-nav-prev,.k-widget.k-calendar .k-nav-next{position:absolute;top:.3em;padding:.22em}.k-widget.k-calendar .k-nav-prev{left:1%}.k-widget.k-calendar .k-nav-next{right:1%}.k-calendar .k-content{float:left;border-spacing:0;width:100%;height:166px;border-width:0;margin:0;table-layout:fixed;text-align:right}.k-calendar .k-animation-container .k-content{height:100%}.k-widget.k-calendar .k-nav-fast{display:inline-block;width:75%;height:29px;line-height:29px}.k-calendar .k-nav-fast .k-icon{vertical-align:top}.k-calendar th{border-bottom-style:solid;border-bottom-width:1px;padding:.4em .45em .4em .1em;font-weight:normal;cursor:default}.k-calendar td{padding:1px;cursor:pointer}.k-calendar .k-state-focus{border-style:dotted;border-width:1px;padding:0}.k-calendar .k-content .k-link{display:block;overflow:hidden;min-height:22px;line-height:22px;padding:0 .45em 0 .1em}.k-calendar .k-meta-view .k-link{padding:.25em 0 .3em;text-align:center}.k-calendar .k-footer{clear:both;padding:.5em 0}.k-calendar .k-nav-today:hover{text-decoration:underline}span.k-timepicker,span.k-datetimepicker,span.k-datepicker{background-color:transparent}.k-datetimepicker .k-picker-wrap{padding-right:42px}.k-datetimepicker .k-picker-wrap .k-icon{margin-left:3px}.k-picker-wrap .k-icon{cursor:pointer}.k-button,.k-textbox,.k-timepicker,.k-datepicker,.k-datetimepicker{display:inline-block;vertical-align:middle}.k-picker-wrap .k-input{margin:0}.k-time-popup .k-item{padding:1px 3px}div.k-treeview{border-width:0;background:0;overflow:auto;white-space:nowrap}.k-treeview .k-item{display:block;border-width:0;margin:0;padding:0 0 0 16px}.k-treeview .k-group,.k-treeview .k-content{margin:0;padding:0;background:0;list-style-type:none}.k-treeview .k-animation-container{height:auto!important}.k-treeview .k-icon,.k-treeview .k-image,.k-treeview .k-sprite,.k-treeview .k-checkbox,.k-treeview .k-in{display:inline-block;vertical-align:top}.k-treeview .k-plus,.k-treeview .k-minus,.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{float:left;margin-top:3px;margin-left:-16px;cursor:pointer}.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{cursor:default}.k-treeview .k-sprite,.k-treeview .k-image{margin-right:3px}.k-treeview .k-in{margin:1px 0 1px 2px;padding:2px 4px 2px 3px;line-height:16px;text-decoration:none}.k-treeview span.k-in{cursor:default}.k-treeview .k-state-hover,.k-treeview .k-state-selected{border-style:solid;border-width:1px;padding:1px 3px 1px 2px}.k-treeview .k-drop-hint{position:absolute;z-index:10000;visibility:hidden;width:80px;height:5px;margin-top:-3px;background-color:transparent;background-repeat:no-repeat}.k-input{padding:.25em 0}.k-input,.k-textbox>input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-textbox{outline:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;text-indent:2px\9;width:12.4em}input.k-textbox{padding:2px .3em;height:2.12em;line-height:1.6em}textarea.k-textbox{height:auto}*+html .k-textbox{padding:1px 0;text-indent:0}span.k-numerictextbox{background:transparent}.k-numerictextbox .k-input{margin:0}.k-numerictextbox .k-select{padding-top:1px;padding-bottom:1px}.k-numerictextbox .k-link{display:block;height:11px;line-height:11px;border-width:0;padding:0}.k-numerictextbox .k-icon{height:11px;vertical-align:top}.k-colorpicker{display:inline-block;vertical-align:middle}.k-colorpicker .k-tool-icon{display:inline-block;vertical-align:top;padding:2px 3px;font-size:0;line-height:0}.k-colorpicker .k-selected-color{display:block;height:16px;width:16px}.k-colorpicker .k-icon{margin-top:4px;vertical-align:middle}.k-colorpicker-popup{width:136px;line-height:0}.k-colorpicker-popup .k-reset{display:inline-block;margin:0;padding:.25em}.k-colorpicker-popup .k-item{display:block;float:left;width:12px;height:12px;overflow:hidden;font-size:0;margin:0 1px 1px 0;padding:0}.k-colorpicker-popup .k-item div{height:100%;margin:1px;width:100%}.k-editor{width:100%;height:250px;table-layout:fixed;border-style:solid;border-width:1px;border-collapse:separate;font-size:100%;vertical-align:top}.k-editor .k-editor-toolbar-wrap{border:0;padding:0}.k-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;line-height:1.3em;cursor:default}.k-editor-toolbar li{display:inline;vertical-align:middle}.k-editor-toolbar .k-editor-dropdown,.k-editor-toolbar .k-editor-combobox,.k-editor-toolbar .k-editor-selectbox,.k-editor-toolbar .k-editor-colorpicker{margin-right:2px}.k-editor-toolbar .k-separator{position:relative;top:1px;border-style:solid;border-width:0 1px 0 0;margin:0 .15em;padding:0 0 0 1px;font-size:1.3em}.k-editor-toolbar .k-break{display:block;height:1px;font-size:0;line-height:0}.k-editor-toolbar .k-dropdown,.k-editor-toolbar .k-combobox,.k-editor-toolbar .k-selectbox,.k-editor-toolbar .k-colorpicker{vertical-align:middle}.k-editor-button .k-tool-icon{width:22px;height:22px;margin:1px;vertical-align:middle}.k-editor-colorpicker .k-tool-icon{padding:17px 3px 2px}.k-editor-colorpicker .k-icon{border-style:solid;border-width:0 0 0 1px;border-color:#ccc}.k-editor-colorpicker .k-selected-color{height:3px}.k-bold{background-position:-64px 0}.k-italic{background-position:-64px -22px}.k-underline{background-position:-64px -44px}.k-strikethrough{background-position:-64px -66px}.k-foreColor .k-tool-icon{background-position:-64px -88px}.k-backColor .k-tool-icon{background-position:-64px -110px}.k-justifyLeft{background-position:-64px -132px}.k-justifyCenter{background-position:-64px -154px}.k-justifyRight{background-position:-64px -176px}.k-justifyFull{background-position:-64px -198px}.k-insertUnorderedList{background-position:-64px -242px}.k-insertOrderedList{background-position:-64px -264px}.k-indent{background-position:-112px 0}.k-outdent{background-position:-112px -22px}.k-createLink{background-position:-112px -44px}.k-unlink{background-position:-112px -66px}.k-insertImage{background-position:-112px -88px}.k-subscript{background-position:-112px -154px}.k-superscript{background-position:-112px -176px}.k-fontName{width:110px}.k-fontSize{width:124px}.k-formatBlock{width:147px}.k-editor-button .k-state-hover,.k-editor-button .k-state-active{border-style:solid;border-width:1px;margin:0;vertical-align:middle}.k-editor-button .k-state-disabled{filter:alpha(opacity=30);opacity:.3}.k-editor .k-editable-area{width:100%;height:100%;border-style:solid;border-width:1px;outline:0}.k-editor .k-content{display:block;width:100%;height:100%;border:0;margin:0;padding:0}.k-editor iframe.k-content{display:inline;vertical-align:top}.k-editor .k-raw-content{border:0;margin:0;padding:0}.k-editor .k-raw-content,.k-editor-dialog .k-editor-textarea{font-size:inherit;font-family:consolas,"courier new",monospace}.k-editor-dialog{padding:1em}.k-editor-dialog ol{margin:0;padding:1em 0 0;list-style:none}.k-form-text-row,.k-form-checkbox-row{padding-bottom:.3em}.k-form-text-row input{margin-right:1em}.k-form-text-row label{display:inline-block;width:7em;padding-right:.5em;text-align:right}.k-form-checkbox-row input{margin-left:7.5em;padding:0;font-size:inherit}.k-form-checkbox-row label{padding-left:.3em}.k-form-checkbox-row input,.k-form-checkbox-row label,.k-form-text-row label .k-form-text-row input,.k-form-text-row select{vertical-align:middle}.k-form-text-row input,.k-form-text-row select{width:20em}.k-editor-dialog .k-form-text-row label,.k-editor-dialog .k-button{display:inline-block}.k-editor-dialog .k-button-wrapper{padding:1em;text-align:right}.k-editor-dialog .k-button-wrapper button{vertical-align:baseline}.k-editor-dialog .k-editor-textarea{width:600px;height:350px;padding:.2em .2em .2em .4em;border-width:1px;border-style:solid;overflow:auto}.k-button-wrapper .k-link:hover{text-decoration:underline}div.k-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-slider-vertical{width:26px;height:200px}.k-slider-horizontal{display:inline-block;width:200px;height:26px}.k-slider-wrap{width:100%;height:100%}.k-slider .k-button,.k-grid .k-slider .k-button{position:absolute;top:0;width:24px;min-width:0;height:24px;margin:0;padding:0;outline:0}.k-slider .k-button .k-icon{margin-top:4px;vertical-align:top}.k-state-disabled .k-slider-wrap{filter:alpha(opacity=60);opacity:.6}.k-state-disabled .k-slider-wrap .k-slider-items{color:#333}.k-slider .k-button-decrease{left:0}.k-slider-vertical .k-button-decrease,.k-grid .k-slider-vertical .k-button-decrease{top:auto;bottom:0}.k-slider .k-button-increase{right:0}.k-slider .k-icon{cursor:pointer}*+html .k-slider .k-icon{margin-top:2px}.k-slider-track,.k-slider-selection{position:absolute;margin:0;padding:0}.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection{top:50%;left:0;height:8px;margin-top:-4px;background-repeat:repeat-x}.k-slider-horizontal .k-slider-buttons .k-slider-track{left:34px}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection{left:50%;bottom:0;width:8px;margin-left:-4px;background-repeat:repeat-y}.k-slider-vertical .k-slider-buttons .k-slider-track{bottom:34px}.k-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;overflow:hidden;text-decoration:none;text-align:center;cursor:pointer}.k-slider-horizontal .k-draghandle{top:-4px;width:13px;height:14px}.k-slider-vertical .k-draghandle{left:-4px;width:14px;height:13px}.k-slider-buttons .k-slider-items{margin-left:34px}.k-slider-horizontal .k-slider-items{height:100%}.k-slider-vertical .k-slider-items{padding-top:1px}.k-slider-vertical .k-slider-buttons .k-slider-items{padding-top:0}.k-slider-vertical .k-slider-buttons .k-slider-items{margin:0;padding-top:35px}.k-slider .k-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center;cursor:default}.k-slider-horizontal .k-tick{float:left;height:100%;text-align:center}*+html .k-slider-vertical .k-tick{float:left;clear:left;width:100%}.k-slider-horizontal .k-tick{background-position:center -92px}.k-slider-horizontal .k-slider-topleft .k-tick{background-position:center -122px}.k-slider-horizontal .k-slider-bottomright .k-tick{background-position:center -152px}.k-slider-horizontal .k-tick-large{background-position:center -2px}.k-slider-horizontal .k-slider-topleft .k-tick-large{background-position:center -32px}.k-slider-horizontal .k-slider-bottomright .k-tick-large{background-position:center -62px}.k-slider-vertical .k-tick{background-position:-92px center}.k-slider-vertical .k-slider-topleft .k-tick{background-position:-122px center}.k-slider-vertical .k-slider-bottomright .k-tick{background-position:-152px center}.k-slider-vertical .k-tick-large{background-position:-2px center}.k-slider-vertical .k-slider-topleft .k-tick-large{background-position:-32px center}.k-slider-vertical .k-slider-bottomright .k-tick-large{background-position:-62px center}.k-slider-horizontal .k-first{background-position:0 -92px}.k-slider-horizontal .k-tick-large.k-first{background-position:0 -2px}.k-slider-horizontal .k-slider-topleft .k-first{background-position:0 -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-first{background-position:0 -32px}.k-slider-horizontal .k-slider-bottomright .k-first{background-position:0 -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-first{background-position:0 -62px}.k-slider-horizontal .k-last{background-position:100% -92px}.k-slider-horizontal .k-tick-large.k-last{background-position:100% -2px}.k-slider-horizontal .k-slider-topleft .k-last{background-position:100% -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-last{background-position:100% -32px}.k-slider-horizontal .k-slider-bottomright .k-last{background-position:100% -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-last{background-position:100% -62px}.k-slider-vertical .k-first{background-position:-92px 100%}.k-slider-vertical .k-tick-large.k-first{background-position:-2px 100%}.k-slider-vertical .k-slider-topleft .k-first{background-position:-122px 100%}.k-slider-vertical .k-slider-topleft .k-tick-large.k-first{background-position:-32px 100%}.k-slider-vertical .k-slider-bottomright .k-first{background-position:-152px 100%}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-first{background-position:-62px 100%}.k-slider-vertical .k-last{background-position:-92px 0}.k-slider-vertical .k-tick-large.k-last{background-position:-2px 0}.k-slider-vertical .k-slider-topleft .k-last{background-position:-122px 0}.k-slider-vertical .k-slider-topleft .k-tick-large.k-last{background-position:-32px 0}.k-slider-vertical .k-slider-bottomright .k-last{background-position:-152px 0}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-last{background-position:-62px 0}.k-slider-vertical .k-tick{text-align:right}.k-slider-vertical .k-slider-topleft .k-tick{text-align:left}.k-slider .k-label{position:absolute;white-space:nowrap;font-size:.92em}.k-slider-horizontal .k-label{left:0;width:100%;line-height:1}.k-slider-horizontal .k-first .k-label{left:-50%}.k-slider-horizontal .k-last .k-label{left:auto;right:-50%}.k-slider-horizontal .k-label{bottom:-1.2em}.k-slider-horizontal .k-slider-topleft .k-label{top:-1.2em}.k-slider-vertical .k-label{left:120%;display:block;text-align:left}.k-slider-vertical .k-last .k-label{top:-0.5em}.k-slider-vertical .k-first .k-label{bottom:-0.5em}.k-slider-vertical .k-slider-topleft .k-label{left:auto;right:120%}.k-tooltip{position:absolute;z-index:20000;border-style:solid;border-width:2px;padding:4px 5px 4px 6px;background-repeat:repeat-x;min-width:10px;text-align:center;filter:alpha(opacity=90);opacity:.9}span.k-tooltip{position:static;display:inline-block;border-width:1px;padding:2px 5px 1px 6px}.k-invalid-msg{display:none}.k-callout{position:absolute}.k-callout-n,.k-callout-s{width:11px;height:6px}.k-callout-w,.k-callout-e{width:6px;height:11px}.k-callout-n{top:-7px;left:49%;margin-left:-5px;background-position:-162px -181px}.k-tooltip-validation .k-callout-n{background-position:-178px -181px}.k-callout-w{top:49%;left:-7px;margin-top:-5px;background-position:-165px -226px}.k-tooltip-validation .k-callout-w{background-position:-181px -226px}.k-callout-s{top:100%;left:49%;margin-top:2px;margin-left:-5px;background-position:-162px -213px}.k-tooltip-validation .k-callout-s{background-position:-178px -213px}.k-callout-e{top:49%;left:100%;margin-top:-5px;margin-left:2px;background-position:-165px -194px}.k-tooltip-validation .k-callout-e{background-position:-181px -194px}.k-tooltip-validation .k-warning{vertical-align:text-top;margin-right:3px}.k-window .k-tooltip-validation{z-index:10010}.k-splitter{position:relative;height:300px}.k-pane>.k-splitter{border-width:0;overflow:hidden}.k-splitter .k-pane{overflow:hidden}.k-splitter .k-scrollable{overflow:auto}.k-splitter .k-pane-loading{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.k-ghost-splitbar,.k-splitbar{position:absolute;border-style:solid;font-size:0}.k-splitter .k-ghost-splitbar-horizontal,.k-splitter .k-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y}.k-ghost-splitbar-vertical,.k-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x}.k-splitbar-draggable-horizontal{cursor:w-resize}.k-splitbar-draggable-vertical{cursor:n-resize}.k-splitbar .k-resize-handle{display:none}.k-restricted-size-horizontal,.k-restricted-size-vertical{background-color:#f00}.k-splitbar-horizontal .k-icon{position:absolute;top:50%;width:5px;height:20px;margin-top:-10px}.k-collapse-prev,.k-collapse-next,.k-expand-prev,.k-expand-next{cursor:pointer}.k-splitbar-horizontal .k-collapse-prev{margin-top:-31px}.k-splitbar-horizontal .k-collapse-next{margin-top:11px}.k-splitbar-static-horizontal{width:1px}.k-splitbar-static-vertical{height:1px}.k-splitbar-vertical .k-icon{position:absolute;left:50%;width:20px;height:5px;margin-left:-10px}.k-splitbar-vertical .k-collapse-prev{margin-left:-31px}.k-splitbar-vertical .k-collapse-next{margin-left:11px}.k-splitbar-draggable-vertical .k-resize-handle,.k-splitbar-draggable-horizontal .k-resize-handle{display:inline-block}.k-splitbar-horizontal .k-resize-handle{background-position:-165px -6px}.k-splitbar-horizontal .k-collapse-prev,.k-splitbar-horizontal .k-expand-next{background-position:-6px -174px}.k-splitbar-horizontal .k-collapse-next,.k-splitbar-horizontal .k-expand-prev{background-position:-5px -142px}.k-splitbar-vertical .k-resize-handle{background-position:-38px -309px}.k-splitbar-vertical .k-collapse-prev,.k-splitbar-vertical .k-expand-next{background-position:2px -134px}.k-splitbar-vertical .k-collapse-next,.k-splitbar-vertical .k-expand-prev{background-position:2px -165px}html .k-upload{position:relative;border-width:0;background:0}.k-dropzone em,.k-upload-button{vertical-align:middle}*+html .k-dropzone em,*+html .k-upload-button{vertical-align:baseline}.k-dropzone{border-style:solid;border-width:0;padding:4px;background-color:transparent}.k-dropzone em{visibility:hidden;margin-left:.6em}.k-dropzone-active{border-width:1px;padding:3px}.k-dropzone-active em{visibility:visible}.k-upload-button{position:relative;width:86px;overflow:hidden!important;direction:ltr}.k-upload-button input{position:absolute;top:0;right:0;z-index:1;font:200px monospace!important;filter:alpha(opacity=0);opacity:0;margin:0;padding:0;cursor:pointer}.k-upload-files{border-style:solid;border-width:1px;margin:.2em 0 0;padding:.3em .7em .5em;line-height:1.9em}.k-upload-files .k-button{position:relative;top:1px;margin-left:8px;padding-top:0;padding-bottom:0;font-size:84%}*+html .k-upload-files .k-button{line-height:1}.k-upload .k-upload-action .k-icon{width:8px;height:8px;vertical-align:baseline}.k-upload .k-delete,.k-upload .k-i-cancel{background-position:-164px -116px}.k-upload .k-fail{background-position:-161px -111px}.k-retry{background-position:-164px -132px}.k-si-refresh{background-position:-160px -128px}.k-si-tick,.k-success{background-position:-160px -96px}.k-si-cancel{background-position:-160px -112px}.k-filename{position:relative;display:inline-block;min-width:120px;max-width:200px;vertical-align:middle;padding-bottom:2px;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.k-progress,.k-progress-status{position:absolute;bottom:0;left:0;width:118px;height:2px;border-style:solid;border-width:1px;background-repeat:repeat-x}.k-progress-status{left:-1px;bottom:-1px;width:50%}.k-upload-selected{min-width:86px;margin:3px 0 0;-moz-box-sizing:content-box;-ms-box-sizing:content-box;box-sizing:content-box}*+html .k-upload-selected{min-width:100px}.k-toolbar-wrap .k-dropzone em,.k-toolbar-wrap .k-upload-files{display:none}.k-toolbar-wrap .k-dropzone{border:0;padding:0;background-color:transparent}.k-search-wrap{position:relative;float:right;width:auto;padding:0}.k-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic}.k-search-wrap input.k-input{width:158px;padding-left:0;padding-right:0}.k-search-wrap .k-search{position:absolute;top:1px;right:2px}.k-breadcrumbs{position:relative;float:left;width:560px}.k-breadcrumbs-wrap{position:absolute;top:0;left:0;z-index:1;padding-left:5px;line-height:18px}html input.k-breadcrumbs-input{width:100%;padding-left:2px;font-family:inherit}.k-breadcrumbs .k-link,.k-breadcrumbs-wrap .k-icon{margin-top:0;text-decoration:none;vertical-align:middle}.k-breadcrumbs .k-link:hover{text-decoration:underline}.k-imagebrowser .k-breadcrumbs .k-i-seek-w{text-decoration:none;cursor:default}.k-imagebrowser .k-toolbar{clear:both;border-style:solid;border-width:1px;margin:8px 0 0;padding:2px 0 3px;background-repeat:repeat-x;line-height:23px;white-space:nowrap}.k-imagebrowser .k-upload{float:left}.k-imagebrowser .k-upload-button{width:auto;vertical-align:top}.k-imagebrowser .k-upload .k-icon{vertical-align:bottom}*+html .k-imagebrowser .k-upload-button,*+html .k-imagebrowser .k-upload .k-icon{vertical-align:baseline;position:relative;top:1px}*+html .k-imagebrowser .k-upload .k-icon{top:2px}*+html .k-imagebrowser .k-toolbar .k-button-icon{vertical-align:middle}.k-i-folder-add,.k-addfolder{background-position:-32px -272px}.k-i-folder-up,.k-goup{background-position:-32px -288px}.k-toolbar .k-state-disabled{filter:alpha(opacity=50);opacity:.5}.k-toolbar-wrap{float:left}.k-tiles-arrange{float:right}.k-tiles-arrange .k-i-arrow-s{margin:0 2px 0 3px}.k-tiles-arrange a{text-decoration:none}.k-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2}.k-tile{float:left;width:223px;height:88px;overflow:hidden;border-style:solid;border-width:1px;margin:1px;padding:0 0 4px;background-position:0 100px;background-repeat:repeat-x;cursor:pointer}.k-tiles li.k-state-hover,.k-tiles li.k-state-selected{background-position:0 center}.k-imagebrowser .k-thumb{float:left;display:inline;width:86px;height:86px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-imagebrowser .k-image{margin:2px 0 0 2px}.k-imagebrowser .k-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat}.k-imagebrowser .k-loading{margin:35px 0 0 33px}.k-tile strong,.k-tile input{margin:10px 0 4px;font-weight:normal}.k-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis}.k-tile input{width:100px}.k-tile em,.k-tile .k-filesize{clear:left;font-weight:normal;font-style:normal}.k-tile strong,.k-tile input,.k-tile em,.k-tile .k-filesize{display:block}.k-imagebrowser .k-form-text-row input{width:628px}.k-tile-empty{margin:160px 0 0}.k-tile-empty .k-dialog-upload{font-weight:bold;font-size:120%}.k-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal}.k-tile-empty,.k-tile-empty .k-button-wrapper{text-align:center}*+html .k-button,*+html .k-grid-filter,*+html .k-header-column-menu,*+html .k-grid .k-pager-numbers,*+html .k-grid .k-status-text,*+html .k-pager-numbers .k-link,*+html .k-pager-numbers span,*+html .k-pager-numbers input,*+html .k-grouping-row p,*+html .k-grouping-header a,*+html .k-grouping-header .k-group-indicator,*+html .k-grouping-header .k-link,*+html .k-grouping-header .k-button,*+html .k-grid-actions,*+html .k-combobox,*+html .k-dropdown,*+html .k-selectbox,*+html .k-picker-wrap .k-select,*+html .k-dropdown-wrap .k-select,*+html .k-numerictextbox,*+html .k-timepicker,*+html .k-datepicker,*+html .k-datetimepicker,*+html .k-calendar,*+html .k-calendar .k-nav-fast,*+html .k-treeview .k-icon,*+html .k-treeview .k-image,*+html .k-treeview .k-sprite,*+html .k-treeview .k-in,*+html .k-colorpicker,*+html .k-colorpicker .k-tool-icon,*+html .k-colorpicker-popup .k-reset,*+html .k-editor-dialog .k-button,.k-form-text-row label,*+html .k-tabstrip-items .k-item,*+html .k-tabstrip-items .k-link,*+html .k-slider-horizontal,*+html .k-splitbar-draggable-vertical .k-resize-handle,*+html .k-splitbar-draggable-horizontal .k-resize-handle,*+html .t-filename,*+html div.k-window,*+html .k-window-titlebar .k-window-action{display:inline;zoom:1}.km-scroll-container{-moz-user-select:-moz-none;-webkit-user-select:none;user-select:none;-webkit-margin-collapse:separate;-webkit-transform:translatez(0)}.k-widget .km-scroll-wrapper{position:relative;padding-bottom:0}.km-touch-scrollbar{position:absolute;visibility:hidden;z-index:200000;height:.3em;width:.3em;background-color:rgba(0,0,0,.7);opacity:0;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-ms-transition:opacity .3s linear;-o-transition:opacity .3s linear}.km-vertical-scrollbar{height:100%;right:2px;top:2px}.km-horizontal-scrollbar{width:100%;left:2px;bottom:2px}
|
11
|
+
:-webkit-any(body):after{content:"";display:block;visibility:hidden;height:0;font:0/0;-webkit-transform:translateZ(0)}.fake{color:red}.k-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.k-floatwrap:after,.k-slider-items:after,.k-grid-toolbar:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:inline-block}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:block}.prohibit-selection{-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.border-box{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-block,.k-button,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-tabstrip-items .k-item,.k-link.k-state-hover,.k-textbox,.k-textbox:hover,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-autocomplete.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-draghandle{background-repeat:repeat;background-position:0 center}.k-state-highlight>.k-link{color:inherit}.k-block,.k-widget,.k-inline-block,.k-textbox>input,.k-input[type="text"],.k-input[type="number"],.k-textbox,.k-picker-wrap .k-input,.k-button,.k-draghandle{font-size:100%;font-family:inherit;border-style:solid;border-width:1px;-webkit-appearance:none}.k-block,.k-widget{line-height:normal;outline:0}.k-block{padding:2px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-button{display:inline-block;margin:0;padding:2px 7px 2px;font-family:inherit;line-height:1.66em;text-align:center;cursor:pointer;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*+html .k-button{line-height:normal}a.k-button{-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-button:-moz-any(input){padding-bottom:.37em;padding-top:.37em}*+html .k-button{overflow:visible;margin-right:4px}*+html a.k-button{line-height:1.6;padding-left:7px;padding-right:7px}*+html .k-button-expand{margin-left:0;margin-right:0}button.k-button::-moz-focus-inner,input.k-button::-moz-focus-inner{padding:0;border:0}a.k-button-expand{display:block}button.k-button-expand,input[type="submit"].k-button-expand,input[type="button"].k-button-expand,input[type="reset"].k-button-expand{width:100%}body .k-button-icon{padding-left:4px;padding-right:4px}*+html a.k-button-icon{padding-left:5px;padding-right:5px}.k-button-icontext{padding-right:8px;overflow:visible}.k-button-icontext .k-icon{margin:0 3px 0 -3px;vertical-align:text-top}*+html .k-button-icontext .k-icon{margin-right:4px}html body .k-button-bare{background:none!important;border-width:0}.k-link{cursor:pointer;outline:0;text-decoration:none}.k-grid-header span.k-link{cursor:default}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-picker-wrap .k-icon,.k-state-disabled .k-button,.k-state-disabled .k-draghandle,.k-state-disabled .k-slider .k-icon,.k-state-disabled .k-upload-button input{cursor:default;outline:0}.k-state-error{border-style:ridge}.k-state-empty{font-style:italic}.k-icon,.k-sprite,.k-editor-button .k-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;background-repeat:no-repeat;font-size:0;line-height:0;text-indent:-3333px;text-align:center;vertical-align:middle}.k-icon,.k-sprite{background-color:transparent}*+html .k-icon,*+html .k-sprite{text-indent:0}.k-numerictextbox .k-i-arrow-n{background-position:0 -2px}.k-numerictextbox .k-i-arrow-s{background-position:0 -35px}.k-state-selected .k-i-arrow-n{background-position:-16px 0}.k-state-hover .k-state-selected .k-i-arrow-n,.k-button:hover .k-state-selected .k-i-arrow-n,.k-textbox:hover .k-state-selected .k-i-arrow-n,.k-button:active .k-state-selected .k-i-arrow-n{background-position:-32px 0}.k-numerictextbox .k-state-selected .k-i-arrow-n,.k-numerictextbox .k-state-hover .k-i-arrow-n{background-position:-16px -2px}.k-state-selected .k-i-arrow-s{background-position:-16px -32px}.k-state-hover .k-state-selected .k-i-arrow-s,.k-button:hover .k-state-selected .k-i-arrow-s,.k-textbox:hover .k-state-selected .k-i-arrow-s,.k-button:active .k-state-selected .k-i-arrow-s{background-position:-32px -32px}.k-numerictextbox .k-state-selected .k-i-arrow-s,.k-numerictextbox .k-state-hover .k-i-arrow-s{background-position:-16px -35px}.k-i-arrow-n{background-position:0 0}.k-state-hover .k-i-arrow-n,.k-button:hover .k-i-arrow-n,.k-textbox:hover .k-i-arrow-n,.k-button:active .k-i-arrow-n{background-position:-16px 0}.k-i-arrow-e{background-position:0 -16px}.k-state-hover .k-i-arrow-e,.k-button:hover .k-i-arrow-e,.k-textbox:hover .k-i-arrow-e,.k-button:active .k-i-arrow-e{background-position:-16px -16px}.k-i-arrow-s{background-position:0 -32px}.k-state-hover .k-i-arrow-s,.k-button:hover .k-i-arrow-s,.k-textbox:hover .k-i-arrow-s,.k-button:active .k-i-arrow-s{background-position:-16px -32px}.k-i-arrow-w{background-position:0 -48px}.k-state-hover .k-i-arrow-w,.k-button:hover .k-i-arrow-w,.k-textbox:hover .k-i-arrow-w,.k-button:active .k-i-arrow-w{background-position:-16px -48px}.k-i-seek-n{background-position:0 -64px}.k-state-hover .k-i-seek-n,.k-button:hover .k-i-seek-n,.k-textbox:hover .k-i-seek-n,.k-button:active .k-i-seek-n{background-position:-16px -64px}.k-i-seek-e{background-position:0 -80px}.k-state-hover .k-i-seek-e,.k-button:hover .k-i-seek-e,.k-textbox:hover .k-i-seek-e,.k-button:active .k-i-seek-e{background-position:-16px -80px}.k-i-seek-s{background-position:0 -96px}.k-state-hover .k-i-seek-s,.k-button:hover .k-i-seek-s,.k-textbox:hover .k-i-seek-s,.k-button:active .k-i-seek-s{background-position:-16px -96px}.k-i-seek-w{background-position:0 -112px}.k-state-hover .k-i-seek-w,.k-button:hover .k-i-seek-w,.k-textbox:hover .k-i-seek-w,.k-button:active .k-i-seek-w{background-position:-16px -112px}.k-si-arrow-n{background-position:0 -129px}.k-state-hover .k-si-arrow-n,.k-button:hover .k-si-arrow-n,.k-textbox:hover .k-si-arrow-n,.k-button:active .k-si-arrow-n{background-position:-16px -129px}.k-si-arrow-e{background-position:0 -144px}.k-state-hover .k-si-arrow-e,.k-button:hover .k-si-arrow-e,.k-textbox:hover .k-si-arrow-e,.k-button:active .k-si-arrow-e{background-position:-16px -144px}.k-si-arrow-s{background-position:0 -159px}.k-state-hover .k-si-arrow-s,.k-button:hover .k-si-arrow-s,.k-textbox:hover .k-si-arrow-s,.k-button:active .k-si-arrow-s{background-position:-16px -159px}.k-si-arrow-w{background-position:0 -176px}.k-state-hover .k-si-arrow-w,.k-button:hover .k-si-arrow-w,.k-textbox:hover .k-si-arrow-w,.k-button:active .k-si-arrow-w{background-position:-16px -176px}.k-i-arrowhead-n{background-position:0 -256px}.k-state-hover .k-i-arrowhead-n,.k-button:hover .k-i-arrowhead-n,.k-textbox:hover .k-i-arrowhead-n,.k-button:active .k-i-arrowhead-n{background-position:-16px -256px}.k-i-arrowhead-e{background-position:0 -272px}.k-state-hover .k-i-arrowhead-e,.k-button:hover .k-i-arrowhead-e,.k-textbox:hover .k-i-arrowhead-e,.k-button:active .k-i-arrowhead-e{background-position:-16px -272px}.k-i-arrowhead-s{background-position:0 -288px}.k-state-hover .k-i-arrowhead-s,.k-button:hover .k-i-arrowhead-s,.k-textbox:hover .k-i-arrowhead-s,.k-button:active .k-i-arrowhead-s{background-position:-16px -288px}.k-i-arrowhead-w{background-position:0 -304px}.k-state-hover .k-i-arrowhead-w,.k-button:hover .k-i-arrowhead-w,.k-textbox:hover .k-i-arrowhead-w,.k-button:active .k-i-arrowhead-w{background-position:-16px -304px}.k-i-expand,.k-plus,.k-plus-disabled{background-position:0 -192px}.k-state-hover .k-i-expand,.k-state-hover .k-plus,.k-state-hover .k-plus-disabled,.k-button:hover .k-i-expand,.k-button:hover .k-plus,.k-button:hover .k-plus-disabled,.k-textbox:hover .k-i-expand,.k-textbox:hover .k-plus,.k-textbox:hover .k-plus-disabled,.k-button:active .k-i-expand,.k-button:active .k-plus,.k-button:active .k-plus-disabled{background-position:-16px -192px}.k-i-expand-w,.k-rtl .k-i-expand,.k-rtl .k-plus,.k-rtl .k-plus-disabled{background-position:0 -208px}.k-state-hover .k-i-expand-w,.k-state-hover .k-rtl .k-i-expand,.k-state-hover .k-rtl .k-plus,.k-state-hover .k-rtl .k-plus-disabled,.k-button:hover .k-i-expand-w,.k-button:hover .k-rtl .k-i-expand,.k-button:hover .k-rtl .k-plus,.k-button:hover .k-rtl .k-plus-disabled,.k-textbox:hover .k-i-expand-w,.k-textbox:hover .k-rtl .k-i-expand,.k-textbox:hover .k-rtl .k-plus,.k-textbox:hover .k-rtl .k-plus-disabled,.k-button:active .k-i-expand-w,.k-button:active .k-rtl .k-i-expand,.k-button:active .k-rtl .k-plus,.k-button:active .k-rtl .k-plus-disabled{background-position:-16px -208px}.k-i-collapse,.k-minus,.k-minus-disabled{background-position:0 -224px}.k-state-hover .k-i-collapse,.k-state-hover .k-minus,.k-state-hover .k-minus-disabled,.k-button:hover .k-i-collapse,.k-button:hover .k-minus,.k-button:hover .k-minus-disabled,.k-textbox:hover .k-i-collapse,.k-textbox:hover .k-minus,.k-textbox:hover .k-minus-disabled,.k-button:active .k-i-collapse,.k-button:active .k-minus,.k-button:active .k-minus-disabled{background-position:-16px -224px}.k-i-collapse-w,.k-rtl .k-i-collapse,.k-rtl .k-minus,.k-rtl .k-minus-disabled{background-position:0 -240px}.k-state-hover .k-i-collapse-w,.k-state-hover .k-rtl .k-i-collapse,.k-state-hover .k-rtl .k-minus,.k-state-hover .k-rtl .k-minus-disabled,.k-button:hover .k-i-collapse-w,.k-button:hover .k-rtl .k-i-collapse,.k-button:hover .k-rtl .k-minus,.k-button:hover .k-rtl .k-minus-disabled,.k-textbox:hover .k-i-collapse-w,.k-textbox:hover .k-rtl .k-i-collapse,.k-textbox:hover .k-rtl .k-minus,.k-textbox:hover .k-rtl .k-minus-disabled,.k-button:active .k-i-collapse-w,.k-button:active .k-rtl .k-i-collapse,.k-button:active .k-rtl .k-minus,.k-button:active .k-rtl .k-minus-disabled{background-position:-16px -240px}.k-i-pencil,.k-edit{background-position:-32px 0}.k-state-hover .k-i-pencil,.k-state-hover .k-edit,.k-button:hover .k-i-pencil,.k-button:hover .k-edit,.k-textbox:hover .k-i-pencil,.k-textbox:hover .k-edit,.k-button:active .k-i-pencil,.k-button:active .k-edit{background-position:-48px 0}.k-i-close,.k-delete,.k-group-delete{background-position:-32px -16px}.k-state-hover .k-i-close,.k-state-hover .k-delete,.k-state-hover .k-group-delete,.k-button:hover .k-i-close,.k-button:hover .k-delete,.k-button:hover .k-group-delete,.k-textbox:hover .k-i-close,.k-textbox:hover .k-delete,.k-textbox:hover .k-group-delete,.k-button:active .k-i-close,.k-button:active .k-delete,.k-button:active .k-group-delete{background-position:-48px -16px}.k-i-tick,.k-insert,.k-update{background-position:-32px -32px}.k-state-hover .k-i-tick,.k-state-hover .k-insert,.k-state-hover .k-update,.k-button:hover .k-i-tick,.k-button:hover .k-insert,.k-button:hover .k-update,.k-textbox:hover .k-i-tick,.k-textbox:hover .k-insert,.k-textbox:hover .k-update,.k-button:active .k-i-tick,.k-button:active .k-insert,.k-button:active .k-update{background-position:-48px -32px}.k-i-cancel,.k-cancel,.k-denied{background-position:-32px -48px}.k-state-hover .k-i-cancel,.k-state-hover .k-cancel,.k-state-hover .k-denied,.k-button:hover .k-i-cancel,.k-button:hover .k-cancel,.k-button:hover .k-denied,.k-textbox:hover .k-i-cancel,.k-textbox:hover .k-cancel,.k-textbox:hover .k-denied,.k-button:active .k-i-cancel,.k-button:active .k-cancel,.k-button:active .k-denied{background-position:-48px -48px}.k-i-plus,.k-add{background-position:-32px -64px}.k-state-hover .k-i-plus,.k-state-hover .k-add,.k-button:hover .k-i-plus,.k-button:hover .k-add,.k-textbox:hover .k-i-plus,.k-textbox:hover .k-add,.k-button:active .k-i-plus,.k-button:active .k-add{background-position:-48px -64px}.k-i-funnel,.k-filter{background-position:-32px -80px}.k-state-hover .k-i-funnel,.k-state-hover .k-filter,.k-button:hover .k-i-funnel,.k-button:hover .k-filter,.k-textbox:hover .k-i-funnel,.k-textbox:hover .k-filter,.k-button:active .k-i-funnel,.k-button:active .k-filter{background-position:-48px -80px}.k-i-funnel-clear,.k-clear-filter{background-position:-32px -96px}.k-state-hover .k-i-funnel-clear,.k-state-hover .k-clear-filter,.k-button:hover .k-i-funnel-clear,.k-button:hover .k-clear-filter,.k-textbox:hover .k-i-funnel-clear,.k-textbox:hover .k-clear-filter,.k-button:active .k-i-funnel-clear,.k-button:active .k-clear-filter{background-position:-48px -96px}.k-i-refresh{background-position:-32px -112px}.k-state-hover .k-i-refresh,.k-button:hover .k-i-refresh,.k-textbox:hover .k-i-refresh,.k-button:active .k-i-refresh{background-position:-48px -112px}.k-i-restore{background-position:-32px -128px}.k-state-hover .k-i-restore,.k-button:hover .k-i-restore,.k-textbox:hover .k-i-restore,.k-button:active .k-i-restore{background-position:-48px -128px}.k-i-maximize{background-position:-32px -144px}.k-state-hover .k-i-maximize,.k-button:hover .k-i-maximize,.k-textbox:hover .k-i-maximize,.k-button:active .k-i-maximize{background-position:-48px -144px}.k-i-minimize{background-position:-64px -288px}.k-state-hover .k-i-minimize,.k-button:hover .k-i-minimize,.k-textbox:hover .k-i-minimize,.k-button:active .k-i-minimize{background-position:-80px -288px}.k-resize-se{background-position:-32px -160px}.k-state-hover .k-resize-se,.k-button:hover .k-resize-se,.k-textbox:hover .k-resize-se,.k-button:active .k-resize-se{background-position:-48px -160px}.k-i-calendar{background-position:-32px -176px}.k-state-hover .k-i-calendar,.k-button:hover .k-i-calendar,.k-textbox:hover .k-i-calendar,.k-button:active .k-i-calendar{background-position:-48px -176px}.k-i-clock{background-position:-32px -192px}.k-state-hover .k-i-clock,.k-button:hover .k-i-clock,.k-textbox:hover .k-i-clock,.k-button:active .k-i-clock{background-position:-48px -192px}.k-si-plus{background-position:-32px -208px}.k-state-hover .k-si-plus,.k-button:hover .k-si-plus,.k-textbox:hover .k-si-plus,.k-button:active .k-si-plus{background-position:-48px -208px}.k-si-minus{background-position:-32px -224px}.k-state-hover .k-si-minus,.k-button:hover .k-si-minus,.k-textbox:hover .k-si-minus,.k-button:active .k-si-minus{background-position:-48px -224px}.k-i-search{background-position:-32px -240px}.k-state-hover .k-i-search,.k-button:hover .k-i-search,.k-textbox:hover .k-i-search,.k-button:active .k-i-search{background-position:-48px -240px}.k-i-custom{background-position:-115px -113px}.k-state-hover .k-i-custom,.k-button:hover .k-i-custom,.k-textbox:hover .k-i-custom,.k-button:active .k-i-custom{background-position:-141px -113px}.k-editor .k-i-custom{background-position:-112px -110px}.k-viewHtml{background-position:-112px -132px}.k-i-insert-n,.k-insert-top{background-position:-160px -32px}.k-state-hover .k-i-insert-n,.k-state-hover .k-insert-top,.k-button:hover .k-i-insert-n,.k-button:hover .k-insert-top,.k-textbox:hover .k-i-insert-n,.k-textbox:hover .k-insert-top,.k-button:active .k-i-insert-n,.k-button:active .k-insert-top{background-position:-176px -32px}.k-i-insert-m,.k-insert-middle{background-position:-160px -48px}.k-state-hover .k-i-insert-m,.k-state-hover .k-insert-middle,.k-button:hover .k-i-insert-m,.k-button:hover .k-insert-middle,.k-textbox:hover .k-i-insert-m,.k-textbox:hover .k-insert-middle,.k-button:active .k-i-insert-m,.k-button:active .k-insert-middle{background-position:-176px -48px}.k-i-insert-s,.k-insert-bottom{background-position:-160px -64px}.k-state-hover .k-i-insert-s,.k-state-hover .k-insert-bottom,.k-button:hover .k-i-insert-s,.k-button:hover .k-insert-bottom,.k-textbox:hover .k-i-insert-s,.k-textbox:hover .k-insert-bottom,.k-button:active .k-i-insert-s,.k-button:active .k-insert-bottom{background-position:-176px -64px}.k-drop-hint{background-position:0 -326px}.k-i-note,.k-warning{background-position:-160px -240px}.k-state-hover .k-i-note,.k-state-hover .k-warning,.k-button:hover .k-i-note,.k-button:hover .k-warning,.k-textbox:hover .k-i-note,.k-textbox:hover .k-warning,.k-button:active .k-i-note,.k-button:active .k-warning{background-position:-176px -240px}.k-i-sort-asc{background-position:-112px -240px}.k-state-hover .k-i-sort-asc,.k-button:hover .k-i-sort-asc,.k-textbox:hover .k-i-sort-asc,.k-button:active .k-i-sort-asc{background-position:-128px -240px}.k-i-sort-desc{background-position:-112px -256px}.k-state-hover .k-i-sort-desc,.k-button:hover .k-i-sort-desc,.k-textbox:hover .k-i-sort-desc,.k-button:active .k-i-sort-desc{background-position:-128px -256px}.k-i-group{background-position:-112px -272px}.k-state-hover .k-i-group,.k-button:hover .k-i-group,.k-textbox:hover .k-i-group,.k-button:active .k-i-group{background-position:-128px -272px}.k-i-ungroup{background-position:-112px -288px}.k-state-hover .k-i-ungroup,.k-button:hover .k-i-ungroup,.k-textbox:hover .k-i-ungroup,.k-button:active .k-i-ungroup{background-position:-128px -288px}.k-i-columns{background-position:-112px -304px}.k-state-hover .k-i-columns,.k-button:hover .k-i-columns,.k-textbox:hover .k-i-columns,.k-button:active .k-i-columns{background-position:-128px -304px}.k-file{background-position:0 0}.k-state-hover .k-file,.k-button:hover .k-file,.k-textbox:hover .k-file,.k-button:active .k-file{background-position:-16px 0}.k-i-folder-add,.k-addfolder{background-position:-32px -272px}.k-state-hover .k-i-folder-add,.k-state-hover .k-addfolder,.k-button:hover .k-i-folder-add,.k-button:hover .k-addfolder,.k-textbox:hover .k-i-folder-add,.k-textbox:hover .k-addfolder,.k-button:active .k-i-folder-add,.k-button:active .k-addfolder{background-position:-48px -272px}.k-i-folder-up,.k-goup{background-position:-32px -288px}.k-state-hover .k-i-folder-up,.k-state-hover .k-goup,.k-button:hover .k-i-folder-up,.k-button:hover .k-goup,.k-textbox:hover .k-i-folder-up,.k-textbox:hover .k-goup,.k-button:active .k-i-folder-up,.k-button:active .k-goup{background-position:-48px -288px}.k-image{border:0}html .k-success-colored{color:#507f50;border-color:#d0dfd0;background-color:#f0fff0}html .k-info-colored{color:#50607f;border-color:#d0d9df;background-color:#f0f9ff}html .k-error-colored{color:#7f5050;border-color:#dfd0d0;background-color:#fff0f0}.k-inline-block{padding:0 2px}.k-loading,.k-loading-image{background-color:transparent;background-repeat:no-repeat;background-position:center center}.k-loading-mask,.k-loading-image,.k-loading-text{position:absolute}.k-loading-text{top:-4000px;left:-4000px}.k-loading-image,.k-loading-color{width:100%;height:100%}.k-loading-image{top:0;left:0;z-index:2}.k-loading-color{filter:alpha(opacity=30);opacity:.3}.k-content-frame{border:0;width:100%;height:100%}.k-pane>.k-splitter-overlay{filter:alpha(opacity=0);opacity:0;position:absolute}.k-drag-clue{position:absolute;z-index:10003;border-style:solid;border-width:1px;font-size:.9em;padding:.2em .4em;white-space:nowrap;cursor:default}.k-drag-status{margin-top:-3px;margin-right:4px;vertical-align:middle}.k-reorder-cue{position:absolute;width:1px;overflow:visible}.k-reorder-cue .k-icon{position:absolute;left:-4px;width:8px;height:4px}.k-reorder-cue .k-i-arrow-s{top:-4px;background-position:-4px -166px}.k-reorder-cue .k-i-arrow-n{bottom:-4px;background-position:-4px -134px}.k-scrollbar{position:absolute;overflow:scroll}.k-scrollbar-vertical{top:0;right:0;width:17px;height:100%;overflow-x:hidden}.k-touch-scrollbar{display:none;position:absolute;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585}@media only screen and (-webkit-min-device-pixel-ratio:2){body .k-touch-scrollbar{height:12px;width:12px;-webkit-border-radius:7px}}.k-virtual-scrollable-wrap{overflow-x:auto}div.k-window{display:inline-block;position:absolute;z-index:10001;border-style:solid;border-width:1px;padding-top:2em}.k-block>.k-header,.k-window-titlebar{position:absolute;width:100%;height:1.1em;line-height:1.1em;border-bottom-style:solid;border-bottom-width:1px;margin-top:-2em;padding:.4em 0;font-size:1.2em;white-space:nowrap;min-height:16px}.k-block>.k-header{position:relative;margin:-2px 0 0 -2px;padding:.3em 2px}.k-window-title{position:absolute;left:.44em;right:.44em;overflow:hidden;cursor:default;text-overflow:ellipsis}.k-window-title .k-image{margin:0 5px 0 0;vertical-align:middle}div.k-window-titleless{padding-top:0}div.k-window-content{position:relative;z-index:-1;height:100%;padding:.58em;overflow:auto;outline:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*+html .k-window{padding-bottom:1.16em}.k-window-titlebar .k-window-actions{position:absolute;top:0;right:.3em;padding-top:.3em;white-space:nowrap}.k-window-titlebar .k-window-action{display:inline-block;width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;filter:alpha(opacity=70);opacity:.7}.k-window-titlebar .k-state-hover{border-style:solid;border-width:1px;padding:1px;filter:alpha(opacity=100);opacity:1}.k-window-action .k-icon{margin:0;vertical-align:top}.k-window .k-resize-handle{position:absolute;z-index:1;background-color:#fff;font-size:0;line-height:6px;filter:alpha(opacity=0);opacity:0;zoom:1}.k-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize}.k-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize}.k-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize}.k-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize}.k-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize}.k-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize}.k-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize}.k-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize}.k-overlay{position:fixed;top:0;left:0;z-index:10001;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);opacity:.5}.k-window .k-overlay{position:absolute;width:100%;height:100%;background-color:#fff;filter:alpha(opacity=0);opacity:0}.k-window .k-widget{z-index:10002}.k-tabstrip{margin:0;padding:0;zoom:1}.k-tabstrip .k-tabstrip-items{padding:.3em .3em 0}.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item{list-style-type:none;display:inline-block;position:relative;border-style:solid;border-width:1px 1px 0;margin:0 -1px 0 0;padding:0;vertical-align:top}.k-tabstrip-items .k-tab-on-top,.k-tabstrip-items .k-state-active,.k-panelbar .k-tabstrip-items .k-state-active{margin-bottom:-1px;padding-bottom:1px}.k-tabstrip-items .k-tab-on-top{z-index:1}.k-tabstrip-items .k-link,.k-panelbar .k-tabstrip-items .k-link{display:inline-block;border-bottom-width:0;padding:.5em .92em}.k-tabstrip-items .k-icon,.k-panelbar .k-tabstrip-items .k-icon{margin:-1px 4px 0 -3px;vertical-align:top}.k-tabstrip-items .k-item .k-image,.k-tabstrip-items .k-item .k-sprite,.k-panelbar .k-tabstrip-items .k-item .k-image,.k-panelbar .k-tabstrip-items .k-item .k-sprite{margin:-3px 3px 0 -6px;vertical-align:middle}*+html .k-tabstrip-items .k-item .k-image,*+html .k-tabstrip-items .k-item .k-sprite{margin-top:-1px;vertical-align:top}.k-tabstrip .k-content,.k-panelbar .k-tabstrip .k-content{position:static;border-style:solid;border-width:1px;margin:0 .29em .3em;padding:.3em .92em;zoom:1}.k-tabstrip>.k-content{display:none}.k-tabstrip .k-content.km-scroll-wrapper{padding:0}.k-tabstrip .k-content>.km-scroll-container{padding:.3em .92em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-panelbar{zoom:1}.k-panelbar>.k-item,.k-panel>.k-item{list-style-type:none;display:block;border-width:0;margin:0;zoom:1;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-panelbar .k-image,.k-panelbar .k-sprite{float:left;margin-top:4px;margin-right:5px;vertical-align:middle}.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link{display:block;position:relative;border-bottom-style:solid;border-bottom-width:1px;padding:0 1em;line-height:2.34em;text-decoration:none;zoom:1}.k-panelbar-expand,.k-panelbar-collapse{position:absolute;top:5px;right:2px}.k-panelbar .k-panel,.k-panelbar .k-content{position:relative;border-bottom-style:solid;border-bottom-width:1px;margin:0;padding:0;zoom:1}.k-panel>.k-item>.k-link{border-bottom:0;font-size:.95em;line-height:2.2}.k-panel .k-i-arrow-n,.k-panel .k-i-arrow-s{top:4px}.k-panel .k-panel>.k-item>.k-link{padding-left:2em}.k-panelbar .k-i-seek-e .k-link{border-bottom:0}.k-panel .k-panel{border-bottom:0}.k-menu{cursor:default}.k-menu,.k-menu .k-group{list-style:none;margin:0;padding:0;zoom:1}.k-menu:after{content:'';display:block;width:99%;height:0;float:inherit;overflow:hidden}.k-menu .k-item .k-item,ul.k-menu-vertical>.k-item{display:block;float:none;border-width:0}*+html .k-menu .k-item .k-item{zoom:normal}.k-menu .k-item>.k-link>.k-icon,.k-menu .k-image,.k-menu .k-sprite{margin:-2px 4px 0 -4px;vertical-align:middle}.k-menu .k-item>.k-link>.k-icon{margin:-2px 0 0}*+html .k-menu .k-item>.k-link>.k-i-arrow-s,*+html .k-menu .k-image,*+html .k-menu .k-sprite{margin-top:0}.k-menu .k-item>.k-link{display:block;padding:.5em .9em .4em;line-height:1.34em;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-menu .k-group{display:none;border-style:solid;border-width:1px;overflow:visible;white-space:nowrap}.k-menu .k-group .k-item{display:block;border-width:0}.k-menu .k-item,.k-widget.k-menu-horizontal>.k-item{position:relative;float:left;border-style:solid;border-width:0 1px 0 0;vertical-align:top;zoom:1;box-sizing:content-box}.k-menu .k-group .k-item>.k-link{padding:.28em 1.8em .38em .9em}*+html .k-menu .k-group .k-link{width:100%}.k-menu .k-item>.k-link>.k-i-arrow-s{margin-right:-8px}.k-menu .k-item>.k-link>.k-i-arrow-e{position:absolute;top:50%;margin-top:-8px;right:2px}.k-menu .k-animation-container{border:0}.k-menu .k-animation-container,.k-menu .k-group{position:absolute;left:0}.k-menu .k-animation-container .k-animation-container,.k-menu .k-group .k-group,.k-menu-vertical .k-animation-container,.k-menu-vertical .k-group{top:0;left:0}.k-menu .k-animation-container .k-group{top:auto;left:auto;margin-left:-1px}.k-menu .k-animation-container,.k-popup .k-animation-container{margin-top:-1px;padding-left:1px}.k-popup .k-animation-container .k-popup{margin-left:-1px}ul.k-menu .k-separator{padding:.25em 0;height:100%;width:1px;font-size:0;line-height:0;border-width:0 1px 0 0}ul.k-menu-vertical .k-separator,.k-menu .k-group .k-separator{padding:0;height:1px;width:100%;border-width:1px 0 0}.k-grid,.k-listview{position:relative;zoom:1}.k-grid table{width:100%;border-collapse:separate;empty-cells:show;border-width:0;outline:0}.k-grid-header .k-header{text-align:left}.k-grid-header .k-header{overflow:hidden;border-style:solid;border-width:0 0 1px 1px;padding:.5em .6em .4em .6em;font-weight:normal;white-space:nowrap;text-overflow:ellipsis}.k-grid-header .k-header .k-link{display:block;min-height:18px;line-height:18px;margin:-0.5em -0.6em -0.4em -0.6em;padding:.5em .6em .4em .6em}.k-grid-header .k-filterable .k-link{padding-right:2.4em}.k-grid-header .k-header .k-icon{position:static}.k-grid-header .k-link>.k-icon{vertical-align:text-top}.k-grid .k-state-hover{cursor:pointer}.k-grid td{border-style:solid;border-width:0 0 0 1px;padding:.4em .6em;overflow:hidden;line-height:1.6em;vertical-align:middle;text-overflow:ellipsis}.k-grid .k-grouping-row td,.k-grid .k-hierarchy-cell{overflow:visible}.k-grid-edit-row td{text-overflow:clip}.k-grid-edit-row .k-textbox{margin-top:0;margin-bottom:0}.k-grid-header-wrap,.k-grid-footer-wrap{position:relative;width:100%;overflow:hidden;border-style:solid;border-width:0 1px 0 0;zoom:1}div.k-grid-header,div.k-grid-footer{padding-right:17px;border-bottom-style:solid;border-bottom-width:1px;zoom:1}div.k-grid-header .k-header{border-bottom-width:0}.k-grid-content{position:relative;width:100%;overflow:auto;overflow-x:auto;overflow-y:scroll;zoom:1}@media print{.k-grid{height:auto!important}.k-grid-header{padding:0!important}.k-grid-content{overflow:visible;height:auto!important}}.k-virtual-scrollable-wrap{height:100%;overflow-y:hidden;position:relative}.k-grid-header table,.k-grid-content table,.k-grid-footer table{table-layout:fixed}*+html .k-grid-content table{width:auto}.k-grid-toolbar{border-style:solid;border-width:1px 0 0}.k-grid-header .k-header:first-child,.k-grid tbody td:first-child,.k-grid tfoot td:first-child{border-left-width:0}.k-grid-toolbar:first-child,.k-grouping-header+.k-grid-toolbar{border-width:0 0 1px}.k-footer-template td{border-style:solid;border-width:1px 0 0 1px}.k-group-footer td{border-style:solid;border-width:1px 0}.k-grid-footer{border-style:solid;border-width:1px 0 0}.k-grid-footer td{border-top-width:0}.k-pager-wrap{overflow:auto;border-style:solid;border-width:1px;line-height:24px;padding:4px 0 4px 3px}.k-grid-pager{border-width:1px 0 0}.k-grid .k-pager-numbers,.k-pager-numbers .k-link,.k-pager-numbers .k-state-selected{display:inline-block;vertical-align:top;margin-right:1px}.k-pager-numbers{margin:0 2px}.k-pager-numbers .k-state-selected{vertical-align:top}.k-pager-numbers li,.k-pager-input{float:left}.k-grid .k-pager-numbers{float:left;cursor:default}.k-pager-info{float:right;padding:0 16px}.k-pager-numbers .k-link{text-decoration:none}.k-pager-wrap>.k-link{float:left;margin:0 1px;padding:0 3px;height:22px;line-height:22px;border-radius:13px;cursor:pointer}.k-pager-wrap>a.k-state-disabled:hover{background:0;cursor:default}.k-pager-wrap>.k-link .k-icon{vertical-align:top;margin-top:3px}.k-pager-numbers .k-link{padding:0 8px;border-radius:13px}.k-pager-numbers .k-link:hover{padding:0 7px;border-style:solid;border-width:1px;line-height:22px}.k-pager-wrap>.k-link{border-style:solid;border-width:1px}.k-pager-wrap .k-pager-refresh{float:right;margin-right:6px;border-width:0;border-radius:0}.k-pager-numbers .k-state-selected{border-style:solid;border-width:1px;line-height:22px;padding:0 7px;border-radius:13px}.k-pager-wrap .k-textbox{width:40px}*+html .k-pager-wrap .k-textbox{height:16px;margin-top:2px;display:inline}.k-pager-wrap .k-dropdown{width:50px}.k-pager-refresh{float:right}.k-pager-input,.k-pager-sizes{padding:0 17px}*+html .k-pager-sizes{float:left}.k-pager-wrap .k-textbox,.k-pager-wrap .k-widget{margin:-0.3em .4em 0}.k-grid-filter,.k-header-column-menu{float:right;margin:-0.5em -0.6em -0.4em;padding:.5em .2em .4em;z-index:1}.k-grid .k-animation-container{position:absolute}.k-filter-menu{padding:.5em}.k-filter-menu .k-widget,.k-filter-menu .k-textbox{display:block}.k-filter-help-text,.k-filter-menu .k-widget{margin:.3em 0 0}.k-filter-menu .k-filter-and{width:6em;margin:.6em 0 0}.k-filter-menu .k-button{width:48%;margin:.6em 4% 0 0}.k-filter-menu .k-button+.k-button{margin-right:0}.k-grouping-row .k-icon{margin:0 4px 0 0}.k-grouping-row p{display:inline-block;vertical-align:middle;margin-left:-0.6em;padding:0 .6em}.k-grid .k-group-cell+td,.k-grid .k-hierarchy-cell+td{border-left-width:0}.k-grid .k-group-col,.k-grid .k-hierarchy-col{width:30px}.k-grouping-header{border-bottom-style:solid;border-bottom-width:1px}.k-grouping-header{line-height:2}.k-grouping-dropclue{position:absolute;width:6px;height:25px;background-repeat:no-repeat;background-position:-165px -148px}.k-grouping-header .k-group-indicator{display:inline-block;border-style:solid;border-width:1px;margin:0 3px;padding:.15em .15em .15em .4em;line-height:1.5em}.k-grouping-header .k-link{display:inline-block;border-width:0;padding:0;line-height:normal;text-decoration:none}.k-grouping-header .k-button{border:0;padding:0;background:transparent;line-height:1}.k-grouping-header .k-link .k-icon{margin:0 0 0 -3px}.k-grouping-header .k-button .k-icon{margin:0 0 0 3px}.k-grouping-header a,.k-grouping-header .k-button{display:inline-block;vertical-align:middle}.k-dirty{position:absolute;width:0;height:0;border-style:solid;border-width:3px;border-color:#f00 transparent transparent #f00;margin:-0.45em 0 0 -0.6em;padding:0;overflow:hidden;vertical-align:top}.k-grouping-header,.k-grid-toolbar{margin:0;padding:.2em .6em;cursor:default}.k-grid .k-edit-container{padding:0}.k-edit-form{margin:0;padding:0}.k-grid-edit-row .k-edit-form td{border-bottom-width:0}.k-edit-form-container{position:relative;width:400px}.k-edit-label,.k-edit-field,.k-edit-form-container .editor-label,.k-edit-form-container .editor-field{display:inline-block;padding-bottom:1em}.k-edit-label,.k-edit-form-container .editor-label{width:30%;text-align:right;padding-right:3%}.k-edit-field,.k-edit-form-container .editor-field{width:60%}.k-grid .field-validation-error{display:block}.k-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb}.k-grid-toolbar .k-button{vertical-align:middle}.k-grid-actions{display:inline-block}*+html .k-grid-actions{vertical-align:bottom}.k-grid .k-button,.k-edit-form-container .k-button{margin:0 .2em}.k-grid tbody .k-button{min-width:64px}.k-grid tbody button.k-button,#ie8#skips{min-width:78px}*+html .k-grid tbody a.k-button{min-width:62px}html body .k-grid tbody .k-button-icon{width:auto;min-width:0}.k-detail-row{position:relative}.k-grid .k-detail-cell{overflow:visible}.k-grid .k-edit-cell{padding:0 .3em}.k-edit-cell>.k-textbox,.k-edit-cell>.k-widget,.k-grid-edit-row>td>.k-textbox,.k-grid-edit-row>td>.k-widget{width:100%}.k-edit-cell .k-widget,.k-grid-edit-row .k-widget{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*+html .k-edit-cell>.k-textbox,*+html .k-edit-cell>.k-widget,*+html .k-grid-edit-row>td>.k-textbox,*+html .k-grid-edit-row>td>.k-widget{display:block;width:90%}html .k-edit-cell .k-tooltip,html .k-grid-edit-row .k-tooltip{width:auto;max-width:300px}.k-edit-cell input[type="checkbox"]{margin-left:.6em}.k-grid tbody td>.k-grid-delete{margin-top:-0.2em;margin-bottom:-0.2em}.k-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa}.k-grid .k-resize-handle{position:absolute;height:25px;cursor:col-resize}.k-marquee{position:absolute;filter:alpha(opacity=30);opacity:.3}.k-column-menu .k-sprite{margin-right:10px}.k-column-menu>.k-menu{border-width:0}.k-columns-item .k-group{max-height:200px;overflow:auto}span.k-datepicker,span.k-numerictextbox,span.k-combobox,span.k-dropdown,span.k-timepicker,span.k-datetimepicker{background:0}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-numerictextbox,.k-dropdown,.k-selectbox,.k-textbox{position:relative;display:inline-block;width:12.4em;overflow:visible;border-width:0;vertical-align:middle}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-numerictextbox,.k-dropdown,.k-selectbox{white-space:nowrap}.k-datetimepicker{width:15em}.k-autocomplete,.k-picker-wrap,.k-numeric-wrap{position:relative;cursor:default}.k-dropdown-wrap{position:relative}.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{display:block}.k-block,.k-widget,.k-grid,.k-slider,.k-splitter,.k-treeview,.k-panelbar,.k-header-column-menu{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-block,.k-slider,.k-splitbar,.k-calendar,.k-pager-wrap,.k-grid-header .k-link,.k-header-column-menu{-webkit-touch-callout:none}.k-popup.k-list-container,.k-popup.k-calendar-container{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:2px;border-width:1px;border-style:solid}.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up{border-top:0;padding-top:3px}.k-dropdown-wrap.k-state-border-up .k-select,.k-picker-wrap.k-state-border-up .k-select{top:1px}.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{border-bottom:0;padding-bottom:3px}.k-textbox,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{border-width:1px;border-style:solid;padding:2px 22px 2px 2px}.k-numeric-wrap.k-expand-padding{padding-right:2px}.k-textbox,.k-autocomplete{padding:2px}.k-textbox.k-space-left{padding-left:22px}.k-textbox.k-space-right{padding-right:22px}.k-textbox .k-icon{font-size:inherit;top:50%;margin:-8px 0 0;position:absolute}.k-space-left .k-icon{left:3px}.k-space-right .k-icon{right:3px}.k-autocomplete,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-hover{-webkit-transition:box-shadow .15s ease-out;-moz-transition:box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out;transition:box-shadow .15s ease-out}.k-textbox>input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-combobox .k-input{width:100%;vertical-align:top}.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{font-family:inherit;border-width:0;outline:0}.k-dropdown .k-input,.k-selectbox .k-input{background:transparent}*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-combobox .k-input{margin:-1px 0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{position:absolute;top:0;right:0;display:inline-block;vertical-align:top;text-decoration:none}.k-combobox .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select{border-style:solid;border-width:0;border-color:inherit}.k-picker-wrap .k-select,.k-numeric-wrap .k-select{padding:0 2px}span.k-datetimepicker .k-select,span.k-datetimepicker .k-select+.k-select{right:0}.k-textbox,.k-autocomplete{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-textbox>input,.k-autocomplete .k-input{display:block}.k-combobox .k-icon{margin-top:1px}.k-dropdown .k-select,.k-selectbox .k-select{overflow:hidden;border:0;text-decoration:none;font:inherit;color:inherit}.k-dropdown .k-input,.k-selectbox .k-input{display:block;overflow:hidden;text-overflow:ellipsis}.k-textbox>input,.k-autocomplete .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{height:1.31em;line-height:1.31em;padding:.18em 0;text-indent:4px;border:0;margin:0}*+html .k-autocomplete .k-input,*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-dropdown-wrap .k-input,*+html .k-selectbox .k-input{text-indent:0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{min-height:1.3em;line-height:1.3em;vertical-align:middle;padding:3px}body .k-datetimepicker .k-select{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-combobox .k-icon,.k-dropdown,.k-selectbox .k-icon{cursor:pointer}.k-popup{border-style:solid;border-width:1px}.k-popup .k-item{cursor:default}.k-popup .k-calendar{border:0}.k-list{height:100%}.k-popup .k-list .k-item{padding:1px 5px 1px 5px;line-height:1.8em}.k-popup .k-list .k-state-hover,.k-popup .k-list .k-state-focused,.k-popup .k-list .k-state-selected{padding:0 4px;border-width:1px;border-style:solid}.k-calendar{position:relative;display:inline-block;width:203px;overflow:hidden}.k-calendar td,.k-calendar .k-link{text-decoration:none}.k-calendar .k-action-link{text-decoration:underline}.k-calendar .k-header,.k-calendar .k-footer{position:relative;text-align:center;zoom:1}.k-widget.k-calendar .k-nav-prev,.k-widget.k-calendar .k-nav-next{position:absolute;top:3px}.k-widget.k-calendar .k-nav-prev{left:1%}.k-widget.k-calendar .k-nav-next{right:1%}.k-calendar .k-content{float:left;border-spacing:0;width:100%;height:166px;border-width:0;margin:0;table-layout:fixed;text-align:right;outline:0}.k-calendar .k-animation-container .k-content{height:100%}.k-widget.k-calendar .k-nav-fast{display:inline-block;width:75%;height:22px;line-height:22px;margin:3px 0 4px}.k-calendar .k-header .k-icon{vertical-align:top;margin:3px 3px 4px}.k-calendar th{border-bottom-style:solid;border-bottom-width:1px;padding:.4em .45em .4em .1em;font-weight:normal;cursor:default}.k-calendar td{padding:1px;cursor:pointer}.k-calendar .k-state-focus{border-style:dotted;border-width:1px;padding:0}.k-calendar .k-content .k-link{display:block;overflow:hidden;min-height:22px;line-height:22px;padding:0 .45em 0 .1em}.k-calendar .k-meta-view .k-link{padding:.25em 0 .3em;text-align:center}.k-calendar .k-footer{clear:both;padding:.5em 0}.k-calendar .k-nav-today:hover{text-decoration:underline}span.k-timepicker,span.k-datetimepicker,span.k-datepicker{background-color:transparent}.k-datetimepicker .k-picker-wrap{padding-right:42px}.k-datetimepicker .k-picker-wrap .k-icon{margin-left:3px}.k-picker-wrap .k-icon{cursor:pointer}.k-button,.k-textbox,.k-timepicker,.k-datepicker,.k-datetimepicker{display:inline-block;vertical-align:middle}.k-picker-wrap .k-input{margin:0}.k-time-popup .k-item{padding:1px 3px}div.k-treeview{border-width:0;background:0;overflow:auto;white-space:nowrap}.k-treeview .k-item{display:block;border-width:0;margin:0;padding:0 0 0 16px}.k-treeview>.k-group,.k-treeview .k-item>.k-group,.k-treeview .k-content{margin:0;padding:0;background:0;list-style-type:none;position:relative}.k-treeview .k-icon,.k-treeview .k-image,.k-treeview .k-sprite,.k-treeview .k-checkbox,.k-treeview .k-in{display:inline-block;vertical-align:top}.k-treeview .k-plus,.k-treeview .k-minus,.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{float:left;margin-top:3px;margin-left:-16px;cursor:pointer}.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{cursor:default}.k-treeview .k-sprite,.k-treeview .k-image{margin-right:3px}.k-treeview .k-in{margin:1px 0 1px 2px;padding:2px 4px 2px 3px;line-height:16px;text-decoration:none}.k-treeview span.k-in{cursor:default}.k-treeview .k-in.k-state-hover,.k-treeview .k-in.k-state-selected,.k-treeview .k-in.k-state-focused{border-style:solid;border-width:1px;padding:1px 3px 1px 2px}.k-treeview .k-drop-hint{position:absolute;z-index:10000;visibility:hidden;width:80px;height:5px;margin-top:-3px;background-color:transparent;background-repeat:no-repeat}.k-input{padding:.25em 0}.k-input,.k-textbox>input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-textbox{outline:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;text-indent:2px\9;width:12.4em}input.k-textbox{padding:2px .3em;height:2.12em;line-height:1.6em}*+html input.k-textbox{display:block;line-height:1.72em;height:1.72em;text-indent:.3em}textarea.k-textbox{height:auto}*+html .k-textbox{padding:1px 0;text-indent:0}span.k-numerictextbox{background:transparent}.k-numerictextbox .k-input{margin:0}.k-numerictextbox .k-select{padding-top:1px;padding-bottom:1px}.k-numerictextbox .k-link{display:block;height:11px;line-height:11px;border-width:0;padding:0}.k-numerictextbox .k-icon{height:11px;vertical-align:top}.k-colorpicker{display:inline-block;vertical-align:middle}.k-colorpicker .k-tool-icon{display:inline-block;vertical-align:top;padding:2px 3px;font-size:0;line-height:0}.k-colorpicker .k-selected-color{display:block;height:16px;width:16px}.k-colorpicker .k-icon{margin-top:4px;vertical-align:middle;cursor:pointer}.k-colorpicker-popup{width:136px;line-height:0}.k-colorpicker-popup .k-reset{display:inline-block;margin:0;padding:.25em}.k-colorpicker-popup .k-item{display:block;float:left;width:12px;height:12px;overflow:hidden;font-size:0;margin:0 1px 1px 0;padding:0}.k-colorpicker-popup .k-item div{height:100%;margin:1px;width:100%}.k-editor{width:100%;height:250px;table-layout:fixed;border-style:solid;border-width:1px;border-collapse:separate;font-size:100%;vertical-align:top}.k-editor .k-editor-toolbar-wrap{border:0;padding:0}.k-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;line-height:1.3em;cursor:default}.k-editor-toolbar li{display:inline;vertical-align:middle}.k-editor-toolbar .k-editor-dropdown,.k-editor-toolbar .k-editor-combobox,.k-editor-toolbar .k-editor-selectbox,.k-editor-toolbar .k-editor-colorpicker{margin-right:2px}.k-editor-toolbar .k-separator{position:relative;top:1px;border-style:solid;border-width:0 1px 0 0;margin:0 .15em;padding:0 0 0 1px;font-size:1.3em}.k-editor-toolbar .k-break{display:block;height:1px;font-size:0;line-height:0}.k-editor-toolbar .k-dropdown,.k-editor-toolbar .k-combobox,.k-editor-toolbar .k-selectbox,.k-editor-toolbar .k-colorpicker{vertical-align:middle}.k-editor-button .k-tool-icon{width:22px;height:22px;margin:1px;vertical-align:middle}.k-editor-colorpicker .k-tool-icon{padding:17px 3px 2px}.k-editor-colorpicker .k-icon{border-style:solid;border-width:0 0 0 1px;border-color:#ccc}.k-editor-colorpicker .k-selected-color{height:3px}.k-bold{background-position:-64px 0}.k-italic{background-position:-64px -22px}.k-underline{background-position:-64px -44px}.k-strikethrough{background-position:-64px -66px}.k-foreColor .k-tool-icon{background-position:-64px -88px}.k-backColor .k-tool-icon{background-position:-64px -110px}.k-justifyLeft{background-position:-64px -132px}.k-justifyCenter{background-position:-64px -154px}.k-justifyRight{background-position:-64px -176px}.k-justifyFull{background-position:-64px -198px}.k-insertUnorderedList{background-position:-64px -242px}.k-insertOrderedList{background-position:-64px -264px}.k-indent,.k-rtl .k-outdent{background-position:-112px 0}.k-outdent,.k-rtl .k-indent{background-position:-112px -22px}.k-createLink{background-position:-112px -44px}.k-unlink{background-position:-112px -66px}.k-insertImage{background-position:-112px -88px}.k-subscript{background-position:-112px -154px}.k-superscript{background-position:-112px -176px}.k-fontName{width:110px}.k-fontSize{width:124px}.k-formatBlock{width:147px}.k-editor-button .k-state-hover,.k-editor-button .k-state-active{border-style:solid;border-width:1px;margin:0;vertical-align:middle}.k-editor-button .k-state-disabled{filter:alpha(opacity=30);opacity:.3}.k-editor .k-editable-area{width:100%;height:100%;border-style:solid;border-width:1px;outline:0}.k-editor .k-content{display:block;width:100%;height:100%;border:0;margin:0;padding:0}.k-editor iframe.k-content{display:inline;vertical-align:top}.k-editor .k-raw-content{border:0;margin:0;padding:0}.k-editor .k-raw-content,.k-editor-dialog .k-editor-textarea{font-size:inherit;font-family:consolas,"courier new",monospace}.k-editor-dialog{padding:1em}.k-editor-dialog ol{margin:0;padding:1em 0 0;list-style:none}.k-form-text-row,.k-form-checkbox-row{padding-bottom:.3em}.k-form-text-row input{margin-right:1em}.k-form-text-row label{display:inline-block;width:7em;padding-right:.5em;text-align:right}.k-form-checkbox-row input{margin-left:7.5em;padding:0;font-size:inherit}.k-form-checkbox-row label{padding-left:.3em}.k-form-checkbox-row input,.k-form-checkbox-row label,.k-form-text-row label.k-form-text-row input,.k-form-text-row select{vertical-align:middle}.k-form-text-row input,.k-form-text-row select{width:20em}.k-editor-dialog .k-form-text-row label,.k-editor-dialog .k-button{display:inline-block}.k-editor-dialog .k-button-wrapper{padding:1em;text-align:right}.k-editor-dialog .k-button-wrapper button{vertical-align:baseline}.k-editor-dialog .k-editor-textarea{width:600px;height:350px;padding:.2em .2em .2em .4em;border-width:1px;border-style:solid;overflow:auto}.k-button-wrapper .k-link:hover{text-decoration:underline}div.k-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-slider-vertical{width:26px;height:200px}.k-slider-horizontal{display:inline-block;width:200px;height:26px}.k-slider-wrap{width:100%;height:100%}.k-slider .k-button,.k-grid .k-slider .k-button{position:absolute;top:0;width:24px;min-width:0;height:24px;margin:0;padding:0;outline:0}.k-slider .k-button .k-icon{margin-top:4px;vertical-align:top}.k-state-disabled .k-slider-wrap{filter:alpha(opacity=60);opacity:.6}.k-state-disabled .k-slider-wrap .k-slider-items{color:#333}.k-slider .k-button-decrease{left:0}.k-slider-vertical .k-button-decrease,.k-grid .k-slider-vertical .k-button-decrease{top:auto;bottom:0}.k-slider .k-button-increase{right:0}.k-slider .k-icon{cursor:pointer}*+html .k-slider .k-icon{margin-top:2px}.k-slider-track,.k-slider-selection{position:absolute;margin:0;padding:0}.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection{top:50%;left:0;height:8px;margin-top:-4px;background-repeat:repeat-x}.k-slider-horizontal .k-slider-buttons .k-slider-track{left:34px}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection{left:50%;bottom:0;width:8px;margin-left:-4px;background-repeat:repeat-y}.k-slider-vertical .k-slider-buttons .k-slider-track{bottom:34px}.k-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;overflow:hidden;text-decoration:none;text-align:center;outline:0}.k-slider-horizontal .k-draghandle{top:-4px;width:13px;height:14px;cursor:w-resize}.k-slider-vertical .k-draghandle{left:-4px;width:14px;height:13px;cursor:n-resize}.k-slider-buttons .k-slider-items{margin-left:34px}.k-slider-horizontal .k-slider-items{height:100%}.k-slider-vertical .k-slider-items{padding-top:1px}.k-slider-vertical .k-slider-buttons .k-slider-items{padding-top:0}.k-slider-vertical .k-slider-buttons .k-slider-items{margin:0;padding-top:35px}.k-slider .k-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center;cursor:default}.k-slider-horizontal .k-tick{float:left;height:100%;text-align:center}*+html .k-slider-vertical .k-tick{float:left;clear:left;width:100%}.k-slider-horizontal .k-tick{background-position:center -92px}.k-slider-horizontal .k-slider-topleft .k-tick{background-position:center -122px}.k-slider-horizontal .k-slider-bottomright .k-tick{background-position:center -152px}.k-slider-horizontal .k-tick-large{background-position:center -2px}.k-slider-horizontal .k-slider-topleft .k-tick-large{background-position:center -32px}.k-slider-horizontal .k-slider-bottomright .k-tick-large{background-position:center -62px}.k-slider-vertical .k-tick{background-position:-92px center}.k-slider-vertical .k-slider-topleft .k-tick{background-position:-122px center}.k-slider-vertical .k-slider-bottomright .k-tick{background-position:-152px center}.k-slider-vertical .k-tick-large{background-position:-2px center}.k-slider-vertical .k-slider-topleft .k-tick-large{background-position:-32px center}.k-slider-vertical .k-slider-bottomright .k-tick-large{background-position:-62px center}.k-slider-horizontal .k-first{background-position:0 -92px}.k-slider-horizontal .k-tick-large.k-first{background-position:0 -2px}.k-slider-horizontal .k-slider-topleft .k-first{background-position:0 -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-first{background-position:0 -32px}.k-slider-horizontal .k-slider-bottomright .k-first{background-position:0 -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-first{background-position:0 -62px}.k-slider-horizontal .k-last{background-position:100% -92px}.k-slider-horizontal .k-tick-large.k-last{background-position:100% -2px}.k-slider-horizontal .k-slider-topleft .k-last{background-position:100% -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-last{background-position:100% -32px}.k-slider-horizontal .k-slider-bottomright .k-last{background-position:100% -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-last{background-position:100% -62px}.k-slider-vertical .k-first{background-position:-92px 100%}.k-slider-vertical .k-tick-large.k-first{background-position:-2px 100%}.k-slider-vertical .k-slider-topleft .k-first{background-position:-122px 100%}.k-slider-vertical .k-slider-topleft .k-tick-large.k-first{background-position:-32px 100%}.k-slider-vertical .k-slider-bottomright .k-first{background-position:-152px 100%}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-first{background-position:-62px 100%}.k-slider-vertical .k-last{background-position:-92px 0}.k-slider-vertical .k-tick-large.k-last{background-position:-2px 0}.k-slider-vertical .k-slider-topleft .k-last{background-position:-122px 0}.k-slider-vertical .k-slider-topleft .k-tick-large.k-last{background-position:-32px 0}.k-slider-vertical .k-slider-bottomright .k-last{background-position:-152px 0}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-last{background-position:-62px 0}.k-slider-vertical .k-tick{text-align:right}.k-slider-vertical .k-slider-topleft .k-tick{text-align:left}.k-slider .k-label{position:absolute;white-space:nowrap;font-size:.92em}.k-slider-horizontal .k-label{left:0;width:100%;line-height:1}.k-slider-horizontal .k-first .k-label{left:-50%}.k-slider-horizontal .k-last .k-label{left:auto;right:-50%}.k-slider-horizontal .k-label{bottom:-1.2em}.k-slider-horizontal .k-slider-topleft .k-label{top:-1.2em}.k-slider-vertical .k-label{left:120%;display:block;text-align:left}.k-slider-vertical .k-last .k-label{top:-0.5em}.k-slider-vertical .k-first .k-label{bottom:-0.5em}.k-slider-vertical .k-slider-topleft .k-label{left:auto;right:120%}.k-tooltip{position:absolute;z-index:20000;border-style:solid;border-width:2px;padding:4px 5px 4px 6px;background-repeat:repeat-x;min-width:20px;text-align:center;filter:alpha(opacity=90);opacity:.9}span.k-tooltip{position:static;display:inline-block;border-width:1px;padding:2px 5px 1px 6px}.k-invalid-msg{display:none}.k-callout{position:absolute}.k-callout-n,.k-callout-s{width:11px;height:6px}.k-callout-w,.k-callout-e{width:6px;height:11px}.k-callout-n{top:-7px;left:49%;margin-left:-5px;background-position:-162px -181px}.k-tooltip-validation .k-callout-n{background-position:-178px -181px}.k-callout-w{top:49%;left:-7px;margin-top:-5px;background-position:-165px -226px}.k-tooltip-validation .k-callout-w{background-position:-181px -226px}.k-callout-s{top:100%;left:49%;margin-top:2px;margin-left:-5px;background-position:-162px -213px}.k-tooltip-validation .k-callout-s{background-position:-178px -213px}.k-callout-e{top:49%;left:100%;margin-top:-5px;margin-left:2px;background-position:-165px -194px}.k-tooltip-validation .k-callout-e{background-position:-181px -194px}.k-tooltip-validation .k-warning{vertical-align:text-top;margin-right:3px}.k-window .k-tooltip-validation{z-index:10010}.k-splitter{position:relative;height:300px}.k-pane>.k-splitter{border-width:0;overflow:hidden}.k-splitter .k-pane{overflow:hidden}.k-splitter .k-scrollable{overflow:auto}.k-splitter .k-pane-loading{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.k-ghost-splitbar,.k-splitbar{position:absolute;border-style:solid;font-size:0;outline:0}.k-splitter .k-ghost-splitbar-horizontal,.k-splitter .k-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y}.k-ghost-splitbar-vertical,.k-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x}.k-splitbar-draggable-horizontal{cursor:w-resize}.k-splitbar-draggable-vertical{cursor:n-resize}.k-splitbar .k-resize-handle{display:none}.k-restricted-size-horizontal,.k-restricted-size-vertical{background-color:#f00}.k-splitbar-horizontal .k-icon{position:absolute;top:50%;width:5px;height:20px;margin-top:-10px}.k-collapse-prev,.k-collapse-next,.k-expand-prev,.k-expand-next{cursor:pointer}.k-splitbar-horizontal .k-collapse-prev{margin-top:-31px}.k-splitbar-horizontal .k-collapse-next{margin-top:11px}.k-splitbar-static-horizontal{width:1px}.k-splitbar-static-vertical{height:1px}.k-splitbar-vertical .k-icon{position:absolute;left:50%;width:20px;height:5px;margin-left:-10px}.k-splitbar-vertical .k-collapse-prev{margin-left:-31px}.k-splitbar-vertical .k-collapse-next{margin-left:11px}.k-splitbar-draggable-vertical .k-resize-handle,.k-splitbar-draggable-horizontal .k-resize-handle{display:inline-block}.k-splitbar-horizontal .k-resize-handle{background-position:-165px -6px}.k-splitbar-horizontal .k-collapse-prev,.k-splitbar-horizontal .k-expand-next{background-position:-6px -174px}.k-splitbar-horizontal .k-collapse-next,.k-splitbar-horizontal .k-expand-prev{background-position:-5px -142px}.k-splitbar-vertical .k-resize-handle{background-position:-38px -309px}.k-splitbar-vertical .k-collapse-prev,.k-splitbar-vertical .k-expand-next{background-position:2px -134px}.k-splitbar-vertical .k-collapse-next,.k-splitbar-vertical .k-expand-prev{background-position:2px -165px}html .k-upload{position:relative;border-width:0;background:0}.k-dropzone em,.k-upload-button{vertical-align:middle}*+html .k-dropzone em,*+html .k-upload-button{vertical-align:baseline}.k-dropzone{border-style:solid;border-width:0;padding:4px;background-color:transparent}.k-dropzone em{visibility:hidden;margin-left:.6em}.k-dropzone-active{border-width:1px;padding:3px}.k-dropzone-active em{visibility:visible}.k-upload-button{position:relative;width:86px;overflow:hidden!important;direction:ltr}.k-upload-button input{position:absolute;top:0;right:0;z-index:1;font:200px monospace!important;filter:alpha(opacity=0);opacity:0;margin:0;padding:0;cursor:pointer}.k-upload-files{border-style:solid;border-width:1px;margin:.2em 0 0;padding:.3em .7em .5em;line-height:1.9em}.k-upload-files .k-button{position:relative;top:1px;margin-left:8px;padding-top:0;padding-bottom:0;font-size:84%}*+html .k-upload-files .k-button{line-height:1}.k-upload .k-upload-action .k-icon{width:8px;height:8px;vertical-align:baseline}.k-upload .k-delete,.k-upload .k-i-cancel{background-position:-164px -116px}.k-upload .k-fail{background-position:-161px -111px}.k-retry{background-position:-164px -132px}.k-si-refresh{background-position:-160px -128px}.k-state-hover .k-si-refresh,.k-button:hover .k-si-refresh,.k-textbox:hover .k-si-refresh,.k-button:active .k-si-refresh{background-position:-176px -128px}.k-si-tick,.k-success{background-position:-160px -96px}.k-state-hover .k-si-tick,.k-state-hover .k-success,.k-button:hover .k-si-tick,.k-button:hover .k-success,.k-textbox:hover .k-si-tick,.k-textbox:hover .k-success,.k-button:active .k-si-tick,.k-button:active .k-success{background-position:-176px -96px}.k-si-cancel{background-position:-160px -112px}.k-state-hover .k-si-cancel,.k-button:hover .k-si-cancel,.k-textbox:hover .k-si-cancel,.k-button:active .k-si-cancel{background-position:-176px -112px}.k-filename{position:relative;display:inline-block;min-width:120px;max-width:200px;vertical-align:middle;padding-bottom:2px;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.k-progress,.k-progress-status{position:absolute;bottom:0;left:0;width:118px;height:2px;border-style:solid;border-width:1px;background-repeat:repeat-x}.k-progress-status{left:-1px;bottom:-1px;width:50%}.k-upload-selected{min-width:86px;margin:3px 0 0;-moz-box-sizing:content-box;-ms-box-sizing:content-box;box-sizing:content-box}*+html .k-upload-selected{min-width:100px}.k-toolbar-wrap .k-dropzone em,.k-toolbar-wrap .k-upload-files{display:none}.k-toolbar-wrap .k-dropzone{border:0;padding:0}.k-toolbar-wrap .k-dropzone-active{text-align:center}.k-toolbar-wrap .k-dropzone-active em{display:inline;margin:0;font-size:5em;font-style:normal}.k-toolbar-wrap .k-dropzone-active .k-upload-button{display:none}.k-imagebrowser-dropzone{z-index:10010;filter:alpha(opacity=40);opacity:.4;position:fixed}.k-search-wrap{position:relative;float:right;width:20%;padding:0}.k-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic}.k-search-wrap input.k-input{padding-left:0;padding-right:0}.k-search-wrap .k-search{position:absolute;top:4px;right:2px;margin:0}.k-breadcrumbs{position:relative;float:left;width:78%;padding-right:2px}.k-breadcrumbs-wrap{position:absolute;top:3px;left:0;z-index:1;padding-left:5px;line-height:18px}.k-breadcrumbs>.k-input{width:100%;padding-left:2px;font-size:inherit;font-family:inherit;border:0}.k-breadcrumbs .k-link,.k-breadcrumbs-wrap .k-icon{margin-top:0;text-decoration:none;vertical-align:middle}.k-breadcrumbs .k-link:hover{text-decoration:underline}.k-imagebrowser .k-breadcrumbs .k-i-seek-w{text-decoration:none;cursor:default}.k-imagebrowser .k-toolbar{clear:both;border-style:solid;border-width:1px;margin:8px 0 0;padding:2px 0 3px;background-repeat:repeat-x;line-height:23px;white-space:nowrap}.k-imagebrowser .k-upload{float:left;z-index:10010}.k-imagebrowser .k-upload-button{width:auto;vertical-align:top}.k-imagebrowser .k-upload .k-icon{vertical-align:bottom}*+html .k-imagebrowser .k-upload-button,*+html .k-imagebrowser .k-upload .k-icon{vertical-align:baseline;position:relative;top:1px}*+html .k-imagebrowser .k-upload .k-icon{top:2px}*+html .k-imagebrowser .k-toolbar .k-button-icon{vertical-align:middle}.k-toolbar .k-state-disabled,.k-plus-disabled,.k-minus-disabled{filter:alpha(opacity=50);opacity:.5}.k-toolbar-wrap{float:left}.k-tiles-arrange{float:right}.k-tiles-arrange .k-i-arrow-s{margin:0 2px 0 3px}.k-tiles-arrange a{text-decoration:none}.k-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2}.k-tile{float:left;width:223px;height:88px;overflow:hidden;border-style:solid;border-width:1px;margin:1px;padding:0 0 4px;background-position:0 100px;background-repeat:repeat-x;cursor:pointer}.k-tiles li.k-state-hover,.k-tiles li.k-state-selected{background-position:0 center}.k-imagebrowser .k-thumb{float:left;display:inline;width:80px;height:80px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-imagebrowser .k-file{width:80px;height:80px}.k-imagebrowser .k-image{margin:2px 0 0 2px}.k-imagebrowser .k-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat}.k-imagebrowser .k-loading{margin:35px 0 0 33px}.k-tile strong,.k-tile input{margin:10px 0 4px;font-weight:normal}.k-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis}.k-tile input{width:100px}.k-tile strong,.k-tile input,.k-tile .k-filesize{display:block}.k-imagebrowser .k-form-text-row{text-align:right}.k-imagebrowser .k-form-text-row label{width:14%}.k-imagebrowser .k-form-text-row input{width:80%}.k-tile-empty{margin:160px 0 0}.k-tile-empty .k-dialog-upload{font-weight:bold;font-size:120%}.k-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal}.k-tile-empty,.k-tile-empty .k-button-wrapper{text-align:center}*+html .k-button,*+html .k-grid-filter,*+html .k-header-column-menu,*+html .k-grid .k-pager-numbers,*+html .k-grid .k-status-text,*+html .k-pager-numbers .k-link,*+html .k-pager-numbers span,*+html .k-pager-numbers input,*+html .k-grouping-row p,*+html .k-grouping-header a,*+html .k-grouping-header .k-group-indicator,*+html .k-grouping-header .k-link,*+html .k-grouping-header .k-button,*+html .k-grid-actions,*+html .k-edit-label,*+html .k-edit-field,*+html .k-edit-form-container .editor-label,*+html .k-edit-form-container .editor-field,*+html .k-combobox,*+html .k-dropdown,*+html .k-selectbox,*+html .k-picker-wrap .k-select,*+html .k-dropdown-wrap .k-select,*+html .k-numerictextbox,*+html .k-timepicker,*+html .k-datepicker,*+html .k-datetimepicker,*+html .k-calendar,*+html .k-calendar .k-nav-fast,*+html .k-treeview .k-icon,*+html .k-treeview .k-image,*+html .k-treeview .k-sprite,*+html .k-treeview .k-in,*+html .k-colorpicker,*+html .k-colorpicker .k-tool-icon,*+html .k-colorpicker-popup .k-reset,*+html .k-editor-dialog .k-button,.k-form-text-row label,*+html .k-tabstrip-items .k-item,*+html .k-tabstrip-items .k-link,*+html .k-slider-horizontal,*+html .k-splitbar-draggable-vertical .k-resize-handle,*+html .k-splitbar-draggable-horizontal .k-resize-handle,*+html .t-filename,*+html div.k-window,*+html .k-window-titlebar .k-window-action{display:inline;zoom:1}.km-scroll-container{-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;-webkit-margin-collapse:separate;-webkit-transform:translatez(0)}.k-widget .km-scroll-wrapper{position:relative;padding-bottom:0}.km-touch-scrollbar{position:absolute;visibility:hidden;z-index:200000;height:.3em;width:.3em;background-color:rgba(0,0,0,0.7);opacity:0;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-o-transition:opacity .3s linear;transition:opacity .3s linear}.km-vertical-scrollbar{height:100%;right:2px;top:2px}.km-horizontal-scrollbar{width:100%;left:2px;bottom:2px}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.3.1114 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
|
-
* Kendo UI Web commercial licenses may be obtained at
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at
|
6
|
+
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
|
6
7
|
* If you do not own a commercial license, this file shall be governed by the
|
7
8
|
* GNU General Public License (GPL) version 3.
|
8
9
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
10
|
*/
|
10
|
-
.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#c5c5c5}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#ebebeb}.k-list-container{border-color:#c5c5c5;background-color:#e9e9e9}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#c5c5c5;background-color:#e9e9e9}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#c5c5c5}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#2e2e2e}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#2e2e2e}.k-link:link,.k-link:visited{color:#2e2e2e}.k-header{color:#2e2e2e}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/highlight.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#e3e3e3}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('Default/sprite.png')}.k-loading{background-image:url('Default/loading.gif')}.k-loading-image{background-image:url('Default/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#2e2e2e}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#c5c5c5;background-color:#e3e3e3}.k-button:hover,.k-draghandle:hover{border-color:#a99f9a;background-color:#a99f9a}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#f0713a;color:#2e2e2e}.k-state-focused{color:#2e2e2e;background-color:#a99f9a;border-color:#a99f9a}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#f0713a;border-color:#f0713a}.k-state-selected.k-state-focused{background-color:#ed5614}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#2e2e2e;background-color:#a99f9a;border-color:#a99f9a}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#2e2e2e}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#a99f9a;border-color:#a99f9a}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#2e2e2e}.k-dropdown .k-state-focused .k-input{color:#2e2e2e}.k-state-error{border-color:#e20000;background-color:#ff5252;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#9f9e9e}.k-slider-track{background-color:#e3e3e3}.k-slider-selection{background-color:#f0713a}.k-slider-horizontal .k-tick{background-image:url('Default/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Default/slider-v.gif')}.k-tooltip{border-color:#a99f9a;background-color:#fff;color:#2e2e2e}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#e3e3e3}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#fff}.k-progress-status{border-color:#a99f9a transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#a99f9a}.k-tiles li.k-state-selected{border-color:#f0713a}.k-tile .k-folder{background-image:url('Default/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #ddd;-webkit-box-shadow:inset 0 0 1px 1px #ddd}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
11
|
+
.k-in,.k-item,.k-window-action{border-color:transparent}.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid td.k-state-selected,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-tooltip,.k-progress{border-color:#c5c5c5}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#ebebeb}.k-list-container{border-color:#c5c5c5;background-color:#e9e9e9}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,span.k-dropdown-wrap.k-state-active,span.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#c5c5c5;background-color:#e9e9e9}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#c5c5c5}input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background:0}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#2e2e2e}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#2e2e2e}.k-link:link,.k-link:visited{color:#2e2e2e}.k-header{color:#2e2e2e}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-pager-wrap,.k-textbox,.k-button,.k-draghandle,.k-tile,.k-autocomplete,.k-state-highlight,.k-tabstrip-items .k-item{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#f6f6f6 0,#eaeaea 100%);background-image:none,-moz-linear-gradient(top,#f6f6f6 0,#eaeaea 100%);background-image:none,-o-linear-gradient(top,#f6f6f6 0,#eaeaea 100%);background-image:none,linear-gradient(to bottom,#f6f6f6 0,#eaeaea 100%)}.k-tabstrip-items .k-state-active{background:#fff}.k-tooltip{background-image:none}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#e3e3e3}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-column-menu .k-sprite{background-image:url('Default/sprite.png');border-color:transparent}.k-loading,.k-state-hover .k-loading{background-image:url('Default/loading.gif');background-position:50% 50%}.k-loading-image{background-image:url('Default/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#2e2e2e}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:active,.k-state-disabled .k-button:active{border-color:#c5c5c5;background-color:#e3e3e3}.k-button:hover{color:#2e2e2e;border-color:#a99f9a;background-color:#a99f9a}.k-draghandle{border-color:#c5c5c5;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.k-draghandle:hover{border-color:#a99f9a;background-color:#a99f9a;background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#cbc5c2 0,#a99f9a 100%);background-image:none,-moz-linear-gradient(top,#cbc5c2 0,#a99f9a 100%);background-image:none,-o-linear-gradient(top,#cbc5c2 0,#a99f9a 100%);background-image:none,linear-gradient(to bottom,#cbc5c2 0,#a99f9a 100%);-webkit-box-shadow:none;box-shadow:none}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#f0713a;color:#2e2e2e}.k-state-highlight{background-color:#fff;color:#2e2e2e}.k-state-focused,.k-grouping-row .k-state-focused{background-color:#a99f9a;border-color:#a99f9a}.k-state-selected,.k-state-selected:link,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-list>.k-state-highlight,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#f0713a;border-color:#f0713a}.k-state-selected.k-state-focused,.k-state-selected.k-state-highlight{background-color:#ed5614;border-color:#ed5614}.k-state-selected>.k-link{color:#fff}.k-state-selected,.k-button:active{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#fe761b 0,#e15613 100%);background-image:none,-moz-linear-gradient(top,#fe761b 0,#e15613 100%);background-image:none,-o-linear-gradient(top,#fe761b 0,#e15613 100%);background-image:none,linear-gradient(to bottom,#fe761b 0,#e15613 100%)}.k-state-hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover,.k-dropdown .k-state-focused,.k-imagebrowser-dropzone{color:#2e2e2e;background-color:#a99f9a;border-color:#a99f9a}.k-button:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-textbox:hover,.k-state-hover,.k-state-hover:hover,.k-pager-wrap .k-link:hover,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{background-image:url('textures/highlight.png');background-image:none,-webkit-linear-gradient(top,#cbc5c2 0,#a99f9a 100%);background-image:none,-moz-linear-gradient(top,#cbc5c2 0,#a99f9a 100%);background-image:none,-o-linear-gradient(top,#cbc5c2 0,#a99f9a 100%);background-image:none,linear-gradient(to bottom,#cbc5c2 0,#a99f9a 100%)}.k-autocomplete.k-state-active,.k-picker-wrap.k-state-active,.k-numeric-wrap.k-state-active,.k-dropdown-wrap.k-state-active,.k-state-active,.k-state-active:hover,.k-state-active>.k-link,.k-button:active{background-image:none}.k-tool-icon,.k-tool-icon.k-state-hover,.k-tool-icon.k-state-active,.k-tool-icon.k-state-active.k-state-hover{background-image:url('Default/sprite.png')}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link,div.k-imagebrowser-dropzone em{color:#2e2e2e}.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#a99f9a;border-color:#a99f9a}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#2e2e2e}.k-dropdown .k-state-focused .k-input{color:#2e2e2e}.k-state-error{border-color:#e20000;background-color:#ff5252;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-button.k-state-disabled:active,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#9f9e9e}.k-slider-track{background-color:#c5c5c5}.k-slider-selection{background-color:#f0713a}.k-slider-horizontal .k-tick{background-image:url('Default/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Default/slider-v.gif')}.k-tooltip{border-color:#a99f9a;background-color:#fff;color:#2e2e2e}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#e3e3e3}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#fff}.k-progress-status{border-color:#a99f9a transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#a99f9a}.k-tiles li.k-state-selected{border-color:#f0713a}.k-tile .k-folder,.k-tile .k-file{background-image:url('Default/imagebrowser.png')}.k-widget,.k-button{-webkit-box-shadow:none;box-shadow:none}.k-slider,.k-treeview,.k-upload{-webkit-box-shadow:none;box-shadow:none}.k-state-hover,.k-state-focused{-webkit-box-shadow:none;box-shadow:none}.k-state-selected{-webkit-box-shadow:none;box-shadow:none}.k-state-active{-webkit-box-shadow:none;box-shadow:none}.k-grid-header .k-header.k-state-focused,.k-grid td.k-state-focused{background-color:#d8d3d1;-webkit-box-shadow:inset 0 0 6px #a99f9a;box-shadow:inset 0 0 6px #a99f9a}.k-grid td.k-state-selected.k-state-focused{-webkit-box-shadow:inset 0 0 6px #87300a;box-shadow:inset 0 0 6px #87300a;background-color:#f17b48}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(128,128,128,0.3);box-shadow:1px 1px 7px 1px rgba(128,128,128,0.3);background-color:#fff}.k-window.k-state-focused{border-color:rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{-webkit-box-shadow:inset 0 0 1px 1px #ddd;box-shadow:inset 0 0 1px 1px #ddd}.k-shadow{-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-in,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-highlight,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|