arky-sdk 0.3.78 → 0.3.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1774,7 +1774,6 @@ var createInitialState = (timezone) => ({
1774
1774
  service: null,
1775
1775
  providers: [],
1776
1776
  selectedProvider: null,
1777
- selectedMethod: null,
1778
1777
  currentMonth: new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
1779
1778
  calendar: [],
1780
1779
  selectedDate: null,
@@ -1865,7 +1864,6 @@ var createReservationEngine = (api, config = {}) => {
1865
1864
  store.set({
1866
1865
  ...store.get(),
1867
1866
  service,
1868
- selectedMethod: service.reservationMethods?.length === 1 ? service.reservationMethods[0] : null,
1869
1867
  selectedProvider: null,
1870
1868
  providers: [],
1871
1869
  selectedDate: null,
@@ -1909,19 +1907,6 @@ var createReservationEngine = (api, config = {}) => {
1909
1907
  store.setKey("currentMonth", new Date(currentMonth.getFullYear(), currentMonth.getMonth() + 1, 1));
1910
1908
  actions.loadMonth();
1911
1909
  },
1912
- selectMethod(method) {
1913
- store.set({
1914
- ...store.get(),
1915
- selectedMethod: method,
1916
- selectedProvider: null,
1917
- selectedDate: null,
1918
- startDate: null,
1919
- endDate: null,
1920
- slots: [],
1921
- selectedSlot: null
1922
- });
1923
- store.setKey("calendar", buildCalendar());
1924
- },
1925
1910
  selectProvider(provider) {
1926
1911
  store.set({
1927
1912
  ...store.get(),
@@ -1988,8 +1973,7 @@ var createReservationEngine = (api, config = {}) => {
1988
1973
  providerId: s.providerId,
1989
1974
  from: s.from,
1990
1975
  to: s.to,
1991
- blocks: s.serviceBlocks || [],
1992
- reservationMethod: s.reservationMethod || state.selectedMethod || "STANDARD"
1976
+ blocks: s.serviceBlocks || []
1993
1977
  })),
1994
1978
  paymentMethod: options.paymentMethod,
1995
1979
  promoCode: options.promoCode ?? null,