PageSourceSearch

https://treesthatcount.co.nz/_next/static/chunks/pages/account/planter-registration/edit-a4181e8760dfcc5b.js

js treesthatcount.co.nz collected 2026-10-02 10:14:37 UTC 1,763 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8439],{89499:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/planter-registration/edit",function(){return n(22511)}])},22511:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(85893),i=n(66252),a=n(67294),o=n(82950),s=n(53719),l=n(24276),u=n(1027),d=n(7515),c=n(80880),p=n(89827),h=n(80037),f=n(31644);var m=(0,n(33712).hN)((()=>{var e;const t=(0,i.x)(),{user:n}=(0,s.a)(),[m,g]=(0,a.useState)({photos:[],documents:[]}),{data:v,loading:_,called:w}=(0,p.$WC)({variables:{planterId:null===n||void 0===n||null===(e=n.Account)||void 0===e?void 0:e.PlanterId},onCompleted:async e=>{var n;const r=(null===(n=e.planterRegistration[0])||void 0===n?void 0:n.PlanterRegistrationAssets)||[];if(r.length)try{const e=r.filter((e=>e.Type===p.h3s.Image&&e.Uri)).map((e=>({Id:e.Id,FileName:e.FileName,Uri:e.Uri}))),n=r.filter((e=>e.Type===p.h3s.SupportingDocument&&e.Uri)).map((e=>({Id:e.Id,FileName:e.FileName,Uri:e.Uri}))),i=await(0,f.Ll)(t.query,e),a=await(0,f.Ll)(t.query,n);g({photos:i,documents:a})}catch(i){(0,o.h4)({message:i.message,type:o.k$.error})}}}),N=null===v||void 0===v?void 0:v.planterRegistration[0];return!w||_||N?N&&"Draft"!==N.WorkflowState?(0,r.jsx)(h.T,{}):(0,r.jsx)(d.T3,{title:"Edit Planter experience",children:(0,r.jsx)(u.f,{width:"fixed-narrow",backgroundColor:u.u.linen,children:(0,r.jsx)(l.T,{isLoading:_,children:(0,r.jsx)(c.m,{planterRegistration:N,planterRegistrationPhotos:m.photos,planterRegistrationDocuments:m.documents})})})}):(0,r.jsx)(h.T,{})}))}},function(e){e.O(0,[5970,509,1255,5666,1317,7476,2888,9774,179],(function(){return t=89499,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=edit-a4181e8760dfcc5b.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.