1(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{913:function(e,t,n){"use strict";n.r(t);var r=n(40),i=n(11),o=n(323),a=n(57),s=n(324),c=n(328),u=n(201);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(n,!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=[i.a.membership.signIn,i.a.membership.signUp],d=[].concat(function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(Object.values(i.a.myAccount)),[i.a.reservation.review,i.a.organization.admin]),h={name:"AuthorizedRouterView",mixins:[o.a,u.a,c.a],beforeRouteEnter:function beforeRouteEnter(e,t,n){n((function(t){t.checkRoutePermission(e)}))},beforeRouteUpdate:function beforeRouteUpdate(e,t,n){this.checkRoutePermission(e,n)},computed:_objectSpread({},Object(r.d)("membership",["isUserSignedIn","isCorporateSignedIn","isOrganizationAdmin"]),{},Object(r.d)("setting",["getSetting","isInChatbotIframe","isBrandFacility"])),watch:{isUserSignedIn:function isUserSignedIn(e,t){if(!e&&t&&d.includes(this.$route.name)){var n=(s.a.load(this.getSetting.code)||{}).query;this.redirect({name:i.a.booking.result,query:_objectSpread({code:this.getSetting.code},n)})}}},methods:{checkRoutePermission:function checkRoutePermission(e,t){if(this.isUserSignedIn&&l.includes(e.name)){var n=i.a.myAccount.profile;e.query.fallback_route&&function hasRouteName(e,t){return!!(null==e?void 0:e.length)&&e.some((function(e){return e.name===t||!!e.children&&hasRouteName(e.children,t)}))}(this.$router.options.routes,e.query.fallback_route)&&(n=e.query.fallback_route),this.redirect({name:n,query:{code:this.getSetting.code}},t),this.isInChatbotIframe&&(console.info("exchange triplabot session inside CB iframe, token exists?",!!Object(a.b)()),this.sendTriplabotSession())}else if(this.isCorporateSignedIn&&e.name===i.a.organization.signIn)this.isBrandFacility?this.redirect({name:i.a.facilities},t):this.assignQueryToSearchForm().then(this.goToSearchPage);else if(this.isUserSignedIn||e.name!==i.a.myAccount.reservations||"bookingConfirm"!==e.query.fromChatbot)if(!this.isUserSignedIn&&d.includes(e.name)){var r=[i.a.myAccount.profile,i.a.myAccount.reservations,i.a.myAccount.points].includes(e.name)&&e.fullPath,o={code:this.getSetting.code};r&&(o.urlBack=r),this.redirect({name:i.a.membership.signIn,query:o},t)}else this.isOrganizationAdmin||e.name!==i.a.organization.admin?t&&this.redirect(null,t):this.redirect({name:i.a.organization.signIn,query:{code:this.getSetting.code}},t);else{var s={code:this.getSetting.code};this.redirect({name:i.a.search,query:s},t)}},redirect:function redirect(e,t){t?e?t(e):t():e&&this.$router.push(e)}}},f=n(33),m=Object(f.a)(h,(function render(){var e=this;return(0,e._self._c)("router-view",{on:{changeLocale:function changeLocale(t){return e.$emit("changeLocale",t)}}})}),[],!1,null,null,null);t.default=m.exports}}]); 2//# sourceMappingURL=page-AuthorizedRouterView-index-vue.7fb5060cb9f20f2a4c77.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.