@konnectio/core 4.0.1 → 4.0.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.
Files changed (122) hide show
  1. package/dist/ActionField-1b4171c7.mjs +103 -0
  2. package/dist/ActionField-1b4171c7.mjs.br +0 -0
  3. package/dist/ActionField-97c0c682.js +2 -0
  4. package/dist/ActionField-97c0c682.js.br +0 -0
  5. package/dist/Clickable-eb931b15.mjs +13899 -0
  6. package/dist/Clickable-eb931b15.mjs.br +0 -0
  7. package/dist/Clickable-f57e16ad.js +785 -0
  8. package/dist/Clickable-f57e16ad.js.br +0 -0
  9. package/dist/HotelAvailabilityForm-5750665b.js +2 -0
  10. package/dist/HotelAvailabilityForm-5750665b.js.br +0 -0
  11. package/dist/HotelAvailabilityForm-bab6ef4d.mjs +99 -0
  12. package/dist/HotelAvailabilityForm-bab6ef4d.mjs.br +0 -0
  13. package/dist/NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs +5917 -0
  14. package/dist/NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs.br +0 -0
  15. package/dist/NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js +56 -0
  16. package/dist/NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js.br +0 -0
  17. package/dist/ReCaptchaVuePlugin-36454b0f.js +2 -0
  18. package/dist/ReCaptchaVuePlugin-36454b0f.js.br +0 -0
  19. package/dist/ReCaptchaVuePlugin-e4f378b2.mjs +377 -0
  20. package/dist/ReCaptchaVuePlugin-e4f378b2.mjs.br +0 -0
  21. package/dist/SelectField.vue_vue_type_style_index_0_lang-a3371159.js +57 -0
  22. package/dist/SelectField.vue_vue_type_style_index_0_lang-a3371159.js.br +0 -0
  23. package/dist/SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs +10109 -0
  24. package/dist/SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs.br +0 -0
  25. package/dist/ThankYou-23531d13.js +16 -0
  26. package/dist/ThankYou-23531d13.js.br +0 -0
  27. package/dist/ThankYou-4299d606.mjs +8519 -0
  28. package/dist/ThankYou-4299d606.mjs.br +0 -0
  29. package/dist/_commonjsHelpers-6763f629.js +2 -0
  30. package/dist/_commonjsHelpers-c5d32002.mjs +31 -0
  31. package/dist/applyGiftCard-9847fda1.js +2 -0
  32. package/dist/applyGiftCard-9847fda1.js.br +0 -0
  33. package/dist/applyGiftCard-eb7b85ee.mjs +118 -0
  34. package/dist/applyGiftCard-eb7b85ee.mjs.br +0 -0
  35. package/dist/availability.cjs.js +2 -0
  36. package/dist/availability.cjs.js.br +0 -0
  37. package/dist/availability.es.js +185 -0
  38. package/dist/availability.es.js.br +0 -0
  39. package/dist/event-1b888019.mjs +329 -0
  40. package/dist/event-1b888019.mjs.br +0 -0
  41. package/dist/event-e8e0c6a2.js +2 -0
  42. package/dist/event-e8e0c6a2.js.br +0 -0
  43. package/dist/event.cjs.js +2 -0
  44. package/dist/event.cjs.js.br +0 -0
  45. package/dist/event.es.js +647 -0
  46. package/dist/event.es.js.br +0 -0
  47. package/dist/gift-card-validation.cjs.js +2 -0
  48. package/dist/gift-card-validation.cjs.js.br +0 -0
  49. package/dist/gift-card-validation.es.js +172 -0
  50. package/dist/gift-card-validation.es.js.br +0 -0
  51. package/dist/gift-card.cjs.js +2 -0
  52. package/dist/gift-card.cjs.js.br +0 -0
  53. package/dist/gift-card.es.js +586 -0
  54. package/dist/gift-card.es.js.br +0 -0
  55. package/dist/hotel.cjs.js +20 -0
  56. package/dist/hotel.cjs.js.br +0 -0
  57. package/dist/hotel.es.js +2396 -0
  58. package/dist/hotel.es.js.br +0 -0
  59. package/dist/index-937554a9.mjs +654 -0
  60. package/dist/index-937554a9.mjs.br +0 -0
  61. package/dist/index-aa255eba.js +2 -0
  62. package/dist/index-aa255eba.js.br +0 -0
  63. package/dist/navigation.cjs.js +2 -0
  64. package/dist/navigation.cjs.js.br +0 -0
  65. package/dist/navigation.es.js +59 -0
  66. package/dist/navigation.es.js.br +0 -0
  67. package/dist/payment-3140b25e.js +3 -0
  68. package/dist/payment-3140b25e.js.br +0 -0
  69. package/dist/payment-b79997a8.mjs +8149 -0
  70. package/dist/payment-b79997a8.mjs.br +0 -0
  71. package/dist/polyfill.cjs.js +5 -0
  72. package/dist/polyfill.cjs.js.br +0 -0
  73. package/dist/polyfill.es.js +6766 -0
  74. package/dist/polyfill.es.js.br +0 -0
  75. package/dist/style.css +1 -0
  76. package/dist/style.css.br +0 -0
  77. package/package.json +3 -1
  78. package/dist/admin.js +0 -2
  79. package/dist/admin.js.br +0 -0
  80. package/dist/assets/ActionField-d1b315e3.js +0 -2
  81. package/dist/assets/ActionField-d1b315e3.js.br +0 -0
  82. package/dist/assets/Alert-2cd22061.js +0 -2
  83. package/dist/assets/Alert-2cd22061.js.br +0 -0
  84. package/dist/assets/Clickable-19c9ecdc.js +0 -2
  85. package/dist/assets/Clickable-19c9ecdc.js.br +0 -0
  86. package/dist/assets/GoogleNotice-83805aa2.js +0 -2
  87. package/dist/assets/GoogleNotice-83805aa2.js.br +0 -0
  88. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js +0 -2
  89. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js.br +0 -0
  90. package/dist/assets/Icon-6c933148.js +0 -2
  91. package/dist/assets/Icon-6c933148.js.br +0 -0
  92. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js +0 -2
  93. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js.br +0 -0
  94. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js +0 -2
  95. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js.br +0 -0
  96. package/dist/assets/ThankYou-29820212.js +0 -5
  97. package/dist/assets/ThankYou-29820212.js.br +0 -0
  98. package/dist/assets/applyGiftCard-39571f2e.js +0 -2
  99. package/dist/assets/applyGiftCard-39571f2e.js.br +0 -0
  100. package/dist/assets/event-79c562c0.js +0 -2
  101. package/dist/assets/event-79c562c0.js.br +0 -0
  102. package/dist/assets/payment-a3a9b5dd.js +0 -2
  103. package/dist/assets/payment-a3a9b5dd.js.br +0 -0
  104. package/dist/assets/style.css +0 -1
  105. package/dist/assets/style.css.br +0 -0
  106. package/dist/assets/vendor-65ee0d78.js +0 -889
  107. package/dist/assets/vendor-65ee0d78.js.br +0 -0
  108. package/dist/availability.js +0 -2
  109. package/dist/availability.js.br +0 -0
  110. package/dist/event.js +0 -2
  111. package/dist/event.js.br +0 -0
  112. package/dist/gift-card-validation.js +0 -2
  113. package/dist/gift-card-validation.js.br +0 -0
  114. package/dist/gift-card.js +0 -2
  115. package/dist/gift-card.js.br +0 -0
  116. package/dist/hotel.js +0 -2
  117. package/dist/hotel.js.br +0 -0
  118. package/dist/manifest.json +0 -231
  119. package/dist/manifest.json.br +0 -0
  120. package/dist/navigation.js +0 -2
  121. package/dist/navigation.js.br +0 -0
  122. package/dist/polyfill.js +0 -2
