@lanaco/lnc-react-ui 4.0.114 → 4.0.116
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/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +4 -4
- package/dist/ContactSection.cjs +1 -1
- package/dist/ContactSection.js +46 -46
- package/dist/{DailyMotion-CUHIuSln.js → DailyMotion-BrbMSyj1.js} +1 -1
- package/dist/{DailyMotion-D46sLmkS.cjs → DailyMotion-CPQ6kDJJ.cjs} +1 -1
- package/dist/{Facebook-R53Rry9l.cjs → Facebook-DKhRiODC.cjs} +1 -1
- package/dist/{Facebook-aEQQxj-r.js → Facebook-Dw3my9_4.js} +1 -1
- package/dist/FaqSection.cjs +5 -5
- package/dist/FaqSection.js +66 -66
- package/dist/{FilePlayer-9FdL9kM0.js → FilePlayer-Ckx8dmB0.js} +1 -1
- package/dist/{FilePlayer-D9up8eWZ.cjs → FilePlayer-DlCyGLHB.cjs} +1 -1
- package/dist/{Kaltura-C170sgeD.cjs → Kaltura-31Xm8S1J.cjs} +1 -1
- package/dist/{Kaltura-Dziqci9-.js → Kaltura-qHdDvnjZ.js} +1 -1
- package/dist/{Mixcloud-Towpm_ct.cjs → Mixcloud-CP9Zq_TX.cjs} +1 -1
- package/dist/{Mixcloud-Cfn28kqf.js → Mixcloud-DvH0vfg5.js} +1 -1
- package/dist/{Mux-D0MPDKkM.js → Mux--JeF6dPG.js} +1 -1
- package/dist/{Mux-yqNOmuss.cjs → Mux-BlblTeid.cjs} +1 -1
- package/dist/{SearchSection-BUD-hnQA.cjs → SearchSection-BGK1Fxaj.cjs} +2 -2
- package/dist/{SearchSection-xe0nvARV.js → SearchSection-CsfURtvf.js} +77 -77
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/ShopCardsSection.cjs +4 -4
- package/dist/ShopCardsSection.js +4 -4
- package/dist/{SoundCloud-YZlcPffr.cjs → SoundCloud-1hd9TBSO.cjs} +1 -1
- package/dist/{SoundCloud-D85Da68L.js → SoundCloud-CKaavZky.js} +1 -1
- package/dist/{Streamable-Zj4FOeBP.js → Streamable-CZEPghiG.js} +1 -1
- package/dist/{Streamable-CJQf8evZ.cjs → Streamable-DLxq1ZNX.cjs} +1 -1
- package/dist/{Twitch-DC97YrR8.js → Twitch-BJeGquex.js} +1 -1
- package/dist/{Twitch-Ba2O5gTX.cjs → Twitch-Bb8e342z.cjs} +1 -1
- package/dist/{Vidyard-D9vYqvNv.js → Vidyard-CuGoX_VE.js} +1 -1
- package/dist/{Vidyard-BdNB5Wka.cjs → Vidyard-WNQdOeK1.cjs} +1 -1
- package/dist/{Vimeo-23LnW4uS.js → Vimeo-B9eKoxWn.js} +1 -1
- package/dist/{Vimeo-DatJiKS5.cjs → Vimeo-Da2vBv-V.cjs} +1 -1
- package/dist/{Wistia-d2TQ3m-s.js → Wistia-BB50IUif.js} +1 -1
- package/dist/{Wistia-D--UDN6c.cjs → Wistia-ZPcGhh1L.cjs} +1 -1
- package/dist/{YouTube-BEkcZxN7.cjs → YouTube-4RMnpdLL.cjs} +1 -1
- package/dist/{YouTube-x5-hc3s6.js → YouTube-CG6JL2_w.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -163,13 +163,13 @@
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
& .title__action {
|
|
166
|
-
color: var(--gray-950, #14161a);
|
|
167
|
-
background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
|
|
166
|
+
/* color: var(--gray-950, #14161a);
|
|
167
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.04)); */
|
|
168
168
|
white-space: nowrap;
|
|
169
169
|
|
|
170
|
-
&:hover {
|
|
170
|
+
/* &:hover {
|
|
171
171
|
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
172
|
-
}
|
|
172
|
+
} */
|
|
173
173
|
|
|
174
174
|
&:focus {
|
|
175
175
|
outline: none;
|
|
@@ -224,13 +224,13 @@ const T = N.div`
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
& .title__action {
|
|
227
|
-
color: var(--gray-950, #14161a);
|
|
228
|
-
background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
|
|
227
|
+
/* color: var(--gray-950, #14161a);
|
|
228
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.04)); */
|
|
229
229
|
white-space: nowrap;
|
|
230
230
|
|
|
231
|
-
&:hover {
|
|
231
|
+
/* &:hover {
|
|
232
232
|
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
233
|
-
}
|
|
233
|
+
} */
|
|
234
234
|
|
|
235
235
|
&:focus {
|
|
236
236
|
outline: none;
|
package/dist/ContactSection.cjs
CHANGED
|
@@ -300,4 +300,4 @@
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
`,pt=F.forwardRef(({title:e,description:s,image:t,phoneText:a,phones:l=[],emailText:n,emails:c=[],fullNamePlaceholderText:d="Name Surname",emailPlaceholderText:x="E-mail",subjectPlaceholderText:j="Subject",messagePlaceholderText:w="Message",messageMaxLength:S=250,hasAgrement:h=!1,agrementText:Z="I agree with Privacy policy.",submitText:W="Submit",onSubmit:T=()=>{}},E)=>{const{watch:K,handleSubmit:_,control:M}=ir(),L=K("message");return v.jsxs(ar,{ref:E,children:[v.jsxs("div",{className:"section__card",children:[v.jsx("img",{src:t,alt:"Contact",className:"card__image"}),v.jsxs("div",{className:"card__content",children:[(l==null?void 0:l.length)>0&&v.jsxs("div",{className:"card__tile",children:[v.jsx(Ze,{icon:" mng-lnc-phone--filled",sizeInUnits:"1.25rem",className:"tile__image"}),v.jsxs("div",{className:"tile__content",children:[v.jsx("div",{className:"tile__title",children:a}),v.jsx("div",{className:"tile__items",children:l==null?void 0:l.map((b,re)=>v.jsx("div",{className:"tile__item",children:b},`contanct-section-phone__${re}`))})]})]}),(c==null?void 0:c.length)>0&&v.jsxs("div",{className:"card__tile",children:[v.jsx(Ze,{icon:" mng-lnc-email-filled",sizeInUnits:"1.25rem",className:"tile__image"}),v.jsxs("div",{className:"tile__content",children:[v.jsx("div",{className:"tile__title",children:n}),v.jsx("div",{className:"tile__items",children:c==null?void 0:c.map((b,re)=>v.jsx("div",{className:"tile__item",children:b},`contanct-section-email__${re}`))})]})]})]})]}),v.jsx("div",{className:"section__divider"}),v.jsxs("div",{className:"section__form",children:[v.jsxs("div",{children:[e&&v.jsx("div",{className:"form__title",children:e}),s&&v.jsx("div",{className:"form__description",children:s})]}),v.jsx("div",{children:v.jsxs("div",{className:"form__fields",children:[v.jsxs("div",{className:"form__field",children:[v.jsx(de,{control:M,name:"fullName",render:({field:b})=>v.jsx(Ne,{...b,className:"field__text-input",color:"neutral",placeholder:d,debounceTime:200})}),v.jsx(de,{control:M,name:"email",render:({field:b})=>v.jsx(Ne,{...b,className:"field__text-input",color:"neutral",placeholder:x,debounceTime:200})})]}),v.jsx("div",{className:"form__field",children:v.jsx(de,{control:M,name:"subject",render:({field:b})=>v.jsx(Ne,{...b,className:"field__text-input",color:"neutral",placeholder:j,debounceTime:200})})}),v.jsx("div",{className:"form__field",children:v.jsxs("div",{className:"field__wrapper",children:[v.jsx(de,{control:M,name:"message",render:({field:b})=>v.jsx(jt,{...b,className:"field__text-input text-area",color:"neutral",placeholder:w,debounceTime:200,minRows:7,maxLength:S})}),v.jsx("div",{className:"field__hint",children:`${(L==null?void 0:L.length)||0}/${S}`}),h&&v.jsx(de,{control:M,name:"agrement",render:({field:b})=>v.jsx(Pt,{...b,label:Z,size:"medium",className:"field__checkbox-input"})})]})}),v.jsx("div",{className:"form__field right",children:v.jsx(Ot,{text:W,onClick:_(T)})})]})})]})]})});pt.propTypes={title:U.PropTypes.string,description:U.PropTypes.string,image:U.PropTypes.string,phoneText:U.PropTypes.string,phones:U.PropTypes.array,emailText:U.PropTypes.string,emails:U.PropTypes.array,fullNamePlaceholderText:U.PropTypes.string,emailPlaceholderText:U.PropTypes.string,subjectPlaceholderText:U.PropTypes.string,messagePlaceholderText:U.PropTypes.string,messageMaxLength:U.PropTypes.number,hasAgrement:U.PropTypes.bool,agrementText:U.PropTypes.string,submitText:U.PropTypes.string,onSubmit:U.PropTypes.func};module.exports=pt;
|
|
303
|
+
`,pt=F.forwardRef(({title:e,description:s,image:t,phoneText:a="Phone",phones:l=[],emailText:n="Email",emails:c=[],fullNamePlaceholderText:d="Name Surname",emailPlaceholderText:x="E-mail",subjectPlaceholderText:j="Subject",messagePlaceholderText:w="Message",messageMaxLength:S=250,hasAgrement:h=!1,agrementText:Z="I agree with Privacy policy.",submitText:W="Submit",onSubmit:T=()=>{}},E)=>{const{watch:K,handleSubmit:_,control:M}=ir(),L=K("message");return v.jsxs(ar,{ref:E,children:[v.jsxs("div",{className:"section__card",children:[v.jsx("img",{src:t,alt:"Contact",className:"card__image"}),v.jsxs("div",{className:"card__content",children:[(l==null?void 0:l.length)>0&&v.jsxs("div",{className:"card__tile",children:[v.jsx(Ze,{icon:" mng-lnc-phone--filled",sizeInUnits:"1.25rem",className:"tile__image"}),v.jsxs("div",{className:"tile__content",children:[v.jsx("div",{className:"tile__title",children:a}),v.jsx("div",{className:"tile__items",children:l==null?void 0:l.map((b,re)=>v.jsx("div",{className:"tile__item",children:b},`contanct-section-phone__${re}`))})]})]}),(c==null?void 0:c.length)>0&&v.jsxs("div",{className:"card__tile",children:[v.jsx(Ze,{icon:" mng-lnc-email-filled",sizeInUnits:"1.25rem",className:"tile__image"}),v.jsxs("div",{className:"tile__content",children:[v.jsx("div",{className:"tile__title",children:n}),v.jsx("div",{className:"tile__items",children:c==null?void 0:c.map((b,re)=>v.jsx("div",{className:"tile__item",children:b},`contanct-section-email__${re}`))})]})]})]})]}),v.jsx("div",{className:"section__divider"}),v.jsxs("div",{className:"section__form",children:[v.jsxs("div",{children:[e&&v.jsx("div",{className:"form__title",children:e}),s&&v.jsx("div",{className:"form__description",children:s})]}),v.jsx("div",{children:v.jsxs("div",{className:"form__fields",children:[v.jsxs("div",{className:"form__field",children:[v.jsx(de,{control:M,name:"fullName",render:({field:b})=>v.jsx(Ne,{...b,className:"field__text-input",color:"neutral",placeholder:d,debounceTime:200})}),v.jsx(de,{control:M,name:"email",render:({field:b})=>v.jsx(Ne,{...b,className:"field__text-input",color:"neutral",placeholder:x,debounceTime:200})})]}),v.jsx("div",{className:"form__field",children:v.jsx(de,{control:M,name:"subject",render:({field:b})=>v.jsx(Ne,{...b,className:"field__text-input",color:"neutral",placeholder:j,debounceTime:200})})}),v.jsx("div",{className:"form__field",children:v.jsxs("div",{className:"field__wrapper",children:[v.jsx(de,{control:M,name:"message",render:({field:b})=>v.jsx(jt,{...b,className:"field__text-input text-area",color:"neutral",placeholder:w,debounceTime:200,minRows:7,maxLength:S})}),v.jsx("div",{className:"field__hint",children:`${(L==null?void 0:L.length)||0}/${S}`}),h&&v.jsx(de,{control:M,name:"agrement",render:({field:b})=>v.jsx(Pt,{...b,label:Z,size:"medium",className:"field__checkbox-input"})})]})}),v.jsx("div",{className:"form__field right",children:v.jsx(Ot,{text:W,onClick:_(T)})})]})})]})]})});pt.propTypes={title:U.PropTypes.string,description:U.PropTypes.string,image:U.PropTypes.string,phoneText:U.PropTypes.string,phones:U.PropTypes.array,emailText:U.PropTypes.string,emails:U.PropTypes.array,fullNamePlaceholderText:U.PropTypes.string,emailPlaceholderText:U.PropTypes.string,subjectPlaceholderText:U.PropTypes.string,messagePlaceholderText:U.PropTypes.string,messageMaxLength:U.PropTypes.number,hasAgrement:U.PropTypes.bool,agrementText:U.PropTypes.string,submitText:U.PropTypes.string,onSubmit:U.PropTypes.func};module.exports=pt;
|
package/dist/ContactSection.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as K, jsx as A } from "react/jsx-runtime";
|
|
2
2
|
import * as Je from "react";
|
|
3
3
|
import F, { forwardRef as Lt } from "react";
|
|
4
|
-
import { P } from "./index-CblbdqjE.js";
|
|
4
|
+
import { P as I } from "./index-CblbdqjE.js";
|
|
5
5
|
import Ot from "./CheckBoxInput.js";
|
|
6
6
|
import Te from "./TextInput.js";
|
|
7
7
|
import Rt from "./TextAreaInput.js";
|
|
8
8
|
import Qe from "./Icon.js";
|
|
9
9
|
import Mt from "./Button.js";
|
|
10
10
|
import { s as Ut } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
11
|
-
import { M as
|
|
11
|
+
import { M as Pt } from "./consts-BuFChS64.js";
|
|
12
12
|
var _e = (e) => e.type === "checkbox", oe = (e) => e instanceof Date, z = (e) => e == null;
|
|
13
13
|
const ct = (e) => typeof e == "object";
|
|
14
|
-
var L = (e) => !z(e) && !Array.isArray(e) && ct(e) && !oe(e), ft = (e) => L(e) && e.target ? _e(e.target) ? e.target.checked : e.target.value : e,
|
|
14
|
+
var L = (e) => !z(e) && !Array.isArray(e) && ct(e) && !oe(e), ft = (e) => L(e) && e.target ? _e(e.target) ? e.target.checked : e.target.value : e, It = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, yt = (e, s) => e.has(It(s)), Bt = (e) => {
|
|
15
15
|
const s = e.constructor && e.constructor.prototype;
|
|
16
16
|
return L(s) && s.hasOwnProperty("isPrototypeOf");
|
|
17
17
|
}, Re = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -72,7 +72,7 @@ const Ve = {
|
|
|
72
72
|
validate: "validate"
|
|
73
73
|
}, mt = F.createContext(null);
|
|
74
74
|
mt.displayName = "HookFormContext";
|
|
75
|
-
const
|
|
75
|
+
const Pe = () => F.useContext(mt);
|
|
76
76
|
var gt = (e, s, t, a = !0) => {
|
|
77
77
|
const l = {
|
|
78
78
|
defaultValues: s._defaultValues
|
|
@@ -86,9 +86,9 @@ var gt = (e, s, t, a = !0) => {
|
|
|
86
86
|
});
|
|
87
87
|
return l;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const Ie = typeof window < "u" ? Je.useLayoutEffect : Je.useEffect;
|
|
90
90
|
function zt(e) {
|
|
91
|
-
const s =
|
|
91
|
+
const s = Pe(), { control: t = s.control, disabled: a, name: l, exact: n } = e || {}, [d, c] = F.useState(t._formState), v = F.useRef({
|
|
92
92
|
isDirty: !1,
|
|
93
93
|
isLoading: !1,
|
|
94
94
|
dirtyFields: !1,
|
|
@@ -98,7 +98,7 @@ function zt(e) {
|
|
|
98
98
|
isValid: !1,
|
|
99
99
|
errors: !1
|
|
100
100
|
});
|
|
101
|
-
return
|
|
101
|
+
return Ie(() => t._subscribe({
|
|
102
102
|
name: l,
|
|
103
103
|
formState: v.current,
|
|
104
104
|
exact: n,
|
|
@@ -114,8 +114,8 @@ function zt(e) {
|
|
|
114
114
|
}
|
|
115
115
|
var te = (e) => typeof e == "string", ht = (e, s, t, a, l) => te(e) ? (a && s.watch.add(e), y(t, e, l)) : Array.isArray(e) ? e.map((n) => (a && s.watch.add(n), y(t, n))) : (a && (s.watchAll = !0), t);
|
|
116
116
|
function Wt(e) {
|
|
117
|
-
const s =
|
|
118
|
-
return
|
|
117
|
+
const s = Pe(), { control: t = s.control, name: a, defaultValue: l, disabled: n, exact: d } = e || {}, c = F.useRef(l), [v, O] = F.useState(t._getWatch(a, c.current));
|
|
118
|
+
return Ie(() => t._subscribe({
|
|
119
119
|
name: a,
|
|
120
120
|
formState: {
|
|
121
121
|
values: !0
|
|
@@ -125,7 +125,7 @@ function Wt(e) {
|
|
|
125
125
|
}), [a, t, n, d]), F.useEffect(() => t._removeUnmounted()), v;
|
|
126
126
|
}
|
|
127
127
|
function qt(e) {
|
|
128
|
-
const s =
|
|
128
|
+
const s = Pe(), { name: t, disabled: a, control: l = s.control, shouldUnregister: n } = e, d = yt(l._names.array, t), c = Wt({
|
|
129
129
|
control: l,
|
|
130
130
|
name: t,
|
|
131
131
|
defaultValue: y(l._formValues, t, y(l._defaultValues, t, e.defaultValue)),
|
|
@@ -193,9 +193,9 @@ function qt(e) {
|
|
|
193
193
|
...O.current.rules,
|
|
194
194
|
...$(O.current.disabled) ? { disabled: O.current.disabled } : {}
|
|
195
195
|
});
|
|
196
|
-
const G = (_,
|
|
196
|
+
const G = (_, P) => {
|
|
197
197
|
const M = y(l._fields, _);
|
|
198
|
-
M && M._f && (M._f.mount =
|
|
198
|
+
M && M._f && (M._f.mount = P);
|
|
199
199
|
};
|
|
200
200
|
if (G(t, !0), N) {
|
|
201
201
|
const _ = U(y(l._options.defaultValues, t));
|
|
@@ -427,8 +427,8 @@ var de = (e) => L(e) && !pe(e) ? e : {
|
|
|
427
427
|
const { ref: d, refs: c, required: v, maxLength: O, minLength: w, min: S, max: h, pattern: J, validate: H, name: E, valueAsNumber: N, mount: G } = e._f, _ = y(t, E);
|
|
428
428
|
if (!G || s.has(E))
|
|
429
429
|
return {};
|
|
430
|
-
const
|
|
431
|
-
l &&
|
|
430
|
+
const P = c ? c[0] : d, M = (x) => {
|
|
431
|
+
l && P.reportValidity && (P.setCustomValidity($(x) ? "" : x || ""), P.reportValidity());
|
|
432
432
|
}, b = {}, se = ze(d), ie = _e(d), ke = se || ie, X = (N || Be(d)) && C(d.value) && C(_) || we(d) && d.value === "" || _ === "" || Array.isArray(_) && !_.length, ne = Ht.bind(null, E, a, b), Q = (x, p, T, B = re.maxLength, W = re.minLength) => {
|
|
433
433
|
const ee = x ? p : T;
|
|
434
434
|
b[E] = {
|
|
@@ -443,7 +443,7 @@ var de = (e) => L(e) && !pe(e) ? e : {
|
|
|
443
443
|
if (x && (b[E] = {
|
|
444
444
|
type: re.required,
|
|
445
445
|
message: p,
|
|
446
|
-
ref:
|
|
446
|
+
ref: P,
|
|
447
447
|
...ne(re.required, p)
|
|
448
448
|
}, !a))
|
|
449
449
|
return M(p), b;
|
|
@@ -478,7 +478,7 @@ var de = (e) => L(e) && !pe(e) ? e : {
|
|
|
478
478
|
}
|
|
479
479
|
if (H) {
|
|
480
480
|
if (Z(H)) {
|
|
481
|
-
const x = await H(_, t), p = ut(x,
|
|
481
|
+
const x = await H(_, t), p = ut(x, P);
|
|
482
482
|
if (p && (b[E] = {
|
|
483
483
|
...p,
|
|
484
484
|
...ne(re.validate, p.message)
|
|
@@ -489,14 +489,14 @@ var de = (e) => L(e) && !pe(e) ? e : {
|
|
|
489
489
|
for (const p in H) {
|
|
490
490
|
if (!q(x) && !a)
|
|
491
491
|
break;
|
|
492
|
-
const T = ut(await H[p](_, t),
|
|
492
|
+
const T = ut(await H[p](_, t), P, p);
|
|
493
493
|
T && (x = {
|
|
494
494
|
...T,
|
|
495
495
|
...ne(p, T.message)
|
|
496
496
|
}, M(T.message), a && (b[E] = x));
|
|
497
497
|
}
|
|
498
498
|
if (!q(x) && (b[E] = {
|
|
499
|
-
ref:
|
|
499
|
+
ref: P,
|
|
500
500
|
...x
|
|
501
501
|
}, !a))
|
|
502
502
|
return b;
|
|
@@ -599,7 +599,7 @@ function sr(e = {}) {
|
|
|
599
599
|
k(t.errors, r, i), h.state.next({
|
|
600
600
|
errors: t.errors
|
|
601
601
|
});
|
|
602
|
-
},
|
|
602
|
+
}, P = (r) => {
|
|
603
603
|
t.errors = r, h.state.next({
|
|
604
604
|
errors: t.errors,
|
|
605
605
|
isValid: !1
|
|
@@ -987,7 +987,7 @@ function sr(e = {}) {
|
|
|
987
987
|
_setValid: E,
|
|
988
988
|
_setFieldArray: G,
|
|
989
989
|
_setDisabledField: $e,
|
|
990
|
-
_setErrors:
|
|
990
|
+
_setErrors: P,
|
|
991
991
|
_getFieldArray: p,
|
|
992
992
|
_reset: Ke,
|
|
993
993
|
_resetDefaultValues: () => Z(s.defaultValues) && s.defaultValues().then((r) => {
|
|
@@ -1085,7 +1085,7 @@ function ir(e = {}) {
|
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
1087
|
const n = s.current.control;
|
|
1088
|
-
return n._options = e,
|
|
1088
|
+
return n._options = e, Ie(() => {
|
|
1089
1089
|
const d = n._subscribe({
|
|
1090
1090
|
formState: n._proxyFormState,
|
|
1091
1091
|
callback: () => l({ ...n._formState }),
|
|
@@ -1365,7 +1365,7 @@ const ar = Ut.div`
|
|
|
1365
1365
|
display: none;
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
|
-
@media (max-width: ${
|
|
1368
|
+
@media (max-width: ${Pt + "px"}) {
|
|
1369
1369
|
flex-direction: column;
|
|
1370
1370
|
|
|
1371
1371
|
& .section__divider {
|
|
@@ -1423,9 +1423,9 @@ const ar = Ut.div`
|
|
|
1423
1423
|
title: e,
|
|
1424
1424
|
description: s,
|
|
1425
1425
|
image: t,
|
|
1426
|
-
phoneText: a,
|
|
1426
|
+
phoneText: a = "Phone",
|
|
1427
1427
|
phones: l = [],
|
|
1428
|
-
emailText: n,
|
|
1428
|
+
emailText: n = "Email",
|
|
1429
1429
|
emails: d = [],
|
|
1430
1430
|
fullNamePlaceholderText: c = "Name Surname",
|
|
1431
1431
|
emailPlaceholderText: v = "E-mail",
|
|
@@ -1438,7 +1438,7 @@ const ar = Ut.div`
|
|
|
1438
1438
|
onSubmit: E = () => {
|
|
1439
1439
|
}
|
|
1440
1440
|
}, N) => {
|
|
1441
|
-
const { watch: G, handleSubmit: _, control:
|
|
1441
|
+
const { watch: G, handleSubmit: _, control: P } = ir(), M = G("message");
|
|
1442
1442
|
return /* @__PURE__ */ K(ar, { ref: N, children: [
|
|
1443
1443
|
/* @__PURE__ */ K("div", { className: "section__card", children: [
|
|
1444
1444
|
/* @__PURE__ */ A("img", { src: t, alt: "Contact", className: "card__image" }),
|
|
@@ -1498,7 +1498,7 @@ const ar = Ut.div`
|
|
|
1498
1498
|
/* @__PURE__ */ A(
|
|
1499
1499
|
fe,
|
|
1500
1500
|
{
|
|
1501
|
-
control:
|
|
1501
|
+
control: P,
|
|
1502
1502
|
name: "fullName",
|
|
1503
1503
|
render: ({ field: b }) => /* @__PURE__ */ A(
|
|
1504
1504
|
Te,
|
|
@@ -1515,7 +1515,7 @@ const ar = Ut.div`
|
|
|
1515
1515
|
/* @__PURE__ */ A(
|
|
1516
1516
|
fe,
|
|
1517
1517
|
{
|
|
1518
|
-
control:
|
|
1518
|
+
control: P,
|
|
1519
1519
|
name: "email",
|
|
1520
1520
|
render: ({ field: b }) => /* @__PURE__ */ A(
|
|
1521
1521
|
Te,
|
|
@@ -1533,7 +1533,7 @@ const ar = Ut.div`
|
|
|
1533
1533
|
/* @__PURE__ */ A("div", { className: "form__field", children: /* @__PURE__ */ A(
|
|
1534
1534
|
fe,
|
|
1535
1535
|
{
|
|
1536
|
-
control:
|
|
1536
|
+
control: P,
|
|
1537
1537
|
name: "subject",
|
|
1538
1538
|
render: ({ field: b }) => /* @__PURE__ */ A(
|
|
1539
1539
|
Te,
|
|
@@ -1551,7 +1551,7 @@ const ar = Ut.div`
|
|
|
1551
1551
|
/* @__PURE__ */ A(
|
|
1552
1552
|
fe,
|
|
1553
1553
|
{
|
|
1554
|
-
control:
|
|
1554
|
+
control: P,
|
|
1555
1555
|
name: "message",
|
|
1556
1556
|
render: ({ field: b }) => /* @__PURE__ */ A(
|
|
1557
1557
|
Rt,
|
|
@@ -1571,7 +1571,7 @@ const ar = Ut.div`
|
|
|
1571
1571
|
h && /* @__PURE__ */ A(
|
|
1572
1572
|
fe,
|
|
1573
1573
|
{
|
|
1574
|
-
control:
|
|
1574
|
+
control: P,
|
|
1575
1575
|
name: "agrement",
|
|
1576
1576
|
render: ({ field: b }) => /* @__PURE__ */ A(
|
|
1577
1577
|
Ot,
|
|
@@ -1592,22 +1592,22 @@ const ar = Ut.div`
|
|
|
1592
1592
|
}
|
|
1593
1593
|
);
|
|
1594
1594
|
lr.propTypes = {
|
|
1595
|
-
title:
|
|
1596
|
-
description:
|
|
1597
|
-
image:
|
|
1598
|
-
phoneText:
|
|
1599
|
-
phones:
|
|
1600
|
-
emailText:
|
|
1601
|
-
emails:
|
|
1602
|
-
fullNamePlaceholderText:
|
|
1603
|
-
emailPlaceholderText:
|
|
1604
|
-
subjectPlaceholderText:
|
|
1605
|
-
messagePlaceholderText:
|
|
1606
|
-
messageMaxLength:
|
|
1607
|
-
hasAgrement:
|
|
1608
|
-
agrementText:
|
|
1609
|
-
submitText:
|
|
1610
|
-
onSubmit:
|
|
1595
|
+
title: I.string,
|
|
1596
|
+
description: I.string,
|
|
1597
|
+
image: I.string,
|
|
1598
|
+
phoneText: I.string,
|
|
1599
|
+
phones: I.array,
|
|
1600
|
+
emailText: I.string,
|
|
1601
|
+
emails: I.array,
|
|
1602
|
+
fullNamePlaceholderText: I.string,
|
|
1603
|
+
emailPlaceholderText: I.string,
|
|
1604
|
+
subjectPlaceholderText: I.string,
|
|
1605
|
+
messagePlaceholderText: I.string,
|
|
1606
|
+
messageMaxLength: I.number,
|
|
1607
|
+
hasAgrement: I.bool,
|
|
1608
|
+
agrementText: I.string,
|
|
1609
|
+
submitText: I.string,
|
|
1610
|
+
onSubmit: I.func
|
|
1611
1611
|
};
|
|
1612
1612
|
export {
|
|
1613
1613
|
lr as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as P } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { u as D, p as O } from "./SearchSection-
|
|
3
|
+
import { u as D, p as O } from "./SearchSection-CsfURtvf.js";
|
|
4
4
|
function b(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const v=require("./_commonjsHelpers-DwTZ_eVU.cjs"),D=require("react"),h=require("./SearchSection-
|
|
1
|
+
"use strict";const v=require("./_commonjsHelpers-DwTZ_eVU.cjs"),D=require("react"),h=require("./SearchSection-BGK1Fxaj.cjs");function O(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(a,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var b=Object.create,s=Object.defineProperty,M=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,T=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of w(e))!j.call(t,o)&&o!==r&&s(t,o,{get:()=>e[o],enumerable:!(a=M(e,o))||a.enumerable});return t},E=(t,e,r)=>(r=t!=null?b(S(t)):{},d(!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),L=t=>d(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(T(t,typeof e!="symbol"?e+"":e,r),r),_={};A(_,{default:()=>p});var f=L(_),c=E(D),l=h.utils,g=h.patterns;const C="https://api.dmcdn.net/all.js",N="DM",R="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:a,onError:o,playing:i}=this.props,[,y]=e.match(g.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(C,N,R,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...a.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:P=>o(P)}})},o)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",g.canPlay.dailymotion);n(p,"loopOnEnded",!0);const x=v.getDefaultExportFromCjs(f),K=O({__proto__:null,default:x},[f]);exports.DailyMotion=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-
|
|
1
|
+
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-BGK1Fxaj.cjs");function m(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(o,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var v=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,j=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of D(e))!E.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(o=O(e,s))||o.enumerable});return t},I=(t,e,r)=>(r=t!=null?v(S(t)):{},b(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>b(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(j(t,typeof e!="symbol"?e+"":e,r),r),d={};k(d,{default:()=>l});var _=w(d),u=I(g),n=h.utils,F=h.patterns;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",n.callPlayer),a(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),a(this,"mute",()=>{this.callPlayer("mute")}),a(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(o=>o.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(o=>{o.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),o.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),o.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}a(l,"displayName","Facebook");a(l,"canPlay",F.canPlay.facebook);a(l,"loopOnEnded",!0);const M=P.getDefaultExportFromCjs(_),x=m({__proto__:null,default:M},[_]);exports.Facebook=x;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as _ } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { u as P, p as m } from "./SearchSection-
|
|
3
|
+
import { u as P, p as m } from "./SearchSection-CsfURtvf.js";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
package/dist/FaqSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),h=require("react"),r=require("./index-BpbMKBf_.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("react"),r=require("./index-BpbMKBf_.cjs"),q=require("./Chip.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./Icon.cjs"),P=require("./IconButton.cjs"),C=require("./Button.cjs"),M=v.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 0.75rem;
|
|
4
4
|
align-items: center;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* Safari and Chrome */
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,E=
|
|
56
|
+
`,E=v.styled.div`
|
|
57
57
|
display: flex;
|
|
58
58
|
gap: 1.25rem;
|
|
59
59
|
width: 100%;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
}
|
|
84
|
-
`,$=
|
|
84
|
+
`,$=v.styled.div`
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: fit-content;
|
|
87
87
|
background: var(--white, #fff);
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
`,I=h.forwardRef(({tags:s=[],selectedTagCode:a=null,onSelectTag:l=()=>{}},g)=>e.jsx(M,{children:s==null?void 0:s.map((t,d)=>e.jsx(
|
|
173
|
+
`,I=h.forwardRef(({tags:s=[],selectedTagCode:a=null,onSelectTag:l=()=>{}},g)=>e.jsx(M,{children:s==null?void 0:s.map((t,d)=>e.jsx(q,{label:t==null?void 0:t.name,borderRadius:"curved",color:"neutral",className:`tags__item ${a===(t==null?void 0:t.code)?"active":""}`,onClick:()=>{l(t)}},`faq-section-tag__${d+1}`))}));I.propTypes={tags:r.PropTypes.array,onSelectTag:r.PropTypes.func};const b=({title:s,description:a,questionText:l,feedbackText:g,impressions:t=!1,onSelectItem:d=()=>{},onImpressed:u=()=>{}})=>{const[p,_]=h.useState(!1),[m,x]=h.useState(!1),f=()=>{_(o=>!o),d()},i=(o,c)=>{o==null||o.stopPropagation(),x(!0),u(c)};return e.jsxs($,{className:p?"expanded":"",onClick:f,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:s}),e.jsx(j,{icon:p?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:a}),t&&e.jsx(e.Fragment,{children:m?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(j,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:l}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(P,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>i(o,!0)}),e.jsx(P,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>i(o,!1)})]})]})})]})]})},S=h.forwardRef(({items:s=[],questionText:a,feedbackText:l,showMoreText:g,impressions:t=!1,onSelectItem:d=()=>{},onImpressed:u=()=>{}},p)=>{const _=N.useDetectMobile(),[m,x]=h.useState(!1),f=()=>{x(o=>!o)},i=h.useMemo(()=>{if(_)return s==null?void 0:s.map((n,y)=>e.jsx(b,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`));const o=[],c=[];return s==null||s.forEach((n,y)=>{y%2===0?o.push(e.jsx(b,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`)):c.push(e.jsx(b,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:c})]})},[s,_]);return e.jsx(E,{children:_?m?i:e.jsxs(e.Fragment,{children:[i==null?void 0:i.slice(0,4),(i==null?void 0:i.length)>4&&e.jsx(C,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:f})]}):i})});b.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};S.propTypes={items:r.PropTypes.array,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};const F=v.styled.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
flex-direction: column;
|
|
176
176
|
align-items: center;
|
|
@@ -216,4 +216,4 @@
|
|
|
216
216
|
letter-spacing: 0.25px;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
`,
|
|
219
|
+
`,k=h.forwardRef(({title:s,description:a,questionText:l="What do you think about this answer?",feedbackText:g="Thank you for feedback!",showMoreText:t="Show more",impressions:d=!1,tags:u=[],items:p=[],onSelectItem:_=()=>{},onImpressed:m=()=>{}},x)=>{const[f,i]=h.useState(null),o=c=>{i(c==null?void 0:c.code)};return e.jsxs(F,{ref:x,children:[e.jsxs("div",{className:"section__heading",children:[s&&e.jsx("div",{className:"section__title",children:s}),a&&e.jsx("div",{className:"section__description",children:a})]}),e.jsx(I,{tags:u,selectedTagCode:f,onSelectTag:o}),e.jsx(S,{items:f===null?p:p==null?void 0:p.filter(c=>(c==null?void 0:c.tagCode)===f),questionText:l,feedbackText:g,showMoreText:t,impressions:d,onSelectItem:_,onImpressed:m},`faq-section-items__${f}`)]})});k.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,tags:r.PropTypes.array,items:r.PropTypes.array,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};module.exports=k;
|