@revolugo/elements 5.5.1-beta.4 → 5.5.1-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/css/fonts.css +1 -0
- package/dist/css/revolugo.bdaterangepicker.DEh20utH.css +1 -0
- package/dist/css/revolugo.bhotelroomsdetails.4XsxkvH7.css +1 -0
- package/dist/css/revolugo.bhotelsearchbar.dwYB1gUC.css +1 -0
- package/dist/css/revolugo.bookingdetailssidebar.tDtXpaIj.css +1 -0
- package/dist/css/revolugo.bphoneinput.Kq_-XiGI.css +1 -0
- package/dist/css/revolugo.bstarrating.nzH7iii4.css +1 -0
- package/dist/css/revolugo.btag.Bdbqb_8a.css +1 -0
- package/dist/css/revolugo.common.BSIsYREh.css +1 -0
- package/dist/css/revolugo.creditcardform.BGPUxkRC.css +1 -0
- package/dist/css/revolugo.creditcardpayment.CGjlL8Fn.css +1 -0
- package/dist/css/revolugo.currencypicker.BRYsKdMu.css +1 -0
- package/dist/css/revolugo.fullbookingflow.BHV7_MhK.css +1 -0
- package/dist/css/revolugo.hotel-offer.Di9LJKMP.css +1 -0
- package/dist/css/revolugo.hoteldescriptionview.9ofE1uWG.css +1 -0
- package/dist/css/revolugo.hoteloffersmap.CqAdVDJK.css +1 -0
- package/dist/css/revolugo.hoteloffersview.MWOmwEwv.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.DrGyKJ-m.css +1 -0
- package/dist/css/revolugo.hotelroomoffersbookingflow.DGFt0C9n.css +1 -0
- package/dist/css/revolugo.hotelroomoffersview.B8Y-2QYc.css +1 -0
- package/dist/css/revolugo.index.BMkl7a3p.css +1 -0
- package/dist/css/revolugo.index.CFW4Oklv.css +1 -0
- package/dist/css/revolugo.index.DXv5c7NS.css +1 -0
- package/dist/css/revolugo.langpicker.B3TsOwUq.css +1 -0
- package/dist/css/revolugo.parsed-height.B92--uJb.css +1 -0
- package/dist/css/revolugo.parsed-props.C3kOvm7T.css +1 -0
- package/dist/css/revolugo.prebookform.CDnZmw8F.css +1 -0
- package/dist/css/revolugo.revolugo-config.Dg8v1l3c.css +5 -0
- package/dist/css/revolugo.storybooktoolbar.CVnww0dZ.css +1 -0
- package/dist/css/revolugo.termsandconditions.DV2YnGzG.css +1 -0
- package/dist/css/revolugo.valert.BzcMswjJ.css +1 -0
- package/dist/css/revolugo.vautocomplete.OMX_yAge.css +1 -0
- package/dist/css/revolugo.vbadge.CiK_DSkI.css +1 -0
- package/dist/css/revolugo.vbtn.By46MJOU.css +1 -0
- package/dist/css/revolugo.vcard.DmB53ZNL.css +1 -0
- package/dist/css/revolugo.vchip.BdAdP6lC.css +1 -0
- package/dist/css/revolugo.vdialog.C02Cvwul.css +1 -0
- package/dist/css/revolugo.vexpansionpanelheader.B2eKo8Lo.css +1 -0
- package/dist/css/revolugo.vinput.SfhpXNi0.css +1 -0
- package/dist/css/revolugo.vitemgroup.EbHsz8Rr.css +1 -0
- package/dist/css/revolugo.vlistitem.BzwNE1YK.css +1 -0
- package/dist/css/revolugo.vmenu.BKE0IO4q.css +1 -0
- package/dist/css/revolugo.vselect.DljSkk6y.css +1 -0
- package/dist/css/revolugo.vsheet.Dtdo2Rps.css +1 -0
- package/dist/css/revolugo.vskeletonloader.BpGoaAbZ.css +1 -0
- package/dist/css/revolugo.vslidegroup.D5TIbmaw.css +1 -0
- package/dist/css/revolugo.vsnackbar.DTAXPYkr.css +1 -0
- package/dist/css/revolugo.vtextfield.BliJY6uv.css +1 -0
- package/dist/css/revolugo.vtoolbar.DQsezjcM.css +1 -0
- package/dist/css/revolugo.vtooltip.B_oOB9pj.css +1 -0
- package/dist/css/revolugo.vuetify.BpIoHlAi.css +1 -0
- package/dist/css/revolugo.webcomponentwrapper.BRZRuwZ0.css +1 -0
- package/dist/index.min.js +1 -1
- package/dist/revolugo.banktransferdetails.TOmjiXZR.min.js +105 -0
- package/dist/revolugo.bbreakfastoptionbadge.DLXUsKPT.min.js +62 -0
- package/dist/revolugo.bdaterangepicker.7NUNlis2.min.js +1351 -0
- package/dist/revolugo.bformattedamount.Dc8LzYGF.min.js +82 -0
- package/dist/revolugo.bhotelroomsdetails.eOyOwnAD.min.js +213 -0
- package/dist/revolugo.bhotelsearchbar.DOHhe3TX.min.js +446 -0
- package/dist/revolugo.booking-api-client.X4zQkiOB.min.js +7401 -0
- package/dist/revolugo.bookingdetailssidebar.CEY9IR4f.min.js +242 -0
- package/dist/revolugo.bookingdetailssidebar.DfTGBYJB.min.js +28 -0
- package/dist/revolugo.bookingmanager.DNUFwv12.min.js +405 -0
- package/dist/revolugo.bphoneinput.Br-vaDMp.min.js +1928 -0
- package/dist/revolugo.bpricesummaryskeleton.ClIqB4J7.min.js +47 -0
- package/dist/revolugo.breakpoint-service.D8BYVuhM.min.js +65 -0
- package/dist/revolugo.bstarrating.DiUm_HYr.min.js +173 -0
- package/dist/revolugo.btag.CIEhEBjO.min.js +68 -0
- package/dist/revolugo.cancellationpoliciesbadge.DA1ttyly.min.js +92 -0
- package/dist/revolugo.cancellationpoliciesbadge.DlnZtyvy.min.js +28 -0
- package/dist/revolugo.cancellationpolicieslist.B2qQfSYF.min.js +28 -0
- package/dist/revolugo.cancellationpolicieslist.Epleki08.min.js +317 -0
- package/dist/revolugo.common.BJWUn2e4.min.js +34 -0
- package/dist/revolugo.creditcardform.Bu6_7ofn.min.js +2049 -0
- package/dist/revolugo.creditcardform.DcClnh_a.min.js +28 -0
- package/dist/revolugo.creditcardpayment.CbaChkRQ.min.js +288 -0
- package/dist/revolugo.creditcardpayment.DI_HEYqJ.min.js +28 -0
- package/dist/revolugo.currencypicker.BSlgtEoO.min.js +122 -0
- package/dist/revolugo.currencypickerbtn.7qOgbsX9.min.js +121 -0
- package/dist/revolugo.currencypickerbtn.CdikX9zL.min.js +28 -0
- package/dist/revolugo.dialog-attach.BQO5FkC9.min.js +27 -0
- package/dist/revolugo.en-us.BwPQZpD-.min.js +1171 -0
- package/dist/revolugo.event-bus.CYLYgD3Y.min.js +37 -0
- package/dist/revolugo.fr-fr.CV4yETNm.min.js +1177 -0
- package/dist/revolugo.fullbookingflow.CDyj-aGX.min.js +239 -0
- package/dist/revolugo.hotel-offer.CR8IxHwp.min.js +605 -0
- package/dist/revolugo.hoteldescriptionview.BsXp2DO0.min.js +2174 -0
- package/dist/revolugo.hoteldescriptionview.Dgujk17L.min.js +28 -0
- package/dist/revolugo.hotelofferitemlayout.BGchkGCk.min.js +64 -0
- package/dist/revolugo.hotelofferlist.BhEtuSnS.min.js +3779 -0
- package/dist/revolugo.hotelofferlist.CXzRERpd.min.js +28 -0
- package/dist/revolugo.hotelofferrequestcreator.nQKrw9L-.min.js +225 -0
- package/dist/revolugo.hoteloffersearchmenu.BSSWc9vs.min.js +54 -0
- package/dist/revolugo.hoteloffersmap.CruXegXR.min.js +28 -0
- package/dist/revolugo.hoteloffersmap.Ds6H46qe.min.js +8704 -0
- package/dist/revolugo.hoteloffersview.CmV7-knD.min.js +157 -0
- package/dist/revolugo.hoteloffersview.CwFVsPVB.min.js +28 -0
- package/dist/revolugo.hotelroomofferlist.KGh2bZlF.min.js +28 -0
- package/dist/revolugo.hotelroomofferlist.vmuFzhGq.min.js +1332 -0
- package/dist/revolugo.hotelroomofferrequestcreator.DY3rndSD.min.js +225 -0
- package/dist/revolugo.hotelroomoffersbookingflow.GfwzQwYS.min.js +679 -0
- package/dist/revolugo.hotelroomoffersearchmenu.-rqE8IeB.min.js +29 -0
- package/dist/revolugo.hotelroomoffersearchmenu.DU1yNXhD.min.js +38 -0
- package/dist/revolugo.hotelroomoffersview.CLzeULYt.min.js +28 -0
- package/dist/revolugo.hotelroomoffersview.DUvsXEW6.min.js +124 -0
- package/dist/revolugo.i18n.BIDah4Hr.min.js +10901 -0
- package/dist/revolugo.index.BDqD4brj.min.js +43 -0
- package/dist/revolugo.index.BNslhUAH.min.js +270 -0
- package/dist/revolugo.index.BPR3XlHM.min.js +281 -0
- package/dist/revolugo.index.BafzMKRk.min.js +13 -0
- package/dist/revolugo.index.C66sAn8l.min.js +9 -0
- package/dist/revolugo.index.CY4z9JfD.min.js +15 -0
- package/dist/revolugo.index.Ce9_ljIe.min.js +9 -0
- package/dist/revolugo.index.CkzsvJ2p.min.js +42 -0
- package/dist/revolugo.index.CpH3TNHO.min.js +128 -0
- package/dist/revolugo.index.CpYsLCUP.min.js +161 -0
- package/dist/revolugo.index.DAkBpJ0g.min.js +322 -0
- package/dist/revolugo.index.DB1SmBiZ.min.js +68 -0
- package/dist/revolugo.index.DxSal0Ur.min.js +142 -0
- package/dist/revolugo.index.xbcOdM2R.min.js +390 -0
- package/dist/revolugo.langpicker.OTjhdYDg.min.js +103 -0
- package/dist/revolugo.langpickerbtn.BHBnbjzr.min.js +111 -0
- package/dist/revolugo.langpickerbtn.DVcSp2Mc.min.js +28 -0
- package/dist/revolugo.localizedformat.C4ez1VLt.min.js +47 -0
- package/dist/revolugo.min.js +257 -7
- package/dist/revolugo.parsed-height.HSQ0HFwq.min.js +2338 -0
- package/dist/revolugo.parsed-props.Ccc23KVa.min.js +95 -0
- package/dist/revolugo.prebookform.CBdhp1Ho.min.js +484 -0
- package/dist/revolugo.prebookform.zB3DlqQ-.min.js +28 -0
- package/dist/revolugo.revolugo-config.CYwmIqDC.min.js +1707 -0
- package/dist/revolugo.roominglisteditor.CdPRLvnh.min.js +28 -0
- package/dist/revolugo.roominglisteditor.l155VeBJ.min.js +201 -0
- package/dist/revolugo.sentry.CuQ4Sj_P.min.js +10989 -0
- package/dist/revolugo.store.DRsWr71l.min.js +2497 -0
- package/dist/revolugo.storybooktoolbar.DZnWfHfa.min.js +300 -0
- package/dist/revolugo.termsandconditions.CJuS8MAh.min.js +162 -0
- package/dist/revolugo.termsandconditions.D4d8z_MH.min.js +27 -0
- package/dist/revolugo.typed-mixins.CArk-fZ7.min.js +8 -0
- package/dist/revolugo.valert.CMZED-c0.min.js +194 -0
- package/dist/revolugo.vautocomplete.D3T_xfxG.min.js +255 -0
- package/dist/revolugo.vbadge.DeYbu4pg.min.js +172 -0
- package/dist/revolugo.vbtn.D9xoQSTX.min.js +286 -0
- package/dist/revolugo.vcard.DHZXDqHw.min.js +80 -0
- package/dist/revolugo.vchip.D3O8VSDc.min.js +157 -0
- package/dist/revolugo.vdialog.CCHO0Kwj.min.js +341 -0
- package/dist/revolugo.vexpansionpanelheader.Cg2GtTNc.min.js +263 -0
- package/dist/revolugo.vform.CrSmhAkR.min.js +98 -0
- package/dist/revolugo.vinput.CvIrgPFc.min.js +509 -0
- package/dist/revolugo.vitemgroup.Ck0f83Cn.min.js +168 -0
- package/dist/revolugo.vlistitem.JpcvcaOl.min.js +204 -0
- package/dist/revolugo.vmenu.gGPsb28L.min.js +349 -0
- package/dist/revolugo.vselect.CceNNGVQ.min.js +859 -0
- package/dist/revolugo.vsheet.CJx8SWuo.min.js +120 -0
- package/dist/revolugo.vskeletonloader.U6iWK-eN.min.js +172 -0
- package/dist/revolugo.vslidegroup.B6kWFCKq.min.js +650 -0
- package/dist/revolugo.vsnackbar.CTWUo3sL.min.js +178 -0
- package/dist/revolugo.vtextfield.CH3y216m.min.js +438 -0
- package/dist/revolugo.vtoolbar.DwKf2KKn.min.js +364 -0
- package/dist/revolugo.vtooltip.B8PTr53D.min.js +168 -0
- package/dist/revolugo.vuetify.CjZ8kF3V.min.js +865 -0
- package/dist/revolugo.watch-list.CU-vo_n9.min.js +44 -0
- package/dist/revolugo.webcomponentwrapper.B_LKAOR9.min.js +783 -0
- package/package.json +1 -1
- package/dist/css/revolugo.0.min.css +0 -5
- package/dist/css/revolugo.1.min.css +0 -1
- package/dist/css/revolugo.11.min.css +0 -1
- package/dist/css/revolugo.12.min.css +0 -1
- package/dist/css/revolugo.13.min.css +0 -1
- package/dist/css/revolugo.14.min.css +0 -1
- package/dist/css/revolugo.15.min.css +0 -1
- package/dist/css/revolugo.16.min.css +0 -1
- package/dist/css/revolugo.17.min.css +0 -1
- package/dist/css/revolugo.18.min.css +0 -1
- package/dist/css/revolugo.19.min.css +0 -1
- package/dist/css/revolugo.2.min.css +0 -1
- package/dist/css/revolugo.20.min.css +0 -1
- package/dist/css/revolugo.21.min.css +0 -1
- package/dist/css/revolugo.22.min.css +0 -1
- package/dist/css/revolugo.23.min.css +0 -1
- package/dist/css/revolugo.24.min.css +0 -1
- package/dist/css/revolugo.25.min.css +0 -1
- package/dist/css/revolugo.26.min.css +0 -1
- package/dist/css/revolugo.27.min.css +0 -1
- package/dist/css/revolugo.28.min.css +0 -1
- package/dist/css/revolugo.29.min.css +0 -1
- package/dist/css/revolugo.30.min.css +0 -1
- package/dist/css/revolugo.31.min.css +0 -1
- package/dist/css/revolugo.32.min.css +0 -1
- package/dist/css/revolugo.33.min.css +0 -1
- package/dist/css/revolugo.34.min.css +0 -1
- package/dist/css/revolugo.4.min.css +0 -1
- package/dist/css/revolugo.5.min.css +0 -1
- package/dist/css/revolugo.6.min.css +0 -1
- package/dist/css/revolugo.7.min.css +0 -1
- package/dist/css/revolugo.fonts.min.css +0 -1
- package/dist/fonts/amenities.2aad1d12.woff +0 -0
- package/dist/fonts/amenities.9adae269.ttf +0 -0
- package/dist/fonts/amenities.a9bf50f8.svg +0 -42
- package/dist/fonts/amenities.bd6b3a4a.eot +0 -0
- package/dist/fonts/beds.2b8e38c8.svg +0 -12
- package/dist/img/apst.c1092975.png +0 -0
- package/dist/img/apst.ec7669f2.png +0 -0
- package/dist/img/atout-france.72107e30.png +0 -0
- package/dist/img/atout-france.df038f22.png +0 -0
- package/dist/img/revolugo.179c459d.png +0 -0
- package/dist/img/revolugo.e0879dcc.png +0 -0
- package/dist/img/stripe.405543e2.png +0 -0
- package/dist/img/stripe.c3e16f9f.png +0 -0
- package/dist/revolugo.0.min.js +0 -18
- package/dist/revolugo.1.min.js +0 -1
- package/dist/revolugo.11.min.js +0 -134
- package/dist/revolugo.12.min.js +0 -19
- package/dist/revolugo.13.min.js +0 -14
- package/dist/revolugo.14.min.js +0 -19
- package/dist/revolugo.15.min.js +0 -139
- package/dist/revolugo.16.min.js +0 -14
- package/dist/revolugo.17.min.js +0 -14
- package/dist/revolugo.18.min.js +0 -1
- package/dist/revolugo.19.min.js +0 -1
- package/dist/revolugo.2.min.js +0 -1
- package/dist/revolugo.20.min.js +0 -1
- package/dist/revolugo.21.min.js +0 -116
- package/dist/revolugo.22.min.js +0 -1
- package/dist/revolugo.23.min.js +0 -1
- package/dist/revolugo.24.min.js +0 -1
- package/dist/revolugo.25.min.js +0 -1
- package/dist/revolugo.26.min.js +0 -1
- package/dist/revolugo.27.min.js +0 -1
- package/dist/revolugo.28.min.js +0 -116
- package/dist/revolugo.29.min.js +0 -1
- package/dist/revolugo.30.min.js +0 -1
- package/dist/revolugo.31.min.js +0 -1
- package/dist/revolugo.32.min.js +0 -1
- package/dist/revolugo.33.min.js +0 -1
- package/dist/revolugo.34.min.js +0 -1
- package/dist/revolugo.35.min.js +0 -1
- package/dist/revolugo.36.min.js +0 -1
- package/dist/revolugo.4.min.js +0 -1
- package/dist/revolugo.5.min.js +0 -1
- package/dist/revolugo.6.min.js +0 -1
- package/dist/revolugo.7.min.js +0 -1
- package/dist/revolugo.en-US.min.js +0 -1
- package/dist/revolugo.fonts.min.js +0 -1
- package/dist/revolugo.fr-FR.min.js +0 -1
@@ -0,0 +1,300 @@
|
|
1
|
+
import { V as s, b as S, d as m, t as _ } from "./revolugo.i18n.BIDah4Hr.min.js";
|
2
|
+
import { y as $ } from "./revolugo.booking-api-client.X4zQkiOB.min.js";
|
3
|
+
import { B as g } from "./revolugo.btag.CIEhEBjO.min.js";
|
4
|
+
import { d as v } from "./revolugo.dialog-attach.BQO5FkC9.min.js";
|
5
|
+
import { l as h, n as r, _ as o, a as y, W as V } from "./revolugo.webcomponentwrapper.B_LKAOR9.min.js";
|
6
|
+
import { w as A } from "./revolugo.watch-list.CU-vo_n9.min.js";
|
7
|
+
import { _ as E } from "./revolugo.vdialog.CCHO0Kwj.min.js";
|
8
|
+
import { _ as n } from "./revolugo.vbtn.D9xoQSTX.min.js";
|
9
|
+
import { _ as f } from "./revolugo.index.xbcOdM2R.min.js";
|
10
|
+
import { _ as k } from "./revolugo.vcard.DHZXDqHw.min.js";
|
11
|
+
import { V as b, a as x } from "./revolugo.index.Ce9_ljIe.min.js";
|
12
|
+
import { _ as c, B as L } from "./revolugo.bdaterangepicker.7NUNlis2.min.js";
|
13
|
+
import { _ as M } from "./revolugo.vform.CrSmhAkR.min.js";
|
14
|
+
import { _ as d } from "./revolugo.vtextfield.CH3y216m.min.js";
|
15
|
+
import { _ as K } from "./revolugo.common.BJWUn2e4.min.js";
|
16
|
+
function R(i) {
|
17
|
+
try {
|
18
|
+
if (typeof document < "u") {
|
19
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
20
|
+
sheets: [],
|
21
|
+
components: []
|
22
|
+
};
|
23
|
+
const e = import.meta.url, t = e.slice(0, e.lastIndexOf("/") + 1) + i;
|
24
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
|
25
|
+
for (const a of REVOLUGO_ELEMENTS_STYLES.components)
|
26
|
+
a(t);
|
27
|
+
if (i.indexOf("fonts") >= 0) {
|
28
|
+
const a = document.createElement("link");
|
29
|
+
a.rel = "stylesheet", linK.href = t, document.head.appendChild(a);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
} catch (e) {
|
33
|
+
console.error("[revolugo-elements] ", e);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
const C = s.extend({
|
37
|
+
name: "ApiKeyEditor",
|
38
|
+
components: {
|
39
|
+
BTag: g
|
40
|
+
},
|
41
|
+
mixins: [
|
42
|
+
h("components/storybook/ApiKeyEditor"),
|
43
|
+
A(["config.apiEnvironment"], "updateApiKey", {
|
44
|
+
immediate: !0,
|
45
|
+
deep: !0
|
46
|
+
}),
|
47
|
+
v
|
48
|
+
],
|
49
|
+
data() {
|
50
|
+
return {
|
51
|
+
// Read cookie to init component
|
52
|
+
apiKey: this.$cookies.get("apiKey"),
|
53
|
+
apiKeyRules: [
|
54
|
+
(i) => !!i || // eslint-disable-next-line @typescript-eslint/no-base-to-string
|
55
|
+
`A valid API Key is required. ${this.$t("ApiKeyEditor.hint", {
|
56
|
+
environment: this.config.apiEnvironment
|
57
|
+
})}`
|
58
|
+
],
|
59
|
+
dialog: !1,
|
60
|
+
isFormValid: !1,
|
61
|
+
isLoading: !1
|
62
|
+
};
|
63
|
+
},
|
64
|
+
methods: {
|
65
|
+
closeDialog() {
|
66
|
+
this.dialog = !1, this.apiKey = this.$cookies.get("apiKey");
|
67
|
+
},
|
68
|
+
async isValidApiKey() {
|
69
|
+
if (!this.apiKey)
|
70
|
+
return !1;
|
71
|
+
const i = {
|
72
|
+
apiKey: this.apiKey,
|
73
|
+
apiVersion: S.V1,
|
74
|
+
apiEnvironment: window.RevolugoElements.config.apiEnvironment,
|
75
|
+
optionalHeaders: window.RevolugoElements.config.optionalHeaders
|
76
|
+
}, e = new $(i);
|
77
|
+
try {
|
78
|
+
return !!await e.hotels.retrieve({
|
79
|
+
id: "67xX"
|
80
|
+
});
|
81
|
+
} catch (t) {
|
82
|
+
return console.error(t), !1;
|
83
|
+
}
|
84
|
+
},
|
85
|
+
async onSubmit() {
|
86
|
+
this.validate(), await this.updateApiKey(), this.apiKey && this.closeDialog();
|
87
|
+
},
|
88
|
+
async updateApiKey() {
|
89
|
+
try {
|
90
|
+
if (this.isLoading = !0, await this.isValidApiKey())
|
91
|
+
this.config.apiKey !== this.apiKey && this.updateConfig({
|
92
|
+
...this.config,
|
93
|
+
apiKey: this.apiKey
|
94
|
+
}), this.$cookies.set("apiKey", this.apiKey);
|
95
|
+
else
|
96
|
+
throw new Error("Invalid API Key");
|
97
|
+
} catch {
|
98
|
+
this.apiKey = void 0, this.$cookies.remove("apiKey"), this.updateConfig({
|
99
|
+
...this.config,
|
100
|
+
apiKey: void 0
|
101
|
+
});
|
102
|
+
} finally {
|
103
|
+
this.isLoading = !1;
|
104
|
+
}
|
105
|
+
},
|
106
|
+
validate() {
|
107
|
+
this.$refs.apiKeyEditorForm.validate();
|
108
|
+
}
|
109
|
+
}
|
110
|
+
});
|
111
|
+
var w = function() {
|
112
|
+
var e = this, t = e._self._c;
|
113
|
+
return e._self._setupProxy, t("div", [t(E, { attrs: { attach: e.$dialogAttach, "max-width": "600px" }, scopedSlots: e._u([{ key: "activator", fn: function({ on: a, attrs: l }) {
|
114
|
+
return [t(n, e._g(e._b({ attrs: { color: e.$cookies.get("apiKey") ? "success" : "warning", elevation: "0", "x-small": "" } }, "v-btn", l, !1), a), [e.$cookies.get("apiKey") ? [t(f, { staticClass: "mr-2" }, [e._v(" fa-check ")]), e._v(" Valid API key ")] : [t(f, { staticClass: "mr-2" }, [e._v(" fa-exclamation ")]), e._v(" No API key provided ")]], 2)];
|
115
|
+
} }]), model: { value: e.dialog, callback: function(a) {
|
116
|
+
e.dialog = a;
|
117
|
+
}, expression: "dialog" } }, [t(k, [t(b, { staticClass: "pa-4" }, [t(c, { staticClass: "pa-0" }, [t(o, { attrs: { "no-gutters": "" } }, [t(y, [t(M, { ref: "apiKeyEditorForm", staticClass: "m-0", attrs: { "lazy-validation": "" }, on: { submit: function(a) {
|
118
|
+
return a.preventDefault(), e.onSubmit.apply(null, arguments);
|
119
|
+
} }, model: { value: e.isFormValid, callback: function(a) {
|
120
|
+
e.isFormValid = a;
|
121
|
+
}, expression: "isFormValid" } }, [t(d, { attrs: { dense: "", hint: e.$t("ApiKeyEditor.hint", {
|
122
|
+
environment: e.config.apiEnvironment
|
123
|
+
}), label: "API Key", outlined: "", "persistent-hint": "", required: "", rules: e.apiKeyRules }, on: { keyup: function(a) {
|
124
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.onSubmit.apply(null, arguments);
|
125
|
+
} }, model: { value: e.apiKey, callback: function(a) {
|
126
|
+
e.apiKey = a;
|
127
|
+
}, expression: "apiKey" } })], 1)], 1)], 1)], 1)], 1), t(x, [t(K), t(n, { attrs: { color: "blue darken-1", small: "", text: "" }, on: { click: e.closeDialog } }, [e._v(" Close ")]), t(n, { staticClass: "text-right", attrs: { color: "primary", disabled: e.isLoading, elevation: "0", loading: e.isLoading, small: "" }, on: { click: e.onSubmit } }, [e._v(" Save ")])], 1)], 1)], 1)], 1);
|
128
|
+
}, F = [], D = /* @__PURE__ */ r(
|
129
|
+
C,
|
130
|
+
w,
|
131
|
+
F,
|
132
|
+
!1,
|
133
|
+
null,
|
134
|
+
null,
|
135
|
+
null,
|
136
|
+
null
|
137
|
+
);
|
138
|
+
const T = D.exports, O = s.extend({
|
139
|
+
name: "EventMetadataEditor",
|
140
|
+
components: {
|
141
|
+
BTag: g,
|
142
|
+
BDateRangePicker: L
|
143
|
+
},
|
144
|
+
mixins: [v, h("components/storybook/EventMetadataEditor")],
|
145
|
+
data() {
|
146
|
+
return {
|
147
|
+
name: "",
|
148
|
+
eventMetadata: this.$cookies.get("eventMetadata") || {
|
149
|
+
name: "",
|
150
|
+
dateEnd: m().add(1, "day").format("YYYY-MM-DD").toString(),
|
151
|
+
dateStart: m().format("YYYY-MM-DD").toString()
|
152
|
+
},
|
153
|
+
imageURLRules: [
|
154
|
+
(i) => {
|
155
|
+
if (!i)
|
156
|
+
return !0;
|
157
|
+
try {
|
158
|
+
return (
|
159
|
+
// eslint-disable-next-line no-constant-binary-expression
|
160
|
+
!!new URL(i) || this.$t("EventMetadataEditor.validation.imageURL")
|
161
|
+
);
|
162
|
+
} catch {
|
163
|
+
return this.$t("EventMetadataEditor.validation.imageURL");
|
164
|
+
}
|
165
|
+
}
|
166
|
+
],
|
167
|
+
nameRules: [
|
168
|
+
(i) => !!i || this.$t("EventMetadataEditor.validation.name")
|
169
|
+
],
|
170
|
+
dialog: !1,
|
171
|
+
isFormValid: !1,
|
172
|
+
isLoading: !1
|
173
|
+
};
|
174
|
+
},
|
175
|
+
computed: {
|
176
|
+
dateRange: {
|
177
|
+
get() {
|
178
|
+
return _(
|
179
|
+
this.eventMetadata.dateStart,
|
180
|
+
this.eventMetadata.dateEnd
|
181
|
+
);
|
182
|
+
},
|
183
|
+
set(i) {
|
184
|
+
[this.eventMetadata.dateStart, this.eventMetadata.dateEnd] = _(...i);
|
185
|
+
}
|
186
|
+
},
|
187
|
+
isFetching: {
|
188
|
+
get() {
|
189
|
+
return this.$store.get("hotelOfferRequest/isFetching");
|
190
|
+
}
|
191
|
+
}
|
192
|
+
},
|
193
|
+
created() {
|
194
|
+
this.$cookies.get("eventMetadata") && this.updateConfig({
|
195
|
+
...this.config,
|
196
|
+
eventMetadata: this.$cookies.get("eventMetadata")
|
197
|
+
});
|
198
|
+
},
|
199
|
+
methods: {
|
200
|
+
onReset() {
|
201
|
+
this.$cookies.remove("eventMetadata"), this.eventMetadata = {}, this.updateConfig({
|
202
|
+
...this.config,
|
203
|
+
eventMetadata: {}
|
204
|
+
}), this.closeDialog();
|
205
|
+
},
|
206
|
+
closeDialog() {
|
207
|
+
this.dialog = !1;
|
208
|
+
},
|
209
|
+
isValidEventMetadata() {
|
210
|
+
var i;
|
211
|
+
return !(!((i = this.eventMetadata) != null && i.name.length) || !this.dateRange[0] || !this.dateRange[1]);
|
212
|
+
},
|
213
|
+
onSubmit() {
|
214
|
+
this.updateEventMetadata(), this.closeDialog();
|
215
|
+
},
|
216
|
+
updateEventMetadata() {
|
217
|
+
this.isValidEventMetadata() && (this.updateConfig({
|
218
|
+
...this.config,
|
219
|
+
eventMetadata: this.eventMetadata
|
220
|
+
}), this.$cookies.set("eventMetadata", JSON.stringify(this.eventMetadata)), this.closeDialog());
|
221
|
+
}
|
222
|
+
}
|
223
|
+
});
|
224
|
+
var U = function() {
|
225
|
+
var e = this, t = e._self._c;
|
226
|
+
return e._self._setupProxy, t("div", [t(E, { attrs: { attach: e.$dialogAttach, height: "600px", "max-width": "600px" }, scopedSlots: e._u([{ key: "activator", fn: function({ on: a, attrs: l }) {
|
227
|
+
var u, p;
|
228
|
+
return [t(n, e._g(e._b({ attrs: { color: e.$cookies.get("eventMetadata") ? "success" : "warning", elevation: "0", "x-small": "" } }, "v-btn", l, !1), a), [e._v(" " + e._s((u = e.eventMetadata) != null && u.name ? `EVENT : ${(p = e.eventMetadata) == null ? void 0 : p.name}` : "ADD EVENT METADATA") + " ")])];
|
229
|
+
} }]), model: { value: e.dialog, callback: function(a) {
|
230
|
+
e.dialog = a;
|
231
|
+
}, expression: "dialog" } }, [t(k, [t(b, { staticClass: "pa-4" }, [t(c, { staticClass: "pa-0" }, [t(o, { attrs: { "no-gutters": "" } }, [t(y, [t(M, { ref: "eventMetadataEditorForm", staticClass: "m-0", attrs: { "lazy-validation": "" }, on: { submit: function(a) {
|
232
|
+
return a.preventDefault(), e.onSubmit.apply(null, arguments);
|
233
|
+
} }, model: { value: e.isFormValid, callback: function(a) {
|
234
|
+
e.isFormValid = a;
|
235
|
+
}, expression: "isFormValid" } }, [t(d, { attrs: { dense: "", label: "Name of the event", outlined: "", "persistent-hint": "", required: "", rules: e.nameRules }, on: { keyup: function(a) {
|
236
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.onSubmit.apply(null, arguments);
|
237
|
+
} }, model: { value: e.eventMetadata.name, callback: function(a) {
|
238
|
+
e.$set(e.eventMetadata, "name", a);
|
239
|
+
}, expression: "eventMetadata.name" } }), t(d, { attrs: { dense: "", label: "Image URL", outlined: "", "persistent-hint": "", rules: e.imageURLRules }, on: { keyup: function(a) {
|
240
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.onSubmit.apply(null, arguments);
|
241
|
+
} }, model: { value: e.eventMetadata.imageURL, callback: function(a) {
|
242
|
+
e.$set(e.eventMetadata, "imageURL", a);
|
243
|
+
}, expression: "eventMetadata.imageURL" } }), t(o, [t("b-date-range-picker", { model: { value: e.dateRange, callback: function(a) {
|
244
|
+
e.dateRange = a;
|
245
|
+
}, expression: "dateRange" } })], 1)], 1)], 1)], 1)], 1)], 1), t(x, [t(K), t(n, { attrs: { color: "blue darken-1", small: "", text: "" }, on: { click: e.closeDialog } }, [e._v(" Close ")]), t(n, { attrs: { color: "error", disabled: e.isFetching, loading: e.isFetching, small: "", text: "" }, on: { click: e.onReset } }, [e._v(" Reset ")]), t(n, { attrs: { color: "primary", disabled: e.isFetching, loading: e.isFetching, small: "" }, on: { click: e.onSubmit } }, [e._v(" Save ")])], 1)], 1)], 1)], 1);
|
246
|
+
}, Y = [], P = /* @__PURE__ */ r(
|
247
|
+
O,
|
248
|
+
U,
|
249
|
+
Y,
|
250
|
+
!1,
|
251
|
+
null,
|
252
|
+
null,
|
253
|
+
null,
|
254
|
+
null
|
255
|
+
);
|
256
|
+
const N = P.exports, I = s.extend({
|
257
|
+
name: "StorybookExtraToolbar",
|
258
|
+
components: {
|
259
|
+
ApiKeyEditor: T,
|
260
|
+
EventMetadataEditor: N
|
261
|
+
}
|
262
|
+
});
|
263
|
+
var B = function() {
|
264
|
+
var e = this, t = e._self._c;
|
265
|
+
return e._self._setupProxy, t(c, { staticClass: "pa-0 mb-3", attrs: { fluid: "" } }, [t(o, { attrs: { "no-gutters": "" } }, [t("div", { staticClass: "flex gap-1 px-3" }, [t("api-key-editor"), t("event-metadata-editor")], 1)])], 1);
|
266
|
+
}, q = [], z = /* @__PURE__ */ r(
|
267
|
+
I,
|
268
|
+
B,
|
269
|
+
q,
|
270
|
+
!1,
|
271
|
+
null,
|
272
|
+
null,
|
273
|
+
null,
|
274
|
+
null
|
275
|
+
);
|
276
|
+
const G = z.exports, W = s.extend({
|
277
|
+
components: {
|
278
|
+
StorybookExtraToolbar: G,
|
279
|
+
WebComponentWrapper: V
|
280
|
+
}
|
281
|
+
});
|
282
|
+
var j = function() {
|
283
|
+
var e = this, t = e._self._c;
|
284
|
+
return e._self._setupProxy, t("web-component-wrapper", { attrs: { "error-overlay-disabled": "" } }, [t("storybook-extra-toolbar")], 1);
|
285
|
+
}, H = [], J = /* @__PURE__ */ r(
|
286
|
+
W,
|
287
|
+
j,
|
288
|
+
H,
|
289
|
+
!1,
|
290
|
+
null,
|
291
|
+
null,
|
292
|
+
null,
|
293
|
+
null
|
294
|
+
);
|
295
|
+
const pe = J.exports;
|
296
|
+
R("css/revolugo.storybooktoolbar.CVnww0dZ.css");
|
297
|
+
export {
|
298
|
+
pe as default
|
299
|
+
};
|
300
|
+
//# sourceMappingURL=revolugo.storybooktoolbar.DZnWfHfa.min.js.map
|