PageSourceSearch

https://getpica.com/js/autologin.228a5dbd.js

js getpica.com collected 2026-09-24 11:19:31 UTC 12,183 bytes, 2 lines download raw bytes

1(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["autologin"],{"4aff":function(t,e,r){},"555f":function(t,e,r){"use strict";var n=function(){var t=this,e=t._self._c;return e("section",{staticClass:"container"},[e("div",{staticClass:"loader py-5 py-lg-8"},[e("div",{staticClass:"loader__item"}),e("div",{staticClass:"loader__item"}),e("div",{staticClass:"loader__item"}),t.hasMessage?e("h4",{staticClass:"loader__message"},[t._t("message")],2):t._e()])])},o=[],i={computed:{hasMessage:function(){return!!this.$slots.message}}},u=i,c=r("2877"),a=Object(c["a"])(u,n,o,!1,null,null,null);e["a"]=a.exports},"7cff":function(t,e,r){"use strict";r("4aff")},c811:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12 text-center"},[t.loading?e("Loader"):e("div",{staticClass:"d-flex justify-content-center align-items-center vh-100"},[e("div",{staticClass:"user-cta"},[e("Icon",{staticClass:"mb-3",attrs:{name:"grLogin",width:"36"}}),e("div",{staticClass:"mb-5"},[e("h4",{staticClass:"user-cta__title"},[t._v(t._s(t.$t("sso.title")))]),e("h5",{staticClass:"user-cta__subtitle"},[t._v(t._s(t.subtitle))])]),e("b-button",{staticClass:"user-cta__action",attrs:{variant:"primary",target:"_blank"},on:{click:t.doLogin}},[t._v("\n            "+t._s(t.$t("sso.btn_login"))+"\n          ")])],1)])],1)])])},o=[],i=r("2f62"),u=r("555f");function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){var e=p(t,"string");return"symbol"==c(e)?e:e+""}function p(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var a=n&&n.prototype instanceof c?n:c,s=Object.create(a.prototype);return h(s,"_invoke",function(r,n,o){var i,c,a,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,a=t,p.n=r,u}};function y(r,n){for(c=r,a=n,e=0;!l&&s&&!o&&e<f.length;e++){var o,i=f[e],y=p.p,h=i[2];r>3?(o=h===n)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&y<i[1])?(c=0,p.v=n,p.n=i[1]):y<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,c=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,h){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,h),c=f,a=h;(e=c<2?t:a)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,a)):p.n=a:p.v=a);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?a:r.call(n,p))!==u)break}catch(e){i=t,c=1,a=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var u={};function c(){}function a(){}function s(){}e=Object.getPrototypeOf;
1var f=[][n]?e(e([][n]())):(h(e={},n,(function(){return this})),e),l=s.prototype=c.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,h(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return a.prototype=s,h(l,"constructor",s),h(s,"constructor",a),a.displayName="GeneratorFunction",h(s,o,"GeneratorFunction"),h(l),h(l,o,"Generator"),h(l,n,(function(){return this})),h(l,"toString",(function(){return"[object Generator]"})),(y=function(){return{w:i,m:p}})()}function h(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}h=function(t,e,r,n){function i(e,r){h(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},h(t,e,r,n)}function b(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){b(i,n,o,u,c,"next",t)}function c(t){b(i,n,o,u,c,"throw",t)}u(void 0)}))}}var d={name:"SingleSignOn",components:{Loader:u["a"]},data:function(){return{loading:!0}},mounted:function(){var t=v(y().m((function t(){return y().w((function(t){while(1)switch(t.n){case 0:if(!this.isAnonymousAccess&&!this.noAuthMsg){t.n=2;break}return t.n=1,this.doLogin();case 1:t.n=3;break;case 2:this.loading=!1;case 3:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:s(s({},Object(i["c"])("auth",["hasAcceptedRequiredPolicies"])),{},{subtitle:function(){if(!this.$route.query.t)return"";var t=this.jwtDecode(this.$route.query.t);return this.$t("sso.subtitle",{email:t.payload.email})},isAnonymousAccess:function(){return this.$route.query.hasOwnProperty("anon")},noAuthMsg:function(){return["true","1"].includes(this.$route.query.noAuthMsg)}}),methods:s(s({},Object(i["b"])("auth",["ssoLogin","getCurrentUser"])),{},{doLogin:function(){var t=v(y().m((function t(){var e;return y().w((function(t){while(1)switch(t.p=t.n){case 0:if(this.loading=!0,!this.$route.query.t||!this.$route.query.k){t.n=8;break}return this.$store.commit("SET_IS_PREVIEW_CHECKIN",!0),t.p=1,t.n=2,this.ssoLogin({token:this.$route.query.t,integration_id:this.$route.query.k});case 2:return e=t.v,t.n=3,this.getCurrentUser();case 3:if(e.picacode&&sessionStorage.setItem("picacode",e.picacode),e.start_of_stay&&e.end_of_stay&&(this.$store.commit("SET_DATE_OF_STAY",{start:e.start_of_stay,end:e.end_of_stay}),sessionStorage.setItem("dateOfStay",JSON.stringify({start:e.start_of_stay,end:e.end_of_stay}))),this.hasAcceptedRequiredPolicies){t.n=5;break}return t.n=4,this.$router.push({name:"terms",params:{next:"checkins-list"}});case 4:t.n=6;break;case 5:return t.n=6,this.$router.push({name:"checkins-list"});case 6:t.n=8;break;case 7:return t.p=7,t.v,t.n=8,this.$router.push({name:"homepage"});case 8:return t.a(2)}}),t,this,[[1,7]])})));function e(){return t.apply(this,arguments)}return e}(),jwtDecode:function(t){var e={};return e.raw=t,e.header=JSON.parse(window.atob(t.split(".")[0])),e.payload=JSON.parse(window.atob(t.split(".")[1])),e}})},m=d,g=(r("7cff"),r("2877")),O=Object(g["a"])(m,n,o,!1,null,null,null);e["default"]=O.exports},e64c:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[t._v(".. Login in progress ..")])},o=[],i=r("2f62");function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){var e=l(t,"string");return"symbol"==u(e)?e:e+""}function l(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var a=n&&n.prototype instanceof c?n:c,s=Object.create(a.prototype);return y(s,"_invoke",function(r,n,o){var i,c,a,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,r){return i=e,c=0,a=t,p.n=r,u}};function y(r,n){for(c=r,a=n,e=0;!l&&s&&!o&&e<f.length;e++){var o,i=f[e],y=p.p,h=i[2];r>3?(o=h===n)&&(a=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&y<i[1])?(c=0,p.v=n,p.n=i[1]):y<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,c=0))}if(o||r>1)return u;throw l=!0,n}return function(o,f,h){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,h),c=f,a=h;(e=c<2?t:a)||!l;){i||(c?c<3?(c>1&&(p.n=-1),y(c,a)):p.n=a:p.v=a);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(l=p.n<0)?a:r.call(n,p))!==u)break}catch(e){i=t,c=1,a=e}finally{s=1}}return{value:e,done:l}}}(r,o,i),!0),s}var u={};function c(){}function a(){}function s(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(y(e={},n,(function(){return this})),e),l=s.prototype=c.prototype=Object.create(f);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,y(t,o,"GeneratorFunction")),t.prototype=Object.create(l),t}return a.prototype=s,y(l,"constructor",s),y(s,"constructor",a),a.displayName="GeneratorFunction",y(s,o,"GeneratorFunction"),y(l),y(l,o,"Generator"),y(l,n,(function(){return this})),y(l,"toString",(function(){return"[object Generator]"})),(p=function(){return{w:i,m:h}})()}function y(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}y=function(t,e,r,n){function i(e,r){y(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},y(t,e,r,n)}function h(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){h(i,n,o,u,c,"next",t)}function c(t){h(i,n,o,u,c,"throw",t)}u(void 0)}))}}var v={name:"AutoLogin",mounted:function(){var t=b(p().m((function t(){var e;return p().w((function(t){while(1)switch(t.n){case 0:if(this.loading=!0,!this.$route.query.jwt){t.n=1;break}return this.loginWithJwt(this.$route.query.jwt),t.n=1,this.getCurrentUser();case 1:if(e=this.$route.query.redirect,"checkins"!==e){t.n=3;break}return sessionStorage.setItem("picacode",this.$route.query.picacode),t.n=2,this.$router.push({name:"checkins-list",query:{picacode:this.$route.query.picacode}});case 2:t.n=4;break;case 3:return t.n=4,this.$router.push({name:"homepage"});case 4:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:a({},Object(i["b"])("auth",["loginWithJwt","getCurrentUser"]))},d=v,m=r("2877"),g=Object(m["a"])(d,n,o,!1,null,null,null);e["default"]=g.exports}}]);
2//# sourceMappingURL=autologin.228a5dbd.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.