PageSourceSearch

https://app.nimbushosting.co.uk/build/assets/AddTransfer-d9763288.js

js nimbushosting.co.uk collected 2026-09-25 14:19:54 UTC 4,446 bytes, 1 lines download raw bytes

1import{a as i,C as d}from"./CartMixin-e5a96dfc.js";import{D as c}from"./DateTimeMixin-70b5850e.js";import{P as l}from"./ProductOptions-6932f868.js";import{n as m,d as p}from"./TinyLoader-e1334c42.js";import{A as f}from"./AddDomainToCartPanelMixin-761ebb80.js";import"./TieredLoadingMixin-c5086e62.js";import"./ValidationErrorMixin-e2725d53.js";import"./datetime-7728da71.js";import"./Money-5e080b2b.js";const u={name:"AddTransfer",components:{ProductOptions:l,CartAlert:i},mixins:[d,c,f],props:{requiresAuthCode:{type:Boolean,required:!0},renewsUponTransfer:{type:Boolean,required:!0},domainIsLocked:{type:Boolean,required:!1},existingAuthCode:{type:String,required:!1}},data(){return{authCode:null}},computed:{},mounted(){this.determineInitialTerm(),this.authCode=this.existingAuthCode},methods:{async addDomainToCart(){this.startLoading();try{this.handleError(null),await this.domainCartApi.post("",{type:"transfer",domain:this.domain.domain,term:this.term,replace:!0,auth_code:this.authCode}),p.Inertia.visit("/cart")}catch(s){this.handleError(s)}finally{this.stopLoading()}}}};var _=function(){var t=this,e=t._self._c;return e("CartLayout",{attrs:{title:t._f("trans")("components/cart.domains.transfer-title"),"is-loading":t.isLoading}},[e("ProductOptions",{attrs:{"primary-cta-label":t._f("trans")(t.domainInCart?"components/cart.save-changes":"components/cart.add"),"product-name":t._f("trans")("components/cart.domains.transfer"),"product-price-label":t._f("trans")("components/cart.domains.transfer-cost"),title:t.domain.domain,"total-price":t.selectedPriceSet?parseFloat(t.selectedPriceSet.price.amount):0,"show-remove-button":t.domainInCart,error:t.error},on:{"primary-cta":t.addDomainToCart,"remove-cta":t.removeDomainFromCart}},[e("div",{staticClass:"grid grid-cols-2"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"self-center"},[t._v(" "+t._s(t._f("trans")("components/cart.domains.current-expiry"))+" ")])]),e("div",[t._v(t._s(t.formatDate(t.domain.expires_on)))])]),t.renewsUponTransfer?e("div",{staticClass:"grid grid-cols-2"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"self-center"},[t._v(" "+t._s(t._f("trans")("components/cart.domains.transfer-term"))+" ")])]),e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.term,expression:"term"}],staticClass:"form-input",on:{change:function(a){var n=Array.prototype.filter.call(a.target.options,function(r){return r.selected}).map(function(r){var o="_value"in r?r._value:r.value;return o});t.term=a.target.multiple?n:n[0]}}},t._l(t.tldActionPricing,function(a){return e("option",{domProps:{value:a.term}},[t._v(" "+t._s(a.term)+" Year"),a.term!==1?[t._v(" s ")]:t._e()],2)}),0)])]):t._e(),t.requiresAuthCode?e("div",{staticClass:"grid grid-cols-2"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"self-center"},[t._v(" "+t._s(t._f("trans")("components/cart.domains.auth-code"))+" ")])]),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.authCode,expression:"authCode"}],staticClass:"form-input",attrs:{type:"text",required:""},domProps:{value:t.authCode},on:{input:function(a){a.target.composing||(t.authCode=a.target.value)}}})])]):t._e(),e("CartAlert",[e("ul",{staticClass:"domain-todos"},[t.domainIsLocked?e("li",[e("i",{staticClass:"fas fa-info-circle"}),e("span",{domProps:{innerHTML:t._s(t.translate("components/cart.domains.transfer-todos.requires-unlocking",{registrar:t.domain.registrar.label}))}})]):t.domainIsLocked===!1?e("li",[e("i",{staticClass:"fas fa-check-circle"}),e("span",[t._v(t._s(t._f("trans")("components/cart.domains.transfer-todos.is-unlocked")))])]):t._e(),t.requiresAuthCode?e("li",[e("i",{staticClass:"fas fa-info-circle"}),e("span",{domProps:{innerHTML:t._s(t.translate("components/cart.domains.transfer-todos.need-auth-code",{registrar:t.domain.registrar.label}))}})]):e("li",[e("i",{staticClass:"fas fa-info-circle"}),e("span",{domProps:{innerHTML:t._s(t.translate("components/cart.domains.transfer-todos.requires-retag",{registrar:t.domain.registrar.label}))}})]),t.renewsUponTransfer?e("li",[e("i",{staticClass:"fas fa-check-circle"}),e("span",[t._v(t._s(t._f("trans")("components/cart.domains.transfer-todos.renews-upon-transfer")))])]):e("li",[e("i",{staticClass:"fas fa-info-circle"}),e("span",[t._v(t._s(t._f("trans")("components/cart.domains.transfer-todos.no-renew-upon-transfer")))])])])])],1
1)],1)},v=[],C=m(u,_,v,!1,null,null,null,null);const w=C.exports;export{w 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.