sanskrit-tts/public/assets/material/material.min.js

17 lines
36 KiB
JavaScript
Raw Normal View History

2023-08-20 21:45:44 +07:00
/*!
* Daemonite Material v4.1.1 (http://daemonite.github.io/material/)
* Copyright 2011-2018 Daemon Pty Ltd
* Licensed under MIT (https://github.com/Daemonite/material/blob/master/LICENSE)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var n,t,o,r,a,s,c,l,d,u,h,f,p,m,g,y,v,b,_,k,S=(r="show-predecessor",a="hide"+(t=".bs.collapse"),s=(o="show")+t,c=".expansion-panel",l=".expansion-panel .collapse",void(n=i)(document).on(""+a,l,function(){var e=n(this).closest(c);e.removeClass(o);var t=e.prev(c);t.length&&t.removeClass(r)}).on(""+s,l,function(){var e=n(this).closest(c);e.addClass(o);var t=e.prev(c);t.length&&t.addClass(r)})),w=(h="."+(u="md.floatinglabel"),f="floatinglabel",p=(d=i).fn[f],m="is-focused",g="has-value",y="change"+h,v="focusin"+h,b="focusout"+h,_={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .custom-select, .floating-label .form-control"},k=function(){function i(e){this._element=e,this._parent=d(e).closest(_.DATA_PARENT)[0]}var e=i.prototype;return e.change=function(){d(this._element).val()||d(this._element).is("select")&&""!==d("option:first-child",d(this._element)).html().replace(" ","")?d(this._parent).addClass(g):d(this._parent).removeClass(g)},e.focusin=function(){d(this._parent).addClass(m)},e.focusout=function(){d(this._parent).removeClass(m)},i._jQueryInterface=function(n){return this.each(function(){var e=n||"change",t=d(this).data(u);if(t||(t=new i(this),d(this).data(u,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i}(),d(document).on(y+" "+v+" "+b,_.DATA_TOGGLE,function(e){k._jQueryInterface.call(d(this),e.type)}),d.fn[f]=k._jQueryInterface,d.fn[f].Constructor=k,d.fn[f].noConflict=function(){return d.fn[f]=p,k._jQueryInterface},k);function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return o}var O,I,E,x,T,N,M,A,P,$,j,F,R,W=function(i){var t="transitionend";function e(e){var t=this,n=!1;return i(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(t)},e),this}var c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return 0<i(document).find(t).length?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration");return t?(t=t.split(",")[0],1e3*parseFloat(t)):0},getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(e){i(e).trigger(t)},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],a=r&&c.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s}};return i.fn.emulateTransitionEnd=e,i.event.special[c.TRANSITION_END]={bindType:t,delegateType:t,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},c}(i),Y=(E="."+(I="md.navdrawer"),x="navdrawer",T=(O=i).fn[x],N="navdrawer-backdrop",M="navdrawer-open",P={breakpoint:"",keyboard:!0,show:!0,type:"default"},$={keyboard:"boolean",show:"boolean",type:"string"},j={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HID
/*!
* pickadate.js v3.5.6, 2015/04/20
* By Amsul, http://amsul.ca
* Hosted on http://amsul.github.io/pickadate.js
* Licensed under MIT
*/var n;n=function(m){var i=m(window),g=m(document),y=m(document.documentElement),v=null!=document.documentElement.style.transition;function b(i,e,t,n){if(!i)return b;var o=!1,s={id:i.id||"P"+Math.abs(~~(Math.random()*new Date))},c=t?m.extend(!0,{},t.defaults,n):n||{},r=m.extend({},b.klasses(),c.klass),l=m(i),a=function(){return this.start()},d=a.prototype={constructor:a,$node:l,start:function(){return s&&s.start?d:(s.methods={},s.start=!0,s.open=!1,s.type=i.type,i.autofocus=i==S(),i.readOnly=!c.editable,i.id=i.id||s.id,"text"!=i.type&&(i.type="text"),d.component=new t(d,c),d.$root=m('<div class="'+r.picker+'" id="'+i.id+'_root" />'),k(d.$root[0],"hidden",!0),d.$holder=m(u()).appendTo(d.$root),h(),c.formatSubmit&&function(){var e;!0===c.hiddenName?(e=i.name,i.name=""):e=(e=["string"==typeof c.hiddenPrefix?c.hiddenPrefix:"","string"==typeof c.hiddenSuffix?c.hiddenSuffix:"_submit"])[0]+i.name+e[1];d._hidden=m('<input type=hidden name="'+e+'"'+(l.data("value")||i.value?' value="'+d.get("select",c.formatSubmit)+'"':"")+">")[0],l.on("change."+s.id,function(){d._hidden.value=i.value?d.get("select",c.formatSubmit):""})}(),function(){l.data(e,d).addClass(r.input).val(l.data("value")?d.get("select",c.format):i.value),c.editable||l.on("focus."+s.id+" click."+s.id,function(e){e.preventDefault(),d.open()}).on("keydown."+s.id,p);k(i,{haspopup:!0,expanded:!1,readonly:!1,owns:i.id+"_root"})}(),c.containerHidden?m(c.containerHidden).append(d._hidden):l.after(d._hidden),c.container?m(c.container).append(d.$root):l.after(d.$root),d.on({start:d.component.onStart,render:d.component.onRender,stop:d.component.onStop,open:d.component.onOpen,close:d.component.onClose,set:d.component.onSet}).on({start:c.onStart,render:c.onRender,stop:c.onStop,open:c.onOpen,close:c.onClose,set:c.onSet}),o=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(d.$holder[0]),i.autofocus&&d.open(),d.trigger("start").trigger("render"))},render:function(e){return e?(d.$holder=m(u()),h(),d.$root.html(d.$holder)):d.$root.find("."+r.box).html(d.component.nodes(s.open)),d.trigger("render")},stop:function(){return s.start&&(d.close(),d._hidden&&d._hidden.parentNode.removeChild(d._hidden),d.$root.remove(),l.removeClass(r.input).removeData(e),setTimeout(function(){l.off("."+s.id)},0),i.type=s.type,i.readOnly=!1,d.trigger("stop"),s.methods={},s.start=!1),d},open:function(e){return s.open?d:(l.addClass(r.active),k(i,"expanded",!0),setTimeout(function(){d.$root.addClass(r.opened),k(d.$root[0],"hidden",!1)},0),!1!==e&&(s.open=!0,o&&y.css("overflow","hidden").css("padding-right","+="+_()),o&&v?d.$holder.find("."+r.frame).one("transitionend",function(){d.$holder[0].focus()}):d.$holder[0].focus(),g.on("click."+s.id+" focusin."+s.id,function(e){var t=e.target;t!=i&&t!=document&&3!=e.which&&d.close(t===d.$holder[0])}).on("keydown."+s.id,function(e){var t=e.keyCode,n=d.component.key[t],i=e.target;27==t?d.close(!0):i!=d.$holder[0]||!n&&13!=t?m.contains(d.$root[0],i)&&13==t&&(e.preventDefault(),i.click()):(e.preventDefault(),n?b._.trigger(d.component.key.go,d,[b._.trigger(n)]):d.$root.find("."+r.highlighted).hasClass(r.disabled)||(d.set("select",d.component.item.highlight),c.closeOnSelect&&d.close(!0)))})),d.trigger("open"))},close:function(e){return e&&(c.editable?i.focus():(d.$holder.off("focus.toOpen").focus(),setTimeout(function(){d.$holder.on("focus.toOpen",f)},0))),l.removeClass(r.active),k(i,"expanded",!1),setTimeout(function(){d.$root.removeClass(r.opened+" "+r.focused),k(d.$root[0],"hidden",!0)},0),s.open?(s.open=!1,o&&y.css("overflow","").css("padding-right","-="+_()),g.off("."+s.id),d.trigger("close")):d},clear:function(e){return d.set("clear",null,e)},set:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(n=r&&m.isPlainObject(t)?t:n||{},e){for(i in r||(a[e]=t),a)o=a[i],i in d.component.item&&(void 0===o&&(o=null),d.component.set(i,o,n)),"select"!=i&&"clear"!=i||l.val("clear"==i?"":d.get(i,c.format)).trigger("change");d.render()}return n.muted?d:d.trigger("set",a)},get:function(e,t){if(
/*!
* Date picker for pickadate.js v3.5.6
* http://amsul.github.io/pickadate.js/date.htm
*/var n;n=function(e,p){var t,y=e._;function n(t,n){var e,i=this,o=t.$node[0],r=o.value,a=t.$node.data("value"),s=a||r,c=a?n.formatSubmit:n.format,l=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=n,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(n.disable||[]).slice(0),i.item.enable=-(!0===(e=i.item.disable)[0]?e.shift():-1),i.set("min",n.min).set("max",n.max).set("now"),s?i.set("select",s,{format:c,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+n.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+n.klass.selectMonth).trigger("focus"))}),t.$root.find("."+n.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+n.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";i.disabled(i.get("now"))&&(e=":not(."+n.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}n.prototype.set=function(t,n,i){var o=this,e=o.item;return null===n?("clear"==t&&(t="select"),e[t]=n):(e["enable"==t?"disable":"flip"==t?"enable":t]=o.queue[t].split(" ").map(function(e){return n=o[e](t,n,i)}).pop(),"select"==t?o.set("highlight",e.select,i):"highlight"==t?o.set("view",e.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&o.disabled(e.select)&&o.set("select",e.select,i),e.highlight&&o.disabled(e.highlight)&&o.set("highlight",e.highlight,i))),o},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,t,n){var i;return(t=void 0===t?e:t)==-1/0||t==1/0?i=t:p.isPlainObject(t)&&y.isInteger(t.pick)?t=t.obj:p.isArray(t)?(t=new Date(t[0],t[1],t[2]),t=y.isDate(t)?t:this.create().obj):t=y.isInteger(t)||y.isDate(t)?this.normalize(new Date(t),n):this.now(e,t,n),{year:i||t.getFullYear(),month:i||t.getMonth(),date:i||t.getDate(),day:i||t.getDay(),obj:i||t,pick:i||t.getTime()}},n.prototype.createRange=function(e,t){var n=this,i=function(e){return!0===e||p.isArray(e)||y.isDate(e)?n.create(e):e};return y.isInteger(e)||(e=i(e)),y.isInteger(t)||(t=i(t)),y.isInteger(e)&&p.isPlainObject(t)?e=[t.year,t.month,t.date+e]:y.isInteger(t)&&p.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:i(e),to:i(t)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,t,n){var i,o,r,a,s=p.isArray(t),c=p.isPlainObject(t),l=this.item.view;if(s||c){for(c?(o=t.year,r=t.month,a=t.date):(o=+t[0],r=+t[1],a=+t[2]),n&&n.nav&&l&&l.month!==r&&(o=l.year,r=l.month),o=(i=new Date(o,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=i.getMonth();new Date(o,r,a).getMonth()!==r;)a-=1;t=[o,r,a]}return t},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):y.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,t){var i,o,r,a,s=this,c=n,l=t&&t.interval?t.interval:1,d=-1===s.item.enable,u=s.ite
//# sourceMappingURL=material.min.js.map