1(function(t){function e(e){for(var i,r,s=e[0],c=e[1],l=e[2],u=0,d=[];u<s.length;u++)r=s[u],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(t[i]=c[i]);f&&f(e);while(d.length)d.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],i=!0,r=1;r<n.length;r++){var s=n[r];0!==a[s]&&(i=!1)}i&&(o.splice(e--,1),t=c(c.s=n[0]))}return t}var i={},r={index:0},a={index:0},o=[];function s(t){return c.p+"js/"+({autologin:"autologin","checkins-confirm":"checkins-confirm","checkins-error":"checkins-error","checkout-success":"checkout-success",checkout:"checkout","checkins-detail":"checkins-detail","checkins-list":"checkins-list",events:"events",fotosmile:"fotosmile",help:"help","homepage~login~preview~signup":"homepage~login~preview~signup",homepage:"homepage",login:"login",preview:"preview",signup:"signup","page-not-found":"page-not-found","profile-change-password":"profile-change-password","profile-privacy":"profile-privacy","profile-resume":"profile-resume","reset-password":"reset-password",temms:"temms"}[t]||t)+"."+{autologin:"228a5dbd","checkins-confirm":"711a3f50","checkins-error":"18988ddf","checkout-success":"b9835c55","chunk-2d0de536":"7cfdcb78","chunk-7dde1f70":"e5a6a423",checkout:"405a2e35","chunk-d9ea6ace":"81e5dc06","chunk-c03f2636":"998ab10c","checkins-detail":"ce6bf472","chunk-d13899dc":"9436543b","checkins-list":"3a4419cd",events:"e7be06a9",fotosmile:"b3dc2960",help:"3f9d6f7b","homepage~login~preview~signup":"1beacab2",homepage:"bd69c6e4",login:"3db1e622",preview:"9ff98342",signup:"65eb5fd0","page-not-found":"41bd4d46","profile-change-password":"c66feea0","profile-privacy":"558d37a4","profile-resume":"d9b416db","reset-password":"a0b989c8",temms:"975f775e"}[t]+".js"}function c(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(t){var e=[],n={autologin:1,"checkins-error":1,"chunk-d9ea6ace":1,"chunk-c03f2636":1,"chunk-d13899dc":1,events:1,fotosmile:1,homepage:1,login:1,preview:1,signup:1,"reset-password":1};r[t]?e.push(r[t]):0!==r[t]&&n[t]&&e.push(r[t]=new Promise((function(e,n){for(var i="css/"+({autologin:"autologin","checkins-confirm":"checkins-confirm","checkins-error":"checkins-error","checkout-success":"checkout-success",checkout:"checkout","checkins-detail":"checkins-detail","checkins-list":"checkins-list",events:"events",fotosmile:"fotosmile",help:"help","homepage~login~preview~signup":"homepage~login~preview~signup",homepage:"homepage",login:"login",preview:"preview",signup:"signup","page-not-found":"page-not-found","profile-change-password":"profile-change-password","profile-privacy":"profile-privacy","profile-resume":"profile-resume","reset-password":"reset-password",temms:"temms"}[t]||t)+"."+{autologin:"4a2f3ae8","checkins-confirm":"31d6cfe0","checkins-error":"4a2f3ae8","checkout-success":"31d6cfe0","chunk-2d0de536":"31d6cfe0","chunk-7dde1f70":"31d6cfe0",checkout:"31d6cfe0","chunk-d9ea6ace":"a8419360","chunk-c03f2636":"4325f35f","checkins-detail":"31d6cfe0","chunk-d13899dc":"b5317258","checkins-list":"31d6cfe0",events:"a0a8e711",fotosmile:"6ff16a27",help:"31d6cfe0","homepage~login~preview~signup":"31d6cfe0",homepage:"f148ef22",login:"f148ef22",preview:"d09e194d",signup:"f148ef22","page-not-found":"31d6cfe0","profile-change-password":"31d6cfe0","profile-privacy":"31d6cfe0","profile-resume":"31d6cfe0","reset-password":"f148ef22",temms:"31d6cfe0"}[t]+".css",a=c.p+i,o=document.getElementsByTagName("link"),s=0;s<o.length;s++){var l=o[s],u=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(u===i||u===a))return e()}var d=document.getElementsByTagName("style");for(s=0;s<d.length;s++){l=d[s],u=l.getAttribute("data-href");if(u===i||u===a)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var i=e&&e.target&&e.target.src||a,o=new Error("Loading CSS chunk "+t+" failed.\n("+i+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=i,delete r[t],f.parentNode.removeChild(f),n(o)},f.href=a;var h=document.getElementsByTagName("head")[0];h.appendChild(f)})).then((function(){r[t]=0})));var i=a[t];if(0!==i)if(i)e.push(i[2]);else{var o=new Promise((function(e,n){i=a[t]=[e,n]}));e.push(i[2]=o);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,c.nc&&u.setAttribute("nonce",c.nc),u.src=s(t);var d=new Error;l=function(e){u.onerror=u.onload=null,clearTimeout(f);var n=a[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;d.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",d.name="ChunkLoadError",d.type=i,d.request=r,n[1](d)}a[t]=void 0}};var f=setTimeout((function(){l({type:"timeout",target:u})}),12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(e)},c.m=t,c.c=i,c.d=function(t,e,n){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)c.d(n,i,function(e){return t[e]}.bind(null,i));return n},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="/",c.oe=function(t){throw console.error(t),t};var l=this["webpackJsonp"]=this["webpackJsonp"]||[],u=l.push.bind(l);l.push=e,l=l.slice();for(var d=0;d<l.length;d++)e(l[d]);var f=u;o.push([10,"chunk-vendors","chunk-common"]),n()})({"07f3":function(t,e,n){t.exports=n.p+"img/icon-tw.72833e6f.svg"},"08ca":function(t,e,n){t.exports=n.p+"media/camera-shutter.d5fb3f65.mp3"},"09a0":function(t,e,n){t.exports=n.p+"img/GooglePlayWhite.7b7e1272.svg"},"0a5f":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("overlay",{attrs:{show:t.showOverlay,"prevent-scroll":t.isCheckinDetail},on:{click:t.close}}),e("b-dropdown",{ref:"checkin-menu",staticClass:"dropdown-custom",attrs:{dropleft:t.dropleft,right:t.right,variant:"link","menu-class":"context-menu dropdown-custom__menu "+t.extraMenuClass,"toggle-class":"btn-event-options ml-2 text-decoration-none","no-caret":""},on:{shown:t.onShow,hidden:t.onHide},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("Icon",{class:t.iconClass,attrs:{name:"dotsVertical",width:t.iconSize}})]},proxy:!0}])},[e("div",{directives:[{name:"touch",rawName:"v-touch:swipe.bottom",value:t.close,expression:"close",arg:"swipe",modifiers:{bottom:!0}}]},[t.isCheckinDetail?[e("b-dropdown-text",{staticClass:"d-md-none event"},[e("div",[e("a",{staticClass:"mobile-closer",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.close()}}},[e("div",{staticClass:"line"})]),e("div",{staticClass:"d-flex align-items-center event-header"},[t.eventCover?e("div",{staticClass:"event-logo"},[e("img",{attrs:{src:t.eventCover,alt:"Event logo"}})]):t._e(),e("div",[e("h1",{staticClass:"event-name"},[t._v(t._s(t.eventName))])])])])]),e("b-dropdown-divider",{staticClass:"d-md-none"})]:t._e(),e("b-dropdown-text",[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",{staticClass:"text-nowrap"},[t._v("\n "+t._s(t.$t("pages.checkins.pica_code"))+": "),e("span",{staticClass:"code"},[t._v(t._s(t.checkin.picacode))])]),e("div",[e("b-button",{staticClass:"btn-copy ml-2",attrs:{size:"sm"},on:{click:function(e){return e.preventDefault(),t.copy(t.checkin.picacode)}}},[e("div",{staticClass:"text-nowrap"},[e("Icon",{staticClass:"mr-1",attrs:{name:"copy",width:18,"vertical-align":"sub"}}),t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_copy"))+"\n ")],1)])],1)])]),t.checkin.show_qrcode?e("b-dropdown-item",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("show-qr-picacode")}}},[e("Icon",{staticClass:"mr-1",attrs:{name:"qrCode",width:18,"vertical-align":"sub"}}),t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_show_qr_picacode"))+"\n ")],1):t._e(),t.checkin.can_download_album?e("b-dropdown-item",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("download-album")}}},[e("Icon",{staticClass:"mr-1",attrs:{name:"download",width:18,"vertical-align":"sub"}}),t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_download_album"))+"\n ")],1):t._e(),t.checkinAnonymizeStatus!==t.ANONYMIZATION_STATUS.unavailable?[e("b-dropdown-item",{attrs:{href:"#",disabled:t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.pending},on:{click:function(e){return e.preventDefault(),t.onAnonymize.apply(null,arguments)}}},[e("div",{staticClass:"d-flex flex-column event-summary__anonymize"},[e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("div",{staticClass:"mr-2 pt-1"},[e("Icon",{staticClass:"mr-1",attrs:{name:"faceHappy",width:18,"vertical-align":"sub"}}),t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_anonymize"))+"\n ")],1),e("b-form-checkbox",{attrs:{disabled:t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.pending,size:"lg",checked:t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.completed,name:"check-button",switch:""}})],1)])]),e("b-dropdown-text",{staticClass:"hint"},[t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.available?[t._v("\n "+t._s(t.$t("pages.checkins_detail.anonymous_mode_off_hint",{eventName:t.eventName}))+"\n ")]:t._e(),t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.completed?[t._v("\n "+t._s(t.$t("pages.checkins_detail.anonymous_mode_on_hint"))+"\n ")]:t._e(),t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.pending?[t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_anonymize_pending"))+"\n ")]:t._e()],2)]:t._e(),e("b-dropdown-item",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("remove-album")}}},[e("Icon",{staticClass:"mr-1",attrs:{name:"trash",width:18,"vertical-align":"sub"}}),t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_remove_album"))+"\n ")],1),t.showDeleteHelpText?e("b-dropdown-text",{staticClass:"hint"},[t._v("\n "+t._s(t.$t("pages.checkins_detail.btn_remove_album_help"))+"\n ")]):t._e()],2)])],1)},r=[],a=n("c64b"),o=n("2121"),s=n("2f62");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 l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=h(t,"string");return"symbol"==c(e)?e:e+""}function h(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var p={name:"CheckinMenu",components:{Overlay:o["a"]},data:function(){return{showOverlay:!1}},props:{checkin:{type:Object,required:!0},iconSize:{type:Number,default:33},iconClass:{type:String,default:""},dropleft:{type:Boolean,default:!1},right:{type:Boolean,default:!1},isCheckinDetail:{type:Boolean,default:!1},showAnonymize:{type:Boolean,default:!0}},computed:u(u({},Object(s["c"])("checkinDetail",["picaCode"])),{},{showDeleteHelpText:function(){return this.checkin&&this.checkin.has_checkin_faces},ANONYMIZATION_STATUS:function(){return a["a"]},checkinAnonymizeStatus:function(){return this.checkin.anonymize_status},extraMenuClass:function(){return this.isCheckinDetail?"is-checkin":""},eventName:function(){return this.checkin.event_name||this.checkin.pica_service&&this.checkin.pica_service.event_name},eventCover:function(){return this.checkin.event_cover||this.checkin.pica_service&&this.checkin.pica_service.event_cover}}),methods:{onShow:function(){this.showOverlay=!0},onHide:function(){this.showOverlay=!1},close:function(){this.$refs["checkin-menu"].hide()},onAnonymize:function(){this.$emit("anonymize-album",{picacode:this.checkin.picacode})}
1,copy:function(t){navigator.clipboard.writeText(t),this.$bvToast.toast(this.$t("notifications.text_copied"))}}},m=p,v=n("2877"),b=Object(v["a"])(m,i,r,!1,null,null,null);e["a"]=b.exports},"0fbf":function(t,e,n){t.exports=n.p+"img/AppStoreWhite.942df322.svg"},10:function(t,e,n){n("56d7"),n("a1a3"),n("bfd7"),t.exports=n("aaab")},1446:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-center flex-wrap"},t._l(t.maxFacesCount,(function(n){return e("div",{key:n,staticClass:"face-circle rounded-circle m-1"},[n===t.checkinFaces.length+1?e("span",{staticClass:"btn-add-selfie",on:{click:function(e){return t.$emit("click",e)}}},[e("icon",{attrs:{name:"plus",width:"24"}})],1):t._e(),n<t.checkinFaces.length+1?e("span",[e("img",{staticClass:"face-img rounded-circle",class:{"no-flip":n>1},attrs:{src:t.checkinFaces[n-1].face_img,alt:""}})]):t._e()])})),0)},r=[],a={props:["checkinFaces","maxFacesCount"]},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null);e["a"]=c.exports},"1cfb":function(t,e,n){t.exports=n.p+"img/icon-yt.bd268165.svg"},"1e33":function(t,e,n){t.exports=n.p+"img/chevron-right.80644790.svg"},2121:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("b-overlay",{staticClass:"d-block d-md-none",attrs:{show:t.show,"no-wrap":"",fixed:"",opacity:"0.70"},on:{click:function(e){return t.$emit("click")}},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div")]},proxy:!0}])})},r=[],a={name:"Overlay",props:{show:{type:Boolean,default:!1},preventScroll:{type:Boolean,default:!1}},watch:{show:function(t){t&&this.preventScroll?document.body.style.overflow="hidden":document.body.style.overflow="auto"}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,"0cb4a764",null);e["a"]=c.exports},"240e":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("section",{staticClass:"checkin-maker"},[e("form",{staticClass:"checkin-form w-100"},[e("div",{staticClass:"checkin-form-in"},[t.hasPicaCodeNotValidError?e("div",{staticClass:"text-danger my-2 text-center small text-uppercase w-100"},[t._v("\n "+t._s(t.$t("pages.checkins_list.tips_form_invalid_code"))+"\n ")]):t._e(),e("b-input",{ref:"inputPicacode",staticClass:"checkin-form-picacode",attrs:{maxlength:"10",type:"text",placeholder:t.$t("pages.checkins_list.tips_form_placeholder")},on:{focus:function(e){t.hasPicaCodeNotValidError=!1}},model:{value:t.picacode,callback:function(e){t.picacode=e},expression:"picacode"}})],1),e("div",{staticClass:"row"},[e("div",{staticClass:"order-sm-1 mb-2 mb-sm-0",class:[t.dismissible?"col-sm-6":"col-12"]},[e("button-with-spinner",{staticClass:"btn btn-primary btn-block",attrs:{loading:t.loading},on:{click:t.doCheckin}},[t._v("\n "+t._s(t.$t("pages.checkins_list.tips_form_submit"))+"\n ")])],1),t.dismissible?e("div",{staticClass:"col-sm-6 order-sm-0"},[e("b-button",{attrs:{block:"",variant:"light"},on:{click:function(e){return t.$bvModal.hide("bv-modal-checkin-maker")}}},[t._v("\n "+t._s(t.$t("pages.checkins_list.tips_form_cancel"))+"\n ")])],1):t._e()]),t.hasPicaCodeNotValidError?e("a",{staticClass:"d-inline-block mt-3",attrs:{href:t.getContactUrl(),target:"_blank"}},[t._v(t._s(t.$t("pages.checkins.tips_help")))]):t._e()])])},r=[],a=n("98a8"),o=n("ed08"),s=n("2f62"),c=n("cbb4"),l=n("8c4f");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 d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return f(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");
1if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(f(e={},i,(function(){return this})),e),h=l.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,r,"GeneratorFunction")),t.prototype=Object.create(h),t}return c.prototype=l,f(h,"constructor",l),f(l,"constructor",c),c.displayName="GeneratorFunction",f(l,r,"GeneratorFunction"),f(h),f(h,r,"Generator"),f(h,i,(function(){return this})),f(h,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:a,m:p}})()}function f(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}f=function(t,e,n,i){function a(e,n){f(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},f(t,e,n,i)}function h(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){h(a,i,r,o,s,"next",t)}function s(t){h(a,i,r,o,s,"throw",t)}o(void 0)}))}}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=y(t,"string");return"symbol"==u(e)?e:e+""}function y(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var g=function(t){if(!Object(l["b"])(t))throw t},k={components:{ButtonWithSpinner:a["a"]},data:function(){return{picacode:"",hasPicaCodeNotValidError:!1,loading:!1}},props:{dismissible:{type:Boolean,default:!0}},computed:v({},Object(s["c"])("checkin",["stepData"])),methods:v(v(v({},Object(s["b"])("checkin",["createCheckin","openStepModal"])),Object(s["d"])("digitalItems",["CLEAR_CHECKINS"])),{},{getContactUrl:o["e"],doCheckin:function(){var t=p(d().m((function t(){var e,n;return d().w((function(t){while(1)switch(t.p=t.n){case 0:return this.hasPicaCodeNotValidError=!1,this.loading=!0,sessionStorage.setItem("recover_picacode",this.picacode),t.p=1,t.n=2,this.createCheckin({picacode:this.picacode});case 2:return t.n=3,this.$router.push({name:"checkins-detail",params:{picacode:this.picacode.toUpperCase()}}).catch(g);case 3:t.n=9;break;case 4:if(t.p=4,n=t.v,!(n instanceof c["b"])){t.n=5;break}this.openStepModal(),t.n=9;break;case 5:if(!(n instanceof c["a"])){t.n=8;break}if(e=this.$route,"checkins-detail"!==e.name||e.params.picacode!==n.getPicacode()){t.n=6;break}this.$router.go(),t.n=7;break;case 6:return t.n=7,this.$router.push({name:"checkins-detail",params:{picacode:n.getPicacode()}}).catch(g);case 7:this.$bvModal.hide("bv-modal-checkin-maker"),t.n=9;break;case 8:this.hasPicaCodeNotValidError=!0;case 9:this.loading=!1,this.picacode="";case 10:return t.a(2)}}),t,this,[[1,4]])})));function e(){return t.apply(this,arguments)}return e}()})},w=k,S=n("2877"),O=Object(S["a"])(w,i,r,!1,null,null,null);e["a"]=O.exports},"329a":function(t,e,n){t.exports=n.p+"img/calendar.6d5f9edd.svg"},3847:function(t,e,n){t.exports=n.p+"media/button-beep.d932c606.mp3"},"55e3":function(t,e,n){},"56d7":function(t,e,n){"use strict";n.r(e);n("db4d");var i=n("c1df"),r=n.n(i),a=n("caf9"),o=n("7707"),s=n.n(o),c=n("2b0e"),l=n("58ca"),u=n("afa7"),d=n("0086"),f=n.n(d),h=n("7bb1"),p=n("f8b5"),m=(n("ed56"),n("5f5b")),v=n("2b88"),b=n.n(v),_=n("73e4"),y=n.n(_),g=n("a584"),k=n("b92a"),w=function(){var t=this,e=t._self._c;return e("div",{class:t.routeClass,attrs:{id:"the-app"}},[e("UseGetPicaForYourEvent"),t.isAuthenticated?e("TheHeader"):t._e(),t.isAuthenticated?e("ModalCheckinMaker"):t._e(),t.isAuthenticated?e("ModalPreCheckinDataCollector"):t._e(),t.isAuthenticated?e("ModalPreCheckinFaceRecognition"):t._e(),t.isAuthenticated?e("ModalCheckinOptions"):t._e(),t.isAuthenticated?e("ModalMar
1ketingConsent"):t._e(),e("div",{staticClass:"noty-custom-container"}),e("div",{staticClass:"router-container"},[e("router-view",{key:t.$route.fullPath,ref:"refView"})],1),t.minRequiredAge?e("ModalMinimumAge"):t._e(),e("RealtimeNotificationManager"),e("RealtimeNotificationPopup"),e("TheFooter")],1)},S=[],O=n("9225"),C=n("2f62"),E=function(){var t=this,e=t._self._c;return e("b-navbar",{attrs:{id:"navbar",toggleable:"lg",type:"dark",sticky:""}},[e("transition",{attrs:{name:"fade-quick"}},[t.ready?e("div",{staticClass:"container"},[t.isGalleryTree?[e("b-navbar-brand",{attrs:{to:t.galleryTreeBackDestination}},[e("div",{staticClass:"d-flex align-items-center position-relative"},[e("transition",{attrs:{name:t.transitionBack}},[t.showBackButton?e("div",{staticClass:"align-items-center nav-back"},[e("Icon",{staticClass:"mr-2",attrs:{name:"chevronLeft",width:"34"}})],1):t._e()]),e("transition",{attrs:{name:t.transitionLogo}},[!t.appConfigReady||t.showBackButton&&!t.showAlwaysLogo?t._e():e("div",{staticClass:"logo",class:{"has-back":t.showBackButton}},[e("img",{attrs:{src:t.getAppLogo,alt:"Logo"}})])])],1)])]:[e("b-navbar-brand",{attrs:{to:{name:"checkins-list"}}},[e("div",{staticClass:"d-flex align-items-center position-relative"},[e("transition",{attrs:{name:t.transitionBack}},[t.showBackButton?e("div",{staticClass:"align-items-center nav-back"},[e("Icon",{staticClass:"mr-2",attrs:{name:"chevronLeft",width:"34"}})],1):t._e()]),e("transition",{attrs:{name:t.transitionLogo}},[!t.appConfigReady||t.showBackButton&&!t.showAlwaysLogo?t._e():e("div",{staticClass:"logo",class:{"has-back":t.showBackButton}},[e("img",{attrs:{src:t.getAppLogo,alt:"Logo"}})])])],1)])],e("b-navbar-nav",{staticClass:"ml-auto py-0 d-flex align-items-center"},[e("li",{staticClass:"nav-item"},[e("ImpersonateBadge")],1),e("li",{staticClass:"nav-item"},[e("FixedNotification")],1),t.showCheckinMenu?t._e():e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link nav-link--main d-flex align-items-center",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$bvModal.show("bv-modal-checkin-maker")}}},[e("Icon",{attrs:{name:"plusCircle",width:30}}),e("span",{staticClass:"d-none d-md-block ml-md-2 mr-md-1"},[t._v(t._s(t.$t("menu.do_checkin")))])],1)]),t.showNavbarCart?e("router-link",{attrs:{tag:"li",to:{name:"checkout"},custom:""},scopedSlots:t._u([{key:"default",fn:function(n){var i=n.href,r=n.navigate;return[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link nav__cart",attrs:{href:i},on:{click:r}},[e("Icon",{attrs:{name:"cart",height:18}}),t.cartDigitalItemsTotals?e("span",{staticClass:"ml-2"},[t.cartDigitalItemsTotal>0?[t._v("\n "+t._s(t._f("formatCurrency")(t.cartDigitalItemsTotal,t.cartDigitalItemsCurrency))+"\n ")]:[t._v("\n "+t._s(t.$t("pages.checkout.summary_action_get_for_free"))+"\n ")]],2):t._e()],1)])]}}],null,!1,3517654167)}):t._e(),e("li",{staticClass:"nav-item"},[t.showCheckinMenu&&t.checkin?e("checkin-menu",{attrs:{checkin:t.checkin,right:"","icon-size":30,"is-checkin-detail":""},on:{"remove-album":function(e){return t.$bvModal.show("bv-modal-remove-checkin")},"anonymize-album":function(e){return t.$bvModal.show("modal-anonymize-checkin")},"show-qr-picacode":function(e){return t.$bvModal.show("bv-modal-show-qr-picacode")},"download-album":function(e){return t.$bvModal.show("bv-modal-download-album-choice")}}}):e("main-menu")],1)],1)],2):t._e()])],1)},T=[],A=function(){var t=this,e=t._self._c;return t.isImpersonating?e("a",{attrs:{href:"#"},on:{click:t.onReturnYourself}},[e("b-badge",{staticClass:"badge-impersonate",attrs:{pill:""}},[t._v("\n Back to yourself\n ")])],1):t._e()},D=[];function j(t){return j="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},j(t)}function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?P(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t,e,n){return(e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t){var e=$(t,"string");return"symbol"==j(e)?e:e+""}function $(t,e){if("object"!=j(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=j(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var N={name:"ImpersonateBadge",computed:x(x({},Object(C["c"])("impersonate",["isImpersonating"])),Object(C["c"])("auth",["hasPerm"])),methods:x(x({},Object(C["b"])("impersonate",["returnYourself"])),{},{onReturnYourself:function(){this.returnYourself(),window.location.reload()}})},L=N,F=n("2877"),R=Object(F["a"])(L,A,D,!1,null,null,null),U=R.exports,V=function(){var t=this,e=t._self._c;return t.active?e("a",{staticClass:"mr-2",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.show()}}},[e("Icon",{attrs:{name:"notificationMessage",width:"24"}})],1):t._e()},G=[];function B(t){return B="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},B(t)}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Y(t,e,n){return(e=K(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t){var e=W(t,"string");return"symbol"==B(e)?e:e+""}function W(t,e){if("object"!=B(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=B(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var q={name:"FixedNotification",computed:H(H({},Object(C["c"])("checkinDetail",["eventPopup"])),{},{active:function(){return!0===this.eventPopup.fixed.active}}),methods:{show:function(){this.$bvModal.show("modal-fixed-popup")}}},Z=q,X=Object(F["a"])(Z,V,G,!1,null,"703e69d4",null),J=X.exports,Q=function(){var t=this,e=t._self._c;return e("b-dropdown",{staticClass:"dropdown-custom dropdown-custom--main",attrs:{right:"",variant:"link","menu-class":"dropdown-custom__menu fade","toggle-class":"","no-caret":""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("div",{staticClass:"fries"},[e("span"),e("span"),e("span")])]},proxy:!0}])},[t._l(t.menuItems,(function(n,i){return[n.route?e("b-dropdown-item",{key:i,attrs:{to:{name:n.route}}},[e("span",{staticClass:"d-flex justify-content-between"},[e("span",[t._v(t._s(t.$t(n.name)))]),n.extra?e("span",{staticClass:"extra"},[t._v(t._s(n.extra))]):t._e()])]):t._e(),n.divider?e("b-dropdown-divider",{key:i}):t._e(),n.action?e("b-dropdown-item",{key:i,attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),n.action.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t(n.name))+"\n ")]):t._e(),n.component?e(n.component,{key:i,tag:"component"}):t._e()]})),t.isPicaThirdLevelDomain?[e("a",{staticClass:"d-block item-business",attrs:{href:t.B2BUrl,target:"_blank"}},[e("div",{staticClass:"d-flex align-items-center justify-content-between mb-2",staticStyle:{gap:"8px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{gap:"10px"}},[e("img",{staticStyle:{width:"20px"},attrs:{src:t.picaIcon,alt:"GetPica Business"}}),e("span",{staticClass:"font-weight-medium"},[t._v(t._s(t.$t("menu.discover_pica")))])]),e("Icon",{staticClass:"ml-1",attrs:{name:"linkExternal",width:"16"}})],1),e("div",{staticClass:"small"},[t._v(t._s(t.$t("menu.discover_pica_text")))])])]:t._e()],2)},tt=[],et=n("ed08"),nt=function(){var t=this,e=t._self._c;return t.canImpersonate&&!t.isImpersonating?e("b-dropdown-item",{attrs:{to:{name:"impersonate"}}},[t._v("\n Impersonate\n")]):t._e()},it=[];function rt(t){return rt="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},rt(t)}function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
vendor: 4,135 bytes, line 1
1e%2?at(Object(n),!0).forEach((function(e){st(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function st(t,e,n){return(e=ct(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t){var e=lt(t,"string");return"symbol"==rt(e)?e:e+""}function lt(t,e){if("object"!=rt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=rt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ut={name:"ImpersonateLink",computed:ot(ot(ot({},Object(C["c"])("impersonate",["isImpersonating"])),Object(C["c"])("auth",["hasPerm"])),{},{canImpersonate:function(){return this.hasPerm("dashboard.impersonate")}}),methods:{}},dt=ut,ft=Object(F["a"])(dt,nt,it,!1,null,null,null),ht=ft.exports,pt=n("b48c"),mt=n.n(pt);function vt(t){return vt="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},vt(t)}function bt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return _t(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(_t(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,_t(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,_t(d,"constructor",l),_t(l,"constructor",c),c.displayName="GeneratorFunction",_t(l,r,"GeneratorFunction"),_t(d),_t(d,r,"Generator"),_t(d,i,(function(){return this})),_t(d,"toString",(function(){return"[object Generator]"})),(bt=function(){return{w:a,m:f}})()}function _t(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}_t=function(t,e,n,i){function a(e,n){_t(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},_t(t,e,n,i)}function yt(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function gt(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){yt(a,i,r,o,s,"next",t)}function s(t){yt(a,i,r,o,s,"throw",t)}o(void 0)}))}}function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?kt(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return(e=Ot(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ot(t){var e=Ct(t,"string");return"symbol"==vt(e)?e:e+""}function Ct(t,e){if("object"!=vt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=vt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Et={name:"MainMenu",components:{ImpersonateLink:ht},computed:wt(wt(wt({},Object(C["c"])(["isPicaThirdLevelDomain"])),Object(C["c"])("auth",["currentUser","isAnonymous","isSsoUser"])),{},{picaIcon:function(){return mt.a},B2BUrl:function(){return this.getB2BUrl(et["g"].MENU,"request-demo")},menuItems:function(){var t=this;return[{name:"menu.checkins_list",route:"checkins-list"},{name:"menu.do_checkin",action:function(){return t.$bvModal.show("bv-modal-checkin-maker")}},{divider:!0},{name:"menu.account",route:"profile-resume",extra:this.currentUser.email,visible:!this.isAnonymous},{name:"menu.privacy_settings",route:"profile-privacy",visible:!this.isAnonymous},{name:"menu.password_change",route:"profile-change-password",visible:!this.isAnonymous&&!this.isSsoUser},{name:"menu.impersonate",component:"ImpersonateLink"},{name:"menu.logout",action:function(){return t.onLogout()},visible:!this.isSsoUser}].filter((function(t){return!1!==t.visible}))}}),methods:wt(wt({getB2BUrl:et["d"]},Object(C["b"])("auth",["logout"])),{},{onLogout:function(){var t=gt(bt().m((function t(){return bt().w((function(t){while(1)switch(t.n){case 0:return t.n=1,this.logout();case 1:return t.n=2,this.$router.push("/");case 2:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()})},Tt=Et,At=Object(F["a"])(Tt,Q,tt,!1,null,null,null),Dt=At.exports,jt=n("0a5f");function Pt(t){return Pt="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},Pt(t)}function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function It(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mt(t,e,n){return(e=$t(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $t(t){var e=Nt(t,"string");return"symbol"==Pt(e)?e:e+""}function Nt(t,e){if("object"!=Pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Pt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Lt={components:{CheckinMenu:jt["a"],MainMenu:Dt,FixedNotification:J,ImpersonateBadge:U},data:function(){return{ready:!1}},computed:It(It(It(It(It({},Object(C["c"])("appConfig",["appConfigReady","getAppLogo","hideCart"])),Object(C["c"])("checkinDetail",["checkin"])),Object(C["c"])(["thirdLevelDomain"])),Object(C["c"])("cartDigitalItems",["cartDigitalItemsTotals","cartDigitalItemsTotal","cartDigitalItemsCount","cartDigitalItemsCurrency"])),{},{showNavbarCart:function(){return this.appConfigReady&&!this.hideCart&&!1!==this.$route.meta.showNavbarCart&&this.cartDigitalItemsTotals&&this.cartDigitalItemsCount>0},showBackButton:function(){return this.$route.meta.showBackButton},isGalleryTree:function(){return"gallery-tree"===this.$route.name},galleryTreeBackDestination:function(){var t=this.$route.params.gallery_id;return t&&"0"!==t?{name:"gallery-tree",params:{picacode:this.$route.params.picacode,gallery_id:"0"}}:{name:"checkins-list"}},showCheckinMenu:function(){return this.$route.meta.showCheckinMenu},showAlwaysLogo:function(){return"euroleague"===this.thirdLevelDomain||"rctid"===this.thirdLevelDomain},transitionBack:function(){return this.showAlwaysLogo?"fade":"slide-right"},transitionLogo:function(){return this.showAlwaysLogo?"":"slide-left"}}),mounted:function(){var t=this;setTimeout((function(){t.ready=!0}),1e3)}},Ft=Lt,Rt=Object(F["a"])(Ft,E,T,!1,null,null,null),Ut=Rt.exports,Vt=function(){var t=this,e=t._self._c;return e("footer",{staticClass:"the-footer"},[e("div",{staticClass:"container"},[t.appConfigReady?e("div",{staticClass:"the-footer__top"},[e("div",{staticClass:"row justify-content-md-between"},[e("div",{staticClass:"col-12 col-md-auto mb-4"},[e("ul",{staticClass:"footer-items"},[e("li",[e("div",{staticClass:"company-title"},[e("div",{staticClass:"logo-w"},[e("img",{staticClass:"logo",attrs:{src:t.getAppLogo,alt:"Logo"}})]),t.isPicaThirdLevelDomain?e("span",{staticClass:"align-self-center"},[t._v("getpica.com")]):e("span",[t._v("Â ")])])]),e("li",[e("div",{staticClass:"company-hq"},[t.isPicaThirdLevelDomain?[e("b",[t._v("Pica Group S.p.A.")]),e("br"),t._v("\n Via Dell'Aprica, 12,"),e("br"),t._v("\n 20158 Milano\n ")]:[e("div",{domProps:{innerHTML:t._s(t.getFooterCompanyInfo)}})]],2)])])]),t.getFooterCategories.length>0?t._l(t.getFooterCategories,(function(n,i){return e("div",{key:i,staticClass:"col-2 col-md-auto mb-4"},[e("ul",{staticClass:"footer-items"},[e("li",[e("span",[t._v(t._s(n.label))])]),t._l(n.items,(function(n,i){return e("li",{key:i},[e("a",{attrs:{href:n.link,target:n.link_target}},[t._v(t._s(n.label))])])}))],2)])})):[e("div",{staticClass:"col-12 col-md-auto mb-4"},[e("ul",{staticClass:"footer-items"},[e("li",[e("span",[t._v(t._s(t.$t("menu.company")))])]),t.isPicaThirdLevelDomain?e("li",[e("a",{attrs:{href:t.getAboutUsUrl(),target:"_blank"}},[t._v(t._s(t.$t("menu.about_pica")))])]):t._e(),t._l(t.policies,(function(n,i){return e("li",{key:i},[t.isSsoUser?e("a",{attrs:{href:"#",rel:"noindex"},on:{click:function(e){return e.preventDefault(),t.openPolicyModal(n)}}},[t._v(t._s(n.title))]):e("a",{attrs:{href:n.url,target:n.target,rel:"noindex"}},[t._v(t._s(n.title))])])}))],2)])],t.menuAccount.length?e("div",{staticClass:"col-12 col-md-auto mb-4"},[e("ul",{staticClass:"footer-items"},[e("li",[e("span",[t._v(t._s(t.$t("menu.account")))])]),t.isAuthenticated?[t._l(t.menuAccount,(function(n,i){return[void 0===n.visible||n.visible?e("li",{key:i},[n.to?e("router-link",{attrs:{to:n.to}},[t._v(t._s(n.label))]):n.action?e("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),n.action.apply(null,arguments)}}},[t._v(t._s(n.label))]):e("a",{attrs:{href:n.href,target:"_blank"}},[t._v(t._s(n.label))])],1):t._e()]}))]:[e("li",[e("router-link",{attrs:{to:{name:"signup"}}}
1,[t._v(t._s(t.$t("menu.create_account")))])],1),e("li",[e("router-link",{attrs:{to:{name:"reset-password"}}},[t._v(t._s(t.$t("menu.reset_password")))])],1)]],2)]):t._e(),e("div",{staticClass:"col-12 col-md-auto mb-4"},[e("ul",{staticClass:"footer-items"},[e("li",[e("span",[t._v(t._s(t.$t("menu.menu")))])]),t.isAuthenticated?e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$bvModal.show("bv-modal-checkin-maker")}}},[t._v("\n "+t._s(t.$t("menu.do_checkin_footer"))+"\n ")])]):t._e(),t.isAuthenticated?e("li",[e("router-link",{attrs:{to:{name:"checkins-list"}}},[t._v("\n "+t._s(t.$t("menu.checkins_list"))+"\n ")])],1):t._e(),e("li",[t.isPicaThirdLevelDomain?e("router-link",{attrs:{to:t.helpRoute}},[t._v("\n "+t._s(t.$t("menu.support"))+"\n ")]):e("a",{attrs:{href:t.contactUrl,target:"_blank"}},[t._v("\n "+t._s(t.$t("menu.support"))+"\n ")])],1)])]),t.appConfigReady&&!t.getHideAppStoreLinks?e("div",{staticClass:"col-12 col-md-auto mb-4"},[e("ul",{staticClass:"footer-items"},[t._m(0),e("li",[e("a",{attrs:{href:t.APP_STORES_URL.appStore,target:"_blank"}},[e("img",{attrs:{src:t.getUrlBadgeAppStore,alt:"App Store"}})])]),e("li",[e("a",{attrs:{href:t.APP_STORES_URL.playStore,target:"_blank"}},[e("img",{attrs:{src:t.getUrlBadgeGooglePlay,alt:"Google Play"}})])]),e("li",[e("a",{attrs:{href:t.APP_STORES_URL.huaweiStore,target:"_blank"}},[e("img",{attrs:{src:t.getUrlBadgeHuawei,width:"119px",alt:"Google Play"}})])])])]):t._e()],2)]):t._e()]),e("div",{staticClass:"container the-footer__bottom"},[e("div",{staticClass:"row justify-content-md-between"},[e("div",{staticClass:"col-xl-auto mb-3 order-xl-last"},[e("div",{staticClass:"row justify-content-center justify-content-xl-between align-items-center"},[e("div",{staticClass:"col-sm-6 col-md-auto mb-4"},[e("LocaleChanger")],1),t.appConfigReady&&!t.getHideAppStoreLinks?e("div",{staticClass:"col-sm-6 col-md-auto mb-4"},[t._m(1)]):t._e()])]),e("div",{staticClass:"col-xl-auto mb-3 order-xl-first"},[t.showPicaCompanyInfo?e("div",{staticClass:"the-footer__bottom__item"},[t._v("\n © "+t._s((new Date).getFullYear())+" "+t._s(t.$t("menu.footer_credits"))+" | "+t._s(t.$t("menu.footer_partita_iva"))+"\n 02529950392 | "+t._s(t.$t("menu.footer_capitale_sociale"))+" | "+t._s(t.$t("menu.footer_patented"))+"\n ")]):t._e()])])]),t.isSsoUser?e("ModalPolicyText",{ref:"policyModal"}):t._e()],1)},Gt=[function(){var t=this,e=t._self._c;return e("li",[e("span",[t._v("Get Pica")])])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"list-inline social-pica"},[e("li",{staticClass:"list-inline-item"},[e("a",{attrs:{href:"https://www.facebook.com/GetPica/",target:"_blank"}},[e("img",{attrs:{src:n("5b87")}})])]),e("li",{staticClass:"list-inline-item"},[e("a",{attrs:{href:"https://www.instagram.com/getpica/",target:"_blank"}},[e("img",{attrs:{src:n("ef84")}})])]),e("li",{staticClass:"list-inline-item"},[e("a",{attrs:{href:"https://twitter.com/getpica",target:"_blank"}},[e("img",{attrs:{src:n("07f3")}})])]),e("li",{staticClass:"list-inline-item"},[e("a",{attrs:{href:"http://linkedin.com/company/getpica/",target:"_blank"}},[e("img",{attrs:{src:n("c7f1")}})])]),e("li",{staticClass:"list-inline-item"},[e("a",{attrs:{href:"https://www.youtube.com/@getpica3170",target:"_blank"}},[e("img",{staticStyle:{width:"28px"},attrs:{src:n("1cfb")}})])])])}],Bt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"language-switcher d-flex align-items-center"},[e("Icon",{staticClass:"mr-1 text-primary",attrs:{name:"globe",width:"28"}}),e("select",{on:{change:function(e){return t.setLanguage(e)}}},t._l(t.locales,(function(n){return e("option",{key:n.code,domProps:{value:n.code,selected:t.browserLanguage===n.code}},[t._v(t._s(n.name)+" ("+t._s(n.code.toUpperCase())+")\n ")])})),0)],1)},zt=[],Ht={name:"locale-changer",data:function(){return{browserLanguage:Object(O["a"])(),locales:O["d"]}},methods:{setLanguage:function(t){var e=this,n=Object(O["e"])(t.target.value);localStorage.setItem("user_language",n),this.$root.$emit("language-changed",n),this.$store.commit("appConfig/SET_LANGUAGE",n),this.$store.getters["isPicaThirdLevelDomain"]?(this.$store.commit("appConfig/SET_APP_CONFIG_READY"),this.$emit("lang-changed")):this.$store.dispatch("appConfig/getConfig",{appName:this.$store.state.thirdLevelDomain}).then((function(t){e.$emit("lang-changed")})).catch((function(t){}))}}},Yt=Ht,Kt=Object(F["a"])(Yt,Bt,zt,!1,null,null,null),Wt=Kt.exports,qt=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:t.modalId,size:"xl",scrollable:"","hide-footer":"",title:t.title},on:{shown:t.fetchContent,hidden:t.reset}},[t.loading?e("div",{staticStyle:{"min-height":"80vh",display:"flex","align-items":"center","justify-content":"center"}},[e("b-spinner",{attrs:{variant:"primary",label:"Spinning"}})],1):e("div",{staticClass:"docs",domProps:{innerHTML:t._s(t.content)}})])},Zt=[],Xt={name:"ModalPolicyText",props:{modalId:{type:String,default:"bv-modal-policy"}},data:function(){return{title:"",url:"",content:"",loading:!1}},methods:{open:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.includes("?")?"&":"?";this.url="".concat(t).concat(n,"format=json"),this.title=e,this.$bvModal.show(this.modalId)},fetchContent:function(){var t=this;this.url&&(this.loading=!0,et["c"].get(this.url).then((function(e){var n=e.data;t.title=n.page_title||t.title,t.content=n.page_content})).finally((function(){t.loading=!1})))},reset:function(){this.content="",this.title="",this.url=""}}},Jt=Xt,Qt=Object(F["a"])(Jt,qt,Zt,!1,null,null,null),te=Qt.exports;function ee(t){return ee="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},ee(t)}function ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ne(Object(n),!0).forEach((function(e){re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function re(t,e,n){return(e=ae(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(t){var e=oe(t,"string");return"symbol"==ee(e)?e:e+""}function oe(t,e){if("object"!=ee(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=ee(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var se={name:"TheFooter",components:{ModalPolicyText:te,LocaleChanger:Wt},data:function(){return{}},computed:ie(ie(ie(ie(ie(ie({},Object(C["c"])(["thirdLevelDomain","isPicaThirdLevelDomain"])),Object(C["c"])("auth",["isAuthenticated","isAnonymous","isSsoUser"])),Object(C["c"])("checkinDetail",["picaCode","eventName"])),Object(C["c"])("digitalItems",["checkins"])),Object(C["c"])("appConfig",["getAppLogo","appConfigReady","getFooterCategories","getHideAppStoreLinks","getFooterCompanyInfo"])),{},{showPicaCompanyInfo:function(){return!["photos"].includes(this.thirdLevelDomain)},APP_STORES_URL:function(){return et["a"]},getUrlBadgeAppStore:function(){return n("0fbf")},getUrlBadgeGooglePlay:function(){return n("09a0")},getUrlBadgeHuawei:function(){return n("bd8a")},contactUrl:function(){return this.getContactUrl(this.currentEventName)},helpRoute:function(){var t={name:"help"};return this.currentEventName&&(t.params={eventName:this.currentEventName}),t},currentEventName:function(){return this.checkins&&1===this.checkins.length?this.checkins[0].pica_service.event_name+" | "+this.checkins[0].picacode:this.picaCode?this.eventName+" | "+this.picaCode:null},menuAccount:function(){return this.isAnonymous?[]:[{label:this.$t("menu.my_profile"),to:{name:"profile-resume"}},{label:this.$t("menu.privacy_settings"),to:{name:"profile-privacy"}},{label:"Euroleague ventures privacy policy",href:"/media/files/euroleague/EV_PRIVACY_POLICY.pdf",visible:"euroleague"===this.thirdLevelDomain},{label:this.$t("menu.password_change"),to:{name:"profile-change-password"},visible:!this.isSsoUser},{label:this.$t("menu.cookie_settings"),action:this.openCookieSettings,visible:!(window.__GETPICA__&&window.__GETPICA__.tracking.denied)}].filter((function(t){return!1!==t.visible}))},policies:function(){var t=this.$i18n.locale,e=["pl","pt"];return e.includes(t)&&(t="en"),[{url:"".concat("https://policy.getpica.com","/").concat(t,"/privacy-policy-pica/"),title:this.$t("menu.privacy_policy"),target:"_blank"},{url:"".concat("https://policy.getpica.com","/").concat(t,"/cookie-policy/"),title:this.$t("menu.cookie_policy"),target:"_blank"},{url:"".concat("https://policy.getpica.com","/").concat(t,"/termini-condizioni-vendita/"),title:this.$t("menu.terms_conditions"),target:"_blank"},{url:"".concat("https://policy.getpica.com","/").concat(t,"/info-legali/"),title:this.$t("menu.info_legali"),target:"_blank"}]}}),methods:{getContactUrl:et["e"],getB2BUrl:et["d"],openCookieSettings:function(){window.cookiehub.openSettings()},getAboutUsUrl:function(){return this.getB2BUrl("",this.isSsoUser?"?tracking=false":"")},openPolicyModal:function(t){this.$refs.policyModal.open(t.url,t.title)}}},ce=se,le=Object(F["a"])(ce,Vt,Gt,!1,null,null,null),ue=le.exports,de=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"bv-modal-checkin-maker",size:"sm","hide-header":"","hide-footer":"",centered:""},on:{shown:t.onShown}},[e("div",{staticClass:"d-block text-center"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",[e("Icon",{staticClass:"mb-3",attrs:{name:"grTextInput",width:"36"}}),e("h1",{staticClass:"modal-title mb-2"},[t._v(t._s(t.$t("pages.checkins.tips_modal_title")))]),e("h4",{staticClass:"modal-subtitle mb-3"},[t._v(t._s(t.$t("pages.checkins.tips_modal_subtitle")))])],1),e("CheckinMaker",{ref:"checkinMaker"})],1)])])])},fe=[],he=n("240e"),pe={components:{CheckinMaker:he["a"]},methods:{onShown:function(){this.$refs.checkinMaker.$refs.inputPicacode.focus()}}},me=pe,ve=Object(F["a"])(me,de,fe,!1,null,null,null),be=ve.exports,_e=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"modal-precheckindatacollector",centered:""},on:{shown:t.show,hidden:t.reset,ok:t.confirm},scopedSlots:t._u([{key:"modal-footer",fn:function(n){var i=n.ok,r=n.cancel;return[e("div",{staticClass:"w-100"},[e("div",{staticClass:"d-sm-flex justify-content-center"},[e("div",{staticClass:"flex-grow-1 order-sm-1 ml-sm-2 mb-2 mb-sm-0"},[e("b-button",{attrs:{variant:"primary",block:""},on:{click:function(t){return i()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_data_collector.btn_next"))+"\n ")])],1),e("div",{staticClass:"flex-grow-1 order-sm-0 mr-sm-2"},[e("b-button",{attrs:{variant:"light",block:""},on:{click:function(t){return r()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_data_collector.btn_back"))+"\n ")])],1)])])]}}])},[e("template",{slot:"modal-header"},[e("h1",{staticClass:"modal-title"},[t._v(" "+t._s(t.$t("modal_pre_checkin_data_collector.title")))]),e("div",{staticClass:"close",on:{click:function(e){return t.$bvMod
1al.hide("modal-precheckindatacollector")}}})]),e("div",{staticClass:"d-block text-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("p",[t._v(" "+t._s(t.$t("modal_pre_checkin_data_collector.info_txt"))+" ")])])])])],2)},ye=[];function ge(t){return ge="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},ge(t)}function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function we(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(n),!0).forEach((function(e){Se(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Se(t,e,n){return(e=Oe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oe(t){var e=Ce(t,"string");return"symbol"==ge(e)?e:e+""}function Ce(t,e){if("object"!=ge(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=ge(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ee={computed:we({},Object(C["c"])("checkin",["stepData"])),methods:we(we({},Object(C["b"])("checkin",["resetStepData"])),{},{show:function(){},reset:function(){},confirm:function(){window.location=this.stepData.form_url}})},Te=Ee,Ae=Object(F["a"])(Te,_e,ye,!1,null,null,null),De=Ae.exports,je=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"modal-precheckinfacerecognition","modal-class":"modal-mobile-fullscreen modal-face-checkin",centered:"",size:"md","no-close-on-backdrop":""},on:{shown:t.show,hidden:t.reset},scopedSlots:t._u([{key:"modal-header",fn:function(){return[!t.faceImgTaken&&t.viewState===t.modalStates.STATE_CAMERA||!t.faceImgLivenessTaken&&t.livenessDetectionEnabled&&t.takeLivenessSelfie?e("h1",{staticClass:"modal-title modal-title--small m-0"},[t.checkinFaces.length>=1?[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.title_multi"))+"\n ")]:[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.title"))+"\n ")]],2):t._e(),t._v("\n  \n "),t.faceImgTaken&&!t.livenessDetectionEnabled||t.faceImgTaken&&t.livenessDetectionEnabled&&!t.takeLivenessSelfie||t.faceImgTaken&&t.faceImgLivenessTaken?e("h1",{staticClass:"modal-title modal-title--small m-0"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.title2"))+" ")]):t._e(),t.showModalCloser?e("b-link",{staticClass:"close-label",on:{click:function(e){return t.$bvModal.hide("modal-precheckinfacerecognition")}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.btn_cancel"))+"\n ")]):t._e()]},proxy:!0},{key:"modal-footer",fn:function(){return[t.viewState===t.modalStates.STATE_CAMERA?[!t.takingSelfie||!t.faceImgTaken&&t.takingSelfie?[t.checkinFaces.length>=1?e("b-link",{staticClass:"switch-camera-btn rounded-circle mx-1",attrs:{disabled:t.photoHasError||t.detecting},on:{click:function(e){return t.onCameraSwitch()}}},[e("Icon",{attrs:{name:"reload",width:"30"}})],1):t._e(),t._v(" \n "),e("b-link",{staticClass:"bt-shoot",attrs:{disabled:t.photoHasError||t.detecting||!t.streaming},on:{click:function(e){return t.nextStep()}}},[e("Icon",{attrs:{name:"cameraShutter",width:"70"}})],1)]:t.faceImgTaken?[e("div",{staticClass:"row w-100 justify-content-center"},[e("div",{staticClass:"col-sm-6 order-sm-1 mb-2 mb-sm-0"},[e("button-with-spinner",{staticClass:"btn btn-primary btn-block",attrs:{disabled:t.confirmSelfieDisabled,loading:t.loading},on:{click:function(e){return t.beforeConfirm()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.btn_confirm"))+"\n ")])],1),e("div",{staticClass:"col-sm-6 order-sm-0"},[e("b-button",{staticClass:"text-nowrap",attrs:{variant:"light",block:""},on:{click:function(e){return t.onPhotoRetake()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.retake_photo"))+"\n ")])],1)])]:t._e()]:t.viewState===t.modalStates.STATE_ASK_LIVENESS_SELFIE?[t.takingSelfie?e("button-with-spinner",{staticClass:"btn btn-primary btn-block",attrs:{disabled:null===t.faceImgLivenessTaken,loading:t.loading},on:{click:function(e){return t.confirm()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.btn_next"))+"\n\n ")]):e("b-link",{staticClass:"bt-shoot",attrs:{disabled:t.takingSelfie},on:{click:function(e){return t.nextStep()}}},[e("Icon",{attrs:{name:"cameraShutter",width:"70"}})],1)]:t.viewState===t.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD?[e("b-button",{attrs:{variant:"primary",block:""},on:{click:function(e){return t.nextStep()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_additional_selfie.btn_next"))+"\n ")]),e("b-button",{attrs:{variant:"ghost",block:""},on:{click:function(e){return t.prevStep()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_additional_selfie.btn_back"))+"\n ")])]:t.viewState?[e("div",{staticClass:"row w-100 justify-content-center"},[e("div",{staticClass:"order-sm-1 mb-2 mb-sm-0",class:[t.viewState!==t.modalStates.STATE_ASK_VALIDITY_RANGE_DATE?"col-sm-6":"col-sm-12"]},[e("b-button",{attrs:{variant:"primary",block:"",disabled:t.isDisabledButtonDate||t.loading},on:{click:function(e){return t.nextStep()}}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.btn_next"))+"\n ")])],1),t.showPrevStepButton?e("div",{staticClass:"col-sm-6 order-sm-0"},[e("b-button",{attrs:{variant:"light",block:""},on:{click:function(e){return t.prevStep()}}},[t.viewState===t.modalStates.STATE_DATES_SUMMARY?[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.back_to_dates"))+"\n ")]:[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.btn_back"))+"\n ")]],2)],1):t._e()]),t.viewState===t.modalStates.STATE_INFO?e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("p",{staticClass:"modal-text text-center my-3"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.info_step.privacy_info"))+"\n ")])])]):t._e()]:[t._v(" ")]]},proxy:!0}])},[t.showRangeDateSelector?e("div",{staticClass:"d-block text-center dates-selector"},[e("h3",{staticClass:"modal-title mb-2"},[t._v("\n "+t._s(t.stepData.event_name)+"\n ")]),e("div",{staticClass:"mb-3"},[t.isSameDayStay?e("h5",{staticClass:"modal-subtitle"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.subtitle_same_day"))+"\n ")]):t.showRangeDateSelector?e("h5",{staticClass:"modal-subtitle"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.subtitle_start"))+"\n ")]):t._e()]),t.showEndDateOnlySelector?e("multiselect",{staticClass:"mb-3",attrs:{options:t.faceValidityEndDateOptions,placeholder:t.$t("modal_pre_checkin_face_recognition.ask_date_step.select_placeholder"),"allow-empty":!1,"close-on-select":!0,"clear-on-select":!1,"preserve-search":!0,label:"label","track-by":"value","show-labels":!1,"preselect-first":!0},model:{value:t.faceValidityEndDate,callback:function(e){t.faceValidityEndDate=e},expression:"faceValidityEndDate"}}):e("div",{staticClass:"d-flex flex-column mx-4"}
1,[t.isSameDayStay?t._e():e("div",{staticClass:"dates-selector__choice"},[e("span",[t._v(t._s(t._f("formatDate")(t.faceValidityStartDate))+" - "+t._s(t._f("formatDate")(t.faceValidityEndDate)))]),e("img",{attrs:{src:n("329a")}})]),t.showRangeDateSelector?e("div",{staticClass:"dates-selector__calendar"},[t.faceValidityStartDateError?e("span",{staticClass:"text-danger d-block mt-2"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.datepicker_error"))+"\n ")]):t._e(),e("input",{staticClass:"d-none",attrs:{type:"text",id:"datepicker-trigger-start",placeholder:"Select dates"}}),e("AirbnbStyleDatepicker",{staticClass:"align-self-center",attrs:{"trigger-element-id":"datepicker-trigger-start",mode:t.isSameDayStay?"single":"range","fullscreen-mobile":!1,inline:!0,"months-to-show":1,"min-date":t.minDate,"end-date":t.endDate,"show-action-buttons":!1,"show-shortcuts-menu-trigger":!1,"date-one":t.faceValidityStartDate,"date-two":t.faceValidityEndDate},on:{"date-one-selected":function(e){t.faceValidityStartDate=e},"date-two-selected":function(e){t.faceValidityEndDate=e}},scopedSlots:t._u([{key:"previous-month-icon",fn:function(){return[e("img",{attrs:{width:"20px",src:n("a7d5")}})]},proxy:!0},{key:"next-month-icon",fn:function(){return[e("img",{attrs:{width:"20px",src:n("1e33")}})]},proxy:!0}],null,!1,1070073444)})],1):t._e(),t.showRangeDateSelector?e("div",{staticClass:"dates-selector__info"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.dates_info"))+"\n ")]):t._e()])],1):t.viewState===t.modalStates.STATE_DATES_SUMMARY?e("div",{staticClass:"d-block text-center"},[e("div",{staticClass:"mx-4"},[e("h4",{staticClass:"modal-title mb-2"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.dates_confirm"))+"\n ")]),e("div",{staticClass:"mb-4"},[e("h6",{staticClass:"modal-subtitle"},[t._v(t._s(t.$t("modal_pre_checkin_face_recognition.ask_date_step.dates_summary_title")))]),e("span",[t._v(t._s(t._f("formatDate")(t.faceValidityStartDate))+" "),t.faceValidityEndDate?e("span",[t._v("-")]):t._e(),t._v(" "+t._s(t._f("formatDate")(t.faceValidityEndDate)))])])])]):t.viewState===t.modalStates.STATE_CAMERA||t.viewState===t.modalStates.STATE_ASK_LIVENESS_SELFIE?e("div",{staticClass:"d-block text-center"},[t.livenessDetectionEnabled?t.livenessDetectionEnabled?e("WebcamStreamFaceDetectorLiveness",{ref:"faceDetector",attrs:{"is-liveness":t.takeLivenessSelfie,"force-resume-video":t.forceResumeVideo,"default-camera":t.checkinFaces.length>=1?"environment":"user","is-countdown-enabled":t.takingSelfie},on:{photoTaken:function(e){return t.onPhotoTaken(e)},streamNotAllowed:t.onStreamNotAllowed,streamAllowed:t.onStreamAllowed}}):t._e():e("WebcamStreamFace",{ref:"faceDetector",attrs:{"default-camera":t.checkinFaces.length>=1?"environment":"user","taking-selfie":t.takingSelfie},on:{photoTaken:function(e){return t.onPhotoTaken(e)},photoRetake:t.onPhotoRetake,streamNotAllowed:t.onStreamNotAllowed,streamAllowed:t.onStreamAllowed}}),t.faceImgTaken&&!t.livenessDetectionEnabled||t.faceImgTaken&&t.faceImgLivenessTaken&&t.livenessDetectionEnabled?e("div",{staticClass:"text-left text-info-selfie position-relative",on:{click:t.onPrivacyLinkClick}},[t.checkin?[e("b-form-checkbox",{attrs:{name:"consent_privacy_and_terms",value:!0,"unchecked-value":!1},model:{value:t.acceptPrivacySelfie,callback:function(e){t.acceptPrivacySelfie=e},expression:"acceptPrivacySelfie"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacyMultiSelfie)}}),e("div",{staticClass:"privacy-blur"})])]:t.privacy&&t.privacy.enabled?[t.privacy.show_share_policy_checkbox||t.privacy.show_privacy_checkbox?[t.privacy.show_share_policy_checkbox?[e("b-form-checkbox",{attrs:{name:"consent_share_data_with_owner",value:!0,"unchecked-value":!1},model:{value:t.consentShareDataWithOwner,callback:function(e){t.consentShareDataWithOwner=e},expression:"consentShareDataWithOwner"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacy.share_policy_text)}})])]:t._e(),t.privacy.show_privacy_checkbox?[e("b-form-checkbox",{attrs:{name:"consent_privacy_and_terms",value:!0,"unchecked-value":!1},model:{value:t.acceptPrivacySelfie,callback:function(e){t.acceptPrivacySelfie=e},expression:"acceptPrivacySelfie"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacy.privacy_policy_text)}}),e("div",{staticClass:"privacy-blur"})])]:t._e(),t.privacy.share_policy2_type&&"none"!==t.privacy.share_policy2_type?[e("b-form-checkbox",{attrs:{name:"consent_share_policy2",value:!0,"unchecked-value":!1},model:{value:t.acceptSharePolicy2,callback:function(e){t.acceptSharePolicy2=e},expression:"acceptSharePolicy2"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacy.share_policy2_text)}}),e("div",{staticClass:"privacy-blur"})])]:t._e(),t.privacy.share_policy3_type&&"none"!==t.privacy.share_policy3_type?[e("b-form-checkbox",{attrs:{name:"consent_share_policy3",value:!0,"unchecked-value":!1},model:{value:t.acceptSharePolicy3,callback:function(e){t.acceptSharePolicy3=e},expression:"acceptSharePolicy3"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacy.share_policy3_text)}}),e("div",{staticClass:"privacy-blur"})])]:t._e()]:[t.privacy.share_policy2_type&&"none"!==t.privacy.share_policy2_type?[e("b-form-checkbox",{attrs:{name:"consent_share_policy2",value:!0,"unchecked-value":!1},model:{value:t.acceptSharePolicy2,callback:function(e){t.acceptSharePolicy2=e},expression:"acceptSharePolicy2"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacy.share_policy2_text)}}),e("div",{staticClass:"privacy-blur"})])]:t._e(),t.privacy.share_policy3_type&&"none"!==t.privacy.share_policy3_type?[e("b-form-checkbox",{attrs:{name:"consent_share_policy3",value:!0,"unchecked-value":!1},model:{value:t.acceptSharePolicy3,callback:function(e){t.acceptSharePolicy3=e},expression:"acceptSharePolicy3"}},[e("span",{staticClass:"face-privacy",domProps:{innerHTML:t._s(t.privacy.share_policy3_text)}}),e("div",{staticClass:"privacy-blur"})])]:t._e(),e("span",{domProps:{innerHTML:t._s(t.privacy.privacy_policy_text)}})]]:t._e()],2):t._e()],1):t.viewState===t.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD?e("div",{staticClass:"d-block text-center"},[e("h1",{staticClass:"modal-title pb-2 px-4"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_additional_selfie.title"))+"\n ")]),e("h4",{staticClass:"modal-subtitle pb-2 px-4"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.ask_additional_selfie.subtitle"))+" ")]),e("hr"),e("CheckinFaceList",{attrs:{"checkin-faces":t.checkinFaces,"max-faces-count":t.stepData.max_faces_count},on:{click:function(e){return t.nextStep()}}}),e("hr")],1):t.viewState===t.modalStates.STATE_INFO?e("div",{staticClass:"d-block text-center px-4 mb-4"},[e("Icon",{staticClass:"mb-2",attrs:{name:"grFileSearch",width:"26"}}),e("h1",{staticClass:"modal-title mb-2"},[t._v(" "+t._s(t.$t("modal_pre_checkin_face_recognition.info_step.title"))+" ")]),e("h4",{staticClass:"modal-subtitle"},[t._v(" "+t._s(t.$t("modal_pre_checkin_face_recognition.info_step.subtitle"))+" ")])],1):e("div",{staticClass:"d-block text-center px-4"},[e("ViewLoader",{attrs:{"padding-classes":"py-1"}})],1),t.isSsoUser?e("ModalPolicyText",{ref:"policyModal",attrs:{"modal
1-id":"bv-modal-policy-facerec"}}):t._e()],1)},Pe=[],xe=n("8e5f"),Ie=n.n(xe),Me=n("98a8"),$e=n("1446"),Ne=function(){var t=this,e=t._self._c;return e("div",{staticClass:"video"},[e("img",{ref:"outputImg",staticClass:"d-none"}),e("div",{staticClass:"video-container",staticStyle:{position:"relative",width:"100%"}},[e("video",{ref:"videoDOM",staticClass:"media-video",attrs:{playsinline:"",muted:"",autoplay:""},domProps:{muted:!0},on:{play:t.onPlay}}),t.countdownStarted&&!1===t.isFaceDetected?e("div",{staticClass:"video-info"},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.no_face"))+"\n ")]):t._e(),t.invalidFaceInfoText?e("div",{staticClass:"video-info video-info-centered"},[e("p",[t._v(" "+t._s(t.invalidFaceInfoText)+" ")]),e("button",{staticClass:"btn btn-primary btn-sm",on:{click:t.resumeVideo}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.retake_photo"))+"\n ")])]):t._e(),t.showLivenessHelp?e("div",{staticClass:"video-info video-info-centered"},[e("p",[t._v(" "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.liveness_help")))])]):t._e(),t.countdownStarted?e("div",{staticClass:"video-countdown"},[t._v("\n "+t._s(t.countdownValue)+"\n ")]):t._e(),e("canvas",{ref:"canvasDOM",staticClass:"media-canvas"}),e("canvas",{ref:"canvasDetectionDOM",staticClass:"media-canvas",staticStyle:{display:"none"}})])])},Le=[],Fe=n("3847"),Re=n.n(Fe),Ue=n("08ca"),Ve=n.n(Ue),Ge={name:"WebcamStreamFaceDetectorLiveness",props:{defaultCamera:{type:String,required:!1,default:"user"},isCountdownEnabled:{type:Boolean,required:!1,default:!1},isLiveness:{type:Boolean,required:!1,default:!1},forceResumeVideo:{type:Boolean,required:!1,default:!1}},watch:{isLiveness:function(t,e){var n=this;t&&(this.resumeVideo(),this.showLivenessHelp=!0,setTimeout((function(){return n.showLivenessHelp=!1}),3e3))},forceResumeVideo:function(t,e){t&&this.resumeVideo()},isCountdownEnabled:function(t,e){t&&this.startCountdown()}},data:function(){return{testMode:!1,videoEl:{},canvasEl:{},canvasCtx:{},userMediaConstraints:{audio:!1,video:{width:{min:320,ideal:screen.availHeight>screen.availWidth?580:1100,max:1920},height:{min:240,ideal:screen.availHeight>screen.availWidth?580:720,max:1080},frameRate:{min:15,ideal:30},facingMode:this.defaultCamera}},scoreThreshold:.6,detectionInterval:0,failCount:0,successCount:0,isFaceDetected:null,isPhotoTaken:!1,countdownStarted:null,countdownValue:0,beepAudio:null,maxFps:30,canvasForDetectionEl:null,stream:null,detection:null,invalidFaceInfoText:null,showLivenessHelp:!1}},created:function(){this.DETECT_W=380,this.DETECT_H=440},mounted:function(){this.init()},methods:{init:function(){this.videoEl=this.$refs.videoDOM,this.canvasEl=this.$refs.canvasDOM,this.canvasForDetectionEl=this.$refs.canvasDetectionDOM,this.beepAudio=new Audio(Re.a),this.beepAudio.volume=.1,this.cameraAudio=new Audio(Ve.a),this.cameraAudio.volume=.5,navigator.mediaDevices.getUserMedia(this.userMediaConstraints).then(this.handleMediaStreamSuccess).catch(this.handleMediaStreamError)},onPlay:function(){this.canvasEl.height=this.videoEl.videoHeight,this.canvasEl.width=this.videoEl.videoWidth,this.canvasForDetectionEl.height=this.videoEl.videoHeight,this.canvasForDetectionEl.width=this.videoEl.videoWidth,this.canvasCtx=this.canvasEl.getContext("2d"),this.canvasCtxForDetection=this.canvasForDetectionEl.getContext("2d"),this.drawDetection(this.canvasCtx,this.canvasEl.width/2-this.DETECT_W/2,this.canvasEl.height/2-this.DETECT_H/2,this.DETECT_W,this.DETECT_H,!0)},drawDetection:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.strokeStyle="#1d6fff",t.lineWidth=10,t.setLineDash([]),t.strokeRect(e,n,i,r),t.fillStyle="rgba(0,0,0,0.5)",t.fillRect(0,0,this.canvasEl.width/2-this.DETECT_W/2-5,this.canvasEl.height),t.fillRect(this.canvasEl.width/2-this.DETECT_W/2+this.DETECT_W+5,0,this.canvasEl.width/2-this.DETECT_W/2,this.canvasEl.height),t.fillRect(this.canvasEl.width/2-this.DETECT_W/2-5,0,this.DETECT_W+10,this.canvasEl.height/2-this.DETECT_H/2-5),t.fillRect(this.canvasEl.width/2-this.DETECT_W/2-5,this.canvasEl.height/2-this.DETECT_H/2+this.DETECT_H+5,this.DETECT_W+10,this.canvasEl.height/2-this.DETECT_H/2-4),a){var o=.2*i,s=e,c=n,l=e+i,u=n+r;t.beginPath(),t.lineCap="round",t.strokeStyle="#1d6fff",t.lineWidth=10,t.moveTo(s,c+o),t.lineTo(s,c),t.lineTo(s+o,c),t.stroke(),t.beginPath(),t.moveTo(l-o,c),t.lineTo(l,c),t.lineTo(l,c+o),t.stroke(),t.beginPath(),t.moveTo(s,u-o),t.lineTo(s,u),t.lineTo(s+o,u),t.stroke(),t.beginPath(),t.moveTo(l-o,u),t.lineTo(l,u),t.lineTo(l,u-o),t.stroke()}},clearDrawings:function(t){var e=t.getContext("2d");e.clearRect(0,0,t.width,t.height)},handleMediaStreamSuccess:function(t){var e=this;this.stream=t,this.videoEl.srcObject=t,setTimeout((function(){e.$emit("streamAllowed")}),500)},handleMediaStreamError:function(t){this.$emit("streamNotAllowed",{error:t.name});var e="";switch(t.name){case"NotAllowedError":e="It's not possible to access your camera at this time. Please make sure you have assigned permissions to the browser.";break;case"NotFoundError":e="Seems like your device doesn't a camera.";break;default:e="We are sorry, but it's not possible to access your camera at this time.";break}alert(e)},stopMediaStreamTrack:function(){this.videoEl.srcObject=null,this.stream&&this.stream.getTracks().forEac
1h((function(t){return t.stop()}))},pauseVideo:function(){this.videoEl.pause(),this.isPhotoTaken=!0,this.detectionInterval&&clearInterval(this.detectionInterval),this.isFaceDetected?(this.failCount=0,this.successCount+=1,this.successCount>10&&!this.countdownStarted&&this.startCountdown()):(this.failCount+=1,this.successCount=0)},resumeVideo:function(){this.videoEl.play(),this.isPhotoTaken=!1,this.countdownStarted=!1,this.invalidFaceInfoText=null},switchCamera:function(){this.userMediaConstraints.video.facingMode="user"===this.userMediaConstraints.video.facingMode?"environment":"user",this.resetCountdown(),this.stopMediaStreamTrack(),this.init()},startCountdown:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;this.countdownValue=e,this.countdownStarted=!0,this.pauseVideo(),this.resetCountdown(),this.cameraAudio.play();var n=document.createElement("CANVAS"),i=n.getContext("2d"),r=120,a=this.DETECT_W+r,o=this.DETECT_H+r;n.width=a,n.height=o,i.drawImage(this.videoEl,this.canvasEl.width/2-a/2,this.canvasEl.height/2-o/2,a,o,0,0,a,o),this.$refs.outputImg.src=n.toDataURL("image/jpeg"),n.toBlob((function(e){t.$emit("photoTaken",{faceImg:e,isLiveness:t.isLiveness,faceEncoding:[]})}),"image/jpeg")},resetCountdown:function(){this.countdownStarted=!1,this.countdownValue=0,this.invalidFaceInfoText=null,clearInterval(this.countdownInterval)},setInvalidState:function(t){this.invalidFaceInfoText=t,this.clearDrawings(this.canvasEl)}},beforeDestroy:function(){this.pauseVideo(),this.resetCountdown(),this.stopMediaStreamTrack()}},Be=Ge,ze=(n("7fe8"),Object(F["a"])(Be,Ne,Le,!1,null,"053d0f3c",null)),He=ze.exports,Ye=n("bcf7"),Ke=n("cbb4"),We=function(){var t=this,e=t._self._c;return e("div",{staticClass:"video"},[e("div",{staticClass:"video-container",staticStyle:{position:"relative",width:"100%"}},[e("video",{directives:[{name:"show",rawName:"v-show",value:!t.isFaceDetected,expression:"!isFaceDetected"}],ref:"video",staticClass:"media-video",class:{environment:t.facingModeEnvironment},attrs:{id:"webcam",autoplay:"",playsinline:"",muted:""},domProps:{muted:!0}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isFaceDetected,expression:"isFaceDetected"}],staticClass:"preview",class:{on:t.isFaceDetected}},[e("img",{ref:"outputImg",staticClass:"img-preview img-fluid",class:{"no-flip":t.facingModeEnvironment}})]),e("div",{staticClass:"image-to-upload d-none"},[e("img",{ref:"outputImgOriginal",attrs:{id:"outputImgOriginal"}})]),t.showInvalidPhotoMessage||t.invalidFaceInfoText?e("div",{staticClass:"overlay-alert"},[e("div",{staticClass:"video-info video-info-centered"},[e("div",[e("Icon",{staticClass:"mb-2",attrs:{name:"grFaceFrown",width:"36"}}),e("h3",{staticClass:"modal-title mb-2"},[t._v(t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.no_face")))]),e("h4",{staticClass:"modal-subtitle mb-4"}
1,[t.invalidFaceInfoText?[t._v(t._s(t.invalidFaceInfoText))]:[t._v(t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.no_face_text")))]],2),e("b-button",{attrs:{variant:"primary",block:""},on:{click:t.dismissError}},[t._v("\n "+t._s(t.$t("modal_pre_checkin_face_recognition.photo_step.retake_photo"))+"\n ")])],1)])]):t._e(),t.detecting&&!t.isFaceDetected||!t.stream?e("div",{staticClass:"overlay-alert"},[t._m(0)]):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showFlash,expression:"showFlash"}],staticClass:"flash"})]),e("ToastSelfie",{ref:"toastSelfie"})],1)},qe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex align-items-center justify-content-center h-100"},[e("div",[e("div",{staticClass:"loader"},[e("div",{staticClass:"loader__item"}),e("div",{staticClass:"loader__item"}),e("div",{staticClass:"loader__item"})])])])}],Ze=function(){var t=this,e=t._self._c;return e("b-toast",{attrs:{id:"toast-selfie","auto-hide-delay":7500,toaster:"b-toaster-top-center toast-selfie"}},[e("div",{staticClass:"d-flex"},[e("div",{staticClass:"mr-3"},[e("Icon",{staticClass:"icon-circle",attrs:{name:"infoCircle",width:"32"}})],1),e("div",{staticClass:"text-left",domProps:{innerHTML:t._s(t.message)}})])])},Xe=[];function Je(t){return Je="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},Je(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function en(t,e,n){return(e=nn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nn(t){var e=rn(t,"string");return"symbol"==Je(e)?e:e+""}function rn(t,e){if("object"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Je(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var an={name:"ToastSelfie",computed:tn(tn({},Object(C["c"])("checkin",["privacy"])),{},{message:function(){return this.privacy&&this.privacy.pre_selfie_text?this.privacy.pre_selfie_text:this.$t("notifications.info_selfie")}}),methods:{show:function(){this.$bvToast.show("toast-selfie")},hide:function(){this.$bvToast.hide("toast-selfie")}}},on=an,sn=Object(F["a"])(on,Ze,Xe,!1,null,null,null),cn=sn.exports;function ln(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return un(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(un(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,un(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,un(d,"constructor",l),un(l,"constructor",c),c.displayName="GeneratorFunction",un(l,r,"GeneratorFunction"),un(d),un(d,r,"Generator"),un(d,i,(function(){return this})),un(d,"toString",(function(){return"[object Generator]"})),(ln=function(){return{w:a,m:f}})()}function un(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}un=function(t,e,n,i){function a(e,n){un(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},un(t,e,n,i)}function dn(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function fn(t){return function(){var e=this,n=arguments;
1return new Promise((function(i,r){var a=t.apply(e,n);function o(t){dn(a,i,r,o,s,"next",t)}function s(t){dn(a,i,r,o,s,"throw",t)}o(void 0)}))}}var hn={name:"WebcamStreamFace",components:{ToastSelfie:cn},props:{defaultCamera:{type:String,required:!1,default:"user"},takingSelfie:{type:Boolean,required:!1,default:!1}},data:function(){return{debug:!1,constraints:{audio:!1,video:{width:{min:540,ideal:window.innerHeight>window.innerWidth?1920:1e3},height:{min:400,ideal:window.innerHeight>window.innerWidth?1500:740},frameRate:{min:15,ideal:30},facingMode:this.defaultCamera}},isFaceDetected:!1,invalidFaceInfoText:null,showInvalidPhotoMessage:!1,enableDrawDetection:!1,showFlash:!1,cameraAudio:null,detecting:!1,runningMode:"IMAGE",video:{},liveView:{},lastVideoTime:-1,children:[],detections:[],canvasDetection:null,enableCapture:!1,stream:null,shotTaken:null}},computed:{facingModeEnvironment:function(){return"environment"===this.constraints.video.facingMode},hasGetUserMedia:function(){return!!navigator.mediaDevices.getUserMedia}},watch:{takingSelfie:function(t,e){t&&this.run()}},mounted:function(){this.init()},methods:{init:function(){var t=fn(ln().m((function t(){return ln().w((function(t){while(1)switch(t.n){case 0:return this.video=this.$refs.video,this.liveView=this.$refs.liveView,this.canvasDetection=this.$refs.canvasDetection,this.shotTaken=this.$refs.outputImgOriginal,t.n=1,this.enableCam();case 1:this.hasGetUserMedia;case 2:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),enableCam:function(){var t=fn(ln().m((function t(){var e,n;return ln().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,navigator.mediaDevices.getUserMedia(this.constraints);case 1:return e=t.v,this.stream=e,this.video.srcObject=e,this.enableCapture=!0,t.n=2,this.wait(500);case 2:this.$emit("streamAllowed"),this.$refs.toastSelfie.show(),t.n=4;break;case 3:t.p=3,n=t.v,this.handleMediaStreamError(n);case 4:return t.a(2)}}),t,this,[[0,3]])})));function e(){return t.apply(this,arguments)}return e}(),run:function(){var t=fn(ln().m((function t(){return ln().w((function(t){while(1)switch(t.n){case 0:return this.$refs.toastSelfie.hide(),"user"===this.constraints.video.facingMode&&this.flash(1e3),this.detecting=!0,t.n=1,this.take();case 1:return t.n=2,this.createImageToSend();case 2:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),take:function(){var t=fn(ln().m((function t(){var e,n=this;return ln().w((function(t){while(1)switch(t.n){case 0:return e=document.createElement("CANVAS"),e.width=this.video.videoWidth,e.height=this.video.videoHeight,e.getContext("2d").drawImage(this.video,0,0,this.video.videoWidth,this.video.videoHeight),this.shotTaken.src=e.toDataURL("image/jpeg"),t.n=1,new Promise((function(t){return n.shotTaken.onload=t}));case 1:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),createImageToSend:function(){var t=this;this.detecting=!1,this.isFaceDetected=!0;var e,n,i=document.createElement("CANVAS"),r=this.shotTaken.width/this.shotTaken.height,a=.8,o=720,s=720;this.shotTaken.width>this.shotTaken.height?(e=o,n=o/r):(n=s,e=s*r),i.width=e,i.height=n,i.getContext("2d").drawImage(this.shotTaken,0,0,e,n),this.$refs.outputImg.src=i.toDataURL("image/jpeg"),i.toBlob((function(e){t.$emit("photoTaken",{faceImg:e,faceEncoding:[]})}),"image/jpeg",a)},stopMediaStreamTrack:function(){this.video.srcObject=null,this.stream&&this.stream.getTracks().forEach((function(t){return t.stop()}))},switchCamera:function(){this.constraints.video.facingMode="user"===this.constraints.video.facingMode?"environment":"user",this.stopMediaStreamTrack(),this.init()},flash:function(t){var e=this;this.showFlash=!0,setTimeout((function(){e.showFlash=!1}),t)},handleMediaStreamError:function(t){this.$emit("streamNotAllowed",{error:t.name})},pause:function(){this.video.pause()},dismissError:function(){this.showInvalidPhotoMessage=!1,this.retakePhoto()},retakePhoto:function(t){this.$emit("photoRetake",{error:t})},setInvalidState:function(t){this.invalidFaceInfoText=t},resumeVideo:function(){this.video.play(),this.isFaceDetected=!1,this.invalidFaceInfoText=null}},beforeDestroy:function(){this.pause(),this.stopMediaStreamTrack()}},pn=hn,mn=(n("c9fc"),Object(F["a"])(pn,We,qe,!1,null,null,null)),vn=mn.exports,bn=n("fbd9"),_n=n("8c4f");function yn(t){return yn="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},yn(t)}function gn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
vendor: 4,762 bytes, line 1
1if(!n){if(Array.isArray(t)||(n=kn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function kn(t,e){if(t){if("string"==typeof t)return wn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(t,e):void 0}}function wn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return On(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(On(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,On(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,On(d,"constructor",l),On(l,"constructor",c),c.displayName="GeneratorFunction",On(l,r,"GeneratorFunction"),On(d),On(d,r,"Generator"),On(d,i,(function(){return this})),On(d,"toString",(function(){return"[object Generator]"})),(Sn=function(){return{w:a,m:f}})()}function On(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}On=function(t,e,n,i){function a(e,n){On(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},On(t,e,n,i)}function Cn(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function En(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){Cn(a,i,r,o,s,"next",t)}function s(t){Cn(a,i,r,o,s,"throw",t)}o(void 0)}))}}function Tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function An(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tn(Object(n),!0).forEach((function(e){Dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dn(t,e,n){return(e=jn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jn(t){var e=Pn(t,"string");return"symbol"==yn(e)?e:e+""}function Pn(t,e){if("object"!=yn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=yn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var xn={NONE:"none",ONLY_END:"only-end",SAME_DAY:"same-day",START_END:"start-end"},In={components:{WebcamStreamFace:vn,ViewLoader:Ye["a"],WebcamStreamFaceDetectorLiveness:He,ButtonWithSpinner:Me["a"],CheckinFaceList:$e["a"],Multiselect:Ie.a,Mod
1alPolicyText:te},data:function(){return{modalStates:{STATE_ASK_EXTRA_SELFIE_UPLOAD:"ask_extra_selfie_upload",STATE_ASK_VALIDITY_RANGE_DATE:"ask_expiration_start_date",STATE_ASK_LIVENESS_SELFIE:"ask_liveness_selfie",STATE_DATES_SUMMARY:"dates_summary",STATE_INFO:"info",STATE_CAMERA:"camera",STATE_STAY_MODE:""},viewState:void 0,faceValidityStartDate:null,faceValidityEndDate:null,faceValidityEndDateOptions:[],faceValidityStartDateError:!1,takingSelfie:!1,detecting:!1,faceImgTaken:null,faceImgLivenessTaken:null,forceResumeVideo:!1,checkin:null,checkinFaces:[],faceCheckinComplete:!1,loading:!1,backBtnOnCameraViewDisabled:!1,wasCameraPermissionGrantedWhenOpened:!1,acceptPrivacySelfie:!1,acceptSharePolicy2:!1,acceptSharePolicy3:!1,photoHasError:!1,consentShareDataWithOwner:!1,streaming:!1}},computed:An(An(An(An({},Object(C["c"])("checkin",["stepData","privacy"])),Object(C["c"])("auth",["isSsoUser"])),Object(C["c"])(["thirdLevelDomain","startOfStay","endOfStay"])),{},{minDate:function(){var t=new Date;return new Date(t.setDate(t.getDate()-180))},endDate:function(){var t=new Date;return new Date(t.setDate(t.getDate()+30))},isDisabledButtonDate:function(){return this.viewState===this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE&&(this.isSameDayStay?!this.faceValidityStartDate:!(this.faceValidityStartDate&&this.faceValidityEndDate))},privacyMultiSelfie:function(){return this.$t("modal_pre_checkin_face_recognition.photo_step.info_multi_selfie",{privacy_url:this.policyUrl().privacy})},confirmSelfieDisabled:function(){return null===this.faceImgTaken||(!(!this.privacy||!this.privacy.show_privacy_checkbox||this.acceptPrivacySelfie)||(!(!this.privacy||"mandatory"!==this.privacy.share_policy2_type||this.acceptSharePolicy2)||(!(!this.privacy||"mandatory"!==this.privacy.share_policy3_type||this.acceptSharePolicy3)||!(!this.checkin||this.acceptPrivacySelfie))))},showPrevStepButton:function(){return this.viewState!==this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE&&this.viewState!==this.modalStates.STATE_INFO},showModalCloser:function(){return this.viewState!==this.modalStates.STATE_INFO&&(!this.$store.getters["appConfig/isRunningInWebview"]&&!this.$store.state.isPreviewCheckin)},firstEndDateAvailable:function(){if(this.faceValidityStartDate){var t=new Date(this.faceValidityStartDate);return new Date(t.setDate(t.getDate())).toISOString().substring(0,10)}return null},showRangeDateSelector:function(){return this.viewState===this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE},showEndDateOnlySelector:function(){return this.viewState===this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE&&this.stepData.stay_mode===this.stayMode.ONLY_END},isSameDayStay:function(){return this.stepData.stay_mode===this.stayMode.SAME_DAY},livenessDetectionEnabled:function(){return this.stepData.liveness_detection_enabled},takeLivenessSelfie:function(){return this.livenessDetectionEnabled&&this.viewState===this.modalStates.STATE_ASK_LIVENESS_SELFIE},postCheckinMode:function(){return"face-checkin"===this.stepData.user_cta}}),created:function(){this.$bvModal.show("modal-precheckinfacerecognition"),this.stayMode=xn},methods:An(An({},Object(C["b"])("checkin",["resetStepData","completeCheckin","uploadSelfie","validateStay","openStepModal"])),{},{policyUrl:et["h"],onPrivacyLinkClick:function(t){if(this.isSsoUser){var e=t.target.closest("a");e&&e.href&&(t.preventDefault(),this.$refs.policyModal.open(e.href,e.textContent.trim()))}},show:function(){var t=En(Sn().m((function t(){var e,n,i,r,a,o,s=this;return Sn().w((function(t){while(1)switch(t.n){case 0:return this.consentShareDataWithOwner=!1,this.acceptPrivacySelfie=!1,this.acceptSharePolicy2=!1,this.acceptSharePolicy3=!1,this.faceValidityStartDate=null,this.faceValidityEndDate=null,this.faceValidityStartDateError=!1,this.faceCheckinComplete=!1,this.detecting=!1,this.photoHasError=!1,this.isCameraPermissionGranted().then((function(t){return s.wasCameraPermissionGrantedWhenOpened=t})).catch((function(t){})),t.n=1,this.checkStayReuse();case 1:if(t.v){t.n=2;break}return t.a(2);case 2:for(this.stepData.checkin?(this.checkin=this.stepData.checkin,this.checkinFaces=this.stepData.checkin_faces,this.backBtnOnCameraViewDisabled=!0,this.viewState=this.modalStates.STATE_CAMERA):this.stepData.stay_mode&&this.stepData.stay_mode!==this.stayMode.NONE?this.startOfStay&&this.endOfStay?(this.faceValidityStartDate=this.startOfStay,this.faceValidityEndDate=this.endOfStay,this.viewState=this.wasCameraPermissionGrantedWhe
1nOpened?this.modalStates.STATE_CAMERA:this.modalStates.STATE_INFO):this.viewState=this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE:this.$store.getters["appConfig/isRunningInWebview"]?this.viewState=this.modalStates.STATE_CAMERA:this.isCameraPermissionGranted().then((function(t){s.viewState=t?s.modalStates.STATE_CAMERA:s.modalStates.STATE_INFO})).catch((function(t){})),e=Object(O["a"])(),n={weekday:"long",month:"long",day:"numeric"},i=[],r=-1;r<20;r++)a=new Date,a.setDate(a.getDate()+r),a.setHours(23,59,59,999),o=void 0,o=-1===r?this.$t("modal_pre_checkin_face_recognition.ask_date_step.opt_already_back"):0===r?this.$t("modal_pre_checkin_face_recognition.ask_date_step.opt_today"):a.toLocaleDateString(e,n),i.push({label:o,value:a});this.faceValidityEndDateOptions=i;case 3:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),reset:function(){"function"===typeof this.stepData.callback?this.stepData.callback(this.checkin.id,this.checkinFaces,this.faceCheckinComplete):this.checkinFaces.length>1&&this.$root.$children[0].$refs.refView.loadCheckinDetailData(),this.checkinFaces=[],this.faceImgTaken=null,this.faceImgLivenessTaken=null,this.checkin=null,this.takingSelfie=!1,this.detecting=!1,this.photoHasError=!1,this.backBtnOnCameraViewDisabled=!1,this.viewState=void 0,this.streaming=!1,this.$store.commit("RESET_IS_PREVIEW_CHECKIN")},beforeConfirm:function(){this.livenessDetectionEnabled&&this.faceImgTaken?(this.viewState=this.modalStates.STATE_ASK_LIVENESS_SELFIE,this.takingSelfie=!1,this.faceImgLivenessTaken&&this.confirm()):this.confirm()},confirm:function(){var t=En(Sn().m((function t(){var e,n,i,r,a,o;return Sn().w((function(t){while(1)switch(t.p=t.n){case 0:if(e=new FormData,e.append("face_img",new File([this.faceImgTaken],"filename.jpeg",{type:"image/jpeg"})),this.livenessDetectionEnabled&&e.append("face_img2",new File([this.faceImgLivenessTaken],"filename2.jpeg",{type:"image/jpeg"})),t.p=1,this.loading=!0,n=null,!(this.postCheckinMode||this.checkinFaces.length>0)){t.n=3;break}return t.n=2,this.uploadSelfie({id:this.checkin.id,payload:e});case 2:n=t.v,t.n=5;break;case 3:return i=this.getEffectiveStayDates(),i.start&&e.append("face_validity_start_at",i.start),i.end&&e.append("face_validity_end_at",i.end),e.append("consent_share_data_with_owner",this.consentShareDataWithOwner),e.append("consent_privacy",this.acceptPrivacySelfie),e.append("consent_share_policy2",this.acceptSharePolicy2),e.append("consent_share_policy3",this.acceptSharePolicy3),t.n=4,this.completeCheckin(e);case 4:n=t.v,sessionStorage.removeItem("dateOfStay");case 5:if(this.takingSelfie=!1,this.faceImgTaken=null,this.faceImgLivenessTaken=null,n){t.n=6;break}return t.a(2,this.handleApiError("try_confirm"));case 6:if(this.checkin||(this.checkin=n.data),this.checkinFaces=n.data.checkin_faces,this.stepData.max_faces_count>1&&this.checkinFaces.length<this.stepData.max_faces_count?this.viewState=this.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD:this.$bvModal.hide("modal-precheckinfacerecognition"),this.faceCheckinComplete=!0,r=this.checkin.picacode,"checkins-detail"===this.$route.name&&this.$route.params.picacode===r){t.n=7;break}return t.n=7,this.$router.push({name:"checkins-detail",params:{picacode:r,msDelay:2800}});case 7:t.n=17;break;case 8:if(t.p=8,o=t.v,!(o instanceof Ke["b"])){t.n=10;break}return t.n=9,this.openStepModal();case 9:t.n=17;break;case 10:if(o&&o.response){t.n=11;break}return this.captureUnhandledCompleteCheckinError(o),t.a(2,this.handleApiError("catch_confirm"));case 11:if(this.faceImgTaken=null,this.faceImgLivenessTaken=null,a=o.response.data||{},"invalid_user_photo"!==a.code){t.n=12;break}this.$refs.faceDetector.setInvalidState(a.detail||this.completeCheckinErrorMessage(a.code)),t.n=16;break;case 12:if("live_detection_failed"!==a.code){t.n=13;break}this.$bvToast.toast(this.completeCheckinErrorMessage(a.code),{variant:"warning"}),this.faceImgTaken=null,this.faceImgLivenessTaken=null,this.takingSelfie=!1,this.forceResumeVideo=!0,this.viewState=this.modalStates.STATE_CAMERA,this.forceResumeVideo=!1,t.n=16;break;case 13:if("checkin_exists_for_user"!==a.code){t.n=15;break}return t.n=14,this.openExistingCheckin(o);case 14:t.n=16;break;case 15:"precheckin_data_collector_token_expired"===a.code||"precheckin_data_collector_token_invalid"===a.code||"checkin_already_completed"===a.code?(this.$bvModal.hide("modal-precheckinfacerecognition"),this.$bvToast.toast(this.completeCheckinErrorMessage(
1a.code),{variant:"warning"})):(this.captureUnhandledCompleteCheckinError(o),this.$bvModal.hide("modal-precheckinfacerecognition"),this.$bvToast.toast(this.completeCheckinErrorMessage(a.code),{variant:"warning"}));case 16:this.photoHasError=!0;case 17:return t.p=17,this.loading=!1,t.f(17);case 18:return t.a(2)}}),t,this,[[1,8,17,18]])})));function e(){return t.apply(this,arguments)}return e}(),getEffectiveStayDates:function(){var t=function(t){return r.a.utc(t.value?t.value:new Date(t)).format("YYYY-MM-DD")},e=this.faceValidityStartDate||this.startOfStay,n=this.faceValidityEndDate||this.endOfStay,i=e?t(e):null,a=n?t(n):null;return!a&&i&&this.stepData.stay_mode===this.stayMode.SAME_DAY&&(a=i),{start:i,end:a}},checkStayReuse:function(){var t=En(Sn().m((function t(){var e,n,i,r;return Sn().w((function(t){while(1)switch(t.p=t.n){case 0:if(!this.stepData.checkin&&this.stepData.checkin_id){t.n=1;break}return t.a(2,!0);case 1:if(e=this.getEffectiveStayDates(),e.start||e.end){t.n=2;break}return t.a(2,!0);case 2:return n={},e.start&&(n.start_of_stay=e.start),e.end&&(n.end_of_stay=e.end),t.p=3,this.loading=!0,t.n=4,this.validateStay({id:this.stepData.checkin_id,payload:n});case 4:t.n=8;break;case 5:if(t.p=5,r=t.v,i=r&&r.response&&r.response.data||{},"checkin_exists_for_user"!==i.code){t.n=7;break}return t.n=6,this.openExistingCheckin(r);case 6:return t.a(2,!1);case 7:this.captureUnhandledCompleteCheckinError(r);case 8:return t.p=8,this.loading=!1,t.f(8);case 9:return t.a(2,!0)}}),t,this,[[3,5,8,9]])})));function e(){return t.apply(this,arguments)}return e}(),openExistingCheckin:function(){var t=En(Sn().m((function t(e){var n,i;return Sn().w((function(t){while(1)switch(t.n){case 0:if(this.$bvModal.hide("modal-precheckinfacerecognition"),n=e.response.data||{},i=n.error_data&&n.error_data.picacode,!i){t.n=2;break}return t.n=1,this.$router.push({name:"checkins-detail",params:{picacode:i}}).catch((function(t){if(!Object(_n["b"])(t))throw t}));case 1:t.n=3;break;case 2:this.captureUnhandledCompleteCheckinError(e),this.$bvToast.toast(this.completeCheckinErrorMessage(),{variant:"warning"});case 3:return t.a(2)}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),completeCheckinErrorMessage:function(t){var e={invalid_user_photo:"modal_pre_checkin_face_recognition.photo_step.no_face_text",live_detection_failed:"notifications.live_detection_failed",checkin_exists_for_user:"notifications.checkin_exists_for_user",precheckin_data_collector_token_expired:"notifications.checkin_token_expired",precheckin_data_collector_token_invalid:"notifications.checkin_token_invalid",checkin_already_completed:"notifications.checkin_already_completed"};return this.$t(e[t]||"notifications.checkin_invalid_code")},captureUnhandledCompleteCheckinError:function(t){var e=t&&t.response,n=e&&e.data,i=t instanceof Error?t:new Error("Unhandled complete-checkin error");this.$sentry.captureException(i,{tags:{errorType:n&&n.code?n.code:"unknown",location:"ModalPreCheckinFaceRecognition"},extra:{route:this.$route.name,picacode:sessionStorage.getItem("recover_picacode"),serverResponse:e?{status:e.status,statusText:e.statusText,data:n}:null}})},getPrevAndNextStates:function(){var t,e;switch(this.viewState){case this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE:t=null,this.stepData.stay_mode===this.stayMode.NONE||this.faceValidityStartDate||this.showEndDateOnlySelector?(this.faceValidityStartDateError=!1,e=this.showEndDateOnlySelector?this.wasCameraPermissionGrantedWhenOpened?this.modalStates.STATE_CAMERA:this.modalStates.STATE_INFO:this.modalStates.STATE_DATES_SUMMARY):(this.faceValidityStartDateError=!0,e=this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE);break;case this.modalStates.STATE_DATES_SUMMARY:t=this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE,e=this.wasCameraPermissionGrantedWhenOpened?this.modalStates.STATE_CAMERA:this.modalStates.STATE_INFO;break;case this.modalStates.STATE_INFO:t=this.stepData.stay_mode===this.stayMode.START_END||this.stepData.stay_mode===this.stayMode.SAME_DAY?this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE:null,e=this.modalStates.STATE_CAMERA;break;case this.modalStates.STATE_CAMERA:t=this.checkin?this.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD:this.wasCameraPermissionGrantedWhe
1nOpened?this.stepData.stay_mode===this.stayMode.START_END||this.stepData.stay_mode===this.stayMode.SAME_DAY?this.modalStates.STATE_ASK_VALIDITY_RANGE_DATE:null:this.modalStates.STATE_INFO,e=this.takingSelfie?this.livenessDetectionEnabled?this.modalStates.STATE_ASK_LIVENESS_SELFIE:this.stepData.max_faces_count>1?this.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD:null:this.modalStates.STATE_CAMERA;break;case this.modalStates.STATE_ASK_LIVENESS_SELFIE:t=this.modalStates.STATE_CAMERA,e=this.takingSelfie?this.stepData.max_faces_count>1?this.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD:null:this.modalStates.STATE_ASK_LIVENESS_SELFIE;break;case this.modalStates.STATE_ASK_EXTRA_SELFIE_UPLOAD:t=null,e=this.checkinFaces.length<this.stepData.max_faces_count?this.modalStates.STATE_CAMERA:null;break;default:t=null,e=null;break}return{prevState:t,nextState:e}},prevStep:function(){var t=this.getPrevAndNextStates().prevState;this.viewState===this.modalStates.STATE_CAMERA&&(this.faceImgTaken=null,this.faceImgLivenessTaken=null,this.takingSelfie=!1),null!==t?this.viewState=t:this.$bvModal.hide("modal-precheckinfacerecognition")},nextStep:function(){var t=En(Sn().m((function t(){var e,n,i,r,a,o,s,c,l;return Sn().w((function(t){while(1)switch(t.n){case 0:if(e=this.getPrevAndNextStates().nextState,n=this.modalStates,i=n.STATE_ASK_VALIDITY_RANGE_DATE,r=n.STATE_DATES_SUMMARY,a=n.STATE_INFO,o=n.STATE_CAMERA,s=[i,r].includes(this.viewState),c=[a,o].includes(e),l=s&&c,!l){t.n=2;break}return t.n=1,this.checkStayReuse();case 1:l=!t.v;case 2:if(!l){t.n=3;break}return t.a(2);case 3:e===this.modalStates.STATE_CAMERA||e===this.modalStates.STATE_ASK_LIVENESS_SELFIE?this.viewState===e?(this.takingSelfie=!0,this.detecting=!0):(this.faceImgTaken=null,this.faceImgLivenessTaken=null):this.backBtnOnCameraViewDisabled=!1,this.viewState=e;case 4:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onPhotoRetake:function(t){this.photoHasError=t&&t.error,this.takingSelfie=!1,this.detecting=!1,this.faceImgTaken=null,this.faceImgLivenessTaken=null,this.$refs.faceDetector.resumeVideo()},onPhotoTaken:function(t){var e=t.faceImg,n=t.isLiveness;this.livenessDetectionEnabled&&n?this.faceImgLivenessTaken=e:this.faceImgTaken=e,this.detecting=!1},isCameraPermissionGranted:function(){var t=En(Sn().m((function t(){var e,n,i,r,a;return Sn().w((function(t){while(1)switch(t.p=t.n){case 0:return t.n=1,navigator.mediaDevices.enumerateDevices();case 1:e=t.v,n=gn(e),t.p=2,n.s();case 3:if((i=n.n()).done){t.n=6;break}if(r=i.value,"videoinput"===r.kind){t.n=4;break}return t.a(3,5);case 4:if(!r.label){t.n=5;break}return t.a(2,!0);case 5:t.n=3;break;case 6:t.n=8;break;case 7:t.p=7,a=t.v,n.e(a);case 8:return t.p=8,n.f(),t.f(8);case 9:return t.a(2,!1)}}),t,null,[[2,7,8,9]])})));function e(){return t.apply(this,arguments)}return e}(),handleApiError:function(){var t=En(Sn().m((function t(e){return Sn().w((function(t){while(1)switch(t.n){case 0:return this.$bvModal.hide("modal-precheckinfacerecognition"),this.$bvToast.toast(this.$t("notifications.checkin_server_error"),{variant:"danger"}),this.loading=!1,t.n=1,this.$router.push({name:"checkin-error",query:{error:bn["j"].SERVER_ERROR,picacode:sessionStorage.getItem("recover_picacode"),data:e}}).catch((function(t){if(!Object(_n["b"])(t))throw t}));case 1:return t.a(2,!1)}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onStreamAllowed:function(){this.streaming=!0},onStreamNotAllowed:function(){var t=En(Sn().m((function t(){return Sn().w((function(t){while(1)switch(t.n){case 0:return this.$bvModal.hide("modal-precheckinfacerecognition"),this.$bvToast.toast(this.$t("notifications.camera_permission_denied"),{variant:"danger"}),t.n=1,this.$router.push({name:"checkin-error",query:{error:bn["j"].CAMERA_PERMISSION_DENIED,picacode:sessionStorage.getItem("recover_picacode")}}).catch((function(t){if(!Object(_n["b"])(t))throw t}));case 1:return t.a(2)}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onCameraSwitch:function(){this.streaming=!1,this.$refs.faceDetector.switchCamera()}})},Mn=In,$n=Object(F["a"])(Mn,je,Pe,!1,null,null,null),Nn=$n.exports,Ln=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:t.modalId,"modal-class":"modal-mobile-fullscreen",centered:"",size:"md"},on:{ok:function(e){return t.allowMarketingCommunications(!0)},close:function(e){return t.allowMarketingCommunications(!1)},cancel:function(e){return t.allowMarketingCommunications(!1)}},scopedSlots:t._u([{key:"modal-footer",fn:function(n){var i=n.ok,r=n.cancel;return[e("div",{staticClass:"w-100"},[e("div",{staticClass:"d-sm-flex justify-content-center"},[e("div",{staticClass:"flex-grow-1 order-sm-1 ml-sm-2 mb-2 mb-sm-0"},[e("button-with-spinner",{staticClass:"btn btn-primary btn-block",attrs:{loading:t.loading},on:{click:i}},[t._v("\n "+t._s(t.$t("modal_marketing_consent.btn_ok"))+"\n ")])],1),e("div",{staticClass:"flex-grow-1 order-sm-0 mr-sm-2"},[e("b-button",{attrs:{variant:"link",size:"sm",block:""},on:{click:r}},[t._v("\n "+t._s(t.$t("modal_marketing_consent.btn_cancel"))+"\n ")])],1)])])]}}])},[e("div",{staticClass:"d-block text-center"},[e("Icon",{staticClass:"mb-3",attrs:{name:"grBell",width:"36"}}),e("h1",{staticClass:"modal-title pb-2"},[t._v("\n "+t._s(t.$t("modal_marketing_consent.title_alaska"))+"\n ")]),e("p",{staticClass:"py-4 px-4"},[t._v("\n "+t._s(t.$t("modal_marketing_consent.txt_alaska"))+"\n\n ")])],1)])},Fn=[],Rn=n("413d"),Un={components:{ButtonWithSpinner:Me["a"]},props:{modalId:{type:String,required:!1,default:"modal-marketing-consent"}},data:function(){return{loading:!1}},methods:{allowMarketingCommunications:function(t){var e=this;this.loading=!0,Rn["a"].updateUser({consent_3rd_party_marketing:t}).then((function(){e.$bvModal.hide(e.modalId)})).finally((function(){return e.loading=!1}))}}},Vn=Un,Gn=Object(F["a"])(Vn,Ln,Fn,!1,null,null,null),Bn=Gn.exports,zn=function(){var t=this,e=t._self._c;return t.stepData?e("b-modal",{attrs:{id:"modal-checkin-options","modal-class":"modal-mobile-fullscreen modal-checkin-options",centered:"",size:"md","no-close-on-backdrop":""},on:{shown:t.show,hidden:t.reset},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("h5",{staticClass:"modal-title"},[t._v(t._s(t.stepData.question||""))])]},proxy:!0},{key:"modal-footer",fn:function(){return[e("b-button",{attrs:{variant:"primary",block:"",disabled:!t.selectedOptionId},on:{click:function(e){return t.save()}}},[t._v("\n "+t._s(t.$t("modal_checkin_options.action_confirm"))+"\n ")])]},proxy:!0}],null,!1,4131417001)},[t.stepData.options?e("div",{staticClass:"text-center d-flex align-items-center justify-content-center h-100"},[e("ul",{staticClass:"list-unstyled options w-100"}
1,t._l(t.stepData.options,(function(n){return e("li",{key:n.id,staticClass:"option"},[e("a",{class:["link-option",{on:n.id===t.selectedOptionId}],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.setOption(n)}}},[e("div",{staticClass:"content-option"},[n.image?e("div",{staticClass:"image-option"},[e("img",{attrs:{src:n.image,alt:n.name}})]):t._e(),n.name?e("div",{staticClass:"name-option"},[t._v(t._s(n.name))]):t._e(),n.description?e("div",{staticClass:"description-option"},[t._v(t._s(n.description))]):t._e()])])])})),0)]):t._e()]):t._e()},Hn=[];function Yn(t){return Yn="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},Yn(t)}function Kn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return Wn(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(Wn(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Wn(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,Wn(d,"constructor",l),Wn(l,"constructor",c),c.displayName="GeneratorFunction",Wn(l,r,"GeneratorFunction"),Wn(d),Wn(d,r,"Generator"),Wn(d,i,(function(){return this})),Wn(d,"toString",(function(){return"[object Generator]"})),(Kn=function(){return{w:a,m:f}})()}function Wn(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Wn=function(t,e,n,i){function a(e,n){Wn(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},Wn(t,e,n,i)}function qn(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function Zn(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){qn(a,i,r,o,s,"next",t)}function s(t){qn(a,i,r,o,s,"throw",t)}o(void 0)}))}}function Xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Jn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xn(Object(n),!0).forEach((function(e){Qn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qn(t,e,n){return(e=ti(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ti(t){var e=ei(t,"string");return"symbol"==Yn(e)?e:e+""}function ei(t,e){if("object"!=Yn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Yn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ni={data:function(){return{selectedOptionId:null}},computed:Jn({},Object(C["c"])("checkin",["stepData","picacode"])),methods:Jn(Jn({},Object(C["b"])("checkin",["completeCheckin","openStepModal"])),{},{show:function(){this.selectedOptionId=null},reset:function(){this.selectedOptionId=null},setOption:function(t){this.selectedOptionId=t.id===this.selectedOptionId?null:t.id},save:function(){var t=Zn(Kn().m((function t(){var e;return Kn().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,this.completeCheckin({option:this.selectedOptionId});case 1:return this.$bvModal.hide("modal-checkin-options"),t.n=2,this.$router.push({name:"checkins-detail",params:{picacode:this.picacode,msDelay:2800}}).catch((function(t){if(!Object(_n["b"])(t))throw t}));case 2:t.n=6;break;case 3:if(t.p=3,e=t.v,!(e instanceof Ke["b"])){t.n=5;break}return t.n=4,this.openStepModal();case 4:t.n=6;break;case 5:throw e;case 6:return t.a(2)}}),t,this,[[0,3]])}
1)));function e(){return t.apply(this,arguments)}return e}()})},ii=ni,ri=Object(F["a"])(ii,zn,Hn,!1,null,null,null),ai=ri.exports,oi=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"site-banner"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"site-banner__in"},[e("div",{staticClass:"site-banner__message"},[e("span",[t._v(t._s(t.$t("site_banner.message")))]),e("a",{staticClass:"site-banner__action",attrs:{href:t.url,target:"_blank"},on:{click:t.hideBanner}},[t._v(t._s(t.$t("site_banner.button")))])])])]),e("a",{staticClass:"site-banner__closer",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.hideBanner.apply(null,arguments)}}},[e("img",{attrs:{alt:"close",src:n("9e40")}})])])])},si=[];function ci(t){return ci="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},ci(t)}function li(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ui(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?li(Object(n),!0).forEach((function(e){di(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function di(t,e,n){return(e=fi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fi(t){var e=hi(t,"string");return"symbol"==ci(e)?e:e+""}function hi(t,e){if("object"!=ci(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=ci(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var pi={name:"UseGetPicaForYourEvent",data:function(){return{show:!1}},watch:{enabled:{handler:function(t){t?this.showBanner():this.hideBanner()},immediate:!0}},computed:ui(ui(ui(ui({},Object(C["c"])("bannerGetPica",["settings"])),Object(C["c"])("auth",["isAuthenticated"])),Object(C["c"])(["isPicaThirdLevelDomain"])),{},{enabled:function(){return this.settings&&this.settings.enabled},url:function(){if(!this.settings)return"";var t="it"===this.$i18n.locale?"it":"en";return this.settings.url[t]||this.settings.url}}),methods:{showBanner:function(){var t=this;setTimeout((function(){return t.show=!0}),2e3)},hideBanner:function(){this.show=!1}}},mi=pi,vi=Object(F["a"])(mi,oi,si,!1,null,null,null),bi=vi.exports,_i=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:t.modalId,"modal-class":"modal-min-age",centered:"",size:"sm","hide-header":"","no-close-on-backdrop":"","no-close-on-esc":""},on:{ok:t.acceptMinAgePrivacy},scopedSlots:t._u([{key:"modal-footer",fn:function(n){var i=n.ok;n.cancel;return[e("div",{staticClass:"w-100"},[e("div",{staticClass:"d-sm-flex justify-content-center"},[e("div",{staticClass:"flex-grow-1 px-4"},[e("b-button",{staticClass:"btn-ok",attrs:{block:"",disabled:t.isDisabled},on:{click:i}},[t._v("\n "+t._s(t.$t("modal_min_age.ok"))+"\n ")])],1)])])]}}])},[e("div",{staticClass:"d-block text-center"},[e("h1",{staticClass:"modal-title pb-2"},[t._v("\n "+t._s(t.$t("modal_min_age.title"))+"\n ")]),e("div",{staticClass:"px-4 pt-3 pb-3 d-flex"},[e("b-button",{staticClass:"flex-grow-1 mx-1 btn-selector",class:{on:void 0!==t.hasMinimumAge&&!t.hasMinimumAge},attrs:{variant:"primary"},on:{click:function(e){t.hasMinimumAge=!1}}},[t._v("\n "+t._s(t.$t("modal_min_age.not_accept"))+"\n ")]),e("b-button",{staticClass:"flex-grow-1 mx-1 btn-selector",class:{on:t.hasMinimumAge},attrs:{variant:"primary"},on:{click:function(e){t.hasMinimumAge=!0}}},[t._v("\n "+t._s(t.$t("modal_min_age.accept"))+"\n ")])],1),e("div",{staticClass:"px-4 pb-2 text-left"},[e("b-form-checkbox",{attrs:{required:!0,value:!0,"unchecked-value":!1}
1,model:{value:t.hasAccepted,callback:function(e){t.hasAccepted=e},expression:"hasAccepted"}},[e("span",{staticClass:"text",domProps:{innerHTML:t._s(t.privacyText)}})])],1)])])},yi=[];function gi(t){return gi="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},gi(t)}function ki(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(n),!0).forEach((function(e){Si(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Si(t,e,n){return(e=Oi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oi(t){var e=Ci(t,"string");return"symbol"==gi(e)?e:e+""}function Ci(t,e){if("object"!=gi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=gi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ei={props:{modalId:{type:String,default:"modal-minimum-age"}},data:function(){return{hasMinimumAge:void 0,hasAccepted:!1}},computed:wi(wi(wi({},Object(C["c"])(["thirdLevelDomain","minRequiredAgeAccepted"])),Object(C["c"])("appConfig",["minRequiredAgePolicyUrl"])),{},{isDisabled:function(){return void 0===this.hasMinimumAge||!this.hasMinimumAge||!this.hasAccepted},privacyText:function(){return this.$t("modal_min_age.privacy_text",{event_owner:this.thirdLevelDomain,policy_url:this.minRequiredAgePolicyUrl})}}
1),mounted:function(){this.minRequiredAgeAccepted||this.$bvModal.show(this.modalId)},methods:wi(wi({},Object(C["d"])(["SET_MIN_REQUIRED_AGE_ACCEPTED"])),{},{acceptMinAgePrivacy:function(){this.SET_MIN_REQUIRED_AGE_ACCEPTED(this.hasMinimumAge),this.$bvModal.hide(this.modalId)}})},Ti=Ei,Ai=Object(F["a"])(Ti,_i,yi,!1,null,null,null),Di=Ai.exports,ji=function(){var t=this,e=t._self._c;return e("b-toast",{attrs:{id:"toast-realtime",visible:t.hasNotifications,"no-auto-hide":"",toaster:"b-toaster-top-center toast-selfie"}},[e("div",{staticClass:"d-flex text-left mb-3"},[e("div",{staticClass:"mr-3"},[e("Icon",{staticClass:"icon-circle",attrs:{name:"imagePlus",width:"32"}})],1),e("div",[e("div",{staticClass:"font-weight-semi-bold"},[t._v(t._s(t.$t("realtime_notification.title")))]),e("div",{staticClass:"text-left"},[t._v(t._s(t.notificationMessage))])]),e("div",{staticClass:"ml-auto"},[e("b-link",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleClose.apply(null,arguments)}}},[e("Icon",{attrs:{name:"close",width:"20"}})],1)],1)]),e("div",{staticClass:"d-flex justify-content-end"},[e("b-link",{staticClass:"text-decoration-none font-weight-semi-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleReload.apply(null,arguments)}}},[t.isLoading?e("span",[t._v(t._s(t.$t("realtime_notification.loading")))]):e("span",[t._v(t._s(t.$t("realtime_notification.reload")))]),e("Icon",{staticClass:"ml-2",class:{spinning:t.isLoading},attrs:{name:"reloadCw",width:"18"}})],1)],1)])},Pi=[],xi=n("63b3");function Ii(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return Mi(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(Mi(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Mi(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,Mi(d,"constructor",l),Mi(l,"constructor",c),c.displayName="GeneratorFunction",Mi(l,r,"GeneratorFunction"),Mi(d),Mi(d,r,"Generator"),Mi(d,i,(function(){return this})),Mi(d,"toString",(function(){return"[object Generator]"})),(Ii=function(){return{w:a,m:f}})()}function Mi(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Mi=function(t,e,n,i){function a(e,n){Mi(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},Mi(t,e,n,i)}function $i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ni(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ni(t,e){if(t){if("string"==typeof t)return Li(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Li(t,e):void 0}}function Li(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Fi(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function Ri(t){return function(){var e=this,n=arguments;
1return new Promise((function(i,r){var a=t.apply(e,n);function o(t){Fi(a,i,r,o,s,"next",t)}function s(t){Fi(a,i,r,o,s,"throw",t)}o(void 0)}))}}var Ui={name:"RealtimeNotificationPopup",data:function(){return{pendingNotifications:[],isLoading:!1}},computed:{hasNotifications:function(){return this.pendingNotifications.length>0},notificationMessage:function(){return 0===this.pendingNotifications.length?"":this.$t("realtime_notification.message")}},methods:{handleReload:function(){var t=Ri(Ii().m((function t(){var e,n,i,r;return Ii().w((function(t){while(1)switch(t.p=t.n){case 0:if(!this.isLoading){t.n=1;break}return t.a(2);case 1:this.isLoading=!0,t.p=2,e=$i(this.pendingNotifications),t.p=3,e.s();case 4:if((n=e.n()).done){t.n=6;break}if(i=n.value,!i.onRefresh){t.n=5;break}return t.n=5,i.onRefresh();case 5:t.n=4;break;case 6:t.n=8;break;case 7:t.p=7,r=t.v,e.e(r);case 8:return t.p=8,e.f(),t.f(8);case 9:this.pendingNotifications.length>0&&!this.pendingNotifications.some((function(t){return t.onRefresh}))&&window.location.reload(),this.handleClose(),t.n=11;break;case 10:t.p=10,t.v,this.handleClose();case 11:return t.p=11,this.isLoading=!1,t.f(11);case 12:return t.a(2)}}),t,this,[[3,7,8,9],[2,10,11,12]])})));function e(){return t.apply(this,arguments)}return e}(),handleClose:function(){this.pendingNotifications=[]},handleShowPopup:function(t){var e=this.pendingNotifications.findIndex((function(e){return e.galleryId===t.galleryId}));-1!==e?this.pendingNotifications[e]=t:this.pendingNotifications.push(t)}},mounted:function(){this.registerEvent(xi["a"].realtimeNotifications.show_popup,this.handleShowPopup)},beforeDestroy:function(){this.unregisterEvent(xi["a"].realtimeNotifications.show_popup,this.handleShowPopup)}},Vi=Ui,Gi=(n("c822"),Object(F["a"])(Vi,ji,Pi,!1,null,"6119add8",null)),Bi=Gi.exports,zi=function(){var t=this,e=t._self._c;return e("div")},Hi=[];function Yi(t){return Yi="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},Yi(t)}function Ki(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return Wi(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(Wi(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Wi(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,Wi(d,"constructor",l),Wi(l,"constructor",c),c.displayName="GeneratorFunction",Wi(l,r,"GeneratorFunction"),Wi(d),Wi(d,r,"Generator"),Wi(d,i,(function(){return this})),Wi(d,"toString",(function(){return"[object Generator]"})),(Ki=function(){return{w:a,m:f}})()}function Wi(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Wi=function(t,e,n,i){function a(e,n){Wi(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},Wi(t,e,n,i)}function qi(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function Zi(t){return function(){var e=this,n=arguments;
1return new Promise((function(i,r){var a=t.apply(e,n);function o(t){qi(a,i,r,o,s,"next",t)}function s(t){qi(a,i,r,o,s,"throw",t)}o(void 0)}))}}function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ji(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xi(Object(n),!0).forEach((function(e){Qi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qi(t,e,n){return(e=tr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tr(t){var e=er(t,"string");return"symbol"==Yi(e)?e:e+""}function er(t,e){if("object"!=Yi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Yi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nr={name:"RealtimeNotificationManager",data:function(){return{timer:null,isProcessing:!1}},computed:Ji({},Object(C["c"])("realtimeNotifications",["hasScheduledNotifications","scheduledNotifications"])),methods:Ji(Ji({},Object(C["b"])("realtimeNotifications",["scheduleNotification","emitReadyNotifications"])),{},{startTimer:function(){var t=this;this.timer&&clearInterval(this.timer),this.timer=setInterval((function(){t.checkForReadyNotifications()}),1e3)},stopTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},checkForReadyNotifications:function(){var t=Zi(Ki().m((function t(){var e;return Ki().w((function(t){while(1)switch(t.p=t.n){case 0:if(!this.isProcessing){t.n=1;break}return t.a(2);case 1:if(e=Object.keys(this.scheduledNotifications).length,0!==e){t.n=2;break}return this.stopTimer(),t.a(2);case 2:return this.isProcessing=!0,t.p=3,t.n=4,this.emitReadyNotifications();case 4:return t.p=4,this.isProcessing=!1,t.f(4);case 5:return t.a(2)}}),t,this,[[3,,4,5]])})));function e(){return t.apply(this,arguments)}return e}(),handleMqttMessage:function(t){this.scheduleNotification(t),this.timer||this.startTimer()}}),mounted:function(){this.registerEvent(xi["a"].realtimeNotifications.mqtt_message_received,this.handleMqttMessage)},beforeDestroy:function(){this.stopTimer(),this.unregisterEvent(xi["a"].realtimeNotifications.mqtt_message_received,this.handleMqttMessage)}},ir=nr,rr=(n("ea55"),Object(F["a"])(ir,zi,Hi,!1,null,"258ff3d6",null)),ar=rr.exports;function or(t){return or="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},or(t)}function sr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(n),!0).forEach((function(e){lr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lr(t,e,n){return(e=ur(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ur(t){var e=dr(t,"string");return"symbol"==or(e)?e:e+""}function dr(t,e){if("object"!=or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=or(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fr={name:"App",metaInfo:{title:O["c"].t("seo.title"),titleTemplate:"%s",htmlAttrs:{lang:Object(O["a"])(),amp:!0},meta:[{vmid:"description",name:"description",content:O["c"].t("seo.meta_description")},{vmid:"og:title",property:"og:title",content:O["c"].t("seo.title")}]},components:{ModalMinimumAge:Di,UseGetPicaForYourEvent:bi,TheHeader:Ut,TheFooter:ue,ModalCheckinMaker:be,ModalPreCheckinDataCollector:De,ModalPreCheckinFaceRecognition:Nn,ModalMar
1ketingConsent:Bn,ModalCheckinOptions:ai,RealtimeNotificationPopup:Bi,RealtimeNotificationManager:ar},computed:cr(cr(cr({},Object(C["c"])("auth",["isAuthenticated"])),Object(C["c"])("appConfig",["hideCart","minRequiredAge","getAppConfigReady"])),{},{routeClass:function(){return this.$route?this.$route.name:""}}),watch:{isAuthenticated:function(){}},mounted:function(){this.registerEvent(xi["a"].realtimeNotifications.reload_requested,this.handleReloadEvent),document.body.addEventListener("contextmenu",(function(t){t.stopPropagation(),t.preventDefault()})),document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("blur",this.protectImages),window.addEventListener("focus",this.unprotectImages),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("click",this.handleModifierCheck)},beforeDestroy:function(){this.unregisterEvent(xi["a"].realtimeNotifications.reload_requested,this.handleReloadEvent),document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("blur",this.protectImages),window.removeEventListener("focus",this.unprotectImages),window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("click",this.handleModifierCheck)},methods:{handleVisibilityChange:function(){document.hidden?this.protectImages():this.unprotectImages()},handleKeyDown:function(t){(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&this.protectImages()},handleKeyUp:function(t){t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.unprotectImages()},handleModifierCheck:function(t){t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.unprotectImages()},protectImages:function(){document.body.classList.add("pica-protect-images")},unprotectImages:function(){document.body.classList.remove("pica-protect-images")},handleReload:function(){this.emitEvent(xi["a"].realtimeNotifications.reload_requested,{galleryId:null})},handleReloadEvent:function(t){this.$router.go(0)}}},hr=fr,pr=Object(F["a"])(hr,w,S,!1,null,null,null),mr=pr.exports,vr=n("41cb"),br=n("4360"),_r=(n("a1a3"),n("ddb8"),n("3ea5")),yr=n("5231"),gr=n("ab6b");function kr(t,e){return Or(t)||Sr(t,e)||Dr(t,e)||wr()}function wr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Sr(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}function Or(t){if(Array.isArray(t))return t}function Cr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof s?i:s,l=Object.create(c.prototype);return Er(l,"_invoke",function(n,i,r){var a,s,c,l=0,u=r||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,s=0,c=t,f.n=n,o}};function h(n,i){for(s=n,c=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,a=u[e],h=f.p,p=a[2];n>3?(r=p===i)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=h&&((r=n<2&&h<a[1])?(s=0,f.v=i,f.n=a[1]):h<p&&(r=n<3||a[0]>i||i>p)&&(a[4]=n,a[5]=i,f.n=p,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,c=p;(e=s<2?t:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(r="next"),e=a[r]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=t}else if((e=(d=f.n<0)?c:n.call(i,f))!==o)break}catch(e){a=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),l}var o={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(Er(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,Er(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,Er(d,"constructor",l),Er(l,"constructor",c),c.displayName="GeneratorFunction",Er(l,r,"GeneratorFunction"),Er(d),Er(d,r,"Generator"),Er(d,i,(function(){return this})),Er(d,"toString",(function(){return"[object Generator]"})),(Cr=function(){return{w:a,m:f}})()}function Er(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Er=function(t,e,n,i){function a(e,n){Er(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},Er(t,e,n,i)}function Tr(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function Ar(t){return function(){var e=this,n=arguments;
1return new Promise((function(i,r){var a=t.apply(e,n);function o(t){Tr(a,i,r,o,s,"next",t)}function s(t){Tr(a,i,r,o,s,"throw",t)}o(void 0)}))}}function Dr(t,e){if(t){if("string"==typeof t)return jr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(t,e):void 0}}function jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n("5abe"),c["default"].config.productionTip=!1;var Pr=Object(O["a"])(),xr=new gr["a"]("https://[email protected]/13");c["default"].prototype.$sentry=xr,c["default"].use(g["b"],{bootstrap:!1,config:{id:"UA-108557026-1"}},vr["default"]),window.addEventListener("onAllowAnalytics",(function(t){Object(g["a"])().then((function(t){}))}),!1),window.addEventListener("onRevokeAnalytics",(function(t){}),!1),c["default"].use(f.a,{disableClick:!1,touchClass:"",tapTolerance:10,touchHoldTolerance:400,swipeTolerance:30,longTapTimeInterval:400,namespace:"touch"}),c["default"].use(a["a"]),c["default"].use(p["default"]),c["default"].use(m["a"],{BToast:{headerClass:"d-none",toastClass:"custom-toast",variant:"primary",autoHideDelay:3e3,noCloseButton:!0,toaster:"b-toaster-top-center",appendToast:!0}}),c["default"].use(b.a),c["default"].use(l["a"]),c["default"].use(u["a"],{plyr:{fullscreen:{enabled:!0}},emit:["ended"]}),c["default"].use(h["b"],{events:"change",inject:!0,fieldsBagName:"veeFields"}),Object(O["e"])(Pr),c["default"].use(y.a,{theme:"bootstrap-v4",container:".noty-custom-container",timeout:2e3});var Ir={days:O["c"].t("datepicker.days"),daysShort:O["c"].t("datepicker.days_short"),monthNames:O["c"].t("datepicker.month_names"),sundayFirst:Object(O["b"])(Pr).sundayFirstDayWeek,width:500,colors:{selected:"#1867FF",inRange:"#3275f3",selectedText:"#fff",text:"#fff",inRangeBorder:"#3275f3",disabled:"transparent",hoveredInRange:"#3275f3"}};c["default"].use(k["a"],Ir);var Mr={computed:{},methods:{log:function(){},wait:function(t){return new Promise((function(e){return setTimeout(e,t)}))},emitPromised:function(){var t=Ar(Cr().m((function t(e){var n,i,r,a,o,s=arguments;return Cr().w((function(t){while(1)switch(t.n){case 0:if(n=this.$listeners[e]||this.$attrs[e]||this[e],!n){t.n=2;break}for(i=s.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=s[a];return t.n=1,n.apply(void 0,r);case 1:return o=t.v,t.a(2,void 0===o||o);case 2:return t.a(2,!1)}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getCurrencySymbol:function(t){return(0).toLocaleString(void 0,{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim()},emitEvent:function(){var t=Ar(Cr().m((function t(e,n){return Cr().w((function(t){while(1)switch(t.n){case 0:return t.n=1,this.$store.dispatch("eventBus/emitEvent",{event:e,payload:n});case 1:return t.a(2)}}),t,this)})));function e(e,n){return t.apply(this,arguments)}return e}(),registerEvent:function(t,e){this.$store.dispatch("eventBus/registerEvent",{event:t,callback:e})},unregisterEvent:function(t,e){this.$store.dispatch("eventBus/unregisterEvent",{event:t,callback:e})}}};c["default"].mixin(Mr);var $r=new Intl.NumberFormat(Pr,{style:"currency",currency:"EUR"});c["default"].filter("currency",(function(t){return $r.format(t)}));var Nr={$:["USD","CAD","AUD","NZD","SGD","HKD","MXN","XCD"],"Â¥":["JPY","CNY"],"£":["GBP","EGP","SYP","SDG"],Rs:["PKR","LKR","NPR"],"â£":["CHF","XOF","XAF"],"ï·¼":["IRR","OMR","QAR","YER"],kr:["SEK","NOK","DKK","ISK"],"â¡":["CRC","SVC"]},Lr=Object.entries(Nr).map((function(t){var e=kr(t,2),n=e[0],i=e[1];return{symbol:n,currencies:i}}));c["default"].filter("formatCurrency",(function(t,e){return new Intl.NumberFormat(Pr,{style:"currency",currency:e,currencyDisplay:Lr.find((function(t){return t.currencies.includes(e)}))?"code":"symbol",maximumFractionDigits:2}).format(t)})),c["default"].filter("formatDate",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"L";if(r.a.locale(O["c"].locale),t)return r()(String(t)).format(e)})),c["default"].filter("formatDateUTC",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"L";if(r.a.locale(O["c"].locale),t)return r.a.utc(String(t)).format(e)})),c["default"].filter("formatDateTime",(function(t){if(r.a.locale(O["c"].locale),t)return r()(String(t)).format("LLL")})),c["default"].filter("truncate",(function(t,e){return t?t.slice(0,e)+(e<t.length?"...":""):""})),c["default"].filter("capitalize",(function(t){return t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""})),c["default"].filter("formatSecondsToHHMMSS",(function(t){var e=Number.parseInt(t),n=Math.floor(e/3600),i=Math.floor((e-3600*n)/60),r=e-3600*n-60*i,a=function(t){return t<10?"0"+t:""+t};return(n>0?a(n)+":":"")+a(i)+":"+a(r)})),c["default"].component("Icon",yr["a"]);var Fr=new c["default"]({router:vr["default"],store:br["default"],i18n:O["c"],render:function(t){return t(mr)}}).$mount("#app");window.vueApp=Fr,s.a.polyfill(),_r["a"].init()},"5b87":function(t,e,n){t.exports=n.p+"img/icon-fb.73f5b75c.svg"},"6ef8":function(t,e,n){},"7fe8":function(t,e,n){"use strict";n("55e3")},"9e40":function(t,e,n){t.exports=n.p+"img/icon-close.878e12ad.svg"},a7d5:function(t,e,n){t.exports=n.p+"img/chevron-left.39568443.svg"},acd5:function(t,e,n){},bcf7:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("section",{class:["container d-flex align-items-center justify-content-center",t.paddingClasses]},[e("div",{class:["loader",t.paddingClasses]},[e("div",{staticClass:"loader__item"}),e("div",{staticClass:"loader__item"}),e("div",{staticClass:"loader__item"})])])},r=[],a={name:"ViewLoader",props:{paddingClasses:{type:String,required:!1,default:"py-5 py-lg-10"}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null);e["a"]=c.exports},bd8a:function(t,e,n){t.exports=n.p+"img/HuaweiWhite.437ebedb.png"},c64b:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:t.modalId,centered:"",size:"sm","hide-header":""},on:{ok:function(e){return t.takeAction()},hidden:function(e){return t.ko()},show:t.show},scopedSlots:t._u([{key:"modal-footer",fn:function(n){var i=n.ok,r=n.cancel;return[e("div",{staticClass:"w-100"},[e("div",{staticClass:"d-sm-flex justify-content-center"},[e("div",{staticClass:"flex-grow-1 order-sm-1 ml-sm-2 mb-2 mb-sm-0"},[e("button-with-spinner",{staticClass:"btn btn-primary btn-block",attrs:{loading:t.loading},on:{click:i}},[t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.available?[t._v("\n "+t._s(t.$t("modal_anonymize_checkin.btn_ok"))+"\n ")]:t._e(),t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.completed?[t._v("\n "+t._s(t.$t("modal_deanonymize_checkin.btn_ok"))+"\n ")]:t._e()],2)],1),e("div",{staticClass:"flex-grow-1 order-sm-0 mr-sm-2"},[e("b-button",{attrs:{variant:"light",block:""},on:{click:function(t){return r()}}},[t._v("\n "+t._s(t.$t("modal_anonymize_checkin.btn_cancel"))+"\n ")])],1)])])]}}])},[e("div",{staticClass:"d-block text-center"},[e("Icon",{staticClass:"mb-3",attrs:{name:"grAnonymize",width:"36"}}),e("h1",{staticClass:"modal-title"},[t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.available?[t._v("\n "+t._s(t.$t("modal_anonymize_checkin.title"))+"\n ")]:t._e(),t.checkinAnonymizeStatus===t.ANONYMIZATION_STATUS.completed?[t._v("\n "+t._s(t.$t("modal_deanonymize_checkin.title"))+"\n ")]:t._e()],2),e("p",{staticClass:"py-2 px-4 text-secondary m-0",domProps:{innerHTML:t._s(t.$t("modal_anonymize_checkin.txt",{eventName:t.checkinEventName}))}})],1)])},r=[],a=n("98a8"),o=n("a5c8"),s=n("e044"),c={unavailable:"unavailable",available:"available",completed:"completed",pending:"pending"},l={deep:"deep",blur:"blur"},u={components:{ButtonWithSpinner:a["a"]},props:{modalId:{type:String,required:!1,default:"modal-anonymize-checkin"},checkinId:{type:Number,required:!0},checkinEventName:{type:String,required:!0},checkinAnonymizeStatus:{type:String,required:!0},checkinAnonymizeMode:{type:String,required:!0}},computed:{anonymizeOnToastMessage:function(){return this.checkinAnonymizeMode===this.ANONYMIZATION_MODE.blur?"modal_anonymize_checkin.toast_anonymization_started_blur":"modal_anonymize_checkin.toast_anonymization_started_deep"}},created:function(){this.ANONYMIZATION_STATUS=c,this.ANONYMIZATION_MODE=l},data:function(){return{loading:!1}},methods:{show:function(){this.loading=!1},ko:function(){this.$emit("anonymize-closed")},takeAction:function(){this.checkinAnonymizeStatus===this.ANONYMIZATION_STATUS.completed?this.deAnonymizeAlbum():this.anonymizeAlbum()},anonymizeAlbum:function(){var t=this;this.loading=!0,o["a"].anonymizeAlbum(this.checkinId).then((function(e){t.$bvMod
1al.hide(t.modalId),t.$bvToast.toast(t.$t(t.anonymizeOnToastMessage),{variant:"success",autoHideDelay:8e3}),t.$emit("anonymize-call-back",{anonymizeStatus:e.data.anonymize_status,checkinFaceMissing:!1})})).catch((function(e){400===e.response.status&&"checkin_face_missing"===e.response.data.code&&t.$emit("anonymize-call-back",{anonymizeStatus:null,checkinFaceMissing:!0})})).finally((function(){s["a"].anonymizedInteraction(t.checkinId),t.loading=!1}))},deAnonymizeAlbum:function(){var t=this;this.loading=!0,o["a"].deAnonymizeAlbum(this.checkinId).then((function(e){t.$bvModal.hide(t.modalId),t.$bvToast.toast(t.$t("modal_deanonymize_checkin.toast_anonymization_started"),{variant:"success",autoHideDelay:8e3}),t.$emit("anonymize-call-back",{anonymizeStatus:e.data.anonymize_status,checkinFaceMissing:!1})})).finally((function(){s["a"].anonymizedInteraction(t.checkinId),t.loading=!1}))}}},d=u,f=n("2877"),h=Object(f["a"])(d,i,r,!1,null,null,null);e["b"]=h.exports},c7f1:function(t,e,n){t.exports=n.p+"img/icon-lk.46c63fb1.svg"},c822:function(t,e,n){"use strict";n("acd5")},c9fc:function(t,e,n){"use strict";n("6ef8")},d2a9:function(t,e,n){},ea55:function(t,e,n){"use strict";n("d2a9")},ef84:function(t,e,n){t.exports=n.p+"img/icon-ig.1ca86899.svg"}}); 2//# sourceMappingURL=index.6daa66f5.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.