Binary file
@@ -1,2 +0,0 @@
1
- import{f as C,s as w,g as z,o as n,c as l,i as d,u as k,k as A,e,_ as y,y as T,r as $,z as u,h as x,j as m,A as p,B,l as g,C as F,T as E,S as R,p as W,b as V,m as I,n as P,q as H,x as N}from"./assets/vendor-65ee0d78.js";import{_ as D}from"./assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js";import{H as M}from"./assets/HotelAvailabilityForm-53fa6ecb.js";import{_ as O}from"./assets/payment-a3a9b5dd.js";import{C as j}from"./assets/Clickable-19c9ecdc.js";import{u as q}from"./assets/event-79c562c0.js";import{a as U}from"./assets/Alert-2cd22061.js";import"./assets/Icon-6c933148.js";import"./assets/applyGiftCard-39571f2e.js";const G={id:"konnectio-event-search-form"},J={class:"konnectio-search-button"},K=C({__name:"EventAvailabilityForm",props:{link:{}},setup(o){const t=o,{searchDate:a}=w(q()),{t:c}=z();function h(){window.location.replace(t.link)}return(b,i)=>(n(),l("div",G,[d(O,{modelValue:k(a),"onUpdate:modelValue":i[0]||(i[0]=r=>A(a)?a.value=r:null),label:k(c)("event.selectDate"),"icon-placement":"label","min-date":new Date},null,8,["modelValue","label","min-date"]),e("div",J,[d(j,{label:k(c)("availability.buttonLabel"),disabled:!1,onClickEvent:h},null,8,["label"])])]))}});const Q=y(K,[["__scopeId","data-v-15c74d0f"]]);const X={},Y={class:"loading-container"},Z=T('<div class="loading" data-v-30283f5a><section id="test" data-v-30283f5a><section id="header" data-v-30283f5a><div data-v-30283f5a></div><div class="shape1 white" data-v-30283f5a></div><div data-v-30283f5a></div><div class="shape2 white" data-v-30283f5a></div><div class="shape2 white" data-v-30283f5a></div></section><section class="blank" data-v-30283f5a></section><section class="content" data-v-30283f5a><div class="label" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div></div><div class="white" data-v-30283f5a></div><div class="label" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div></div><div class="white" data-v-30283f5a></div><div class="white" data-v-30283f5a></div></section><section class="blank" data-v-30283f5a></section><section class="content" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div><div data-v-30283f5a></div></section></section></div>',1),tt=[Z];function et(o,t){return n(),l("div",Y,tt)}const at=y(X,[["render",et],["__scopeId","data-v-30283f5a"]]),_=o=>(W("data-v-55265546"),o=o(),V(),o),ot={class:"konnectio-availability-module"},nt={key:0,class:"konnectio-availability-navigation"},it=_(()=>e("span",null,"Hotel",-1)),st=[it],lt=_(()=>e("span",null,"Events",-1)),dt=[lt],ct=_(()=>e("div",{class:"konnectio-availability-divider"},null,-1)),rt={class:"konnectio-availability-search-form"},vt={key:1},ut=_(()=>e("span",null,"One of 'hotelLink' or 'eventLink' properties are missing. Please contact your administrator!",-1)),pt=[ut],_t=C({__name:"Availability",props:{eventLink:{},hotelLink:{},accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonFontWeight:{},buttonTextTransform:{},fontColor:{},fontFamily:{},fontSize:{},headerColor:{},headerFontSize:{},inputBorder:{},inputBackground:{},inputBorderRadius:{},inputBorderWidth:{},inputFontColor:{},labelFontWeight:{},labelFontSize:{},labelPadding:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{},panelOuterPadding:{}},setup(o){const t=o,a=$(),c=u(()=>t.hotelLink||t.eventLink),h=u(()=>t.hotelLink&&t.eventLink),b=u(()=>a.value==="hotel"),i=u(()=>a.value==="event"),r=s=>a.value=s;x(()=>{!t.hotelLink&&t.eventLink?a.value="event":a.value="hotel"});const S={"--accentColor":t.accentColor,"--buttonBackground":t.buttonBackground,"--buttonBorder":t.buttonBorder,"--buttonBorderRadius":t.buttonBorderRadius,"--buttonColor":t.buttonColor,"--buttonFontFamily":t.buttonFontFamily,"--buttonFontSize":t.buttonFontSize,"--buttonFontWeight":t.buttonFontWeight,"--buttonTextTransform":t.buttonTextTransform,"--fontColor":t.fontColor,"--fontFamily":t.fontFamily,"--fontSize":t.fontSize,"--headerColor":t.headerColor,"--headerFontSize":t.headerFontSize,"--inputBackground":t.inputBackground,"--inputBorder":t.inputBorder,"--inputBorderRadius":t.inputBorderRadius,"--inputBorderWidth":t.inputBorderWidth,"--inputFontColor":t.inputFontColor,"--labelFontWeight":t.labelFontWeight,"--labelFontSize":t.labelFontSize,"--panelBackground":t.panelBackground,"--panelBorder":t.panelBorder};return(s,v)=>(n(),l("div",null,[c.value?(n(),m(R,{key:0},{default:p(()=>[d(D,{class:"fresh-booking-app","access-token":s.accessToken,style:S},{default:p(()=>[e("div",ot,[h.value?(n(),l("nav",nt,[e("ul",null,[e("li",null,[e("button",{class:B({active:b.value}),onClick:v[0]||(v[0]=g(L=>r("hotel"),["prevent"]))},st,2)]),e("li",null,[e("button",{class:B({active:i.value}),onClick:v[1]||(v[1]=g(L=>r("event"),["prevent"]))},dt,2)])])])):F("",!0),ct,e("div",rt,[d(E,{name:"fade",mode:"out-in",appear:""},{default:p(()=>[b.value?(n(),m(M,{key:0,link:s.hotelLink},null,8,["link"])):i.value?(n(),m(Q,{key:1,link:s.eventLink},null,8,["link"])):F("",!0)]),_:1})])])]),_:1},8,["access-token"])]),fallback:p(()=>[e("div",null,[d(at)])]),_:1})):(n(),l("div",vt,pt))]))}});const ft=y(_t,[["__scopeId","data-v-55265546"]]);I.flare.light();const ht=P(),f=H({components:{Availability:ft}});f.use(N.flareVue);f.use(ht);f.use(U);f.mount("#fresh-booking-availability-app");
2
- //# sourceMappingURL=availability.js.map
Binary file
package/dist/event.js DELETED
@@ -1,2 +0,0 @@
1
- import{f as ve,g as ye,s as ee,r as je,z as He,o as t,j as y,D as Je,A as f,e as o,i as u,t as l,u as e,c as r,C as d,_ as fe,h as Ke,E as Qe,k as D,F as _,G as R,H as ie,p as Ye,b as Xe,m as Ze,n as Ge,I as xe,q as eo,x as oo,J as lo,V as no,K as to,L as ao}from"./assets/vendor-65ee0d78.js";import{B as so,M as io,R as ro,C as uo,T as co}from"./assets/ThankYou-29820212.js";import{s as mo,d as re,a as ue,b as po,c as F,B as bo,u as go,O as de,g as vo,e as G,f as ce,_ as yo}from"./assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js";import{u as J}from"./assets/event-79c562c0.js";import{u as fo,a as ho}from"./assets/Alert-2cd22061.js";import{I as k}from"./assets/Icon-6c933148.js";import{A as ko}from"./assets/ActionField-d1b315e3.js";import{T as me}from"./assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js";import{P as Co,C as pe}from"./assets/GoogleNotice-83805aa2.js";import{_ as _o}from"./assets/payment-a3a9b5dd.js";import{_ as x}from"./assets/applyGiftCard-39571f2e.js";import{L as be}from"./assets/Clickable-19c9ecdc.js";const Bo={class:"fresh-booking-event-listing-information"},Vo={key:0},Po={key:1},Fo=ve({__name:"Event",props:{name:{},type:{},description:{},fromDate:{},toDate:{},listingId:{},tableGroupId:{},days:{},timeFrom:{},timeTo:{},maxOnlineReservationLimit:{},minimumPersonCount:{},fromPrice:{},gallery:{},soldOut:{type:Boolean,default:!1},styling:{},layout:{},trackingEnabled:{type:Boolean},callback:{}},setup(T){const i=T,{t:a}=ye(),{display:$}=fo(),{currency:E,maxNumberOfPeople:L,numberOfPeople:S,eventId:K,tableGroupId:U}=ee(J()),{getTemplateAvailability:A,getEventAvailability:z,isEventListingLoading:N}=J(),b=je(0),M=He(()=>N(i.listingId)),Q=()=>{b.value>0?(K.value=i.listingId,S.value=b.value,A(i.callback)):$({type:"error",message:a("alert.error.selectPeople")})},Y=()=>{b.value>0?(K.value=i.listingId,U.value=i.tableGroupId,S.value=b.value,z(i.callback)):$({type:"error",message:a("alert.error.selectPeople")})};return(n,V)=>(t(),y(so,{"listing-id":n.listingId,gallery:n.gallery,name:n.name,description:n.description,layout:e(bo).Event,styling:n.styling,currency:e(E)},Je({action:f(()=>[u(ko,{modelValue:b.value,"onUpdate:modelValue":V[0]||(V[0]=O=>b.value=O),type:"number",label:e(a)("event.numberOfGuests"),buttonLabel:n.soldOut?e(a)("event.soldOut"):e(a)("event.bookNowButton"),buttonDisabled:n.soldOut,"min-value":n.type==="event"?1:n.minimumPersonCount,"max-value":n.type==="event"?n.maxOnlineReservationLimit||1/0:e(L),"is-loading":M.value,"onUpdate:isLoading":V[1]||(V[1]=O=>M.value=O),onAction:V[2]||(V[2]=O=>n.type==="event"?Y():Q())},null,8,["modelValue","label","buttonLabel","buttonDisabled","min-value","max-value","is-loading"])]),_:2},[n.type==="event"?{name:"description",fn:f(()=>[o("ul",Bo,[o("li",null,[u(k,{icon:"calendar-range","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(e(mo)(n.days)),1)]),e(re)(n.fromDate,n.toDate)<180?(t(),r("li",Vo,[u(k,{icon:"calendar-days","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(e(ue)(n.fromDate,n.toDate)),1)])):d("",!0),o("li",null,[u(k,{icon:"calendar-clock","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(e(po)(n.timeFrom,n.timeTo)),1)]),n.maxOnlineReservationLimit?(t(),r("li",Po,[u(k,{icon:"user-alt","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(`1 - ${n.maxOnlineReservationLimit} ${e(a)("general.people")}`),1)])):d("",!0)])]),key:"0"}:{name:"description",fn:f(()=>[o("ul",{class:"fresh-booking-event-listing-information"},[e(re)(n.fromDate,n.toDate)<180?(t(),r("li",{key:0},[u(k,{icon:"calendar-days","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(e(ue)(n.fromDate,n.toDate,!0)),1)])):d("",!0),o("li",null,[u(k,{icon:"user-alt","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(`${n.minimumPersonCount} - ${e(L)} ${e(a)("general.people")}`),1)]),o("li",null,[u(k,{icon:"money-bill","icon-color":n.styling.headerColor},null,8,["icon-color"]),o("span",null,l(`${e(a)("general.pricesFrom")} ${e(F)(n.fromPrice,e(E))}`),1)])])]),key:"1"}]),1032,["listing-id","gallery","name","description","layout","styling","currency"]))}});const ge=fe(Fo,[["__scopeId","data-v-c907b452"]]),w=T=>(Ye("data-v-7a0ec33b"),T=T(),Xe(),T),To={class:"fresh-booking-panel"},$o={key:0,id:"fresh-booking-event-overview"},Eo={class:"fresh-booking-event-listings"},Oo={class:"fresh-booking-event-listings"},Do={key:2,id:"fresh-booking-event-addons"},Ro={class:"fresh-booking-table"},So=w(()=>o("th",{class:"fresh-booking-event-addons-input"},null,-1)),wo={class:"fresh-booking-event-addons-price"},Lo=w(()=>o("br",null,null,-1)),Uo={class:"fresh-booking-event-addons-input"},Ao={class:"fresh-booking-event-addons-price"},zo=w(()=>o("td",{colspan:"2"},null,-1)),No={class:"fresh-booking-event-addons-price"},Io={key:3},qo={class:"fresh-booking-label required"},Wo={id:"fresh-booking-event-table"},Mo={key:4},jo={class:"fresh-booking-label required"},Ho={class:"fresh-booking-table"},Jo=w(()=>o("th",{class:"fresh-booking-event-addons-input"},null,-1)),Ko={class:"fresh-booking-event-addons-price"},Qo=w(()=>o("br",null,null,-1)),Yo=w(()=>o("br",null,null,-1)),Xo={class:"fresh-booking-event-addons-input"},Zo={class:"fresh-booking-event-addons-price"},Go={key:0},xo={key:1},el={key:2},ol={key:3},ll={key:4},nl={key:5},tl={key:6},al=ve({__name:"Event",props:{accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonFontWeight:{},buttonIconColor:{},buttonTextTransform:{},dangerColor:{},fontColor:{},fontFamily:{},fontSize:{},grayColor:{},headerColor:{},inputBackground:{},inputBorder:{},inputBorderRadius:{},inputFontColor:{},labelFontWeight:{},labelPadding:{},linkColor:{},loadingColor:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{},successColor:{}},setup(T){const i=T,{t:a}=ye(),{searchDate:$,addons:E,products:L,numberOfDays:S,discountCode:K,name:U,phone:A,email:z,remark:N,arrivalTime:b,title:M,subtitle:Q,slideshow:Y,currency:n,numberOfPeople:V,numberOfTotalDays:O,numberOfRooms:he,basePrice:ke,totalPrice:Ce,isPaymentLoading:_e,hasEvents:Be,hasTemplates:Ve,getEvents:Pe,getTemplates:Fe,getEventData:Te,getTemplateData:j,getEventTableData:$e,length:oe,roomUpgrade:Ee,weekendFee:Oe,fromDate:le,hasProducts:De,eventRateType:ne,isMetaDataAvailable:Re,areListingsAvailable:Se,isReservationFormFilled:we,isAvailabilityDataAvailable:Le,getEventImages:Ue,isTemplateEvent:P,tableBasePrice:te}=ee(J()),{initialize:Ae,validateDiscountCode:ul,fetchListings:ze,createBooking:Ne,localAddonPrice:ae,totalAddonPrice:se,reset:Ie}=J(),{hideEvents:qe,hideEventTemplates:We}=ee(go());Ke(()=>Ae()),Qe($,()=>ze());const Me={"--accentColor":i.accentColor,"--buttonBackground":i.buttonBackground,"--buttonBorder":i.buttonBorder,"--buttonBorderRadius":i.buttonBorderRadius,"--buttonColor":i.buttonColor,"--buttonFontFamily":i.buttonFontFamily,"--buttonFontSize":i.buttonFontSize,"--buttonFontWeight":i.buttonFontWeight,"--buttonTextTransform":i.buttonTextTransform,"--dangerColor":i.dangerColor,"--fontColor":i.fontColor,"--fontFamily":i.fontFamily,"--fontSize":i.fontSize,"--grayColor":i.grayColor,"--headerColor":i.headerColor,"--inputBackground":i.inputBackground,"--inputBorder":i.inputBorder,"--inputBorderRadius":i.inputBorderRadius,"--inputFontColor":i.inputFontColor,"--labelFontWeight":i.labelFontWeight,"--labelPadding":i.labelPadding,"--linkColor":i.linkColor,"--loadingColor":i.loadingColor,"--panelBackground":i.panelBackground,"--panelBorder":i.panelBorder,"--panelBorderRadius":i.panelBorderRadius,"--panelPadding":i.panelPadding,"--successColor":i.successColor};return(c,m)=>(t(),y(yo,{id:"fresh-booking-event-module",class:"fresh-booking-app",type:"event","access-token":c.accessToken,style:Me},{default:f(()=>[e(Re)?(t(),y(io,{key:0,slideshow:e(Y),title:e(M),subtitle:e(Q)},{availability:f(({next:H})=>[o("div",To,[u(_o,{modelValue:e($),"onUpdate:modelValue":m[0]||(m[0]=h=>D($)?$.value=h:null),label:e(a)("event.selectDate"),"min-date":new Date},null,8,["modelValue","label","min-date"])]),e(Se)?(t(),r("div",$o,[e(Be)&&!e(qe)?(t(),r(_,{key:0},[o("h2",null,[u(k,{icon:"clock-seven",type:"fal","icon-color":c.headerColor},null,8,["icon-color"]),o("span",null,l(e(a)("event.eventsTitle")),1)]),o("ul",Eo,[(t(!0),r(_,null,R(e(Pe),({id:h,days:s,name:g,timeFrom:C,timeTo:p,fromDate:v,toDate:I,tableGroupID:q,description:X,soldOut:Z,maxOnlineReservationLimit:W})=>(t(),y(ge,{key:h,type:"event","listing-id":h,"table-group-id":q,gallery:e(Ue)(h),description:X,name:g,days:s,"from-date":v,"to-date":I,"max-online-reservation-limit":W,"time-from":C,"time-to":p,"sold-out":Z,styling:{headerColor:c.headerColor,fontColor:c.fontColor,fontSize:c.fontSize,fontFamily:c.fontFamily,panelPadding:c.panelPadding},callback:H},null,8,["listing-id","table-group-id","gallery","description","name","days","from-date","to-date","max-online-reservation-limit","time-from","time-to","sold-out","styling","callback"]))),128))])],64)):d("",!0),e(Ve)&&!e(We)?(t(),r(_,{key:1},[o("h2",null,[u(k,{icon:"stars",type:"fal","icon-color":c.headerColor},null,8,["icon-color"]),o("span",null,l(e(a)("event.stayTitle")),1)]),o("ul",Oo,[(t(!0),r(_,null,R(e(Fe),({id:h,name:s,fromDate:g,toDate:C,minimumPersonCount:p,fromPrice:v,description:I,imageUrl:q})=>(t(),y(ge,{key:h,type:"template","listing-id":h,gallery:q,name:s,description:I,"from-date":g,"to-date":C,"minimum-person-count":p,fromPrice:v,styling:{headerColor:c.headerColor,fontColor:c.fontColor,fontSize:c.fontSize,fontFamily:c.fontFamily,panelPadding:c.panelPadding},callback:H},null,8,["listing-id","gallery","name","description","from-date","to-date","minimum-person-count","fromPrice","styling","callback"]))),128))])],64)):d("",!0)])):(t(),y(be,{key:1}))]),reservation:f(({next:H,prev:h})=>[e(Le)?(t(),y(ro,{key:0,remark:e(N),"onUpdate:remark":m[8]||(m[8]=s=>D(N)?N.value=s:null),"is-filled":e(we),"is-loading":e(_e),currency:e(n),"base-price":e(ke),"button-icon-color":c.buttonIconColor,"total-price":e(Ce),"weekend-fee":e(Oe),"room-upgrade":e(Ee),onPrev:s=>e(Ie)(h),onNext:s=>e(Ne)(H)},{form:f(()=>[e(ne)===e(de).FullDayEvent?(t(),y(x,{key:0,modelValue:e(S),"onUpdate:modelValue":m[1]||(m[1]=s=>D(S)?S.value=s:null),label:e(a)("event.numberOfDays"),"min-value":1,required:""},null,8,["modelValue","label"])):d("",!0),u(me,{modelValue:e(U),"onUpdate:modelValue":m[2]||(m[2]=s=>D(U)?U.value=s:null),type:"text",label:e(a)("booking.reservation.name"),icon:"user-alt",placeholder:e(a)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),u(me,{modelValue:e(z),"onUpdate:modelValue":m[3]||(m[3]=s=>D(z)?z.value=s:null),label:e(a)("booking.reservation.email"),type:"email",name:"email",autocomplete:"email",icon:"at",placeholder:e(a)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),u(Co,{modelValue:e(A),"onUpdate:modelValue":m[4]||(m[4]=s=>D(A)?A.value=s:null),label:e(a)("booking.reservation.phone"),icon:"phone-office",placeholder:e(a)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),d("",!0),e(j)&&e(j).length>0?(t(),r("ul",Do,[(t(!0),r(_,null,R(e(j),({roomGroupID:s,addons:g,adultPerRoom:C},p)=>(t(),r("li",{key:s},[o("h5",null,[o("span",null,l(e(a)("booking.reservation.room"))+" #"+l(p+1),1),ie(" ("),u(k,{icon:"male",type:"fas","icon-color":c.headerColor},null,8,["icon-color"]),ie(" "+l(C)+") ",1)]),o("table",Ro,[o("thead",null,[o("tr",null,[o("th",null,[o("span",null,l(e(a)("booking.reservation.addons")),1)]),So,o("th",wo,[o("span",null,l(e(a)("booking.availability.price")),1)])])]),o("tbody",null,[(t(!0),r(_,null,R(g,({addonID:v,cardinality:I,name:q,price:X,quantityStrategy:Z})=>(t(),r("tr",{key:v},[o("td",null,[o("b",null,l(q),1),Lo,o("span",null,l(e(F)(X,e(n)))+" "+l(e(vo)(Z)),1)]),o("td",Uo,[I===3?(t(),y(x,{key:0,modelValue:e(E)[`${s}.${v}.${p}`],"onUpdate:modelValue":W=>e(E)[`${s}.${v}.${p}`]=W,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])):(t(),y(pe,{key:1,modelValue:e(E)[`${s}.${v}.${p}`],"onUpdate:modelValue":W=>e(E)[`${s}.${v}.${p}`]=W,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),o("td",Ao,[o("span",null,l(e(F)(e(ae)(v,s,p),e(n))),1)])]))),128))]),o("tfoot",null,[o("tr",null,[zo,o("td",No,[o("u",null,[o("span",null,l(e(F)(e(se)(s,p),e(n))),1)])])])])])]))),128))])):d("",!0),e(ne)!==e(de).FullDayEvent&&!e(P)?(t(),r("div",Io,[o("label",qo,[o("span",null,l(e(a)("event.selectArrivalTime")),1)]),o("ul",Wo,[(t(!0),r(_,null,R(e($e),(s,g)=>(t(),r("li",{key:g},[u(pe,{modelValue:e(b),"onUpdate:modelValue":m[7]||(m[7]=C=>D(b)?b.value=C:null),type:"radio",name:"eventTimeTable",val:s.time,label:e(G)(s.time)},null,8,["modelValue","val","label"])]))),128))])])):d("",!0),e(De)?(t(),r("div",Mo,[o("label",jo,[o("span",null,l(e(a)("event.selectProducts")),1)]),o("table",Ho,[o("thead",null,[o("tr",null,[o("th",null,[o("span",null,l(e(a)("booking.reservation.addons")),1)]),Jo,o("th",Ko,[o("span",null,l(e(a)("booking.availability.price")),1)])])]),o("tbody",null,[(t(!0),r(_,null,R(e(Te).products,({productID:s,productName:g,price:C,description:p})=>(t(),r("tr",{key:s},[o("td",null,[o("b",null,[o("span",null,l(g),1)]),Qo,o("span",null,l(p),1),Yo,o("span",null,l(e(F)(C,e(n))),1)]),o("td",Xo,[u(x,{modelValue:e(L)[s],"onUpdate:modelValue":v=>e(L)[s]=v,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])]),o("td",Zo,[o("span",null,l(e(F)(e(ae)(s),e(n))),1)])]))),128))])])])):d("",!0)]),resume:f(()=>[o("li",null,[o("span",null,l(e(a)("event.numberOfGuests")),1),o("b",null,l(e(V)),1)]),e(P)?(t(),r("li",Go,[o("span",null,l(e(a)("event.numberOfRooms")),1),o("b",null,l(e(he)),1)])):d("",!0),e(P)?(t(),r("li",xo,[o("span",null,l(e(a)("event.numberOfDays")),1),o("b",null,l(e(O)),1)])):d("",!0),e(P)?(t(),r("li",el,[o("span",null,l(e(a)("booking.reservation.arrival")),1),o("b",null,l(e(ce)(e(le))),1)])):d("",!0),e(P)?(t(),r("li",ol,[o("span",null,l(e(a)("booking.reservation.departure")),1),o("b",null,l(e(ce)(e(le),e(O))),1)])):d("",!0),!e(P)&&e(b)?(t(),r("li",ll,[o("span",null,l(e(a)("event.startOfEvent")),1),o("b",null,l(e(G)(e(b))),1)])):d("",!0),!e(P)&&e(oe)?(t(),r("li",nl,[o("span",null,l(e(a)("event.lengthOfEvent")),1),o("b",null,l(e(G)(e(oe))),1)])):d("",!0),!e(P)&&e(te)>0?(t(),r("li",tl,[o("span",null,l(e(a)("booking.availability.basePrice")),1),o("b",null,l(e(F)(e(te),e(n))),1)])):d("",!0)]),expenses:f(()=>[(t(!0),r(_,null,R(e(j),({roomGroupID:s},g)=>(t(),r("li",{key:s},[o("span",null,l(e(a)("booking.reservation.addons"))+" - "+l(e(a)("booking.reservation.room"))+" #"+l(g+1),1),o("b",null,l(e(F)(e(se)(s,g),e(n))),1)]))),128))]),_:2},1032,["remark","is-filled","is-loading","currency","base-price","button-icon-color","total-price","weekend-fee","room-upgrade","onPrev","onNext"])):d("",!0)]),payment:f(()=>[u(uo)]),confirmation:f(()=>[u(co,{message:e(a)("event.confirmationMessage"),currency:e(n)},null,8,["message","currency"])]),_:1},8,["slideshow","title","subtitle"])):(t(),y(be,{key:1}))]),_:1},8,["access-token"]))}});const sl=fe(al,[["__scopeId","data-v-7a0ec33b"]]);Ze.flare.light();const il=Ge(),rl=xe(),B=eo({components:{Event:sl}});B.use(oo.flareVue);B.use(il);B.use(rl);B.use(lo);B.use(no);B.use(ho);B.use(to);B.use(ao,{bootstrap:!1});B.mount("#fresh-booking-event-app");
2
- //# sourceMappingURL=event.js.map
package/dist/event.js.br DELETED
Binary file
@@ -1,2 +0,0 @@
1
- import{f as v,g as T,s as m,o as C,j as z,A as f,i as d,e as t,t as l,u as n,k as h,c as R,C as W,l as X,S as x,p as I,b as P,_ as A,m as L,q as w,n as U,x as D}from"./assets/vendor-65ee0d78.js";import{u as B}from"./assets/applyGiftCard-39571f2e.js";import{u as E,c as G,f as N,_ as Z}from"./assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js";import{A as $}from"./assets/ActionField-d1b315e3.js";import{I as g}from"./assets/Icon-6c933148.js";import{a as M}from"./assets/Alert-2cd22061.js";import"./assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js";import"./assets/Clickable-19c9ecdc.js";const H=i=>(I("data-v-64c7a8a4"),i=i(),P(),i),Y=["innerHTML"],j={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},q=H(()=>t("span",null,"Loading...",-1)),J=v({__name:"GiftCardValidation",props:{accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonTextTransform:{},buttonFontWeight:{},fontColor:{},fontFamily:{},fontSize:{},fontWeight:{},grayColor:{},headerColor:{},headerFontSize:{},inputBackground:{},inputBorder:{},inputBorderRadius:{},inputFontColor:{},labelFontWeight:{},labelPadding:{},loadingColor:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{}},setup(i){const o=i,{t:e}=T(),{voucher:c,isValid:F,amount:k,expirationDate:y,productName:_,isLoading:s}=m(B()),{currency:S}=m(E()),{apply:b}=B(),V={"--accentColor":o.accentColor,"--buttonBackground":o.buttonBackground,"--buttonBorder":o.buttonBorder,"--buttonBorderRadius":o.buttonBorderRadius,"--buttonColor":o.buttonColor,"--buttonFontFamily":o.buttonFontFamily,"--buttonFontSize":o.buttonFontSize,"--buttonTextTransform":o.buttonTextTransform,"--buttonFontWeight":o.buttonFontWeight,"--fontColor":o.fontColor,"--fontFamily":o.fontFamily,"--fontSize":o.fontSize,"--fontWeight":o.fontWeight,"--grayColor":o.grayColor,"--headerColor":o.headerColor,"--headerFontSize":o.headerFontSize,"--inputBackground":o.inputBackground,"--inputBorder":o.inputBorder,"--inputBorderRadius":o.inputBorderRadius,"--inputFontColor":o.inputFontColor,"--labelFontWeight":o.labelFontWeight,"--labelPadding":o.labelPadding,"--loadingColor":o.loadingColor,"--panelBackground":o.panelBackground,"--panelBorder":o.panelBorder,"--panelBorderRadius":o.panelBorderRadius,"--panelPadding":o.panelPadding};return(u,a)=>(C(),z(x,null,{default:f(()=>[d(Z,{id:"fresh-booking-gift-card-validation-module",class:"fresh-booking-app","access-token":u.accessToken,type:"gift-card",style:V},{default:f(()=>[t("form",{onSubmit:a[3]||(a[3]=X(r=>n(b)(),["prevent"]))},[t("h4",null,[t("span",null,l(n(e)("giftCardValidation.title")),1)]),t("p",{innerHTML:n(e)("giftCardValidation.description")},null,8,Y),d($,{modelValue:n(c),"onUpdate:modelValue":a[0]||(a[0]=r=>h(c)?c.value=r:null),icon:"gift-card",label:n(e)("booking.reservation.giftCardCode"),buttonLabel:n(e)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":n(s),"onUpdate:isLoading":a[1]||(a[1]=r=>h(s)?s.value=r:null),onAction:a[2]||(a[2]=r=>n(b)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!n(s)&&n(F)?(C(),R("table",j,[t("thead",null,[t("tr",null,[t("th",null,[t("span",null,l(n(e)("giftCardValidation.giftCard")),1),d(g,{icon:"gift-card",type:"fas","icon-color":u.headerColor},null,8,["icon-color"])]),t("th",null,[t("span",null,l(n(e)("giftCardValidation.balance")),1),d(g,{icon:"money-bill",type:"fas","icon-color":u.headerColor},null,8,["icon-color"])]),t("th",null,[t("span",null,l(n(e)("giftCardValidation.expirationDate")),1),d(g,{icon:"timer",type:"fas","icon-color":u.headerColor},null,8,["icon-color"])])])]),t("tbody",null,[t("tr",null,[t("td",null,[t("span",null,l(n(_)),1)]),t("td",null,[t("span",null,l(n(G)(n(k),n(S))),1)]),t("td",null,[t("span",null,l(n(N)(n(y))),1)])])])])):W("",!0)],32)]),_:1},8,["access-token"])]),fallback:f(()=>[q]),_:1}))}});const O=A(J,[["__scopeId","data-v-64c7a8a4"]]);L.flare.light("rzAIZ4UzZcOlUo0F0ZcYWETY9Z6JXf82");const p=w({components:{GiftCardValidation:O}}),K=U();p.use(D.flareVue);p.use(K);p.use(M);p.mount("#fresh-booking-gift-card-validation-app");
2
- //# sourceMappingURL=gift-card-validation.js.map
Binary file
package/dist/gift-card.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as fe,s as X,r as k,M as Q,z as P,N as Y,a as se,f as de,g as ue,o as u,j as W,A as O,e as s,c as b,i as m,u as e,C,B as ce,E as ge,h as ve,O as be,t as ae,w as L,P as j,k as B,F as he,G as ye,Q as oe,S as ke,R as Ce,p as _e,b as Fe,_ as Ve,m as Be,n as Pe,q as Se,x as ze,J as Te,L as Re}from"./assets/vendor-65ee0d78.js";import{u as pe,G as y,i as we,j as $e,R as le,I as Ee,_ as Ue}from"./assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js";import{u as Z,i as M,a as qe}from"./assets/Alert-2cd22061.js";import{T as x,_ as Ie}from"./assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js";import{P as Le,C as te,_ as Me}from"./assets/GoogleNotice-83805aa2.js";import{C as G,L as ne}from"./assets/Clickable-19c9ecdc.js";import"./assets/Icon-6c933148.js";const re=fe("giftCard",()=>{const{display:f}=Z(),{bearerToken:o,metaData:a}=X(pe()),l=k(y.InitialState),S=Q("freshBookingName","",void 0,{serializer:Y.string}),p=Q("freshBookingEmail","",void 0,{serializer:Y.string}),g=Q("freshBookingPhone","",void 0,{serializer:Y.string}),_=k(""),z=k(1),$=k(!0),U=k(""),h=k({base64:"",type:"",name:""}),n=k(void 0),d=k(0),v=k(!1),T=k(0),F=P(()=>l.value===y.InitialState||l.value===y.WaitingForResponse),R=P(()=>l.value===y.ReadyToPay),q=P(()=>l.value===y.PaymentSuccess),V=P(()=>{const c={1:{label:M.t("giftCard.hotelType"),data:[]},2:{label:M.t("giftCard.restaurantType"),data:[]}},r=a.value.places;return r&&r.forEach(t=>{c[t.placeType].data.push(t)}),Object.fromEntries(Object.entries(c).filter(([,t])=>t.data.length>0))}),D=P(()=>T.value!==0),w=P(()=>{let c;if(D.value)c=V.value[T.value].data[0];else if(d.value!==0){const r=n.value,t=V.value[d.value].data;t.length===1?c=t[0]:r!==void 0&&t.forEach(I=>{String(I.id)===String(r)&&(c=I)})}return c}),A=P(()=>!(!S.value||!p.value||!(g.value.length>=5)||!_.value||w.value===void 0)),N=P(()=>!(l.value===y.InitialState&&v.value)),K=P(()=>!!(l.value===y.WaitingForResponse&&v.value));async function J(){l.value=y.WaitingForResponse,v.value=!0,await se.post("http://localhost:91/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:a.value.currency.id,language:we(),amount:_.value,quantity:z.value,freeText:U.value,showPrice:$.value,contactName:S.value,contactEmail:p.value,contactPhone:g.value,imageBase64:$e(h.value.base64),imageName:h.value.name,imageFormat:h.value.type,placeType:w.value?w.value.placeType:void 0,placeID:w.value?w.value.id:void 0},{headers:{Authorization:o.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.0"}}).then(c=>{if(v.value=!1,c.data.easyPayment){l.value=y.ReadyToPay;const r=new Reepay.EmbeddedCheckout(c.data.easyPayment.paymentID,{html_element:"fresh-booking-gift-card-payment"});r.addEventHandler(le.Accept,()=>{l.value=y.PaymentSuccess,f({message:M.t("alert.success.giftCardOrdered"),type:"success"})}),r.addEventHandler(le.Error,()=>{f({message:M.t("booking.other.errorMessage"),type:"warning"})})}else l.value=y.InitialState,f({message:`${M.t("booking.other.errorMessage")} (HTTP: ${c.status})`,type:"warning"})})}function H(c){T.value=c}return{moduleState:l,name:S,email:p,phone:g,value:_,remark:U,showValue:$,quantity:z,media:h,placeId:n,placeType:d,showFormPage:F,showPaymentPage:R,showConfirmationPage:q,places:V,hasFilledForm:A,hasForcedPlaceType:D,isWaitingForResponse:K,isMetaDataAvailable:N,orderGiftCard:J,initialize:H}}),We={class:"media-selector"},Ge=["accept"],De={class:"media-selector-wrapper"},Ae={class:"media-selector-tools"},Ne={key:0},He={key:1},je={key:2},xe=["src"],Oe=de({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(f,{emit:o}){const a=f,{t:l}=ue(),{display:S}=Z(),p=k(),g=P(()=>a.modelValue.base64!=="");function _(n){o("update:modelValue",n)}function z(){_({base64:"",name:"",type:""}),p.value&&(p.value.value="")}function $(){p.value&&p.value.click()}function U(n,d){const[v,T]=[n.name,n.type],F=new FileReader;F.onload=function(R){if(R.target){const q=R.target.result;d({base64:q,name:v,type:T})}else S({message:l("imageUploadError"),type:"error"})},F.readAsDataURL(n)}async function h(){let n;(n=p.value.files)instanceof FileList&&U(n[0],_)}return(n,d)=>(u(),W(Ee,{label:n.label,required:n.required,type:"media"},{default:O(()=>[s("div",We,[s("input",{ref_key:"fileInput",ref:p,type:"file",class:"hidden",accept:n.validation,single:"",onChange:d[0]||(d[0]=v=>h())},null,40,Ge),s("div",De,[s("ul",Ae,[g.value?C("",!0):(u(),b("li",Ne,[m(G,{label:e(l)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:d[1]||(d[1]=v=>$())},null,8,["label","icon-color"])])),g.value?(u(),b("li",He,[m(G,{label:e(l)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:d[2]||(d[2]=v=>$())},null,8,["label","icon-color"])])):C("",!0),g.value?(u(),b("li",je,[m(G,{label:e(l)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:d[3]||(d[3]=v=>z())},null,8,["label","icon-color"])])):C("",!0)]),s("div",{class:ce(["media-selector-previewer",{opened:g.value}])},[n.modelValue?(u(),b("img",{key:0,src:n.modelValue.base64},null,8,xe)):C("",!0)],2)])])]),_:1},8,["label","required"]))}});function ie(f){const o=f;o.__i18n=o.__i18n||[],o.__i18n.push({locale:"",resource:{da:{uploadFile:a=>{const{normalize:l}=a;return l(["Upload billede"])},removeFile:a=>{const{normalize:l}=a;return l(["Fjern billede"])},replaceFile:a=>{const{normalize:l}=a;return l(["Ersat billede"])},imageUploadError:a=>{const{normalize:l}=a;return l(["Der skete en fejl under billede upload!"])}},en:{uploadFile:a=>{const{normalize:l}=a;return l(["Upload image"])},removeFile:a=>{const{normalize:l}=a;return l(["Remove image"])},replaceFile:a=>{const{normalize:l}=a;return l(["Replace image"])},imageUploadError:a=>{const{normalize:l}=a;return l(["An error occurred under image upload!"])}}}})}typeof ie=="function"&&ie(Oe);const Ke=f=>(_e("data-v-10b51e8f"),f=f(),Fe(),f),Je={key:0,id:"fresh-booking-gift-card-wrapper"},Qe={id:"fresh-booking-gift-card-title"},Ye={id:"fresh-booking-gift-card-content"},Xe={id:"fresh-booking-gift-card-payment"},Ze=["innerHTML"],ea={key:0},aa={key:0,id:"fresh-booking-select-place-type"},oa={class:ce(["fresh-booking-label","required"])},la={id:"fresh-booking-select-place-type-input"},ta=["innerHTML"],na={key:0,id:"fresh-booking-gift-card-order"},ra={class:"fresh-booking-panel"},ia={key:1,id:"fresh-booking-gift-card-remarks"},sa={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},da={id:"fresh-booking-gift-card-recaptcha"},ua=Ke(()=>s("span",null,"Loading...",-1)),ca=de({__name:"GiftCard",props:{accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonTextTransform:{},buttonFontWeight:{},fontColor:{},fontFamily:{},fontSize:{},fontWeight:{},grayColor:{},headerColor:{},headerFontSize:{},inputBackground:{},inputBorder:{},inputBorderRadius:{},inputFontColor:{},labelFontWeight:{},labelPadding:{},layout:{},loadingColor:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{},placeType:{},successColor:{}},setup(f){const o=f,{t:a}=ue(),{name:l,email:S,phone:p,value:g,remark:_,showValue:z,quantity:$,media:U,placeId:h,placeType:n,showFormPage:d,showPaymentPage:v,showConfirmationPage:T,places:F,hasFilledForm:R,hasForcedPlaceType:q,isWaitingForResponse:V,isMetaDataAvailable:D}=X(re()),{initialize:w,orderGiftCard:A}=re(),{isRecaptchaEnabled:N,currency:K}=X(pe()),{display:J}=Z();async function H(){const r=Ce();if(N.value&&r){await r.recaptchaLoaded();const t=await r.executeRecaptcha("create_gift_card");(await se.get(`/?rest_route=/freshcase-octopus/v1/recaptcha/${t}`)).data.success?await A():J({message:a("alert.error.robot"),type:"error"})}else await A()}ge(n,()=>{h.value=void 0}),ve(()=>{w(parseInt(o.placeType))});const c={"--accentColor":o.accentColor,"--buttonBackground":o.buttonBackground,"--buttonBorder":o.buttonBorder,"--buttonBorderRadius":o.buttonBorderRadius,"--buttonFontFamily":o.buttonFontFamily,"--buttonColor":o.buttonColor,"--buttonFontSize":o.buttonFontSize,"--buttonTextTransform":o.buttonTextTransform,"--buttonFontWeight":o.buttonFontWeight,"--fontColor":o.fontColor,"--fontFamily":o.fontFamily,"--fontSize":o.fontSize,"--fontWeight":o.fontWeight,"--grayColor":o.grayColor,"--headerColor":o.headerColor,"--headerFontSize":o.headerFontSize,"--inputBackground":o.inputBackground,"--inputBorder":o.inputBorder,"--inputBorderRadius":o.inputBorderRadius,"--inputFontColor":o.inputFontColor,"--labelFontWeight":o.labelFontWeight,"--labelPadding":o.labelPadding,"--loadingColor":o.loadingColor,"--panelBackground":o.panelBackground,"--panelBorder":o.panelBorder,"--panelBorderRadius":o.panelBorderRadius,"--panelPadding":o.panelPadding,"--successColor":o.successColor};return(r,t)=>{const I=be("sticky");return u(),W(ke,null,{default:O(()=>[m(Ue,{id:"fresh-booking-gift-card-module",class:"fresh-booking-app",type:"gift-card","access-token":r.accessToken,"data-layout":r.layout,style:c,"sticky-container":""},{default:O(()=>[e(D)?(u(),b("div",Je,[s("h4",Qe,[s("span",null,ae(e(a)("giftCard.title")),1)]),s("div",Ye,[L(s("div",Xe,null,512),[[j,e(v)]]),L(s("div",null,[s("p",{id:"fresh-booking-gift-card-description",innerHTML:e(a)("giftCard.description")},null,8,Ze),s("form",null,[m(x,{modelValue:e(l),"onUpdate:modelValue":t[0]||(t[0]=i=>B(l)?l.value=i:null),type:"text",name:"name",autocomplete:"name",label:e(a)("giftCard.name"),icon:"user-alt","icon-color":r.accentColor,placeholder:e(a)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","icon-color","placeholder"]),m(x,{modelValue:e(S),"onUpdate:modelValue":t[1]||(t[1]=i=>B(S)?S.value=i:null),type:"email",name:"email",autocomplete:"email",label:e(a)("giftCard.email"),icon:"at","icon-color":r.accentColor,placeholder:e(a)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","icon-color","placeholder"]),m(Le,{modelValue:e(p),"onUpdate:modelValue":t[2]||(t[2]=i=>B(p)?p.value=i:null),icon:"phone-office","icon-color":r.accentColor,label:e(a)("giftCard.phone"),placeholder:e(a)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","icon-color","label","placeholder"]),e(q)?C("",!0):(u(),b("div",ea,[e(F)?(u(),b("div",aa,[s("label",oa,[s("span",null,ae(e(a)("giftCard.selectType")),1)]),s("div",la,[s("ul",null,[(u(!0),b(he,null,ye(e(F),(i,ee)=>(u(),b("li",{key:ee},[m(te,{modelValue:e(n),"onUpdate:modelValue":t[3]||(t[3]=me=>B(n)?n.value=me:null),type:"radio",name:"placeType",val:ee,label:i.label},null,8,["modelValue","val","label"])]))),128))]),e(F)[e(n)]&&e(F)[e(n)].data.length>1?(u(),W(Ie,{key:0,modelValue:e(h),"onUpdate:modelValue":t[4]||(t[4]=i=>B(h)?h.value=i:null),placeholder:e(a)("giftCard.selectPlacePlaceholder"),options:e(F)[e(n)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):C("",!0)])])):(u(),W(ne,{key:1,color:r.loadingColor},null,8,["color"]))])),m(x,{modelValue:e(g),"onUpdate:modelValue":t[5]||(t[5]=i=>B(g)?g.value=i:null),type:"number",name:"value",label:e(a)("giftCard.value"),icon:"money-bill","icon-color":r.accentColor,placeholder:e(a)("giftCard.valuePlaceholder"),suffix:e(K),required:""},null,8,["modelValue","label","icon-color","placeholder","suffix"]),m(te,{modelValue:e(z),"onUpdate:modelValue":t[6]||(t[6]=i=>B(z)?z.value=i:null),type:"checkbox",name:"showValue",label:e(a)("giftCard.showValue"),checked:e(z)},null,8,["modelValue","label","checked"]),C("",!0),C("",!0)])],512),[[j,e(d)]]),L(s("div",null,[s("div",{innerHTML:e(a)("giftCard.thankYou")},null,8,ta)],512),[[j,e(T)]])]),r.layout!=="minimal"&&e(d)?(u(),b("div",na,[s("div",ra,[m(G,{label:e(a)("giftCard.orderGiftCard"),style:oe({background:r.successColor}),"full-width":!0,disabled:!e(R),"is-loading":e(V),"onUpdate:isLoading":t[9]||(t[9]=i=>B(V)?V.value=i:null),onClickEvent:H},null,8,["label","style","disabled","is-loading"])])])):C("",!0),e(d)?(u(),b("div",ia,[m(x,{modelValue:e(_),"onUpdate:modelValue":t[10]||(t[10]=i=>B(_)?_.value=i:null),type:"textarea",name:"remark",label:e(a)("giftCard.remark"),icon:"info-circle","icon-color":r.accentColor,placeholder:e(a)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","icon-color","placeholder"])])):C("",!0),e(d)?L((u(),b("div",sa,[m(G,{label:e(a)("giftCard.orderGiftCard"),style:oe({background:r.successColor}),"full-width":!0,disabled:!e(R),"data-test":"orderGiftCard","is-loading":e(V),"onUpdate:isLoading":t[11]||(t[11]=i=>B(V)?V.value=i:null),onClickEvent:H},null,8,["label","style","disabled","is-loading"]),L(s("div",da,[m(Me)],512),[[j,e(N)]])])),[[I]]):C("",!0)])):(u(),W(ne,{key:1}))]),_:1},8,["access-token","data-layout"])]),fallback:O(()=>[ua]),_:1})}}});const pa=Ve(ca,[["__scopeId","data-v-10b51e8f"]]);Be.flare.light();const ma=Pe(),E=Se({components:{GiftCard:pa}});E.use(ze.flareVue);E.use(ma);E.use(qe);E.use(Te);E.use(Re,{bootstrap:!1});E.mount("#fresh-booking-gift-card-app");
2
- //# sourceMappingURL=gift-card.js.map
Binary file
package/dist/hotel.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as Vo,s as O,U as Co,W as Ee,f as W,g as ue,z as q,o as a,j as V,A as B,e as o,i as d,t as r,c as s,C as f,O as he,w as x,F as S,G as w,_ as de,r as Y,X as Bo,h as Re,E as Ie,u as e,B as re,Y as $o,H as fe,l as To,Q as Fo,k as C,D as No,Z as So,S as Po,R as wo,a as Ro,p as Io,b as Do,m as Uo,n as qo,I as Ao,q as Lo,x as Mo,$ as Eo,J as zo,V as Ho,K as Go,L as Wo}from"./assets/vendor-65ee0d78.js";import{_ as Ko,u as we,B as Oo,M as xo,R as Yo,C as jo,T as Jo}from"./assets/ThankYou-29820212.js";import{u as Qo,a as Xo}from"./assets/Alert-2cd22061.js";import{u as De,c as H,r as ze,I as Zo,k as He,B as el,f as M,d as Ge,l as ol,_ as ll}from"./assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js";import{_ as al,a as nl}from"./assets/payment-a3a9b5dd.js";import{H as tl}from"./assets/HotelAvailabilityForm-53fa6ecb.js";import{I as T}from"./assets/Icon-6c933148.js";import{_ as il}from"./assets/applyGiftCard-39571f2e.js";import{_ as _e,T as G}from"./assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js";import{C as se,P as sl}from"./assets/GoogleNotice-83805aa2.js";import{C as ke,L as We}from"./assets/Clickable-19c9ecdc.js";import"./assets/ActionField-d1b315e3.js";const rl=Vo("tracking",()=>{const{enableTracking:h,googleApiKey:n}=O(De());function l(){console.log("Tracking"),console.log(n),Co({config:{id:n.value,params:{send_page_view:!1}},enabled:h.value})}function _({id:i,name:k,value:F,label:j,category:J="general"}){return{items:[{id:i,name:k}],event_label:j,event_category:J,value:F}}function y(i,k){Ee(i,_(k))}function p(i){y("add_to_cart",{...i,label:"Added to cart",category:"ecommerce"})}function v(i){y("remove_from_cart",{...i,label:"Removed to cart",category:"ecommerce"})}function m(i){Ee("view_item",{items:[{name:i}]})}return{setup:l,viewItem:m,addToCart:p,removeFromCart:v}}),ul={style:{display:"flex","align-items":"baseline"}},dl={key:0},cl={style:{display:"flex","align-items":"baseline"}},pl={key:0},ml=W({__name:"RoomConfigField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{}},emits:["update:modelValue"],setup(h,{emit:n}){const l=h;ue();function _(p){n("update:modelValue",p)}const y=q({get:()=>l.modelValue,set:p=>_(p)});return(p,v)=>(a(),V(_e,{modelValue:y.value,"onUpdate:modelValue":v[0]||(v[0]=m=>y.value=m),label:p.label,placeholder:"Select guest configuration",labelKey:"label",valueKey:"value",options:p.options,required:p.required},{option:B(({data:m})=>[o("div",ul,[o("div",null,[d(T,{icon:"male",type:"fas"}),o("span",null,r(`${m.adults}`),1)]),m.children>0?(a(),s("div",dl,[d(T,{icon:"child",type:"fas"}),o("span",null,r(`${m.children}`),1)])):f("",!0),o("div",null,r(`(${m.price})`),1)])]),"selected-option":B(({data:m})=>[o("div",cl,[o("div",null,[d(T,{icon:"male",type:"fas"}),o("span",null,r(`${m.adults}`),1)]),m.children>0?(a(),s("div",pl,[d(T,{icon:"child",type:"fas"}),o("span",null,r(`${m.children}`),1)])):f("",!0)])]),_:1},8,["modelValue","label","options","required"]))}}),yl={key:0,class:"fresh-booking-modal-facilities"},bl={class:"fresh-booking-modal-facilities-masonry","transition-duration":"0s","destroy-delay":0,"percent-position":!0,"column-width":".grid-sizer","item-selector":".fresh-booking-modal-facility"},gl={class:"grid-sizer"},vl=W({__name:"Info",props:{title:{},description:{},facilities:{},styling:{}},setup(h){return(n,l)=>{const _=he("masonry-tile"),y=he("masonry");return a(),V(Ko,{title:n.title,description:n.description,styling:n.styling},{default:B(()=>[n.facilities&&n.facilities.length!==0?(a(),s("div",yl,[x((a(),s("ul",bl,[x(o("div",gl,null,512),[[_]]),(a(!0),s(S,null,w(n.facilities,({name:p,subFacilities:v},m)=>x((a(),s("li",{key:m,class:"fresh-booking-modal-facility"},[o("h6",null,[o("span",null,r(p),1)]),o("ul",null,[(a(!0),s(S,null,w(v,({name:i},k)=>(a(),s("li",{key:k},r(i),1))),128))])])),[[_]])),128))])),[[y]])])):f("",!0)]),_:1},8,["title","description","styling"])}}});const fl=de(vl,[["__scopeId","data-v-f4a8289d"]]),kl={class:"freshbooking-hotel-room"},hl={key:0,class:"booking-availability-listing-action-selective"},_l={class:"fresh-booking-listing-config-header"},Vl={class:"fresh-booking-inline-spacing"},Cl={class:"fresh-booking-inline-spacing"},Bl={class:"fresh-booking-listing-units-header"},$l={class:"fresh-booking-inline-spacing"},Tl={key:0,class:"fresh-booking-inline-spacing"},Fl={class:"fresh-booking-listing-price-header"},Nl={class:"fresh-booking-listing-config-body"},Sl={class:"fresh-booking-listing-units-body"},Pl={class:"fresh-booking-listing-price-body"},wl={key:0},Rl={key:1},Il=W({__name:"Test",props:{room:{},layout:{},styling:{}},setup(h){const n=h,{t:l}=ue(),{hideAvailableRoomAmount:_,currency:y}=O(De()),{finalSelection:p}=O(we()),{viewItem:v}=rl(),m=Y({}),i=Y({}),k=Y(void 0),F=c=>n.room.rates.find(b=>b.id===c).occupantRates.find(b=>b.index===i.value[b.ratePlanID]),j=q(()=>n.room.rates.map(c=>({label:c.name,value:c.id}))),J=q(()=>n.room.rates.reduce((c,b)=>c<b.rackRate?c:b.rackRate,1/0)),Ve=q(()=>n.room.rates.every(c=>c.isBreakfastIncluded===!0)),I=c=>F(c)?F(c).totalPrice*m.value[F(c).ratePlanID]:null,P=c=>F(c)?F(c).rooms:null,A=c=>n.room.rates.length>0?n.room.rates.find(b=>b.id===c).occupantRates.map(b=>({value:b.index,price:b.totalPrice,adults:b.adultsCount,children:b.childrenCount,hasBreakfast:b.hasBreakfast})):[],D=q(()=>n.room.rates.length>1),K=q(()=>{const c={};for(const b in i.value)c[b]={units:m.value[b],config:i.value[b],addons:{}};return c}),{open:Q,close:X}=Bo({component:fl,attrs:{title:n.room.title,description:n.room.description,facilities:n.room.facilities,styling:n.styling,onConfirm(){X()}}});function Z(){Q(),v(n.room.title)}function ee(){D.value||(k.value=n.room.rates[0].id,i.value={[k.value]:n.room.rates[0].occupantRateIndex})}return Re(()=>{ee()}),Ie(K,(c,b)=>{console.log(c,b),p.value[n.room.id]=K}),(c,b)=>(a(),V(Oo,{"listing-id":c.room.id,gallery:c.room.images,name:c.room.title,description:c.room.description,layout:c.layout,styling:c.styling,facilities:c.room.facilities,"prices-from":J.value,"includes-breakfast":Ve.value,currency:e(y),callback:Z,style:{"--inputBackground":"transparent"}},{action:B(()=>[o("div",kl,[D.value?(a(),V(_e,{key:0,modelValue:k.value,"onUpdate:modelValue":b[0]||(b[0]=$=>k.value=$),label:"Room variant",placeholder:"Choose a room variant",options:j.value},null,8,["modelValue","options"])):f("",!0),o("div",null,[(a(!0),s(S,null,w(c.room.rates,({id:$,maximumAdults:oe})=>(a(),s("div",{key:$},[k.value===$?(a(),s("div",hl,[o("div",_l,[o("b",Vl,[o("span",null,r(e(l)("availability.adults")),1),o("span",Cl,[d(T,{icon:"male",type:"fas","icon-color":c.styling.headerColor},null,8,["icon-color"]),o("span",null,r(`Max: ${oe}`),1)])])]),o("div",Bl,[o("b",$l,[o("span",null,r(e(l)("booking.availability.units")),1),e(_)?f("",!0):(a(),s("span",Tl,[d(T,{icon:"house",type:"fas","icon-color":c.styling.headerColor},null,8,["icon-color"]),o("span",null,r(P($)),1)]))])]),o("div",Fl,[o("b",null,r(e(l)("booking.availability.price")),1)]),o("ul",Nl,[(a(),V(ml,{key:0,modelValue:i.value[$],"onUpdate:modelValue":E=>i.value[$]=E,options:A($)},null,8,["modelValue","onUpdate:modelValue","options"]))]),o("ul",Sl,[d(il,{modelValue:m.value[$],"onUpdate:modelValue":E=>m.value[$]=E,minValue:0},null,8,["modelValue","onUpdate:modelValue"])]),o("ul",Pl,[I($)===null?(a(),s("span",wl,"-")):(a(),s("span",Rl,r(e(H)(I($),e(y))),1))])])):f("",!0)]))),128))])])]),_:1},8,["listing-id","gallery","name","description","layout","styling","facilities","prices-from","includes-breakfast","currency"]))}});const Dl=de(Il,[["__scopeId","data-v-0dada669"]]),Ke=W({__name:"TimeField",props:{modelValue:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{},primaryColor:{},secondaryColor:{},weekendColor:{},highlightedColor:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},inline:{type:Boolean},range:{type:Boolean},enableTimePicker:{type:Boolean},inputStyle:{}},emits:["update:modelValue"],setup(h,{emit:n}){const l=h;function _(p){n("update:modelValue",p)}const y=Y(l.modelValue);return Ie(y,p=>{_(p)}),(p,v)=>(a(),V(al,{modelValue:y.value,"onUpdate:modelValue":v[0]||(v[0]=m=>y.value=m),type:"time",label:p.label,id:p.id,name:p.name,icon:p.icon,"icon-type":p.iconType,"icon-color":p.iconColor,"auto-apply":!0,required:p.required,readonly:p.readonly},null,8,["modelValue","label","id","name","icon","icon-type","icon-color","required","readonly"]))}});const Ul={style:{display:"flex","align-items":"baseline"}},ql=W({__name:"CountryField",props:{modelValue:{},options:{},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},label:{},placeholder:{}},emits:["update:modelValue"],setup(h,{emit:n}){const l=h,{t:_}=ue();function y(v){n("update:modelValue",v)}const p=q({get:()=>l.modelValue,set:v=>y(v)});return(v,m)=>(a(),V(_e,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=i=>p.value=i),label:v.label,placeholder:e(_)("booking.reservation.countryPlaceholder"),labelKey:"name",valueKey:"id",options:v.options,required:v.required},{option:B(({data:i})=>[o("i",{class:re(["fresh-booking-flag",i.iso])},null,2),o("span",null,r(i.name),1)]),"selected-option":B(({data:i})=>[o("div",Ul,[o("i",{class:re(["fresh-booking-flag",i.iso])},null,2),o("span",null,r(i.name),1)])]),_:1},8,["modelValue","label","placeholder","options","required"]))}});const Al=de(ql,[["__scopeId","data-v-19fc0955"]]),Ll=W({__name:"NameField",props:{modelValue:{},title:{},label:{},id:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{default:"text"},autocomplete:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},limit:{default:1/0},inputStyle:{},excludeTitle:{type:Boolean,default:!1}},emits:["update:modelValue","update:title"],setup(h,{emit:n}){const l=h,_=l.id||ze(),y=Y(""),p=Y(2);function v(){n("update:modelValue",y.value)}Ie(p,i=>{n("update:title",i)});const{t:m}=ue();return Re(()=>{l.modelValue&&(y.value=l.modelValue),l.title&&(p.value=l.title)}),(i,k)=>(a(),V(Zo,{label:i.label,id:e(_),required:i.required,type:"fresh-booking-name-field",readonly:i.readonly,limit:i.limit},{default:B(()=>[o("div",{class:re(["fresh-booking-name-input",{"no-title":i.excludeTitle}])},[i.excludeTitle?f("",!0):(a(),V(_e,{key:0,modelValue:p.value,"onUpdate:modelValue":k[0]||(k[0]=F=>p.value=F),id:e(ze)(),icon:i.icon,"icon-color":i.iconColor,"icon-type":i.iconType,options:[{label:e(m)("booking.reservation.noNameTitle"),value:1},{label:e(m)("booking.reservation.nameTitleMr"),value:2},{label:e(m)("booking.reservation.nameTitleMs"),value:3},{label:e(m)("booking.reservation.nameTitleMrs"),value:4},{label:e(m)("booking.reservation.nameTitleDr"),value:5}],readonly:i.readonly,"hide-button":"","input-style":i.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","options","readonly","input-style"])),d(G,{modelValue:y.value,"onUpdate:modelValue":k[1]||(k[1]=F=>y.value=F),type:"text",name:"name",autocomplete:"name",id:e(_),icon:i.excludeTitle?i.icon:void 0,"icon-color":i.iconColor,"icon-type":i.iconType,placeholder:i.placeholder,required:i.required,readonly:i.readonly,limit:i.limit,onInput:k[2]||(k[2]=F=>v()),"input-style":i.inputStyle},null,8,["modelValue","id","icon","icon-color","icon-type","placeholder","required","readonly","limit","input-style"])],2)]),_:1},8,["label","id","required","readonly","limit"]))}});const Ml=de(Ll,[["__scopeId","data-v-ca61082e"]]),El=h=>(Io("data-v-7ea826ef"),h=h(),Do(),h),zl={id:"booking-availability-container"},Hl={id:"booking-availability-controls"},Gl={key:0,"sticky-container":""},Wl={key:0},Kl={key:0,id:"booking-availability-packages"},Ol=["title"];const xl=["innerHTML"];const Yl={key:1,id:"reservation-template-rooms"},jl=["innerHTML"],Jl={key:1},Ql={key:0},Xl={id:"booking-availability-listings"},Zl={key:1,id:"booking-availability-no-listings"},ea={key:1,id:"booking-availability-no-listings"},oa={key:2,id:"reservation-availability-next-dates"},la={class:"reservation-special-offers-grid"},aa=["title"],na={class:"booking-module-footer","sticky-side":"bottom"},ta={key:0,class:"booking-module-footer-wrapper"},ia={class:"fresh-booking-footer-table-split"},sa={key:0,class:"fresh-booking-footer-summery"},ra={class:"fresh-booking-footer-summery-details"},ua={class:"fresh-booking-footer-summery-price"},da=["onClick"],ca={key:1,class:"booking-module-footer-no-selection"},pa={class:"booking-module-footer-action"},ma={class:"booking-module-footer-price"},ya={key:1,class:"booking-module-footer-wrapper right"},ba={key:0},ga={key:1},va={class:"fresh-booking-split-inputs"},fa={key:3},ka={class:"fresh-booking-label"},ha={class:"fresh-booking-checkbox-spacing"},_a=["title"],Va={key:1},Ca={class:"booking-reservation-resume-recept-item"},Ba={key:1},$a={class:"fresh-booking-checkbox-spacing"},Ta=El(()=>o("span",null,"Loading...",-1)),Fa=W({__name:"Hotel",props:{accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonFontWeight:{},buttonIconColor:{},buttonTextTransform:{},dangerColor:{},fontColor:{},fontFamily:{},fontSize:{},grayColor:{},headerColor:{},headerLayout:{},hideListingGroupTitles:{},inputBackground:{},inputBorder:{},inputBorderRadius:{},inputFontColor:{},labelFontWeight:{},labelPadding:{},layout:{},linkColor:{},loadingColor:{},packagesTitleMaxLines:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{},successColor:{}},setup(h){const n=h,{t:l}=ue(),{finalSelection:_,templateID:y,roomGroupID:p,slideshow:v,title:m,totalPrice:i,countries:k,isMetaDataAvailable:F,isAvailabilityDataAvailable:j,isPaymentLoading:J,isReservationFormFilled:Ve,selectedPackage:I,travelingFor:P,arrivalTime:A,departureTime:D,name:K,nameTitle:Q,email:X,phone:Z,firmName:ee,postal:c,city:b,address:$,country:oe,remark:E,allergies:Ce,newsMails:Be,fetchAddons:$e,getSelectedPackageRoom:ce,availabilityData:U}=O(we()),{arrivalDate:le,departureDate:ae}=O(nl()),{currency:L,isRecaptchaEnabled:Oe,disableNewsletterSignup:xe,arrivalEarliest:Ye,arrivalLatest:je,departureEarliest:Je,departureLatest:Qe,enableTracking:Xe,arrivalDefault:Ue,departureDefault:qe,enablePackages:Ze,hideArrivalDepartureInputs:Te,disableArrivalUserSelection:pe,disableNamePrefix:eo,disableDepartureUserSelection:me,disableTravelingFor:oo,disableCompanyField:lo}=O(De()),{display:ao}=Qo(),{initialize:no,resetAddonSelection:to,createReservation:Ae,getSingleListing:ye,removeRoom:io}=we(),so=q(()=>[[parseInt(Ye.value.split(":")[0]),parseInt(je.value.split(":")[0])]]),ro=q(()=>[[parseInt(Je.value.split(":")[0]),parseInt(Qe.value.split(":")[0])]]),uo={"--accentColor":n.accentColor,"--buttonBackground":n.buttonBackground,"--buttonBorder":n.buttonBorder,"--buttonBorderRadius":n.buttonBorderRadius,"--buttonColor":n.buttonColor,"--buttonFontFamily":n.buttonFontFamily,"--buttonFontSize":n.buttonFontSize,"--buttonFontWeight":n.buttonFontWeight,"--buttonTextTransform":n.buttonTextTransform,"--dangerColor":n.dangerColor,"--fontColor":n.fontColor,"--fontFamily":n.fontFamily,"--fontSize":n.fontSize,"--grayColor":n.grayColor,"--headerColor":n.headerColor,"--inputBackground":n.inputBackground,"--inputBorder":n.inputBorder,"--inputBorderRadius":n.inputBorderRadius,"--inputFontColor":n.inputFontColor,"--labelFontWeight":n.labelFontWeight,"--labelPadding":n.labelPadding,"--linkColor":n.linkColor,"--loadingColor":n.loadingColor,"--panelBackground":n.panelBackground,"--panelBorder":n.panelBorder,"--panelBorderRadius":n.panelBorderRadius,"--panelPadding":n.panelPadding,"--successColor":n.successColor},Fe={fontColor:n.fontColor,fontFamily:n.fontFamily,fontSize:n.fontSize,headerColor:n.headerColor,panelPadding:n.panelPadding};function co(g){y.value=g}function po(){y.value=NaN}function mo(g){to(),g()}function yo(g,u){le.value=new Date(g),ae.value=new Date(u),location.reload()}async function bo(g){const u=wo();if(Oe&&u){await u.recaptchaLoaded();const Ne=await u.executeRecaptcha("create_reservation");(await Ro.get(`/?rest_route=/freshcase-octopus/v1/recaptcha/${Ne}`)).data.success?await Ae(g):ao({message:l("alert.error.robot"),type:"error"})}else await Ae(g)}function go(g){g()}function vo(){A.value===""&&(A.value=Ue.value),D.value===""&&(D.value=qe.value)}return Re(()=>{no(),vo()}),(g,u)=>{const Ne=$o("HotelListing"),Se=he("snip"),fo=he("sticky");return a(),V(Po,null,{default:B(()=>[d(ll,{id:"fresh-booking-hotel-module",class:"fresh-booking-app","access-token":g.accessToken,type:"hotel",style:uo},{default:B(()=>[e(F)?(a(),V(xo,{key:0,title:e(m),slideshow:e(v),layout:g.headerLayout},{availability:B(({next:be})=>{var ge;return[o("div",zl,[o("div",Hl,[d(tl,{booking:!0})]),e(j)?(a(),s("div",Gl,[e(U).roomGroups.length>0?(a(),s("div",Wl,[e(U).templates.length>0&&e(Ze)?(a(),s("div",Kl,[o("h2",null,[d(T,{icon:"box",type:"fal","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(isNaN(e(y))?e(l)("booking.availability.packagesTitle"):(ge=e(I))==null?void 0:ge.name),1)]),isNaN(e(y))?(a(),s("ul",{key:0,class:re(["reservation-special-offers-grid",{"full-width":e(U).templates.length===1},{"half-width":e(U).templates.length===2}])},[(a(!0),s(S,null,w(e(U).templates,({id:t,name:N,templateRoomGroups:ne,imageUrl:z,description:te})=>(a(),s("li",{key:t},[x((a(),s("h3",{title:N},[o("span",null,r(N),1)],8,Ol)),[[Se,{lines:parseInt(g.packagesTitleMaxLines)||1}]]),f("",!0),o("p",{innerHTML:e(He)(te)},null,8,xl),f("",!0),d(ke,{type:"button",label:e(l)("booking.availability.viewOptions"),"full-width":"",onClickEvent:ie=>co(t)},null,8,["label","onClickEvent"])]))),128))],2)):e(I)?(a(),s("div",Yl,[o("p",{innerHTML:e(He)(e(I).description)},null,8,jl),o("ul",null,[(a(!0),s(S,null,w(e(I).templateRoomGroups,({roomGroupID:t},N)=>(a(),V(Ne,{description:e(ye)(t).description,name:e(ye)(t).name,styling:Fe,layout:e(el).Template,"listing-id":t,"occupant-rates":e(ye)(t).occupantRates,available:e(ye)(t).available,trackingEnabled:e(Xe),key:N,onNext:be},null,8,["description","name","layout","listing-id","occupant-rates","available","trackingEnabled","onNext"]))),128))])])):f("",!0)])):f("",!0),isNaN(e(y))?(a(),s("div",Jl,[e(U).roomGroups.length>0?(a(),s("div",Ql,[o("h2",null,[d(T,{icon:"house",type:"fal","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(e(l)("booking.availability.roomsTitle")),1)]),o("ul",Xl,[(a(!0),s(S,null,w(e(U).roomGroups,(t,N)=>(a(),V(Dl,{room:t,styling:Fe,layout:g.layout,key:N},null,8,["room","layout"]))),128))])])):(a(),s("div",Zl,[o("span",null,r(e(l)("booking.availability.nothingAvailable")),1)]))])):f("",!0)])):e(U).nextAvailableDates.length===0?(a(),s("div",ea,[o("span",null,r(e(l)("booking.availability.nothingAvailable")),1)])):(a(),s("div",oa,[o("h2",null,[d(T,{icon:"calendar-circle-exclamation",type:"fal","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(e(l)("booking.availability.nextAvailableDates")),1)]),o("ul",la,[(a(!0),s(S,null,w(e(U).nextAvailableDates,(t,N)=>(a(),s("li",{key:N},[o("h3",{title:`${e(M)(t.fromDate)} - ${e(M)(t.toDate)}`},[x((a(),s("span",null,[fe(r(`${e(M)(t.fromDate)} - ${e(M)(t.toDate)}`),1)])),[[Se,{lines:1}]])],8,aa),o("ul",null,[o("li",null,[d(T,{icon:"house",type:"fal","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(e(l)("booking.availability.units"))+": "+r(t.roomCount),1)]),o("li",null,[d(T,{icon:"money-bill",type:"fal","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(e(l)("booking.availability.pricesFrom"))+": "+r(e(H)(t.priceStartFrom,e(L))),1)])]),d(ke,{label:e(l)("booking.availability.selectDates"),"full-width":"",onClickEvent:ne=>yo(t.fromDate,t.toDate)},null,8,["label","onClickEvent"])]))),128))])])),x((a(),s("div",na,[isNaN(e(y))?(a(),s("table",ta,[o("tbody",null,[o("tr",ia,[o("td",null,[e($e).length>0?(a(),s("ul",sa,[(a(!0),s(S,null,w(e($e),({name:t,index:N,adultsCount:ne,childrenCount:z,totalPrice:te,roomGroupID:ie,ratePlanID:ve},Pe)=>(a(),s("li",{key:Pe},[o("div",ra,[o("span",null,r(`${t} (#${N})`),1),o("span",null,[fe("( "),d(T,{icon:"male",type:"fas","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(ne),1),fe(") "),z>0?(a(),s(S,{key:0},[d(T,{icon:"child",type:"fas","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(z),1),fe(") ")],64)):f("",!0)])]),o("div",ua,[o("template",null,[o("span",null,r(e(H)(te,e(L))),1)]),o("span",{class:"fresh-booking-footer-summery-remove",onClick:To(Le=>e(io)(ie,ve),["prevent"])},[d(T,{icon:"times",type:"fas","icon-color":"#ff0000"})],8,da)])]))),128))])):(a(),s("div",ca,[o("span",null,r(e(l)("booking.availability.nothingSelected")),1)]))]),o("td",pa,[d(ke,{label:e(l)("booking.availability.nextButton"),styling:"success",disabled:!1,"full-width":"",onClickEvent:t=>go(be),style:Fo({background:g.successColor})},null,8,["label","onClickEvent","style"]),o("div",ma,[o("b",null,r(e(l)("booking.availability.totalPrice"))+":",1),o("span",null,r(e(H)(e(i),e(L))),1)])])])])])):(a(),s("div",ya,[d(ke,{label:e(l)("booking.reservation.prevButton"),secondary:"",onClickEvent:u[0]||(u[0]=t=>po())},null,8,["label"])]))])),[[fo]])])):(a(),V(We,{key:1}))])]}),reservation:B(({next:be,prev:ge})=>[d(Yo,{remark:e(E),"onUpdate:remark":u[17]||(u[17]=t=>C(E)?E.value=t:null),"is-filled":e(Ve),currency:e(L),"button-icon-color":g.buttonIconColor,"total-price":e(i),"is-loading":e(J),notice:e(l)("hotel.reservationNotice"),styling:Fe,onPrev:t=>mo(ge),onNext:t=>bo(be)},No({form:B(()=>[!e(Te)&&!(e(pe)&&e(me))?(a(),s("ul",{key:0,class:re({"fresh-booking-split-inputs":!e(pe)&&!e(me)})},[e(pe)?f("",!0):(a(),s("li",ba,[d(Ke,{modelValue:e(A),"onUpdate:modelValue":u[1]||(u[1]=t=>C(A)?A.value=t:null),label:e(l)("booking.reservation.arrivalTime"),icon:"hourglass-start","hour-range":so.value,required:""},null,8,["modelValue","label","hour-range"])])),e(me)?f("",!0):(a(),s("li",ga,[d(Ke,{modelValue:e(D),"onUpdate:modelValue":u[2]||(u[2]=t=>C(D)?D.value=t:null),label:e(l)("booking.reservation.departureTime"),icon:"hourglass-end","hour-range":ro.value,required:""},null,8,["modelValue","label","hour-range"])]))],2)):f("",!0),d(Ml,{modelValue:e(K),"onUpdate:modelValue":u[3]||(u[3]=t=>C(K)?K.value=t:null),title:e(Q),"onUpdate:title":u[4]||(u[4]=t=>C(Q)?Q.value=t:null),"exclude-title":e(eo),label:e(l)("booking.reservation.name"),icon:"user-alt",placeholder:e(l)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","title","exclude-title","label","placeholder"]),d(G,{modelValue:e(X),"onUpdate:modelValue":u[5]||(u[5]=t=>C(X)?X.value=t:null),type:"email",name:"email",autocomplete:"email",label:e(l)("booking.reservation.email"),icon:"at",placeholder:e(l)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e(xe)?f("",!0):(a(),V(se,{key:1,modelValue:e(Be),"onUpdate:modelValue":u[6]||(u[6]=t=>C(Be)?Be.value=t:null),type:"checkbox",name:"newsletter",label:e(l)("booking.reservation.newsletterSignUp")},null,8,["modelValue","label"])),e(lo)?f("",!0):(a(),V(G,{key:2,modelValue:e(ee),"onUpdate:modelValue":u[7]||(u[7]=t=>C(ee)?ee.value=t:null),type:"text",name:"firm",autocomplete:"firm",label:`${e(l)("booking.reservation.companyName")} (${e(l)("booking.reservation.optional")})`,icon:"id-card",placeholder:e(l)("booking.reservation.companyNamePlaceholder")},null,8,["modelValue","label","placeholder"])),d(sl,{modelValue:e(Z),"onUpdate:modelValue":u[8]||(u[8]=t=>C(Z)?Z.value=t:null),icon:"phone-office",label:e(l)("booking.reservation.phone"),placeholder:e(l)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),d(Al,{modelValue:e(oe),"onUpdate:modelValue":u[9]||(u[9]=t=>C(oe)?oe.value=t:null),label:e(l)("booking.reservation.country"),placeholder:e(l)("booking.reservation.countryPlaceholder"),options:e(k),required:""},null,8,["modelValue","label","placeholder","options"]),d(G,{modelValue:e($),"onUpdate:modelValue":u[10]||(u[10]=t=>C($)?$.value=t:null),type:"textarea",name:"address",autocomplete:"street-address",label:e(l)("booking.reservation.streetAddress"),icon:"map-marked",placeholder:e(l)("booking.reservation.streetAddressPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),o("ul",va,[o("li",null,[d(G,{modelValue:e(c),"onUpdate:modelValue":u[11]||(u[11]=t=>C(c)?c.value=t:null),type:"number",name:"postal",autocomplete:"postal-code",label:e(l)("booking.reservation.postal"),icon:"mailbox",placeholder:e(l)("booking.reservation.postalPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])]),o("li",null,[d(G,{modelValue:e(b),"onUpdate:modelValue":u[12]||(u[12]=t=>C(b)?b.value=t:null),type:"text",name:"city",autocomplete:"address-level2",label:e(l)("booking.reservation.city"),icon:"city",placeholder:e(l)("booking.reservation.cityPlaceholder"),required:""},null,8,["modelValue","label","placeholder"])])]),d(G,{modelValue:e(Ce),"onUpdate:modelValue":u[13]||(u[13]=t=>C(Ce)?Ce.value=t:null),type:"textarea",label:`${e(l)("booking.reservation.allergies")} (${e(l)("booking.reservation.optional")})`,icon:"allergies",placeholder:e(l)("booking.reservation.allergiesPlaceholder")},null,8,["modelValue","label","placeholder"]),e(oo)?f("",!0):(a(),s("div",fa,[o("label",ka,[o("span",null,r(e(l)("booking.reservation.purposeOfStay"))+" ("+r(e(l)("booking.reservation.optional"))+")",1)]),o("ul",ha,[o("li",null,[d(se,{modelValue:e(P),"onUpdate:modelValue":u[14]||(u[14]=t=>C(P)?P.value=t:null),type:"radio",name:"travelingFor",label:e(l)("booking.reservation.business"),val:"Business"},null,8,["modelValue","label"])]),o("li",null,[d(se,{modelValue:e(P),"onUpdate:modelValue":u[15]||(u[15]=t=>C(P)?P.value=t:null),type:"radio",name:"travelingFor",label:e(l)("booking.reservation.pleasure"),val:"Pleasure"},null,8,["modelValue","label"])]),o("li",null,[d(se,{modelValue:e(P),"onUpdate:modelValue":u[16]||(u[16]=t=>C(P)?P.value=t:null),type:"radio",name:"travelingFor",label:e(l)("booking.reservation.bleasure"),val:"Bleasure"},null,8,["modelValue","label"])])])]))]),resume:B(()=>[o("li",null,[o("span",null,r(e(l)("booking.reservation.arrival")),1),o("b",null,r(e(Te)?e(M)(e(le)):`${e(M)(e(le))}, ${e(pe)?e(Ue):e(A)}`),1)]),o("li",null,[o("span",null,r(e(l)("booking.reservation.departure")),1),o("b",null,r(e(Te)?e(M)(e(ae)):`${e(M)(e(ae))}, ${e(me)?e(qe):e(D)}`),1)]),o("li",null,[o("span",null,r(e(l)("booking.reservation.nights")),1),o("b",null,r(e(Ge)(e(le),e(ae)))+" "+r(e(ol)(e(Ge)(e(le),e(ae))===1?e(l)("booking.reservation.night"):e(l)("booking.reservation.nights"))),1)]),!isNaN(e(y))&&!isNaN(e(p))&&e(ce)?(a(),s(S,{key:0},[o("li",null,[o("span",null,r(e(l)("booking.reservation.roomName")),1),o("b",{title:e(ce).roomGroupName},r(e(ce).roomGroupName),9,_a)]),o("li",null,[o("span",null,r(e(l)("booking.availability.basePrice")),1),o("b",null,r(e(H)(e(ce).extraPrice,e(L))),1)])],64)):f("",!0),!isNaN(e(y))&&!isNaN(e(p))&&e(I)?(a(),s("li",Va,[o("span",null,r(e(l)("general.weekendFee")),1),o("b",null,r(e(H)(e(I).weekendFee,e(L))),1)])):f("",!0)]),_:2},[void 0,isNaN(e(y))?{name:"addons",fn:B(()=>[(a(!0),s(S,{key:0},w(e($e),({name:t,index:N,adultsCount:ne,childrenCount:z,addons:te,roomGroupID:ie,ratePlanID:ve},Pe)=>(a(),s("li",{key:Pe},[o("div",null,[o("div",Ca,[o("b",null,r(`${t} (#${N})`),1),o("b",null,[d(T,{icon:"male",type:"fas","icon-color":g.headerColor},null,8,["icon-color"]),o("span",null,r(ne),1),z>0?(a(),V(T,{key:0,icon:"child",type:"fas","icon-color":g.headerColor},null,8,["icon-color"])):f("",!0),z>0?(a(),s("span",Ba,r(z),1)):f("",!0)])]),o("ul",$a,[(a(!0),s(S,null,w(te,({name:Le,price:ko,id:Me},ho)=>(a(),s("li",{key:ho},[d(se,{modelValue:e(_)[ie][ve].addons[Me],"onUpdate:modelValue":_o=>e(_)[ie][ve].addons[Me]=_o,label:Le,price:`${e(H)(ko,e(L))} ${e(l)("general.perAdultPerNight")}`},null,8,["modelValue","onUpdate:modelValue","label","price"])]))),128))])])]))),128))]),key:"1"}:void 0]),1032,["remark","is-filled","currency","button-icon-color","total-price","is-loading","notice","onPrev","onNext"])]),payment:B(()=>[d(jo)]),confirmation:B(()=>[d(Jo,{message:e(l)("booking.confirmation.thankYou"),currency:e(L)},null,8,["message","currency"])]),_:1},8,["title","slideshow","layout"])):(a(),V(We,{key:1})),d(e(So))]),_:1},8,["access-token"])]),fallback:B(()=>[Ta]),_:1})}}});const Na=de(Fa,[["__scopeId","data-v-7ea826ef"]]);Uo.flare.light();const Sa=qo(),Pa=Ao(),R=Lo({components:{Hotel:Na}});R.use(Mo.flareVue);R.use(Sa);R.use(Pa);R.use(Eo);R.use(zo);R.use(Ho);R.use(Xo);R.use(Go);R.use(Wo,{bootstrap:!1});R.mount("#fresh-booking-hotel-app");
2
- //# sourceMappingURL=hotel.js.map
package/dist/hotel.js.br DELETED
Binary file
@@ -1,231 +0,0 @@
1
- {
2
- "_ActionField-d1b315e3.js": {
3
- "file": "assets/ActionField-d1b315e3.js",
4
- "imports": [
5
- "_vendor-65ee0d78.js",
6
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
7
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
8
- "_applyGiftCard-39571f2e.js",
9
- "_Clickable-19c9ecdc.js"
10
- ]
11
- },
12
- "_Alert-2cd22061.js": {
13
- "file": "assets/Alert-2cd22061.js",
14
- "imports": [
15
- "_vendor-65ee0d78.js",
16
- "_Icon-6c933148.js"
17
- ]
18
- },
19
- "_Clickable-19c9ecdc.js": {
20
- "file": "assets/Clickable-19c9ecdc.js",
21
- "imports": [
22
- "_vendor-65ee0d78.js",
23
- "_Icon-6c933148.js"
24
- ]
25
- },
26
- "_GoogleNotice-83805aa2.js": {
27
- "file": "assets/GoogleNotice-83805aa2.js",
28
- "imports": [
29
- "_vendor-65ee0d78.js",
30
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
31
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js"
32
- ]
33
- },
34
- "_HotelAvailabilityForm-53fa6ecb.js": {
35
- "file": "assets/HotelAvailabilityForm-53fa6ecb.js",
36
- "imports": [
37
- "_vendor-65ee0d78.js",
38
- "_payment-a3a9b5dd.js",
39
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
40
- "_Clickable-19c9ecdc.js",
41
- "_applyGiftCard-39571f2e.js"
42
- ]
43
- },
44
- "_Icon-6c933148.js": {
45
- "file": "assets/Icon-6c933148.js",
46
- "imports": [
47
- "_vendor-65ee0d78.js"
48
- ]
49
- },
50
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js": {
51
- "file": "assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
52
- "imports": [
53
- "_vendor-65ee0d78.js",
54
- "_Alert-2cd22061.js",
55
- "_Icon-6c933148.js"
56
- ]
57
- },
58
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js": {
59
- "file": "assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
60
- "imports": [
61
- "_vendor-65ee0d78.js",
62
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js"
63
- ]
64
- },
65
- "_ThankYou-29820212.js": {
66
- "file": "assets/ThankYou-29820212.js",
67
- "imports": [
68
- "_vendor-65ee0d78.js",
69
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
70
- "_Icon-6c933148.js",
71
- "_applyGiftCard-39571f2e.js",
72
- "_ActionField-d1b315e3.js",
73
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
74
- "_GoogleNotice-83805aa2.js",
75
- "_Alert-2cd22061.js",
76
- "_payment-a3a9b5dd.js",
77
- "_Clickable-19c9ecdc.js"
78
- ]
79
- },
80
- "_applyGiftCard-39571f2e.js": {
81
- "file": "assets/applyGiftCard-39571f2e.js",
82
- "imports": [
83
- "_vendor-65ee0d78.js",
84
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
85
- "_Alert-2cd22061.js"
86
- ]
87
- },
88
- "_event-79c562c0.js": {
89
- "file": "assets/event-79c562c0.js",
90
- "imports": [
91
- "_vendor-65ee0d78.js",
92
- "_Alert-2cd22061.js",
93
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
94
- "_payment-a3a9b5dd.js",
95
- "_applyGiftCard-39571f2e.js"
96
- ]
97
- },
98
- "_payment-a3a9b5dd.js": {
99
- "file": "assets/payment-a3a9b5dd.js",
100
- "imports": [
101
- "_vendor-65ee0d78.js",
102
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
103
- "_Alert-2cd22061.js"
104
- ]
105
- },
106
- "_vendor-65ee0d78.js": {
107
- "file": "assets/vendor-65ee0d78.js"
108
- },
109
- "src/assets/images/konnectio-v6.png": {
110
- "file": "assets/konnectio-v6.png",
111
- "src": "src/assets/images/konnectio-v6.png"
112
- },
113
- "src/entries/admin.ts": {
114
- "assets": [
115
- "assets/konnectio-v6.png"
116
- ],
117
- "file": "admin.js",
118
- "imports": [
119
- "_vendor-65ee0d78.js",
120
- "_Alert-2cd22061.js",
121
- "_Icon-6c933148.js"
122
- ],
123
- "isEntry": true,
124
- "src": "src/entries/admin.ts"
125
- },
126
- "src/entries/availability.ts": {
127
- "file": "availability.js",
128
- "imports": [
129
- "_vendor-65ee0d78.js",
130
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
131
- "_HotelAvailabilityForm-53fa6ecb.js",
132
- "_payment-a3a9b5dd.js",
133
- "_Clickable-19c9ecdc.js",
134
- "_event-79c562c0.js",
135
- "_Alert-2cd22061.js",
136
- "_Icon-6c933148.js",
137
- "_applyGiftCard-39571f2e.js"
138
- ],
139
- "isEntry": true,
140
- "src": "src/entries/availability.ts"
141
- },
142
- "src/entries/event.ts": {
143
- "file": "event.js",
144
- "imports": [
145
- "_vendor-65ee0d78.js",
146
- "_ThankYou-29820212.js",
147
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
148
- "_event-79c562c0.js",
149
- "_Alert-2cd22061.js",
150
- "_Icon-6c933148.js",
151
- "_ActionField-d1b315e3.js",
152
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
153
- "_GoogleNotice-83805aa2.js",
154
- "_payment-a3a9b5dd.js",
155
- "_applyGiftCard-39571f2e.js",
156
- "_Clickable-19c9ecdc.js"
157
- ],
158
- "isEntry": true,
159
- "src": "src/entries/event.ts"
160
- },
161
- "src/entries/gift-card-validation.ts": {
162
- "file": "gift-card-validation.js",
163
- "imports": [
164
- "_vendor-65ee0d78.js",
165
- "_applyGiftCard-39571f2e.js",
166
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
167
- "_ActionField-d1b315e3.js",
168
- "_Icon-6c933148.js",
169
- "_Alert-2cd22061.js",
170
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
171
- "_Clickable-19c9ecdc.js"
172
- ],
173
- "isEntry": true,
174
- "src": "src/entries/gift-card-validation.ts"
175
- },
176
- "src/entries/gift-card.ts": {
177
- "file": "gift-card.js",
178
- "imports": [
179
- "_vendor-65ee0d78.js",
180
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
181
- "_Alert-2cd22061.js",
182
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
183
- "_GoogleNotice-83805aa2.js",
184
- "_Clickable-19c9ecdc.js",
185
- "_Icon-6c933148.js"
186
- ],
187
- "isEntry": true,
188
- "src": "src/entries/gift-card.ts"
189
- },
190
- "src/entries/hotel.ts": {
191
- "file": "hotel.js",
192
- "imports": [
193
- "_vendor-65ee0d78.js",
194
- "_ThankYou-29820212.js",
195
- "_Alert-2cd22061.js",
196
- "_NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js",
197
- "_payment-a3a9b5dd.js",
198
- "_HotelAvailabilityForm-53fa6ecb.js",
199
- "_Icon-6c933148.js",
200
- "_applyGiftCard-39571f2e.js",
201
- "_SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js",
202
- "_GoogleNotice-83805aa2.js",
203
- "_Clickable-19c9ecdc.js",
204
- "_ActionField-d1b315e3.js"
205
- ],
206
- "isEntry": true,
207
- "src": "src/entries/hotel.ts"
208
- },
209
- "src/entries/navigation.ts": {
210
- "file": "navigation.js",
211
- "imports": [
212
- "_vendor-65ee0d78.js",
213
- "_Clickable-19c9ecdc.js",
214
- "_Icon-6c933148.js"
215
- ],
216
- "isEntry": true,
217
- "src": "src/entries/navigation.ts"
218
- },
219
- "src/entries/polyfill.ts": {
220
- "file": "polyfill.js",
221
- "imports": [
222
- "_vendor-65ee0d78.js"
223
- ],
224
- "isEntry": true,
225
- "src": "src/entries/polyfill.ts"
226
- },
227
- "style.css": {
228
- "file": "assets/style.css",
229
- "src": "style.css"
230
- }
231
- }
Binary file
@@ -1,2 +0,0 @@
1
- import{f as b,o as n,c as a,i,q as p}from"./assets/vendor-65ee0d78.js";import{C as l}from"./assets/Clickable-19c9ecdc.js";import"./assets/Icon-6c933148.js";const u=["href"],c=["href"],d=b({__name:"Navigation",props:{wpSettings:{},link:{},label:{},textTransform:{},fontFamily:{},background:{},border:{},color:{},borderRadius:{},fontSize:{},fontWeight:{}},setup(t){const o=t,s={"--buttonTextTransform":o.textTransform,"--buttonFontFamily":o.fontFamily,"--buttonBackground":o.background,"--buttonBorder":o.border,"--buttonBorderRadius":o.borderRadius,"--buttonColor":o.color,"--buttonFontSize":o.fontSize,"--buttonFontWeight":o.fontWeight};return(e,f)=>(n(),a("div",{class:"fresh-booking-app",style:s},[e.link?(n(),a("a",{key:0,href:e.link},[i(l,{type:"button",label:e.label},null,8,["label"])],8,u)):(n(),a("a",{key:1,href:e.wpSettings.bookingUri},[i(l,{type:"button",label:e.label},null,8,["label"])],8,c))]))}}),r=document.getElementsByClassName("fresh-booking-navigation-app");for(let t=0;t<r.length;t++)p({components:{Navigation:d},created(){console.log(`FreshBooking Navigation (#${r[t].id}) Module: Initialized!`)}}).mount(`#${r[t].id}`);
2
- //# sourceMappingURL=navigation.js.map
Binary file
package/dist/polyfill.js DELETED
@@ -1,2 +0,0 @@
1
- import"./assets/vendor-65ee0d78.js";const o="production";console.log(`FreshBooking ${o} release: fresh-booking@4.0.0`);
2
- //# sourceMappingURL=polyfill.js.map