1import{n as o,w as n,F as a}from"./app.966d24ad.js";const i=1e3,r={name:"RegisterUnified",props:{hasFreeRegistration:Boolean,isBlacklistedForFreeRegistration:{type:Boolean,default:!1},hasRegistrationViaActivationCode:Boolean,errors:Object},data(){return{showCodeInput:!1,sending:!1,sent:!1,codeAccepted:!1,formValues:{code:null}}},computed:{buttonTitle(){return this.codeAccepted?"Valid":this.sending?"Sending":"Submit"},validStateIconPath(){return this.codeAccepted?"/svg/code-valid.svg":this.codeAccepted?"":"/svg/code-invalid.svg"}},methods:{usePage:n,sendCode(){this.codeAccepted||(this.sending=!0,setTimeout(()=>{a.post(this.route("activation-code-validation"),this.formValues,{preserveScroll:!0,onError:()=>this.sending=!1,onSuccess:()=>{this.codeAccepted=!0,this.sending=!1,setTimeout(()=>{a.visit("/register")},i)},onFinish:()=>this.sent=!0})},i))}}};var l=function(){var e=this,t=e._self._c;return t("the-layout",{attrs:{"show-nav":!1,"show-language-picker":!0,"layout-width":"narrow"}},[t("Head",{attrs:{title:e.$t("Register now")}},[t("meta",{attrs:{name:"description",content:e.$t("Just a few steps to your :appName profile!",{appName:e.usePage().props.app.name})}})]),t("div",{staticClass:"card"},[t("page-title",[e._v(e._s(e.$t("Just a few steps to your :appName profile!",{appName:e.usePage().props.app.name})))]),t("div",{staticClass:"mt-8 w-full justify-center md:flex md:space-x-4"},[[e.hasRegistrationViaActivationCode?[t("div",{staticClass:"mb-4 flex w-full flex-col rounded-lg bg-secondary-300 p-6 text-tertiary md:mb-0 md:w-1/2"},[t("page-text",[t("h2",[e._v(e._s(e.$t("Registration with code")))]),t("p",[e._v(" "+e._s(e.$t("Did you receive an access code? Then enter it here to continue with the registration."))+" ")])]),e.showCodeInput?t("div",{staticClass:"mt-auto"},[t("FormulateForm",{attrs:{errors:e.errors},on:{submit:e.sendCode},model:{value:e.formValues,callback:function(s){e.formValues=s},expression:"formValues"}},[t("FormulateInput",{staticClass:"formulate-input--code",class:[e.codeAccepted?"formulate-input--code-valid":"formulate-input--code-invalid"],attrs:{label:`${e.$t("Code")} (${e.$t("required")})`,type:"text",name:"code",validation:"required","outer-class":"!mb-0",disabled:e.sending},scopedSlots:e._u([{key:"suffix",fn:function(){return[t("div",{staticClass:"absolute bottom-0 right-0 top-0 mr-12 inline-flex h-full items-center"},[!e.codeAccepted&&e.sent?t("img",{staticClass:"h-5 w-5",attrs:{src:e.validStateIconPath,alt:"Invalid"}}):e._e()]),t("custom-button",{attrs:{type:"submit",disabled:e.sending,title:e.buttonTitle}},[t("svg",{directives:[{name:"show",rawName:"v-show",value:e.sending,expression:"sending"}],staticClass:"sending-dots",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{staticClass:"dot",attrs:{d:"M7.05498 13.0546C6.47282 13.0546 5.99988 12.5817 5.99988 12.0004C5.99988 11.4191 6.47282 10.9453 7.05498 10.9453C7.63713 10.9453 8.11007 11.4191 8.11007 12.0004C8.11007 12.5817 7.63713 13.0546 7.05498 13.0546Z"}}),t("path",{staticClass:"dot",attrs:{d:"M12.1652 13.0546C11.5831 13.0546 11.1101 12.5817 11.1101 12.0004C11.1101 11.4191 11.5831 10.9453 12.1652 10.9453C12.7474 10.9453 13.2203 11.4191 13.2203 12.0004C13.2203 12.5817 12.7474 13.0546 12.1652 13.0546Z"}}),t("path",{staticClass:"dot",attrs:{d:"M16.9449 13.0546C16.3627 13.0546 15.8898 12.5817 15.8898 12.0004C15.8898 11.4191 16.3627 10.9453 16.9449 10.9453C17.527 10.9453 18 11.4191 18 12.0004C18 12.5817 17.527 13.0546 16.9449 13.0546Z"}})]),t("svg",{directives:[{name:"show",rawName:"v-show",value:!e.sending&&!e.codeAccepted,expression:"!sending && !codeAccepted"}],staticClass:"arrow",attrs:{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{fill:"#ffffff","clip-rule":"evenodd",d:"M13.788 6.248a.625.625 0 0 0-.814.062l-.06.07a.625.625 0 0 0 .062.814l3.97 3.952H5.958l-.084.006a.625.625 0 0 0 .084 1.244h10.986l-3.968 3.953-.06.07a.625.625 0 0 0 .942.816l5.033-5.012a.625.625 0 0 0 .009-.895l-5.042-5.02-.07-.06Z"}})]),t("svg",{directives:[{name:"show",rawName:"v-show",value:!e.sending&&e.codeAccepted,expression:"!sending && codeAccepted"}],attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M19.114 6.27886C19.5122 5.89624 20.1453 5.90894 20.5279 6.30722C20.8811 6.67486 20.8974 7.24253 20.5846 7.
162863L20.4995 7.72115L9.80418 18.3736L4.34423 13.6308C3.92729 13.2687 3.88289 12.6371 4.24506 12.2201C4.57938 11.8352 5.14327 11.7678 5.55599 12.0446L5.6558 12.1209L9.7361 15.6652L19.114 6.27886Z",fill:"#ffffff"}})])])]},proxy:!0}],null,!1,1773112599)})],1)],1):e._e(),e.showCodeInput?e._e():t("div",{staticClass:"mt-auto"},[t("custom-button",{attrs:{type:"button",text:e.$t("Continue with code")},on:{click:function(s){e.showCodeInput=!0}}})],1)],1)]:e._e(),e.hasFreeRegistration?[t("div",{staticClass:"relative flex items-center justify-center pt-6"},[t("span",{staticClass:"font-medium z-20 mx-auto block bg-white px-2 tracking-wide text-tertiary md:hidden"},[e._v(e._s(e.$t("or")))]),t("span",{staticClass:"absolute left-0 right-0 z-10 h-[1px] w-full -translate-y-1/2 transform bg-primary-50"})]),t("div",{staticClass:"mt-4 flex w-full flex-col items-start justify-between rounded-lg bg-white p-6 md:mt-0 md:w-1/2"},[t("page-text",[t("h2",[e._v(e._s(e.$t("Continue registration without code")))]),e.isBlacklistedForFreeRegistration?t("p",[e._v(" "+e._s(e.$t("If you do not have a code and you believe to be eligible please send an E-Mail to:"))+" "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")])]):e._e()]),e.isBlacklistedForFreeRegistration?e._e():t("Link",{staticClass:"btn btn--secondary mt-4",attrs:{href:"/register"}},[e._v(e._s(e.$t("Continue without code")))])],1)]:e._e()]],2)],1)],1)},d=[],c=o(r,l,d,!1,null,null,null,null);const f=c.exports;export{f as default};
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.