@openhive-eu/payment 1.0.0-beta.2 → 1.0.0-beta.3
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.js +1 -1
- package/dist/index.js.gz +0 -0
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.gz +0 -0
- package/dist/react.js +105 -105
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5862,7 +5862,7 @@ var pd = Object.defineProperty, A = (t, e, r, n) => {
|
|
|
5862
5862
|
};
|
|
5863
5863
|
class w extends Ce {
|
|
5864
5864
|
constructor() {
|
|
5865
|
-
super(...arguments), this.token = "", this.currency = "EUR", this.defaultAmount = "", this.defaultReference = "", this.readOnlyAmount = !1, this.customerName = "", this.customerEmail = "", this.customerPhone = "", this.locale = "fr", this.payClientRef = "", this._amount = "", this._email = "", this._phone = "", this._paymentReference = "", this._method = "", this._channel = void 0, this._country = s0.code, this._loading = !1, this._success = !1, this._paymentMethods = [], this._methodsLoading = !0, this._methodsError = null, this._initialized = !1, this._t = ot("fr"), this._apiUrl = "https://
|
|
5865
|
+
super(...arguments), this.token = "", this.currency = "EUR", this.defaultAmount = "", this.defaultReference = "", this.readOnlyAmount = !1, this.customerName = "", this.customerEmail = "", this.customerPhone = "", this.locale = "fr", this.payClientRef = "", this._amount = "", this._email = "", this._phone = "", this._paymentReference = "", this._method = "", this._channel = void 0, this._country = s0.code, this._loading = !1, this._success = !1, this._paymentMethods = [], this._methodsLoading = !0, this._methodsError = null, this._initialized = !1, this._t = ot("fr"), this._apiUrl = "https://payment.openhive-staging.eu/api/payment-methods";
|
|
5866
5866
|
}
|
|
5867
5867
|
createRenderRoot() {
|
|
5868
5868
|
return this;
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.min.js
CHANGED
|
@@ -123,7 +123,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
123
123
|
>
|
|
124
124
|
<p>Something went wrong while loading the payment component.</p>
|
|
125
125
|
</div>
|
|
126
|
-
`}var yi=Object.defineProperty,_=(t,e,r,n)=>{for(var o=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(o=a(e,r,o)||o);return o&&yi(e,r,o),o};class w extends _e{constructor(){super(...arguments),this.token="",this.currency="EUR",this.defaultAmount="",this.defaultReference="",this.readOnlyAmount=!1,this.customerName="",this.customerEmail="",this.customerPhone="",this.locale="fr",this.payClientRef="",this._amount="",this._email="",this._phone="",this._paymentReference="",this._method="",this._channel=void 0,this._country=$o.code,this._loading=!1,this._success=!1,this._paymentMethods=[],this._methodsLoading=!0,this._methodsError=null,this._initialized=!1,this._t=Ct("fr"),this._apiUrl="https://
|
|
126
|
+
`}var yi=Object.defineProperty,_=(t,e,r,n)=>{for(var o=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(o=a(e,r,o)||o);return o&&yi(e,r,o),o};class w extends _e{constructor(){super(...arguments),this.token="",this.currency="EUR",this.defaultAmount="",this.defaultReference="",this.readOnlyAmount=!1,this.customerName="",this.customerEmail="",this.customerPhone="",this.locale="fr",this.payClientRef="",this._amount="",this._email="",this._phone="",this._paymentReference="",this._method="",this._channel=void 0,this._country=$o.code,this._loading=!1,this._success=!1,this._paymentMethods=[],this._methodsLoading=!0,this._methodsError=null,this._initialized=!1,this._t=Ct("fr"),this._apiUrl="https://payment.openhive-staging.eu/api/payment-methods"}createRenderRoot(){return this}get payClient(){return this._payClient}set payClient(e){this._payClient=e,this._initialized&&this._fetchPaymentMethods()}willUpdate(e){this._initialized?e.has("locale")&&(this._t=Ct(this.locale)):(this._initialized=!0,this._amount=t1(this.defaultAmount),this._email=this.customerEmail,this._phone=this.customerPhone,this._paymentReference=this.defaultReference,this._t=Ct(this.locale))}firstUpdated(){this._fetchPaymentMethods()}_getPayClient(){if(this._payClient)return this._payClient;if(this.payClientRef){const e=globalThis[this.payClientRef];if(e)return e}return new W1(this._apiUrl,this.token,this.locale)}async _fetchPaymentMethods(){this._methodsLoading=!0,this._methodsError=null;try{this._paymentMethods=await this._getPayClient().getPaymentMethods()}catch(e){this._methodsError=e instanceof Error?e.message:"Failed to load payment methods"}finally{this._methodsLoading=!1}}_validateAmount(e){const r=parseFloat(e.replace(",",".").replace(/\s/g,""));return!isNaN(r)&&r>0}get _isValid(){return!this._amount||!this._validateAmount(this._amount)||!this._paymentReference||!this._method?!1:this._channel==="email"?kr(this._email):this._channel==="sms"?Ar(this._country,this._phone):!0}_onAmountInput(e){const r=e.target;this._amount=t1(r.value)}_onReferenceInput(e){this._paymentReference=e.target.value}_onMethodChange(e){this._method=e.target.value}_onChannelChange(e){this._channel=e.target.value}_onEmailInput(e){this._email=e.target.value}_onPhoneInput(e){this._phone=so(this._country,e.target.value)}_onCountryChange(e){this._country=e.target.value}async _onSubmit(e){e.preventDefault(),this._loading=!0;const r=this._method.indexOf("_"),n=r>=0?this._method.substring(0,r):this._method,o=r>=0?this._method.substring(r+1):"",i={order_reference:this._paymentReference,channel:this._channel==="email"?"email":this._channel==="sms"?"sms":"link",amount:ei(this._amount),currency:this.currency,method:o,customer_contact:this._channel==="email"?this._email:this._channel==="sms"?this._phone:this._email,partner:n};this._success=!0;try{await Promise.resolve(this.dispatchEvent(new CustomEvent("request-to-pay",{detail:i,bubbles:!0,composed:!0})))}catch(a){console.error(a)}finally{this._loading=!1}}_onClose(){this._success=!1,this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_renderMethods(){return this._methodsLoading?ni():this._paymentMethods.map(e=>$i({name:"payment-method",value:e.id,checked:this._method===e.id,onChange:this._onMethodChange.bind(this),label:e.name,logoSvg:e.logoSvg}))}_renderChannels(){return C`
|
|
127
127
|
${i1({name:"channel",value:"email",checked:this._channel==="email",onChange:this._onChannelChange.bind(this),label:this._t.email,icon:ui})}
|
|
128
128
|
${i1({name:"channel",value:"sms",checked:this._channel==="sms",onChange:this._onChannelChange.bind(this),label:this._t.textMessage,icon:pi})}
|
|
129
129
|
`}_renderForm(){const e=this._amount?!this._validateAmount(this._amount):!1,r=this._email?!kr(this._email):!1,n=this._phone?!Ar(this._country,this._phone):!1;return C`
|
package/dist/index.min.js.gz
CHANGED
|
Binary file
|
package/dist/react.js
CHANGED
|
@@ -44,7 +44,7 @@ let u2 = class {
|
|
|
44
44
|
return this.cssText;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
const f2 = (t) => new u2(typeof t == "string" ? t : t + "", void 0, S1),
|
|
47
|
+
const f2 = (t) => new u2(typeof t == "string" ? t : t + "", void 0, S1), p2 = (t, e) => {
|
|
48
48
|
if (mt) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
49
49
|
else for (const r of e) {
|
|
50
50
|
const n = document.createElement("style"), d = Ge.litNonce;
|
|
@@ -55,7 +55,7 @@ const f2 = (t) => new u2(typeof t == "string" ? t : t + "", void 0, S1), h2 = (t
|
|
|
55
55
|
for (const n of e.cssRules) r += n.cssText;
|
|
56
56
|
return f2(r);
|
|
57
57
|
})(t) : t;
|
|
58
|
-
const { is:
|
|
58
|
+
const { is: h2, defineProperty: m2, getOwnPropertyDescriptor: y2, getOwnPropertyNames: g2, getOwnPropertySymbols: b2, getPrototypeOf: v2 } = Object, qe = globalThis, Tt = qe.trustedTypes, C2 = Tt ? Tt.emptyScript : "", _2 = qe.reactiveElementPolyfillSupport, ve = (t, e) => t, Be = { toAttribute(t, e) {
|
|
59
59
|
switch (e) {
|
|
60
60
|
case Boolean:
|
|
61
61
|
t = t ? C2 : null;
|
|
@@ -83,9 +83,9 @@ const { is: p2, defineProperty: m2, getOwnPropertyDescriptor: y2, getOwnProperty
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
return r;
|
|
86
|
-
} }, yt = (t, e) => !
|
|
86
|
+
} }, yt = (t, e) => !h2(t, e), Lt = { attribute: !0, type: String, converter: Be, reflect: !1, useDefault: !1, hasChanged: yt };
|
|
87
87
|
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), qe.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
88
|
-
let
|
|
88
|
+
let pe = class extends HTMLElement {
|
|
89
89
|
static addInitializer(e) {
|
|
90
90
|
this._$Ei(), (this.l ??= []).push(e);
|
|
91
91
|
}
|
|
@@ -166,7 +166,7 @@ let he = class extends HTMLElement {
|
|
|
166
166
|
}
|
|
167
167
|
createRenderRoot() {
|
|
168
168
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
169
|
-
return
|
|
169
|
+
return p2(e, this.constructor.elementStyles), e;
|
|
170
170
|
}
|
|
171
171
|
connectedCallback() {
|
|
172
172
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
|
|
@@ -266,7 +266,7 @@ let he = class extends HTMLElement {
|
|
|
266
266
|
firstUpdated(e) {
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
|
-
|
|
269
|
+
pe.elementStyles = [], pe.shadowRootOptions = { mode: "open" }, pe[ve("elementProperties")] = /* @__PURE__ */ new Map(), pe[ve("finalized")] = /* @__PURE__ */ new Map(), _2?.({ ReactiveElement: pe }), (qe.reactiveElementVersions ??= []).push("2.1.2");
|
|
270
270
|
const gt = globalThis, Ft = (t) => t, ze = gt.trustedTypes, Ht = ze ? ze.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, N1 = "$lit$", te = `lit$${Math.random().toFixed(9).slice(2)}$`, k1 = "?" + te, w2 = `<${k1}>`, se = document, _e = () => se.createComment(""), we = (t) => t === null || typeof t != "object" && typeof t != "function", bt = Array.isArray, x2 = (t) => bt(t) || typeof t?.[Symbol.iterator] == "function", rt = `[
|
|
271
271
|
\f\r]`, ge = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Vt = />/g, oe = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
272
272
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Ut = /"/g, O1 = /^(?:script|style|textarea|title)$/i, P2 = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), _ = P2(1), le = /* @__PURE__ */ Symbol.for("lit-noChange"), C = /* @__PURE__ */ Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), ae = se.createTreeWalker(se, 129);
|
|
@@ -493,7 +493,7 @@ const I2 = (t, e, r) => {
|
|
|
493
493
|
return d._$AI(t), d;
|
|
494
494
|
};
|
|
495
495
|
const vt = globalThis;
|
|
496
|
-
let Ce = class extends
|
|
496
|
+
let Ce = class extends pe {
|
|
497
497
|
constructor() {
|
|
498
498
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
499
499
|
}
|
|
@@ -986,7 +986,7 @@ function Wt(t, e) {
|
|
|
986
986
|
return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
|
|
987
987
|
}
|
|
988
988
|
var J2 = {}.constructor;
|
|
989
|
-
function
|
|
989
|
+
function he(t) {
|
|
990
990
|
return t != null && t.constructor === J2;
|
|
991
991
|
}
|
|
992
992
|
function ye(t) {
|
|
@@ -1436,8 +1436,8 @@ function Xt(t, e) {
|
|
|
1436
1436
|
function T1(t) {
|
|
1437
1437
|
if (!t)
|
|
1438
1438
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
1439
|
-
if (!
|
|
1440
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(
|
|
1439
|
+
if (!he(t) || !he(t.countries))
|
|
1440
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(he(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + sr(t) + ": " + t, "."));
|
|
1441
1441
|
}
|
|
1442
1442
|
var sr = function(e) {
|
|
1443
1443
|
return ye(e);
|
|
@@ -1520,7 +1520,7 @@ function Yt(t, e) {
|
|
|
1520
1520
|
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
|
|
1521
1521
|
return n;
|
|
1522
1522
|
}
|
|
1523
|
-
var
|
|
1523
|
+
var pr = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
1524
1524
|
function wt(t, e, r) {
|
|
1525
1525
|
if (e = e || {}, !(!t.country && !t.countryCallingCode)) {
|
|
1526
1526
|
r = new R(r), r.selectNumberingPlan(t.country, t.countryCallingCode);
|
|
@@ -1528,7 +1528,7 @@ function wt(t, e, r) {
|
|
|
1528
1528
|
if (Y(n, r.nationalNumberPattern())) {
|
|
1529
1529
|
if (nt(n, "FIXED_LINE", r))
|
|
1530
1530
|
return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || nt(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
1531
|
-
for (var d = ur(
|
|
1531
|
+
for (var d = ur(pr), o; !(o = d()).done; ) {
|
|
1532
1532
|
var i = o.value;
|
|
1533
1533
|
if (nt(n, i, r))
|
|
1534
1534
|
return i;
|
|
@@ -1540,7 +1540,7 @@ function nt(t, e, r) {
|
|
|
1540
1540
|
var n = r.type(e);
|
|
1541
1541
|
return !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(t.length) < 0 ? !1 : Y(t, n.pattern());
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function hr(t, e, r) {
|
|
1544
1544
|
if (e = e || {}, r = new R(r), r.selectNumberingPlan(t.country, t.countryCallingCode), r.hasTypes())
|
|
1545
1545
|
return wt(t, e, r.metadata) !== void 0;
|
|
1546
1546
|
var n = e.v2 ? t.nationalNumber : t.phone;
|
|
@@ -1944,7 +1944,7 @@ var on = /* @__PURE__ */ (function() {
|
|
|
1944
1944
|
throw new TypeError("First argument must be a string");
|
|
1945
1945
|
if (e[0] === "+" && !r)
|
|
1946
1946
|
throw new TypeError("`metadata` argument not passed");
|
|
1947
|
-
if (
|
|
1947
|
+
if (he(r) && he(r.countries)) {
|
|
1948
1948
|
n = r;
|
|
1949
1949
|
var d = e;
|
|
1950
1950
|
if (!ln.test(d))
|
|
@@ -1983,7 +1983,7 @@ var on = /* @__PURE__ */ (function() {
|
|
|
1983
1983
|
}, {
|
|
1984
1984
|
key: "isValid",
|
|
1985
1985
|
value: function() {
|
|
1986
|
-
return
|
|
1986
|
+
return hr(this, {
|
|
1987
1987
|
v2: !0
|
|
1988
1988
|
}, this.getMetadata());
|
|
1989
1989
|
}
|
|
@@ -2075,13 +2075,13 @@ function un(t, e, r) {
|
|
|
2075
2075
|
function fn(t, e) {
|
|
2076
2076
|
if (e && (lt(e) == "object" || typeof e == "function")) return e;
|
|
2077
2077
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2078
|
-
return
|
|
2078
|
+
return pn(t);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function pn(t) {
|
|
2081
2081
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2082
2082
|
return t;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function hn(t, e) {
|
|
2085
2085
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2086
2086
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Ee(t, e);
|
|
2087
2087
|
}
|
|
@@ -2139,7 +2139,7 @@ var X = /* @__PURE__ */ (function(t) {
|
|
|
2139
2139
|
var n;
|
|
2140
2140
|
return cn(this, e), n = un(this, e, [r]), Object.setPrototypeOf(n, e.prototype), n.name = n.constructor.name, n;
|
|
2141
2141
|
}
|
|
2142
|
-
return
|
|
2142
|
+
return hn(e, t), $n(e);
|
|
2143
2143
|
})(/* @__PURE__ */ $t(Error)), r1 = new RegExp("(?:" + V1() + ")$", "i");
|
|
2144
2144
|
function gn(t) {
|
|
2145
2145
|
var e = t.search(r1);
|
|
@@ -2545,7 +2545,7 @@ function n0(t) {
|
|
|
2545
2545
|
i ? (s = o, l = i) : (s = void 0, l = o), d && (s = Kn({
|
|
2546
2546
|
defaultCountry: d
|
|
2547
2547
|
}, s));
|
|
2548
|
-
else if (
|
|
2548
|
+
else if (he(d))
|
|
2549
2549
|
o ? (s = d, l = o) : l = d;
|
|
2550
2550
|
else throw new Error("Invalid second argument: ".concat(d));
|
|
2551
2551
|
return {
|
|
@@ -2627,16 +2627,16 @@ function $0(t, e) {
|
|
|
2627
2627
|
const r = G1(e, t);
|
|
2628
2628
|
return r ? r?.formatNational() : e;
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2630
|
+
function p1(t, e) {
|
|
2631
2631
|
return G1(e, t)?.isValid() ?? !1;
|
|
2632
2632
|
}
|
|
2633
2633
|
const c0 = l0(Ct);
|
|
2634
2634
|
function u0(t) {
|
|
2635
2635
|
return t.toUpperCase().replace(/./g, (e) => String.fromCodePoint(127397 + e.charCodeAt(0)));
|
|
2636
2636
|
}
|
|
2637
|
-
const
|
|
2638
|
-
...
|
|
2639
|
-
...c0.filter((t) => !
|
|
2637
|
+
const h1 = ["FR"], B1 = [
|
|
2638
|
+
...h1,
|
|
2639
|
+
...c0.filter((t) => !h1.includes(t))
|
|
2640
2640
|
].map((t) => ({
|
|
2641
2641
|
code: t,
|
|
2642
2642
|
dial: "+" + et(t, Ct),
|
|
@@ -2727,14 +2727,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2727
2727
|
] : l;
|
|
2728
2728
|
}, []);
|
|
2729
2729
|
return g1(t, i, s, r?.class, r?.className);
|
|
2730
|
-
},
|
|
2730
|
+
}, p0 = (t, e) => {
|
|
2731
2731
|
const r = new Array(t.length + e.length);
|
|
2732
2732
|
for (let n = 0; n < t.length; n++)
|
|
2733
2733
|
r[n] = t[n];
|
|
2734
2734
|
for (let n = 0; n < e.length; n++)
|
|
2735
2735
|
r[t.length + n] = e[n];
|
|
2736
2736
|
return r;
|
|
2737
|
-
},
|
|
2737
|
+
}, h0 = (t, e) => ({
|
|
2738
2738
|
classGroupId: t,
|
|
2739
2739
|
validator: e
|
|
2740
2740
|
}), W1 = (t = /* @__PURE__ */ new Map(), e = null, r) => ({
|
|
@@ -2756,7 +2756,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2756
2756
|
getConflictingClassGroupIds: (i, a) => {
|
|
2757
2757
|
if (a) {
|
|
2758
2758
|
const s = n[i], l = r[i];
|
|
2759
|
-
return s ? l ?
|
|
2759
|
+
return s ? l ? p0(l, s) : s : l || b1;
|
|
2760
2760
|
}
|
|
2761
2761
|
return r[i] || b1;
|
|
2762
2762
|
}
|
|
@@ -2818,7 +2818,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
2818
2818
|
At(t(n), e, r, n);
|
|
2819
2819
|
return;
|
|
2820
2820
|
}
|
|
2821
|
-
e.validators === null && (e.validators = []), e.validators.push(
|
|
2821
|
+
e.validators === null && (e.validators = []), e.validators.push(h0(r, t));
|
|
2822
2822
|
}, x0 = (t, e, r, n) => {
|
|
2823
2823
|
const d = Object.entries(t), o = d.length;
|
|
2824
2824
|
for (let i = 0; i < o; i++) {
|
|
@@ -3006,7 +3006,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3006
3006
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
3007
3007
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
3008
3008
|
H0.test(t) && !D0.test(t)
|
|
3009
|
-
), St = () => !1, G0 = (t) => V0.test(t), B0 = (t) => j0.test(t), z0 = (t) => !
|
|
3009
|
+
), St = () => !1, G0 = (t) => V0.test(t), B0 = (t) => j0.test(t), z0 = (t) => !p(t) && !h(t), Z0 = (t) => re(t, r2, St), p = (t) => Y1.test(t), ie = (t) => re(t, n2, U0), _1 = (t) => re(t, ed, g), W0 = (t) => re(t, o2, Q1), K0 = (t) => re(t, d2, St), w1 = (t) => re(t, e2, St), q0 = (t) => re(t, t2, B0), De = (t) => re(t, i2, G0), h = (t) => J1.test(t), be = (t) => $e(t, n2), X0 = (t) => $e(t, d2), x1 = (t) => $e(t, e2), Y0 = (t) => $e(t, r2), J0 = (t) => $e(t, t2), Ve = (t) => $e(t, i2, !0), Q0 = (t) => $e(t, o2, !0), re = (t, e, r) => {
|
|
3010
3010
|
const n = Y1.exec(t);
|
|
3011
3011
|
return n ? n[1] ? e(n[1]) : r(n[2]) : !1;
|
|
3012
3012
|
}, $e = (t, e, r = !1) => {
|
|
@@ -3031,30 +3031,30 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3031
3031
|
"bottom-left",
|
|
3032
3032
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
3033
3033
|
"left-bottom"
|
|
3034
|
-
], z = () => [...B(),
|
|
3035
|
-
span: ["full", ee,
|
|
3036
|
-
}, ee,
|
|
3037
|
-
position: [
|
|
3034
|
+
], z = () => [...B(), h, p], Z = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], m = () => [h, p, s], O = () => [Q, "full", "auto", ...m()], ce = () => [ee, "none", "subgrid", h, p], Ie = () => ["auto", {
|
|
3035
|
+
span: ["full", ee, h, p]
|
|
3036
|
+
}, ee, h, p], L = () => [ee, "auto", h, p], Me = () => ["auto", "min", "max", "fr", h, p], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...m()], v = () => [Q, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], ue = () => [Q, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...m()], ne = () => [Q, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...m()], f = () => [t, h, p], P = () => [...B(), x1, w1, {
|
|
3037
|
+
position: [h, p]
|
|
3038
3038
|
}], G = () => ["no-repeat", {
|
|
3039
3039
|
repeat: ["", "x", "y", "space", "round"]
|
|
3040
3040
|
}], de = () => ["auto", "cover", "contain", Y0, Z0, {
|
|
3041
|
-
size: [
|
|
3041
|
+
size: [h, p]
|
|
3042
3042
|
}], K = () => [it, be, ie], M = () => [
|
|
3043
3043
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3044
3044
|
"",
|
|
3045
3045
|
"none",
|
|
3046
3046
|
"full",
|
|
3047
3047
|
l,
|
|
3048
|
-
|
|
3049
|
-
|
|
3048
|
+
h,
|
|
3049
|
+
p
|
|
3050
3050
|
], T = () => ["", g, be, ie], Te = () => ["solid", "dashed", "dotted", "double"], Nt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => [g, it, x1, w1], kt = () => [
|
|
3051
3051
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3052
3052
|
"",
|
|
3053
3053
|
"none",
|
|
3054
3054
|
b,
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
], Le = () => ["none", g,
|
|
3055
|
+
h,
|
|
3056
|
+
p
|
|
3057
|
+
], Le = () => ["none", g, h, p], Fe = () => ["none", g, h, p], tt = () => [g, h, p], He = () => [Q, "full", ...m()];
|
|
3058
3058
|
return {
|
|
3059
3059
|
cacheSize: 500,
|
|
3060
3060
|
theme: {
|
|
@@ -3087,7 +3087,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3087
3087
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3088
3088
|
*/
|
|
3089
3089
|
aspect: [{
|
|
3090
|
-
aspect: ["auto", "square", Q,
|
|
3090
|
+
aspect: ["auto", "square", Q, p, h, x]
|
|
3091
3091
|
}],
|
|
3092
3092
|
/**
|
|
3093
3093
|
* Container
|
|
@@ -3100,7 +3100,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3100
3100
|
* @see https://tailwindcss.com/docs/columns
|
|
3101
3101
|
*/
|
|
3102
3102
|
columns: [{
|
|
3103
|
-
columns: [g,
|
|
3103
|
+
columns: [g, p, h, a]
|
|
3104
3104
|
}],
|
|
3105
3105
|
/**
|
|
3106
3106
|
* Break After
|
|
@@ -3326,7 +3326,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3326
3326
|
* @see https://tailwindcss.com/docs/z-index
|
|
3327
3327
|
*/
|
|
3328
3328
|
z: [{
|
|
3329
|
-
z: [ee, "auto",
|
|
3329
|
+
z: [ee, "auto", h, p]
|
|
3330
3330
|
}],
|
|
3331
3331
|
// ------------------------
|
|
3332
3332
|
// --- Flexbox and Grid ---
|
|
@@ -3357,28 +3357,28 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3357
3357
|
* @see https://tailwindcss.com/docs/flex
|
|
3358
3358
|
*/
|
|
3359
3359
|
flex: [{
|
|
3360
|
-
flex: [g, Q, "auto", "initial", "none",
|
|
3360
|
+
flex: [g, Q, "auto", "initial", "none", p]
|
|
3361
3361
|
}],
|
|
3362
3362
|
/**
|
|
3363
3363
|
* Flex Grow
|
|
3364
3364
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
3365
3365
|
*/
|
|
3366
3366
|
grow: [{
|
|
3367
|
-
grow: ["", g,
|
|
3367
|
+
grow: ["", g, h, p]
|
|
3368
3368
|
}],
|
|
3369
3369
|
/**
|
|
3370
3370
|
* Flex Shrink
|
|
3371
3371
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
3372
3372
|
*/
|
|
3373
3373
|
shrink: [{
|
|
3374
|
-
shrink: ["", g,
|
|
3374
|
+
shrink: ["", g, h, p]
|
|
3375
3375
|
}],
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Order
|
|
3378
3378
|
* @see https://tailwindcss.com/docs/order
|
|
3379
3379
|
*/
|
|
3380
3380
|
order: [{
|
|
3381
|
-
order: [ee, "first", "last", "none",
|
|
3381
|
+
order: [ee, "first", "last", "none", h, p]
|
|
3382
3382
|
}],
|
|
3383
3383
|
/**
|
|
3384
3384
|
* Grid Template Columns
|
|
@@ -3867,7 +3867,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3867
3867
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
3868
3868
|
*/
|
|
3869
3869
|
"font-stretch": [{
|
|
3870
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", it,
|
|
3870
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", it, p]
|
|
3871
3871
|
}],
|
|
3872
3872
|
/**
|
|
3873
3873
|
* Font Family
|
|
@@ -3881,7 +3881,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3881
3881
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
3882
3882
|
*/
|
|
3883
3883
|
"font-features": [{
|
|
3884
|
-
"font-features": [
|
|
3884
|
+
"font-features": [p]
|
|
3885
3885
|
}],
|
|
3886
3886
|
/**
|
|
3887
3887
|
* Font Variant Numeric
|
|
@@ -3918,14 +3918,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3918
3918
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3919
3919
|
*/
|
|
3920
3920
|
tracking: [{
|
|
3921
|
-
tracking: [d,
|
|
3921
|
+
tracking: [d, h, p]
|
|
3922
3922
|
}],
|
|
3923
3923
|
/**
|
|
3924
3924
|
* Line Clamp
|
|
3925
3925
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3926
3926
|
*/
|
|
3927
3927
|
"line-clamp": [{
|
|
3928
|
-
"line-clamp": [g, "none",
|
|
3928
|
+
"line-clamp": [g, "none", h, _1]
|
|
3929
3929
|
}],
|
|
3930
3930
|
/**
|
|
3931
3931
|
* Line Height
|
|
@@ -3943,7 +3943,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3943
3943
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3944
3944
|
*/
|
|
3945
3945
|
"list-image": [{
|
|
3946
|
-
"list-image": ["none",
|
|
3946
|
+
"list-image": ["none", h, p]
|
|
3947
3947
|
}],
|
|
3948
3948
|
/**
|
|
3949
3949
|
* List Style Position
|
|
@@ -3957,7 +3957,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3957
3957
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3958
3958
|
*/
|
|
3959
3959
|
"list-style-type": [{
|
|
3960
|
-
list: ["disc", "decimal", "none",
|
|
3960
|
+
list: ["disc", "decimal", "none", h, p]
|
|
3961
3961
|
}],
|
|
3962
3962
|
/**
|
|
3963
3963
|
* Text Alignment
|
|
@@ -3998,7 +3998,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
3998
3998
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3999
3999
|
*/
|
|
4000
4000
|
"text-decoration-thickness": [{
|
|
4001
|
-
decoration: [g, "from-font", "auto",
|
|
4001
|
+
decoration: [g, "from-font", "auto", h, ie]
|
|
4002
4002
|
}],
|
|
4003
4003
|
/**
|
|
4004
4004
|
* Text Decoration Color
|
|
@@ -4012,7 +4012,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4012
4012
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
4013
4013
|
*/
|
|
4014
4014
|
"underline-offset": [{
|
|
4015
|
-
"underline-offset": [g, "auto",
|
|
4015
|
+
"underline-offset": [g, "auto", h, p]
|
|
4016
4016
|
}],
|
|
4017
4017
|
/**
|
|
4018
4018
|
* Text Transform
|
|
@@ -4043,7 +4043,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4043
4043
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
4044
4044
|
*/
|
|
4045
4045
|
"vertical-align": [{
|
|
4046
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
4046
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h, p]
|
|
4047
4047
|
}],
|
|
4048
4048
|
/**
|
|
4049
4049
|
* Whitespace
|
|
@@ -4078,7 +4078,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4078
4078
|
* @see https://tailwindcss.com/docs/content
|
|
4079
4079
|
*/
|
|
4080
4080
|
content: [{
|
|
4081
|
-
content: ["none",
|
|
4081
|
+
content: ["none", h, p]
|
|
4082
4082
|
}],
|
|
4083
4083
|
// -------------------
|
|
4084
4084
|
// --- Backgrounds ---
|
|
@@ -4133,9 +4133,9 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4133
4133
|
bg: ["none", {
|
|
4134
4134
|
linear: [{
|
|
4135
4135
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
4136
|
-
}, ee,
|
|
4137
|
-
radial: ["",
|
|
4138
|
-
conic: [ee,
|
|
4136
|
+
}, ee, h, p],
|
|
4137
|
+
radial: ["", h, p],
|
|
4138
|
+
conic: [ee, h, p]
|
|
4139
4139
|
}, J0, q0]
|
|
4140
4140
|
}],
|
|
4141
4141
|
/**
|
|
@@ -4506,7 +4506,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4506
4506
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
4507
4507
|
*/
|
|
4508
4508
|
"outline-offset": [{
|
|
4509
|
-
"outline-offset": [g,
|
|
4509
|
+
"outline-offset": [g, h, p]
|
|
4510
4510
|
}],
|
|
4511
4511
|
/**
|
|
4512
4512
|
* Outline Width
|
|
@@ -4632,7 +4632,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4632
4632
|
* @see https://tailwindcss.com/docs/opacity
|
|
4633
4633
|
*/
|
|
4634
4634
|
opacity: [{
|
|
4635
|
-
opacity: [g,
|
|
4635
|
+
opacity: [g, h, p]
|
|
4636
4636
|
}],
|
|
4637
4637
|
/**
|
|
4638
4638
|
* Mix Blend Mode
|
|
@@ -4754,7 +4754,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4754
4754
|
"mask-y-to": f()
|
|
4755
4755
|
}],
|
|
4756
4756
|
"mask-image-radial": [{
|
|
4757
|
-
"mask-radial": [
|
|
4757
|
+
"mask-radial": [h, p]
|
|
4758
4758
|
}],
|
|
4759
4759
|
"mask-image-radial-from-pos": [{
|
|
4760
4760
|
"mask-radial-from": k()
|
|
@@ -4842,7 +4842,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4842
4842
|
* @see https://tailwindcss.com/docs/mask-image
|
|
4843
4843
|
*/
|
|
4844
4844
|
"mask-image": [{
|
|
4845
|
-
mask: ["none",
|
|
4845
|
+
mask: ["none", h, p]
|
|
4846
4846
|
}],
|
|
4847
4847
|
// ---------------
|
|
4848
4848
|
// --- Filters ---
|
|
@@ -4856,8 +4856,8 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4856
4856
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4857
4857
|
"",
|
|
4858
4858
|
"none",
|
|
4859
|
-
|
|
4860
|
-
|
|
4859
|
+
h,
|
|
4860
|
+
p
|
|
4861
4861
|
]
|
|
4862
4862
|
}],
|
|
4863
4863
|
/**
|
|
@@ -4872,14 +4872,14 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4872
4872
|
* @see https://tailwindcss.com/docs/brightness
|
|
4873
4873
|
*/
|
|
4874
4874
|
brightness: [{
|
|
4875
|
-
brightness: [g,
|
|
4875
|
+
brightness: [g, h, p]
|
|
4876
4876
|
}],
|
|
4877
4877
|
/**
|
|
4878
4878
|
* Contrast
|
|
4879
4879
|
* @see https://tailwindcss.com/docs/contrast
|
|
4880
4880
|
*/
|
|
4881
4881
|
contrast: [{
|
|
4882
|
-
contrast: [g,
|
|
4882
|
+
contrast: [g, h, p]
|
|
4883
4883
|
}],
|
|
4884
4884
|
/**
|
|
4885
4885
|
* Drop Shadow
|
|
@@ -4907,35 +4907,35 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4907
4907
|
* @see https://tailwindcss.com/docs/grayscale
|
|
4908
4908
|
*/
|
|
4909
4909
|
grayscale: [{
|
|
4910
|
-
grayscale: ["", g,
|
|
4910
|
+
grayscale: ["", g, h, p]
|
|
4911
4911
|
}],
|
|
4912
4912
|
/**
|
|
4913
4913
|
* Hue Rotate
|
|
4914
4914
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
4915
4915
|
*/
|
|
4916
4916
|
"hue-rotate": [{
|
|
4917
|
-
"hue-rotate": [g,
|
|
4917
|
+
"hue-rotate": [g, h, p]
|
|
4918
4918
|
}],
|
|
4919
4919
|
/**
|
|
4920
4920
|
* Invert
|
|
4921
4921
|
* @see https://tailwindcss.com/docs/invert
|
|
4922
4922
|
*/
|
|
4923
4923
|
invert: [{
|
|
4924
|
-
invert: ["", g,
|
|
4924
|
+
invert: ["", g, h, p]
|
|
4925
4925
|
}],
|
|
4926
4926
|
/**
|
|
4927
4927
|
* Saturate
|
|
4928
4928
|
* @see https://tailwindcss.com/docs/saturate
|
|
4929
4929
|
*/
|
|
4930
4930
|
saturate: [{
|
|
4931
|
-
saturate: [g,
|
|
4931
|
+
saturate: [g, h, p]
|
|
4932
4932
|
}],
|
|
4933
4933
|
/**
|
|
4934
4934
|
* Sepia
|
|
4935
4935
|
* @see https://tailwindcss.com/docs/sepia
|
|
4936
4936
|
*/
|
|
4937
4937
|
sepia: [{
|
|
4938
|
-
sepia: ["", g,
|
|
4938
|
+
sepia: ["", g, h, p]
|
|
4939
4939
|
}],
|
|
4940
4940
|
/**
|
|
4941
4941
|
* Backdrop Filter
|
|
@@ -4946,8 +4946,8 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4946
4946
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4947
4947
|
"",
|
|
4948
4948
|
"none",
|
|
4949
|
-
|
|
4950
|
-
|
|
4949
|
+
h,
|
|
4950
|
+
p
|
|
4951
4951
|
]
|
|
4952
4952
|
}],
|
|
4953
4953
|
/**
|
|
@@ -4962,56 +4962,56 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
4962
4962
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
4963
4963
|
*/
|
|
4964
4964
|
"backdrop-brightness": [{
|
|
4965
|
-
"backdrop-brightness": [g,
|
|
4965
|
+
"backdrop-brightness": [g, h, p]
|
|
4966
4966
|
}],
|
|
4967
4967
|
/**
|
|
4968
4968
|
* Backdrop Contrast
|
|
4969
4969
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
4970
4970
|
*/
|
|
4971
4971
|
"backdrop-contrast": [{
|
|
4972
|
-
"backdrop-contrast": [g,
|
|
4972
|
+
"backdrop-contrast": [g, h, p]
|
|
4973
4973
|
}],
|
|
4974
4974
|
/**
|
|
4975
4975
|
* Backdrop Grayscale
|
|
4976
4976
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
4977
4977
|
*/
|
|
4978
4978
|
"backdrop-grayscale": [{
|
|
4979
|
-
"backdrop-grayscale": ["", g,
|
|
4979
|
+
"backdrop-grayscale": ["", g, h, p]
|
|
4980
4980
|
}],
|
|
4981
4981
|
/**
|
|
4982
4982
|
* Backdrop Hue Rotate
|
|
4983
4983
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
4984
4984
|
*/
|
|
4985
4985
|
"backdrop-hue-rotate": [{
|
|
4986
|
-
"backdrop-hue-rotate": [g,
|
|
4986
|
+
"backdrop-hue-rotate": [g, h, p]
|
|
4987
4987
|
}],
|
|
4988
4988
|
/**
|
|
4989
4989
|
* Backdrop Invert
|
|
4990
4990
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
4991
4991
|
*/
|
|
4992
4992
|
"backdrop-invert": [{
|
|
4993
|
-
"backdrop-invert": ["", g,
|
|
4993
|
+
"backdrop-invert": ["", g, h, p]
|
|
4994
4994
|
}],
|
|
4995
4995
|
/**
|
|
4996
4996
|
* Backdrop Opacity
|
|
4997
4997
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
4998
4998
|
*/
|
|
4999
4999
|
"backdrop-opacity": [{
|
|
5000
|
-
"backdrop-opacity": [g,
|
|
5000
|
+
"backdrop-opacity": [g, h, p]
|
|
5001
5001
|
}],
|
|
5002
5002
|
/**
|
|
5003
5003
|
* Backdrop Saturate
|
|
5004
5004
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
5005
5005
|
*/
|
|
5006
5006
|
"backdrop-saturate": [{
|
|
5007
|
-
"backdrop-saturate": [g,
|
|
5007
|
+
"backdrop-saturate": [g, h, p]
|
|
5008
5008
|
}],
|
|
5009
5009
|
/**
|
|
5010
5010
|
* Backdrop Sepia
|
|
5011
5011
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
5012
5012
|
*/
|
|
5013
5013
|
"backdrop-sepia": [{
|
|
5014
|
-
"backdrop-sepia": ["", g,
|
|
5014
|
+
"backdrop-sepia": ["", g, h, p]
|
|
5015
5015
|
}],
|
|
5016
5016
|
// --------------
|
|
5017
5017
|
// --- Tables ---
|
|
@@ -5066,7 +5066,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5066
5066
|
* @see https://tailwindcss.com/docs/transition-property
|
|
5067
5067
|
*/
|
|
5068
5068
|
transition: [{
|
|
5069
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
5069
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", h, p]
|
|
5070
5070
|
}],
|
|
5071
5071
|
/**
|
|
5072
5072
|
* Transition Behavior
|
|
@@ -5080,28 +5080,28 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5080
5080
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
5081
5081
|
*/
|
|
5082
5082
|
duration: [{
|
|
5083
|
-
duration: [g, "initial",
|
|
5083
|
+
duration: [g, "initial", h, p]
|
|
5084
5084
|
}],
|
|
5085
5085
|
/**
|
|
5086
5086
|
* Transition Timing Function
|
|
5087
5087
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
5088
5088
|
*/
|
|
5089
5089
|
ease: [{
|
|
5090
|
-
ease: ["linear", "initial", I,
|
|
5090
|
+
ease: ["linear", "initial", I, h, p]
|
|
5091
5091
|
}],
|
|
5092
5092
|
/**
|
|
5093
5093
|
* Transition Delay
|
|
5094
5094
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
5095
5095
|
*/
|
|
5096
5096
|
delay: [{
|
|
5097
|
-
delay: [g,
|
|
5097
|
+
delay: [g, h, p]
|
|
5098
5098
|
}],
|
|
5099
5099
|
/**
|
|
5100
5100
|
* Animation
|
|
5101
5101
|
* @see https://tailwindcss.com/docs/animation
|
|
5102
5102
|
*/
|
|
5103
5103
|
animate: [{
|
|
5104
|
-
animate: ["none", H,
|
|
5104
|
+
animate: ["none", H, h, p]
|
|
5105
5105
|
}],
|
|
5106
5106
|
// ------------------
|
|
5107
5107
|
// --- Transforms ---
|
|
@@ -5118,7 +5118,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5118
5118
|
* @see https://tailwindcss.com/docs/perspective
|
|
5119
5119
|
*/
|
|
5120
5120
|
perspective: [{
|
|
5121
|
-
perspective: [A,
|
|
5121
|
+
perspective: [A, h, p]
|
|
5122
5122
|
}],
|
|
5123
5123
|
/**
|
|
5124
5124
|
* Perspective Origin
|
|
@@ -5214,7 +5214,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5214
5214
|
* @see https://tailwindcss.com/docs/transform
|
|
5215
5215
|
*/
|
|
5216
5216
|
transform: [{
|
|
5217
|
-
transform: [
|
|
5217
|
+
transform: [h, p, "", "none", "gpu", "cpu"]
|
|
5218
5218
|
}],
|
|
5219
5219
|
/**
|
|
5220
5220
|
* Transform Origin
|
|
@@ -5299,7 +5299,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5299
5299
|
* @see https://tailwindcss.com/docs/cursor
|
|
5300
5300
|
*/
|
|
5301
5301
|
cursor: [{
|
|
5302
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
5302
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", h, p]
|
|
5303
5303
|
}],
|
|
5304
5304
|
/**
|
|
5305
5305
|
* Field Sizing
|
|
@@ -5549,7 +5549,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5549
5549
|
* @see https://tailwindcss.com/docs/will-change
|
|
5550
5550
|
*/
|
|
5551
5551
|
"will-change": [{
|
|
5552
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
5552
|
+
"will-change": ["auto", "scroll", "contents", "transform", h, p]
|
|
5553
5553
|
}],
|
|
5554
5554
|
// -----------
|
|
5555
5555
|
// --- SVG ---
|
|
@@ -5642,7 +5642,7 @@ const y1 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, g1 = Z1, R
|
|
|
5642
5642
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
5643
5643
|
};
|
|
5644
5644
|
}, rd = /* @__PURE__ */ M0(td);
|
|
5645
|
-
function
|
|
5645
|
+
function pt(...t) {
|
|
5646
5646
|
return rd(Z1(t));
|
|
5647
5647
|
}
|
|
5648
5648
|
function P1(t) {
|
|
@@ -5688,7 +5688,7 @@ function E1(t, e) {
|
|
|
5688
5688
|
return _`
|
|
5689
5689
|
<button
|
|
5690
5690
|
type=${r}
|
|
5691
|
-
class=${
|
|
5691
|
+
class=${pt(dd({ variant: n, size: d }), t.class)}
|
|
5692
5692
|
?disabled=${o}
|
|
5693
5693
|
@click=${i}
|
|
5694
5694
|
>
|
|
@@ -5752,7 +5752,7 @@ class $d {
|
|
|
5752
5752
|
return this.render(...r);
|
|
5753
5753
|
}
|
|
5754
5754
|
}
|
|
5755
|
-
class
|
|
5755
|
+
class ht extends $d {
|
|
5756
5756
|
constructor(e) {
|
|
5757
5757
|
if (super(e), this.it = C, e.type !== sd.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
5758
5758
|
}
|
|
@@ -5766,8 +5766,8 @@ class pt extends $d {
|
|
|
5766
5766
|
return r.raw = r, this._t = { _$litType$: this.constructor.resultType, strings: r, values: [] };
|
|
5767
5767
|
}
|
|
5768
5768
|
}
|
|
5769
|
-
|
|
5770
|
-
const cd = ld(
|
|
5769
|
+
ht.directiveName = "unsafeHTML", ht.resultType = 1;
|
|
5770
|
+
const cd = ld(ht), ud = Re(
|
|
5771
5771
|
"pay:appearance-none pay:peer pay:block pay:w-4 pay:h-4 pay:border pay:border-input pay:rounded-full pay:shrink-0 pay:cursor-pointer pay:shadow-xs pay:outline-none pay:transition-[color,box-shadow] pay:focus-visible:border-ring pay:focus-visible:ring-[3px] pay:focus-visible:ring-ring/50"
|
|
5772
5772
|
), fd = Re(
|
|
5773
5773
|
"pay:pointer-events-none pay:absolute pay:size-2 pay:rounded-full pay:bg-primary pay:top-1/2 pay:left-1/2 pay:-translate-x-1/2 pay:-translate-y-1/2 pay:scale-0 pay:peer-checked:scale-100 pay:transition-transform pay:duration-200"
|
|
@@ -5801,7 +5801,7 @@ const s2 = Re(
|
|
|
5801
5801
|
}
|
|
5802
5802
|
}
|
|
5803
5803
|
);
|
|
5804
|
-
function
|
|
5804
|
+
function pd(t) {
|
|
5805
5805
|
return _`
|
|
5806
5806
|
<label class=${s2({ size: "method" })}>
|
|
5807
5807
|
${a2(t)}
|
|
@@ -5831,9 +5831,9 @@ function A1(t) {
|
|
|
5831
5831
|
</label>
|
|
5832
5832
|
`;
|
|
5833
5833
|
}
|
|
5834
|
-
const
|
|
5834
|
+
const hd = Re(
|
|
5835
5835
|
"pay:file:text-foreground pay:placeholder:text-muted-foreground pay:selection:bg-primary pay:selection:text-primary-foreground pay:border-input pay:h-9 pay:w-full pay:min-w-0 pay:rounded-md pay:border pay:bg-transparent pay:px-3 pay:py-1 pay:text-sm pay:shadow-xs pay:transition-[color,box-shadow] pay:outline-none pay:disabled:pointer-events-none pay:disabled:cursor-not-allowed pay:disabled:opacity-50 pay:focus-visible:border-ring pay:focus-visible:ring-ring/50 pay:focus-visible:ring-[3px] pay:aria-invalid:ring-destructive/20 pay:aria-invalid:border-destructive"
|
|
5836
|
-
), Ue =
|
|
5836
|
+
), Ue = hd(), md = _`<svg
|
|
5837
5837
|
class="pay:size-4 pay:text-muted-foreground"
|
|
5838
5838
|
viewBox="0 0 24 24"
|
|
5839
5839
|
fill="none"
|
|
@@ -5889,7 +5889,7 @@ var vd = Object.defineProperty, E = (t, e, r, n) => {
|
|
|
5889
5889
|
};
|
|
5890
5890
|
class w extends Ce {
|
|
5891
5891
|
constructor() {
|
|
5892
|
-
super(...arguments), this.token = "", this.currency = "EUR", this.defaultAmount = "", this.defaultReference = "", this.readOnlyAmount = !1, this.customerName = "", this.customerEmail = "", this.customerPhone = "", this.locale = "fr", this.payClientRef = "", this._amount = "", this._email = "", this._phone = "", this._paymentReference = "", this._method = "", this._channel = void 0, this._country = f0.code, this._loading = !1, this._success = !1, this._paymentMethods = [], this._methodsLoading = !0, this._methodsError = null, this._initialized = !1, this._t = ot("fr"), this._apiUrl = "https://
|
|
5892
|
+
super(...arguments), this.token = "", this.currency = "EUR", this.defaultAmount = "", this.defaultReference = "", this.readOnlyAmount = !1, this.customerName = "", this.customerEmail = "", this.customerPhone = "", this.locale = "fr", this.payClientRef = "", this._amount = "", this._email = "", this._phone = "", this._paymentReference = "", this._method = "", this._channel = void 0, this._country = f0.code, this._loading = !1, this._success = !1, this._paymentMethods = [], this._methodsLoading = !0, this._methodsError = null, this._initialized = !1, this._t = ot("fr"), this._apiUrl = "https://payment.openhive-staging.eu/api/payment-methods";
|
|
5893
5893
|
}
|
|
5894
5894
|
createRenderRoot() {
|
|
5895
5895
|
return this;
|
|
@@ -5929,7 +5929,7 @@ class w extends Ce {
|
|
|
5929
5929
|
return !isNaN(r) && r > 0;
|
|
5930
5930
|
}
|
|
5931
5931
|
get _isValid() {
|
|
5932
|
-
return !this._amount || !this._validateAmount(this._amount) || !this._paymentReference || !this._method ? !1 : this._channel === "email" ? f1(this._email) : this._channel === "sms" ?
|
|
5932
|
+
return !this._amount || !this._validateAmount(this._amount) || !this._paymentReference || !this._method ? !1 : this._channel === "email" ? f1(this._email) : this._channel === "sms" ? p1(this._country, this._phone) : !0;
|
|
5933
5933
|
}
|
|
5934
5934
|
_onAmountInput(e) {
|
|
5935
5935
|
const r = e.target;
|
|
@@ -5991,7 +5991,7 @@ class w extends Ce {
|
|
|
5991
5991
|
}
|
|
5992
5992
|
_renderMethods() {
|
|
5993
5993
|
return this._methodsLoading ? id() : this._paymentMethods.map(
|
|
5994
|
-
(e) =>
|
|
5994
|
+
(e) => pd({
|
|
5995
5995
|
name: "payment-method",
|
|
5996
5996
|
value: e.id,
|
|
5997
5997
|
checked: this._method === e.id,
|
|
@@ -6022,7 +6022,7 @@ class w extends Ce {
|
|
|
6022
6022
|
`;
|
|
6023
6023
|
}
|
|
6024
6024
|
_renderForm() {
|
|
6025
|
-
const e = this._amount ? !this._validateAmount(this._amount) : !1, r = this._email ? !f1(this._email) : !1, n = this._phone ? !
|
|
6025
|
+
const e = this._amount ? !this._validateAmount(this._amount) : !1, r = this._email ? !f1(this._email) : !1, n = this._phone ? !p1(this._country, this._phone) : !1;
|
|
6026
6026
|
return _`
|
|
6027
6027
|
<form @submit=${this._onSubmit} class="pay:space-y-4">
|
|
6028
6028
|
<p
|
|
@@ -6038,7 +6038,7 @@ class w extends Ce {
|
|
|
6038
6038
|
id="amount"
|
|
6039
6039
|
type="text"
|
|
6040
6040
|
placeholder="0,00"
|
|
6041
|
-
class=${
|
|
6041
|
+
class=${pt(
|
|
6042
6042
|
Ue,
|
|
6043
6043
|
"pay:text-3xl pay:font-bold pay:text-center pay:h-10 pay:pr-12"
|
|
6044
6044
|
)}
|
|
@@ -6127,7 +6127,7 @@ class w extends Ce {
|
|
|
6127
6127
|
id="phone"
|
|
6128
6128
|
type="tel"
|
|
6129
6129
|
placeholder="07 12 34 56 78"
|
|
6130
|
-
class=${
|
|
6130
|
+
class=${pt(Ue, "pay:flex-1")}
|
|
6131
6131
|
.value=${this._phone}
|
|
6132
6132
|
@input=${this._onPhoneInput}
|
|
6133
6133
|
aria-required="true"
|