1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5924],{35924:(e,s,r)=>{r.r(s),r.d(s,{default:()=>x});var a=r(37876),t=r(14232),i=r(32937),l=r(73894),d=r(45349),n=r(13173),m=r(26666),c=r(35831),h=r(42922);let x=({checkoutHooks:e})=>{let{t:s}=(0,c.Bd)(),{region:r,staffDetailForm:x,checkStaffForm:o,setIsShowPaymentMethodBlock:f}=e,[j,u]=(0,t.useState)(!0);return(0,t.useEffect)(()=>{x.formState.isValid||f(!1)},[x.formState.isValid]),(0,a.jsxs)(d.Kv,{children:[(0,a.jsx)("a",{id:"staff-form-block"}),j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.ZB,{children:s("arr779")}),(0,a.jsx)(i.A,{sx:{color:l.y.pink,fontSize:12,fontWeight:"bold"},children:s("arr780")}),(0,a.jsxs)("form",{onSubmit:x.handleSubmit(()=>{o(),u(!1)}),noValidate:!0,children:[(0,a.jsx)(m.A,{form:x,label:s("arr781"),name:"staffId",required:!0}),(0,a.jsx)(m.A,{form:x,label:s("arr782"),name:"lastName",required:!0}),"tw"===r.toLowerCase()&&(0,a.jsx)(m.A,{form:x,label:s("arr783"),name:"department",required:!0}),(0,a.jsx)(n.A,{theme:"purple",type:"submit",sx:{height:56,mt:3},disabled:!x.formState.isValid,children:s("arr510")})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,a.jsx)(d.ZB,{className:"no-margin",children:s("arr779")}),(0,a.jsx)(h.A,{onClick:()=>u(!0),children:(0,a.jsx)("img",{src:"https://a.cdnsbn.com/images/ico-edit.svg",alt:"Change address",width:20,height:21})})]}),(0,a.jsxs)(i.A,{sx:{m:"19px 0 4px"},children:[(0,a.jsxs)("div",{children:[s("arr781"),": ",x.getValues("staffId")]}),(0,a.jsxs)("div",{children:[s("arr782"),": ",x.getValues("lastName")]}),"tw"===r.toLowerCase()&&(0,a.jsxs)("div",{children:[s("arr783"),": ",x.getValues("department")]})]})]})]})}}}]);
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.