1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[702],{8560:function(e,t,r){"use strict";r.r(t);var n=r(219),i=r(266),c=r(2809),a=r(809),o=r.n(a),s=(r(7294),r(9710)),u=r(2465),d=r(1163),p=r(9428),l=r(1834),f=r(980),h=r(1798),m=r(1424),O=r(5893),b=["id"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){(0,c.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default=function(){var e=(0,d.useRouter)(),t=(0,u.bp)(),r=t.app,c=(t.loading,t.error,e.query.rid),a=e.query.id,v=null===r||void 0===r?void 0:r.schema[c],j=(0,u.rO)().addField,y=(0,f.useToast)(),_=(0,m.QT)().t;return(0,O.jsx)(s.R,{sidebar:(0,O.jsx)(p.Y,{}),breadcrumbs:[{title:_("home"),href:"/admin/apps/".concat(a)},{title:_("schemaManagement")},{title:(null===v||void 0===v?void 0:v.name)||"",href:"/admin/apps/".concat(a,"/schema/").concat(c)},{title:_("fieldCreation")}],children:(0,O.jsx)(l.$,{title:_("fieldCreation"),children:v&&r&&(0,O.jsx)(h.Q,{isNew:!0,currentIds:null===v||void 0===v?void 0:v.fieldOrder,allSchema:r.schemaOrder.map((function(e){return w(w({},r.schema[e]),{},{id:e})})),onSubmit:function(){var t=(0,i.Z)(o().mark((function t(r){var i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.id,s=(0,n.Z)(r,b),t.next=3,j(a,c,i,s);case 3:y({title:_("createdField"),status:"success",duration:2e3}),e.push("/admin/apps/".concat(a,"/schema/").concat(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})})})}},7678:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/apps/[id]/schema/[rid]/fields/new",function(){return r(8560)}])}},function(e){e.O(0,[774,445,154,610,662,386,890,514,798,888,179],(function(){return t=7678,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.