{"version":3,"sources":["webpack://wc-bookings-availability.[name]/webpack/bootstrap","webpack://wc-bookings-availability.[name]/external {\"this\":[\"wp\",\"element\"]}","webpack://wc-bookings-availability.[name]/./node_modules/prop-types/index.js","webpack://wc-bookings-availability.[name]/external {\"this\":[\"wp\",\"i18n\"]}","webpack://wc-bookings-availability.[name]/external \"moment\"","webpack://wc-bookings-availability.[name]/./assets/js/includes/date-utils.js","webpack://wc-bookings-availability.[name]/external {\"this\":[\"wp\",\"components\"]}","webpack://wc-bookings-availability.[name]/external \"lodash\"","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/list-alt.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/calendar-alt.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/checkbox-checked.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/checkbox-unchecked.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/radio-selected.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/radio-unselected.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/trending-flat.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/keyboard-arrow-right.js","webpack://wc-bookings-availability.[name]/./assets/js/components/icons/index.js","webpack://wc-bookings-availability.[name]/./assets/js/includes/misc-utils.js","webpack://wc-bookings-availability.[name]/external {\"this\":[\"wp\",\"apiFetch\"]}","webpack://wc-bookings-availability.[name]/./assets/js/blocks/common-context/context.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/extends.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-calendar/context/context.js","webpack://wc-bookings-availability.[name]/external {\"this\":[\"wp\",\"url\"]}","webpack://wc-bookings-availability.[name]/./assets/js/blocks/products-context/context.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/availability-context/context.js","webpack://wc-bookings-availability.[name]/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-table/container.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-schedule/context/context.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/availability-context/availability-state.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-item/index.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-item/empty.js","webpack://wc-bookings-availability.[name]/./assets/js/components/page-loader/index.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-table/index.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/createClass.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/inherits.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/common-context/common-state.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/products-context/products-state.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-schedule/style.scss?183e","webpack://wc-bookings-availability.[name]/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://wc-bookings-availability.[name]/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://wc-bookings-availability.[name]/external \"moment-timezone\"","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/typeof.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://wc-bookings-availability.[name]/./assets/js/components/page-loader/style.scss?8492","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://wc-bookings-availability.[name]/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-schedule/context/schedule-state.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-schedule/frontend.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","this","DATE_RANGES","TODAY","THIS_WEEK","THIS_MONTH","CUSTOM","CONVERT_DIRECTIONS","LOCAL_TO_SERVER","SERVER_TO_LOCAL","DATE_RANGE_TYPE_LABELS","__","DATE_RANGE_OPTIONS","label","DATE_RANGE_OPTIONS_CAL","DATE_QUERY_FORMAT","getDateLimits","dateRangeType","intervalOffset","currentDate","minDate","moment","startOf","toDate","maxDate","intervalDays","add","setDate","endOf","minDisplayDate","startOfWeek","parseInt","wc_bookings_availability_args","start_of_week","_minDate","day","startDayOffset","endDayOffset","getDate","addTimeIfToday","isSame","format","isCustom","getReadableDateRangeString","getTime","getDateRangeTypeString","getDateQueryLimits","formatDateQueryLimits","getDayOfWeek","getCalStartEndTime","today","Date","todayDay","isoWeekday","wpStartOfWeek","weekStart","subtract","weekEnd","calendarWeekStartEndTime","date","monthStart","startColumn","startTime","monthEnd","endColumn","endTime","currentMonth","calendarMonthStartEndTime","getHumanReadableDate","formatDuration","product","endDate","formattedDuration","durationPeriodSeparator","duration","durationUnit","startDate","startDateDay","startDateMonth","timeFormat","time_format_moment","getDisplayTimezone","endDateDay","endDateMonth","days","sprintf","_n","min_duration","duration_type","max_duration","months","startOfDuration","endOfDuration","getNoSlotsInRangeMessage","getErrorLoadingSlotsInRangeMessage","convertDate","convertDirection","offsetHours","referenceDate","timezone_conversion","referenceTime","clientOffset","utcOffset","tz","server_timezone","serverOffset","getClientServerTimezoneOffsetHours","localizedDate","localizeDate","guess","getIsRestrictedDay","has_restricted_days","restricted_days","day_of_week","undefined","arrayWithHoles","iterableToArrayLimit","nonIterableRest","arr","icon","xmlns","width","height","viewBox","fill","SCREEN","ALL_PRODUCTS","PRODUCTS_SCREEN","CATEGORIES_SCREEN","RESOURCES_SCREEN","screenOptions","DEFAULT_PAGE_SIZE","attributesDictionary","common","categoryIds","type","default","source","selector","attribute","currentScreen","productIds","resourceIds","showDateNav","calendar","showSoldOut","example","schedule","infiniteScrollEnabled","slotsPerPage","showEmptyDates","getAttributesDefFor","blockName","decodeAttributesFor","attributes","attributesDef","decodedAttributes","keys","createContext","_extends","assign","target","arguments","length","apply","obj","configurable","writable","arrayWithoutHoles","iterableToArray","nonIterableSpread","memo","stylesInDom","isOldIE","Boolean","window","document","all","atob","getTarget","styleTarget","querySelector","HTMLIFrameElement","contentDocument","head","e","listToStyles","list","options","styles","newStyles","item","id","base","part","css","media","sourceMap","parts","push","addStylesToDom","domStyle","j","refs","addStyle","insertStyleElement","style","createElement","nonce","forEach","setAttribute","insert","Error","appendChild","textStore","replaceText","index","replacement","filter","join","applyToSingletonTag","remove","styleSheet","cssText","cssNode","createTextNode","childNodes","removeChild","insertBefore","singleton","singletonCounter","update","styleIndex","btoa","concat","unescape","encodeURIComponent","JSON","stringify","firstChild","parentNode","removeStyleElement","newObj","newList","mayRemove","_i","_domStyle","self","ReferenceError","BookingContainer","props","useContext","commonContext","offset","gotoCurrent","gotoNext","gotoPrev","dateRangeString","dateRangeTypeString","className","href","onClick","preventDefault","propTypes","PropTypes","string","bool","getJsonString","query","sort","serializeQueryArgs","omit","AvailabilityState","useState","availability","setAvailability","availabilityRequesting","setAvailabilityRequesting","availabilityError","setAvailabilityError","getAvailability","data","records","pages","map","page","Provider","hasResultsForQuery","getAvailabilityCount","getRemainingRecordsCount","recordsCount","getAvailabilityTotalRecords","requestAvailability","getPastTimes","pageSize","queryArgs","product_ids","category_ids","resource_ids","min_date","max_date","limit","get_past_times","hide_unavailable","path","addQueryArgs","pickBy","identity","apiFetch","then","count","requestedAvailability","_query","queryKey","newPage","newAvailability","merge","has","storeAvailability","src","productId","product_id","duration_unit","serverDate","error","highestPageForQuery","Math","max","children","EventItem","available","loading","setLoading","isPreview","addSubheader","placeholder","availableData","priceHtml","price_html","isAvailable","listClassName","buttonText","has_persons","has_resources","buttonClassName","permalink","dangerouslySetInnerHTML","__html","isBookable","url","ajax_url","nonces","add_booking_to_cart","booked","location","checkout_url","link","disabled","shape","number","resources","title","isRequired","defaultProps","EmptyEventItem","PageLoader","loadMore","onScroll","scrollTriggerRef","createRef","addEventListener","prevProps","isLoading","removeEventListener","scrollTriggerIsInViewport","scrollTrigger","current","top","getBoundingClientRect","innerHeight","remainingRecords","ref","loadMoreClick","Component","func","EventTable","setPage","firstRender","useRef","pageLoader","productContext","requestProducts","getProducts","products","productsRequesting","productsError","availabilityContext","scheduleContext","calendarContext","resetOffset","forceDateFromProps","previousProps","useEffect","usePreviousProps","productsQuery","forcedDate","dateRange","availabilityQuery","isError","isRequesting","hasResults","isLastPage","useLayoutEffect","loadMoreSlots","previousDate","shownAvailability","placeholderAvailability","slice","eventItems","placeHolderCount","min","placeHolderProduct","cost","momentPreviousDate","addSubHeader","isBefore","renderEvents","node","instance","Constructor","TypeError","_defineProperties","descriptor","protoProps","staticProps","_typeof","assertThisInitialized","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","subClass","superClass","constructor","CommonState","newProps","isFrontend","setOffset","onShowDateNavUpdate","setAttributes","onShowEmptyDatesUpdate","ProductsState","setProducts","setProductsRequesting","setProductsError","include","per_page","_locale","_products","productsObj","reduce","transformProductsListToObject","content","locals","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","err","getShim","ReactPropTypes","array","symbol","any","arrayOf","element","elementType","instanceOf","objectOf","oneOf","oneOfType","exact","checkPropTypes","Array","isArray","_arr","_d","_e","_s","iterator","next","done","_typeof2","_setPrototypeOf","arr2","iter","toString","from","ScheduleState","onTimeRangeUpdate","bookingsContainersHTML","getElementsByClassName","bookingsContainerHTML","dataset","render"],"mappings":"iJACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,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/e,EAAOD,QAVP,SAA4BuJ,GAC1B,GAAIkX,MAAMC,QAAQnX,GAAM,CACtB,IAAK,IAAIrJ,EAAI,EAAGkhB,EAAO,IAAIX,MAAMlX,EAAI6C,QAASlM,EAAIqJ,EAAI6C,OAAQlM,IAC5DkhB,EAAKlhB,GAAKqJ,EAAIrJ,GAGhB,OAAOkhB,K,cCFXnhB,EAAOD,QAJP,SAA0BqhB,GACxB,GAAIpgB,OAAO8f,YAAYngB,OAAOygB,IAAkD,uBAAzCzgB,OAAOkB,UAAUwf,SAASjhB,KAAKghB,GAAgC,OAAOZ,MAAMc,KAAKF,K,cCG1HphB,EAAOD,QAJP,WACE,MAAM,IAAI+c,UAAU,qD,2ECShByE,EAAgB,SAAE7P,GACvB,IAAImM,EAGHA,EADI,cAAgBnM,EAAMoM,aAAc,IAASpM,EAAMoM,WAC5CpM,EAEAA,EAAMhG,WAUlB,OACC,wBAAC,IAAgBoI,SAAjB,CAA0B5S,MAAQ,CACjC+B,cAAe4a,EAAS5a,cACxBue,kBAPwB,SAAEve,GAC3ByO,EAAMuM,cAAe,CAAEhb,qBASpByO,EAAM8E,WAKX+K,EAAchP,UAAY,CACzBiE,SAAUhE,IAAU7Q,OACpB+J,WAAY8G,IAAU7Q,OACtBsc,cAAezL,IAAUwH,KACzB8D,WAAYtL,IAAUE,MAGR6O,O,yJC9BTE,EAAyBzU,SAAS0U,uBAAwB,kD,uBAEhE,YAAqCD,EAArC,+CAA8D,KAAlDE,EAAkD,QACvDjW,EAAaD,YAAqB,WAAYkW,EAAsBC,SAE1EC,iBACC,wBAAC,IAAD,KAAa/D,YAAa,GAAYpS,GACrC,wBAAC,IAAD,CAAeoS,YAAa,GAC3B,wBAAC,IAAD,KAAeA,YAAa,GAAYpS,GACvC,wBAAC,IAAsBA,MAI1BiW,I","file":"js/bookings-schedule-frontend.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 85);\n","(function() { module.exports = this[\"wp\"][\"element\"]; }());","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","(function() { module.exports = this[\"wp\"][\"i18n\"]; }());","(function() { module.exports = this[\"moment\"]; }());","/**\n * Date constants and utility functions.\n *\n * @author WooCommerce\n * @since 1.0.0\n */\n\n/**\n * External dependencies\n */\nimport moment from 'moment';\nimport 'moment-timezone';\nimport { sprintf, __, _n } from '@wordpress/i18n';\n\n/**\n * Options for what range of dates to display on event list.\n *\n * @since 1.0.0\n */\nexport const DATE_RANGES = {\n\tTODAY: 'today',\n\tTHIS_WEEK: 'this-week',\n\tTHIS_MONTH: 'this-month',\n\tCUSTOM: 'custom',\n};\n\n/**\n * Convert directions\n *\n * @since 1.0.0\n */\nexport const CONVERT_DIRECTIONS = {\n\tLOCAL_TO_SERVER: 'LOCAL_TO_SERVER',\n\tSERVER_TO_LOCAL: 'SERVER_TO_LOCAL',\n};\n\n/**\n * Date range labels.\n *\n * @since 1.0.0\n */\nexport const DATE_RANGE_TYPE_LABELS = {\n\tTODAY: __( 'Today', 'woocommerce-bookings-availability' ),\n\tTHIS_WEEK: __( 'This week', 'woocommerce-bookings-availability' ),\n\tTHIS_MONTH: __( 'This month', 'woocommerce-bookings-availability' ),\n};\n\n/**\n * Option labels for each date range type.\n *\n * @since 1.0.0\n */\nexport const DATE_RANGE_OPTIONS = [\n\t{ value: DATE_RANGES.TODAY, label: DATE_RANGE_TYPE_LABELS.TODAY },\n\t{ value: DATE_RANGES.THIS_WEEK, label: DATE_RANGE_TYPE_LABELS.THIS_WEEK },\n\t{ value: DATE_RANGES.THIS_MONTH, label: DATE_RANGE_TYPE_LABELS.THIS_MONTH },\n];\n\n/**\n * Option labels for each date range type for calendar.\n *\n * @since 1.0.0\n */\nexport const DATE_RANGE_OPTIONS_CAL = [\n\t{ value: DATE_RANGES.THIS_WEEK, label: DATE_RANGE_TYPE_LABELS.THIS_WEEK },\n\t{ value: DATE_RANGES.THIS_MONTH, label: DATE_RANGE_TYPE_LABELS.THIS_MONTH },\n];\n\n/**\n * String format for date query.\n */\nexport const DATE_QUERY_FORMAT = 'YYYY-MM-DD[T]HH:mm:ss';\n\n/**\n * Find the date min and max for a given date range type.\n *\n * Calculates the date min/max relative to the current day when necessary.\n * For week range, will start from the startOfWeek day and calculate onwards.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n * @param {int} [intervalOffset] Optional offset for the date range.\n * @param {int} currentDate \t\tValue to denote if there is a current date to use.\n *\n * @return {Object} minDate and maxDate Date objects\n */\nexport function getDateLimits( dateRangeType, intervalOffset = 0, currentDate = 1 ) {\n\tlet minDate = moment().startOf( 'day' ).toDate();\n\tlet maxDate = moment().startOf( 'day' ).toDate();\n\tlet intervalDays = 1;\n\n\tif ( DATE_RANGES.THIS_MONTH === dateRangeType ) {\n\t\tminDate = moment( minDate ).add( intervalOffset, 'months' ).toDate();\n\t\tminDate.setDate( currentDate );\n\t\tmaxDate = moment( minDate ).endOf( 'month' ).toDate();\n\t}\n\n\tlet minDisplayDate = minDate;\n\n\tif ( DATE_RANGES.THIS_WEEK === dateRangeType ) {\n\t\tintervalDays = 7;\n\t\tconst startOfWeek = parseInt( wc_bookings_availability_args.start_of_week, 10 );\n\t\tconst _minDate = moment().day( ( intervalDays * intervalOffset ) + startOfWeek ).startOf( 'day' );\n\t\tif ( minDate < _minDate ) {\n\t\t\tminDate = _minDate.toDate();\n\t\t}\n\t\tmaxDate = moment( minDate ).endOf( 'week' ).toDate();\n\t\tminDisplayDate = moment( minDate ).startOf( 'week' ).toDate();\n\t}\n\n\tif ( DATE_RANGES.TODAY === dateRangeType ) {\n\t\tconst startDayOffset = intervalDays * intervalOffset;\n\t\tconst endDayOffset = ( intervalDays * ( intervalOffset + 1 ) ) - 1;\n\t\tminDate.setDate( minDate.getDate() + startDayOffset );\n\t\tmaxDate.setDate( maxDate.getDate() + endDayOffset );\n\t}\n\n\treturn {\n\t\tminDisplayDate,\n\t\tminDate,\n\t\tmaxDate,\n\t};\n}\n\n/**\n * Add time if the date is today.\n *\n * The date can then be used to provide more detailed availability when calling the API.\n *\n * @since import moment from 'moment';\n *\n * @param {Date} minDate Date.\n *\n * @return {Date} minDate with current time if it is today.\n */\nexport function addTimeIfToday( minDate ) {\n\tif ( minDate && moment( minDate ).isSame( moment(), 'day' ) ) {\n\t\treturn moment().format( DATE_QUERY_FORMAT );\n\t}\n\n\treturn minDate;\n}\n\n/**\n * Check if date is a custom type or not.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n *\n * @return {boolean} True if using a custom date range.\n */\nexport function isCustom( dateRangeType ) {\n\treturn DATE_RANGES.CUSTOM === dateRangeType;\n}\n\n/**\n * Get date range as a human readable string.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n * @param {int} [intervalOffset] Optional offset for the date range.\n *\n * @return {String} Human readable string representing the date range.\n */\nexport function getReadableDateRangeString( dateRangeType, intervalOffset = 0 ) {\n\tconst { minDisplayDate, minDate, maxDate } = getDateLimits( dateRangeType, intervalOffset );\n\n\tif ( DATE_RANGES.THIS_MONTH === dateRangeType ) {\n\t\treturn moment( minDate ).format( 'MMMM YYYY' );\n\t}\n\n\tif ( minDate.getTime() === maxDate.getTime() ) {\n\t\treturn moment( minDate ).format( 'MMM DD, YYYY' );\n\t}\n\n\treturn moment( minDisplayDate ).format( 'MMM DD - ' ) + moment( maxDate ).format( 'MMM DD, YYYY' );\n}\n\n/**\n * Get date range type as header navigation title.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n *\n * @return {String} Human readable string representing the date range type.\n */\nexport function getDateRangeTypeString( dateRangeType ) {\n\tswitch ( dateRangeType ) {\n\t\tcase DATE_RANGES.TODAY:\n\t\t\treturn DATE_RANGE_TYPE_LABELS.TODAY;\n\t\tcase DATE_RANGES.THIS_MONTH:\n\t\t\treturn DATE_RANGE_TYPE_LABELS.THIS_MONTH;\n\t\tcase DATE_RANGES.THIS_WEEK:\n\t\tdefault:\n\t\t\treturn DATE_RANGE_TYPE_LABELS.THIS_WEEK;\n\t}\n}\n\n/**\n * Get date range as a min/max in 'YYYY-MM-DD' format.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n * @param {int} [intervalOffset] Optional offset for the date range.\n * @param {int} [currentDate] Optional current date.\n *\n * @return {Object} minDate and maxDate in 'YYYY-MM-DD' format.\n */\nexport function getDateQueryLimits( dateRangeType, intervalOffset = 0, currentDate = 1 ) {\n\tconst { minDate, maxDate } = getDateLimits( dateRangeType, intervalOffset, currentDate );\n\n\treturn formatDateQueryLimits( minDate, maxDate );\n}\n\n/**\n * Format dates according to date query format.\n *\n * @param {object} minDate Min date\n * @param {object} maxDate Max date\n *\n * @return {Object} minDate and maxDate in DATE_QUERY_FORMAT format.\n */\nexport function formatDateQueryLimits( minDate, maxDate ) {\n\treturn {\n\t\tminDate: moment( minDate ).format( DATE_QUERY_FORMAT ),\n\t\tmaxDate: moment( maxDate ).endOf( 'day' ).format( DATE_QUERY_FORMAT ),\n\t};\n}\n\n/**\n * Gets the day of the week.\n *\n * @since 1.0.0\n *\n * @param {int} day The selected start of week.\n *\n * @return {string} The processed day.\n */\nexport function getDayOfWeek( day ) {\n\treturn moment().day( day ).format( 'ddd' );\n}\n\n/**\n * Gets the calendar month view start time.\n *\n * @since 1.0.0\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n * @param {int} intervalOffset Optional offset for the date range.\n * @return {object} { minDate, maxDate }.\n */\nexport function getCalStartEndTime( dateRangeType, intervalOffset ) {\n\tswitch ( dateRangeType ) {\n\t\tcase DATE_RANGES.THIS_WEEK:\n\t\t\treturn calendarWeekStartEndTime( intervalOffset );\n\n\t\tcase DATE_RANGES.THIS_MONTH:\n\t\tdefault:\n\t\t\treturn calendarMonthStartEndTime( intervalOffset );\n\t}\n}\n\nfunction calendarWeekStartEndTime( intervalOffset ) {\n\tconst today = moment( new Date() ).add( intervalOffset * 7, 'day' );\n\tconst todayDay = today.isoWeekday();\n\n\tconst wpStartOfWeek = parseInt( wc_bookings_availability_args.start_of_week, 10 );\n\t// Change WP format to ISO. ISO 1..7, 1=Monday vs. WordPress 0..7, 0=Sunday.\n\tconst startOfWeek = wpStartOfWeek === 0 ? 7 : wpStartOfWeek;\n\n\tlet weekStart = null;\n\tif ( todayDay > startOfWeek ) {\n\t\tweekStart = moment( today ).subtract( todayDay - startOfWeek, 'day' );\n\t} else if ( todayDay < startOfWeek ) {\n\t\tweekStart = moment( today ).subtract( 7 - ( startOfWeek - todayDay ), 'day' );\n\t} else {\n\t\tweekStart = today;\n\t}\n\n\tconst weekEnd = moment( weekStart ).add( 6, 'day' );\n\n\treturn {\n\t\tminDate: weekStart.startOf( 'day' ),\n\t\tmaxDate: weekEnd.endOf( 'day' ),\n\t};\n}\n\nfunction calendarMonthStartEndTime( intervalOffset ) {\n\tconst date = moment( new Date() ).add( intervalOffset, 'month' );\n\n\tconst wpStartOfWeek = parseInt( wc_bookings_availability_args.start_of_week, 10 );\n\t// Change WP format to ISO. ISO 1..7, 1=Monday vs. WordPress 0..7, 0=Sunday.\n\tconst startOfWeek = wpStartOfWeek === 0 ? 7 : wpStartOfWeek;\n\tconst monthStart = date.startOf( 'month' );\n\tconst monthStartOfWeekDay = monthStart.isoWeekday();\n\t/*\n\t * Calculate column where the month start will be placed.\n\t * This calculates true modulo ( never negative ).\n\t */\n\tconst startColumn = ( 7 + ( ( monthStartOfWeekDay - startOfWeek ) % 7 ) ) % 7;\n\t/*\n\t * Calculate start time: how many days from the previous month we need to include,\n\t * in order to have calendar without empty days in the first row.\n\t */\n\tconst startTime = moment( monthStart ).subtract( startColumn, 'day' );\n\n\tconst monthEnd = date.endOf( 'month' );\n\tconst monthEndOfWeekDay = monthEnd.isoWeekday();\n\tconst endColumn = ( 7 + ( ( monthEndOfWeekDay - startOfWeek ) % 7 ) ) % 7;\n\t/*\n\t * Calculate end date: how many days from the next month we need to include.\n\t * We want to have calendar without empty days in the last row.\n\t */\n\tconst endTime = moment( monthEnd ).add( 6 - endColumn, 'day' );\n\n\treturn {\n\t\tminDate: startTime.startOf( 'day' ),\n\t\tmaxDate: endTime.endOf( 'day' ),\n\t\tcurrentMonth: date,\n\t};\n}\n\n/*\n * Get date as humanreadable string.\n *\n * @since 1.0.0\n *\n * @param {string} date String value for a date.\n *\n * @return {string} date in 'dddd, MMMM DD' format.\n */\nexport function getHumanReadableDate( date ) {\n\tconst dateFormat = 'dddd, MMMM DD';\n\n\treturn moment( date ).format( dateFormat );\n}\n\n/**\n * Formats a time duration.\n *\n * @since 1.0.0\n *\n * @param {object} product Product information.\n * @param {timestamp} date Date the duration starts from.\n *\n * @return {string} The formatted duration.\n */\nexport function formatDuration( product, date ) {\n\tconst { duration, durationUnit } = product;\n\tconst startDate = moment( date );\n\tconst startDateDay = startDate.format( 'Do' );\n\tconst startDateMonth = startDate.format( 'MMMM' );\n\tconst timeFormat = wc_bookings_availability_args.time_format_moment;\n\tlet endDate;\n\n\tlet formattedDuration, durationPeriodSeparator;\n\tswitch ( durationUnit ) {\n\t\tcase 'minute':\n\t\t\tendDate = moment( date ).add( duration, durationUnit );\n\t\t\tformattedDuration = `${ startDate.format( timeFormat ) }-${ endDate.format( timeFormat ) } (${ getDisplayTimezone( date ) })`;\n\t\t\tbreak;\n\t\tcase 'hour':\n\t\t\tendDate = moment( date ).add( duration, durationUnit );\n\t\t\tdurationPeriodSeparator = __( ' to ', 'woocommerce-bookings-availability' );\n\t\t\tformattedDuration = `${ startDate.format( timeFormat ) } ${ durationPeriodSeparator } ${ endDate.format( timeFormat ) } (${ getDisplayTimezone( date ) })`;\n\t\t\tbreak;\n\t\t// 'night' is just a synonym of the 'day' duration for accommodation bookings.\n\t\tcase 'night':\n\t\tcase 'day':\n\t\t\tendDate = moment( date ).add( duration - 1, durationUnit );\n\t\t\tlet endDateDay = endDate.format( 'Do' );\n\t\t\tlet endDateMonth = endDate.format( 'MMMM' );\n\n\t\t\t// Assume it's of fixed duration\n\t\t\tlet days = sprintf( _n( `%d ${ durationUnit }`, `%d ${ durationUnit }s`, duration * product.min_duration, 'woocommerce-bookings-availability' ), duration * product.min_duration );\n\t\t\tif ( 'customer' === product.duration_type && product.min_duration !== product.max_duration ) {\n\t\t\t\tdays = sprintf( __( `%d-%d ${ durationUnit }s`, 'woocommerce-bookings-availability' ), duration * product.min_duration, duration * product.max_duration );\n\t\t\t\tformattedDuration = `${ days }`;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ( startDateMonth !== endDateMonth ) {\n\t\t\t\tendDateMonth = `${ endDateMonth } `;\n\t\t\t} else {\n\t\t\t\tendDateMonth = '';\n\t\t\t}\n\n\t\t\tdurationPeriodSeparator = '';\n\t\t\tswitch ( duration ) {\n\t\t\t\tcase 1:\n\t\t\t\t\tdurationPeriodSeparator = endDateMonth = endDateDay = '';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tdurationPeriodSeparator = __( ' and ', 'woocommerce-bookings-availability' );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tdurationPeriodSeparator = ' - ';\n\t\t\t}\n\n\t\t\tformattedDuration = `${ days }, ${ startDateMonth } ${ startDateDay } ${ durationPeriodSeparator } ${ endDateMonth }${ endDateDay } `;\n\t\t\tbreak;\n\n\t\tcase 'month':\n\t\t\tendDate = moment( date ).add( duration, durationUnit );\n\t\t\t/* translators: %d number of month. */\n\t\t\tconst months = sprintf( _n( '%d month', '%d months', duration, 'woocommerce-bookings-availability' ), duration );\n\t\t\tconst startOfDuration = startDate.startOf( 'month' );\n\t\t\tconst endOfDuration = endDate.endOf( 'month' );\n\t\t\tif ( 1 === duration ) {\n\t\t\t\tformattedDuration = `${ months }, ${ startOfDuration.format( 'MMMM D' ) } - ${ endOfDuration.format( 'D' ) }`;\n\t\t\t} else {\n\t\t\t\tformattedDuration = `${ months }, ${ startOfDuration.format( 'MMMM D' ) } - ${ endOfDuration.format( 'MMMM D' ) }`;\n\t\t\t}\n\t}\n\n\treturn formattedDuration;\n}\n\n/**\n * Return friendly string indicating no slots exist for range type.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n *\n * @return {string} String indicating no slots are available in the range.\n */\nexport function getNoSlotsInRangeMessage( dateRangeType ) {\n\tswitch ( dateRangeType ) {\n\t\tcase DATE_RANGES.THIS_WEEK:\n\t\t\treturn __( 'No available times this week.', 'woocommerce-bookings-availability' );\n\t\tcase DATE_RANGES.THIS_MONTH:\n\t\t\treturn __( 'No available times this month.', 'woocommerce-bookings-availability' );\n\t\tcase DATE_RANGES.TODAY:\n\t\tdefault:\n\t\t\treturn __( 'No available times this day.', 'woocommerce-bookings-availability' );\n\t}\n}\n\n/**\n * Return friendly string indicating an error occurred for range type.\n *\n * @since 1.0.0\n *\n * @param {string} dateRangeType String value for a date range (from DATE_RANGE array).\n *\n * @return {string} String indicating an error occurred loading slots in the range.\n */\nexport function getErrorLoadingSlotsInRangeMessage( dateRangeType ) {\n\tswitch ( dateRangeType ) {\n\t\tcase DATE_RANGES.THIS_WEEK:\n\t\t\treturn __( 'We weren\\'t able to load times for this week.', 'woocommerce-bookings-availability' );\n\t\tcase DATE_RANGES.THIS_MONTH:\n\t\t\treturn __( 'We weren\\'t able to load times for this month.', 'woocommerce-bookings-availability' );\n\t\tcase DATE_RANGES.TODAY:\n\t\tdefault:\n\t\t\treturn __( 'We weren\\'t able to load times for this day.', 'woocommerce-bookings-availability' );\n\t}\n}\n\n/**\n * Convert client/server dates.\n *\n * @param {date} date Date to convert.\n * @param {string} convertDirection Direction of conversion (from CONVERT_DIRECTIONS array).\n *\n * @return {object} The converted date object.\n */\nexport function convertDate( date, convertDirection ) {\n\tconst offsetHours = getClientServerTimezoneOffsetHours( date );\n\tconst localizedDate = moment.tz( date, DATE_QUERY_FORMAT, wc_bookings_availability_args.server_timezone );\n\n\tswitch ( convertDirection ) {\n\t\tcase CONVERT_DIRECTIONS.SERVER_TO_LOCAL:\n\t\t\tlocalizedDate.add( offsetHours, 'hours' );\n\t\t\tbreak;\n\t\tcase CONVERT_DIRECTIONS.LOCAL_TO_SERVER:\n\t\t\tlocalizedDate.subtract( offsetHours, 'hours' );\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow 'Invalid convertDirection option.';\n\t}\n\n\treturn localizedDate;\n}\n\n/**\n * Localize client/server date based on Bookings timezone settings.\n *\n * @param {date} date Date to convert.\n * @param {string} convertDirection Direction of conversion (from CONVERT_DIRECTIONS array).\n *\n * @return {string} The converted date in 'YYYY-MM_DDTHH:mm:ss' format.\n */\nexport function localizeDate( date, convertDirection ) {\n\tif ( ! wc_bookings_availability_args.timezone_conversion ) {\n\t\treturn date;\n\t}\n\n\tconst convertedDate = convertDate( date, convertDirection );\n\treturn convertedDate.format( DATE_QUERY_FORMAT );\n}\n\n/**\n * Returns the hour offset between the client and the server based on Bookings timezone settings.\n *\n * @param {string} referenceDate date string in DATE_QUERY_FORMAT to use as time to calculate the timezone difference at.\n *\n * @return {number} Number of hours between server and client.\n */\nfunction getClientServerTimezoneOffsetHours( referenceDate ) {\n\tif ( ! wc_bookings_availability_args.timezone_conversion ) {\n\t\treturn 0;\n\t}\n\n\tconst referenceTime = moment( referenceDate, DATE_QUERY_FORMAT );\n\tconst clientOffset = referenceTime.utcOffset();\n\treferenceTime.tz( wc_bookings_availability_args.server_timezone );\n\tconst serverOffset = referenceTime.utcOffset();\n\n\treturn ( clientOffset - serverOffset ) / 60.0;\n}\n\n/**\n * Returns the current timezone abbreviation based on Bookings\n * settings and the client timezone.\n *\n * @param {string} referenceDate date string in DATE_QUERY_FORMAT to use as time to calculate the timezone at.\n *\n * @return {string} Timezone abbreviation string.\n */\nexport function getDisplayTimezone( referenceDate ) {\n\tif ( ! wc_bookings_availability_args.timezone_conversion ) {\n\t\t// Use server's timezone.\n\t\treturn moment.tz( referenceDate, DATE_QUERY_FORMAT, wc_bookings_availability_args.server_timezone ).format( 'z' );\n\t}\n\t// Guess client's timezone.\n\treturn moment.tz( referenceDate, DATE_QUERY_FORMAT, moment.tz.guess() ).format( 'z' );\n}\n\n/**\n * Checks if a specific date is restricted.\n *\n * @since 1.1.7\n *\n * @param {timestamp} date Date the duration starts from.\n * @param {object} product Product information.\n *\n * @return {boolean} Is restricted or not.\n */\nexport function getIsRestrictedDay( date, product ) {\n\tif ( ! product.has_restricted_days || ! product.restricted_days ) {\n\t\treturn false;\n\t}\n\n\t// Days included in the list are available as start days.\n\tconst day_of_week = moment( date ).day();\n\tif ( undefined === product.restricted_days[ day_of_week ] ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"lodash\"]; }());","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","/**\n * External dependencies\n */\nimport { Icon } from '@wordpress/components';\n\nexport default () => (\n\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t/>\n);\n","// Export each icon as a named component.\nexport { default as IconListAlt } from './list-alt';\nexport { default as IconCalendarAlt } from './calendar-alt';\nexport { default as IconCheckChecked } from './checkbox-checked';\nexport { default as IconCheckUnchecked } from './checkbox-unchecked';\nexport { default as IconRadioSelected } from './radio-selected';\nexport { default as IconRadioUnselected } from './radio-unselected';\nexport { default as IconTrendingFlat } from './trending-flat';\nexport { default as IconKeyboardArrowRight } from './keyboard-arrow-right';\n","/**\n * External dependencies.\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { DATE_RANGES } from './date-utils';\n\nexport const SCREEN = {\n\tALL_PRODUCTS: 'all-products',\n\tPRODUCTS_SCREEN: 'products-screen',\n\tCATEGORIES_SCREEN: 'categories-screen',\n\tRESOURCES_SCREEN: 'resources-screen',\n};\n\nexport const screenOptions = [\n\t{ value: SCREEN.ALL_PRODUCTS, label: __( 'All bookable products', 'woocommerce-bookings-availability' ) },\n\t{ value: SCREEN.PRODUCTS_SCREEN, label: __( 'Specific bookable products', 'woocommerce-bookings-availability' ) },\n\t{ value: SCREEN.CATEGORIES_SCREEN, label: __( 'Specific categories', 'woocommerce-bookings-availability' ) },\n\t{ value: SCREEN.RESOURCES_SCREEN, label: __( 'Specific resources', 'woocommerce-bookings-availability' ) },\n];\n\nexport const DEFAULT_PAGE_SIZE = 8;\n\n/*\n * Global list of all attributes for both blocks.\n * Attributes are organized into 'common', 'calendar',\n * and 'schedule' props. 'common' attributes\n * apply to both blocks while 'calendar' and 'schedule'\n * apply to the specific block types only.\n *\n */\nconst attributesDictionary = {\n\tcommon: {\n\t\tcategoryIds: {\n\t\t\ttype: 'string',\n\t\t\tdefault: '',\n\t\t\tsource: 'attribute',\n\t\t\tselector: '.wc-bookings-availability-main-container',\n\t\t\tattribute: 'data-category-ids',\n\t\t},\n\t\tcurrentScreen: {\n\t\t\ttype: 'string',\n\t\t\tdefault: '',\n\t\t},\n\t\tproductIds: {\n\t\t\ttype: 'string',\n\t\t\tdefault: '',\n\t\t\tsource: 'attribute',\n\t\t\tselector: '.wc-bookings-availability-main-container',\n\t\t\tattribute: 'data-product-ids',\n\t\t},\n\t\tresourceIds: {\n\t\t\ttype: 'string',\n\t\t\tdefault: '',\n\t\t\tsource: 'attribute',\n\t\t\tselector: '.wc-bookings-availability-main-container',\n\t\t\tattribute: 'data-resource-ids',\n\t\t},\n\t\tshowDateNav: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true,\n\t\t\tattribute: 'data-show-date-nav',\n\t\t},\n\t},\n\tcalendar: {\n\t\tdateRangeType: {\n\t\t\ttype: 'string',\n\t\t\tdefault: DATE_RANGES.THIS_MONTH,\n\t\t\tattribute: 'data-date-range-type',\n\t\t},\n\t\tshowSoldOut: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true,\n\t\t\tattribute: 'data-show-sold-out',\n\t\t},\n\t\texample: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\tschedule: {\n\t\tdateRangeType: {\n\t\t\ttype: 'string',\n\t\t\tdefault: DATE_RANGES.TODAY,\n\t\t\tattribute: 'data-date-range-type',\n\t\t},\n\t\tinfiniteScrollEnabled: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true,\n\t\t\tattribute: 'data-infinite-scroll-enabled',\n\t\t},\n\t\tmaxDate: {\n\t\t\ttype: 'date',\n\t\t\tdefault: null,\n\t\t\tsource: 'attribute',\n\t\t\tselector: '.wc-bookings-availability-container',\n\t\t\tattribute: 'data-max-date',\n\t\t},\n\t\tminDate: {\n\t\t\ttype: 'date',\n\t\t\tdefault: null,\n\t\t\tsource: 'attribute',\n\t\t\tselector: '.wc-bookings-availability-container',\n\t\t\tattribute: 'data-min-date',\n\t\t},\n\t\tslotsPerPage: {\n\t\t\ttype: 'number',\n\t\t\tdefault: DEFAULT_PAGE_SIZE,\n\t\t\tattribute: 'data-slots-per-page',\n\t\t},\n\t\tshowEmptyDates: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true,\n\t\t\tattribute: 'data-show-empty-dates',\n\t\t},\n\t},\n};\n\n/**\n * Get attribute definitions for the given block type name.\n *\n * @param {string} blockName Name of block to retrieve from (e.g. 'calendar' or 'schedule')\n *\n * @return {object} Attribute defintions for block.\n */\nexport function getAttributesDefFor( blockName ) {\n\t// Merge common attributes with the specific block attributes.\n\treturn { ...attributesDictionary.common, ...attributesDictionary[ blockName ] };\n}\n\n/**\n * Decode fontend data attributes for block props\n *\n * @param {string} blockName Name of block to retrieve from (e.g. 'calendar' or 'schedule')\n * @param {object} attributes Object data properties pulled directly from DOM.\n *\n * @return {string} Decoded attributes.\n */\nexport function decodeAttributesFor( blockName, attributes ) {\n\tconst attributesDef = getAttributesDefFor( blockName );\n\tconst decodedAttributes = {};\n\tfor ( const key of Object.keys( attributesDef ) ) {\n\t\tconst type = attributesDef[ key ].type;\n\t\t// Fill in missing values with defaults\n\t\tconst value = attributes.hasOwnProperty( key ) ? attributes[ key ] : attributesDef[ key ].default;\n\n\t\tswitch ( type ) {\n\t\t\tcase 'boolean':\n\t\t\t\tdecodedAttributes[ key ] = ( 'true' === value || true === value ) ? true : false;\n\t\t\t\tbreak;\n\t\t\tcase 'number':\n\t\t\t\tdecodedAttributes[ key ] = parseInt( value );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tdecodedAttributes[ key ] = value;\n\t\t}\n\t}\n\treturn decodedAttributes;\n}\n","(function() { module.exports = this[\"wp\"][\"apiFetch\"]; }());","/**\n * External dependencies.\n */\nimport { createContext } from '@wordpress/element';\n\nexport default createContext( {} );\n","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * External dependencies.\n */\nimport { createContext } from '@wordpress/element';\n\nexport default createContext( {} );\n","(function() { module.exports = this[\"wp\"][\"url\"]; }());","/**\n * External dependencies.\n */\nimport { createContext } from '@wordpress/element';\n\nexport default createContext( {} );\n","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","/**\n * External dependencies.\n */\nimport { createContext } from '@wordpress/element';\n\nexport default createContext( {} );\n","\"use strict\";\n\nvar stylesInDom = {};\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nfunction listToStyles(list, options) {\n var styles = [];\n var newStyles = {};\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var css = item[1];\n var media = item[2];\n var sourceMap = item[3];\n var part = {\n css: css,\n media: media,\n sourceMap: sourceMap\n };\n\n if (!newStyles[id]) {\n styles.push(newStyles[id] = {\n id: id,\n parts: [part]\n });\n } else {\n newStyles[id].parts.push(part);\n }\n }\n\n return styles;\n}\n\nfunction addStylesToDom(styles, options) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i];\n var domStyle = stylesInDom[item.id];\n var j = 0;\n\n if (domStyle) {\n domStyle.refs++;\n\n for (; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j]);\n }\n\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j], options));\n }\n } else {\n var parts = [];\n\n for (; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j], options));\n }\n\n stylesInDom[item.id] = {\n id: item.id,\n refs: 1,\n parts: parts\n };\n }\n }\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n\n if (typeof options.attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n options.attributes.nonce = nonce;\n }\n }\n\n Object.keys(options.attributes).forEach(function (key) {\n style.setAttribute(key, options.attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n }\n\n if (sourceMap && btoa) {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of