@@ -3,7 +3,7 @@ import { createIframe } from "./elements/iframe";
33import { verificationUrl } from "./helpers/defaultConfig" ;
44import { loadingDiv } from "./helpers/elements" ;
55import { OrbaOneConfig } from "./helpers/types" ;
6-
6+ import { loader } from "./styles/templates" ;
77import { getSessionUrl , isValidConfig } from "./helpers/utils" ;
88
99function initializeVerification ( config : OrbaOneConfig , button : ReturnType < typeof createButton > ) : void {
@@ -24,104 +24,7 @@ function initializeVerification(config: OrbaOneConfig, button: ReturnType<typeof
2424 justify-content:center;
2525 background-color: rgba(255, 255, 255, 0.8);
2626 ">
27- <svg
28- style="width: 100px; margin: 0 auto"
29- viewBox="0 0 135 140"
30- xmlns="http://www.w3.org/2000/svg"
31- :height="height"
32- :fill="primaryColor"
33- >
34- <rect y="10" width="15" height="120" rx="6">
35- <animate
36- attributeName="height"
37- begin="0.5s"
38- dur="1s"
39- values="120;110;100;90;80;70;60;50;40;140;120"
40- calcMode="linear"
41- repeatCount="indefinite"
42- />
43- <animate
44- attributeName="y"
45- begin="0.5s"
46- dur="1s"
47- values="10;15;20;25;30;35;40;45;50;0;10"
48- calcMode="linear"
49- repeatCount="indefinite"
50- />
51- </rect>
52- <rect x="30" y="10" width="15" height="120" rx="6">
53- <animate
54- attributeName="height"
55- begin="0.25s"
56- dur="1s"
57- values="120;110;100;90;80;70;60;50;40;140;120"
58- calcMode="linear"
59- repeatCount="indefinite"
60- />
61- <animate
62- attributeName="y"
63- begin="0.25s"
64- dur="1s"
65- values="10;15;20;25;30;35;40;45;50;0;10"
66- calcMode="linear"
67- repeatCount="indefinite"
68- />
69- </rect>
70- <rect x="60" width="15" height="140" rx="6">
71- <animate
72- attributeName="height"
73- begin="0s"
74- dur="1s"
75- values="120;110;100;90;80;70;60;50;40;140;120"
76- calcMode="linear"
77- repeatCount="indefinite"
78- />
79- <animate
80- attributeName="y"
81- begin="0s"
82- dur="1s"
83- values="10;15;20;25;30;35;40;45;50;0;10"
84- calcMode="linear"
85- repeatCount="indefinite"
86- />
87- </rect>
88- <rect x="90" y="10" width="15" height="120" rx="6">
89- <animate
90- attributeName="height"
91- begin="0.25s"
92- dur="1s"
93- values="120;110;100;90;80;70;60;50;40;140;120"
94- calcMode="linear"
95- repeatCount="indefinite"
96- />
97- <animate
98- attributeName="y"
99- begin="0.25s"
100- dur="1s"
101- values="10;15;20;25;30;35;40;45;50;0;10"
102- calcMode="linear"
103- repeatCount="indefinite"
104- />
105- </rect>
106- <rect x="120" y="10" width="15" height="120" rx="6">
107- <animate
108- attributeName="height"
109- begin="0.5s"
110- dur="1s"
111- values="120;110;100;90;80;70;60;50;40;140;120"
112- calcMode="linear"
113- repeatCount="indefinite"
114- />
115- <animate
116- attributeName="y"
117- begin="0.5s"
118- dur="1s"
119- values="10;15;20;25;30;35;40;45;50;0;10"
120- calcMode="linear"
121- repeatCount="indefinite"
122- />
123- </rect>
124- </svg>
27+ ${ loader }
12528 </div>
12629 ` ;
12730
0 commit comments