@dialpad/dialtone-vue 3.32.0 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +1161 -77
- package/dist/dialtone-vue.umd.js +1163 -79
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +2 -1
|
@@ -25,7 +25,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".enter-active,.leave-active{overflow:h
|
|
|
25
25
|
|
|
26
26
|
/***/ }),
|
|
27
27
|
|
|
28
|
-
/***/
|
|
28
|
+
/***/ 794:
|
|
29
29
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
30
30
|
|
|
31
31
|
"use strict";
|
|
@@ -193,7 +193,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-section[tabindex=\"-1\"]:focu
|
|
|
193
193
|
|
|
194
194
|
/***/ }),
|
|
195
195
|
|
|
196
|
-
/***/
|
|
196
|
+
/***/ 214:
|
|
197
197
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
198
198
|
|
|
199
199
|
"use strict";
|
|
@@ -528,6 +528,1012 @@ module.exports = function (i) {
|
|
|
528
528
|
return i[1];
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
+
/***/ }),
|
|
532
|
+
|
|
533
|
+
/***/ 377:
|
|
534
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
535
|
+
|
|
536
|
+
// A library of seedable RNGs implemented in Javascript.
|
|
537
|
+
//
|
|
538
|
+
// Usage:
|
|
539
|
+
//
|
|
540
|
+
// var seedrandom = require('seedrandom');
|
|
541
|
+
// var random = seedrandom(1); // or any seed.
|
|
542
|
+
// var x = random(); // 0 <= x < 1. Every bit is random.
|
|
543
|
+
// var x = random.quick(); // 0 <= x < 1. 32 bits of randomness.
|
|
544
|
+
|
|
545
|
+
// alea, a 53-bit multiply-with-carry generator by Johannes Baagøe.
|
|
546
|
+
// Period: ~2^116
|
|
547
|
+
// Reported to pass all BigCrush tests.
|
|
548
|
+
var alea = __webpack_require__(832);
|
|
549
|
+
|
|
550
|
+
// xor128, a pure xor-shift generator by George Marsaglia.
|
|
551
|
+
// Period: 2^128-1.
|
|
552
|
+
// Reported to fail: MatrixRank and LinearComp.
|
|
553
|
+
var xor128 = __webpack_require__(652);
|
|
554
|
+
|
|
555
|
+
// xorwow, George Marsaglia's 160-bit xor-shift combined plus weyl.
|
|
556
|
+
// Period: 2^192-2^32
|
|
557
|
+
// Reported to fail: CollisionOver, SimpPoker, and LinearComp.
|
|
558
|
+
var xorwow = __webpack_require__(801);
|
|
559
|
+
|
|
560
|
+
// xorshift7, by François Panneton and Pierre L'ecuyer, takes
|
|
561
|
+
// a different approach: it adds robustness by allowing more shifts
|
|
562
|
+
// than Marsaglia's original three. It is a 7-shift generator
|
|
563
|
+
// with 256 bits, that passes BigCrush with no systmatic failures.
|
|
564
|
+
// Period 2^256-1.
|
|
565
|
+
// No systematic BigCrush failures reported.
|
|
566
|
+
var xorshift7 = __webpack_require__(30);
|
|
567
|
+
|
|
568
|
+
// xor4096, by Richard Brent, is a 4096-bit xor-shift with a
|
|
569
|
+
// very long period that also adds a Weyl generator. It also passes
|
|
570
|
+
// BigCrush with no systematic failures. Its long period may
|
|
571
|
+
// be useful if you have many generators and need to avoid
|
|
572
|
+
// collisions.
|
|
573
|
+
// Period: 2^4128-2^32.
|
|
574
|
+
// No systematic BigCrush failures reported.
|
|
575
|
+
var xor4096 = __webpack_require__(618);
|
|
576
|
+
|
|
577
|
+
// Tyche-i, by Samuel Neves and Filipe Araujo, is a bit-shifting random
|
|
578
|
+
// number generator derived from ChaCha, a modern stream cipher.
|
|
579
|
+
// https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf
|
|
580
|
+
// Period: ~2^127
|
|
581
|
+
// No systematic BigCrush failures reported.
|
|
582
|
+
var tychei = __webpack_require__(49);
|
|
583
|
+
|
|
584
|
+
// The original ARC4-based prng included in this library.
|
|
585
|
+
// Period: ~2^1600
|
|
586
|
+
var sr = __webpack_require__(971);
|
|
587
|
+
|
|
588
|
+
sr.alea = alea;
|
|
589
|
+
sr.xor128 = xor128;
|
|
590
|
+
sr.xorwow = xorwow;
|
|
591
|
+
sr.xorshift7 = xorshift7;
|
|
592
|
+
sr.xor4096 = xor4096;
|
|
593
|
+
sr.tychei = tychei;
|
|
594
|
+
|
|
595
|
+
module.exports = sr;
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
/***/ }),
|
|
599
|
+
|
|
600
|
+
/***/ 832:
|
|
601
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
602
|
+
|
|
603
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
604
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A port of an algorithm by Johannes Baagøe <baagoe@baagoe.com>, 2010
|
|
605
|
+
// http://baagoe.com/en/RandomMusings/javascript/
|
|
606
|
+
// https://github.com/nquinlan/better-random-numbers-for-javascript-mirror
|
|
607
|
+
// Original work is under MIT license -
|
|
608
|
+
|
|
609
|
+
// Copyright (C) 2010 by Johannes Baagøe <baagoe@baagoe.org>
|
|
610
|
+
//
|
|
611
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
612
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
613
|
+
// in the Software without restriction, including without limitation the rights
|
|
614
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
615
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
616
|
+
// furnished to do so, subject to the following conditions:
|
|
617
|
+
//
|
|
618
|
+
// The above copyright notice and this permission notice shall be included in
|
|
619
|
+
// all copies or substantial portions of the Software.
|
|
620
|
+
//
|
|
621
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
622
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
623
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
624
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
625
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
626
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
627
|
+
// THE SOFTWARE.
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
(function(global, module, define) {
|
|
632
|
+
|
|
633
|
+
function Alea(seed) {
|
|
634
|
+
var me = this, mash = Mash();
|
|
635
|
+
|
|
636
|
+
me.next = function() {
|
|
637
|
+
var t = 2091639 * me.s0 + me.c * 2.3283064365386963e-10; // 2^-32
|
|
638
|
+
me.s0 = me.s1;
|
|
639
|
+
me.s1 = me.s2;
|
|
640
|
+
return me.s2 = t - (me.c = t | 0);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
// Apply the seeding algorithm from Baagoe.
|
|
644
|
+
me.c = 1;
|
|
645
|
+
me.s0 = mash(' ');
|
|
646
|
+
me.s1 = mash(' ');
|
|
647
|
+
me.s2 = mash(' ');
|
|
648
|
+
me.s0 -= mash(seed);
|
|
649
|
+
if (me.s0 < 0) { me.s0 += 1; }
|
|
650
|
+
me.s1 -= mash(seed);
|
|
651
|
+
if (me.s1 < 0) { me.s1 += 1; }
|
|
652
|
+
me.s2 -= mash(seed);
|
|
653
|
+
if (me.s2 < 0) { me.s2 += 1; }
|
|
654
|
+
mash = null;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
function copy(f, t) {
|
|
658
|
+
t.c = f.c;
|
|
659
|
+
t.s0 = f.s0;
|
|
660
|
+
t.s1 = f.s1;
|
|
661
|
+
t.s2 = f.s2;
|
|
662
|
+
return t;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
function impl(seed, opts) {
|
|
666
|
+
var xg = new Alea(seed),
|
|
667
|
+
state = opts && opts.state,
|
|
668
|
+
prng = xg.next;
|
|
669
|
+
prng.int32 = function() { return (xg.next() * 0x100000000) | 0; }
|
|
670
|
+
prng.double = function() {
|
|
671
|
+
return prng() + (prng() * 0x200000 | 0) * 1.1102230246251565e-16; // 2^-53
|
|
672
|
+
};
|
|
673
|
+
prng.quick = prng;
|
|
674
|
+
if (state) {
|
|
675
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
676
|
+
prng.state = function() { return copy(xg, {}); }
|
|
677
|
+
}
|
|
678
|
+
return prng;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
function Mash() {
|
|
682
|
+
var n = 0xefc8249d;
|
|
683
|
+
|
|
684
|
+
var mash = function(data) {
|
|
685
|
+
data = String(data);
|
|
686
|
+
for (var i = 0; i < data.length; i++) {
|
|
687
|
+
n += data.charCodeAt(i);
|
|
688
|
+
var h = 0.02519603282416938 * n;
|
|
689
|
+
n = h >>> 0;
|
|
690
|
+
h -= n;
|
|
691
|
+
h *= n;
|
|
692
|
+
n = h >>> 0;
|
|
693
|
+
h -= n;
|
|
694
|
+
n += h * 0x100000000; // 2^32
|
|
695
|
+
}
|
|
696
|
+
return (n >>> 0) * 2.3283064365386963e-10; // 2^-32
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
return mash;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
if (module && module.exports) {
|
|
704
|
+
module.exports = impl;
|
|
705
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
706
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
707
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
708
|
+
} else {
|
|
709
|
+
this.alea = impl;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
})(
|
|
713
|
+
this,
|
|
714
|
+
true && module, // present in node.js
|
|
715
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
716
|
+
);
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
/***/ }),
|
|
722
|
+
|
|
723
|
+
/***/ 49:
|
|
724
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
725
|
+
|
|
726
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
727
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "Tyche-i" prng algorithm by
|
|
728
|
+
// Samuel Neves and Filipe Araujo.
|
|
729
|
+
// See https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf
|
|
730
|
+
|
|
731
|
+
(function(global, module, define) {
|
|
732
|
+
|
|
733
|
+
function XorGen(seed) {
|
|
734
|
+
var me = this, strseed = '';
|
|
735
|
+
|
|
736
|
+
// Set up generator function.
|
|
737
|
+
me.next = function() {
|
|
738
|
+
var b = me.b, c = me.c, d = me.d, a = me.a;
|
|
739
|
+
b = (b << 25) ^ (b >>> 7) ^ c;
|
|
740
|
+
c = (c - d) | 0;
|
|
741
|
+
d = (d << 24) ^ (d >>> 8) ^ a;
|
|
742
|
+
a = (a - b) | 0;
|
|
743
|
+
me.b = b = (b << 20) ^ (b >>> 12) ^ c;
|
|
744
|
+
me.c = c = (c - d) | 0;
|
|
745
|
+
me.d = (d << 16) ^ (c >>> 16) ^ a;
|
|
746
|
+
return me.a = (a - b) | 0;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
/* The following is non-inverted tyche, which has better internal
|
|
750
|
+
* bit diffusion, but which is about 25% slower than tyche-i in JS.
|
|
751
|
+
me.next = function() {
|
|
752
|
+
var a = me.a, b = me.b, c = me.c, d = me.d;
|
|
753
|
+
a = (me.a + me.b | 0) >>> 0;
|
|
754
|
+
d = me.d ^ a; d = d << 16 ^ d >>> 16;
|
|
755
|
+
c = me.c + d | 0;
|
|
756
|
+
b = me.b ^ c; b = b << 12 ^ d >>> 20;
|
|
757
|
+
me.a = a = a + b | 0;
|
|
758
|
+
d = d ^ a; me.d = d = d << 8 ^ d >>> 24;
|
|
759
|
+
me.c = c = c + d | 0;
|
|
760
|
+
b = b ^ c;
|
|
761
|
+
return me.b = (b << 7 ^ b >>> 25);
|
|
762
|
+
}
|
|
763
|
+
*/
|
|
764
|
+
|
|
765
|
+
me.a = 0;
|
|
766
|
+
me.b = 0;
|
|
767
|
+
me.c = 2654435769 | 0;
|
|
768
|
+
me.d = 1367130551;
|
|
769
|
+
|
|
770
|
+
if (seed === Math.floor(seed)) {
|
|
771
|
+
// Integer seed.
|
|
772
|
+
me.a = (seed / 0x100000000) | 0;
|
|
773
|
+
me.b = seed | 0;
|
|
774
|
+
} else {
|
|
775
|
+
// String seed.
|
|
776
|
+
strseed += seed;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// Mix in string seed, then discard an initial batch of 64 values.
|
|
780
|
+
for (var k = 0; k < strseed.length + 20; k++) {
|
|
781
|
+
me.b ^= strseed.charCodeAt(k) | 0;
|
|
782
|
+
me.next();
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
function copy(f, t) {
|
|
787
|
+
t.a = f.a;
|
|
788
|
+
t.b = f.b;
|
|
789
|
+
t.c = f.c;
|
|
790
|
+
t.d = f.d;
|
|
791
|
+
return t;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
function impl(seed, opts) {
|
|
795
|
+
var xg = new XorGen(seed),
|
|
796
|
+
state = opts && opts.state,
|
|
797
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
798
|
+
prng.double = function() {
|
|
799
|
+
do {
|
|
800
|
+
var top = xg.next() >>> 11,
|
|
801
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
802
|
+
result = (top + bot) / (1 << 21);
|
|
803
|
+
} while (result === 0);
|
|
804
|
+
return result;
|
|
805
|
+
};
|
|
806
|
+
prng.int32 = xg.next;
|
|
807
|
+
prng.quick = prng;
|
|
808
|
+
if (state) {
|
|
809
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
810
|
+
prng.state = function() { return copy(xg, {}); }
|
|
811
|
+
}
|
|
812
|
+
return prng;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
if (module && module.exports) {
|
|
816
|
+
module.exports = impl;
|
|
817
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
818
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
819
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
820
|
+
} else {
|
|
821
|
+
this.tychei = impl;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
})(
|
|
825
|
+
this,
|
|
826
|
+
true && module, // present in node.js
|
|
827
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
828
|
+
);
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
/***/ }),
|
|
834
|
+
|
|
835
|
+
/***/ 652:
|
|
836
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
837
|
+
|
|
838
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
839
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "xor128" prng algorithm by
|
|
840
|
+
// George Marsaglia. See http://www.jstatsoft.org/v08/i14/paper
|
|
841
|
+
|
|
842
|
+
(function(global, module, define) {
|
|
843
|
+
|
|
844
|
+
function XorGen(seed) {
|
|
845
|
+
var me = this, strseed = '';
|
|
846
|
+
|
|
847
|
+
me.x = 0;
|
|
848
|
+
me.y = 0;
|
|
849
|
+
me.z = 0;
|
|
850
|
+
me.w = 0;
|
|
851
|
+
|
|
852
|
+
// Set up generator function.
|
|
853
|
+
me.next = function() {
|
|
854
|
+
var t = me.x ^ (me.x << 11);
|
|
855
|
+
me.x = me.y;
|
|
856
|
+
me.y = me.z;
|
|
857
|
+
me.z = me.w;
|
|
858
|
+
return me.w ^= (me.w >>> 19) ^ t ^ (t >>> 8);
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
if (seed === (seed | 0)) {
|
|
862
|
+
// Integer seed.
|
|
863
|
+
me.x = seed;
|
|
864
|
+
} else {
|
|
865
|
+
// String seed.
|
|
866
|
+
strseed += seed;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
// Mix in string seed, then discard an initial batch of 64 values.
|
|
870
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
871
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
872
|
+
me.next();
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
function copy(f, t) {
|
|
877
|
+
t.x = f.x;
|
|
878
|
+
t.y = f.y;
|
|
879
|
+
t.z = f.z;
|
|
880
|
+
t.w = f.w;
|
|
881
|
+
return t;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
function impl(seed, opts) {
|
|
885
|
+
var xg = new XorGen(seed),
|
|
886
|
+
state = opts && opts.state,
|
|
887
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
888
|
+
prng.double = function() {
|
|
889
|
+
do {
|
|
890
|
+
var top = xg.next() >>> 11,
|
|
891
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
892
|
+
result = (top + bot) / (1 << 21);
|
|
893
|
+
} while (result === 0);
|
|
894
|
+
return result;
|
|
895
|
+
};
|
|
896
|
+
prng.int32 = xg.next;
|
|
897
|
+
prng.quick = prng;
|
|
898
|
+
if (state) {
|
|
899
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
900
|
+
prng.state = function() { return copy(xg, {}); }
|
|
901
|
+
}
|
|
902
|
+
return prng;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
if (module && module.exports) {
|
|
906
|
+
module.exports = impl;
|
|
907
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
908
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
909
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
910
|
+
} else {
|
|
911
|
+
this.xor128 = impl;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
})(
|
|
915
|
+
this,
|
|
916
|
+
true && module, // present in node.js
|
|
917
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
918
|
+
);
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
/***/ }),
|
|
924
|
+
|
|
925
|
+
/***/ 618:
|
|
926
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
927
|
+
|
|
928
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
929
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of Richard Brent's Xorgens xor4096 algorithm.
|
|
930
|
+
//
|
|
931
|
+
// This fast non-cryptographic random number generator is designed for
|
|
932
|
+
// use in Monte-Carlo algorithms. It combines a long-period xorshift
|
|
933
|
+
// generator with a Weyl generator, and it passes all common batteries
|
|
934
|
+
// of stasticial tests for randomness while consuming only a few nanoseconds
|
|
935
|
+
// for each prng generated. For background on the generator, see Brent's
|
|
936
|
+
// paper: "Some long-period random number generators using shifts and xors."
|
|
937
|
+
// http://arxiv.org/pdf/1004.3115v1.pdf
|
|
938
|
+
//
|
|
939
|
+
// Usage:
|
|
940
|
+
//
|
|
941
|
+
// var xor4096 = require('xor4096');
|
|
942
|
+
// random = xor4096(1); // Seed with int32 or string.
|
|
943
|
+
// assert.equal(random(), 0.1520436450538547); // (0, 1) range, 53 bits.
|
|
944
|
+
// assert.equal(random.int32(), 1806534897); // signed int32, 32 bits.
|
|
945
|
+
//
|
|
946
|
+
// For nonzero numeric keys, this impelementation provides a sequence
|
|
947
|
+
// identical to that by Brent's xorgens 3 implementaion in C. This
|
|
948
|
+
// implementation also provides for initalizing the generator with
|
|
949
|
+
// string seeds, or for saving and restoring the state of the generator.
|
|
950
|
+
//
|
|
951
|
+
// On Chrome, this prng benchmarks about 2.1 times slower than
|
|
952
|
+
// Javascript's built-in Math.random().
|
|
953
|
+
|
|
954
|
+
(function(global, module, define) {
|
|
955
|
+
|
|
956
|
+
function XorGen(seed) {
|
|
957
|
+
var me = this;
|
|
958
|
+
|
|
959
|
+
// Set up generator function.
|
|
960
|
+
me.next = function() {
|
|
961
|
+
var w = me.w,
|
|
962
|
+
X = me.X, i = me.i, t, v;
|
|
963
|
+
// Update Weyl generator.
|
|
964
|
+
me.w = w = (w + 0x61c88647) | 0;
|
|
965
|
+
// Update xor generator.
|
|
966
|
+
v = X[(i + 34) & 127];
|
|
967
|
+
t = X[i = ((i + 1) & 127)];
|
|
968
|
+
v ^= v << 13;
|
|
969
|
+
t ^= t << 17;
|
|
970
|
+
v ^= v >>> 15;
|
|
971
|
+
t ^= t >>> 12;
|
|
972
|
+
// Update Xor generator array state.
|
|
973
|
+
v = X[i] = v ^ t;
|
|
974
|
+
me.i = i;
|
|
975
|
+
// Result is the combination.
|
|
976
|
+
return (v + (w ^ (w >>> 16))) | 0;
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
function init(me, seed) {
|
|
980
|
+
var t, v, i, j, w, X = [], limit = 128;
|
|
981
|
+
if (seed === (seed | 0)) {
|
|
982
|
+
// Numeric seeds initialize v, which is used to generates X.
|
|
983
|
+
v = seed;
|
|
984
|
+
seed = null;
|
|
985
|
+
} else {
|
|
986
|
+
// String seeds are mixed into v and X one character at a time.
|
|
987
|
+
seed = seed + '\0';
|
|
988
|
+
v = 0;
|
|
989
|
+
limit = Math.max(limit, seed.length);
|
|
990
|
+
}
|
|
991
|
+
// Initialize circular array and weyl value.
|
|
992
|
+
for (i = 0, j = -32; j < limit; ++j) {
|
|
993
|
+
// Put the unicode characters into the array, and shuffle them.
|
|
994
|
+
if (seed) v ^= seed.charCodeAt((j + 32) % seed.length);
|
|
995
|
+
// After 32 shuffles, take v as the starting w value.
|
|
996
|
+
if (j === 0) w = v;
|
|
997
|
+
v ^= v << 10;
|
|
998
|
+
v ^= v >>> 15;
|
|
999
|
+
v ^= v << 4;
|
|
1000
|
+
v ^= v >>> 13;
|
|
1001
|
+
if (j >= 0) {
|
|
1002
|
+
w = (w + 0x61c88647) | 0; // Weyl.
|
|
1003
|
+
t = (X[j & 127] ^= (v + w)); // Combine xor and weyl to init array.
|
|
1004
|
+
i = (0 == t) ? i + 1 : 0; // Count zeroes.
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
// We have detected all zeroes; make the key nonzero.
|
|
1008
|
+
if (i >= 128) {
|
|
1009
|
+
X[(seed && seed.length || 0) & 127] = -1;
|
|
1010
|
+
}
|
|
1011
|
+
// Run the generator 512 times to further mix the state before using it.
|
|
1012
|
+
// Factoring this as a function slows the main generator, so it is just
|
|
1013
|
+
// unrolled here. The weyl generator is not advanced while warming up.
|
|
1014
|
+
i = 127;
|
|
1015
|
+
for (j = 4 * 128; j > 0; --j) {
|
|
1016
|
+
v = X[(i + 34) & 127];
|
|
1017
|
+
t = X[i = ((i + 1) & 127)];
|
|
1018
|
+
v ^= v << 13;
|
|
1019
|
+
t ^= t << 17;
|
|
1020
|
+
v ^= v >>> 15;
|
|
1021
|
+
t ^= t >>> 12;
|
|
1022
|
+
X[i] = v ^ t;
|
|
1023
|
+
}
|
|
1024
|
+
// Storing state as object members is faster than using closure variables.
|
|
1025
|
+
me.w = w;
|
|
1026
|
+
me.X = X;
|
|
1027
|
+
me.i = i;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
init(me, seed);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
function copy(f, t) {
|
|
1034
|
+
t.i = f.i;
|
|
1035
|
+
t.w = f.w;
|
|
1036
|
+
t.X = f.X.slice();
|
|
1037
|
+
return t;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
function impl(seed, opts) {
|
|
1041
|
+
if (seed == null) seed = +(new Date);
|
|
1042
|
+
var xg = new XorGen(seed),
|
|
1043
|
+
state = opts && opts.state,
|
|
1044
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
1045
|
+
prng.double = function() {
|
|
1046
|
+
do {
|
|
1047
|
+
var top = xg.next() >>> 11,
|
|
1048
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
1049
|
+
result = (top + bot) / (1 << 21);
|
|
1050
|
+
} while (result === 0);
|
|
1051
|
+
return result;
|
|
1052
|
+
};
|
|
1053
|
+
prng.int32 = xg.next;
|
|
1054
|
+
prng.quick = prng;
|
|
1055
|
+
if (state) {
|
|
1056
|
+
if (state.X) copy(state, xg);
|
|
1057
|
+
prng.state = function() { return copy(xg, {}); }
|
|
1058
|
+
}
|
|
1059
|
+
return prng;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
if (module && module.exports) {
|
|
1063
|
+
module.exports = impl;
|
|
1064
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
1065
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
1066
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1067
|
+
} else {
|
|
1068
|
+
this.xor4096 = impl;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
})(
|
|
1072
|
+
this, // window object or global
|
|
1073
|
+
true && module, // present in node.js
|
|
1074
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
1075
|
+
);
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/***/ }),
|
|
1079
|
+
|
|
1080
|
+
/***/ 30:
|
|
1081
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1082
|
+
|
|
1083
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
1084
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "xorshift7" algorithm by
|
|
1085
|
+
// François Panneton and Pierre L'ecuyer:
|
|
1086
|
+
// "On the Xorgshift Random Number Generators"
|
|
1087
|
+
// http://saluc.engr.uconn.edu/refs/crypto/rng/panneton05onthexorshift.pdf
|
|
1088
|
+
|
|
1089
|
+
(function(global, module, define) {
|
|
1090
|
+
|
|
1091
|
+
function XorGen(seed) {
|
|
1092
|
+
var me = this;
|
|
1093
|
+
|
|
1094
|
+
// Set up generator function.
|
|
1095
|
+
me.next = function() {
|
|
1096
|
+
// Update xor generator.
|
|
1097
|
+
var X = me.x, i = me.i, t, v, w;
|
|
1098
|
+
t = X[i]; t ^= (t >>> 7); v = t ^ (t << 24);
|
|
1099
|
+
t = X[(i + 1) & 7]; v ^= t ^ (t >>> 10);
|
|
1100
|
+
t = X[(i + 3) & 7]; v ^= t ^ (t >>> 3);
|
|
1101
|
+
t = X[(i + 4) & 7]; v ^= t ^ (t << 7);
|
|
1102
|
+
t = X[(i + 7) & 7]; t = t ^ (t << 13); v ^= t ^ (t << 9);
|
|
1103
|
+
X[i] = v;
|
|
1104
|
+
me.i = (i + 1) & 7;
|
|
1105
|
+
return v;
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
function init(me, seed) {
|
|
1109
|
+
var j, w, X = [];
|
|
1110
|
+
|
|
1111
|
+
if (seed === (seed | 0)) {
|
|
1112
|
+
// Seed state array using a 32-bit integer.
|
|
1113
|
+
w = X[0] = seed;
|
|
1114
|
+
} else {
|
|
1115
|
+
// Seed state using a string.
|
|
1116
|
+
seed = '' + seed;
|
|
1117
|
+
for (j = 0; j < seed.length; ++j) {
|
|
1118
|
+
X[j & 7] = (X[j & 7] << 15) ^
|
|
1119
|
+
(seed.charCodeAt(j) + X[(j + 1) & 7] << 13);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
// Enforce an array length of 8, not all zeroes.
|
|
1123
|
+
while (X.length < 8) X.push(0);
|
|
1124
|
+
for (j = 0; j < 8 && X[j] === 0; ++j);
|
|
1125
|
+
if (j == 8) w = X[7] = -1; else w = X[j];
|
|
1126
|
+
|
|
1127
|
+
me.x = X;
|
|
1128
|
+
me.i = 0;
|
|
1129
|
+
|
|
1130
|
+
// Discard an initial 256 values.
|
|
1131
|
+
for (j = 256; j > 0; --j) {
|
|
1132
|
+
me.next();
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
init(me, seed);
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
function copy(f, t) {
|
|
1140
|
+
t.x = f.x.slice();
|
|
1141
|
+
t.i = f.i;
|
|
1142
|
+
return t;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
function impl(seed, opts) {
|
|
1146
|
+
if (seed == null) seed = +(new Date);
|
|
1147
|
+
var xg = new XorGen(seed),
|
|
1148
|
+
state = opts && opts.state,
|
|
1149
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
1150
|
+
prng.double = function() {
|
|
1151
|
+
do {
|
|
1152
|
+
var top = xg.next() >>> 11,
|
|
1153
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
1154
|
+
result = (top + bot) / (1 << 21);
|
|
1155
|
+
} while (result === 0);
|
|
1156
|
+
return result;
|
|
1157
|
+
};
|
|
1158
|
+
prng.int32 = xg.next;
|
|
1159
|
+
prng.quick = prng;
|
|
1160
|
+
if (state) {
|
|
1161
|
+
if (state.x) copy(state, xg);
|
|
1162
|
+
prng.state = function() { return copy(xg, {}); }
|
|
1163
|
+
}
|
|
1164
|
+
return prng;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
if (module && module.exports) {
|
|
1168
|
+
module.exports = impl;
|
|
1169
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
1170
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
1171
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1172
|
+
} else {
|
|
1173
|
+
this.xorshift7 = impl;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
})(
|
|
1177
|
+
this,
|
|
1178
|
+
true && module, // present in node.js
|
|
1179
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
1180
|
+
);
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
/***/ }),
|
|
1185
|
+
|
|
1186
|
+
/***/ 801:
|
|
1187
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1188
|
+
|
|
1189
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
1190
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "xorwow" prng algorithm by
|
|
1191
|
+
// George Marsaglia. See http://www.jstatsoft.org/v08/i14/paper
|
|
1192
|
+
|
|
1193
|
+
(function(global, module, define) {
|
|
1194
|
+
|
|
1195
|
+
function XorGen(seed) {
|
|
1196
|
+
var me = this, strseed = '';
|
|
1197
|
+
|
|
1198
|
+
// Set up generator function.
|
|
1199
|
+
me.next = function() {
|
|
1200
|
+
var t = (me.x ^ (me.x >>> 2));
|
|
1201
|
+
me.x = me.y; me.y = me.z; me.z = me.w; me.w = me.v;
|
|
1202
|
+
return (me.d = (me.d + 362437 | 0)) +
|
|
1203
|
+
(me.v = (me.v ^ (me.v << 4)) ^ (t ^ (t << 1))) | 0;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
me.x = 0;
|
|
1207
|
+
me.y = 0;
|
|
1208
|
+
me.z = 0;
|
|
1209
|
+
me.w = 0;
|
|
1210
|
+
me.v = 0;
|
|
1211
|
+
|
|
1212
|
+
if (seed === (seed | 0)) {
|
|
1213
|
+
// Integer seed.
|
|
1214
|
+
me.x = seed;
|
|
1215
|
+
} else {
|
|
1216
|
+
// String seed.
|
|
1217
|
+
strseed += seed;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
// Mix in string seed, then discard an initial batch of 64 values.
|
|
1221
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
1222
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
1223
|
+
if (k == strseed.length) {
|
|
1224
|
+
me.d = me.x << 10 ^ me.x >>> 4;
|
|
1225
|
+
}
|
|
1226
|
+
me.next();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function copy(f, t) {
|
|
1231
|
+
t.x = f.x;
|
|
1232
|
+
t.y = f.y;
|
|
1233
|
+
t.z = f.z;
|
|
1234
|
+
t.w = f.w;
|
|
1235
|
+
t.v = f.v;
|
|
1236
|
+
t.d = f.d;
|
|
1237
|
+
return t;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
function impl(seed, opts) {
|
|
1241
|
+
var xg = new XorGen(seed),
|
|
1242
|
+
state = opts && opts.state,
|
|
1243
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
1244
|
+
prng.double = function() {
|
|
1245
|
+
do {
|
|
1246
|
+
var top = xg.next() >>> 11,
|
|
1247
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
1248
|
+
result = (top + bot) / (1 << 21);
|
|
1249
|
+
} while (result === 0);
|
|
1250
|
+
return result;
|
|
1251
|
+
};
|
|
1252
|
+
prng.int32 = xg.next;
|
|
1253
|
+
prng.quick = prng;
|
|
1254
|
+
if (state) {
|
|
1255
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
1256
|
+
prng.state = function() { return copy(xg, {}); }
|
|
1257
|
+
}
|
|
1258
|
+
return prng;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
if (module && module.exports) {
|
|
1262
|
+
module.exports = impl;
|
|
1263
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
1264
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
1265
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1266
|
+
} else {
|
|
1267
|
+
this.xorwow = impl;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
})(
|
|
1271
|
+
this,
|
|
1272
|
+
true && module, // present in node.js
|
|
1273
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
1274
|
+
);
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
/***/ }),
|
|
1280
|
+
|
|
1281
|
+
/***/ 971:
|
|
1282
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1283
|
+
|
|
1284
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
1285
|
+
Copyright 2019 David Bau.
|
|
1286
|
+
|
|
1287
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
1288
|
+
a copy of this software and associated documentation files (the
|
|
1289
|
+
"Software"), to deal in the Software without restriction, including
|
|
1290
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
1291
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
1292
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
1293
|
+
the following conditions:
|
|
1294
|
+
|
|
1295
|
+
The above copyright notice and this permission notice shall be
|
|
1296
|
+
included in all copies or substantial portions of the Software.
|
|
1297
|
+
|
|
1298
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
1299
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1300
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
1301
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
1302
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
1303
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1304
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1305
|
+
|
|
1306
|
+
*/
|
|
1307
|
+
|
|
1308
|
+
(function (global, pool, math) {
|
|
1309
|
+
//
|
|
1310
|
+
// The following constants are related to IEEE 754 limits.
|
|
1311
|
+
//
|
|
1312
|
+
|
|
1313
|
+
var width = 256, // each RC4 output is 0 <= x < 256
|
|
1314
|
+
chunks = 6, // at least six RC4 outputs for each double
|
|
1315
|
+
digits = 52, // there are 52 significant digits in a double
|
|
1316
|
+
rngname = 'random', // rngname: name for Math.random and Math.seedrandom
|
|
1317
|
+
startdenom = math.pow(width, chunks),
|
|
1318
|
+
significance = math.pow(2, digits),
|
|
1319
|
+
overflow = significance * 2,
|
|
1320
|
+
mask = width - 1,
|
|
1321
|
+
nodecrypto; // node.js crypto module, initialized at the bottom.
|
|
1322
|
+
|
|
1323
|
+
//
|
|
1324
|
+
// seedrandom()
|
|
1325
|
+
// This is the seedrandom function described above.
|
|
1326
|
+
//
|
|
1327
|
+
function seedrandom(seed, options, callback) {
|
|
1328
|
+
var key = [];
|
|
1329
|
+
options = (options == true) ? { entropy: true } : (options || {});
|
|
1330
|
+
|
|
1331
|
+
// Flatten the seed string or build one from local entropy if needed.
|
|
1332
|
+
var shortseed = mixkey(flatten(
|
|
1333
|
+
options.entropy ? [seed, tostring(pool)] :
|
|
1334
|
+
(seed == null) ? autoseed() : seed, 3), key);
|
|
1335
|
+
|
|
1336
|
+
// Use the seed to initialize an ARC4 generator.
|
|
1337
|
+
var arc4 = new ARC4(key);
|
|
1338
|
+
|
|
1339
|
+
// This function returns a random double in [0, 1) that contains
|
|
1340
|
+
// randomness in every bit of the mantissa of the IEEE 754 value.
|
|
1341
|
+
var prng = function() {
|
|
1342
|
+
var n = arc4.g(chunks), // Start with a numerator n < 2 ^ 48
|
|
1343
|
+
d = startdenom, // and denominator d = 2 ^ 48.
|
|
1344
|
+
x = 0; // and no 'extra last byte'.
|
|
1345
|
+
while (n < significance) { // Fill up all significant digits by
|
|
1346
|
+
n = (n + x) * width; // shifting numerator and
|
|
1347
|
+
d *= width; // denominator and generating a
|
|
1348
|
+
x = arc4.g(1); // new least-significant-byte.
|
|
1349
|
+
}
|
|
1350
|
+
while (n >= overflow) { // To avoid rounding up, before adding
|
|
1351
|
+
n /= 2; // last byte, shift everything
|
|
1352
|
+
d /= 2; // right using integer math until
|
|
1353
|
+
x >>>= 1; // we have exactly the desired bits.
|
|
1354
|
+
}
|
|
1355
|
+
return (n + x) / d; // Form the number within [0, 1).
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
prng.int32 = function() { return arc4.g(4) | 0; }
|
|
1359
|
+
prng.quick = function() { return arc4.g(4) / 0x100000000; }
|
|
1360
|
+
prng.double = prng;
|
|
1361
|
+
|
|
1362
|
+
// Mix the randomness into accumulated entropy.
|
|
1363
|
+
mixkey(tostring(arc4.S), pool);
|
|
1364
|
+
|
|
1365
|
+
// Calling convention: what to return as a function of prng, seed, is_math.
|
|
1366
|
+
return (options.pass || callback ||
|
|
1367
|
+
function(prng, seed, is_math_call, state) {
|
|
1368
|
+
if (state) {
|
|
1369
|
+
// Load the arc4 state from the given state if it has an S array.
|
|
1370
|
+
if (state.S) { copy(state, arc4); }
|
|
1371
|
+
// Only provide the .state method if requested via options.state.
|
|
1372
|
+
prng.state = function() { return copy(arc4, {}); }
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
// If called as a method of Math (Math.seedrandom()), mutate
|
|
1376
|
+
// Math.random because that is how seedrandom.js has worked since v1.0.
|
|
1377
|
+
if (is_math_call) { math[rngname] = prng; return seed; }
|
|
1378
|
+
|
|
1379
|
+
// Otherwise, it is a newer calling convention, so return the
|
|
1380
|
+
// prng directly.
|
|
1381
|
+
else return prng;
|
|
1382
|
+
})(
|
|
1383
|
+
prng,
|
|
1384
|
+
shortseed,
|
|
1385
|
+
'global' in options ? options.global : (this == math),
|
|
1386
|
+
options.state);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
//
|
|
1390
|
+
// ARC4
|
|
1391
|
+
//
|
|
1392
|
+
// An ARC4 implementation. The constructor takes a key in the form of
|
|
1393
|
+
// an array of at most (width) integers that should be 0 <= x < (width).
|
|
1394
|
+
//
|
|
1395
|
+
// The g(count) method returns a pseudorandom integer that concatenates
|
|
1396
|
+
// the next (count) outputs from ARC4. Its return value is a number x
|
|
1397
|
+
// that is in the range 0 <= x < (width ^ count).
|
|
1398
|
+
//
|
|
1399
|
+
function ARC4(key) {
|
|
1400
|
+
var t, keylen = key.length,
|
|
1401
|
+
me = this, i = 0, j = me.i = me.j = 0, s = me.S = [];
|
|
1402
|
+
|
|
1403
|
+
// The empty key [] is treated as [0].
|
|
1404
|
+
if (!keylen) { key = [keylen++]; }
|
|
1405
|
+
|
|
1406
|
+
// Set up S using the standard key scheduling algorithm.
|
|
1407
|
+
while (i < width) {
|
|
1408
|
+
s[i] = i++;
|
|
1409
|
+
}
|
|
1410
|
+
for (i = 0; i < width; i++) {
|
|
1411
|
+
s[i] = s[j = mask & (j + key[i % keylen] + (t = s[i]))];
|
|
1412
|
+
s[j] = t;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
// The "g" method returns the next (count) outputs as one number.
|
|
1416
|
+
(me.g = function(count) {
|
|
1417
|
+
// Using instance members instead of closure state nearly doubles speed.
|
|
1418
|
+
var t, r = 0,
|
|
1419
|
+
i = me.i, j = me.j, s = me.S;
|
|
1420
|
+
while (count--) {
|
|
1421
|
+
t = s[i = mask & (i + 1)];
|
|
1422
|
+
r = r * width + s[mask & ((s[i] = s[j = mask & (j + t)]) + (s[j] = t))];
|
|
1423
|
+
}
|
|
1424
|
+
me.i = i; me.j = j;
|
|
1425
|
+
return r;
|
|
1426
|
+
// For robust unpredictability, the function call below automatically
|
|
1427
|
+
// discards an initial batch of values. This is called RC4-drop[256].
|
|
1428
|
+
// See http://google.com/search?q=rsa+fluhrer+response&btnI
|
|
1429
|
+
})(width);
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
//
|
|
1433
|
+
// copy()
|
|
1434
|
+
// Copies internal state of ARC4 to or from a plain object.
|
|
1435
|
+
//
|
|
1436
|
+
function copy(f, t) {
|
|
1437
|
+
t.i = f.i;
|
|
1438
|
+
t.j = f.j;
|
|
1439
|
+
t.S = f.S.slice();
|
|
1440
|
+
return t;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
//
|
|
1444
|
+
// flatten()
|
|
1445
|
+
// Converts an object tree to nested arrays of strings.
|
|
1446
|
+
//
|
|
1447
|
+
function flatten(obj, depth) {
|
|
1448
|
+
var result = [], typ = (typeof obj), prop;
|
|
1449
|
+
if (depth && typ == 'object') {
|
|
1450
|
+
for (prop in obj) {
|
|
1451
|
+
try { result.push(flatten(obj[prop], depth - 1)); } catch (e) {}
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
return (result.length ? result : typ == 'string' ? obj : obj + '\0');
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
//
|
|
1458
|
+
// mixkey()
|
|
1459
|
+
// Mixes a string seed into a key that is an array of integers, and
|
|
1460
|
+
// returns a shortened string seed that is equivalent to the result key.
|
|
1461
|
+
//
|
|
1462
|
+
function mixkey(seed, key) {
|
|
1463
|
+
var stringseed = seed + '', smear, j = 0;
|
|
1464
|
+
while (j < stringseed.length) {
|
|
1465
|
+
key[mask & j] =
|
|
1466
|
+
mask & ((smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++));
|
|
1467
|
+
}
|
|
1468
|
+
return tostring(key);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
//
|
|
1472
|
+
// autoseed()
|
|
1473
|
+
// Returns an object for autoseeding, using window.crypto and Node crypto
|
|
1474
|
+
// module if available.
|
|
1475
|
+
//
|
|
1476
|
+
function autoseed() {
|
|
1477
|
+
try {
|
|
1478
|
+
var out;
|
|
1479
|
+
if (nodecrypto && (out = nodecrypto.randomBytes)) {
|
|
1480
|
+
// The use of 'out' to remember randomBytes makes tight minified code.
|
|
1481
|
+
out = out(width);
|
|
1482
|
+
} else {
|
|
1483
|
+
out = new Uint8Array(width);
|
|
1484
|
+
(global.crypto || global.msCrypto).getRandomValues(out);
|
|
1485
|
+
}
|
|
1486
|
+
return tostring(out);
|
|
1487
|
+
} catch (e) {
|
|
1488
|
+
var browser = global.navigator,
|
|
1489
|
+
plugins = browser && browser.plugins;
|
|
1490
|
+
return [+new Date, global, plugins, global.screen, tostring(pool)];
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
//
|
|
1495
|
+
// tostring()
|
|
1496
|
+
// Converts an array of charcodes to a string
|
|
1497
|
+
//
|
|
1498
|
+
function tostring(a) {
|
|
1499
|
+
return String.fromCharCode.apply(0, a);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
//
|
|
1503
|
+
// When seedrandom.js is loaded, we immediately mix a few bits
|
|
1504
|
+
// from the built-in RNG into the entropy pool. Because we do
|
|
1505
|
+
// not want to interfere with deterministic PRNG state later,
|
|
1506
|
+
// seedrandom will not call math.random on its own again after
|
|
1507
|
+
// initialization.
|
|
1508
|
+
//
|
|
1509
|
+
mixkey(math.random(), pool);
|
|
1510
|
+
|
|
1511
|
+
//
|
|
1512
|
+
// Nodejs and AMD support: export the implementation as a module using
|
|
1513
|
+
// either convention.
|
|
1514
|
+
//
|
|
1515
|
+
if ( true && module.exports) {
|
|
1516
|
+
module.exports = seedrandom;
|
|
1517
|
+
// When in node.js, try using crypto package for autoseeding.
|
|
1518
|
+
try {
|
|
1519
|
+
nodecrypto = __webpack_require__(42);
|
|
1520
|
+
} catch (ex) {}
|
|
1521
|
+
} else if (true) {
|
|
1522
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return seedrandom; }).call(exports, __webpack_require__, exports, module),
|
|
1523
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1524
|
+
} else {}
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
// End anonymous scope, and pass initial values.
|
|
1528
|
+
})(
|
|
1529
|
+
// global: `self` in browsers (including strict mode and web workers),
|
|
1530
|
+
// otherwise `this` in Node and other environments
|
|
1531
|
+
(typeof self !== 'undefined') ? self : this,
|
|
1532
|
+
[], // pool: entropy pool starts empty
|
|
1533
|
+
Math // math: package containing random, pow, and seedrandom
|
|
1534
|
+
);
|
|
1535
|
+
|
|
1536
|
+
|
|
531
1537
|
/***/ }),
|
|
532
1538
|
|
|
533
1539
|
/***/ 744:
|
|
@@ -566,19 +1572,19 @@ var update = add("e1cef0bc", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
566
1572
|
|
|
567
1573
|
/***/ }),
|
|
568
1574
|
|
|
569
|
-
/***/
|
|
1575
|
+
/***/ 899:
|
|
570
1576
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
571
1577
|
|
|
572
1578
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
573
1579
|
|
|
574
1580
|
// load the styles
|
|
575
|
-
var content = __webpack_require__(
|
|
1581
|
+
var content = __webpack_require__(794);
|
|
576
1582
|
if(content.__esModule) content = content.default;
|
|
577
1583
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
578
1584
|
if(content.locals) module.exports = content.locals;
|
|
579
1585
|
// add the styles to the DOM
|
|
580
1586
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
581
|
-
var update = add("
|
|
1587
|
+
var update = add("7b0d71b4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
582
1588
|
|
|
583
1589
|
/***/ }),
|
|
584
1590
|
|
|
@@ -678,19 +1684,19 @@ var update = add("4d925410", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
678
1684
|
|
|
679
1685
|
/***/ }),
|
|
680
1686
|
|
|
681
|
-
/***/
|
|
1687
|
+
/***/ 597:
|
|
682
1688
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
683
1689
|
|
|
684
1690
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
685
1691
|
|
|
686
1692
|
// load the styles
|
|
687
|
-
var content = __webpack_require__(
|
|
1693
|
+
var content = __webpack_require__(214);
|
|
688
1694
|
if(content.__esModule) content = content.default;
|
|
689
1695
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
690
1696
|
if(content.locals) module.exports = content.locals;
|
|
691
1697
|
// add the styles to the DOM
|
|
692
1698
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
693
|
-
var update = add("
|
|
1699
|
+
var update = add("79dcebc8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
694
1700
|
|
|
695
1701
|
/***/ }),
|
|
696
1702
|
|
|
@@ -1086,6 +2092,13 @@ function applyToTag (styleElement, obj) {
|
|
|
1086
2092
|
}
|
|
1087
2093
|
|
|
1088
2094
|
|
|
2095
|
+
/***/ }),
|
|
2096
|
+
|
|
2097
|
+
/***/ 42:
|
|
2098
|
+
/***/ (() => {
|
|
2099
|
+
|
|
2100
|
+
/* (ignored) */
|
|
2101
|
+
|
|
1089
2102
|
/***/ })
|
|
1090
2103
|
|
|
1091
2104
|
/******/ });
|
|
@@ -1103,18 +2116,33 @@ function applyToTag (styleElement, obj) {
|
|
|
1103
2116
|
/******/ // Create a new module (and put it into the cache)
|
|
1104
2117
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1105
2118
|
/******/ id: moduleId,
|
|
1106
|
-
/******/
|
|
2119
|
+
/******/ loaded: false,
|
|
1107
2120
|
/******/ exports: {}
|
|
1108
2121
|
/******/ };
|
|
1109
2122
|
/******/
|
|
1110
2123
|
/******/ // Execute the module function
|
|
1111
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2124
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2125
|
+
/******/
|
|
2126
|
+
/******/ // Flag the module as loaded
|
|
2127
|
+
/******/ module.loaded = true;
|
|
1112
2128
|
/******/
|
|
1113
2129
|
/******/ // Return the exports of the module
|
|
1114
2130
|
/******/ return module.exports;
|
|
1115
2131
|
/******/ }
|
|
1116
2132
|
/******/
|
|
1117
2133
|
/************************************************************************/
|
|
2134
|
+
/******/ /* webpack/runtime/amd define */
|
|
2135
|
+
/******/ (() => {
|
|
2136
|
+
/******/ __webpack_require__.amdD = function () {
|
|
2137
|
+
/******/ throw new Error('define cannot be used indirect');
|
|
2138
|
+
/******/ };
|
|
2139
|
+
/******/ })();
|
|
2140
|
+
/******/
|
|
2141
|
+
/******/ /* webpack/runtime/amd options */
|
|
2142
|
+
/******/ (() => {
|
|
2143
|
+
/******/ __webpack_require__.amdO = {};
|
|
2144
|
+
/******/ })();
|
|
2145
|
+
/******/
|
|
1118
2146
|
/******/ /* webpack/runtime/compat get default export */
|
|
1119
2147
|
/******/ (() => {
|
|
1120
2148
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -1155,6 +2183,15 @@ function applyToTag (styleElement, obj) {
|
|
|
1155
2183
|
/******/ };
|
|
1156
2184
|
/******/ })();
|
|
1157
2185
|
/******/
|
|
2186
|
+
/******/ /* webpack/runtime/node module decorator */
|
|
2187
|
+
/******/ (() => {
|
|
2188
|
+
/******/ __webpack_require__.nmd = (module) => {
|
|
2189
|
+
/******/ module.paths = [];
|
|
2190
|
+
/******/ if (!module.children) module.children = [];
|
|
2191
|
+
/******/ return module;
|
|
2192
|
+
/******/ };
|
|
2193
|
+
/******/ })();
|
|
2194
|
+
/******/
|
|
1158
2195
|
/******/ /* webpack/runtime/publicPath */
|
|
1159
2196
|
/******/ (() => {
|
|
1160
2197
|
/******/ __webpack_require__.p = "";
|
|
@@ -1311,7 +2348,7 @@ if (typeof window !== 'undefined') {
|
|
|
1311
2348
|
|
|
1312
2349
|
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
1313
2350
|
const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
1314
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/avatar/avatar.vue?vue&type=template&id=
|
|
2351
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/avatar/avatar.vue?vue&type=template&id=3cb27068
|
|
1315
2352
|
|
|
1316
2353
|
const _hoisted_1 = ["id"];
|
|
1317
2354
|
const _hoisted_2 = {
|
|
@@ -1335,7 +2372,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1335
2372
|
"data-qa": "dt-presence"
|
|
1336
2373
|
}), null, 16, ["presence", "class"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 14, _hoisted_1);
|
|
1337
2374
|
}
|
|
1338
|
-
;// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=template&id=
|
|
2375
|
+
;// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=template&id=3cb27068
|
|
1339
2376
|
|
|
1340
2377
|
;// CONCATENATED MODULE: ./common/constants.js
|
|
1341
2378
|
/* TODO: Move and sort these in a constants directory
|
|
@@ -1408,6 +2445,9 @@ const DEFAULT_PREFIX = 'dt';
|
|
|
1408
2445
|
;// CONCATENATED MODULE: ./common/utils.js
|
|
1409
2446
|
|
|
1410
2447
|
|
|
2448
|
+
|
|
2449
|
+
const seedrandom = __webpack_require__(377);
|
|
2450
|
+
|
|
1411
2451
|
let UNIQUE_ID_COUNTER = 0; // selector to find focusable not hidden inputs
|
|
1412
2452
|
|
|
1413
2453
|
const FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)'; // selector to find focusable not disables elements
|
|
@@ -1424,12 +2464,15 @@ function getUniqueString() {
|
|
|
1424
2464
|
}
|
|
1425
2465
|
/**
|
|
1426
2466
|
* Returns a random element from array
|
|
1427
|
-
* @param array
|
|
1428
|
-
* @
|
|
2467
|
+
* @param array - the array to return a random element from
|
|
2468
|
+
* @param {string} seed - use a string to seed the randomization, so it returns the same element each time
|
|
2469
|
+
* based on that string.
|
|
2470
|
+
* @returns {*} - the random element
|
|
1429
2471
|
*/
|
|
1430
2472
|
|
|
1431
|
-
function getRandomElement(array) {
|
|
1432
|
-
|
|
2473
|
+
function getRandomElement(array, seed) {
|
|
2474
|
+
const rng = seedrandom(seed);
|
|
2475
|
+
return array[Math.floor(rng() * array.length)];
|
|
1433
2476
|
}
|
|
1434
2477
|
function formatMessages(messages) {
|
|
1435
2478
|
if (!messages) {
|
|
@@ -1617,6 +2660,9 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(presencevue_typ
|
|
|
1617
2660
|
;// CONCATENATED MODULE: ./components/presence/index.js
|
|
1618
2661
|
|
|
1619
2662
|
|
|
2663
|
+
// EXTERNAL MODULE: ./node_modules/seedrandom/index.js
|
|
2664
|
+
var node_modules_seedrandom = __webpack_require__(377);
|
|
2665
|
+
var seedrandom_default = /*#__PURE__*/__webpack_require__.n(node_modules_seedrandom);
|
|
1620
2666
|
;// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
|
|
1621
2667
|
const AVATAR_KIND_MODIFIERS = {
|
|
1622
2668
|
default: '',
|
|
@@ -1659,6 +2705,7 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1659
2705
|
|
|
1660
2706
|
|
|
1661
2707
|
|
|
2708
|
+
|
|
1662
2709
|
/**
|
|
1663
2710
|
* An avatar is a visual representation of a user or object.
|
|
1664
2711
|
* @see https://dialpad.design/components/avatar.html
|
|
@@ -1683,6 +2730,15 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1683
2730
|
|
|
1684
2731
|
},
|
|
1685
2732
|
|
|
2733
|
+
/**
|
|
2734
|
+
* Pass in a seed to get the random color generation based on that string. For example if you pass in a
|
|
2735
|
+
* user ID as the string it will return the same randomly generated colors every time for that user.
|
|
2736
|
+
*/
|
|
2737
|
+
seed: {
|
|
2738
|
+
type: String,
|
|
2739
|
+
default: undefined
|
|
2740
|
+
},
|
|
2741
|
+
|
|
1686
2742
|
/**
|
|
1687
2743
|
* The size of the avatar
|
|
1688
2744
|
* @values xs, sm, md, lg, xl
|
|
@@ -1839,21 +2895,29 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1839
2895
|
},
|
|
1840
2896
|
|
|
1841
2897
|
randomizeGradientAngle() {
|
|
1842
|
-
return getRandomElement(AVATAR_ANGLES);
|
|
2898
|
+
return getRandomElement(AVATAR_ANGLES, this.seed);
|
|
1843
2899
|
},
|
|
1844
2900
|
|
|
1845
2901
|
randomizeGradientColorStops() {
|
|
1846
|
-
const colors = new Set();
|
|
2902
|
+
const colors = new Set();
|
|
2903
|
+
let count = 0; // get 3 unique colors, 2 from colorsWith100 and one from colorsWith200
|
|
1847
2904
|
|
|
1848
2905
|
while (colors.size < MAX_GRADIENT_COLORS) {
|
|
2906
|
+
// add count to the seed since we are looking for 3 unique colors. If the seed makes it always
|
|
2907
|
+
// return the same color we'll get an infinite loop.
|
|
2908
|
+
const seedForColor = this.seed === undefined ? undefined : this.seed + count.toString();
|
|
2909
|
+
|
|
1849
2910
|
if (colors.size === MAX_GRADIENT_COLORS_100) {
|
|
1850
|
-
colors.add(getRandomElement(GRADIENT_COLORS.with200));
|
|
2911
|
+
colors.add(getRandomElement(GRADIENT_COLORS.with200, seedForColor));
|
|
1851
2912
|
} else {
|
|
1852
|
-
colors.add(getRandomElement(GRADIENT_COLORS.with100));
|
|
2913
|
+
colors.add(getRandomElement(GRADIENT_COLORS.with100, seedForColor));
|
|
1853
2914
|
}
|
|
2915
|
+
|
|
2916
|
+
count++;
|
|
1854
2917
|
}
|
|
1855
2918
|
|
|
1856
|
-
const
|
|
2919
|
+
const rng = seedrandom_default()(this.seed);
|
|
2920
|
+
const shuffledColors = Array.from(colors).sort(() => 0.5 - rng());
|
|
1857
2921
|
return shuffledColors;
|
|
1858
2922
|
},
|
|
1859
2923
|
|
|
@@ -1870,9 +2934,9 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1870
2934
|
});
|
|
1871
2935
|
;// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=script&lang=js
|
|
1872
2936
|
|
|
1873
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/avatar/avatar.vue?vue&type=style&index=0&id=
|
|
1874
|
-
var
|
|
1875
|
-
;// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=style&index=0&id=
|
|
2937
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/avatar/avatar.vue?vue&type=style&index=0&id=3cb27068&lang=less
|
|
2938
|
+
var avatarvue_type_style_index_0_id_3cb27068_lang_less = __webpack_require__(899);
|
|
2939
|
+
;// CONCATENATED MODULE: ./components/avatar/avatar.vue?vue&type=style&index=0&id=3cb27068&lang=less
|
|
1876
2940
|
|
|
1877
2941
|
;// CONCATENATED MODULE: ./components/avatar/avatar.vue
|
|
1878
2942
|
|
|
@@ -6337,11 +7401,11 @@ function dropdownvue_type_template_id_6b8ca270_render(_ctx, _cache, $props, $set
|
|
|
6337
7401
|
}
|
|
6338
7402
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown.vue?vue&type=template&id=6b8ca270
|
|
6339
7403
|
|
|
6340
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=template&id=
|
|
7404
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=template&id=4199c610
|
|
6341
7405
|
|
|
6342
|
-
const
|
|
6343
|
-
const
|
|
6344
|
-
function
|
|
7406
|
+
const popovervue_type_template_id_4199c610_hoisted_1 = ["aria-hidden"];
|
|
7407
|
+
const popovervue_type_template_id_4199c610_hoisted_2 = ["id", "tabindex"];
|
|
7408
|
+
function popovervue_type_template_id_4199c610_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6345
7409
|
const _component_popover_header_footer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("popover-header-footer");
|
|
6346
7410
|
|
|
6347
7411
|
const _component_sr_only_close_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("sr-only-close-button");
|
|
@@ -6355,7 +7419,7 @@ function popovervue_type_template_id_ec7df6ce_render(_ctx, _cache, $props, $setu
|
|
|
6355
7419
|
class: "d-modal--transparent",
|
|
6356
7420
|
"aria-hidden": $props.modal && $data.isOpen ? 'false' : 'true',
|
|
6357
7421
|
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent", "stop"]))
|
|
6358
|
-
}, null, 8,
|
|
7422
|
+
}, null, 8, popovervue_type_template_id_4199c610_hoisted_1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.elementType), {
|
|
6359
7423
|
ref: "popover",
|
|
6360
7424
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-popover', {
|
|
6361
7425
|
'd-popover__anchor--opened': $data.isOpen
|
|
@@ -6388,7 +7452,7 @@ function popovervue_type_template_id_ec7df6ce_render(_ctx, _cache, $props, $setu
|
|
|
6388
7452
|
'aria-controls': $props.id,
|
|
6389
7453
|
'aria-haspopup': $props.role
|
|
6390
7454
|
}
|
|
6391
|
-
})], 40,
|
|
7455
|
+
})], 40, popovervue_type_template_id_4199c610_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_lazy_show, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
6392
7456
|
id: $props.id,
|
|
6393
7457
|
ref: "content",
|
|
6394
7458
|
role: $props.role,
|
|
@@ -6451,7 +7515,7 @@ function popovervue_type_template_id_ec7df6ce_render(_ctx, _cache, $props, $setu
|
|
|
6451
7515
|
_: 3
|
|
6452
7516
|
}, 8, ["class"]))]);
|
|
6453
7517
|
}
|
|
6454
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=
|
|
7518
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=4199c610
|
|
6455
7519
|
|
|
6456
7520
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
6457
7521
|
function getWindow(node) {
|
|
@@ -11012,6 +12076,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
|
11012
12076
|
const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
11013
12077
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
11014
12078
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
12079
|
+
const POPOVER_APPEND_TO_VALUES = ['parent'];
|
|
11015
12080
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
11016
12081
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
11017
12082
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover_header_footer.vue?vue&type=template&id=9190eade
|
|
@@ -11459,6 +12524,18 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11459
12524
|
openWithArrowKeys: {
|
|
11460
12525
|
type: Boolean,
|
|
11461
12526
|
default: false
|
|
12527
|
+
},
|
|
12528
|
+
|
|
12529
|
+
/**
|
|
12530
|
+
* Sets the element to which the popover is going to append to.
|
|
12531
|
+
* @values 'parent', HTMLElement,
|
|
12532
|
+
*/
|
|
12533
|
+
appendTo: {
|
|
12534
|
+
type: [HTMLElement, String],
|
|
12535
|
+
default: () => document.body,
|
|
12536
|
+
validator: appendTo => {
|
|
12537
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
12538
|
+
}
|
|
11462
12539
|
}
|
|
11463
12540
|
},
|
|
11464
12541
|
emits: [
|
|
@@ -11603,7 +12680,7 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11603
12680
|
placement: this.placement,
|
|
11604
12681
|
offset: this.offset,
|
|
11605
12682
|
sticky: this.sticky,
|
|
11606
|
-
appendTo:
|
|
12683
|
+
appendTo: this.appendTo,
|
|
11607
12684
|
interactive: true,
|
|
11608
12685
|
trigger: 'manual',
|
|
11609
12686
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -11855,9 +12932,9 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
11855
12932
|
});
|
|
11856
12933
|
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=script&lang=js
|
|
11857
12934
|
|
|
11858
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
11859
|
-
var
|
|
11860
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
12935
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=style&index=0&id=4199c610&lang=less
|
|
12936
|
+
var popovervue_type_style_index_0_id_4199c610_lang_less = __webpack_require__(597);
|
|
12937
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=4199c610&lang=less
|
|
11861
12938
|
|
|
11862
12939
|
;// CONCATENATED MODULE: ./components/popover/popover.vue
|
|
11863
12940
|
|
|
@@ -11867,7 +12944,7 @@ var popovervue_type_style_index_0_id_ec7df6ce_lang_less = __webpack_require__(23
|
|
|
11867
12944
|
;
|
|
11868
12945
|
|
|
11869
12946
|
|
|
11870
|
-
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',
|
|
12947
|
+
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',popovervue_type_template_id_4199c610_render]])
|
|
11871
12948
|
|
|
11872
12949
|
/* harmony default export */ const popover = (popover_exports_);
|
|
11873
12950
|
;// CONCATENATED MODULE: ./components/popover/index.js
|
|
@@ -16011,27 +17088,26 @@ const checkbox_group_exports_ = checkbox_groupvue_type_script_lang_js;
|
|
|
16011
17088
|
/* harmony default export */ const checkbox_group = (checkbox_group_exports_);
|
|
16012
17089
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
16013
17090
|
|
|
16014
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/chip/chip.vue?vue&type=template&id=
|
|
17091
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/chip/chip.vue?vue&type=template&id=f2b79d66
|
|
16015
17092
|
|
|
16016
|
-
const
|
|
16017
|
-
class: "d-chip"
|
|
16018
|
-
};
|
|
16019
|
-
const chipvue_type_template_id_af4b6988_hoisted_2 = {
|
|
17093
|
+
const chipvue_type_template_id_f2b79d66_hoisted_1 = {
|
|
16020
17094
|
key: 0,
|
|
16021
17095
|
"data-qa": "dt-chip-icon",
|
|
16022
17096
|
class: "d-chip__icon"
|
|
16023
17097
|
};
|
|
16024
|
-
const
|
|
17098
|
+
const chipvue_type_template_id_f2b79d66_hoisted_2 = {
|
|
16025
17099
|
key: 1,
|
|
16026
17100
|
"data-qa": "dt-chip-avatar"
|
|
16027
17101
|
};
|
|
16028
|
-
const
|
|
16029
|
-
function
|
|
17102
|
+
const chipvue_type_template_id_f2b79d66_hoisted_3 = ["id"];
|
|
17103
|
+
function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16030
17104
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
16031
17105
|
|
|
16032
17106
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
16033
17107
|
|
|
16034
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
17108
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
17109
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-chip', _ctx.parentClass])
|
|
17110
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.interactive ? 'button' : 'span'), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
16035
17111
|
id: $props.id,
|
|
16036
17112
|
type: $props.interactive && 'button',
|
|
16037
17113
|
class: $options.chipClasses(),
|
|
@@ -16039,12 +17115,12 @@ function chipvue_type_template_id_af4b6988_render(_ctx, _cache, $props, $setup,
|
|
|
16039
17115
|
"aria-labelledby": $props.ariaLabel ? undefined : `${$props.id}-content`,
|
|
16040
17116
|
"aria-label": $props.ariaLabel
|
|
16041
17117
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.chipListeners)), {
|
|
16042
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [_ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
17118
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [_ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_f2b79d66_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon")])) : _ctx.$slots.avatar ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_f2b79d66_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "avatar")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), _ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
16043
17119
|
key: 2,
|
|
16044
17120
|
id: `${$props.id}-content`,
|
|
16045
17121
|
"data-qa": "dt-chip-label",
|
|
16046
17122
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-truncate', 'd-chip__text', $props.contentClass])
|
|
16047
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10,
|
|
17123
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10, chipvue_type_template_id_f2b79d66_hoisted_3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
16048
17124
|
_: 3
|
|
16049
17125
|
}, 16, ["id", "type", "class", "aria-labelledby", "aria-label"])), !$props.hideClose ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
16050
17126
|
key: 0
|
|
@@ -16059,9 +17135,9 @@ function chipvue_type_template_id_af4b6988_render(_ctx, _cache, $props, $setup,
|
|
|
16059
17135
|
size: $options.closeButtonIconSize
|
|
16060
17136
|
}, null, 8, ["size"])]),
|
|
16061
17137
|
_: 1
|
|
16062
|
-
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
17138
|
+
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
|
|
16063
17139
|
}
|
|
16064
|
-
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=
|
|
17140
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=f2b79d66
|
|
16065
17141
|
|
|
16066
17142
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
16067
17143
|
const CHIP_SIZE_MODIFIERS = {
|
|
@@ -16101,7 +17177,6 @@ const CHIP_ICON_SIZES = {
|
|
|
16101
17177
|
DtButton: button_button,
|
|
16102
17178
|
DtIcon: icon
|
|
16103
17179
|
},
|
|
16104
|
-
inheritAttrs: false,
|
|
16105
17180
|
props: {
|
|
16106
17181
|
/**
|
|
16107
17182
|
* A set of props to be passed into the modal's close button. Requires an 'ariaLabel' property.
|
|
@@ -16172,6 +17247,14 @@ const CHIP_ICON_SIZES = {
|
|
|
16172
17247
|
contentClass: {
|
|
16173
17248
|
type: [String, Array, Object],
|
|
16174
17249
|
default: ''
|
|
17250
|
+
},
|
|
17251
|
+
|
|
17252
|
+
/**
|
|
17253
|
+
* Additional class name for the span element.
|
|
17254
|
+
*/
|
|
17255
|
+
labelClass: {
|
|
17256
|
+
type: [String, Array, Object],
|
|
17257
|
+
default: ''
|
|
16175
17258
|
}
|
|
16176
17259
|
},
|
|
16177
17260
|
emits: [
|
|
@@ -16227,7 +17310,7 @@ const CHIP_ICON_SIZES = {
|
|
|
16227
17310
|
},
|
|
16228
17311
|
methods: {
|
|
16229
17312
|
chipClasses() {
|
|
16230
|
-
return [this.$attrs['grouped-chip'] ? 'd-chip' : 'd-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
17313
|
+
return [this.$attrs['grouped-chip'] ? ['d-chip', ...this.labelClass] : 'd-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
16231
17314
|
},
|
|
16232
17315
|
|
|
16233
17316
|
chipCloseButtonClasses() {
|
|
@@ -16250,7 +17333,7 @@ const CHIP_ICON_SIZES = {
|
|
|
16250
17333
|
|
|
16251
17334
|
|
|
16252
17335
|
;
|
|
16253
|
-
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',
|
|
17336
|
+
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',chipvue_type_template_id_f2b79d66_render]])
|
|
16254
17337
|
|
|
16255
17338
|
/* harmony default export */ const chip = (chip_exports_);
|
|
16256
17339
|
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
@@ -17930,11 +19013,11 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
17930
19013
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
17931
19014
|
|
|
17932
19015
|
|
|
17933
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19016
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=35131c6d
|
|
17934
19017
|
|
|
17935
|
-
const
|
|
17936
|
-
const
|
|
17937
|
-
function
|
|
19018
|
+
const combobox_with_popovervue_type_template_id_35131c6d_hoisted_1 = ["id"];
|
|
19019
|
+
const combobox_with_popovervue_type_template_id_35131c6d_hoisted_2 = ["onMouseleave", "onFocusout"];
|
|
19020
|
+
function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17938
19021
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
17939
19022
|
|
|
17940
19023
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -17976,7 +19059,7 @@ function combobox_with_popovervue_type_template_id_303c5a24_render(_ctx, _cache,
|
|
|
17976
19059
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
17977
19060
|
inputProps: inputProps,
|
|
17978
19061
|
onInput: $options.handleDisplayList
|
|
17979
|
-
})], 40,
|
|
19062
|
+
})], 40, combobox_with_popovervue_type_template_id_35131c6d_hoisted_1)];
|
|
17980
19063
|
}),
|
|
17981
19064
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
17982
19065
|
let {
|
|
@@ -18024,7 +19107,7 @@ function combobox_with_popovervue_type_template_id_303c5a24_render(_ctx, _cache,
|
|
|
18024
19107
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
18025
19108
|
key: 2,
|
|
18026
19109
|
listProps: listProps
|
|
18027
|
-
})], 42,
|
|
19110
|
+
})], 42, combobox_with_popovervue_type_template_id_35131c6d_hoisted_2)]),
|
|
18028
19111
|
_: 2
|
|
18029
19112
|
}, [_ctx.$slots.header ? {
|
|
18030
19113
|
name: "headerContent",
|
|
@@ -18049,7 +19132,7 @@ function combobox_with_popovervue_type_template_id_303c5a24_render(_ctx, _cache,
|
|
|
18049
19132
|
_: 3
|
|
18050
19133
|
}, 16, ["loading", "label", "label-visible", "size", "description", "empty-list", "empty-state-message", "show-list", "on-beginning-of-list", "on-end-of-list", "list-id"]);
|
|
18051
19134
|
}
|
|
18052
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19135
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=35131c6d
|
|
18053
19136
|
|
|
18054
19137
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js
|
|
18055
19138
|
|
|
@@ -18377,7 +19460,7 @@ function combobox_with_popovervue_type_template_id_303c5a24_render(_ctx, _cache,
|
|
|
18377
19460
|
onFocusOut(e) {
|
|
18378
19461
|
const comboboxRefs = ['input', 'header', 'footer', 'listWrapper']; // Check if the focus change was to another target within the combobox component
|
|
18379
19462
|
|
|
18380
|
-
const isComboboxStillFocused = comboboxRefs.some(ref => {
|
|
19463
|
+
const isComboboxStillFocused = e.relatedTarget === null || comboboxRefs.some(ref => {
|
|
18381
19464
|
var _this$$refs$ref;
|
|
18382
19465
|
|
|
18383
19466
|
return (_this$$refs$ref = this.$refs[ref]) === null || _this$$refs$ref === void 0 ? void 0 : _this$$refs$ref.contains(e.relatedTarget);
|
|
@@ -18406,32 +19489,32 @@ function combobox_with_popovervue_type_template_id_303c5a24_render(_ctx, _cache,
|
|
|
18406
19489
|
|
|
18407
19490
|
|
|
18408
19491
|
;
|
|
18409
|
-
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',
|
|
19492
|
+
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',combobox_with_popovervue_type_template_id_35131c6d_render]])
|
|
18410
19493
|
|
|
18411
19494
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
18412
19495
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
18413
19496
|
|
|
18414
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=
|
|
19497
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=3b3f23a9
|
|
18415
19498
|
|
|
18416
|
-
const
|
|
19499
|
+
const combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_1 = {
|
|
18417
19500
|
ref: "inputSlotWrapper",
|
|
18418
|
-
class: "d-ps-relative"
|
|
19501
|
+
class: "d-ps-relative d-d-block"
|
|
18419
19502
|
};
|
|
18420
|
-
const
|
|
19503
|
+
const combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_2 = {
|
|
18421
19504
|
ref: "chipsWrapper",
|
|
18422
19505
|
class: "d-ps-absolute d-mx2"
|
|
18423
19506
|
};
|
|
18424
|
-
const
|
|
19507
|
+
const combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_3 = {
|
|
18425
19508
|
ref: "header"
|
|
18426
19509
|
};
|
|
18427
|
-
const
|
|
19510
|
+
const combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_4 = {
|
|
18428
19511
|
key: 1,
|
|
18429
19512
|
class: "d-ta-center d-py16"
|
|
18430
19513
|
};
|
|
18431
|
-
const
|
|
19514
|
+
const combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_5 = {
|
|
18432
19515
|
ref: "footer"
|
|
18433
19516
|
};
|
|
18434
|
-
function
|
|
19517
|
+
function combobox_multi_selectvue_type_template_id_3b3f23a9_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18435
19518
|
const _component_dt_chip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-chip");
|
|
18436
19519
|
|
|
18437
19520
|
const _component_dt_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-input");
|
|
@@ -18456,12 +19539,13 @@ function combobox_multi_selectvue_type_template_id_a5a3ecba_render(_ctx, _cache,
|
|
|
18456
19539
|
let {
|
|
18457
19540
|
onInput
|
|
18458
19541
|
} = _ref;
|
|
18459
|
-
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span",
|
|
19542
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($props.selectedItems, item => {
|
|
18460
19543
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_chip, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
18461
19544
|
ref_for: true,
|
|
18462
19545
|
ref: "chips",
|
|
18463
19546
|
key: item,
|
|
18464
|
-
class:
|
|
19547
|
+
"label-class": ['d-chip__label'],
|
|
19548
|
+
class: ['d-mt4', 'd-mx2', 'd-zi-base1'],
|
|
18465
19549
|
"close-button-props": {
|
|
18466
19550
|
ariaLabel: 'close'
|
|
18467
19551
|
},
|
|
@@ -18477,7 +19561,7 @@ function combobox_multi_selectvue_type_template_id_a5a3ecba_render(_ctx, _cache,
|
|
|
18477
19561
|
ref: "input",
|
|
18478
19562
|
modelValue: $data.value,
|
|
18479
19563
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => $data.value = $event),
|
|
18480
|
-
class: "d-fl-grow1
|
|
19564
|
+
class: "d-fl-grow1",
|
|
18481
19565
|
"aria-label": $props.label,
|
|
18482
19566
|
label: $props.labelVisible ? $props.label : '',
|
|
18483
19567
|
description: $props.description,
|
|
@@ -18497,19 +19581,19 @@ function combobox_multi_selectvue_type_template_id_a5a3ecba_render(_ctx, _cache,
|
|
|
18497
19581
|
onMousedown: _cache[1] || (_cache[1] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent"]))
|
|
18498
19582
|
}, [!$props.loading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
18499
19583
|
key: 0
|
|
18500
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
19584
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.loadingMessage), 1))], 544)]),
|
|
18501
19585
|
_: 2
|
|
18502
19586
|
}, [_ctx.$slots.header ? {
|
|
18503
19587
|
name: "header",
|
|
18504
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19588
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 512)]),
|
|
18505
19589
|
key: "0"
|
|
18506
19590
|
} : undefined, _ctx.$slots.footer ? {
|
|
18507
19591
|
name: "footer",
|
|
18508
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19592
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_multi_selectvue_type_template_id_3b3f23a9_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 512)]),
|
|
18509
19593
|
key: "1"
|
|
18510
19594
|
} : undefined]), 1032, ["label", "show-list", "max-height", "popover-offset", "has-suggestion-list", "visually-hidden-close-label", "visually-hidden-close", "onSelect"]);
|
|
18511
19595
|
}
|
|
18512
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=
|
|
19596
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=3b3f23a9
|
|
18513
19597
|
|
|
18514
19598
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
18515
19599
|
// The item list for default story
|
|
@@ -19088,7 +20172,7 @@ const MULTI_SELECT_SIZES = {
|
|
|
19088
20172
|
|
|
19089
20173
|
|
|
19090
20174
|
;
|
|
19091
|
-
const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_multi_selectvue_type_script_lang_js, [['render',
|
|
20175
|
+
const combobox_multi_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_multi_selectvue_type_script_lang_js, [['render',combobox_multi_selectvue_type_template_id_3b3f23a9_render]])
|
|
19092
20176
|
|
|
19093
20177
|
/* harmony default export */ const combobox_multi_select = (combobox_multi_select_exports_);
|
|
19094
20178
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/index.js
|