@bpui/radio
Advanced tools
Comparing version 0.1.15 to 0.1.16
/*! | ||
* bpui radio v0.1.15 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* bpui radio v0.1.16 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
@@ -121,9 +121,10 @@ */ | ||
var global_1 = | ||
// eslint-disable-next-line no-undef | ||
// eslint-disable-next-line es/no-global-this -- safe | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
// eslint-disable-next-line no-restricted-globals -- safe | ||
check(typeof self == 'object' && self) || | ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); | ||
// eslint-disable-next-line no-new-func -- fallback | ||
(function () { return this; })() || Function('return this')(); | ||
@@ -138,19 +139,21 @@ var fails = function (exec) { | ||
// Thank's IE8 for his funny defineProperty | ||
// Detect IE8's incomplete defineProperty implementation | ||
var descriptors = !fails(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); | ||
var nativePropertyIsEnumerable = {}.propertyIsEnumerable; | ||
var $propertyIsEnumerable = {}.propertyIsEnumerable; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// Nashorn ~ JDK8 bug | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); | ||
// `Object.prototype.propertyIsEnumerable` method implementation | ||
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable | ||
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable | ||
var f = NASHORN_BUG ? function propertyIsEnumerable(V) { | ||
var descriptor = getOwnPropertyDescriptor(this, V); | ||
return !!descriptor && descriptor.enumerable; | ||
} : nativePropertyIsEnumerable; | ||
} : $propertyIsEnumerable; | ||
@@ -181,3 +184,3 @@ var objectPropertyIsEnumerable = { | ||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 | ||
// eslint-disable-next-line no-prototype-builtins | ||
// eslint-disable-next-line no-prototype-builtins -- safe | ||
return !Object('z').propertyIsEnumerable(0); | ||
@@ -189,3 +192,3 @@ }) ? function (it) { | ||
// `RequireObjectCoercible` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible | ||
// https://tc39.es/ecma262/#sec-requireobjectcoercible | ||
var requireObjectCoercible = function (it) { | ||
@@ -209,3 +212,3 @@ if (it == undefined) throw TypeError("Can't call method on " + it); | ||
// `ToPrimitive` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toprimitive | ||
// https://tc39.es/ecma262/#sec-toprimitive | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
@@ -222,6 +225,12 @@ // and the second argument - flag - preferred type is a string | ||
// `ToObject` abstract operation | ||
// https://tc39.es/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
var has = Object.hasOwn || function hasOwn(it, key) { | ||
return hasOwnProperty.call(toObject(it), key); | ||
}; | ||
@@ -239,2 +248,3 @@ | ||
var ie8DomDefine = !descriptors && !fails(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing | ||
return Object.defineProperty(documentCreateElement('div'), 'a', { | ||
@@ -245,11 +255,12 @@ get: function () { return 7; } | ||
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// `Object.getOwnPropertyDescriptor` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
O = toIndexedObject(O); | ||
P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeGetOwnPropertyDescriptor(O, P); | ||
return $getOwnPropertyDescriptor(O, P); | ||
} catch (error) { /* empty */ } | ||
@@ -269,7 +280,8 @@ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); | ||
var nativeDefineProperty = Object.defineProperty; | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
var $defineProperty = Object.defineProperty; | ||
// `Object.defineProperty` method | ||
// https://tc39.github.io/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { | ||
// https://tc39.es/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
@@ -279,3 +291,3 @@ P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeDefineProperty(O, P, Attributes); | ||
return $defineProperty(O, P, Attributes); | ||
} catch (error) { /* empty */ } | ||
@@ -313,3 +325,3 @@ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
@@ -331,5 +343,5 @@ sharedStore.inspectSource = function (it) { | ||
})('versions', []).push({ | ||
version: '3.6.5', | ||
version: '3.15.2', | ||
mode: 'global', | ||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | ||
copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
}); | ||
@@ -353,2 +365,3 @@ }); | ||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; | ||
var WeakMap$1 = global_1.WeakMap; | ||
@@ -370,4 +383,4 @@ var set, get, has$1; | ||
if (nativeWeakMap) { | ||
var store$1 = new WeakMap$1(); | ||
if (nativeWeakMap || sharedStore.state) { | ||
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1()); | ||
var wmget = store$1.get; | ||
@@ -377,2 +390,4 @@ var wmhas = store$1.has; | ||
set = function (it, metadata) { | ||
if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
wmset.call(store$1, it, metadata); | ||
@@ -391,2 +406,4 @@ return metadata; | ||
set = function (it, metadata) { | ||
if (has(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
createNonEnumerableProperty(it, STATE, metadata); | ||
@@ -420,5 +437,11 @@ return metadata; | ||
var noTargetGet = options ? !!options.noTargetGet : false; | ||
var state; | ||
if (typeof value == 'function') { | ||
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); | ||
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
if (typeof key == 'string' && !has(value, 'name')) { | ||
createNonEnumerableProperty(value, 'name', key); | ||
} | ||
state = enforceInternalState(value); | ||
if (!state.source) { | ||
state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
} | ||
} | ||
@@ -457,3 +480,3 @@ if (O === global_1) { | ||
// `ToInteger` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tointeger | ||
// https://tc39.es/ecma262/#sec-tointeger | ||
var toInteger = function (argument) { | ||
@@ -466,3 +489,3 @@ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); | ||
// `ToLength` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tolength | ||
// https://tc39.es/ecma262/#sec-tolength | ||
var toLength = function (argument) { | ||
@@ -491,6 +514,6 @@ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | ||
// Array#includes uses SameValueZero equality algorithm | ||
// eslint-disable-next-line no-self-compare | ||
// eslint-disable-next-line no-self-compare -- NaN check | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
// eslint-disable-next-line no-self-compare | ||
// eslint-disable-next-line no-self-compare -- NaN check | ||
if (value != value) return true; | ||
@@ -506,6 +529,6 @@ // Array#indexOf ignores holes, Array#includes - not | ||
// `Array.prototype.includes` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | ||
// https://tc39.es/ecma262/#sec-array.prototype.includes | ||
includes: createMethod(true), | ||
// `Array.prototype.indexOf` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof | ||
// https://tc39.es/ecma262/#sec-array.prototype.indexof | ||
indexOf: createMethod(false) | ||
@@ -544,3 +567,4 @@ }; | ||
// `Object.getOwnPropertyNames` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames | ||
// https://tc39.es/ecma262/#sec-object.getownpropertynames | ||
// eslint-disable-next-line es/no-object-getownpropertynames -- safe | ||
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
@@ -554,2 +578,3 @@ return objectKeysInternal(O, hiddenKeys$1); | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe | ||
var f$4 = Object.getOwnPropertySymbols; | ||
@@ -653,3 +678,4 @@ | ||
// `IsArray` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-isarray | ||
// https://tc39.es/ecma262/#sec-isarray | ||
// eslint-disable-next-line es/no-array-isarray -- safe | ||
var isArray = Array.isArray || function isArray(arg) { | ||
@@ -659,8 +685,2 @@ return classofRaw(arg) == 'Array'; | ||
// `ToObject` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var createProperty = function (object, key, value) { | ||
@@ -672,12 +692,41 @@ var propertyKey = toPrimitive(key); | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] < 4 ? 1 : match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
var symbol = Symbol(); | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// eslint-disable-next-line no-undef | ||
return !String(Symbol()); | ||
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances | ||
return !String(symbol) || !(Object(symbol) instanceof Symbol) || | ||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances | ||
!Symbol.sham && engineV8Version && engineV8Version < 41; | ||
}); | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
var useSymbolAsUid = nativeSymbol | ||
// eslint-disable-next-line no-undef | ||
&& !Symbol.sham | ||
// eslint-disable-next-line no-undef | ||
&& typeof Symbol.iterator == 'symbol'; | ||
@@ -690,5 +739,8 @@ | ||
var wellKnownSymbol = function (name) { | ||
if (!has(WellKnownSymbolsStore, name)) { | ||
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
if (!has(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) { | ||
if (nativeSymbol && has(Symbol$1, name)) { | ||
WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
} else { | ||
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
} | ||
} return WellKnownSymbolsStore[name]; | ||
@@ -700,3 +752,3 @@ }; | ||
// `ArraySpeciesCreate` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate | ||
// https://tc39.es/ecma262/#sec-arrayspeciescreate | ||
var arraySpeciesCreate = function (originalArray, length) { | ||
@@ -715,22 +767,2 @@ var C; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
var SPECIES$1 = wellKnownSymbol('species'); | ||
@@ -776,6 +808,7 @@ | ||
// `Array.prototype.concat` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.concat | ||
// https://tc39.es/ecma262/#sec-array.prototype.concat | ||
// with adding support of @@isConcatSpreadable and @@species | ||
_export({ target: 'Array', proto: true, forced: FORCED }, { | ||
concat: function concat(arg) { // eslint-disable-line no-unused-vars | ||
// eslint-disable-next-line no-unused-vars -- required for `.length` | ||
concat: function concat(arg) { | ||
var O = toObject(this); | ||
@@ -782,0 +815,0 @@ var A = arraySpeciesCreate(O, 0); |
/*! | ||
* bpui radio v0.1.15 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* bpui radio v0.1.16 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
"use strict";function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var e={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var e=this;this.$nextTick(function(){t(this,e),this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)}.bind(this))}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},a=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,f={f:s&&!c.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,p=function(t){return d.call(t).slice(8,-1)},h="".split,v=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,w=function(t,e){return _.call(t,e)},S=i.document,O=m(S)&&m(S.createElement),$=!a&&!u((function(){return 7!=Object.defineProperty((t="div",O?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,j={f:a?C:function(t,e){if(t=y(t),e=g(e,!0),$)try{return C(t,e)}catch(t){}if(w(t,e))return l(!f.f.call(t,e),t[e])}},E=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},T=Object.defineProperty,x={f:a?T:function(t,e,n){if(E(t),e=g(e,!0),E(n),$)try{return T(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},P=a?function(t,e,n){return x.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},M=function(t,e){try{P(i,t,e)}catch(n){i[t]=e}return e},R=i["__core-js_shared__"]||M("__core-js_shared__",{}),G=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return G.call(t)});var N,k,A,F,I=R.inspectSource,D=i.WeakMap,L="function"==typeof D&&/native code/.test(I(D)),z=r((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,V=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+V).toString(36)},U=z("keys"),W={},X=i.WeakMap;if(L){var K=new X,Y=K.get,H=K.has,J=K.set;N=function(t,e){return J.call(K,t,e),e},k=function(t){return Y.call(K,t)||{}},A=function(t){return H.call(K,t)}}else{var Q=U[F="state"]||(U[F]=q(F));W[Q]=!0,N=function(t,e){return P(t,Q,e),e},k=function(t){return w(t,Q)?t[Q]:{}},A=function(t){return w(t,Q)}}var Z,tt,et={set:N,get:k,has:A,enforce:function(t){return A(t)?k(t):N(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=k(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=r((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,o,u){var a=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,s=!!u&&!!u.noTargetGet;"function"==typeof o&&("string"!=typeof e||w(o,"name")||P(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t!==i?(a?!s&&t[e]&&(c=!0):delete t[e],c?t[e]=o:P(t,e,o)):c?t[e]=o:M(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),rt=i,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(i[t]):rt[t]&&rt[t][e]||i[t]&&i[t][e]},ut=Math.ceil,at=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?at:ut)(t)},st=Math.min,ft=function(t){return t>0?st(ct(t),9007199254740991):0},lt=Math.max,dt=Math.min,pt=function(t){return function(e,n,r){var o,i=y(e),u=ft(i.length),a=function(t,e){var n=ct(t);return n<0?lt(n+e,0):dt(n,e)}(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},ht={includes:pt(!0),indexOf:pt(!1)}.indexOf,vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!w(W,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~ht(i,n)||i.push(n));return i}(t,vt)}},yt={f:Object.getOwnPropertySymbols},mt=it("Reflect","ownKeys")||function(t){var e=bt.f(E(t)),n=yt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=mt(e),r=x.f,o=j.f,i=0;i<n.length;i++){var u=n[i];w(t,u)||r(t,u,o(e,u))}},_t=/#|\.prototype\./,wt=function(t,e){var n=Ot[St(t)];return n==Ct||n!=$t&&("function"==typeof e?u(e):!!e)},St=wt.normalize=function(t){return String(t).replace(_t,".").toLowerCase()},Ot=wt.data={},$t=wt.NATIVE="N",Ct=wt.POLYFILL="P",jt=wt,Et=j.f,Tt=Array.isArray||function(t){return"Array"==p(t)},xt=function(t){return Object(b(t))},Pt=function(t,e,n){var r=g(e);r in t?x.f(t,r,l(0,n)):t[r]=n},Mt=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),Rt=Mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=z("wks"),Nt=i.Symbol,kt=Rt?Nt:Nt&&Nt.withoutSetter||q,At=function(t){return w(Gt,t)||(Mt&&w(Nt,t)?Gt[t]=Nt[t]:Gt[t]=kt("Symbol."+t)),Gt[t]},Ft=At("species"),It=function(t,e){var n;return Tt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Tt(n.prototype)?m(n)&&null===(n=n[Ft])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Dt=it("navigator","userAgent")||"",Lt=i.process,zt=Lt&&Lt.versions,Bt=zt&&zt.v8;Bt?tt=(Z=Bt.split("."))[0]+Z[1]:Dt&&(!(Z=Dt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Dt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Vt,qt=tt&&+tt,Ut=At("species"),Wt=At("isConcatSpreadable"),Xt=qt>=51||!u((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Kt=(Vt="concat",qt>=51||!u((function(){var t=[];return(t.constructor={})[Ut]=function(){return{foo:1}},1!==t[Vt](Boolean).foo}))),Yt=function(t){if(!m(t))return!1;var e=t[Wt];return void 0!==e?!!e:Tt(t)};function Ht(t,e,n,r,o,i,u,a,c,s){"boolean"!=typeof u&&(c=a,a=u,u=!1);var f,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=u?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),f)if(l.functional){var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,f):[f]}return n}!function(t,e){var n,r,o,u,a,c=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[c]||M(c,{}):(i[c]||{}).prototype)for(r in e){if(u=e[r],o=t.noTargetGet?(a=Et(n,r))&&a.value:n[r],!jt(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof u==typeof o)continue;gt(u,o)}(t.sham||o&&o.sham)&&P(u,"sham",!0),nt(n,r,u,t)}}({target:"Array",proto:!0,forced:!Xt||!Kt},{concat:function(t){var e,n,r,o,i,u=xt(this),a=It(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Yt(i=-1===e?u:arguments[e])){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Pt(a,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(a,c++,i)}return a.length=c,a}});var Jt=e,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Qt._withStripped=!0;var Zt=Ht({render:Qt,staticRenderFns:[]},void 0,Jt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var e=this;this.$on("handleChange",function(n){t(this,e),this.$emit("change",n)}.bind(this)),this.$on("handleInput",function(n){t(this,e),this.$emit("input",n)}.bind(this))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}},ee=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};ee._withStripped=!0;var ne={bpRadio:Zt,bpRadioGroup:Ht({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0)};module.exports=ne; | ||
"use strict";function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var e={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var e=this;this.$nextTick(function(){t(this,e),this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)}.bind(this))}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,f={f:s&&!c.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,p=function(t){return d.call(t).slice(8,-1)},h="".split,v=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_=function(t){return Object(b(t))},w={}.hasOwnProperty,S=Object.hasOwn||function(t,e){return w.call(_(t),e)},O=i.document,j=m(O)&&m(O.createElement),$=!u&&!a((function(){return 7!=Object.defineProperty((t="div",j?O.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,E={f:u?C:function(t,e){if(t=y(t),e=g(e,!0),$)try{return C(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},T=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},x=Object.defineProperty,P={f:u?x:function(t,e,n){if(T(t),e=g(e,!0),T(n),$)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},M=u?function(t,e,n){return P.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{M(i,t,e)}catch(n){i[t]=e}return e},G=i["__core-js_shared__"]||R("__core-js_shared__",{}),N=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return N.call(t)});var k,A,F,I,D=G.inspectSource,z=i.WeakMap,L="function"==typeof z&&/native code/.test(D(z)),B=r((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),V=0,q=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+q).toString(36)},W=B("keys"),X={},K=i.WeakMap;if(L||G.state){var Y=G.state||(G.state=new K),H=Y.get,J=Y.has,Q=Y.set;k=function(t,e){if(J.call(Y,t))throw new TypeError("Object already initialized");return e.facade=t,Q.call(Y,t,e),e},A=function(t){return H.call(Y,t)||{}},F=function(t){return J.call(Y,t)}}else{var Z=W[I="state"]||(W[I]=U(I));X[Z]=!0,k=function(t,e){if(S(t,Z))throw new TypeError("Object already initialized");return e.facade=t,M(t,Z,e),e},A=function(t){return S(t,Z)?t[Z]:{}},F=function(t){return S(t,Z)}}var tt,et,nt={set:k,get:A,has:F,enforce:function(t){return F(t)?A(t):k(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=A(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=r((function(t){var e=nt.get,n=nt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,a){var u,c=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||S(o,"name")||M(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==i?(c?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=o:M(t,e,o)):s?t[e]=o:R(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),ot=i,it=function(t){return"function"==typeof t?t:void 0},at=function(t,e){return arguments.length<2?it(ot[t])||it(i[t]):ot[t]&&ot[t][e]||i[t]&&i[t][e]},ut=Math.ceil,ct=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(st(t),9007199254740991):0},dt=Math.max,pt=Math.min,ht=function(t){return function(e,n,r){var o,i=y(e),a=lt(i.length),u=function(t,e){var n=st(t);return n<0?dt(n+e,0):pt(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},vt={includes:ht(!0),indexOf:ht(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!S(X,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},gt=at("Reflect","ownKeys")||function(t){var e=yt.f(T(t)),n=mt.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=gt(e),r=P.f,o=E.f,i=0;i<n.length;i++){var a=n[i];S(t,a)||r(t,a,o(e,a))}},wt=/#|\.prototype\./,St=function(t,e){var n=jt[Ot(t)];return n==Ct||n!=$t&&("function"==typeof e?a(e):!!e)},Ot=St.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},jt=St.data={},$t=St.NATIVE="N",Ct=St.POLYFILL="P",Et=St,Tt=E.f,xt=Array.isArray||function(t){return"Array"==p(t)},Pt=function(t,e,n){var r=g(e);r in t?P.f(t,r,l(0,n)):t[r]=n},Mt=at("navigator","userAgent")||"",Rt=i.process,Gt=Rt&&Rt.versions,Nt=Gt&&Gt.v8;Nt?et=(tt=Nt.split("."))[0]<4?1:tt[0]+tt[1]:Mt&&(!(tt=Mt.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=Mt.match(/Chrome\/(\d+)/))&&(et=tt[1]);var kt,At=et&&+et,Ft=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&At&&At<41})),It=Ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=B("wks"),zt=i.Symbol,Lt=It?zt:zt&&zt.withoutSetter||U,Bt=function(t){return S(Dt,t)&&(Ft||"string"==typeof Dt[t])||(Ft&&S(zt,t)?Dt[t]=zt[t]:Dt[t]=Lt("Symbol."+t)),Dt[t]},Vt=Bt("species"),qt=function(t,e){var n;return xt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!xt(n.prototype)?m(n)&&null===(n=n[Vt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ut=Bt("species"),Wt=Bt("isConcatSpreadable"),Xt=At>=51||!a((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Kt=(kt="concat",At>=51||!a((function(){var t=[];return(t.constructor={})[Ut]=function(){return{foo:1}},1!==t[kt](Boolean).foo}))),Yt=function(t){if(!m(t))return!1;var e=t[Wt];return void 0!==e?!!e:xt(t)};function Ht(t,e,n,r,o,i,a,u,c,s){"boolean"!=typeof a&&(c=u,u=a,a=!1);var f,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=a?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),f)if(l.functional){var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,f):[f]}return n}!function(t,e){var n,r,o,a,u,c=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[c]||R(c,{}):(i[c]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(u=Tt(n,r))&&u.value:n[r],!Et(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;_t(a,o)}(t.sham||o&&o.sham)&&M(a,"sham",!0),rt(n,r,a,t)}}({target:"Array",proto:!0,forced:!Xt||!Kt},{concat:function(t){var e,n,r,o,i,a=_(this),u=qt(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Yt(i=-1===e?a:arguments[e])){if(c+(o=lt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Pt(u,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(u,c++,i)}return u.length=c,u}});var Jt=e,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Qt._withStripped=!0;var Zt=Ht({render:Qt,staticRenderFns:[]},void 0,Jt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var e=this;this.$on("handleChange",function(n){t(this,e),this.$emit("change",n)}.bind(this)),this.$on("handleInput",function(n){t(this,e),this.$emit("input",n)}.bind(this))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}},ee=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};ee._withStripped=!0;var ne={bpRadio:Zt,bpRadioGroup:Ht({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0)};module.exports=ne; |
/*! | ||
* bpui radio v0.1.15 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* bpui radio v0.1.16 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
@@ -119,9 +119,10 @@ */ | ||
var global_1 = | ||
// eslint-disable-next-line no-undef | ||
// eslint-disable-next-line es/no-global-this -- safe | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
// eslint-disable-next-line no-restricted-globals -- safe | ||
check(typeof self == 'object' && self) || | ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); | ||
// eslint-disable-next-line no-new-func -- fallback | ||
(function () { return this; })() || Function('return this')(); | ||
@@ -136,19 +137,21 @@ var fails = function (exec) { | ||
// Thank's IE8 for his funny defineProperty | ||
// Detect IE8's incomplete defineProperty implementation | ||
var descriptors = !fails(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); | ||
var nativePropertyIsEnumerable = {}.propertyIsEnumerable; | ||
var $propertyIsEnumerable = {}.propertyIsEnumerable; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// Nashorn ~ JDK8 bug | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); | ||
// `Object.prototype.propertyIsEnumerable` method implementation | ||
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable | ||
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable | ||
var f = NASHORN_BUG ? function propertyIsEnumerable(V) { | ||
var descriptor = getOwnPropertyDescriptor(this, V); | ||
return !!descriptor && descriptor.enumerable; | ||
} : nativePropertyIsEnumerable; | ||
} : $propertyIsEnumerable; | ||
@@ -179,3 +182,3 @@ var objectPropertyIsEnumerable = { | ||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 | ||
// eslint-disable-next-line no-prototype-builtins | ||
// eslint-disable-next-line no-prototype-builtins -- safe | ||
return !Object('z').propertyIsEnumerable(0); | ||
@@ -187,3 +190,3 @@ }) ? function (it) { | ||
// `RequireObjectCoercible` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible | ||
// https://tc39.es/ecma262/#sec-requireobjectcoercible | ||
var requireObjectCoercible = function (it) { | ||
@@ -207,3 +210,3 @@ if (it == undefined) throw TypeError("Can't call method on " + it); | ||
// `ToPrimitive` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toprimitive | ||
// https://tc39.es/ecma262/#sec-toprimitive | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
@@ -220,6 +223,12 @@ // and the second argument - flag - preferred type is a string | ||
// `ToObject` abstract operation | ||
// https://tc39.es/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
var has = Object.hasOwn || function hasOwn(it, key) { | ||
return hasOwnProperty.call(toObject(it), key); | ||
}; | ||
@@ -237,2 +246,3 @@ | ||
var ie8DomDefine = !descriptors && !fails(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing | ||
return Object.defineProperty(documentCreateElement('div'), 'a', { | ||
@@ -243,11 +253,12 @@ get: function () { return 7; } | ||
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// `Object.getOwnPropertyDescriptor` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
O = toIndexedObject(O); | ||
P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeGetOwnPropertyDescriptor(O, P); | ||
return $getOwnPropertyDescriptor(O, P); | ||
} catch (error) { /* empty */ } | ||
@@ -267,7 +278,8 @@ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); | ||
var nativeDefineProperty = Object.defineProperty; | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
var $defineProperty = Object.defineProperty; | ||
// `Object.defineProperty` method | ||
// https://tc39.github.io/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { | ||
// https://tc39.es/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
@@ -277,3 +289,3 @@ P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeDefineProperty(O, P, Attributes); | ||
return $defineProperty(O, P, Attributes); | ||
} catch (error) { /* empty */ } | ||
@@ -311,3 +323,3 @@ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
@@ -329,5 +341,5 @@ sharedStore.inspectSource = function (it) { | ||
})('versions', []).push({ | ||
version: '3.6.5', | ||
version: '3.15.2', | ||
mode: 'global', | ||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | ||
copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
}); | ||
@@ -351,2 +363,3 @@ }); | ||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; | ||
var WeakMap$1 = global_1.WeakMap; | ||
@@ -368,4 +381,4 @@ var set, get, has$1; | ||
if (nativeWeakMap) { | ||
var store$1 = new WeakMap$1(); | ||
if (nativeWeakMap || sharedStore.state) { | ||
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1()); | ||
var wmget = store$1.get; | ||
@@ -375,2 +388,4 @@ var wmhas = store$1.has; | ||
set = function (it, metadata) { | ||
if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
wmset.call(store$1, it, metadata); | ||
@@ -389,2 +404,4 @@ return metadata; | ||
set = function (it, metadata) { | ||
if (has(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
createNonEnumerableProperty(it, STATE, metadata); | ||
@@ -418,5 +435,11 @@ return metadata; | ||
var noTargetGet = options ? !!options.noTargetGet : false; | ||
var state; | ||
if (typeof value == 'function') { | ||
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); | ||
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
if (typeof key == 'string' && !has(value, 'name')) { | ||
createNonEnumerableProperty(value, 'name', key); | ||
} | ||
state = enforceInternalState(value); | ||
if (!state.source) { | ||
state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
} | ||
} | ||
@@ -455,3 +478,3 @@ if (O === global_1) { | ||
// `ToInteger` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tointeger | ||
// https://tc39.es/ecma262/#sec-tointeger | ||
var toInteger = function (argument) { | ||
@@ -464,3 +487,3 @@ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); | ||
// `ToLength` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tolength | ||
// https://tc39.es/ecma262/#sec-tolength | ||
var toLength = function (argument) { | ||
@@ -489,6 +512,6 @@ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | ||
// Array#includes uses SameValueZero equality algorithm | ||
// eslint-disable-next-line no-self-compare | ||
// eslint-disable-next-line no-self-compare -- NaN check | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
// eslint-disable-next-line no-self-compare | ||
// eslint-disable-next-line no-self-compare -- NaN check | ||
if (value != value) return true; | ||
@@ -504,6 +527,6 @@ // Array#indexOf ignores holes, Array#includes - not | ||
// `Array.prototype.includes` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | ||
// https://tc39.es/ecma262/#sec-array.prototype.includes | ||
includes: createMethod(true), | ||
// `Array.prototype.indexOf` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof | ||
// https://tc39.es/ecma262/#sec-array.prototype.indexof | ||
indexOf: createMethod(false) | ||
@@ -542,3 +565,4 @@ }; | ||
// `Object.getOwnPropertyNames` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames | ||
// https://tc39.es/ecma262/#sec-object.getownpropertynames | ||
// eslint-disable-next-line es/no-object-getownpropertynames -- safe | ||
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
@@ -552,2 +576,3 @@ return objectKeysInternal(O, hiddenKeys$1); | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe | ||
var f$4 = Object.getOwnPropertySymbols; | ||
@@ -651,3 +676,4 @@ | ||
// `IsArray` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-isarray | ||
// https://tc39.es/ecma262/#sec-isarray | ||
// eslint-disable-next-line es/no-array-isarray -- safe | ||
var isArray = Array.isArray || function isArray(arg) { | ||
@@ -657,8 +683,2 @@ return classofRaw(arg) == 'Array'; | ||
// `ToObject` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var createProperty = function (object, key, value) { | ||
@@ -670,12 +690,41 @@ var propertyKey = toPrimitive(key); | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] < 4 ? 1 : match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
var symbol = Symbol(); | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// eslint-disable-next-line no-undef | ||
return !String(Symbol()); | ||
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances | ||
return !String(symbol) || !(Object(symbol) instanceof Symbol) || | ||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances | ||
!Symbol.sham && engineV8Version && engineV8Version < 41; | ||
}); | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
var useSymbolAsUid = nativeSymbol | ||
// eslint-disable-next-line no-undef | ||
&& !Symbol.sham | ||
// eslint-disable-next-line no-undef | ||
&& typeof Symbol.iterator == 'symbol'; | ||
@@ -688,5 +737,8 @@ | ||
var wellKnownSymbol = function (name) { | ||
if (!has(WellKnownSymbolsStore, name)) { | ||
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
if (!has(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) { | ||
if (nativeSymbol && has(Symbol$1, name)) { | ||
WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
} else { | ||
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
} | ||
} return WellKnownSymbolsStore[name]; | ||
@@ -698,3 +750,3 @@ }; | ||
// `ArraySpeciesCreate` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate | ||
// https://tc39.es/ecma262/#sec-arrayspeciescreate | ||
var arraySpeciesCreate = function (originalArray, length) { | ||
@@ -713,22 +765,2 @@ var C; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
var SPECIES$1 = wellKnownSymbol('species'); | ||
@@ -774,6 +806,7 @@ | ||
// `Array.prototype.concat` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.concat | ||
// https://tc39.es/ecma262/#sec-array.prototype.concat | ||
// with adding support of @@isConcatSpreadable and @@species | ||
_export({ target: 'Array', proto: true, forced: FORCED }, { | ||
concat: function concat(arg) { // eslint-disable-line no-unused-vars | ||
// eslint-disable-next-line no-unused-vars -- required for `.length` | ||
concat: function concat(arg) { | ||
var O = toObject(this); | ||
@@ -780,0 +813,0 @@ var A = arraySpeciesCreate(O, 0); |
/*! | ||
* bpui radio v0.1.15 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* bpui radio v0.1.16 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var e={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var e=this;this.$nextTick(function(){t(this,e),this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)}.bind(this))}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,f={f:s&&!c.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,p=function(t){return d.call(t).slice(8,-1)},h="".split,v=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,w=function(t,e){return _.call(t,e)},S=i.document,O=m(S)&&m(S.createElement),$=!u&&!a((function(){return 7!=Object.defineProperty((t="div",O?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,j={f:u?C:function(t,e){if(t=y(t),e=g(e,!0),$)try{return C(t,e)}catch(t){}if(w(t,e))return l(!f.f.call(t,e),t[e])}},E=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},T=Object.defineProperty,x={f:u?T:function(t,e,n){if(E(t),e=g(e,!0),E(n),$)try{return T(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},P=u?function(t,e,n){return x.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},M=function(t,e){try{P(i,t,e)}catch(n){i[t]=e}return e},R=i["__core-js_shared__"]||M("__core-js_shared__",{}),G=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return G.call(t)});var N,k,A,F,I=R.inspectSource,D=i.WeakMap,L="function"==typeof D&&/native code/.test(I(D)),z=r((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,V=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+V).toString(36)},U=z("keys"),W={},X=i.WeakMap;if(L){var K=new X,Y=K.get,H=K.has,J=K.set;N=function(t,e){return J.call(K,t,e),e},k=function(t){return Y.call(K,t)||{}},A=function(t){return H.call(K,t)}}else{var Q=U[F="state"]||(U[F]=q(F));W[Q]=!0,N=function(t,e){return P(t,Q,e),e},k=function(t){return w(t,Q)?t[Q]:{}},A=function(t){return w(t,Q)}}var Z,tt,et={set:N,get:k,has:A,enforce:function(t){return A(t)?k(t):N(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=k(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=r((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,o,a){var u=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||w(o,"name")||P(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t!==i?(u?!s&&t[e]&&(c=!0):delete t[e],c?t[e]=o:P(t,e,o)):c?t[e]=o:M(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),rt=i,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(i[t]):rt[t]&&rt[t][e]||i[t]&&i[t][e]},at=Math.ceil,ut=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},st=Math.min,ft=function(t){return t>0?st(ct(t),9007199254740991):0},lt=Math.max,dt=Math.min,pt=function(t){return function(e,n,r){var o,i=y(e),a=ft(i.length),u=function(t,e){var n=ct(t);return n<0?lt(n+e,0):dt(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ht={includes:pt(!0),indexOf:pt(!1)}.indexOf,vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!w(W,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~ht(i,n)||i.push(n));return i}(t,vt)}},yt={f:Object.getOwnPropertySymbols},mt=it("Reflect","ownKeys")||function(t){var e=bt.f(E(t)),n=yt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=mt(e),r=x.f,o=j.f,i=0;i<n.length;i++){var a=n[i];w(t,a)||r(t,a,o(e,a))}},_t=/#|\.prototype\./,wt=function(t,e){var n=Ot[St(t)];return n==Ct||n!=$t&&("function"==typeof e?a(e):!!e)},St=wt.normalize=function(t){return String(t).replace(_t,".").toLowerCase()},Ot=wt.data={},$t=wt.NATIVE="N",Ct=wt.POLYFILL="P",jt=wt,Et=j.f,Tt=Array.isArray||function(t){return"Array"==p(t)},xt=function(t){return Object(b(t))},Pt=function(t,e,n){var r=g(e);r in t?x.f(t,r,l(0,n)):t[r]=n},Mt=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())})),Rt=Mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=z("wks"),Nt=i.Symbol,kt=Rt?Nt:Nt&&Nt.withoutSetter||q,At=function(t){return w(Gt,t)||(Mt&&w(Nt,t)?Gt[t]=Nt[t]:Gt[t]=kt("Symbol."+t)),Gt[t]},Ft=At("species"),It=function(t,e){var n;return Tt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Tt(n.prototype)?m(n)&&null===(n=n[Ft])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Dt=it("navigator","userAgent")||"",Lt=i.process,zt=Lt&&Lt.versions,Bt=zt&&zt.v8;Bt?tt=(Z=Bt.split("."))[0]+Z[1]:Dt&&(!(Z=Dt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Dt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Vt,qt=tt&&+tt,Ut=At("species"),Wt=At("isConcatSpreadable"),Xt=qt>=51||!a((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Kt=(Vt="concat",qt>=51||!a((function(){var t=[];return(t.constructor={})[Ut]=function(){return{foo:1}},1!==t[Vt](Boolean).foo}))),Yt=function(t){if(!m(t))return!1;var e=t[Wt];return void 0!==e?!!e:Tt(t)};function Ht(t,e,n,r,o,i,a,u,c,s){"boolean"!=typeof a&&(c=u,u=a,a=!1);var f,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=a?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),f)if(l.functional){var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,f):[f]}return n}!function(t,e){var n,r,o,a,u,c=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[c]||M(c,{}):(i[c]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(u=Et(n,r))&&u.value:n[r],!jt(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;gt(a,o)}(t.sham||o&&o.sham)&&P(a,"sham",!0),nt(n,r,a,t)}}({target:"Array",proto:!0,forced:!Xt||!Kt},{concat:function(t){var e,n,r,o,i,a=xt(this),u=It(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Yt(i=-1===e?a:arguments[e])){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Pt(u,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(u,c++,i)}return u.length=c,u}});var Jt=e,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Qt._withStripped=!0;var Zt=Ht({render:Qt,staticRenderFns:[]},void 0,Jt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var e=this;this.$on("handleChange",function(n){t(this,e),this.$emit("change",n)}.bind(this)),this.$on("handleInput",function(n){t(this,e),this.$emit("input",n)}.bind(this))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}},ee=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};ee._withStripped=!0;var ne={bpRadio:Zt,bpRadioGroup:Ht({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0)};export default ne; | ||
function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var e={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var e=this;this.$nextTick(function(){t(this,e),this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)}.bind(this))}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,f={f:s&&!c.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,p=function(t){return d.call(t).slice(8,-1)},h="".split,v=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_=function(t){return Object(b(t))},w={}.hasOwnProperty,S=Object.hasOwn||function(t,e){return w.call(_(t),e)},O=i.document,j=m(O)&&m(O.createElement),$=!u&&!a((function(){return 7!=Object.defineProperty((t="div",j?O.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,E={f:u?C:function(t,e){if(t=y(t),e=g(e,!0),$)try{return C(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},T=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},x=Object.defineProperty,P={f:u?x:function(t,e,n){if(T(t),e=g(e,!0),T(n),$)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},M=u?function(t,e,n){return P.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{M(i,t,e)}catch(n){i[t]=e}return e},G=i["__core-js_shared__"]||R("__core-js_shared__",{}),N=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return N.call(t)});var k,A,F,I,D=G.inspectSource,z=i.WeakMap,L="function"==typeof z&&/native code/.test(D(z)),B=r((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),V=0,q=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+q).toString(36)},W=B("keys"),X={},K=i.WeakMap;if(L||G.state){var Y=G.state||(G.state=new K),H=Y.get,J=Y.has,Q=Y.set;k=function(t,e){if(J.call(Y,t))throw new TypeError("Object already initialized");return e.facade=t,Q.call(Y,t,e),e},A=function(t){return H.call(Y,t)||{}},F=function(t){return J.call(Y,t)}}else{var Z=W[I="state"]||(W[I]=U(I));X[Z]=!0,k=function(t,e){if(S(t,Z))throw new TypeError("Object already initialized");return e.facade=t,M(t,Z,e),e},A=function(t){return S(t,Z)?t[Z]:{}},F=function(t){return S(t,Z)}}var tt,et,nt={set:k,get:A,has:F,enforce:function(t){return F(t)?A(t):k(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=A(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=r((function(t){var e=nt.get,n=nt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,a){var u,c=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||S(o,"name")||M(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==i?(c?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=o:M(t,e,o)):s?t[e]=o:R(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),ot=i,it=function(t){return"function"==typeof t?t:void 0},at=function(t,e){return arguments.length<2?it(ot[t])||it(i[t]):ot[t]&&ot[t][e]||i[t]&&i[t][e]},ut=Math.ceil,ct=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(st(t),9007199254740991):0},dt=Math.max,pt=Math.min,ht=function(t){return function(e,n,r){var o,i=y(e),a=lt(i.length),u=function(t,e){var n=st(t);return n<0?dt(n+e,0):pt(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},vt={includes:ht(!0),indexOf:ht(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!S(X,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},gt=at("Reflect","ownKeys")||function(t){var e=yt.f(T(t)),n=mt.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=gt(e),r=P.f,o=E.f,i=0;i<n.length;i++){var a=n[i];S(t,a)||r(t,a,o(e,a))}},wt=/#|\.prototype\./,St=function(t,e){var n=jt[Ot(t)];return n==Ct||n!=$t&&("function"==typeof e?a(e):!!e)},Ot=St.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},jt=St.data={},$t=St.NATIVE="N",Ct=St.POLYFILL="P",Et=St,Tt=E.f,xt=Array.isArray||function(t){return"Array"==p(t)},Pt=function(t,e,n){var r=g(e);r in t?P.f(t,r,l(0,n)):t[r]=n},Mt=at("navigator","userAgent")||"",Rt=i.process,Gt=Rt&&Rt.versions,Nt=Gt&&Gt.v8;Nt?et=(tt=Nt.split("."))[0]<4?1:tt[0]+tt[1]:Mt&&(!(tt=Mt.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=Mt.match(/Chrome\/(\d+)/))&&(et=tt[1]);var kt,At=et&&+et,Ft=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&At&&At<41})),It=Ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=B("wks"),zt=i.Symbol,Lt=It?zt:zt&&zt.withoutSetter||U,Bt=function(t){return S(Dt,t)&&(Ft||"string"==typeof Dt[t])||(Ft&&S(zt,t)?Dt[t]=zt[t]:Dt[t]=Lt("Symbol."+t)),Dt[t]},Vt=Bt("species"),qt=function(t,e){var n;return xt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!xt(n.prototype)?m(n)&&null===(n=n[Vt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ut=Bt("species"),Wt=Bt("isConcatSpreadable"),Xt=At>=51||!a((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Kt=(kt="concat",At>=51||!a((function(){var t=[];return(t.constructor={})[Ut]=function(){return{foo:1}},1!==t[kt](Boolean).foo}))),Yt=function(t){if(!m(t))return!1;var e=t[Wt];return void 0!==e?!!e:xt(t)};function Ht(t,e,n,r,o,i,a,u,c,s){"boolean"!=typeof a&&(c=u,u=a,a=!1);var f,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=a?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),f)if(l.functional){var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,f):[f]}return n}!function(t,e){var n,r,o,a,u,c=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[c]||R(c,{}):(i[c]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(u=Tt(n,r))&&u.value:n[r],!Et(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;_t(a,o)}(t.sham||o&&o.sham)&&M(a,"sham",!0),rt(n,r,a,t)}}({target:"Array",proto:!0,forced:!Xt||!Kt},{concat:function(t){var e,n,r,o,i,a=_(this),u=qt(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Yt(i=-1===e?a:arguments[e])){if(c+(o=lt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Pt(u,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(u,c++,i)}return u.length=c,u}});var Jt=e,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Qt._withStripped=!0;var Zt=Ht({render:Qt,staticRenderFns:[]},void 0,Jt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var e=this;this.$on("handleChange",function(n){t(this,e),this.$emit("change",n)}.bind(this)),this.$on("handleInput",function(n){t(this,e),this.$emit("input",n)}.bind(this))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}},ee=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};ee._withStripped=!0;var ne={bpRadio:Zt,bpRadioGroup:Ht({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0)};export default ne; |
/*! | ||
* bpui radio v0.1.15 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* bpui radio v0.1.16 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
@@ -125,9 +125,10 @@ */ | ||
var global_1 = | ||
// eslint-disable-next-line no-undef | ||
// eslint-disable-next-line es/no-global-this -- safe | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
// eslint-disable-next-line no-restricted-globals -- safe | ||
check(typeof self == 'object' && self) || | ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); | ||
// eslint-disable-next-line no-new-func -- fallback | ||
(function () { return this; })() || Function('return this')(); | ||
@@ -142,19 +143,21 @@ var fails = function (exec) { | ||
// Thank's IE8 for his funny defineProperty | ||
// Detect IE8's incomplete defineProperty implementation | ||
var descriptors = !fails(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); | ||
var nativePropertyIsEnumerable = {}.propertyIsEnumerable; | ||
var $propertyIsEnumerable = {}.propertyIsEnumerable; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// Nashorn ~ JDK8 bug | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); | ||
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); | ||
// `Object.prototype.propertyIsEnumerable` method implementation | ||
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable | ||
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable | ||
var f = NASHORN_BUG ? function propertyIsEnumerable(V) { | ||
var descriptor = getOwnPropertyDescriptor(this, V); | ||
return !!descriptor && descriptor.enumerable; | ||
} : nativePropertyIsEnumerable; | ||
} : $propertyIsEnumerable; | ||
@@ -185,3 +188,3 @@ var objectPropertyIsEnumerable = { | ||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 | ||
// eslint-disable-next-line no-prototype-builtins | ||
// eslint-disable-next-line no-prototype-builtins -- safe | ||
return !Object('z').propertyIsEnumerable(0); | ||
@@ -193,3 +196,3 @@ }) ? function (it) { | ||
// `RequireObjectCoercible` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible | ||
// https://tc39.es/ecma262/#sec-requireobjectcoercible | ||
var requireObjectCoercible = function (it) { | ||
@@ -213,3 +216,3 @@ if (it == undefined) throw TypeError("Can't call method on " + it); | ||
// `ToPrimitive` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toprimitive | ||
// https://tc39.es/ecma262/#sec-toprimitive | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
@@ -226,6 +229,12 @@ // and the second argument - flag - preferred type is a string | ||
// `ToObject` abstract operation | ||
// https://tc39.es/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var hasOwnProperty = {}.hasOwnProperty; | ||
var has = function (it, key) { | ||
return hasOwnProperty.call(it, key); | ||
var has = Object.hasOwn || function hasOwn(it, key) { | ||
return hasOwnProperty.call(toObject(it), key); | ||
}; | ||
@@ -243,2 +252,3 @@ | ||
var ie8DomDefine = !descriptors && !fails(function () { | ||
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing | ||
return Object.defineProperty(documentCreateElement('div'), 'a', { | ||
@@ -249,11 +259,12 @@ get: function () { return 7; } | ||
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
// `Object.getOwnPropertyDescriptor` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor | ||
var f$1 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { | ||
O = toIndexedObject(O); | ||
P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeGetOwnPropertyDescriptor(O, P); | ||
return $getOwnPropertyDescriptor(O, P); | ||
} catch (error) { /* empty */ } | ||
@@ -273,7 +284,8 @@ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); | ||
var nativeDefineProperty = Object.defineProperty; | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
var $defineProperty = Object.defineProperty; | ||
// `Object.defineProperty` method | ||
// https://tc39.github.io/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { | ||
// https://tc39.es/ecma262/#sec-object.defineproperty | ||
var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) { | ||
anObject(O); | ||
@@ -283,3 +295,3 @@ P = toPrimitive(P, true); | ||
if (ie8DomDefine) try { | ||
return nativeDefineProperty(O, P, Attributes); | ||
return $defineProperty(O, P, Attributes); | ||
} catch (error) { /* empty */ } | ||
@@ -317,3 +329,3 @@ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); | ||
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper | ||
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper | ||
if (typeof sharedStore.inspectSource != 'function') { | ||
@@ -335,5 +347,5 @@ sharedStore.inspectSource = function (it) { | ||
})('versions', []).push({ | ||
version: '3.6.5', | ||
version: '3.15.2', | ||
mode: 'global', | ||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | ||
copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
}); | ||
@@ -357,2 +369,3 @@ }); | ||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; | ||
var WeakMap$1 = global_1.WeakMap; | ||
@@ -374,4 +387,4 @@ var set, get, has$1; | ||
if (nativeWeakMap) { | ||
var store$1 = new WeakMap$1(); | ||
if (nativeWeakMap || sharedStore.state) { | ||
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1()); | ||
var wmget = store$1.get; | ||
@@ -381,2 +394,4 @@ var wmhas = store$1.has; | ||
set = function (it, metadata) { | ||
if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
wmset.call(store$1, it, metadata); | ||
@@ -395,2 +410,4 @@ return metadata; | ||
set = function (it, metadata) { | ||
if (has(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
createNonEnumerableProperty(it, STATE, metadata); | ||
@@ -424,5 +441,11 @@ return metadata; | ||
var noTargetGet = options ? !!options.noTargetGet : false; | ||
var state; | ||
if (typeof value == 'function') { | ||
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); | ||
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
if (typeof key == 'string' && !has(value, 'name')) { | ||
createNonEnumerableProperty(value, 'name', key); | ||
} | ||
state = enforceInternalState(value); | ||
if (!state.source) { | ||
state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); | ||
} | ||
} | ||
@@ -461,3 +484,3 @@ if (O === global_1) { | ||
// `ToInteger` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tointeger | ||
// https://tc39.es/ecma262/#sec-tointeger | ||
var toInteger = function (argument) { | ||
@@ -470,3 +493,3 @@ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); | ||
// `ToLength` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-tolength | ||
// https://tc39.es/ecma262/#sec-tolength | ||
var toLength = function (argument) { | ||
@@ -495,6 +518,6 @@ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | ||
// Array#includes uses SameValueZero equality algorithm | ||
// eslint-disable-next-line no-self-compare | ||
// eslint-disable-next-line no-self-compare -- NaN check | ||
if (IS_INCLUDES && el != el) while (length > index) { | ||
value = O[index++]; | ||
// eslint-disable-next-line no-self-compare | ||
// eslint-disable-next-line no-self-compare -- NaN check | ||
if (value != value) return true; | ||
@@ -510,6 +533,6 @@ // Array#indexOf ignores holes, Array#includes - not | ||
// `Array.prototype.includes` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.includes | ||
// https://tc39.es/ecma262/#sec-array.prototype.includes | ||
includes: createMethod(true), | ||
// `Array.prototype.indexOf` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof | ||
// https://tc39.es/ecma262/#sec-array.prototype.indexof | ||
indexOf: createMethod(false) | ||
@@ -548,3 +571,4 @@ }; | ||
// `Object.getOwnPropertyNames` method | ||
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames | ||
// https://tc39.es/ecma262/#sec-object.getownpropertynames | ||
// eslint-disable-next-line es/no-object-getownpropertynames -- safe | ||
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
@@ -558,2 +582,3 @@ return objectKeysInternal(O, hiddenKeys$1); | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe | ||
var f$4 = Object.getOwnPropertySymbols; | ||
@@ -657,3 +682,4 @@ | ||
// `IsArray` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-isarray | ||
// https://tc39.es/ecma262/#sec-isarray | ||
// eslint-disable-next-line es/no-array-isarray -- safe | ||
var isArray = Array.isArray || function isArray(arg) { | ||
@@ -663,8 +689,2 @@ return classofRaw(arg) == 'Array'; | ||
// `ToObject` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-toobject | ||
var toObject = function (argument) { | ||
return Object(requireObjectCoercible(argument)); | ||
}; | ||
var createProperty = function (object, key, value) { | ||
@@ -676,12 +696,41 @@ var propertyKey = toPrimitive(key); | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] < 4 ? 1 : match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing | ||
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { | ||
var symbol = Symbol(); | ||
// Chrome 38 Symbol has incorrect toString conversion | ||
// eslint-disable-next-line no-undef | ||
return !String(Symbol()); | ||
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances | ||
return !String(symbol) || !(Object(symbol) instanceof Symbol) || | ||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances | ||
!Symbol.sham && engineV8Version && engineV8Version < 41; | ||
}); | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
var useSymbolAsUid = nativeSymbol | ||
// eslint-disable-next-line no-undef | ||
&& !Symbol.sham | ||
// eslint-disable-next-line no-undef | ||
&& typeof Symbol.iterator == 'symbol'; | ||
@@ -694,5 +743,8 @@ | ||
var wellKnownSymbol = function (name) { | ||
if (!has(WellKnownSymbolsStore, name)) { | ||
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
if (!has(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) { | ||
if (nativeSymbol && has(Symbol$1, name)) { | ||
WellKnownSymbolsStore[name] = Symbol$1[name]; | ||
} else { | ||
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); | ||
} | ||
} return WellKnownSymbolsStore[name]; | ||
@@ -704,3 +756,3 @@ }; | ||
// `ArraySpeciesCreate` abstract operation | ||
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate | ||
// https://tc39.es/ecma262/#sec-arrayspeciescreate | ||
var arraySpeciesCreate = function (originalArray, length) { | ||
@@ -719,22 +771,2 @@ var C; | ||
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; | ||
var process = global_1.process; | ||
var versions = process && process.versions; | ||
var v8 = versions && versions.v8; | ||
var match, version; | ||
if (v8) { | ||
match = v8.split('.'); | ||
version = match[0] + match[1]; | ||
} else if (engineUserAgent) { | ||
match = engineUserAgent.match(/Edge\/(\d+)/); | ||
if (!match || match[1] >= 74) { | ||
match = engineUserAgent.match(/Chrome\/(\d+)/); | ||
if (match) version = match[1]; | ||
} | ||
} | ||
var engineV8Version = version && +version; | ||
var SPECIES$1 = wellKnownSymbol('species'); | ||
@@ -780,6 +812,7 @@ | ||
// `Array.prototype.concat` method | ||
// https://tc39.github.io/ecma262/#sec-array.prototype.concat | ||
// https://tc39.es/ecma262/#sec-array.prototype.concat | ||
// with adding support of @@isConcatSpreadable and @@species | ||
_export({ target: 'Array', proto: true, forced: FORCED }, { | ||
concat: function concat(arg) { // eslint-disable-line no-unused-vars | ||
// eslint-disable-next-line no-unused-vars -- required for `.length` | ||
concat: function concat(arg) { | ||
var O = toObject(this); | ||
@@ -786,0 +819,0 @@ var A = arraySpeciesCreate(O, 0); |
/*! | ||
* bpui radio v0.1.15 | ||
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* bpui radio v0.1.16 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
* Released under the MIT License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).bpRadio=e()}(this,(function(){"use strict";function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var e={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var e=this;this.$nextTick(function(){t(this,e),this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)}.bind(this))}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},a=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,s={f:f&&!c.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,p=function(t){return d.call(t).slice(8,-1)},h="".split,v=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,w=function(t,e){return _.call(t,e)},S=i.document,O=m(S)&&m(S.createElement),$=!a&&!u((function(){return 7!=Object.defineProperty((t="div",O?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,C={f:a?j:function(t,e){if(t=y(t),e=g(e,!0),$)try{return j(t,e)}catch(t){}if(w(t,e))return l(!s.f.call(t,e),t[e])}},E=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},x=Object.defineProperty,T={f:a?x:function(t,e,n){if(E(t),e=g(e,!0),E(n),$)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},P=a?function(t,e,n){return T.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{P(i,t,e)}catch(n){i[t]=e}return e},M=i["__core-js_shared__"]||R("__core-js_shared__",{}),G=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return G.call(t)});var N,k,A,F,I=M.inspectSource,D=i.WeakMap,L="function"==typeof D&&/native code/.test(I(D)),z=r((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,V=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+V).toString(36)},U=z("keys"),W={},X=i.WeakMap;if(L){var K=new X,Y=K.get,H=K.has,J=K.set;N=function(t,e){return J.call(K,t,e),e},k=function(t){return Y.call(K,t)||{}},A=function(t){return H.call(K,t)}}else{var Q=U[F="state"]||(U[F]=q(F));W[Q]=!0,N=function(t,e){return P(t,Q,e),e},k=function(t){return w(t,Q)?t[Q]:{}},A=function(t){return w(t,Q)}}var Z,tt,et={set:N,get:k,has:A,enforce:function(t){return A(t)?k(t):N(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=k(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=r((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,o,u){var a=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof o&&("string"!=typeof e||w(o,"name")||P(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t!==i?(a?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=o:P(t,e,o)):c?t[e]=o:R(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),rt=i,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(i[t]):rt[t]&&rt[t][e]||i[t]&&i[t][e]},ut=Math.ceil,at=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?at:ut)(t)},ft=Math.min,st=function(t){return t>0?ft(ct(t),9007199254740991):0},lt=Math.max,dt=Math.min,pt=function(t){return function(e,n,r){var o,i=y(e),u=st(i.length),a=function(t,e){var n=ct(t);return n<0?lt(n+e,0):dt(n,e)}(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},ht={includes:pt(!0),indexOf:pt(!1)}.indexOf,vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!w(W,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~ht(i,n)||i.push(n));return i}(t,vt)}},yt={f:Object.getOwnPropertySymbols},mt=it("Reflect","ownKeys")||function(t){var e=bt.f(E(t)),n=yt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=mt(e),r=T.f,o=C.f,i=0;i<n.length;i++){var u=n[i];w(t,u)||r(t,u,o(e,u))}},_t=/#|\.prototype\./,wt=function(t,e){var n=Ot[St(t)];return n==jt||n!=$t&&("function"==typeof e?u(e):!!e)},St=wt.normalize=function(t){return String(t).replace(_t,".").toLowerCase()},Ot=wt.data={},$t=wt.NATIVE="N",jt=wt.POLYFILL="P",Ct=wt,Et=C.f,xt=Array.isArray||function(t){return"Array"==p(t)},Tt=function(t){return Object(b(t))},Pt=function(t,e,n){var r=g(e);r in t?T.f(t,r,l(0,n)):t[r]=n},Rt=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),Mt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=z("wks"),Nt=i.Symbol,kt=Mt?Nt:Nt&&Nt.withoutSetter||q,At=function(t){return w(Gt,t)||(Rt&&w(Nt,t)?Gt[t]=Nt[t]:Gt[t]=kt("Symbol."+t)),Gt[t]},Ft=At("species"),It=function(t,e){var n;return xt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!xt(n.prototype)?m(n)&&null===(n=n[Ft])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Dt=it("navigator","userAgent")||"",Lt=i.process,zt=Lt&&Lt.versions,Bt=zt&&zt.v8;Bt?tt=(Z=Bt.split("."))[0]+Z[1]:Dt&&(!(Z=Dt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=Dt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Vt,qt=tt&&+tt,Ut=At("species"),Wt=At("isConcatSpreadable"),Xt=qt>=51||!u((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Kt=(Vt="concat",qt>=51||!u((function(){var t=[];return(t.constructor={})[Ut]=function(){return{foo:1}},1!==t[Vt](Boolean).foo}))),Yt=function(t){if(!m(t))return!1;var e=t[Wt];return void 0!==e?!!e:xt(t)};function Ht(t,e,n,r,o,i,u,a,c,f){"boolean"!=typeof u&&(c=a,a=u,u=!1);var s,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):e&&(s=u?function(t){e.call(this,f(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),s)if(l.functional){var d=l.render;l.render=function(t,e){return s.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,s):[s]}return n}!function(t,e){var n,r,o,u,a,c=t.target,f=t.global,s=t.stat;if(n=f?i:s?i[c]||R(c,{}):(i[c]||{}).prototype)for(r in e){if(u=e[r],o=t.noTargetGet?(a=Et(n,r))&&a.value:n[r],!Ct(f?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof u==typeof o)continue;gt(u,o)}(t.sham||o&&o.sham)&&P(u,"sham",!0),nt(n,r,u,t)}}({target:"Array",proto:!0,forced:!Xt||!Kt},{concat:function(t){var e,n,r,o,i,u=Tt(this),a=It(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Yt(i=-1===e?u:arguments[e])){if(c+(o=st(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Pt(a,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(a,c++,i)}return a.length=c,a}});var Jt=e,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Qt._withStripped=!0;var Zt=Ht({render:Qt,staticRenderFns:[]},void 0,Jt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var e=this;this.$on("handleChange",function(n){t(this,e),this.$emit("change",n)}.bind(this)),this.$on("handleInput",function(n){t(this,e),this.$emit("input",n)}.bind(this))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}},ee=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};ee._withStripped=!0;return{bpRadio:Zt,bpRadioGroup:Ht({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0)}})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).bpRadio=e()}(this,(function(){"use strict";function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var e={components:{},props:{value:{},disabled:Boolean},data:function(){return{hovering:!1,radioGroup:""}},computed:{isGroup:function(){return"bpRadioGroup"===this.$parent.bpNodeName},model:{get:function(){return this.isGroup?this.$parent.value:this.value},set:function(t){this.isGroup?this.$parent.$emit("handleInput",t):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model==this.value)}},isDisabled:function(){return this.isGroup?this.$parent.disabled:this.disabled}},created:function(){},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{handleChange:function(){var e=this;this.$nextTick(function(){t(this,e),this.$emit("change",this.model),this.isGroup&&this.$parent.$emit("handleChange",this.model)}.bind(this))}}},n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,f={f:s&&!c.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,p=function(t){return d.call(t).slice(8,-1)},h="".split,v=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return v(y(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_=function(t){return Object(y(t))},w={}.hasOwnProperty,S=Object.hasOwn||function(t,e){return w.call(_(t),e)},O=i.document,j=m(O)&&m(O.createElement),$=!u&&!a((function(){return 7!=Object.defineProperty((t="div",j?O.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,E={f:u?C:function(t,e){if(t=b(t),e=g(e,!0),$)try{return C(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},T=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},x=Object.defineProperty,P={f:u?x:function(t,e,n){if(T(t),e=g(e,!0),T(n),$)try{return x(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},R=u?function(t,e,n){return P.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},M=function(t,e){try{R(i,t,e)}catch(n){i[t]=e}return e},G=i["__core-js_shared__"]||M("__core-js_shared__",{}),N=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return N.call(t)});var k,A,F,I,D=G.inspectSource,z=i.WeakMap,L="function"==typeof z&&/native code/.test(D(z)),B=r((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),V=0,q=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+q).toString(36)},W=B("keys"),X={},K=i.WeakMap;if(L||G.state){var Y=G.state||(G.state=new K),H=Y.get,J=Y.has,Q=Y.set;k=function(t,e){if(J.call(Y,t))throw new TypeError("Object already initialized");return e.facade=t,Q.call(Y,t,e),e},A=function(t){return H.call(Y,t)||{}},F=function(t){return J.call(Y,t)}}else{var Z=W[I="state"]||(W[I]=U(I));X[Z]=!0,k=function(t,e){if(S(t,Z))throw new TypeError("Object already initialized");return e.facade=t,R(t,Z,e),e},A=function(t){return S(t,Z)?t[Z]:{}},F=function(t){return S(t,Z)}}var tt,et,nt={set:k,get:A,has:F,enforce:function(t){return F(t)?A(t):k(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=A(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=r((function(t){var e=nt.get,n=nt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,a){var u,c=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||S(o,"name")||R(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==i?(c?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=o:R(t,e,o)):s?t[e]=o:M(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),ot=i,it=function(t){return"function"==typeof t?t:void 0},at=function(t,e){return arguments.length<2?it(ot[t])||it(i[t]):ot[t]&&ot[t][e]||i[t]&&i[t][e]},ut=Math.ceil,ct=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(st(t),9007199254740991):0},dt=Math.max,pt=Math.min,ht=function(t){return function(e,n,r){var o,i=b(e),a=lt(i.length),u=function(t,e){var n=st(t);return n<0?dt(n+e,0):pt(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},vt={includes:ht(!0),indexOf:ht(!1)}.indexOf,yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!S(X,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i}(t,yt)}},mt={f:Object.getOwnPropertySymbols},gt=at("Reflect","ownKeys")||function(t){var e=bt.f(T(t)),n=mt.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=gt(e),r=P.f,o=E.f,i=0;i<n.length;i++){var a=n[i];S(t,a)||r(t,a,o(e,a))}},wt=/#|\.prototype\./,St=function(t,e){var n=jt[Ot(t)];return n==Ct||n!=$t&&("function"==typeof e?a(e):!!e)},Ot=St.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},jt=St.data={},$t=St.NATIVE="N",Ct=St.POLYFILL="P",Et=St,Tt=E.f,xt=Array.isArray||function(t){return"Array"==p(t)},Pt=function(t,e,n){var r=g(e);r in t?P.f(t,r,l(0,n)):t[r]=n},Rt=at("navigator","userAgent")||"",Mt=i.process,Gt=Mt&&Mt.versions,Nt=Gt&&Gt.v8;Nt?et=(tt=Nt.split("."))[0]<4?1:tt[0]+tt[1]:Rt&&(!(tt=Rt.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=Rt.match(/Chrome\/(\d+)/))&&(et=tt[1]);var kt,At=et&&+et,Ft=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&At&&At<41})),It=Ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=B("wks"),zt=i.Symbol,Lt=It?zt:zt&&zt.withoutSetter||U,Bt=function(t){return S(Dt,t)&&(Ft||"string"==typeof Dt[t])||(Ft&&S(zt,t)?Dt[t]=zt[t]:Dt[t]=Lt("Symbol."+t)),Dt[t]},Vt=Bt("species"),qt=function(t,e){var n;return xt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!xt(n.prototype)?m(n)&&null===(n=n[Vt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ut=Bt("species"),Wt=Bt("isConcatSpreadable"),Xt=At>=51||!a((function(){var t=[];return t[Wt]=!1,t.concat()[0]!==t})),Kt=(kt="concat",At>=51||!a((function(){var t=[];return(t.constructor={})[Ut]=function(){return{foo:1}},1!==t[kt](Boolean).foo}))),Yt=function(t){if(!m(t))return!1;var e=t[Wt];return void 0!==e?!!e:xt(t)};function Ht(t,e,n,r,o,i,a,u,c,s){"boolean"!=typeof a&&(c=u,u=a,a=!1);var f,l="function"==typeof n?n.options:n;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=a?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),f)if(l.functional){var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,f):[f]}return n}!function(t,e){var n,r,o,a,u,c=t.target,s=t.global,f=t.stat;if(n=s?i:f?i[c]||M(c,{}):(i[c]||{}).prototype)for(r in e){if(a=e[r],o=t.noTargetGet?(u=Tt(n,r))&&u.value:n[r],!Et(s?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;_t(a,o)}(t.sham||o&&o.sham)&&R(a,"sham",!0),rt(n,r,a,t)}}({target:"Array",proto:!0,forced:!Xt||!Kt},{concat:function(t){var e,n,r,o,i,a=_(this),u=qt(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Yt(i=-1===e?a:arguments[e])){if(c+(o=lt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Pt(u,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(u,c++,i)}return u.length=c,u}});var Jt=e,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"bp-radio",class:{"bp-radio__disabled":t.isDisabled},on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},[n("span",{staticClass:"bp-radio__input",class:{"bp-radio__checked":t.model==t.value}},[n("span",{staticClass:"bp-radio__inner",class:[t.hovering?"bp-radio__inner_hover":""]}),t._v(" "),n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"bp-radio__original",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{change:[function(e){t.model=t.value},t.handleChange]}},"input",t.$attrs,!1))]),t._v(" "),n("span",{staticClass:"bp-radio__label"},[t._t("default")],2)])};Qt._withStripped=!0;var Zt=Ht({render:Qt,staticRenderFns:[]},void 0,Jt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"bpRadioGroup",components:{},props:{value:{},disabled:{default:!1,type:Boolean}},data:function(){return{bpNodeName:"bpRadioGroup"}},computed:{},created:function(){var e=this;this.$on("handleChange",function(n){t(this,e),this.$emit("change",n)}.bind(this)),this.$on("handleInput",function(n){t(this,e),this.$emit("input",n)}.bind(this))},beforeDestroy:function(){},beforeMount:function(){},mounted:function(){},methods:{}},ee=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};ee._withStripped=!0;return{bpRadio:Zt,bpRadioGroup:Ht({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0)}})); |
{ | ||
"description": "radio", | ||
"dependencies": { | ||
"@bpui/libs": "^0.2.21" | ||
"@bpui/libs": "^0.2.22" | ||
}, | ||
@@ -41,3 +41,3 @@ "directories": {}, | ||
"name": "@bpui/radio", | ||
"version": "0.1.15" | ||
"version": "0.1.16" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
339374
3354
Updated@bpui/libs@^0.2.22