1"use strict";(self.webpackChunkwallaby=self.webpackChunkwallaby||[]).push([[9468],{49468:(e,a,t)=>{t.r(a),t.d(a,{CreateTransfer:()=>z,default:()=>q});var r=t(65043),n=t(58627),i=t(81497),s=t(26841),o=t(58168),l=t(80045),c=t(43024),d=t(97563),h=t(71745),u=r.forwardRef((function(e,a){var t=e.active,n=(e.alternativeLabel,e.children),i=e.classes,s=e.className,h=(e.completed,e.expanded),u=e.last,m=(e.optional,e.orientation,e.TransitionComponent),p=void 0===m?d.A:m,f=e.transitionDuration,g=void 0===f?"auto":f,A=e.TransitionProps,v=(0,l.A)(e,["active","alternativeLabel","children","classes","className","completed","expanded","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]);var x=g;return"auto"!==g||p.muiSupportAuto||(x=void 0),r.createElement("div",(0,o.A)({className:(0,c.default)(i.root,s,u&&i.last),ref:a},v),r.createElement(p,(0,o.A)({in:t||h,className:i.transition,timeout:x,unmountOnExit:!0},A),n))}));const m=(0,h.A)((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(u);var p=t(57066),f=t(20495),g=t(58425),A=t(33097),v=t.n(A),x=t(33812),y=t(70543),b=t(77193),T=t(67507),j=t(86104),D=t(53354),w=t(68773),k=t(65471),E=t(83071),L=t(48724),C=t(88096),P=t(70579);const N=(0,D.Ay)(n.A)` 2 .MuiStep-completed { 3 .MuiStepIcon-completed { 4 fill: ${e=>e.theme.palette.grey[300]}; 5 } 6 .MuiStepLabel-iconContainer { 7 margin-right: ${e=>e.theme.spacing(1)}px; 8 border-radius: 50%; 9 overflow: hidden; 10 background: ${e=>e.theme.palette.primary.dark}; 11 padding: 0; 12 } 13 } 14`;const z=e=>{let{changeFieldValue:a,clearIncomingTransfer:t,createIncomingTransfer:n,created:o,displayError:l,fetchTldDetails:c,tldDetails:d,form:h,history:u,resetForm:A}=e;(0,w.pS)("Domain Transfer"),(0,L.A)("Domain Transfer");const D=(0,k.A)(),[z,S]=r.useState(0),F=["Unlock Domain","EPP Code","Authorize Transfer"],I=z===F.length-1,Y=(0,E.A)("domain");function M(){S((e=>(e+1===F.length-1&&c(h.values),e+1)))}const $=()=>{S((e=>e-1))},B=()=>{Y({serverHostName:h.values.domain}),n(h.values)},O=e=>{switch(e){case 0:return`To start transferring a domain to ${D}, you will need to log into your current registrar and unlock your domain. You will then need to request a transfer secret or transfer code from your registrar, sometimes called an EPP code.\n\t\t\t\t\n\t\t\t\tThis code will be emailed to the registrant email address that is currently associated with the domain registration. Once you have this code, click Next to begin the transfer process.`;case 1:return(0,P.jsx)(C.Ay,{initialValues:h.values});case 2:return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(p.A,{pb:2,children:"When transferring your domain, the expiration will automatically be extended by one year, and as such, will incur one year of domain registration charges."}),(0,P.jsxs)("div",{children:[(0,P.jsxs)(y.A,{bold:!0,inline:!0,children:["Domain:"," "]}),h.values?h.values.domain:null]}),(0,P.jsxs)(p.A,{pb:2,children:[(0,P.jsxs)(y.A,{bold:!0,inline:!0,children:["Price
14:"," "]}),!d.isLoading&&d.hasData?(0,x.Gl)(Number(d.transferPrice)):(0,P.jsx)(g.A,{size:12})]}),(0,P.jsx)("div",{children:"If a credit card is on file, the card will be authorized for the amount listed, and the payment will be finalized once the transfer is complete. Otherwise, the account will need to have an existing balance to cover the cost of the transfer. Funds can be added on the Account Billing Page."})]});default:return"Unknown step"}};r.useEffect((()=>(o.hasData&&(t(),A(),u.push("/domain")),()=>{})),[o.hasData]),r.useEffect((()=>(o.hasError&&(S(0),t(),A(),l("Failed to initiate domain transfer")),()=>{})),[o.hasError]),r.useEffect((()=>{a("eppCode",null),a("domain",null)}),[a]);const R=v()(h,"values.domain"),V=v()(h,"values.eppCode");return(0,P.jsxs)(b.A,{name:"Domain Transfer",favoritesDisplayName:"Domain Transfer",children:[(0,P.jsx)(N,{activeStep:z,orientation:"vertical",children:F.map(((e,a)=>(0,P.jsxs)(i.A,{children:[(0,P.jsx)(s.A,{children:e}),(0,P.jsxs)(m,{children:[(0,P.jsx)(y.A,{children:O(a)}),(0,P.jsxs)(p.A,{alignItems:"center",display:"flex",mt:2,children:[0!==z&&(0,P.jsx)(T.A,{onClick:$,color:"tertiary",children:"Back"}),(0,P.jsx)(T.A,{BoxProps:{ml:2},variant:"contained",disabled:1===z&&(!R||!V||""===V||""===R)||R&&!(0,j.A)(R),onClick:I?B:M,type:I?"submit":"button",isLoading:o.isLoading,children:I?"Authorize Transfer":"Next"})]})]})]},e)))}),z===F.length&&(0,P.jsx)(p.A,{p:3,children:(0,P.jsxs)(f.A,{square:!0,children:[(0,P.jsx)(y.A,{children:"All steps completed - you're finished"}),(0,P.jsx)(T.A,{color:"tertiary",onClick:()=>{S(0)},children:"Reset"})]})})]})};var S=t(97508),F=t(91688),I=t(51891),Y=t(72062),M=t(99204),$=t(18402),B=t.n($),O=t(38362),R=t(19491),V=t(77033);const q=(0,S.Ng)(((e,a)=>({history:e.history,form:{values:(0,I.A)(C.Yz)(e),valid:(0,Y.A)(C.Yz)(e)},created:{hasData:V.Tp.hasData(e),isLoading:V.Tp.isLoading(e),hasError:V.Tp.hasError(e)},tldDetails:{hasData:R.Tp.hasData(e),isLoading:R.Tp.isLoading(e),transferPrice:R.Tp.transferPrice(e,a)}})),(e=>({changeFieldValue:(a,t)=>e((0,M.Zg)(C.Yz,a,t)),displaySnackbar:e=>B().info(e),fetchTldDetails:a=>{let{domain:t}=a;return e(R.o1.fetch({domains:t}))},createIncomingTransfer:a=>e(V.o1.fetch(a)),clearIncomingTransfer:()=>e(V.o1.clear()),resetForm:()=>e((0,M.cL)(C.Yz)),displayError:a=>e(O.A.pushError({message:a}))})))((0,F.y)(z))},72062:(e,a,t)=>{t.d(a,{A:()=>i});var r=t(24579),n=t(97218);const i=(0,r.A)(n.A)}}]); 15//# sourceMappingURL=9468.243714da.chunk.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.