@dialpad/dialtone-vue 2.46.0 → 2.47.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 +1136 -48
- package/dist/dialtone-vue.umd.js +1136 -48
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/dist/emoji.common.js +7 -15
- package/dist/emoji.umd.js +7 -15
- package/dist/emoji.umd.min.js +1 -1
- package/package.json +22 -21
|
@@ -378,7 +378,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
378
378
|
|
|
379
379
|
var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
380
380
|
// Module
|
|
381
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".ivr_node__width{width:280px}", ""]);
|
|
381
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".ivr_node__width{width:280px}.ivr_node__goto_icon{transform:rotate(90deg)}", ""]);
|
|
382
382
|
// Exports
|
|
383
383
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
384
384
|
|
|
@@ -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
|
/***/ 627:
|
|
@@ -1066,6 +2072,13 @@ function applyToTag (styleElement, obj) {
|
|
|
1066
2072
|
}
|
|
1067
2073
|
|
|
1068
2074
|
|
|
2075
|
+
/***/ }),
|
|
2076
|
+
|
|
2077
|
+
/***/ 42:
|
|
2078
|
+
/***/ (() => {
|
|
2079
|
+
|
|
2080
|
+
/* (ignored) */
|
|
2081
|
+
|
|
1069
2082
|
/***/ })
|
|
1070
2083
|
|
|
1071
2084
|
/******/ });
|
|
@@ -1083,18 +2096,33 @@ function applyToTag (styleElement, obj) {
|
|
|
1083
2096
|
/******/ // Create a new module (and put it into the cache)
|
|
1084
2097
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1085
2098
|
/******/ id: moduleId,
|
|
1086
|
-
/******/
|
|
2099
|
+
/******/ loaded: false,
|
|
1087
2100
|
/******/ exports: {}
|
|
1088
2101
|
/******/ };
|
|
1089
2102
|
/******/
|
|
1090
2103
|
/******/ // Execute the module function
|
|
1091
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2104
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2105
|
+
/******/
|
|
2106
|
+
/******/ // Flag the module as loaded
|
|
2107
|
+
/******/ module.loaded = true;
|
|
1092
2108
|
/******/
|
|
1093
2109
|
/******/ // Return the exports of the module
|
|
1094
2110
|
/******/ return module.exports;
|
|
1095
2111
|
/******/ }
|
|
1096
2112
|
/******/
|
|
1097
2113
|
/************************************************************************/
|
|
2114
|
+
/******/ /* webpack/runtime/amd define */
|
|
2115
|
+
/******/ (() => {
|
|
2116
|
+
/******/ __webpack_require__.amdD = function () {
|
|
2117
|
+
/******/ throw new Error('define cannot be used indirect');
|
|
2118
|
+
/******/ };
|
|
2119
|
+
/******/ })();
|
|
2120
|
+
/******/
|
|
2121
|
+
/******/ /* webpack/runtime/amd options */
|
|
2122
|
+
/******/ (() => {
|
|
2123
|
+
/******/ __webpack_require__.amdO = {};
|
|
2124
|
+
/******/ })();
|
|
2125
|
+
/******/
|
|
1098
2126
|
/******/ /* webpack/runtime/compat get default export */
|
|
1099
2127
|
/******/ (() => {
|
|
1100
2128
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -1135,6 +2163,15 @@ function applyToTag (styleElement, obj) {
|
|
|
1135
2163
|
/******/ };
|
|
1136
2164
|
/******/ })();
|
|
1137
2165
|
/******/
|
|
2166
|
+
/******/ /* webpack/runtime/node module decorator */
|
|
2167
|
+
/******/ (() => {
|
|
2168
|
+
/******/ __webpack_require__.nmd = (module) => {
|
|
2169
|
+
/******/ module.paths = [];
|
|
2170
|
+
/******/ if (!module.children) module.children = [];
|
|
2171
|
+
/******/ return module;
|
|
2172
|
+
/******/ };
|
|
2173
|
+
/******/ })();
|
|
2174
|
+
/******/
|
|
1138
2175
|
/******/ /* webpack/runtime/publicPath */
|
|
1139
2176
|
/******/ (() => {
|
|
1140
2177
|
/******/ __webpack_require__.p = "";
|
|
@@ -1288,7 +2325,7 @@ if (typeof window !== 'undefined') {
|
|
|
1288
2325
|
// Indicate to webpack that this file can be concatenated
|
|
1289
2326
|
/* harmony default export */ const setPublicPath = (null);
|
|
1290
2327
|
|
|
1291
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=
|
|
2328
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=4839e656&
|
|
1292
2329
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
1293
2330
|
'd-avatar',
|
|
1294
2331
|
_vm.AVATAR_KIND_MODIFIERS[_vm.kind],
|
|
@@ -1373,6 +2410,9 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac
|
|
|
1373
2410
|
;// CONCATENATED MODULE: ./common/utils.js
|
|
1374
2411
|
|
|
1375
2412
|
|
|
2413
|
+
|
|
2414
|
+
const seedrandom = __webpack_require__(377);
|
|
2415
|
+
|
|
1376
2416
|
let UNIQUE_ID_COUNTER = 0; // selector to find focusable not hidden inputs
|
|
1377
2417
|
|
|
1378
2418
|
const FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)'; // selector to find focusable not disables elements
|
|
@@ -1389,12 +2429,15 @@ function getUniqueString() {
|
|
|
1389
2429
|
}
|
|
1390
2430
|
/**
|
|
1391
2431
|
* Returns a random element from array
|
|
1392
|
-
* @param array
|
|
1393
|
-
* @
|
|
2432
|
+
* @param array - the array to return a random element from
|
|
2433
|
+
* @param {string} seed - use a string to seed the randomization, so it returns the same element each time
|
|
2434
|
+
* based on that string.
|
|
2435
|
+
* @returns {*} - the random element
|
|
1394
2436
|
*/
|
|
1395
2437
|
|
|
1396
|
-
function getRandomElement(array) {
|
|
1397
|
-
|
|
2438
|
+
function getRandomElement(array, seed) {
|
|
2439
|
+
const rng = seedrandom(seed);
|
|
2440
|
+
return array[Math.floor(rng() * array.length)];
|
|
1398
2441
|
}
|
|
1399
2442
|
function formatMessages(messages) {
|
|
1400
2443
|
if (!messages) {
|
|
@@ -1714,6 +2757,9 @@ var component = normalizeComponent(
|
|
|
1714
2757
|
;// CONCATENATED MODULE: ./components/presence/index.js
|
|
1715
2758
|
|
|
1716
2759
|
|
|
2760
|
+
// EXTERNAL MODULE: ./node_modules/seedrandom/index.js
|
|
2761
|
+
var node_modules_seedrandom = __webpack_require__(377);
|
|
2762
|
+
var seedrandom_default = /*#__PURE__*/__webpack_require__.n(node_modules_seedrandom);
|
|
1717
2763
|
;// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
|
|
1718
2764
|
const AVATAR_KIND_MODIFIERS = {
|
|
1719
2765
|
default: '',
|
|
@@ -1786,6 +2832,7 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1786
2832
|
|
|
1787
2833
|
|
|
1788
2834
|
|
|
2835
|
+
|
|
1789
2836
|
/**
|
|
1790
2837
|
* An avatar is a visual representation of a user or object.
|
|
1791
2838
|
* @see https://dialpad.design/components/avatar.html
|
|
@@ -1810,6 +2857,15 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1810
2857
|
|
|
1811
2858
|
},
|
|
1812
2859
|
|
|
2860
|
+
/**
|
|
2861
|
+
* Pass in a seed to get the random color generation based on that string. For example if you pass in a
|
|
2862
|
+
* user ID as the string it will return the same randomly generated colors every time for that user.
|
|
2863
|
+
*/
|
|
2864
|
+
seed: {
|
|
2865
|
+
type: String,
|
|
2866
|
+
default: undefined
|
|
2867
|
+
},
|
|
2868
|
+
|
|
1813
2869
|
/**
|
|
1814
2870
|
* The size of the avatar
|
|
1815
2871
|
* @values xs, sm, md, lg, xl
|
|
@@ -1966,21 +3022,29 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1966
3022
|
},
|
|
1967
3023
|
|
|
1968
3024
|
randomizeGradientAngle() {
|
|
1969
|
-
return getRandomElement(AVATAR_ANGLES);
|
|
3025
|
+
return getRandomElement(AVATAR_ANGLES, this.seed);
|
|
1970
3026
|
},
|
|
1971
3027
|
|
|
1972
3028
|
randomizeGradientColorStops() {
|
|
1973
|
-
const colors = new Set();
|
|
3029
|
+
const colors = new Set();
|
|
3030
|
+
let count = 0; // get 3 unique colors, 2 from colorsWith100 and one from colorsWith200
|
|
1974
3031
|
|
|
1975
3032
|
while (colors.size < MAX_GRADIENT_COLORS) {
|
|
3033
|
+
// add count to the seed since we are looking for 3 unique colors. If the seed makes it always
|
|
3034
|
+
// return the same color we'll get an infinite loop.
|
|
3035
|
+
const seedForColor = this.seed === undefined ? undefined : this.seed + count.toString();
|
|
3036
|
+
|
|
1976
3037
|
if (colors.size === MAX_GRADIENT_COLORS_100) {
|
|
1977
|
-
colors.add(getRandomElement(GRADIENT_COLORS.with200));
|
|
3038
|
+
colors.add(getRandomElement(GRADIENT_COLORS.with200, seedForColor));
|
|
1978
3039
|
} else {
|
|
1979
|
-
colors.add(getRandomElement(GRADIENT_COLORS.with100));
|
|
3040
|
+
colors.add(getRandomElement(GRADIENT_COLORS.with100, seedForColor));
|
|
1980
3041
|
}
|
|
3042
|
+
|
|
3043
|
+
count++;
|
|
1981
3044
|
}
|
|
1982
3045
|
|
|
1983
|
-
const
|
|
3046
|
+
const rng = seedrandom_default()(this.seed);
|
|
3047
|
+
const shuffledColors = Array.from(colors).sort(() => 0.5 - rng());
|
|
1984
3048
|
return shuffledColors;
|
|
1985
3049
|
},
|
|
1986
3050
|
|
|
@@ -6935,8 +7999,8 @@ return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,attrs:{"id":_vm.listId,
|
|
|
6935
7999
|
var dropdownvue_type_template_id_1b8b46fc_staticRenderFns = []
|
|
6936
8000
|
|
|
6937
8001
|
|
|
6938
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=
|
|
6939
|
-
var
|
|
8002
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=7c55e742&
|
|
8003
|
+
var popovervue_type_template_id_7c55e742_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.modal && _vm.isOpen)?_c('portal',[_c('div',{staticClass:"d-modal--transparent",attrs:{"aria-hidden":_vm.modal && _vm.isOpen ? 'false' : 'true'},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}})]):_vm._e(),_c(_vm.elementType,_vm._g({ref:"popover",tag:"component",class:['d-popover', { 'd-popover__anchor--opened': _vm.isOpen }],attrs:{"data-qa":"dt-popover-container"}},_vm.$listeners),[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy,"data-qa":"dt-popover-anchor","tabindex":_vm.openOnContext ? 0 : undefined},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"contextmenu":_vm.onContext,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)}],"wheel":function (e) { return (_vm.isOpen && _vm.modal) && e.preventDefault(); },"!keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closePopover.apply(null, arguments)}}},[_vm._t("anchor",null,{"attrs":{
|
|
6940
8004
|
'aria-expanded': _vm.isOpen.toString(),
|
|
6941
8005
|
'aria-controls': _vm.id,
|
|
6942
8006
|
'aria-haspopup': _vm.role,
|
|
@@ -6947,7 +8011,7 @@ var popovervue_type_template_id_2ecb24a7_render = function () {var _vm=this;var
|
|
|
6947
8011
|
'd-popover__content',
|
|
6948
8012
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
6949
8013
|
_vm.contentClass ],attrs:{"data-qa":"dt-popover-content"}},[_vm._t("content",null,{"close":_vm.closePopover})],2),(_vm.$slots.footerContent)?_c('popover-header-footer',{ref:"popover__footer",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"type":"footer","content-class":_vm.footerClass},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("footerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel},on:{"close":_vm.closePopover}}):_vm._e()],1)],1)],1)}
|
|
6950
|
-
var
|
|
8014
|
+
var popovervue_type_template_id_7c55e742_staticRenderFns = []
|
|
6951
8015
|
|
|
6952
8016
|
|
|
6953
8017
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -11443,6 +12507,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
|
11443
12507
|
const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
11444
12508
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
11445
12509
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
12510
|
+
const POPOVER_APPEND_TO_VALUES = ['parent'];
|
|
11446
12511
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
11447
12512
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
11448
12513
|
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
@@ -12224,6 +13289,18 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
12224
13289
|
openWithArrowKeys: {
|
|
12225
13290
|
type: Boolean,
|
|
12226
13291
|
default: false
|
|
13292
|
+
},
|
|
13293
|
+
|
|
13294
|
+
/**
|
|
13295
|
+
* Sets the element to which the popover is going to append to.
|
|
13296
|
+
* @values 'parent', HTMLElement,
|
|
13297
|
+
*/
|
|
13298
|
+
appendTo: {
|
|
13299
|
+
type: [HTMLElement, String],
|
|
13300
|
+
default: () => document.body,
|
|
13301
|
+
validator: appendTo => {
|
|
13302
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
13303
|
+
}
|
|
12227
13304
|
}
|
|
12228
13305
|
},
|
|
12229
13306
|
emits: [
|
|
@@ -12364,7 +13441,7 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
12364
13441
|
placement: this.placement,
|
|
12365
13442
|
offset: this.offset,
|
|
12366
13443
|
sticky: this.sticky,
|
|
12367
|
-
appendTo:
|
|
13444
|
+
appendTo: this.appendTo,
|
|
12368
13445
|
interactive: true,
|
|
12369
13446
|
trigger: 'manual',
|
|
12370
13447
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -12621,8 +13698,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
|
|
|
12621
13698
|
|
|
12622
13699
|
var popover_component = normalizeComponent(
|
|
12623
13700
|
popover_popovervue_type_script_lang_js_,
|
|
12624
|
-
|
|
12625
|
-
|
|
13701
|
+
popovervue_type_template_id_7c55e742_render,
|
|
13702
|
+
popovervue_type_template_id_7c55e742_staticRenderFns,
|
|
12626
13703
|
false,
|
|
12627
13704
|
null,
|
|
12628
13705
|
null,
|
|
@@ -17151,9 +18228,9 @@ var checkbox_group_component = normalizeComponent(
|
|
|
17151
18228
|
/* harmony default export */ const checkbox_group = (checkbox_group_component.exports);
|
|
17152
18229
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
17153
18230
|
|
|
17154
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/chip/chip.vue?vue&type=template&id=
|
|
17155
|
-
var
|
|
17156
|
-
var
|
|
18231
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/chip/chip.vue?vue&type=template&id=128cc6e8&
|
|
18232
|
+
var chipvue_type_template_id_128cc6e8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:['d-chip', _vm.parentClass]},[_c(_vm.interactive ? 'button' : 'span',_vm._g({tag:"component",class:_vm.chipClasses(),attrs:{"id":_vm.id,"type":_vm.interactive && 'button',"data-qa":"dt-chip","aria-labelledby":_vm.ariaLabel ? undefined : (_vm.id + "-content"),"aria-label":_vm.ariaLabel}},_vm.chipListeners),[(_vm.$slots.icon)?_c('span',{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[_vm._t("icon")],2):(_vm.$slots.avatar)?_c('span',{attrs:{"data-qa":"dt-chip-avatar"}},[_vm._t("avatar")],2):_vm._e(),(_vm.$slots.default)?_c('span',{class:['d-truncate', 'd-chip__text', _vm.contentClass],attrs:{"id":(_vm.id + "-content"),"data-qa":"dt-chip-label"}},[_vm._t("default")],2):_vm._e()]),(!_vm.hideClose)?_c('dt-button',_vm._b({class:_vm.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":_vm.closeButtonProps.ariaLabel},on:{"click":function($event){return _vm.$emit('close')}},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{attrs:{"name":"close","size":_vm.closeButtonIconSize}})]},proxy:true}],null,false,1192647893)},'dt-button',_vm.closeButtonProps,false)):_vm._e()],1)}
|
|
18233
|
+
var chipvue_type_template_id_128cc6e8_staticRenderFns = []
|
|
17157
18234
|
|
|
17158
18235
|
|
|
17159
18236
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
@@ -17232,7 +18309,6 @@ const CHIP_ICON_SIZES = {
|
|
|
17232
18309
|
//
|
|
17233
18310
|
//
|
|
17234
18311
|
//
|
|
17235
|
-
//
|
|
17236
18312
|
|
|
17237
18313
|
|
|
17238
18314
|
|
|
@@ -17250,7 +18326,6 @@ const CHIP_ICON_SIZES = {
|
|
|
17250
18326
|
DtButton: button_button,
|
|
17251
18327
|
DtIcon: icon
|
|
17252
18328
|
},
|
|
17253
|
-
inheritAttrs: false,
|
|
17254
18329
|
props: {
|
|
17255
18330
|
/**
|
|
17256
18331
|
* A set of props to be passed into the modal's close button. Requires an 'ariaLabel' property.
|
|
@@ -17321,6 +18396,14 @@ const CHIP_ICON_SIZES = {
|
|
|
17321
18396
|
contentClass: {
|
|
17322
18397
|
type: [String, Array, Object],
|
|
17323
18398
|
default: ''
|
|
18399
|
+
},
|
|
18400
|
+
|
|
18401
|
+
/**
|
|
18402
|
+
* Additional class name for the span element.
|
|
18403
|
+
*/
|
|
18404
|
+
labelClass: {
|
|
18405
|
+
type: [String, Array, Object],
|
|
18406
|
+
default: ''
|
|
17324
18407
|
}
|
|
17325
18408
|
},
|
|
17326
18409
|
emits: [
|
|
@@ -17376,7 +18459,7 @@ const CHIP_ICON_SIZES = {
|
|
|
17376
18459
|
},
|
|
17377
18460
|
methods: {
|
|
17378
18461
|
chipClasses() {
|
|
17379
|
-
return [this.$attrs['grouped-chip'] ? 'd-chip' : 'd-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
18462
|
+
return [this.$attrs['grouped-chip'] ? ['d-chip', ...this.labelClass] : 'd-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
17380
18463
|
},
|
|
17381
18464
|
|
|
17382
18465
|
chipCloseButtonClasses() {
|
|
@@ -17403,8 +18486,8 @@ const CHIP_ICON_SIZES = {
|
|
|
17403
18486
|
;
|
|
17404
18487
|
var chip_component = normalizeComponent(
|
|
17405
18488
|
chip_chipvue_type_script_lang_js_,
|
|
17406
|
-
|
|
17407
|
-
|
|
18489
|
+
chipvue_type_template_id_128cc6e8_render,
|
|
18490
|
+
chipvue_type_template_id_128cc6e8_staticRenderFns,
|
|
17408
18491
|
false,
|
|
17409
18492
|
null,
|
|
17410
18493
|
null,
|
|
@@ -19287,15 +20370,15 @@ var root_layout_component = normalizeComponent(
|
|
|
19287
20370
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19288
20371
|
|
|
19289
20372
|
|
|
19290
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19291
|
-
var
|
|
20373
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=7d75f1f4&
|
|
20374
|
+
var combobox_with_popovervue_type_template_id_7d75f1f4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
19292
20375
|
var inputProps = ref.inputProps;
|
|
19293
20376
|
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"focusout":_vm.onFocusOut,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }return _vm.openOnArrowKeyPress($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }return _vm.openOnArrowKeyPress($event)}]}},[_vm._t("input",null,{"inputProps":inputProps,"onInput":_vm.handleDisplayList})],2)]}},{key:"list",fn:function(ref){
|
|
19294
20377
|
var opened = ref.opened;
|
|
19295
20378
|
var listProps = ref.listProps;
|
|
19296
20379
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
19297
20380
|
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header",on:{"focusout":_vm.onFocusOut}},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
|
|
19298
|
-
var
|
|
20381
|
+
var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
19299
20382
|
|
|
19300
20383
|
|
|
19301
20384
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
|
|
@@ -19730,7 +20813,7 @@ var combobox_with_popovervue_type_template_id_dea81786_staticRenderFns = []
|
|
|
19730
20813
|
onFocusOut(e) {
|
|
19731
20814
|
const comboboxRefs = ['input', 'header', 'footer', 'listWrapper']; // Check if the focus change was to another target within the combobox component
|
|
19732
20815
|
|
|
19733
|
-
const isComboboxStillFocused = comboboxRefs.some(ref => {
|
|
20816
|
+
const isComboboxStillFocused = e.relatedTarget === null || comboboxRefs.some(ref => {
|
|
19734
20817
|
var _this$$refs$ref;
|
|
19735
20818
|
|
|
19736
20819
|
return (_this$$refs$ref = this.$refs[ref]) === null || _this$$refs$ref === void 0 ? void 0 : _this$$refs$ref.contains(e.relatedTarget);
|
|
@@ -19763,8 +20846,8 @@ var combobox_with_popovervue_type_template_id_dea81786_staticRenderFns = []
|
|
|
19763
20846
|
;
|
|
19764
20847
|
var combobox_with_popover_component = normalizeComponent(
|
|
19765
20848
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
19766
|
-
|
|
19767
|
-
|
|
20849
|
+
combobox_with_popovervue_type_template_id_7d75f1f4_render,
|
|
20850
|
+
combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns,
|
|
19768
20851
|
false,
|
|
19769
20852
|
null,
|
|
19770
20853
|
null,
|
|
@@ -19775,11 +20858,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
19775
20858
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
19776
20859
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
19777
20860
|
|
|
19778
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=
|
|
19779
|
-
var
|
|
20861
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=97461302&
|
|
20862
|
+
var combobox_multi_selectvue_type_template_id_97461302_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"label":_vm.label,"show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
19780
20863
|
var onInput = ref.onInput;
|
|
19781
|
-
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,
|
|
19782
|
-
var
|
|
20864
|
+
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,class:['d-mt4', 'd-mx2', 'd-zi-base1'],attrs:{"label-class":['d-chip__label'],"close-button-props":{ ariaLabel: 'close' },"size":_vm.size},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.onChipRemove(item)},"close":function($event){return _vm.onChipRemove(item)}}},_vm.chipListeners),[_vm._v(" "+_vm._s(item)+" ")])}),1),_c('dt-input',_vm._g({ref:"input",staticClass:"d-fl-grow1",attrs:{"aria-label":_vm.label,"label":_vm.labelVisible ? _vm.label : '',"description":_vm.description,"placeholder":_vm.inputPlaceHolder,"show-messages":_vm.showInputMessages,"messages":_vm.inputMessages,"size":_vm.size},on:{"input":onInput},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}},_vm.inputListeners)),_c('dt-validation-messages',{attrs:{"validation-messages":_vm.maxSelectedMessage,"show-messages":_vm.showValidationMessages}})],1)]}},{key:"header",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"list",fn:function(){return [_c('div',{ref:"list",on:{"mousedown":function($event){$event.preventDefault();}}},[(!_vm.loading)?_vm._t("list"):_c('div',{staticClass:"d-ta-center d-py16"},[_vm._v(" "+_vm._s(_vm.loadingMessage)+" ")])],2)]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})}
|
|
20865
|
+
var combobox_multi_selectvue_type_template_id_97461302_staticRenderFns = []
|
|
19783
20866
|
|
|
19784
20867
|
|
|
19785
20868
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -19984,6 +21067,7 @@ const MULTI_SELECT_SIZES = {
|
|
|
19984
21067
|
//
|
|
19985
21068
|
//
|
|
19986
21069
|
//
|
|
21070
|
+
//
|
|
19987
21071
|
|
|
19988
21072
|
|
|
19989
21073
|
|
|
@@ -20461,8 +21545,8 @@ const MULTI_SELECT_SIZES = {
|
|
|
20461
21545
|
;
|
|
20462
21546
|
var combobox_multi_select_component = normalizeComponent(
|
|
20463
21547
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
20464
|
-
|
|
20465
|
-
|
|
21548
|
+
combobox_multi_selectvue_type_template_id_97461302_render,
|
|
21549
|
+
combobox_multi_selectvue_type_template_id_97461302_staticRenderFns,
|
|
20466
21550
|
false,
|
|
20467
21551
|
null,
|
|
20468
21552
|
null,
|
|
@@ -21239,8 +22323,8 @@ var top_banner_info_component = normalizeComponent(
|
|
|
21239
22323
|
;// CONCATENATED MODULE: ./recipes/notices/top_banner_info/index.js
|
|
21240
22324
|
|
|
21241
22325
|
|
|
21242
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/cards/ivr_node/ivr_node.vue?vue&type=template&id=
|
|
21243
|
-
var
|
|
22326
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/cards/ivr_node/ivr_node.vue?vue&type=template&id=5b6f101b&
|
|
22327
|
+
var ivr_nodevue_type_template_id_5b6f101b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._g({staticClass:"d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width"},_vm.$listeners),[(_vm.dtmfKey)?_c('div',{staticClass:"d-zi-base1 d-ai-center d-jc-center d-d-flex d-w24 d-h24 d-bar-circle d-bc-purple-600 d-bgc-purple-600 d-mbn12 d-fc-white d-fs-200",class:{ 'd-mbn16': _vm.isSelected },attrs:{"data-qa":"dt-top-connector-dtmf"}},[_vm._v(" "+_vm._s(_vm.dtmfKey)+" ")]):_c('div',{staticClass:"d-zi-base1 d-d-flex d-w8 d-h8 d-bar-circle d-bc-purple-600 d-bgc-purple-600 d-mbn4",class:{ 'd-mbn8': _vm.isSelected },attrs:{"data-qa":"dt-top-connector"}}),_c('dt-card',{attrs:{"content-class":"d-bt d-bc-black-300 d-px12 d-pt8 d-pb12","container-class":[
|
|
21244
22328
|
'd-w100p',
|
|
21245
22329
|
{ 'd-ba d-bar8 d-baw4': _vm.isSelected },
|
|
21246
22330
|
_vm.headerColor ],"header-class":[
|
|
@@ -21249,10 +22333,10 @@ var ivr_nodevue_type_template_id_90698860_render = function () {var _vm=this;var
|
|
|
21249
22333
|
'd-btw4',
|
|
21250
22334
|
'd-p0',
|
|
21251
22335
|
_vm.headerColor,
|
|
21252
|
-
{ 'd-btr4': !_vm.isSelected } ]},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('div',{staticClass:"d-d-flex d-ai-center"},[_c('dt-button',{attrs:{"aria-label":_vm.nodeType,"importance":"clear","data-qa":"dt-ivr-node-icon"},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{
|
|
22336
|
+
{ 'd-btr4': !_vm.isSelected } ]},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('div',{staticClass:"d-d-flex d-ai-center"},[_c('dt-button',{attrs:{"aria-label":_vm.nodeType,"importance":"clear","data-qa":"dt-ivr-node-icon"},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{class:['d-fc-black-900', { 'ivr_node__goto_icon': _vm.isGotoNode }],attrs:{"name":_vm.nodeIcon,"size":"200"}})]},proxy:true}])}),_c('p',{staticClass:"d-fs-200 d-fw-bold",attrs:{"data-qa":"ivr-node-label"}},[_vm._v(" "+_vm._s(_vm.nodeLabel)+" ")])],1),_c('dt-dropdown',{attrs:{"placement":"bottom","open":_vm.isOpen},on:{"update:open":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:"anchor",fn:function(){return [_c('dt-button',{attrs:{"importance":"clear","aria-label":_vm.menuButtonAriaLabel},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.openMenu.apply(null, arguments)}},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{staticClass:"d-fc-black-900",attrs:{"name":"more-vertical","size":"200"}})]},proxy:true}])})]},proxy:true},{key:"list",fn:function(ref){
|
|
21253
22337
|
var close = ref.close;
|
|
21254
22338
|
return [_c('div',{staticClass:"d-w164"},[_vm._t("menuItems",null,{"close":close})],2)]}}],null,true)})]},proxy:true},{key:"content",fn:function(){return [_vm._t("content")]},proxy:true}],null,true)})],1)}
|
|
21255
|
-
var
|
|
22339
|
+
var ivr_nodevue_type_template_id_5b6f101b_staticRenderFns = []
|
|
21256
22340
|
|
|
21257
22341
|
|
|
21258
22342
|
;// CONCATENATED MODULE: ./recipes/cards/ivr_node/ivr_node_constants.js
|
|
@@ -21268,9 +22352,9 @@ const IVR_NODE_ICON_TYPES = {
|
|
|
21268
22352
|
[IVR_NODE_PROMPT_MENU]: 'keypad',
|
|
21269
22353
|
[IVR_NODE_PROMPT_COLLECT]: 'dialer',
|
|
21270
22354
|
[IVR_NODE_PROMPT_PLAY]: 'volume-2',
|
|
21271
|
-
[IVR_NODE_EXPERT]: '
|
|
21272
|
-
[IVR_NODE_BRANCH]: '
|
|
21273
|
-
[IVR_NODE_GO_TO]: '
|
|
22355
|
+
[IVR_NODE_EXPERT]: 'expert-node',
|
|
22356
|
+
[IVR_NODE_BRANCH]: 'branch',
|
|
22357
|
+
[IVR_NODE_GO_TO]: 'call-merge',
|
|
21274
22358
|
[IVR_NODE_TRANSFER]: 'transfer',
|
|
21275
22359
|
[IVR_NODE_HANGUP]: 'phone-hang-up'
|
|
21276
22360
|
};
|
|
@@ -21486,6 +22570,10 @@ const IVR_NODE_COLOR_MAPPING = {
|
|
|
21486
22570
|
selected
|
|
21487
22571
|
} = IVR_NODE_COLOR_MAPPING[this.nodeType];
|
|
21488
22572
|
return this.isSelected ? selected : normal;
|
|
22573
|
+
},
|
|
22574
|
+
|
|
22575
|
+
isGotoNode() {
|
|
22576
|
+
return this.nodeType === IVR_NODE_GO_TO;
|
|
21489
22577
|
}
|
|
21490
22578
|
|
|
21491
22579
|
},
|
|
@@ -21513,8 +22601,8 @@ var ivr_nodevue_type_style_index_0_lang_less_ = __webpack_require__(212);
|
|
|
21513
22601
|
|
|
21514
22602
|
var ivr_node_component = normalizeComponent(
|
|
21515
22603
|
ivr_node_ivr_nodevue_type_script_lang_js_,
|
|
21516
|
-
|
|
21517
|
-
|
|
22604
|
+
ivr_nodevue_type_template_id_5b6f101b_render,
|
|
22605
|
+
ivr_nodevue_type_template_id_5b6f101b_staticRenderFns,
|
|
21518
22606
|
false,
|
|
21519
22607
|
null,
|
|
21520
22608
|
null,
|