PageSourceSearch

https://book.bwhotels.jp/page-Facilities-InventoryCalendarRow-vue.d93b72ce70aa4808b18e.js

js bwhotels.jp collected 2026-09-25 03:55:46 UTC 5,058 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1143:function(t,e,n){},1173:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var a=n(9),r=function useBrandInventoryCalendar(){var t=Object(a.getCurrentInstance)().proxy.$i18n,e=new Set(["ja","ko"]);return{inventoryDescriptionIcon:Object(a.computed)((function(){return{available:e.has(t.locale)?"icon-circle":"icon-check",unavailable:"icon-delete",uncertain:"icon-triangle"}}))}}},1259:function(t,e,n){"use strict";n(1143)},868:function(t,e,n){"use strict";n.r(e);var a=n(9),r=n(38),i=n.n(r),o=n(1173),c=n(975);function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=Object(a.defineComponent)({props:{hotel:{type:Object,default:function _default(){return{}}},nights:{type:Number,default:0},checkin:{type:String,default:""},roomCount:{type:Number,default:1},useLowestRates:{type:Boolean,default:!1}},setup:function setup(t,e){var n=e.emit,r=Object(o.a)().inventoryDescriptionIcon;function getAvailabilityIcon(e){if(t.hotel.uncertain)return r.value.uncertain;var n,a;if(t.useLowestRates)return null!==(null!==(n=null===(a=t.hotel.lowestRates)||void 0===a?void 0:a[e])&&void 0!==n?n:null)?r.value.available:r.value.unavailable;for(var o=0;o<t.nights;o++){var c=i()(e).add(o,"day").format("YYYY/MM/DD");if(Number(t.hotel.inventory[c]||0)<t.roomCount)return r.value.unavailable}return r.value.available}return{dateRange:Object(a.computed)((function(){for(var e=[],n=0;n<7;n++){var a,r,o=i()(t.checkin).add(n,"day").format("YYYY/MM/DD"),c=getAvailabilityIcon(o),l=t.useLowestRates&&null!==(a=null===(r=t.hotel.lowestRates)||void 0===r?void 0:r[o])&&void 0!==a?a:null;e.push({date:o,availabilityIcon:c,price:l})}return e})),inventoryDescriptionIcon:r,handleSelectDate:function handleSelectDate(e){var a=e,r=i()(e).add(t.nights,"day").format("YYYY/MM/DD");n("selected",t.hotel.triplabot_url,t.hotel,a,r)},isIconDisabled:function isIconDisabled(t){return[r.value.unavailable].includes(t)},formatPrice:function formatPrice(t){return t&&"object"===_typeof(t)?Object(c.c)(t.cents,t.currency_iso):Object(c.a)(t)}}}}),u=(n(1259),n(33)),s=Object(u.a)(l,(function render(){var t,e=this,n=e._self._c;e._self._setupProxy;return n("div",{staticClass:"inventory-row"},[n("div",{staticClass:"hotel-info"},[(null===(t=e.hotel.area)||void 0===t?void 0:t.name)?n("span",{staticClass:"area"},[e._v("\n        "+e._s(e.hotel.area.name)+"\n      ")]):e._e(),e._v(" "),n("a",{attrs:{href:e.hotel.triplabot_url,target:"_blank","data-cy":"hotel-link"}},[n("div",{staticClass:"name"},[e._v("\n          "+e._s(e.hotel.name)+"\n        ")])])]),e._v(" "),n("div",{staticClass:"week"},e._l(e.dateRange,(function(t){return n("button",{key:t.date,staticClass:"week-date",attrs:{disabled:e.isIconDisabled(t.availabilityIcon),"data-cy":"".concat(e.hotel.name,"-").concat(t.date)},on:{click:function click(n){return e.handleSelectDate(t.date)}}},[n("i",{class:t.availabilityIcon}),e._v(" "),e.useLowestRates&&null!==t.price?n("span",{staticClass:"week-date-price",attrs:{"data-cy":"".concat(e.hotel.name,"-").concat(t.date,"-price")}},[e._v("\n          "+e._s(e.formatPrice(t.price))+"\n        ")]):e._e()])})),0)])}),[],!1,null,"eaac56f0",null);e.default=s.exports},975:function(t,e,n){"use strict";n.d(e,"a",(function(){return priceWithPrefix})),n.d(e,"b",(function(){return priceWithComma})),n.d(e,"c",(function(){return o}));var a=n(8),r=n(83);function _slicedToArray(t,e){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,e){var n=[],a=!0,r=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);a=!0);}catch(l){r=!0,i=l}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(t,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=function purePriceWithPrefix(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Â¥";if(0!==t&&!Number(t))return t;var n=t<0?"-":"";return"".concat(n).concat(e).concat(Math.abs(t).toFixed(0).replace(/\d(?=(\d{3})+$)/g,"$&,"))};function priceWithPrefix(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.a.getters["setting/getCurrency"].symbol;return i(t,e)}function priceWithComma(t){if(0===t||Number(t))return Number(t).toFixed(0).replace(/\d(?=(\d{3})+$)/g,"$&,")}var o=function priceWithSymbol(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.a.getters["mcp/selectedCurrency"];if(!r.c[e])return String(t);var n=r.c[e],i=n.symbol,o=n.decimalDigits,c=t/Math.pow(10,o),l=String(c).split("."),u=_slicedToArray(l,2),s=u[0],d=u[1],f=void 0===d?"":d,v=Number(s).toLocaleStr
1ing(),y=o?".".concat(f.padEnd(o,0)):"";return"".concat(i," ").concat(v).concat(y)}}}]);
2//# sourceMappingURL=page-Facilities-InventoryCalendarRow-vue.d93b72ce70aa4808b18e.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.