{"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]/./node_modules/classnames/index.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]/./node_modules/@wordpress/date/build-module/index.js","webpack://wc-bookings-availability.[name]/./assets/js/components/book-button/index.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-calendar-item/popover.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-calendar-item/index.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-calendar/index.js","webpack://wc-bookings-availability.[name]/./assets/js/components/event-calendar/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/moment-timezone/moment-timezone.js","webpack://wc-bookings-availability.[name]/external {\"this\":[\"wp\",\"viewport\"]}","webpack://wc-bookings-availability.[name]/./node_modules/memorize-one/dist/index.js","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]/./node_modules/moment-timezone/moment-timezone-utils.js","webpack://wc-bookings-availability.[name]/./node_modules/moment-timezone/index.js","webpack://wc-bookings-availability.[name]/./node_modules/json-cycle/cycle.js","webpack://wc-bookings-availability.[name]/./assets/js/components/book-button/style.scss?c5fd","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-calendar/context/calendar-state.js","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-calendar/style.scss?a344","webpack://wc-bookings-availability.[name]/./assets/js/blocks/bookings-calendar/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","hasOwn","classNames","classes","arg","argType","push","Array","isArray","inner","join","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","addStylesToDom","domStyle","j","refs","addStyle","insertStyleElement","style","createElement","nonce","forEach","setAttribute","insert","Error","appendChild","textStore","replaceText","index","replacement","filter","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","WP_ZONE","VALID_UTC_OFFSET","settings","l10n","locale","monthsShort","weekdays","weekdaysShort","meridiem","am","pm","AM","PM","relative","future","past","ss","mm","h","hh","dd","M","MM","y","yy","formats","time","datetime","datetimeAbbreviated","timezone","offset","string","setupWPTimezone","pack","abbrs","untils","offsets","formatMap","D","N","S","momentDate","num","replace","w","z","W","F","daysInMonth","L","isLeapYear","Y","a","A","B","timezoned","seconds","minutes","hours","g","G","H","u","v","I","isDST","O","P","T","Z","sign","substring","split","U","dateFormat","char","dateValue","newFormat","buildMoment","dateMoment","isUTCOffset","test","BookButton","props","buttonText","useState","loading","setLoading","availability","hasPersons","hasResources","permalink","durationType","isPreview","showDetails","buttonClassName","className","href","onClick","location","productId","apiFetch","url","ajax_url","nonces","add_booking_to_cart","then","data","booked","checkout_url","link","disabled","propTypes","PropTypes","array","isRequired","bool","EventCalendarItemPopover","productName","price","formattedDate","bookButtonProps","availableSlots","available","isSameOrAfter","isAfter","isNotPast","reduce","sum","slot","position","focusOnMount","colSpan","renderEventTime","EventCalendarItem","useContext","calendarContext","showPopover","setShowPopover","linkRef","useRef","priceHtml","price_html","has_persons","has_resources","isSoldOut","getIsSoldOut","now","isPastDate","some","isSameOrBefore","isBefore","onMouseEnter","current","focus","onMouseLeave","preventDefault","ref","number","EventCalendar","selectedDate","setSelectedDate","productsContext","requestProducts","getProducts","products","productsRequesting","productsError","availabilityContext","availabilityRequesting","getAvailability","requestAvailability","availabilityError","hasResultsForQuery","commonContext","resetOffset","isSmallViewport","startEndTimes","queryMinDate","queryMaxDate","isError","isRequesting","availabilityQuery","productsQuery","useEffect","count","memorize","_dateRangeType","_isSmallViewport","transformAvailabilityForMonthView","transformAvailabilityForWeekView","filterAvailability","renderCalendarWeekDays","weekAvailability","calendarItems","time_format","hour","hourRow","hourStyle","gridColumn","gridRow","formatTime","hourKey","hourColumnMarkup","start","end","column","hourDateKey","hourDateStyle","slots","loadMore","hourMarkup","productsWithAvailabilityOnDayHour","map","productAvailability","calendarClass","numOfWeeks","diff","calendarContainerClass","weekView","shift","header","dayNumber","renderHeader","calendarDays","dayString","headerKey","headerClass","role","tabIndex","onKeyDown","renderCalendarWeekDaysSmallViewport","headerStyle","dayStyle","rowsPerDay","rowIndex","dayKey","dayMarkup","dayClassName","productsWithAvailabilityOnDay","renderCalendarMonthDays","remainingRecords","isLastPage","forceDateFromProps","defaultProps","node","dayAvailability","transform","result","availabilityByDays","mapValues","sort","b","availabilityByHour","withViewportMatch","CalendarContainer","gotoCurrent","gotoNext","gotoPrev","dateRangeString","dateRangeTypeString","Slot","getJsonString","query","serializeQueryArgs","omit","AvailabilityState","setAvailability","setAvailabilityRequesting","setAvailabilityError","records","pages","page","Provider","getAvailabilityCount","getRemainingRecordsCount","recordsCount","getAvailabilityTotalRecords","getPastTimes","pageSize","queryArgs","product_ids","category_ids","resource_ids","min_date","max_date","limit","get_past_times","hide_unavailable","path","addQueryArgs","pickBy","identity","requestedAvailability","_query","queryKey","newPage","newAvailability","merge","has","storeAvailability","src","product_id","duration_unit","serverDate","error","highestPageForQuery","Math","max","children","EventItem","addSubheader","placeholder","availableData","isAvailable","listClassName","dangerouslySetInnerHTML","__html","isBookable","shape","resources","title","EmptyEventItem","PageLoader","onScroll","scrollTriggerRef","createRef","addEventListener","prevProps","isLoading","removeEventListener","scrollTriggerIsInViewport","scrollTrigger","top","getBoundingClientRect","innerHeight","loadMoreClick","Component","func","EventTable","setPage","firstRender","pageLoader","productContext","scheduleContext","previousProps","usePreviousProps","forcedDate","dateRange","hasResults","useLayoutEffect","loadMoreSlots","previousDate","shownAvailability","placeholderAvailability","slice","eventItems","placeHolderCount","min","placeHolderProduct","cost","momentPreviousDate","addSubHeader","renderEvents","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","transformProductsListToObject","content","locals","root","factory","cachedGuess","zones","links","names","guesses","version","logError","momentVersion","major","minor","charCodeToInt","charCode","unpackBase60","whole","fractional","multiplier","out","charCodeAt","arrayToInt","mapIndices","indices","unpack","round","Infinity","intToUntil","population","Zone","packedString","_set","OffsetAt","at","timeString","toTimeString","abbr","match","getTimezoneOffset","ZoneScore","zone","offsetScore","abbrScore","findChange","low","high","mid","sortZoneScores","localeCompare","addToGuesses","guessesForUserOffsets","guessesOffset","offsetsLength","filteredGuesses","rebuildGuess","intlName","Intl","DateTimeFormat","resolvedOptions","timeZone","normalizeName","zoneScore","change","next","startYear","getFullYear","last","userOffsets","zoneScores","getZone","scoreOffsetAt","toLowerCase","addZone","packed","normalized","caller","addLink","aliases","alias","normal0","normal1","needsOffset","isUnixTimestamp","_f","_a","_tzm","message","console","input","args","utc","isMoment","parse","unpacked","_index","timestamp","offsetNext","offsetPrev","moveAmbiguousForward","moveInvalidForward","mom","offsetAt","abs","dataVersion","_zones","_links","_names","load","zoneExists","didShowError","ignoreCache","old","fn","abbrWrap","_z","resetZoneWrap","defaultZone","updateOffset","keepTime","_isUTC","_d","zoneName","zoneAbbr","local","setDefault","momentProperties","toString","ex","Map","argstr","set","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","err","getShim","ReactPropTypes","symbol","any","arrayOf","element","elementType","instanceOf","objectOf","oneOf","oneOfType","exact","checkPropTypes","_arr","_e","_s","iterator","done","_typeof2","_setPrototypeOf","arr2","iter","from","BASE60","EPSILON","packBase60","precision","output","absolute","floor","fraction","buffer","packBase60Fraction","packUntils","packAbbrsAndOffsets","packPopulation","exponent","String","pow","validatePackData","arraysAreEqual","zonesAreEqual","createLinks","groupLeaders","group","foundGroup","groups","unshift","findAndCreateLinks","filterYears","untilYear","startI","endI","getUTCFullYear","findStartAndEndIndex","filterLinkPack","inputZones","outputZones","decycle","objects","paths","derez","nu","_value","toJSON","Function","$ref","retrocycle","$","px","rez","eval","replacer","space","reviver","CalendarState","onTimeRangeUpdate","onShowSoldOutTimesUpdate","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,EAASi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GACvB,IAAI0S,EAGHA,EADI,cAAgB1S,EAAM2S,aAAc,IAAS3S,EAAM2S,WAC5C3S,EAEAA,EAAM1L,WAiBlB,OACC,wBAAC,IAAgBwX,SAAjB,CAA0BhiB,MAAQ,CACjC+B,cAAe6mB,EAAS7mB,cACxBu1B,kBAdwB,SAAEv1B,GAC3BmU,EAAM8S,cAAe,CAAEjnB,mBActBw1B,yBAR+B,WAChCrhB,EAAM8S,cAAe,CAAEjf,aAAe6e,EAAS7e,eAQ9CA,YAAa6e,EAAS7e,cAGpBmM,EAAMkO,WAKXiT,EAActf,UAAY,CACzBqM,SAAUpM,IAAUvX,OACpB+J,WAAYwN,IAAUvX,OACtBuoB,cAAehR,IAAUiO,KACzB4C,WAAY7Q,IAAUG,MAGRkf,O,2BCrDf,IAAIzN,EAAU,EAAQ,IAEC,iBAAZA,IACTA,EAAU,CAAC,CAAC9qB,EAAOC,EAAI6qB,EAAS,MAGlC,IAAIxc,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEP,EAAQ,GAAR,CAA2Fwc,EAASxc,GAE7Gwc,EAAQC,SACV/qB,EAAOD,QAAU+qB,EAAQC,S,wKCCrB2N,EAAyBhrB,SAASirB,uBAAwB,oD,uBAEhE,YAAqCD,EAArC,+CAA8D,KAAlDE,EAAkD,QACvDltB,EAAaD,YAAqB,WAAYmtB,EAAsBC,SAC1EC,iBACC,wBAAC,IAAD,KAAa/O,YAAa,GAAYre,GACrC,wBAAC,IAAD,KACC,wBAAC,IAAD,KAAeqe,YAAa,GAAYre,GACvC,wBAAC,IAAuBA,MAI3BktB,I","file":"js/bookings-calendar-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 = 88);\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 Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\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