1(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{1009:function(t,e,r){var map={"./dz_full.svg":459,"./fb_full.svg":460,"./ig_full.svg":461,"./in_full.svg":462,"./jm_full.svg":463,"./lk_full.svg":464,"./mm_full.svg":465,"./mx_full.svg":466,"./ok_full.svg":467,"./pn_full.svg":468,"./rd_full.svg":469,"./rt_full.svg":470,"./tb_full.svg":471,"./tg_full.svg":472,"./th_full.svg":473,"./tn_full.svg":474,"./tt_full.svg":475,"./tw_full.svg":476,"./vb_full.svg":477,"./vk_full.svg":478,"./wa_full.svg":479,"./wb_full.svg":480,"./wc_full.svg":481,"./wp_full.svg":482,"./yp_full.svg":483,"./yr_full.svg":484,"./yt_full.svg":485};function n(t){var e=o(t);return r(e)}function o(t){if(!r.o(map,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return map[t]}n.keys=function(){return Object.keys(map)},n.resolve=o,t.exports=n,n.id=1009},1052:function(t,e,r){"use strict";var n={props:["item","colClass"],computed:{externalLink:function(){return this.socialOAuthExternalLink(this.item)}}},o=r(5),component=Object(o.a)(n,function(){var t=this,e=t._self._c;return e("a",{staticClass:"d-flex align-items-center justify-content-center border rounded-2 network-cell",attrs:{href:t.externalLink}},[e("img",{attrs:{src:r(1009)("./"+t.item.icon+"_full.svg"),alt:""}})])},[],!1,null,null,null);e.a=component.exports},1322:function(t,e,r){"use strict";r.r(e);r(6),r(39),r(43),r(44),r(31),r(22),r(15),r(8),r(1),r(20),r(29),r(48),r(36),r(32);var n=r(1052),o=r(89);function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,a){if(t){if("string"==typeof t)return c(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 l,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw l}}}}function c(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,r=Array(a);e<a;e++)r[e]=t[e];return r}var f={components:{AuthNetworkCell:n.a},head:function(){return{title:this.$t("auth").registration.title,script:[{src:"https://challenges.cloudflare.com/turnstile/v0/api.js",async:!0,defer:!0}]}},data:function(){return{email:"",password:"",password_confirmation:"",errorMessage:"",successMessage:"",cfToken:null}},mounted:function(){var t=this;window.onTurnstileSuccess=function(e){t.cfToken=e}},fetch:function(t){var e=t.app,r=t.route,n=t.redirect;(r.query.p||r.query.ref)&&(e.$cookies.set("partner.id.maybe",r.query.p||r.query.ref),r.query.s&&e.$cookies.set("partner.source",r.query.s),n(302,r.path))},computed:{legalLink:function(){return"socautoposter.com"===this.config.name?"/terms-and-conditions/":"/legal"},privacyLink:function(){return"socautoposter.com"===this.config.name?"/privacy-policy/":"/legal/privacy"},getTopButtons:function(){var t,e=[],r=l(o.data);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.config.oauth_top_buttons.includes(n.source_id)&&e.push(n)}}catch(t){r.e(t)}finally{r.f()}return e},getBottomButtons:function(){var t,e=[],r=l(o.data);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.config.oauth_bottom_buttons.includes(n.source_id)&&e.push(n)}}catch(t){r.e(t)}finally{r.f()}return e}},methods:{registration:function(){var t=this;this.errorMessage="",this.successMessage="","socautoposter"!==this.config.logo||this.cfToken?(this.toggleLoading(!0),this.$axios.post("/auth/registration",{email:this.email,password:this.password,password_confirmation:this.password_confirmation,cf_token:this.cfToken}).then(function(e){t.bvToast("success",e.data.message),t.successMessage=e.data.message,window.ym&&window.ym(22285318,"reachGoal","registration"),gtag&>ag("event","registration_success"),t.$cookies.get("partner.id.maybe")&&(parseInt(t.$cookies.get("partner.id.maybe"))&&t.$cookies.set("partner.id",t.$cookies.get("partner.id.maybe")),t.$cookies.remove("partner.id.maybe")),window.turnstile&&(window.turnstile.reset(),t.cfToken=null)}
1).catch(function(e){if(window.turnstile&&(window.turnstile.reset(),t.cfToken=null),e.response.data.errors){var r=Object.keys(e.response.data.errors)[0],n=e.response.data.errors[r][0];"email"===r?t.$refs.email.focus():"password"===r&&(n===t.$t("auth").registration.password_confirmation_warning?t.$refs.password_confirmation.focus():t.$refs.password.focus()),t.bvToast("danger",n)}else{var o=t.getRequestErrorText(e.response);t.bvToast("warning",o),t.errorMessage=o}}).finally(function(){t.toggleLoading(!1)})):this.bvToast("warning","Confirm that you are not a robot.")}}},d=r(5),component=Object(d.a)(f,function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex align-items-center justify-content-center flex-wrap bg-secondary window-form-wrapper"},[e("div",{staticClass:"auth-form-wrapper"},[e("h2",{staticClass:"mb-3 text-light"},[t._v("\n "+t._s(t.$t("auth").registration.title)+"\n ")]),t._v(" "),e("div",{staticClass:"p-3 bg-white auth-form"},[t.config.can_social_auth&&!t.successMessage?[e("div",{staticClass:"mb-2"},[t._v("\n "+t._s(t.$t("auth").registration.by_networks)+"\n ")]),t._v(" "),e("div",{staticClass:"mb-3 networks-cells"},[e("div",{staticClass:"row g-0"},t._l(t.getTopButtons,function(t,r){return e("AuthNetworkCell",{key:r,class:{"col px-3 me-2":r<2,col:r},attrs:{item:t}})}),1),t._v(" "),e("div",{staticClass:"row g-0 mt-2"},t._l(t.getBottomButtons,function(t,r){return e("AuthNetworkCell",{key:r,class:{"col-auto px-3 me-2":r<2,col:r},attrs:{item:t}})}),1)])]:t._e(),t._v(" "),e("form",{attrs:{autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.registration.apply(null,arguments)}}},[t.successMessage?t._e():[e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2",attrs:{for:"email"}},[t._v("\n E-mail\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],ref:"email",staticClass:"form-control form-control-sm",attrs:{type:"email",id:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2",attrs:{for:"password"}},[t._v("\n "+t._s(t.$t("auth").registration.password)+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],ref:"password",staticClass:"form-control form-control-sm",attrs:{type:"password",id:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2",attrs:{for:"password_confirmation"}},[t._v("\n "+t._s(t.$t("auth").registration.password_confirmation)+"\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.password_confirmation,expression:"password_confirmation"}],ref:"password_confirmation",staticClass:"form-control form-control-sm",attrs:{type:"password",id:"password_confirmation"},domProps:{value:t.password_confirmation},on:{input:function(e){e.target.composing||(t.password_confirmation=e.target.value)}}})]),t._v(" "),"socautoposter"===t.config.logo?e("div",{staticClass:"cf-turnstile mb-2",attrs:{"data-sitekey":"0x4AAAAAACzITakVKNy75Zoz","data-callback":"onTurnstileSuccess"}}):t._e()],t._v(" "),t.errorMessage?e("div",{staticClass:"bg-danger text-white p-3 rounded-2 text-14 mb-3"},[t._v("\n "+t._s(t.errorMessage)+"\n ")]):t._e(),t._v(" "),t.successMessage?e("div",{staticClass:"bg-success text-white p-3 rounded-2 text-14"},[t._v("\n "+t._s(t.successMessage)+"\n ")]):t._e(),t._v(" "),t.successMessage?t._e():[e("button",{staticClass:"btn btn-primary btn-sm",class:{disabled:t.isLoading},attrs:{type:"submit"}},[t._v("\n "+t._s(t.$t("auth").registration.submit)+"\n ")]),t._v(" "),t.config.show_auth_legal_links?e("div",{staticClass:"mt-3 small"},[t._v("\n "+t._s(t.$t("auth").registration.agreement_part_one)+" "+t._s(t.config.auth_legal_links_name)+"\n "),e("a",{attrs:{href:t.legalLink}},[t._v(t._s(t.$t("auth").registration.agreement_part_two))]),t._v("\n "+t._s(t.$t("auth").registration.agreement_part_three)+"\n "),e("a",{attrs:{href:t.privacyLink}},[t._v(t._s(t.$t("auth").registration.agreement_part_four))])]):t._e()]],2)],2),t._v(" "),e("div",{staticClass:"mt-3 d-flex justify-content-between"},[e("nuxt-link",{staticClass:"text-light",attrs:{to:t.localePath("/auth/remind")}},[t._v("\n "+t._s(t.$t("auth").registration.remind)+"\n ")]),t._v(" "),e("nuxt-link",{staticClass:"text-light",attrs:{to:t.localePath("/auth/login")}},[t._v("\n "+t._s(t.$t("auth").registration.login)+"\n ")])],1)])])},[],!1,null,null,null);e.default=component.exports}}]);
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.