@quoreadmin/ui 1.9.3 → 1.10.1
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/index.css +1 -1
- package/dist/index.js +46 -44
- package/dist/index10.js +2 -2
- package/dist/index100.js +20 -25
- package/dist/index101.js +34 -0
- package/dist/{index102.js → index103.js} +1 -1
- package/dist/index105.js +147 -2
- package/dist/index106.js +2 -37
- package/dist/index107.js +39 -0
- package/dist/{index108.js → index109.js} +2 -2
- package/dist/index11.js +2 -2
- package/dist/{index110.js → index111.js} +1 -1
- package/dist/{index112.js → index113.js} +3 -3
- package/dist/{index114.js → index115.js} +6 -6
- package/dist/{index116.js → index117.js} +1 -1
- package/dist/{index118.js → index119.js} +5 -5
- package/dist/index12.js +2 -2
- package/dist/index13.js +2 -2
- package/dist/index131.js +272 -0
- package/dist/index134.js +8 -249
- package/dist/{index132.js → index136.js} +1 -1
- package/dist/index138.js +257 -0
- package/dist/index14.js +2 -2
- package/dist/index141.js +36 -45
- package/dist/index143.js +17 -1169
- package/dist/index145.js +38 -267
- package/dist/index147.js +1125 -286
- package/dist/index149.js +278 -15
- package/dist/index15.js +2 -2
- package/dist/index151.js +316 -69
- package/dist/index153.js +24 -558
- package/dist/index155.js +103 -0
- package/dist/index157.js +565 -0
- package/dist/index16.js +2 -2
- package/dist/{index158.js → index162.js} +1 -1
- package/dist/index165.js +353 -174
- package/dist/{index163.js → index167.js} +1 -1
- package/dist/index169.js +195 -482
- package/dist/index17.js +2 -2
- package/dist/index172.js +105 -852
- package/dist/index173.js +493 -36
- package/dist/index174.js +5507 -265
- package/dist/index175.js +87 -146
- package/dist/index176.js +847 -1185
- package/dist/index177.js +35 -769
- package/dist/index178.js +270 -1298
- package/dist/index179.js +142 -268
- package/dist/index18.js +2 -2
- package/dist/index180.js +1185 -92
- package/dist/index181.js +772 -2
- package/dist/index182.js +1229 -1297
- package/dist/index183.js +278 -0
- package/dist/index184.js +105 -17
- package/dist/index185.js +2 -18
- package/dist/index186.js +1372 -14
- package/dist/index188.js +14 -21
- package/dist/index189.js +18 -759
- package/dist/index19.js +2 -2
- package/dist/index190.js +18 -1144
- package/dist/index191.js +16 -1232
- package/dist/index192.js +22 -11274
- package/dist/index193.js +759 -36
- package/dist/index194.js +1144 -44
- package/dist/index195.js +1117 -1111
- package/dist/index196.js +11279 -0
- package/dist/index197.js +36 -5938
- package/dist/index198.js +42 -205
- package/dist/index199.js +1218 -25
- package/dist/index2.js +2 -2
- package/dist/index20.js +2 -2
- package/dist/index201.js +5932 -72
- package/dist/index202.js +199 -245
- package/dist/index203.js +25 -13674
- package/dist/index204.js +17 -26
- package/dist/index205.js +76 -61
- package/dist/index206.js +239 -224
- package/dist/index207.js +13659 -286
- package/dist/index208.js +27 -295
- package/dist/index209.js +62 -32
- package/dist/index21.js +2 -2
- package/dist/index210.js +236 -114
- package/dist/index211.js +305 -30
- package/dist/index212.js +295 -26
- package/dist/index213.js +30 -33
- package/dist/index214.js +114 -49
- package/dist/index215.js +33 -40
- package/dist/index216.js +26 -4
- package/dist/index217.js +36 -9
- package/dist/index218.js +50 -18
- package/dist/index219.js +43 -10
- package/dist/index22.js +2 -2
- package/dist/index220.js +4 -10
- package/dist/index221.js +9 -39
- package/dist/index222.js +19 -21
- package/dist/index223.js +10 -88
- package/dist/index224.js +9 -406
- package/dist/index225.js +39 -22
- package/dist/index226.js +21 -161
- package/dist/index227.js +157 -224
- package/dist/index228.js +222 -31
- package/dist/index229.js +37 -10
- package/dist/index23.js +2 -2
- package/dist/index230.js +10 -127
- package/dist/index231.js +148 -25
- package/dist/index232.js +20 -80
- package/dist/index233.js +1 -1
- package/dist/index234.js +15 -13
- package/dist/index235.js +198 -19
- package/dist/index236.js +68 -18
- package/dist/index237.js +87 -19
- package/dist/index238.js +383 -137
- package/dist/index239.js +34 -20
- package/dist/index24.js +2 -2
- package/dist/index240.js +39 -21
- package/dist/index241.js +20 -197
- package/dist/index242.js +21 -69
- package/dist/index243.js +22 -34
- package/dist/index244.js +19 -39
- package/dist/index245.js +836 -22
- package/dist/index246.js +701 -21
- package/dist/index247.js +176 -20
- package/dist/index248.js +20 -836
- package/dist/index249.js +19 -701
- package/dist/index250.js +22 -176
- package/dist/index251.js +12 -14
- package/dist/index252.js +9 -9
- package/dist/index253.js +3 -20
- package/dist/index254.js +187 -3
- package/dist/index255.js +42 -96
- package/dist/index256.js +1160 -70
- package/dist/index257.js +101 -1197
- package/dist/index258.js +1 -1
- package/dist/index259.js +1 -1
- package/dist/index26.js +2 -2
- package/dist/index260.js +1 -1
- package/dist/index261.js +37 -28
- package/dist/index262.js +21 -12
- package/dist/index263.js +9 -9
- package/dist/index264.js +20 -2
- package/dist/index266.js +2 -3636
- package/dist/index267.js +3620 -39
- package/dist/index268.js +30 -52
- package/dist/index269.js +47 -22
- package/dist/index27.js +2 -2
- package/dist/index270.js +25 -188
- package/dist/index271.js +213 -8
- package/dist/index272.js +9 -56
- package/dist/index273.js +41 -45
- package/dist/index274.js +46 -39
- package/dist/index275.js +36 -57
- package/dist/index276.js +41 -692
- package/dist/index277.js +707 -23
- package/dist/index278.js +25 -47
- package/dist/index279.js +63 -10
- package/dist/index28.js +2 -2
- package/dist/index280.js +10 -704
- package/dist/index281.js +655 -770
- package/dist/index282.js +820 -3
- package/dist/index283.js +80 -27
- package/dist/index284.js +20 -253
- package/dist/index285.js +20 -8
- package/dist/index286.js +42 -126
- package/dist/index287.js +59 -63
- package/dist/index288.js +26 -2
- package/dist/index289.js +21 -78
- package/dist/index29.js +2 -2
- package/dist/index290.js +21 -53
- package/dist/index291.js +16 -26
- package/dist/index292.js +17 -22
- package/dist/index293.js +253 -22
- package/dist/index294.js +5 -13
- package/dist/index295.js +137 -16
- package/dist/index296.js +82 -22
- package/dist/index297.js +23 -1534
- package/dist/index298.js +3 -386
- package/dist/index299.js +23 -2727
- package/dist/index3.js +2 -2
- package/dist/index30.js +2 -2
- package/dist/index300.js +252 -76
- package/dist/index301.js +4 -3790
- package/dist/index302.js +135 -55
- package/dist/index303.js +71 -77
- package/dist/index304.js +86 -21
- package/dist/index305.js +26 -932
- package/dist/index306.js +14 -20
- package/dist/index307.js +74 -19
- package/dist/index308.js +3 -19
- package/dist/index309.js +2 -69
- package/dist/index31.js +3 -3
- package/dist/index310.js +82 -18
- package/dist/index311.js +53 -19
- package/dist/index312.js +5 -21
- package/dist/index313.js +4 -21
- package/dist/index314.js +178 -62
- package/dist/index315.js +62 -14
- package/dist/index316.js +75 -84
- package/dist/index317.js +1485 -153
- package/dist/index318.js +357 -217
- package/dist/index319.js +2714 -245
- package/dist/index32.js +2 -2
- package/dist/index320.js +84 -4
- package/dist/index321.js +3785 -133
- package/dist/index322.js +57 -70
- package/dist/index323.js +75 -83
- package/dist/index324.js +21 -28
- package/dist/index325.js +933 -14
- package/dist/index326.js +21 -74
- package/dist/index327.js +19 -3
- package/dist/index328.js +20 -2
- package/dist/index329.js +66 -80
- package/dist/index33.js +2 -2
- package/dist/index330.js +19 -53
- package/dist/index331.js +19 -6
- package/dist/index332.js +21 -4
- package/dist/index333.js +21 -178
- package/dist/index334.js +62 -62
- package/dist/index335.js +2 -75
- package/dist/index336.js +15 -9
- package/dist/index337.js +83 -12
- package/dist/index338.js +197 -50
- package/dist/index339.js +243 -9
- package/dist/index34.js +2 -2
- package/dist/index340.js +35 -12
- package/dist/index341.js +8 -57
- package/dist/index342.js +12 -51
- package/dist/index343.js +49 -25
- package/dist/index344.js +12 -2
- package/dist/index345.js +14 -5
- package/dist/index346.js +58 -2
- package/dist/index347.js +52 -23
- package/dist/index348.js +28 -38
- package/dist/index349.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index350.js +4 -10
- package/dist/index351.js +2 -20
- package/dist/index352.js +22 -9
- package/dist/index353.js +40 -9
- package/dist/index354.js +2 -17
- package/dist/index355.js +11 -2
- package/dist/index356.js +20 -9
- package/dist/index357.js +10 -10
- package/dist/index358.js +9 -13
- package/dist/index359.js +16 -36
- package/dist/index36.js +2 -2
- package/dist/index360.js +2 -20
- package/dist/index361.js +9 -20
- package/dist/index362.js +9 -63
- package/dist/index363.js +14 -37
- package/dist/index364.js +1 -1
- package/dist/index365.js +1 -1
- package/dist/index366.js +5 -5
- package/dist/index368.js +2 -2
- package/dist/index37.js +2 -2
- package/dist/index370.js +2 -2
- package/dist/index372.js +1 -1
- package/dist/index374.js +4 -4
- package/dist/index375.js +3 -3
- package/dist/index376.js +19 -100
- package/dist/index377.js +19 -90
- package/dist/index378.js +63 -16
- package/dist/index379.js +36 -97
- package/dist/index38.js +5 -16
- package/dist/index380.js +1 -1
- package/dist/index381.js +3 -3
- package/dist/index384.js +3 -3
- package/dist/index386.js +1 -1
- package/dist/index388.js +3 -3
- package/dist/index389.js +5 -5
- package/dist/index39.js +15 -43
- package/dist/index390.js +3 -3
- package/dist/index392.js +17 -3
- package/dist/index393.js +101 -2
- package/dist/index394.js +91 -2
- package/dist/index395.js +98 -17
- package/dist/index396.js +3 -13
- package/dist/index397.js +2 -6
- package/dist/index398.js +2 -32
- package/dist/index399.js +19 -0
- package/dist/index4.js +2 -2
- package/dist/index40.js +42 -67
- package/dist/index400.js +15 -0
- package/dist/index401.js +8 -0
- package/dist/index402.js +34 -0
- package/dist/index41.js +66 -26
- package/dist/index42.js +25 -32
- package/dist/index43.js +32 -37
- package/dist/index44.js +37 -1389
- package/dist/index45.js +1362 -344
- package/dist/index46.js +364 -145
- package/dist/index47.js +155 -18
- package/dist/index48.js +16 -42
- package/dist/index49.js +45 -5
- package/dist/index5.js +2 -2
- package/dist/index50.js +5 -69
- package/dist/index51.js +67 -61
- package/dist/index52.js +57 -175
- package/dist/index53.js +173 -77
- package/dist/index54.js +79 -200
- package/dist/index55.js +206 -68
- package/dist/index56.js +69 -20
- package/dist/index57.js +20 -11
- package/dist/index58.js +10 -6
- package/dist/index59.js +5 -209
- package/dist/index6.js +2 -2
- package/dist/index60.js +210 -12
- package/dist/index61.js +12 -184
- package/dist/index62.js +176 -68
- package/dist/index63.js +79 -0
- package/dist/index65.js +7 -91
- package/dist/index66.js +93 -0
- package/dist/index7.js +2 -2
- package/dist/{index73.js → index74.js} +2 -2
- package/dist/index78.js +40 -308
- package/dist/index79.js +330 -0
- package/dist/index8.js +3 -3
- package/dist/{index82.js → index83.js} +5 -5
- package/dist/{index84.js → index85.js} +1 -1
- package/dist/index87.js +23 -131
- package/dist/index88.js +144 -0
- package/dist/index9.js +2 -2
- package/dist/{index89.js → index90.js} +5 -5
- package/dist/{index91.js → index92.js} +5 -5
- package/dist/{index97.js → index98.js} +5 -5
- package/dist/src/components/page-layout/page-layout.vue.d.ts +89 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +2087 -0
- package/dist/src/components/time-picker/time-picker.vue.d.ts +23 -7
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index104.js +0 -149
- package/dist/index130.js +0 -16
- package/dist/index137.js +0 -56
- package/dist/index139.js +0 -37
- package/dist/index161.js +0 -389
- package/dist/index168.js +0 -116
- package/dist/index170.js +0 -5524
- package/dist/index171.js +0 -93
- package/dist/index187.js +0 -20
- package/dist/index200.js +0 -20
- package/dist/index64.js +0 -9
- package/dist/index77.js +0 -62
- package/dist/index86.js +0 -36
- package/dist/index99.js +0 -29
- /package/dist/{index120.js → index121.js} +0 -0
- /package/dist/{index122.js → index123.js} +0 -0
- /package/dist/{index124.js → index125.js} +0 -0
- /package/dist/{index126.js → index127.js} +0 -0
- /package/dist/{index128.js → index129.js} +0 -0
- /package/dist/{index156.js → index160.js} +0 -0
- /package/dist/{index67.js → index68.js} +0 -0
- /package/dist/{index69.js → index70.js} +0 -0
- /package/dist/{index71.js → index72.js} +0 -0
- /package/dist/{index75.js → index76.js} +0 -0
- /package/dist/{index80.js → index81.js} +0 -0
- /package/dist/{index93.js → index94.js} +0 -0
- /package/dist/{index95.js → index96.js} +0 -0
package/dist/index178.js
CHANGED
|
@@ -1,1310 +1,282 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { inertia as mt } from "./index214.js";
|
|
8
|
-
import { animate as bt } from "./index215.js";
|
|
9
|
-
import { velocityPerSecond as ht } from "./index216.js";
|
|
10
|
-
import { number as vt, alpha as C, scale as j } from "./index217.js";
|
|
11
|
-
import { filter as P } from "./index218.js";
|
|
12
|
-
import { px as c, progressPercentage as F, degrees as O } from "./index219.js";
|
|
13
|
-
import { color as b } from "./index220.js";
|
|
14
|
-
import { cubicBezier as gt } from "./index221.js";
|
|
15
|
-
import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./index222.js";
|
|
16
|
-
const R = {};
|
|
17
|
-
class Mt {
|
|
18
|
-
subscriptions = /* @__PURE__ */ new Set();
|
|
19
|
-
add(e) {
|
|
20
|
-
return this.subscriptions.add(e), () => this.subscriptions.delete(e);
|
|
21
|
-
}
|
|
22
|
-
notify(e, i, r) {
|
|
23
|
-
if (this.subscriptions.size)
|
|
24
|
-
for (const n of this.subscriptions) n(e, i, r);
|
|
25
|
-
}
|
|
26
|
-
clear() {
|
|
27
|
-
this.subscriptions.clear();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function z(t) {
|
|
31
|
-
return !Number.isNaN(Number.parseFloat(t));
|
|
32
|
-
}
|
|
33
|
-
class Lt {
|
|
34
|
-
/**
|
|
35
|
-
* The current state of the `MotionValue`.
|
|
36
|
-
*/
|
|
37
|
-
current;
|
|
38
|
-
/**
|
|
39
|
-
* The previous state of the `MotionValue`.
|
|
40
|
-
*/
|
|
41
|
-
prev;
|
|
42
|
-
/**
|
|
43
|
-
* Duration, in milliseconds, since last updating frame.
|
|
44
|
-
*/
|
|
45
|
-
timeDelta = 0;
|
|
46
|
-
/**
|
|
47
|
-
* Timestamp of the last time this `MotionValue` was updated.
|
|
48
|
-
*/
|
|
49
|
-
lastUpdated = 0;
|
|
50
|
-
/**
|
|
51
|
-
* Functions to notify when the `MotionValue` updates.
|
|
52
|
-
*/
|
|
53
|
-
updateSubscribers = new Mt();
|
|
54
|
-
/**
|
|
55
|
-
* A reference to the currently-controlling Popmotion animation
|
|
56
|
-
*/
|
|
57
|
-
stopAnimation;
|
|
58
|
-
/**
|
|
59
|
-
* Tracks whether this value can output a velocity.
|
|
60
|
-
*/
|
|
61
|
-
canTrackVelocity = !1;
|
|
62
|
-
/**
|
|
63
|
-
* init - The initiating value
|
|
64
|
-
* config - Optional configuration options
|
|
65
|
-
*/
|
|
66
|
-
constructor(e) {
|
|
67
|
-
this.prev = this.current = e, this.canTrackVelocity = z(this.current);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Adds a function that will be notified when the `MotionValue` is updated.
|
|
71
|
-
*
|
|
72
|
-
* It returns a function that, when called, will cancel the subscription.
|
|
73
|
-
*/
|
|
74
|
-
onChange(e) {
|
|
75
|
-
return this.updateSubscribers.add(e);
|
|
76
|
-
}
|
|
77
|
-
clearListeners() {
|
|
78
|
-
this.updateSubscribers.clear();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Sets the state of the `MotionValue`.
|
|
82
|
-
*
|
|
83
|
-
* @param v
|
|
84
|
-
* @param render
|
|
85
|
-
*/
|
|
86
|
-
set(e) {
|
|
87
|
-
this.updateAndNotify(e);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Update and notify `MotionValue` subscribers.
|
|
91
|
-
*
|
|
92
|
-
* @param v
|
|
93
|
-
* @param render
|
|
94
|
-
*/
|
|
95
|
-
updateAndNotify = (e) => {
|
|
96
|
-
this.prev = this.current, this.current = e;
|
|
97
|
-
const { delta: i, timestamp: r } = dt();
|
|
98
|
-
this.lastUpdated !== r && (this.timeDelta = i, this.lastUpdated = r), D.postRender(this.scheduleVelocityCheck), this.updateSubscribers.notify(this.current);
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Returns the latest state of `MotionValue`
|
|
102
|
-
*
|
|
103
|
-
* @returns - The latest state of `MotionValue`
|
|
104
|
-
*/
|
|
105
|
-
get() {
|
|
106
|
-
return this.current;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Get previous value.
|
|
110
|
-
*
|
|
111
|
-
* @returns - The previous latest state of `MotionValue`
|
|
112
|
-
*/
|
|
113
|
-
getPrevious() {
|
|
114
|
-
return this.prev;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Returns the latest velocity of `MotionValue`
|
|
118
|
-
*
|
|
119
|
-
* @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
|
|
120
|
-
*/
|
|
121
|
-
getVelocity() {
|
|
122
|
-
return this.canTrackVelocity ? ht(Number.parseFloat(this.current) - Number.parseFloat(this.prev), this.timeDelta) : 0;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Schedule a velocity check for the next frame.
|
|
126
|
-
*/
|
|
127
|
-
scheduleVelocityCheck = () => D.postRender(this.velocityCheck);
|
|
128
|
-
/**
|
|
129
|
-
* Updates `prev` with `current` if the value hasn't been updated this frame.
|
|
130
|
-
* This ensures velocity calculations return `0`.
|
|
131
|
-
*/
|
|
132
|
-
velocityCheck = ({ timestamp: e }) => {
|
|
133
|
-
this.canTrackVelocity || (this.canTrackVelocity = z(this.current)), e !== this.lastUpdated && (this.prev = this.current);
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Registers a new animation to control this `MotionValue`. Only one
|
|
137
|
-
* animation can drive a `MotionValue` at one time.
|
|
138
|
-
*/
|
|
139
|
-
start(e) {
|
|
140
|
-
return this.stop(), new Promise((i) => {
|
|
141
|
-
const { stop: r } = e(i);
|
|
142
|
-
this.stopAnimation = r;
|
|
143
|
-
}).then(() => this.clearAnimation());
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Stop the currently active animation.
|
|
147
|
-
*/
|
|
148
|
-
stop() {
|
|
149
|
-
this.stopAnimation && this.stopAnimation(), this.clearAnimation();
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Returns `true` if this value is currently animating.
|
|
153
|
-
*/
|
|
154
|
-
isAnimating() {
|
|
155
|
-
return !!this.stopAnimation;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Clear the current animation reference.
|
|
159
|
-
*/
|
|
160
|
-
clearAnimation() {
|
|
161
|
-
this.stopAnimation = null;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Destroy and clean up subscribers to this `MotionValue`.
|
|
165
|
-
*/
|
|
166
|
-
destroy() {
|
|
167
|
-
this.updateSubscribers.clear(), this.stop();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
function kt(t) {
|
|
171
|
-
return new Lt(t);
|
|
172
|
-
}
|
|
173
|
-
const { isArray: qt } = Array;
|
|
174
|
-
function Bt() {
|
|
175
|
-
const t = g({}), e = (r) => {
|
|
176
|
-
const n = (o) => {
|
|
177
|
-
t.value[o] && (t.value[o].stop(), t.value[o].destroy(), delete t.value[o]);
|
|
178
|
-
};
|
|
179
|
-
r ? qt(r) ? r.forEach(n) : n(r) : Object.keys(t.value).forEach(n);
|
|
180
|
-
}, i = (r, n, o) => {
|
|
181
|
-
if (t.value[r])
|
|
182
|
-
return t.value[r];
|
|
183
|
-
const s = kt(n);
|
|
184
|
-
return s.onChange((a) => o[r] = a), t.value[r] = s, s;
|
|
185
|
-
};
|
|
186
|
-
return pt(e), {
|
|
187
|
-
motionValues: t,
|
|
188
|
-
get: i,
|
|
189
|
-
stop: e
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
function Dt(t) {
|
|
193
|
-
return Array.isArray(t);
|
|
194
|
-
}
|
|
195
|
-
function T() {
|
|
196
|
-
return {
|
|
197
|
-
type: "spring",
|
|
198
|
-
stiffness: 500,
|
|
199
|
-
damping: 25,
|
|
200
|
-
restDelta: 0.5,
|
|
201
|
-
restSpeed: 10
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function E(t) {
|
|
205
|
-
return {
|
|
206
|
-
type: "spring",
|
|
207
|
-
stiffness: 550,
|
|
208
|
-
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
209
|
-
restDelta: 0.01,
|
|
210
|
-
restSpeed: 10
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
function Ft(t) {
|
|
214
|
-
return {
|
|
215
|
-
type: "spring",
|
|
216
|
-
stiffness: 550,
|
|
217
|
-
damping: t === 0 ? 100 : 30,
|
|
218
|
-
restDelta: 0.01,
|
|
219
|
-
restSpeed: 10
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
function N() {
|
|
223
|
-
return {
|
|
224
|
-
type: "keyframes",
|
|
225
|
-
ease: "linear",
|
|
226
|
-
duration: 300
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
function zt(t) {
|
|
230
|
-
return {
|
|
231
|
-
type: "keyframes",
|
|
232
|
-
duration: 800,
|
|
233
|
-
values: t
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
const I = {
|
|
237
|
-
default: Ft,
|
|
238
|
-
x: T,
|
|
239
|
-
y: T,
|
|
240
|
-
z: T,
|
|
241
|
-
rotate: T,
|
|
242
|
-
rotateX: T,
|
|
243
|
-
rotateY: T,
|
|
244
|
-
rotateZ: T,
|
|
245
|
-
scaleX: E,
|
|
246
|
-
scaleY: E,
|
|
247
|
-
scale: E,
|
|
248
|
-
backgroundColor: N,
|
|
249
|
-
color: N,
|
|
250
|
-
opacity: N
|
|
251
|
-
};
|
|
252
|
-
function G(t, e) {
|
|
253
|
-
let i;
|
|
254
|
-
return Dt(e) ? i = zt : i = I[t] || I.default, { to: e, ...i(e) };
|
|
255
|
-
}
|
|
256
|
-
const U = {
|
|
257
|
-
...vt,
|
|
258
|
-
transform: Math.round
|
|
259
|
-
}, J = {
|
|
260
|
-
// Color props
|
|
261
|
-
color: b,
|
|
262
|
-
backgroundColor: b,
|
|
263
|
-
outlineColor: b,
|
|
264
|
-
fill: b,
|
|
265
|
-
stroke: b,
|
|
266
|
-
// Border props
|
|
267
|
-
borderColor: b,
|
|
268
|
-
borderTopColor: b,
|
|
269
|
-
borderRightColor: b,
|
|
270
|
-
borderBottomColor: b,
|
|
271
|
-
borderLeftColor: b,
|
|
272
|
-
borderWidth: c,
|
|
273
|
-
borderTopWidth: c,
|
|
274
|
-
borderRightWidth: c,
|
|
275
|
-
borderBottomWidth: c,
|
|
276
|
-
borderLeftWidth: c,
|
|
277
|
-
borderRadius: c,
|
|
278
|
-
radius: c,
|
|
279
|
-
borderTopLeftRadius: c,
|
|
280
|
-
borderTopRightRadius: c,
|
|
281
|
-
borderBottomRightRadius: c,
|
|
282
|
-
borderBottomLeftRadius: c,
|
|
283
|
-
// Positioning props
|
|
284
|
-
width: c,
|
|
285
|
-
maxWidth: c,
|
|
286
|
-
height: c,
|
|
287
|
-
maxHeight: c,
|
|
288
|
-
size: c,
|
|
289
|
-
top: c,
|
|
290
|
-
right: c,
|
|
291
|
-
bottom: c,
|
|
292
|
-
left: c,
|
|
293
|
-
// Spacing props
|
|
294
|
-
padding: c,
|
|
295
|
-
paddingTop: c,
|
|
296
|
-
paddingRight: c,
|
|
297
|
-
paddingBottom: c,
|
|
298
|
-
paddingLeft: c,
|
|
299
|
-
margin: c,
|
|
300
|
-
marginTop: c,
|
|
301
|
-
marginRight: c,
|
|
302
|
-
marginBottom: c,
|
|
303
|
-
marginLeft: c,
|
|
304
|
-
// Transform props
|
|
305
|
-
rotate: O,
|
|
306
|
-
rotateX: O,
|
|
307
|
-
rotateY: O,
|
|
308
|
-
rotateZ: O,
|
|
309
|
-
scale: j,
|
|
310
|
-
scaleX: j,
|
|
311
|
-
scaleY: j,
|
|
312
|
-
scaleZ: j,
|
|
313
|
-
skew: O,
|
|
314
|
-
skewX: O,
|
|
315
|
-
skewY: O,
|
|
316
|
-
distance: c,
|
|
317
|
-
translateX: c,
|
|
318
|
-
translateY: c,
|
|
319
|
-
translateZ: c,
|
|
320
|
-
x: c,
|
|
321
|
-
y: c,
|
|
322
|
-
z: c,
|
|
323
|
-
perspective: c,
|
|
324
|
-
transformPerspective: c,
|
|
325
|
-
opacity: C,
|
|
326
|
-
originX: F,
|
|
327
|
-
originY: F,
|
|
328
|
-
originZ: c,
|
|
329
|
-
// Misc
|
|
330
|
-
zIndex: U,
|
|
331
|
-
filter: P,
|
|
332
|
-
WebkitFilter: P,
|
|
333
|
-
// SVG
|
|
334
|
-
fillOpacity: C,
|
|
335
|
-
strokeOpacity: C,
|
|
336
|
-
numOctaves: U
|
|
337
|
-
}, M = (t) => J[t];
|
|
338
|
-
function _(t, e) {
|
|
339
|
-
return e && typeof t == "number" && e.transform ? e.transform(t) : t;
|
|
340
|
-
}
|
|
341
|
-
function It(t, e) {
|
|
342
|
-
let i = M(t);
|
|
343
|
-
return i !== P && (i = $), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
|
|
344
|
-
}
|
|
345
|
-
const Ut = {
|
|
346
|
-
linear: Rt,
|
|
347
|
-
easeIn: wt,
|
|
348
|
-
easeInOut: _t,
|
|
349
|
-
easeOut: Pt,
|
|
350
|
-
circIn: Nt,
|
|
351
|
-
circInOut: Et,
|
|
352
|
-
circOut: Ct,
|
|
353
|
-
backIn: St,
|
|
354
|
-
backInOut: Vt,
|
|
355
|
-
backOut: jt,
|
|
356
|
-
anticipate: xt,
|
|
357
|
-
bounceIn: At,
|
|
358
|
-
bounceInOut: Tt,
|
|
359
|
-
bounceOut: Ot
|
|
360
|
-
};
|
|
361
|
-
function W(t) {
|
|
362
|
-
if (Array.isArray(t)) {
|
|
363
|
-
const [e, i, r, n] = t;
|
|
364
|
-
return gt(e, i, r, n);
|
|
365
|
-
} else if (typeof t == "string")
|
|
366
|
-
return Ut[t];
|
|
367
|
-
return t;
|
|
368
|
-
}
|
|
369
|
-
function Wt(t) {
|
|
370
|
-
return Array.isArray(t) && typeof t[0] != "number";
|
|
371
|
-
}
|
|
372
|
-
function X(t, e) {
|
|
373
|
-
return t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && $.test(e) && !e.startsWith("url("));
|
|
374
|
-
}
|
|
375
|
-
function Xt(t) {
|
|
376
|
-
return Array.isArray(t.to) && t.to[0] === null && (t.to = [...t.to], t.to[0] = t.from), t;
|
|
377
|
-
}
|
|
378
|
-
function Yt({ ease: t, times: e, delay: i, ...r }) {
|
|
379
|
-
const n = { ...r };
|
|
380
|
-
return e && (n.offset = e), t && (n.ease = Wt(t) ? t.map(W) : W(t)), i && (n.elapsed = -i), n;
|
|
381
|
-
}
|
|
382
|
-
function Zt(t, e, i) {
|
|
383
|
-
return Array.isArray(e.to) && (t.duration || (t.duration = 800)), Xt(e), Ht(t) || (t = {
|
|
384
|
-
...t,
|
|
385
|
-
...G(i, e.to)
|
|
386
|
-
}), {
|
|
387
|
-
...e,
|
|
388
|
-
...Yt(t)
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
function Ht({ delay: t, repeat: e, repeatType: i, repeatDelay: r, from: n, ...o }) {
|
|
392
|
-
return !!Object.keys(o).length;
|
|
393
|
-
}
|
|
394
|
-
function Kt(t, e) {
|
|
395
|
-
return t[e] || t.default || t;
|
|
396
|
-
}
|
|
397
|
-
function $t(t, e, i, r, n) {
|
|
398
|
-
const o = Kt(r, t);
|
|
399
|
-
let s = o.from === null || o.from === void 0 ? e.get() : o.from;
|
|
400
|
-
const a = X(t, i);
|
|
401
|
-
s === "none" && a && typeof i == "string" && (s = It(t, i));
|
|
402
|
-
const l = X(t, s);
|
|
403
|
-
function p(f) {
|
|
404
|
-
const y = {
|
|
405
|
-
from: s,
|
|
406
|
-
to: i,
|
|
407
|
-
velocity: r.velocity ? r.velocity : e.getVelocity(),
|
|
408
|
-
onUpdate: (d) => e.set(d)
|
|
409
|
-
};
|
|
410
|
-
return o.type === "inertia" || o.type === "decay" ? mt({ ...y, ...o }) : bt({
|
|
411
|
-
...Zt(o, y, t),
|
|
412
|
-
onUpdate: (d) => {
|
|
413
|
-
y.onUpdate(d), o.onUpdate && o.onUpdate(d);
|
|
1
|
+
const i = {
|
|
2
|
+
content: ({ parent: o, props: t }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
"flex",
|
|
5
|
+
{
|
|
6
|
+
"flex-col": t.fullScreen
|
|
414
7
|
},
|
|
415
|
-
|
|
416
|
-
|
|
8
|
+
{
|
|
9
|
+
"flex-col": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom",
|
|
10
|
+
"flex-row": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
|
|
417
11
|
}
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
} };
|
|
437
|
-
}
|
|
438
|
-
function Jt(t, e = {}, { motionValues: i, push: r, stop: n } = Gt()) {
|
|
439
|
-
const o = x(e), s = g(!1);
|
|
440
|
-
h(
|
|
441
|
-
i,
|
|
442
|
-
(f) => {
|
|
443
|
-
s.value = Object.values(f).filter((y) => y.isAnimating()).length > 0;
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
immediate: !0,
|
|
447
|
-
deep: !0
|
|
448
|
-
}
|
|
449
|
-
);
|
|
450
|
-
const a = (f) => {
|
|
451
|
-
if (!o || !o[f])
|
|
452
|
-
throw new Error(`The variant ${f} does not exist.`);
|
|
453
|
-
return o[f];
|
|
454
|
-
}, l = (f) => {
|
|
455
|
-
typeof f == "string" && (f = a(f));
|
|
456
|
-
const y = Object.entries(f).map(([v, S]) => {
|
|
457
|
-
if (v !== "transition")
|
|
458
|
-
return new Promise(
|
|
459
|
-
(ot) => (
|
|
460
|
-
// @ts-expect-error - Fix errors later for typescript 5
|
|
461
|
-
r(v, S, t, f.transition || G(v, f[v]), ot)
|
|
462
|
-
)
|
|
463
|
-
);
|
|
464
|
-
}).filter(Boolean);
|
|
465
|
-
async function d() {
|
|
466
|
-
await Promise.all(y), f.transition?.onComplete?.();
|
|
467
|
-
}
|
|
468
|
-
return Promise.all([d()]);
|
|
469
|
-
};
|
|
470
|
-
return {
|
|
471
|
-
isAnimating: s,
|
|
472
|
-
apply: l,
|
|
473
|
-
set: (f) => {
|
|
474
|
-
const y = yt(f) ? f : a(f);
|
|
475
|
-
Object.entries(y).forEach(([d, v]) => {
|
|
476
|
-
d !== "transition" && r(d, v, t, {
|
|
477
|
-
immediate: !0
|
|
478
|
-
});
|
|
479
|
-
});
|
|
480
|
-
},
|
|
481
|
-
leave: async (f) => {
|
|
482
|
-
let y;
|
|
483
|
-
if (o && (o.leave && (y = o.leave), !o.leave && o.initial && (y = o.initial)), !y) {
|
|
484
|
-
f();
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
await l(y), f();
|
|
488
|
-
},
|
|
489
|
-
stop: n
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
const L = typeof window < "u", Qt = () => L && (window.onpointerdown === null || R?.TEST), te = () => L && (window.ontouchstart === null || R?.TEST), ee = () => L && (window.onmousedown === null || R?.TEST);
|
|
493
|
-
function ie({ target: t, state: e, variants: i, apply: r }) {
|
|
494
|
-
const n = x(i), o = g(!1), s = g(!1), a = g(!1), l = A(() => {
|
|
495
|
-
let u = [...Object.keys(e.value || {})];
|
|
496
|
-
return n && (n.hovered && (u = [...u, ...Object.keys(n.hovered)]), n.tapped && (u = [...u, ...Object.keys(n.tapped)]), n.focused && (u = [...u, ...Object.keys(n.focused)])), u;
|
|
497
|
-
}), p = A(() => {
|
|
498
|
-
const u = {};
|
|
499
|
-
Object.assign(u, e.value), o.value && n.hovered && Object.assign(u, n.hovered), s.value && n.tapped && Object.assign(u, n.tapped), a.value && n.focused && Object.assign(u, n.focused);
|
|
500
|
-
for (const f in u)
|
|
501
|
-
l.value.includes(f) || delete u[f];
|
|
502
|
-
return u;
|
|
503
|
-
});
|
|
504
|
-
n.hovered && (m(t, "mouseenter", () => o.value = !0), m(t, "mouseleave", () => {
|
|
505
|
-
o.value = !1, s.value = !1;
|
|
506
|
-
})), n.tapped && (ee() && (m(t, "mousedown", () => s.value = !0), m(t, "mouseup", () => s.value = !1)), Qt() && (m(t, "pointerdown", () => s.value = !0), m(t, "pointerup", () => s.value = !1)), te() && (m(t, "touchstart", () => s.value = !0), m(t, "touchend", () => s.value = !1))), n.focused && (m(t, "focus", () => a.value = !0), m(t, "blur", () => a.value = !1)), h([o, s, a], () => {
|
|
507
|
-
r(p.value);
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
function re({ set: t, target: e, variants: i, variant: r }) {
|
|
511
|
-
const n = x(i);
|
|
512
|
-
h(
|
|
513
|
-
() => e,
|
|
514
|
-
() => {
|
|
515
|
-
n && (n.initial && (t("initial"), r.value = "initial"), n.enter && (r.value = "enter"));
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
immediate: !0,
|
|
519
|
-
flush: "pre"
|
|
520
|
-
}
|
|
521
|
-
);
|
|
522
|
-
}
|
|
523
|
-
function ne({ state: t, apply: e }) {
|
|
524
|
-
h(
|
|
525
|
-
t,
|
|
526
|
-
(i) => {
|
|
527
|
-
i && e(i);
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
immediate: !0
|
|
531
|
-
}
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
function oe({ target: t, variants: e, variant: i }) {
|
|
535
|
-
const r = x(e);
|
|
536
|
-
r && (r.visible || r.visibleOnce) && ft(t, ([{ isIntersecting: n }]) => {
|
|
537
|
-
r.visible ? n ? i.value = "visible" : i.value = "initial" : r.visibleOnce && (n && i.value !== "visibleOnce" ? i.value = "visibleOnce" : i.value || (i.value = "initial"));
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
function se(t, e = {
|
|
541
|
-
syncVariants: !0,
|
|
542
|
-
lifeCycleHooks: !0,
|
|
543
|
-
visibilityHooks: !0,
|
|
544
|
-
eventListeners: !0
|
|
545
|
-
}) {
|
|
546
|
-
e.lifeCycleHooks && re(t), e.syncVariants && ne(t), e.visibilityHooks && oe(t), e.eventListeners && ie(t);
|
|
547
|
-
}
|
|
548
|
-
function Q(t = {}) {
|
|
549
|
-
const e = V({
|
|
550
|
-
...t
|
|
551
|
-
}), i = g({});
|
|
552
|
-
return h(
|
|
553
|
-
e,
|
|
554
|
-
() => {
|
|
555
|
-
const r = {};
|
|
556
|
-
for (const [n, o] of Object.entries(e)) {
|
|
557
|
-
const s = M(n), a = _(o, s);
|
|
558
|
-
r[n] = a;
|
|
12
|
+
]
|
|
13
|
+
}),
|
|
14
|
+
// Contains main photo & previous/next button container "itemcontainer" below
|
|
15
|
+
itemwrapper: ({ parent: o, props: t }) => ({
|
|
16
|
+
class: [
|
|
17
|
+
"group",
|
|
18
|
+
"flex relative",
|
|
19
|
+
"mt-14 md:mt-20 min-h-[74vh]",
|
|
20
|
+
{
|
|
21
|
+
"grow shrink w-0 justify-center": t.fullScreen
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"flex-col": o.props.indicatorsPosition === "bottom" || o.props.indicatorsPosition === "top",
|
|
25
|
+
"flex-row items-center": o.props.indicatorsPosition === "left" || o.props.indicatorsPosition === "right"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"order-2": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "left",
|
|
29
|
+
"flex-row": o.props.thumbnailsPosition === "right"
|
|
559
30
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
function k(t, e) {
|
|
572
|
-
h(
|
|
573
|
-
() => ut(t),
|
|
574
|
-
(i) => {
|
|
575
|
-
i && e(i);
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
immediate: !0
|
|
579
|
-
}
|
|
580
|
-
);
|
|
581
|
-
}
|
|
582
|
-
const ae = {
|
|
583
|
-
x: "translateX",
|
|
584
|
-
y: "translateY",
|
|
585
|
-
z: "translateZ"
|
|
586
|
-
};
|
|
587
|
-
function tt(t = {}, e = !0) {
|
|
588
|
-
const i = V({ ...t }), r = g("");
|
|
589
|
-
return h(
|
|
590
|
-
i,
|
|
591
|
-
(n) => {
|
|
592
|
-
let o = "", s = !1;
|
|
593
|
-
if (e && (n.x || n.y || n.z)) {
|
|
594
|
-
const a = [n.x || 0, n.y || 0, n.z || 0].map((l) => _(l, c)).join(",");
|
|
595
|
-
o += `translate3d(${a}) `, s = !0;
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
// Contains main photo & previous/next buttons
|
|
34
|
+
itemcontainer: ({ parent: o }) => ({
|
|
35
|
+
class: [
|
|
36
|
+
"flex w-full md:w-screen h-full relative grow items-center",
|
|
37
|
+
{
|
|
38
|
+
"order-1": o.props.indicatorsPosition === "bottom" || o.props.indicatorsPosition === "right",
|
|
39
|
+
"order-2": o.props.indicatorsPosition === "top" || o.props.indicatorsPosition === "left"
|
|
596
40
|
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
41
|
+
]
|
|
42
|
+
}),
|
|
43
|
+
// Div that contains main img element
|
|
44
|
+
item: {
|
|
45
|
+
class: [
|
|
46
|
+
// Flex
|
|
47
|
+
"flex justify-center items-center",
|
|
48
|
+
// Sizing
|
|
49
|
+
"h-full w-full",
|
|
50
|
+
"rounded-lg overflow-auto",
|
|
51
|
+
// Misc
|
|
52
|
+
"md:max-w-[592px] mx-auto"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
// Contains div that contains thumbnail container "thumbnailcontainer"
|
|
56
|
+
thumbnailwrapper: ({ parent: o }) => ({
|
|
57
|
+
class: [
|
|
58
|
+
// Flex
|
|
59
|
+
"flex flex-col shrink-0",
|
|
60
|
+
{
|
|
61
|
+
"order-1": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "left"
|
|
62
|
+
},
|
|
63
|
+
// Misc
|
|
64
|
+
"overflow-auto"
|
|
65
|
+
]
|
|
66
|
+
}),
|
|
67
|
+
thumbnailcontainer: ({ parent: o }) => ({
|
|
68
|
+
class: [
|
|
69
|
+
// Flex
|
|
70
|
+
"flex",
|
|
71
|
+
// Spacing
|
|
72
|
+
"p-4",
|
|
73
|
+
// Colors
|
|
74
|
+
"bg-transparent",
|
|
75
|
+
"md:max-w-[592px] mx-auto",
|
|
76
|
+
{
|
|
77
|
+
"flex-row": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom",
|
|
78
|
+
"flex-col grow": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
|
|
602
79
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
q(r) || it(r) ? e[r] = n : i[r] = n;
|
|
633
|
-
}), { transform: e, style: i };
|
|
634
|
-
}
|
|
635
|
-
function B(t) {
|
|
636
|
-
const { transform: e, style: i } = pe(t), { transform: r } = tt(e), { style: n } = Q(i);
|
|
637
|
-
return r.value && (n.value.transform = r.value), n.value;
|
|
638
|
-
}
|
|
639
|
-
function ye(t, e) {
|
|
640
|
-
let i, r;
|
|
641
|
-
const { state: n, style: o } = Q();
|
|
642
|
-
return k(t, (s) => {
|
|
643
|
-
r = s;
|
|
644
|
-
for (const a of Object.keys(J))
|
|
645
|
-
s.style[a] === null || s.style[a] === "" || q(a) || it(a) || (n[a] = s.style[a]);
|
|
646
|
-
i && Object.entries(i).forEach(([a, l]) => s.style[a] = l), e && e(n);
|
|
647
|
-
}), h(
|
|
648
|
-
o,
|
|
649
|
-
(s) => {
|
|
650
|
-
if (!r) {
|
|
651
|
-
i = s;
|
|
652
|
-
return;
|
|
80
|
+
]
|
|
81
|
+
}),
|
|
82
|
+
// Container for the previous thumbnail button
|
|
83
|
+
previousthumbnailbutton: {
|
|
84
|
+
class: [
|
|
85
|
+
// Positioning
|
|
86
|
+
"self-center relative",
|
|
87
|
+
// Display & Flexbox
|
|
88
|
+
"flex shrink-0 justify-center items-center overflow-hidden",
|
|
89
|
+
// Spacing
|
|
90
|
+
"m-2 ml-0",
|
|
91
|
+
// Appearance
|
|
92
|
+
"bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out",
|
|
93
|
+
// Hover Effects
|
|
94
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
95
|
+
// Focus Effects
|
|
96
|
+
"focus:outline-none focus:outline-offset-0"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
// The container for just the thumbnails (not including the previous/next buttons) - contains another div "thumbnailitems"
|
|
100
|
+
thumbnailitemscontainer: {
|
|
101
|
+
class: "overflow-hidden w-full md:w-[30rem]"
|
|
102
|
+
},
|
|
103
|
+
// The div that contains just the thumbnails
|
|
104
|
+
thumbnailitems: ({ parent: o }) => ({
|
|
105
|
+
class: [
|
|
106
|
+
"flex",
|
|
107
|
+
{
|
|
108
|
+
"flex-col h-full": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
|
|
653
109
|
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
110
|
+
]
|
|
111
|
+
}),
|
|
112
|
+
thumbnailitem: ({ parent: o }) => ({
|
|
113
|
+
class: [
|
|
114
|
+
// Flexbox
|
|
115
|
+
"flex items-center justify-center",
|
|
116
|
+
"grow shrink-0",
|
|
117
|
+
{
|
|
118
|
+
"w-full md:w-[25%]": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom"
|
|
119
|
+
},
|
|
120
|
+
// Misc
|
|
121
|
+
"overflow-auto",
|
|
122
|
+
"cursor-pointer",
|
|
123
|
+
// 'opacity-50',
|
|
124
|
+
// States
|
|
125
|
+
"hover:opacity-100",
|
|
126
|
+
"hover:transition-opacity",
|
|
127
|
+
"hover:duration-300"
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
nextthumbnailbutton: {
|
|
131
|
+
class: [
|
|
132
|
+
// Positioning
|
|
133
|
+
"self-center relative",
|
|
134
|
+
// Display & Flexbox
|
|
135
|
+
"flex shrink-0 justify-center items-center overflow-hidden",
|
|
136
|
+
// Spacing
|
|
137
|
+
"m-2 mr-0",
|
|
138
|
+
// Appearance
|
|
139
|
+
"bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out",
|
|
140
|
+
// Hover Effects
|
|
141
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
142
|
+
// Focus Effects
|
|
143
|
+
"focus:outline-none focus:outline-offset-0"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
indicators: ({ parent: o }) => ({
|
|
147
|
+
class: [
|
|
148
|
+
// flex
|
|
149
|
+
"flex items-center justify-center",
|
|
150
|
+
// Spacing
|
|
151
|
+
"p-4",
|
|
152
|
+
// Indicators Position
|
|
153
|
+
{
|
|
154
|
+
"order-2": o.props.indicatorsPosition == "bottom",
|
|
155
|
+
"order-1": o.props.indicatorsPosition == "top",
|
|
156
|
+
"order-1 flex-col": o.props.indicatorsPosition == "left",
|
|
157
|
+
"flex-col order-2": o.props.indicatorsPosition == "right"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"absolute z-10 bg-black/50": o.props.showIndicatorsOnItem
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"bottom-0 left-0 w-full items-start": o.props.indicatorsPosition == "bottom" && o.props.showIndicatorsOnItem,
|
|
164
|
+
"top-0 left-0 w-full items-start": o.props.indicatorsPosition == "top" && o.props.showIndicatorsOnItem,
|
|
165
|
+
"left-0 top-0 h-full items-start": o.props.indicatorsPosition == "left" && o.props.showIndicatorsOnItem,
|
|
166
|
+
"right-0 top-0 h-full items-start": o.props.indicatorsPosition == "right" && o.props.showIndicatorsOnItem
|
|
685
167
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
if (i === "translateY") {
|
|
694
|
-
t.y = r;
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
if (i === "translateZ") {
|
|
698
|
-
t.z = r;
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
|
-
t[i] = r;
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
function be(t, e) {
|
|
705
|
-
let i, r;
|
|
706
|
-
const { state: n, transform: o } = tt();
|
|
707
|
-
return k(t, (s) => {
|
|
708
|
-
r = s, s.style.transform && me(n, s.style.transform), i && (s.style.transform = i), e && e(n);
|
|
709
|
-
}), h(
|
|
710
|
-
o,
|
|
711
|
-
(s) => {
|
|
712
|
-
if (!r) {
|
|
713
|
-
i = s;
|
|
714
|
-
return;
|
|
168
|
+
]
|
|
169
|
+
}),
|
|
170
|
+
indicator: ({ parent: o }) => ({
|
|
171
|
+
class: [
|
|
172
|
+
{
|
|
173
|
+
"mr-2": o.props.indicatorsPosition == "bottom" || o.props.indicatorsPosition == "top",
|
|
174
|
+
"mb-2": o.props.indicatorsPosition == "left" || o.props.indicatorsPosition == "right"
|
|
715
175
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
},
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
},
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
initial: {
|
|
819
|
-
x: -100,
|
|
820
|
-
rotate: 90,
|
|
821
|
-
opacity: 0
|
|
822
|
-
},
|
|
823
|
-
enter: {
|
|
824
|
-
x: 0,
|
|
825
|
-
rotate: 0,
|
|
826
|
-
opacity: 1
|
|
827
|
-
}
|
|
828
|
-
}, Ee = {
|
|
829
|
-
initial: {
|
|
830
|
-
x: -100,
|
|
831
|
-
rotate: 90,
|
|
832
|
-
opacity: 0
|
|
833
|
-
},
|
|
834
|
-
visible: {
|
|
835
|
-
x: 0,
|
|
836
|
-
rotate: 0,
|
|
837
|
-
opacity: 1
|
|
838
|
-
}
|
|
839
|
-
}, Ne = {
|
|
840
|
-
initial: {
|
|
841
|
-
x: -100,
|
|
842
|
-
rotate: 90,
|
|
843
|
-
opacity: 0
|
|
844
|
-
},
|
|
845
|
-
visibleOnce: {
|
|
846
|
-
x: 0,
|
|
847
|
-
rotate: 0,
|
|
848
|
-
opacity: 1
|
|
849
|
-
}
|
|
850
|
-
}, Pe = {
|
|
851
|
-
initial: {
|
|
852
|
-
x: 100,
|
|
853
|
-
rotate: -90,
|
|
854
|
-
opacity: 0
|
|
855
|
-
},
|
|
856
|
-
enter: {
|
|
857
|
-
x: 0,
|
|
858
|
-
rotate: 0,
|
|
859
|
-
opacity: 1
|
|
860
|
-
}
|
|
861
|
-
}, _e = {
|
|
862
|
-
initial: {
|
|
863
|
-
x: 100,
|
|
864
|
-
rotate: -90,
|
|
865
|
-
opacity: 0
|
|
866
|
-
},
|
|
867
|
-
visible: {
|
|
868
|
-
x: 0,
|
|
869
|
-
rotate: 0,
|
|
870
|
-
opacity: 1
|
|
871
|
-
}
|
|
872
|
-
}, we = {
|
|
873
|
-
initial: {
|
|
874
|
-
x: 100,
|
|
875
|
-
rotate: -90,
|
|
876
|
-
opacity: 0
|
|
877
|
-
},
|
|
878
|
-
visibleOnce: {
|
|
879
|
-
x: 0,
|
|
880
|
-
rotate: 0,
|
|
881
|
-
opacity: 1
|
|
882
|
-
}
|
|
883
|
-
}, Re = {
|
|
884
|
-
initial: {
|
|
885
|
-
y: -100,
|
|
886
|
-
rotate: -90,
|
|
887
|
-
opacity: 0
|
|
888
|
-
},
|
|
889
|
-
enter: {
|
|
890
|
-
y: 0,
|
|
891
|
-
rotate: 0,
|
|
892
|
-
opacity: 1
|
|
893
|
-
}
|
|
894
|
-
}, Me = {
|
|
895
|
-
initial: {
|
|
896
|
-
y: -100,
|
|
897
|
-
rotate: -90,
|
|
898
|
-
opacity: 0
|
|
899
|
-
},
|
|
900
|
-
visible: {
|
|
901
|
-
y: 0,
|
|
902
|
-
rotate: 0,
|
|
903
|
-
opacity: 1
|
|
904
|
-
}
|
|
905
|
-
}, Le = {
|
|
906
|
-
initial: {
|
|
907
|
-
y: -100,
|
|
908
|
-
rotate: -90,
|
|
909
|
-
opacity: 0
|
|
910
|
-
},
|
|
911
|
-
visibleOnce: {
|
|
912
|
-
y: 0,
|
|
913
|
-
rotate: 0,
|
|
914
|
-
opacity: 1
|
|
915
|
-
}
|
|
916
|
-
}, ke = {
|
|
917
|
-
initial: {
|
|
918
|
-
y: 100,
|
|
919
|
-
rotate: 90,
|
|
920
|
-
opacity: 0
|
|
921
|
-
},
|
|
922
|
-
enter: {
|
|
923
|
-
y: 0,
|
|
924
|
-
rotate: 0,
|
|
925
|
-
opacity: 1
|
|
926
|
-
}
|
|
927
|
-
}, qe = {
|
|
928
|
-
initial: {
|
|
929
|
-
y: 100,
|
|
930
|
-
rotate: 90,
|
|
931
|
-
opacity: 0
|
|
932
|
-
},
|
|
933
|
-
visible: {
|
|
934
|
-
y: 0,
|
|
935
|
-
rotate: 0,
|
|
936
|
-
opacity: 1
|
|
937
|
-
}
|
|
938
|
-
}, Be = {
|
|
939
|
-
initial: {
|
|
940
|
-
y: 100,
|
|
941
|
-
rotate: 90,
|
|
942
|
-
opacity: 0
|
|
943
|
-
},
|
|
944
|
-
visibleOnce: {
|
|
945
|
-
y: 0,
|
|
946
|
-
rotate: 0,
|
|
947
|
-
opacity: 1
|
|
948
|
-
}
|
|
949
|
-
}, De = {
|
|
950
|
-
initial: {
|
|
951
|
-
x: -100,
|
|
952
|
-
opacity: 0
|
|
953
|
-
},
|
|
954
|
-
enter: {
|
|
955
|
-
x: 0,
|
|
956
|
-
opacity: 1
|
|
957
|
-
}
|
|
958
|
-
}, Fe = {
|
|
959
|
-
initial: {
|
|
960
|
-
x: -100,
|
|
961
|
-
opacity: 0
|
|
962
|
-
},
|
|
963
|
-
visible: {
|
|
964
|
-
x: 0,
|
|
965
|
-
opacity: 1
|
|
966
|
-
}
|
|
967
|
-
}, ze = {
|
|
968
|
-
initial: {
|
|
969
|
-
x: -100,
|
|
970
|
-
opacity: 0
|
|
971
|
-
},
|
|
972
|
-
visibleOnce: {
|
|
973
|
-
x: 0,
|
|
974
|
-
opacity: 1
|
|
975
|
-
}
|
|
976
|
-
}, Ie = {
|
|
977
|
-
initial: {
|
|
978
|
-
x: 100,
|
|
979
|
-
opacity: 0
|
|
980
|
-
},
|
|
981
|
-
enter: {
|
|
982
|
-
x: 0,
|
|
983
|
-
opacity: 1
|
|
984
|
-
}
|
|
985
|
-
}, Ue = {
|
|
986
|
-
initial: {
|
|
987
|
-
x: 100,
|
|
988
|
-
opacity: 0
|
|
989
|
-
},
|
|
990
|
-
visible: {
|
|
991
|
-
x: 0,
|
|
992
|
-
opacity: 1
|
|
993
|
-
}
|
|
994
|
-
}, We = {
|
|
995
|
-
initial: {
|
|
996
|
-
x: 100,
|
|
997
|
-
opacity: 0
|
|
998
|
-
},
|
|
999
|
-
visibleOnce: {
|
|
1000
|
-
x: 0,
|
|
1001
|
-
opacity: 1
|
|
1002
|
-
}
|
|
1003
|
-
}, Xe = {
|
|
1004
|
-
initial: {
|
|
1005
|
-
y: -100,
|
|
1006
|
-
opacity: 0
|
|
1007
|
-
},
|
|
1008
|
-
enter: {
|
|
1009
|
-
y: 0,
|
|
1010
|
-
opacity: 1
|
|
1011
|
-
}
|
|
1012
|
-
}, Ye = {
|
|
1013
|
-
initial: {
|
|
1014
|
-
y: -100,
|
|
1015
|
-
opacity: 0
|
|
1016
|
-
},
|
|
1017
|
-
visible: {
|
|
1018
|
-
y: 0,
|
|
1019
|
-
opacity: 1
|
|
1020
|
-
}
|
|
1021
|
-
}, Ze = {
|
|
1022
|
-
initial: {
|
|
1023
|
-
y: -100,
|
|
1024
|
-
opacity: 0
|
|
1025
|
-
},
|
|
1026
|
-
visibleOnce: {
|
|
1027
|
-
y: 0,
|
|
1028
|
-
opacity: 1
|
|
1029
|
-
}
|
|
1030
|
-
}, He = {
|
|
1031
|
-
initial: {
|
|
1032
|
-
y: 100,
|
|
1033
|
-
opacity: 0
|
|
1034
|
-
},
|
|
1035
|
-
enter: {
|
|
1036
|
-
y: 0,
|
|
1037
|
-
opacity: 1
|
|
1038
|
-
}
|
|
1039
|
-
}, Ke = {
|
|
1040
|
-
initial: {
|
|
1041
|
-
y: 100,
|
|
1042
|
-
opacity: 0
|
|
1043
|
-
},
|
|
1044
|
-
visible: {
|
|
1045
|
-
y: 0,
|
|
1046
|
-
opacity: 1
|
|
1047
|
-
}
|
|
1048
|
-
}, $e = {
|
|
1049
|
-
initial: {
|
|
1050
|
-
y: 100,
|
|
1051
|
-
opacity: 0
|
|
1052
|
-
},
|
|
1053
|
-
visibleOnce: {
|
|
1054
|
-
y: 0,
|
|
1055
|
-
opacity: 1
|
|
1056
|
-
}
|
|
1057
|
-
}, Y = {
|
|
1058
|
-
__proto__: null,
|
|
1059
|
-
fade: Te,
|
|
1060
|
-
fadeVisible: Ae,
|
|
1061
|
-
fadeVisibleOnce: xe,
|
|
1062
|
-
pop: je,
|
|
1063
|
-
popVisible: Ve,
|
|
1064
|
-
popVisibleOnce: Se,
|
|
1065
|
-
rollBottom: ke,
|
|
1066
|
-
rollLeft: Ce,
|
|
1067
|
-
rollRight: Pe,
|
|
1068
|
-
rollTop: Re,
|
|
1069
|
-
rollVisibleBottom: qe,
|
|
1070
|
-
rollVisibleLeft: Ee,
|
|
1071
|
-
rollVisibleOnceBottom: Be,
|
|
1072
|
-
rollVisibleOnceLeft: Ne,
|
|
1073
|
-
rollVisibleOnceRight: we,
|
|
1074
|
-
rollVisibleOnceTop: Le,
|
|
1075
|
-
rollVisibleRight: _e,
|
|
1076
|
-
rollVisibleTop: Me,
|
|
1077
|
-
slideBottom: He,
|
|
1078
|
-
slideLeft: De,
|
|
1079
|
-
slideRight: Ie,
|
|
1080
|
-
slideTop: Xe,
|
|
1081
|
-
slideVisibleBottom: Ke,
|
|
1082
|
-
slideVisibleLeft: Fe,
|
|
1083
|
-
slideVisibleOnceBottom: $e,
|
|
1084
|
-
slideVisibleOnceLeft: ze,
|
|
1085
|
-
slideVisibleOnceRight: We,
|
|
1086
|
-
slideVisibleOnceTop: Ze,
|
|
1087
|
-
slideVisibleRight: Ue,
|
|
1088
|
-
slideVisibleTop: Ye
|
|
1089
|
-
}, Ge = /* @__PURE__ */ Symbol(
|
|
1090
|
-
""
|
|
1091
|
-
), rt = {
|
|
1092
|
-
// Preset to be loaded
|
|
1093
|
-
preset: {
|
|
1094
|
-
type: String,
|
|
1095
|
-
required: !1
|
|
1096
|
-
},
|
|
1097
|
-
// Instance
|
|
1098
|
-
instance: {
|
|
1099
|
-
type: Object,
|
|
1100
|
-
required: !1
|
|
1101
|
-
},
|
|
1102
|
-
// Variants
|
|
1103
|
-
variants: {
|
|
1104
|
-
type: Object,
|
|
1105
|
-
required: !1
|
|
1106
|
-
},
|
|
1107
|
-
// Initial variant
|
|
1108
|
-
initial: {
|
|
1109
|
-
type: Object,
|
|
1110
|
-
required: !1
|
|
1111
|
-
},
|
|
1112
|
-
// Lifecycle hooks variants
|
|
1113
|
-
enter: {
|
|
1114
|
-
type: Object,
|
|
1115
|
-
required: !1
|
|
1116
|
-
},
|
|
1117
|
-
leave: {
|
|
1118
|
-
type: Object,
|
|
1119
|
-
required: !1
|
|
1120
|
-
},
|
|
1121
|
-
// Intersection observer variants
|
|
1122
|
-
visible: {
|
|
1123
|
-
type: Object,
|
|
1124
|
-
required: !1
|
|
1125
|
-
},
|
|
1126
|
-
visibleOnce: {
|
|
1127
|
-
type: Object,
|
|
1128
|
-
required: !1
|
|
1129
|
-
},
|
|
1130
|
-
// Event listeners variants
|
|
1131
|
-
hovered: {
|
|
1132
|
-
type: Object,
|
|
1133
|
-
required: !1
|
|
1134
|
-
},
|
|
1135
|
-
tapped: {
|
|
1136
|
-
type: Object,
|
|
1137
|
-
required: !1
|
|
1138
|
-
},
|
|
1139
|
-
focused: {
|
|
1140
|
-
type: Object,
|
|
1141
|
-
required: !1
|
|
1142
|
-
},
|
|
1143
|
-
// Helpers
|
|
1144
|
-
delay: {
|
|
1145
|
-
type: [Number, String],
|
|
1146
|
-
required: !1
|
|
1147
|
-
},
|
|
1148
|
-
duration: {
|
|
1149
|
-
type: [Number, String],
|
|
1150
|
-
required: !1
|
|
176
|
+
]
|
|
177
|
+
}),
|
|
178
|
+
indicatorbutton: ({ context: o }) => ({
|
|
179
|
+
class: [
|
|
180
|
+
// Size
|
|
181
|
+
"w-2 h-2",
|
|
182
|
+
// Appearance
|
|
183
|
+
"rounded-full transition duration-200",
|
|
184
|
+
// Focus Effects
|
|
185
|
+
"focus:outline-none focus:outline-offset-0",
|
|
186
|
+
// Conditional Appearance: Not Highlighted
|
|
187
|
+
{
|
|
188
|
+
"bg-inkwell-30 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600": !o.highlighted
|
|
189
|
+
},
|
|
190
|
+
// Conditional Appearance: Highlighted
|
|
191
|
+
{ "bg-white hover:bg-primary-600": o.highlighted }
|
|
192
|
+
]
|
|
193
|
+
}),
|
|
194
|
+
mask: {
|
|
195
|
+
class: [
|
|
196
|
+
"fixed top-0 left-0 w-full h-full",
|
|
197
|
+
"flex items-center justify-center",
|
|
198
|
+
"bg-inkwell-40/95",
|
|
199
|
+
"image-overlay"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
closebutton: {
|
|
203
|
+
class: [
|
|
204
|
+
// Positioning
|
|
205
|
+
"!absolute top-0 right-0 z-[1001]",
|
|
206
|
+
// Display & Flexbox
|
|
207
|
+
"flex justify-center items-center overflow-hidden",
|
|
208
|
+
// Spacing
|
|
209
|
+
"m-2",
|
|
210
|
+
// Appearance
|
|
211
|
+
"text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out",
|
|
212
|
+
// Focus Effects
|
|
213
|
+
"focus:outline-none"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
closeicon: {
|
|
217
|
+
class: "w-6 h-6"
|
|
218
|
+
},
|
|
219
|
+
previousitembutton: ({ parent: o }) => ({
|
|
220
|
+
class: [
|
|
221
|
+
// Display & Flexbox
|
|
222
|
+
"inline-flex justify-center items-center overflow-hidden",
|
|
223
|
+
// Appearance
|
|
224
|
+
"bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",
|
|
225
|
+
{
|
|
226
|
+
"opacity-0 group-hover:opacity-100": o.props.showItemNavigatorsOnHover
|
|
227
|
+
},
|
|
228
|
+
// Spacing
|
|
229
|
+
"mx-2",
|
|
230
|
+
// Positioning
|
|
231
|
+
"top-1/2 mt-[-0.5rem] left-0",
|
|
232
|
+
{
|
|
233
|
+
"!absolute": o.props.showItemNavigators,
|
|
234
|
+
"!fixed": !o.props.showItemNavigators
|
|
235
|
+
},
|
|
236
|
+
// Hover Effect
|
|
237
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
238
|
+
// Focus Effects
|
|
239
|
+
"focus:outline-none focus:outline-offset-0"
|
|
240
|
+
]
|
|
241
|
+
}),
|
|
242
|
+
nextitembutton: ({ parent: o }) => ({
|
|
243
|
+
class: [
|
|
244
|
+
// Display & Flexbox
|
|
245
|
+
"inline-flex justify-center items-center overflow-hidden",
|
|
246
|
+
// Appearance
|
|
247
|
+
"bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",
|
|
248
|
+
{
|
|
249
|
+
"opacity-0 group-hover:opacity-100": o.props.showItemNavigatorsOnHover
|
|
250
|
+
},
|
|
251
|
+
// Spacing
|
|
252
|
+
"mx-2",
|
|
253
|
+
// Positioning
|
|
254
|
+
"top-1/2 mt-[-0.5rem] right-0",
|
|
255
|
+
{
|
|
256
|
+
"!absolute": o.props.showItemNavigators,
|
|
257
|
+
"!fixed": !o.props.showItemNavigators
|
|
258
|
+
},
|
|
259
|
+
// Hover Effect
|
|
260
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
261
|
+
// Focus Effects
|
|
262
|
+
"focus:outline-none focus:outline-offset-0"
|
|
263
|
+
]
|
|
264
|
+
}),
|
|
265
|
+
caption: {
|
|
266
|
+
class: [
|
|
267
|
+
// Positioning
|
|
268
|
+
"absolute bottom-0 left-0 w-full",
|
|
269
|
+
// Appearance
|
|
270
|
+
"bg-black/50 text-white p-4"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
transition: {
|
|
274
|
+
enterFromClass: "opacity-0 scale-75",
|
|
275
|
+
enterActiveClass: "transition-all duration-150 ease-in-out",
|
|
276
|
+
leaveActiveClass: "transition-all duration-150 ease-in",
|
|
277
|
+
leaveToClass: "opacity-0 scale-75"
|
|
1151
278
|
}
|
|
1152
279
|
};
|
|
1153
|
-
function Je(t) {
|
|
1154
|
-
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1155
|
-
}
|
|
1156
|
-
function w(t) {
|
|
1157
|
-
if (Array.isArray(t))
|
|
1158
|
-
return t.map(w);
|
|
1159
|
-
if (Je(t)) {
|
|
1160
|
-
const e = {};
|
|
1161
|
-
for (const i in t)
|
|
1162
|
-
e[i] = w(t[i]);
|
|
1163
|
-
return e;
|
|
1164
|
-
}
|
|
1165
|
-
return t;
|
|
1166
|
-
}
|
|
1167
|
-
function nt(t) {
|
|
1168
|
-
const e = V({}), i = ct(Ge, {}), r = A(() => t.preset == null ? {} : i != null && t.preset in i ? structuredClone(lt(i)[t.preset]) : t.preset in Y ? structuredClone(Y[t.preset]) : {}), n = A(() => ({
|
|
1169
|
-
initial: t.initial,
|
|
1170
|
-
enter: t.enter,
|
|
1171
|
-
leave: t.leave,
|
|
1172
|
-
visible: t.visible,
|
|
1173
|
-
visibleOnce: t.visibleOnce,
|
|
1174
|
-
hovered: t.hovered,
|
|
1175
|
-
tapped: t.tapped,
|
|
1176
|
-
focused: t.focused
|
|
1177
|
-
}));
|
|
1178
|
-
function o(l, p) {
|
|
1179
|
-
for (const u of ["delay", "duration"]) {
|
|
1180
|
-
if (p[u] == null)
|
|
1181
|
-
continue;
|
|
1182
|
-
const f = Number.parseInt(
|
|
1183
|
-
p[u]
|
|
1184
|
-
);
|
|
1185
|
-
for (const y of ["enter", "visible", "visibleOnce"]) {
|
|
1186
|
-
const d = l[y];
|
|
1187
|
-
d != null && (d.transition ??= {}, d.transition[u] = f);
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
return l;
|
|
1191
|
-
}
|
|
1192
|
-
const s = A(() => {
|
|
1193
|
-
const l = st(
|
|
1194
|
-
{},
|
|
1195
|
-
n.value,
|
|
1196
|
-
r.value,
|
|
1197
|
-
t.variants || {}
|
|
1198
|
-
);
|
|
1199
|
-
return o({ ...l }, t);
|
|
1200
|
-
});
|
|
1201
|
-
function a(l, p, u) {
|
|
1202
|
-
l.props ??= {}, l.props.style ??= {}, l.props.style = { ...l.props.style, ...u };
|
|
1203
|
-
const f = o(
|
|
1204
|
-
w(s.value),
|
|
1205
|
-
l.props
|
|
1206
|
-
);
|
|
1207
|
-
return l.props.onVnodeMounted = ({ el: y }) => {
|
|
1208
|
-
e[p] = Oe(
|
|
1209
|
-
y,
|
|
1210
|
-
f
|
|
1211
|
-
);
|
|
1212
|
-
}, l.props.onVnodeUpdated = ({ el: y }) => {
|
|
1213
|
-
const d = B(e[p].state);
|
|
1214
|
-
for (const [v, S] of Object.entries(d))
|
|
1215
|
-
y.style[v] = S;
|
|
1216
|
-
}, l;
|
|
1217
|
-
}
|
|
1218
|
-
return {
|
|
1219
|
-
motionConfig: s,
|
|
1220
|
-
setNodeInstance: a
|
|
1221
|
-
};
|
|
1222
|
-
}
|
|
1223
|
-
Z({
|
|
1224
|
-
name: "Motion",
|
|
1225
|
-
props: {
|
|
1226
|
-
...rt,
|
|
1227
|
-
is: {
|
|
1228
|
-
type: [String, Object],
|
|
1229
|
-
default: "div"
|
|
1230
|
-
}
|
|
1231
|
-
},
|
|
1232
|
-
setup(t) {
|
|
1233
|
-
const e = H(), { motionConfig: i, setNodeInstance: r } = nt(t);
|
|
1234
|
-
return () => {
|
|
1235
|
-
const n = B(i.value.initial || {}), o = K(t.is, void 0, e);
|
|
1236
|
-
return r(o, 0, n), o;
|
|
1237
|
-
};
|
|
1238
|
-
}
|
|
1239
|
-
});
|
|
1240
|
-
Z({
|
|
1241
|
-
name: "MotionGroup",
|
|
1242
|
-
props: {
|
|
1243
|
-
...rt,
|
|
1244
|
-
is: {
|
|
1245
|
-
type: [String, Object],
|
|
1246
|
-
required: !1
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
setup(t) {
|
|
1250
|
-
const e = H(), { motionConfig: i, setNodeInstance: r } = nt(t);
|
|
1251
|
-
return () => {
|
|
1252
|
-
const n = B(i.value.initial || {}), o = e.default?.() || [];
|
|
1253
|
-
for (let s = 0; s < o.length; s++) {
|
|
1254
|
-
const a = o[s];
|
|
1255
|
-
a.type === at && Array.isArray(a.children) ? a.children.forEach(function l(p, u) {
|
|
1256
|
-
if (p != null) {
|
|
1257
|
-
if (Array.isArray(p)) {
|
|
1258
|
-
l(p, u);
|
|
1259
|
-
return;
|
|
1260
|
-
}
|
|
1261
|
-
typeof p == "object" && r(p, u, n);
|
|
1262
|
-
}
|
|
1263
|
-
}) : r(a, s, n);
|
|
1264
|
-
}
|
|
1265
|
-
return t.is ? K(t.is, void 0, o) : o;
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
});
|
|
1269
280
|
export {
|
|
1270
|
-
|
|
1271
|
-
Ae as fadeVisible,
|
|
1272
|
-
xe as fadeVisibleOnce,
|
|
1273
|
-
je as pop,
|
|
1274
|
-
Ve as popVisible,
|
|
1275
|
-
Se as popVisibleOnce,
|
|
1276
|
-
Q as reactiveStyle,
|
|
1277
|
-
tt as reactiveTransform,
|
|
1278
|
-
ke as rollBottom,
|
|
1279
|
-
Ce as rollLeft,
|
|
1280
|
-
Pe as rollRight,
|
|
1281
|
-
Re as rollTop,
|
|
1282
|
-
qe as rollVisibleBottom,
|
|
1283
|
-
Ee as rollVisibleLeft,
|
|
1284
|
-
Be as rollVisibleOnceBottom,
|
|
1285
|
-
Ne as rollVisibleOnceLeft,
|
|
1286
|
-
we as rollVisibleOnceRight,
|
|
1287
|
-
Le as rollVisibleOnceTop,
|
|
1288
|
-
_e as rollVisibleRight,
|
|
1289
|
-
Me as rollVisibleTop,
|
|
1290
|
-
He as slideBottom,
|
|
1291
|
-
De as slideLeft,
|
|
1292
|
-
Ie as slideRight,
|
|
1293
|
-
Xe as slideTop,
|
|
1294
|
-
Ke as slideVisibleBottom,
|
|
1295
|
-
Fe as slideVisibleLeft,
|
|
1296
|
-
$e as slideVisibleOnceBottom,
|
|
1297
|
-
ze as slideVisibleOnceLeft,
|
|
1298
|
-
We as slideVisibleOnceRight,
|
|
1299
|
-
Ze as slideVisibleOnceTop,
|
|
1300
|
-
Ue as slideVisibleRight,
|
|
1301
|
-
Ye as slideVisibleTop,
|
|
1302
|
-
ye as useElementStyle,
|
|
1303
|
-
be as useElementTransform,
|
|
1304
|
-
Oe as useMotion,
|
|
1305
|
-
Jt as useMotionControls,
|
|
1306
|
-
se as useMotionFeatures,
|
|
1307
|
-
ve as useMotionProperties,
|
|
1308
|
-
Gt as useMotionTransitions,
|
|
1309
|
-
ge as useMotionVariants
|
|
281
|
+
i as default
|
|
1310
282
|
};
|