(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[845],{13910:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields/[id]",function(){return r(63730)}])},59849:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var s=r(24246),a=r(36010),i=r(86677),n=r(88340);let l="/images/errors";var c=e=>{let{status:t}=e;return 404===t?(0,s.jsx)(a.Eep,{src:"".concat(l,"/404.svg"),alt:"Error 404",preview:!1}):500===t?(0,s.jsx)(a.Eep,{src:"".concat(l,"/500.svg"),alt:"Error 500",preview:!1}):(0,s.jsx)(a.Eep,{src:"".concat(l,"/unknown.svg"),alt:"Error Unknown",preview:!1})},o=r(812),u=e=>{let{error:t,defaultMessage:r="An unexpected error occurred.  Please try again",actions:l,showReload:u=!0}=e,d=(0,o.e$)(t,r),x="data"in t&&t.data?JSON.stringify(t.data):JSON.stringify(t),h="status"in t&&t.status?t.status:void 0,p=(0,i.useRouter)(),f=l&&l.length>0||u;return(0,s.jsx)(a.kCb,{vertical:!0,align:"center",justify:"center",className:"h-screen","data-testid":"error-page-result",children:(0,s.jsx)(a.x4B,{status:"error",icon:(0,s.jsx)(c,{status:h}),title:"Error ".concat(h),subTitle:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Typography.Paragraph,{type:"secondary",children:d}),(0,s.jsx)(a.kCb,{justify:"start",className:"max-w-96",children:(0,s.jsx)(a.UO1,{ghost:!0,size:"small",items:[{key:"1",label:"Show details",classNames:{header:"w-fit"},children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Typography.Text,{type:"secondary",children:x}),(0,s.jsx)(n.Z,{copyText:x})]})}]})})]}),extra:f&&(0,s.jsxs)(a.kCb,{gap:"small",justify:"center",children:[null==l?void 0:l.map((e,t)=>(0,s.jsx)(a.zxk,{...e,children:e.label},t)),u&&(0,s.jsx)(a.zxk,{onClick:()=>p.reload(),type:"primary",children:"Reload"})]})})})}},63730:function(e,t,r){"use strict";r.r(t);var s=r(24246),a=r(86677),i=r(59849),n=r(77213),l=r(77830),c=r(58754),o=r(33673),u=r(32885);t.default=()=>{var e;let{id:t}=(0,a.useRouter)().query,{data:r,isLoading:d,error:x}=(0,u.s0)({id:t});return x?(0,s.jsx)(i.Z,{error:x,defaultMessage:"A problem occurred while fetching the custom field ".concat(t)}):(0,s.jsxs)(n.Z,{title:"Edit custom field",mainProps:{maxWidth:"720px"},children:[(0,s.jsx)(c.Z,{heading:"Custom fields",breadcrumbItems:[{title:"All custom fields",href:l.WC},{title:null!==(e=null==r?void 0:r.name)&&void 0!==e?e:t}]}),(0,s.jsx)(o.Z,{initialField:r,isLoading:d})]})}}},function(e){e.O(0,[7552,2676,2888,9774,179],function(){return e(e.s=13910)}),_N_E=e.O()}]);