1
0
mirror of synced 2024-11-25 14:26:03 +03:00
select2/dist/select25.js

29 lines
41 KiB
JavaScript
Raw Normal View History

2019-06-27 18:42:41 +03:00
/**
* Copyright 2019 Igor Vaynberg and Select2 contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Bundle of select2
* Generated: 2019-11-06
2019-06-27 18:42:41 +03:00
* Version: 5.0.0-snapshot
* Dependencies:
*
* tslib -- 1.9.3
2019-11-06 21:34:02 +03:00
*
* preact -- 10.0.0-beta.3
2019-06-27 18:42:41 +03:00
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).select25={})}(this,function(e){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function h(s,a,i,l){return new(i||(i=Promise))(function(e,t){function n(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(t){t.done?e(t.value):new i(function(e){e(t.value)}).then(n,o)}r((l=l.apply(s,a||[])).next())})}function v(n,o){var r,s,a,e,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return i.label++,{value:t[1],done:!1};case 5:i.label++,s=t[1],t=[0];continue;case 7:t=i.ops.pop(),i.trys.pop();continue;default:if(!(a=0<(a=i.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){i=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){i.label=t[1];break}if(6===t[0]&&i.label<a[1]){i.label=a[1],a=t;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(t);break}a[2]&&i.ops.pop(),i.trys.pop();continue}t=o.call(n,i)}catch(e){t=[6,e],s=0}finally{r=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}var b,n,r,u,c,w={},R=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function C(e,t){for(var n in t)e[n]=t[n];return e}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var o,r,s,a,i=arguments;if(t=C({},t),3<arguments.length)for(n=[n],o=3;o<arguments.length;o++)n.push(i[o]);if(null!=n&&(t.children=n),null!=e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===t[r]&&(t[r]=e.defaultProps[r]);return a=t.key,null!=(s=t.ref)&&delete t.ref,null!=a&&delete t.key,l(e,t,a,s)}function l(e,t,n,o){var r={type:e,props:t,key:n,ref:o,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return b.vnode&&b.vnode(r),r}function M(e){return e.children}function S(e){if(null==e||"boolean"==typeof e)return null;if("string"==typeof e||"number"==typeof e)return l(null,e,null,null);if(null==e.__e&&null==e.__c)return e;var t=l(e.type,e.props,e.key,null);return t.__e=e.__e,t}function x(e,t){this.props=e,this.context=t}function s(e){!e.__d&&(e.__d=!0)&&1===n.push(e)&&(b.debounceRendering||r)(a)}function a(){var e;for(n.sort(function(e,t){return t.__v.__b-e.__v.__b});e=n.pop();)e.__d&&e.forceUpdate(!1)}function I(e,t,n,o,r,s,a,i){var l,u,c,p,d,f,h,v,m=t.__k||E(t.props.children,t.__k=[],S,!0),g=n&&n.__k||R,y=g.length;if(i==w)if((i=null)!=s)i=s[0];else for(u=0;!i&&u<y;u++)i=g[u]&&g[u].__e;for(u=0;u<m.length;u++)if(null!=(l=m[u]=S(m[u]))){if(l.__p=t,l.__b=t.__b+1,null===(p=g[u])||p&&l.key==p.key&&l.type===p.type)g[u]=void 0;else for(c=0;c<y;c++){if((p=g[c])&&l.key==p.key&&l.type===p.type){g[c]=void 0;break}p=null}if(d=L(e,l,p=p||w,o,r,s,a,null,i),(c=l.ref)&&p.ref!=c&&(v||(v=[])).push(c,l.__c||d),null!=d){if(null==h&&(h=d),null!=l.l)d=l.l,l.l=null;else if(s==p||d!=i||null==d.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(d);else{for(f=i,c=0;(f=f.nextSibling)&&c<y;c+=2)if(f==d)break e;e.insertBefore(d,i)}i=d.nextSibling,"function"==typeof t.type&&(t.l=d)}}if(t.__e=h,null!=s&&"function"!=typeof t.type)for(u=s.length;u--;)null!=s[u]&&_(s[u]);for(u=y;u--;)null!=g[u]&&F(g[u],t);if(v)for(u=
2019-06-26 01:23:14 +03:00
//# sourceMappingURL=select25.js.map