1(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["preview"],{"1aa5":function(t,e,r){"use strict";var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"intro-section__form"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.signup.apply(null,arguments)}}},[e("div",{staticClass:"form-group",class:{"form-group--error":t.hasValidationError("email")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"input input-lg form-control",attrs:{type:"email",required:"",placeholder:t.$t("forms.signup_form.email")},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}}),t.hasValidationError("email")?e("span",{staticClass:"form-group--error__message"},[t._v("\n "+t._s(t.validationErrorsEmail)+"\n ")]):t._e()]),e("div",{staticClass:"form-group",class:{"form-group--error":t.hasValidationError("password")}},[e("input-password",{attrs:{required:!0,autocomplete:"new-password",placeholder:t.$t("forms.signup_form.password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t.hasValidationError("password")?e("span",{staticClass:"form-group--error__message"},[t._v("\n "+t._s(t.validationErrors.password)+"\n ")]):t._e()],1),e("transition",{attrs:{name:"slide"}},[t.password?e("div",{staticClass:"form-group"},[e("input-password",{attrs:{required:!0,autocomplete:"new-password","extra-classes":"input-confirm",placeholder:t.$t("forms.signup_form.password_confirm"),paste:function(){return!1}},model:{value:t.passwordConfirm,callback:function(e){t.passwordConfirm=e},expression:"passwordConfirm"}})],1):t._e()]),e("div",{staticClass:"form-check-container"},[t.getAppConfigReady?e("div",{staticClass:"form-check"},[t.$store.state.appConfig.privacyCheckboxes&&t.getPrivacyCheckboxes.length?e("div",[t._l(t.getPrivacyCheckboxes,(function(r){return[e("b-form-checkbox",{key:r.field_name,attrs:{required:r.is_required,name:r.field_name,value:!0,"unchecked-value":!1},model:{value:t.userCheckboxChoices[r.field_name],callback:function(e){t.$set(t.userCheckboxChoices,r.field_name,e)},expression:"userCheckboxChoices[checkbox.field_name]"}},[e("span",{domProps:{innerHTML:t._s(r.label)}})])]}))],2):e("div",[e("b-form-checkbox",{attrs:{required:"",name:"consent_privacy_and_terms",value:"true","unchecked-value":"false"},model:{value:t.consent_privacy_and_terms,callback:function(e){t.consent_privacy_and_terms=e},expression:"consent_privacy_and_terms"}},[[e("span",{domProps:{innerHTML:t._s(t.privacyStatement)}})]],2)],1),t.hasValidationError("consent_privacy_and_terms")?e("span",{staticClass:"form-group--error__message"},[t._v("\n "+t._s(t.validationErrors.consent_privacy_and_terms)+"\n ")]):t._e()]):t._e()]),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-primary m-0 w-100",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("b-spinner",{attrs:{small:"",label:"Loading..."}}):e("span",[t._v(t._s(t.$t("forms.signup_form.create_account_btn")))])],1)])],1)]),t.showSocialLogin?e("SocialLogin"):t._e(),t.showBottomPoweredBy?e("div",{staticClass:"row d-lg-flex align-items-center mt-4"},[e("div",{staticClass:"col-lg-12"},[e("PoweredBy",{attrs:{url:t.urlPoweredBy}})],1)]):t._e()],1)},i=[],n=r("413d"),s=r("2f62"),a=r("8c4f"),c=r("6f60"),l=r("a5f5"),u=r("fcf3"),p=r("ed08");function d(t){return d="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},d(t)}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=g(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){var e=v(t,"string");return"symbol"==d(e)?e:e+""}function v(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var b={components:{PoweredBy:u["a"],SocialLogin:l["a"],InputPassword:c["a"]},data:function(){return{email:"",password:"",passwordConfirm:"",consent_privacy_and_terms:!1,loading:!1,validationErrors:{},userCheckboxChoices:{}}},props:{backHomeBtnTxt:{type:String,required:!1}},watch:{getAppConfigReady:{handler:function(){this.setUserCheckboxChoices()},immediate:!0}},computed:f(f(f({},Object(s["c"])(["thirdLevelDomain"])),Object(s["c"])("appConfig",["getPrivacyCheckboxes","getAppConfigReady","getEventOwnerId","disableSocialLogin"])),{},{useStrongPassword:function(){return void 0!==this.thirdLevelDomain&&this.thirdLevelDomain.includes("watchesandwonders")},showSocialLogin:function(){return!!this.getAppConfigReady&&(!this.disableSocialLogin&&!["photos"].includes(this.thirdLevelDomain))},validationErrorsEmail:function(){return this.validationErrors.email[0]},privacyStatement:function(){return this.$t("forms.signup_form.privacy_statement",{terms_url:this.policyUrl().terms,privacy_url:this.policyUrl().privacy})},showBottomPoweredBy:function(){var t=["hublot"];return t.includes(this.thirdLevelDomain)},urlPoweredBy:function(){return"https://business.getpica.com/?utm_source=hublot.getpica.com&utm_medium=website&utm_campaign="+this.thirdLevelDomain}}),methods:{policyUrl:p["h"],setUserCheckboxChoices:function(){var t={},e=this.getPrivacyCheckboxes;e.forEach((function(e){t[e.field_name]=!1})),this.$set(this,"userCheckboxChoices",t)},validateFormData:function(){if(this.validationErrors={},this.password!==this.passwordConfirm)return this.$set(this.validationErrors,"password",this.$t("forms.signup_form.password_error_match")),!1;if(this.useStrongPassword){var t=/^(?=.*\d)(?=.*[A-Z])(?=.*\W).{8,}$/;if(!t.test(this.password))return this.$set(this.validationErrors,"password",this.$t("forms.signup_form.password_error_invalid")),!1}return!0},signup:function(){var t=this;if(this.loading)return!1;if(!this.validateFormData())return!1;this.validationErrors=f({},this.validationErrors),this.loading=!0;var e={email:this.email,password:this.password,language:this.$i18n.locale};e.event_owner_id=this.getEventOwnerId,this.getEventOwnerId&&this.getPrivacyCheckboxes.length?e.consent_third_party_fields=this.userCheckboxChoices:e.consent_privacy_and_terms=this.consent_privacy_and_terms,n["a"].createAccount(e).then((function(){var e={email:t.email,password:t.password};t.$store.dispatch("auth/login",e).then((function(){t.loading=!1,t.$router.push({name:"checkins-list"}).catch((function(t){if(!Object(a["b"])(t))throw t})),t.$store.getters["showMarketingCheck"]&&t.$bvModal.show("modal-marketing-consent")})).catch((function(e){t.loading=!1}))})).catch((function(e){t.loading=!1,t.validationErrors=Object.assign({},t.validationErrors,e.response.data)}))},hasValidationError:function(t){return this.validationErrors.hasOwnProperty(t)}}},y=b,_=r("2877"),w=Object(_["a"])(y,o,i,!1,null,null,null);e["a"]=w.exports},"2d72":function(t,e,r){"use strict";r("3e7c")},"3e7c":function(t,e,r){},"4a58":function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container-xl masonry-container d-none d-sm-block"},[t.experience_type===t.experienceTypes.PICA_STANDARD?e("div",{staticClass:"preview-grid"},t._l(t.slideshowPhotos,(function(t,r){return e("div",{key:r,staticClass:"card"},[e("img",{staticClass:"card-img img-fluid",attrs:{src:t,alt:"Card image"}})])})),0):t._e(),e("ModalSignup",{attrs:{"event-name":t.event_name}})],1)},i=[],n=function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"modal-signup",size:"size-signup","hide-footer":"","hide-header":"","no-close-on-backdrop":"","no-close-on-esc":"",centered:"","modal
1-class":"modal-mobile-fullscreen modal-sign-up"}},[t.showPoweredBy?e("PoweredBy",{staticClass:"mb-4"}):t._e(),e("div",{staticClass:"d-block text-center mt-1 mt-lg-3 mb-3 logo"},[e("img",{staticClass:"img-fluid",attrs:{src:t.getAppLogo,alt:"Logo"}})]),e("div",{staticClass:"d-block text-center"},[t.getAppConfigReady&&t.loginSubtitle?e("h5",{staticClass:"mb-3 intro-pre-title",domProps:{innerHTML:t._s(t.loginSubtitle)}}):t._e(),e("h1",{staticClass:"modal-title pb-2"},[t._v("\n "+t._s(t.eventName?t.eventName:t.$t("pages.preview.signup_modal_title"))+"\n ")]),t.socialLoginOnTop?[e("SocialLogin",{attrs:{title:t.$t("forms.login_form.social_login_title_top")}}),e("h4",{staticClass:"modal-subtitle-sign pb-4"},[t._v(" "+t._s(t.$t("forms.login_form.social_login_title_or"))+" "),e("span",{staticClass:"text-lowercase"},[t._v(t._s(t.$t("pages.signup.headline_txt"))+" "),e("router-link",{staticClass:"text-primary text-capitalize",attrs:{to:{name:"login"},exact:""}},[t._v(t._s(t.$t("forms.signup_form.btn_login")))])],1)])]:[e("h4",{staticClass:"modal-subtitle-sign pb-4"},[e("span",[t._v(t._s(t.$t("pages.signup.headline_txt")))]),e("span",[e("router-link",{staticClass:"p-2 text-primary link-login",attrs:{to:{name:"login"},exact:""}},[t._v(t._s(t.$t("forms.signup_form.btn_login")))])],1)])]],2),e("div",{staticClass:"d-block"},[e("SignupForm")],1)],1)},s=[],a=r("1aa5"),c=r("2f62"),l=r("a5f5"),u=r("fcf3");function p(t){return p="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},p(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=g(t,"string");return"symbol"==p(e)?e:e+""}function g(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var v={props:["eventName"],components:{PoweredBy:u["a"],SocialLogin:l["a"],SignupForm:a["a"]},computed:m(m(m({},Object(c["c"])(["thirdLevelDomain","isPicaThirdLevelDomain"])),Object(c["c"])("appConfig",["getAppConfigReady","loginSubtitle","getAppLogo","getHidePoweredByLogo"])),{},{socialLoginOnTop:function(){return["photos"].includes(this.thirdLevelDomain)},showPoweredBy:function(){return this.getAppConfigReady&&!this.getHidePoweredByLogo&&!this.isPicaThirdLevelDomain}})},b=v,y=r("2877"),_=Object(y["a"])(b,n,s,!1,null,null,null),w=_.exports,C=r("fbd9");function P(t){return x(t)||k(t)||S(t)||O()}function O(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}function k(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function x(t){if(Array.isArray(t))return j(t)}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}var E={components:{ModalSignup:w},props:{photos:{type:Array,required:!1},event_name:{type:String,required:!1},experience_type:{type:String,required:!1}},computed:{experienceTypes:function(){return C["k"]},slideshowPhotos:function(){if(this.experience_type!==C["k"].PICA_STANDARD)return[];var t=this.photos,e=45,r=72;if(t){while(0!==t.length&&t.length<e)t.push.apply(t,P(this.photos));return t.splice(r-1),t}return[]}},mounted:function(){this.$bvModal.show("modal-signup")}},L=E,$=(r("2d72"),Object(y["a"])(L,o,i,!1,null,null,null));e["default"]=$.exports}}]); 2//# sourceMappingURL=preview.9ff98342.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.