1"use strict";(self.webpackChunkindian_web=self.webpackChunkindian_web||[]).push([[1652],{77064:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var n=a(32655);const s={name:"AccountRedeem",data:function(){return{sending:!1,success:null,error:null,code:null}},methods:{handleSubmit:function(){var e=this;this.sending=!0,this.success=null,this.error=null,n.Z.query({query:"mutation claimCode($code: String!) {\n claimCouponCode(code: $code)\n }",variables:{code:this.code}}).then((function(t){var a=t.data;a.claimCouponCode>0?(e.code=null,e.success="OdmÄna vyzvednuta: ".concat(a.claimCouponCode," bodů pÅipsáno na úÄet")):e.error="Tento kód nenà platný"})).catch((function(t){e.error="Nastala chyba pÅi vyzvedávánà odmÄny. Zkus to prosÃm znovu pozdÄji."})).finally((function(){e.sending=!1}))}}};const l=(0,a(51900).Z)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-left"},[e._m(0),e._v(" "),e._m(1),e._v(" "),a("div",{staticClass:"panel panel--arrow"},[a("div",{staticClass:"panel__header"},[e._v("Zadánà bonusového kódu")]),e._v(" "),a("div",{staticClass:"panel__body"},[null!==e.error?a("div",{staticClass:"alert alert-danger"},[e._v(e._s(e.error))]):e._e(),e._v(" "),null!==e.success?a("div",{staticClass:"alert alert-success"},[e._v(e._s(e.success))]):e._e(),e._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"staticRedeem"}},[e._v("Kód")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],staticClass:"form-control",attrs:{type:"text",readonly:e.sending,id:"staticRedeem"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})]),e._v(" "),a("div",{staticClass:"form-group d-flex justify-content-center"},[a("button",{staticClass:"btn btn-primary",attrs:{disabled:e.sending},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.handleSubmit.apply(null,arguments)}}},[e._v("Vyzvednout")])])])])])}),[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"panel panel--toptriangle panel--breadcrumbs"},[a("h3",{staticClass:"panel__header"},[e._v("Vyzvednout odmÄnu")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"panel panel--arrow"},[a("h3",{staticClass:"panel__header"},[e._v("Jak to funguje?")]),e._v(" "),a("div",{staticClass:"panel__body"},[a("p",[e._v("ZÃskal/a jsi speciálnà kód, který by ti mÄl dát bonus v naÅ¡em systému? Tady je to mÃsto, kde jej můžeÅ¡ aktivovat! StaÄà platný kód zadat a aktivovat!")])])])}],!1,null,null,null).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.