PageSourceSearch

https://kuutio.fi/_next/static/chunks/pages/metsanomistaja/omat-pu…/luo-yhteydenottopyynto-c312aee52f34891e.js

js kuutio.fi collected 2026-10-08 23:05:49 UTC 22,819 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7710],{51580:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>Z,default:()=>W});var s=a(37876),l=a(22939),n=a(53340),i=a(78162),r=a(77076),o=a(94356),c=a(76846),d=a(88992),m=a(14232),u=a(51634),f=a(86121),p=a(89099);let x=()=>{let{locale:e}=(0,p.useRouter)(),{t}=(0,l.Bd)(["create-contact-request","common"]);return(0,s.jsx)(f.$,{children:a=>{let{register:l,trigger:n,setValue:i,control:r}=a;return(0,s.jsxs)("div",{"data-cy":"validity-period-details",children:[(0,s.jsx)(o.NA,{className:"font-body-semibold",children:t("form.fields.validityPeriod")}),(0,s.jsxs)("div",{className:"flex gap-x-3",children:[(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(o.AZ,{disablePast:!0,control:r,...l("dateFrom"),label:"".concat(t("form.fields.dateFrom"),"*"),onChange:e=>i("dateFrom",e),locale:e})}),(0,s.jsx)("div",{className:"mb-4 mt-4 flex w-5 items-start justify-center",children:"—"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(o.AZ,{disablePast:!0,control:r,...l("dateTo"),label:"".concat(t("form.fields.dateTo"),"*"),onChange:e=>{i("dateTo",e),n("dateTo")},locale:e})})]})]})}})};var g=a(91408),h=a(71090),y=a(93045),v=a(2976),j=a(7068),q=a(72934),N=a(77647),C=a(15396),b=a(63541);let R=new N.A({});R.set("name","BASEGROUP");let S=new y.A({}),w=new y.A({}),T=e=>{var t,a,l,n;let{estateId:i,municipalityId:o,municipalities:c,onPointUpdated:d}=e,m=C.a$.Maastokartta,u=null==c?void 0:c.map(e=>e.feature),{showLayers:f,attribution:p}=(0,b.U)(!!i),{data:x,isLoading:g}=(0,r._A)({estateId:i},{skip:!i}),{data:h}=(0,r.Mc)({municipalityId:o}),y=null==h||null==(a=h.estates)||null==(t=a.find(e=>{let{estateId:t}=e;return t===i}))?void 0:t.feature,N=y?[y]:[],T=null==x||null==(n=x.stands)||null==(l=n.result)?void 0:l.features,B=!i&&u;return(0,s.jsxs)(v.A,{basegroup:R,id:"create-contact-request-map",useBorder:!0,defaultLayer:m,bottomSlot:(0,s.jsx)(j.y0,{basegroup:R,defaultLayer:m,mapContext:C.pw.ContactRequest}),children:[(0,s.jsxs)(q.zg,{children:[B?(0,s.jsx)(q.c8,{features:u,source:S,selectedSource:w,municipalityId:o}):(0,s.jsx)(q.u1,{stands:g?void 0:T,features:g?void 0:N,standSelectable:!1,zoom:!0,zoomToStands:!0}),f&&N.length>0?(0,s.jsx)(q.JL,{estateFeatures:N}):null]}),(0,s.jsxs)(j.H2,{children:[(0,s.jsx)(j.IG,{}),(0,s.jsx)(j.T3,{}),(0,s.jsx)(j.mJ,{}),(0,s.jsx)(j.z0,{additionalAttribution:p}),(0,s.jsx)(j.OQ,{onPointUpdated:d}),(0,s.jsx)(q.Ax,{})]})]})};var B=a(96925),A=a(54515),I=a(8286),D=a(37630);let E=e=>{let{userData:t}=e,{t:a}=(0,l.Bd)(["create-contact-request","common"]);return(0,s.jsx)(f.$,{children:e=>{let{register:l}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.NA,{className:"font-body-semibold",children:a("form.fields.personalSection")}),(0,s.jsxs)("div",{className:"gap-x-3 md:flex",children:[(0,s.jsx)(o.Jn,{...l("firstName"),autoComplete:"firstName",label:"".concat(a("form.fields.firstName",{ns:"common"}),"*"),disabled:!1,defaultValue:t.firstName}),(0,s.jsx)(o.Jn,{...l("lastName"),autoComplete:"lastName",label:"".concat(a("form.fields.lastName",{ns:"common"}),"*"),disabled:!1,defaultValue:t.lastName})]}),(0,s.jsxs)("div",{className:"mb-0 gap-x-3 md:flex",children:[(0,s.jsx)(o.Jn,{...l("phone"),autoComplete:"phone",label:"".concat(a("form.fields.phone",{ns:"common"}),"*"),disabled:!1,defaultValue:t.phone}),(0,s.jsx)(o.Jn,{...l("email"),autoComplete:"email",label:"".concat(a("form.fields.email",{ns:"common"}),"*"),disabled:!1,defaultValue:t.email})]})]})}})};var z=a(67547),L=a(93321),F=a(4750),P=a(47578),O=a(47181),k=a(96654),M=a(96641),_=a(85879),G=a(59797),U=a(47159);let J=e=>{let{attachments:t,onUpdate:a,onDelete:n}=e,{t:i}=(0,l.Bd)(["common"]),r=async e=>{n(e)};return t&&0!==t.length?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-x-4 px-4 font-body-semibold text-sm max-sm:hidden",children:[(0,s.jsx)("div",{className:"flex-1 max-slg:hidden",children:i("attachments.fileName")}),(0,s.jsxs)("div",{className:"flex gap-4 max-slg:flex-1 max-sm:flex-col",children:[(0,s.jsx)("div",{className:"sm:flex-1 slg:w-48 lg:w-64",children:i("attachments.documentClass")}),(0,s.jsx)("div",{className:"sm:flex-1 slg:w-48 lg:w-64",children:i("attachments.description")})]}),(0,s.jsx)("div",{className:"w-20",children:i("attachments.fileSize")}),(0,s.jsx)("div",{className:"w-10",children:"\xa0"})]}),(0,s.jsx)("div",{className:"mb-6 flex flex-col gap-y-4 rounded-lg bg-gray-light p-4",children:t.map((e,t)=>(0,s.jsxs)("div",{className:"flex justify-between gap-4 max-slg:flex-col slg:items-center",children:[(0,s.jsxs)("div",{className:"flex flex-1 gap-x-1",children:[(0,s.jsxs)("span",{children:[t+1,"."]}),(0,s.jsxs)("span",{className:"break-all",children:[e.fileName," ",(0,s.jsxs)("span",{className:"sm:hidden",children:["(",(0,_.v7)(e.fileSize),")"]})]})]}),(0,s.jsxs)("div",{className:"flex justify-between gap-x-4 sm:items-center",children:[(0,s.jsxs)("div",{className:"flex gap-4 max-slg:flex-1 max-sm:flex-col",children:[(0,s.jsx)("div",{className:"sm:flex-1 slg:w-48 lg:w-64",children:(0,s.jsx)(G.At,{id:t,documentClass:e.documentClass,onChange:t=>a({...e,documentClass:t})})}),(0,s.jsx)("div",{className:"sm:flex-1 slg:w-48 lg:w-64",children:(0,s.jsx)(G.cS,{id:e.documentId,label:i("attachments.description"),description:e.description,onChange:t=>a({...e,description:t})})})]}),(0,s.jsx)("div",{className:"w-20 max-sm:hidden",children:(0,_.v7)(e.fileSize)}),(0,s.jsx)("div",{className:"w-10 text-right max-sm:pt-2",children:(0,s.jsx)(o.oe,{variant:"secondary",circle:!0,onClick:()=>r(e.documentId),children:(0,s.jsx)(M.A,{className:"size-5"})})})]})]},e.documentId))})]}):null},V=e=>{let{onAttachmentChange:t}=e,{t:a}=(0,l.Bd)(["common"]),n=(0,m.useRef)(null),i=(0,F.j)(),[r,c]=(0,m.useState)([]),d=async e=>{let{file:t}=e;return t?(i((0,L.ir)()),U.i_.includes(t.type))?t.size>U.Tb?void i((0,L.fE)({notificationItem:{severity:"error",message:a("attachments.maxFileSizeExceeded")}}
1)):void c([...r,{...{fileName:t.name,mimeType:t.type,attachedToEntityId:0,documentClass:0,description:"",documentId:Date.now()},fileBinary:t}]):void i((0,L.fE)({notificationItem:{severity:"error",message:a("attachments.invalidFileType")}})):void 0};(0,m.useEffect)(()=>{r&&t(r)},[r]);let u=r.map(e=>{var t;return{attachedToEntityId:0,documentId:e.documentId,documentClass:e.documentClass,description:e.description,fileName:e.fileName,mimeType:e.mimeType,fileSize:null==(t=e.fileBinary)?void 0:t.size.toString()}});return(0,s.jsxs)("div",{children:[(0,s.jsx)(J,{attachments:u,onUpdate:e=>{let{documentId:t,description:a,documentClass:s}=e;c(e=>e.map(e=>t===e.documentId?{...e,description:a,documentClass:s}:e))},onDelete:e=>{c(t=>t.filter(t=>t.documentId!==e))}}),(0,s.jsx)("input",{ref:n,type:"file",accept:U.i_.join(","),onChange:e=>{e.target.files&&(-1===r.findIndex(t=>{var a;return t.fileName===(null==(a=e.target.files)?void 0:a[0].name)})&&d({file:e.target.files[0]}),e.target.value="")},className:"sr-only"}),(0,s.jsxs)(o.oe,{onClick:()=>{var e;return null==(e=n.current)?void 0:e.click()},variant:"secondary",className:"inline-flex items-center gap-x-2",data_cy:"uploadAttachment",children:[(0,s.jsx)(k.A,{className:"size-5"}),a("actions.addFile")]})]})};var Q=a(14748),Y=a(92825),X=a(59820);let H=e=>{var t,a,n,i,c,f,p,y,v;let{userData:j,lookupData:q,onSubmitSuccess:N}=e,{t:C}=(0,l.Bd)(["create-contact-request","create-call-for-offer","common"]),b=(0,F.j)(),[R,S]=(0,m.useState)(null),[w,P]=(0,m.useState)(null),[k,M]=(0,m.useState)(null),[_,G]=(0,m.useState)(0),[U,J]=(0,m.useState)(null),H=null==w?void 0:w.key,[$,{isLoading:Z}]=(0,r.Yz)(),{municipality:W,concerns:K}=q,ee=(0,F.G)(O.CB),et=async e=>{let{concernAbbrev:t,dateFrom:a,dateTo:s}=e,l={firstName:e.firstName,lastName:e.lastName,phone:e.phone,email:e.email,municipalityId:H,concern:K.find(e=>e.abbrev===parseInt(t,10)),contactByEmail:e.contactBy.contactByEmail,contactByPhone:e.contactBy.contactByPhone,additionalInformation:e.additionalInformation,forAllOrganization:e.forAllOrganization,agents:e.agents,point:k,estate:null==R?void 0:R.estateId,includeForestData:e.includeForestData,dateFrom:(0,z.A)(new Date(a),"yyyy-MM-dd"),dateTo:(0,z.A)(new Date(s),"yyyy-MM-dd"),isAuthenticated:ee};try{let{data:e}=await $({...l}).unwrap();if(U&&e)try{await Promise.all([U.map(t=>{let a=new FormData;a.append("fileBinary",t.fileBinary),a.append("fileName",t.fileName),a.append("mimeType",t.mimeType),a.append("attachedToEntityId",e.toString()),a.append("documentClass",t.documentClass.toString()),a.append("description",t.description),eq({data:a,attachmentType:"CR"}).unwrap()})])}catch(e){}b((0,L.fE)({notificationItem:{severity:"success",message:C("success.description")}})),N(e)}catch(t){let e=(null==t?void 0:t.message)||C("form.messages.requestFailed",{ns:"common"});b((0,L.fE)({notificationItem:{severity:"error",message:e}}))}},ea="".concat(C("form.fields.firstName",{ns:"common"})," ").concat(C("form.messages.required",{ns:"common"})),es="".concat(C("form.fields.lastName",{ns:"common"})," ").concat(C("form.messages.required",{ns:"common"})),el="".concat(C("form.fields.email",{ns:"common"})," ").concat(C("form.messages.required",{ns:"common"})),en=C("form.messages.invalidEmail",{ns:"common"}),ei="".concat(C("form.fields.phone",{ns:"common"})," ").concat(C("form.messages.required",{ns:"common"})),er=C("form.messages.requiredContactBy"),eo="".concat(C("form.fields.concerns")," ").concat(C("form.messages.required",{ns:"common"})),ec=C("form.messages.invalidPhone",{ns:"common"}),ed=g.object().shape({firstName:g.string().required(ea),lastName:g.string().required(es),phone:g.string().required(ei).test("phone",C(ec),async e=>await (0,D.Q7)(e)),email:g.string().required(el).email(en),concernAbbrev:g.string().required(eo),dateFrom:g.date().typeError(C("form.messages.invalidDate",{ns:"common"})).required(C("form.messages.releaseDateRequired",{ns:"create-call-for-offer"})).min(new Date(new Date().setHours(0,0,0,0)).toISOString(),C("form.messages.invalidPastDate",{ns:"common"})),dateTo:g.date().typeError(C("form.messages.invalidDate",{ns:"common"})).required(C("form.messages.expirationDateRequired",{ns:"create-call-for-offer"})).min(new Date(new Date().setHours(0,0,0,0)).toISOString(),C("form.messages.invalidPastDate",{ns:"common"})).test("dateTo",C("form.messages.durationPeriodInvalid"),(e,t)=>{let a=t.parent.dateFrom;return!e||!a||((e,t)=>{let a=new Date(e),s=new Date(t),l=(0,B.A)(s,7),n=(0,B.A)(s,30);return(0,A.A)(a,l)&&(0,I.A)(a,n)})(e,a)}),contactBy:g.object().shape({contactByEmail:g.boolean().when("contactByPhone",{is:e=>!e,then:()=>g.boolean().oneOf([!0],er)}),contactByPhone:g.boolean().when("contactByEmail",{is:e=>!e,then:()=>g.boolean().oneOf([!0],er)})},[["contactByEmail","contactByPhone"],["contactByPhone","contactByEmail"]]),additionalInformation:g.string().nullable().max(2e3,C("form.messages.maxLength",{ns:"common",max:2e3}))}),em=(0,d.mN)({mode:"onBlur",defaultValues:{concernAbbrev:"",dateFrom:new Date().toISOString(),forAllOrganization:!0},resolver:(0,h.t)(ed)}),{register:eu,handleSubmit:ef,watch:ep,formState:{errors:ex},trigger:eg}=em,eh=!!(null==(t=ex.contactBy)?void 0:t.contactByEmail)&&!!(null==(a=ex.contactBy)?void 0:a.contactByPhone),ey=null!=(v=null==(n=ep("additionalInformation"))?void 0:n.length)?v:0,{data:ev,isLoading:ej}=(0,r.QU)({municipalityId:H,realEstateId:(null==R?void 0:R.estateId)||0,requestTypeId:_},{skip:0===_&&null===R||null===w}),[eq]=(0,Q.Ff)(),[eN,eC]=(0,m.useState)((null==R?void 0:R.estateMapping)||"");return(0,m.useEffect)(()=>{var e;if((null==q||null==(e=q.estates)?void 0:e.length)===1){let e=q.estates[0],t=e.estateMapping,[,a]="string"==typeof t?t.split(","):[],s=a?q.municipality.find(e=>e.key===parseInt(a)):null;S(e),eC(e.estateMapping),s&&P(s)}},[]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(d.Op,{...em,children:(0,s.jsxs)("form",{onSubmit:ef(et),children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)(o.NA,{level:3,children:["1. ",C("form.fields.concernsTitle")]}),(0,s.jsx)(o.U0,{...eu("concernAbbrev"),label:C("form.fields.concern"),options:q.concerns.map(e=>{let{abbrev:t,name:a}=e;return{key:t,value:t,label:a}}),onChange:e=>{let{target:{value:t}}=e;G(t)}})]}),(0,s.jsx)(o.Jn,{...eu("additionalInformation"),size:"small",label:C("form.fields.additionalInfo"),multiline:!0,minRows:3}),(0,s.jsx)(o.kc,{length:ey,maxLength:2e3}),(0,s.jsxs)("div",{className:"rounded-lg border border-gray-mid p-4 pt-5",children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)(o.NA,{level:3,children:["2. ",C("form.fields.chooseEstate")]}),(0,s.jsxs)(o.X8,{value:eN,name:"estate-select",onChange:e=>{let{target:{value:t}}=e;if(""===t){S(null),P(null),eC("");return}let[a,s]="string"==typeof t?t.split(","):t,l=q.municipality.find(e=>e.key===parseInt(s));l&&P(l);let n=q.estates.find(e=>e.estateId===parseInt(a));S(n),eC(null==n?void 0:n.estateMapping)},children:[(0,s.jsx)(u.A,{value:"",children:(0,s.jsxs)("em",{children:["-- ",C("form.fields.nothingSelected")," --"]})}),null==q||null==(i=q.estates)?void 0:i.map((e,t)=>{let{estateId:a,estateName:l,estateMapping:n,addedManually:i}=e;return(0,s.jsx)(u.A,{value:n,className:t%2==1?"bg-gray-veryLight":"",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 py-1",children:[(0,s.jsx)("span",{className:"font-body-bold",children:l.split(" ")[0]}),"/"," ",l.split(" ")[1]," (",i?C("form.fields.addedManually"):C("form.fields.importedFromMetsaan"),")"]})},a)})]}),null!==R?(0,s.jsx)("div",{className:"mb-4 flex-1",children:(0,s.jsx)(o.pk,{...eu("includeForestData"),onChange:()=>eg("includeForestData"),label:C("form.fields.includeForestData")})}):null]}),(0,s.jsxs)(o.NA,{level:4,className:"mb-0",children:["2.1 ",C("form.fields.municipality")]}),(0,s.jsx)(o.NA,{children:C("form.fields.unknownMunicipality")}),(0,s.jsx)(o.A6,{name:"municipalityId",label:"",options:W,getOptionLabel:e=>(null==e?void 0:e.value)||"",onChange:(e,t)=>
1{P(t)},value:w,disabled:!!R})]}),0!==_&&H?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-4 mt-10",children:[(0,s.jsxs)(o.NA,{level:3,children:["3. ",C("form.fields.mapTitle")]}),(0,s.jsx)(o.VV,{children:(0,s.jsx)(o.NA,{className:"mb-0",children:C("map.description")})})]}),(0,s.jsx)(T,{onPointUpdated:e=>{M(e)},estateId:null==R?void 0:R.estateId,municipalityId:H,municipalities:W}),(0,s.jsx)("div",{className:"mt-10",children:(0,s.jsxs)(o.DE,{children:[(0,s.jsxs)(o.NA,{level:3,children:["4. ",C("form.fields.basicDetails")," "]}),(0,s.jsx)(x,{}),(0,s.jsx)(E,{userData:j}),(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)(o.NA,{className:"font-body-semibold",children:C("form.fieldsets.contactByLabel")}),(0,s.jsxs)("div",{className:"gap-x-6 md:flex",children:[(0,s.jsx)(o.pk,{...eu("contactBy.contactByEmail"),label:C("form.fields.contactByEmail")}),(0,s.jsx)(o.pk,{...eu("contactBy.contactByPhone"),label:C("form.fields.contactByPhone")})]}),eh&&(0,s.jsx)(o.Yr,{children:(null==(f=ex.contactBy)||null==(c=f.contactByEmail)?void 0:c.message)||(null==(y=ex.contactBy)||null==(p=y.contactByPhone)?void 0:p.message)})]})]})}),(0,s.jsxs)(o.DE,{children:[(0,s.jsxs)(o.NA,{level:3,children:["5. ",C("form.fields.attachmentsTitle")]}),(0,s.jsx)(X.x,{attachmentType:"CR"}),(0,s.jsx)(V,{onAttachmentChange:function(e){J(e)}})]}),(0,s.jsxs)(o.DE,{children:[(0,s.jsxs)(o.NA,{level:3,children:["6. ",C("form.fields.recipientsTitle")]}),ej?(0,s.jsx)(o.Mi,{}):null,!ej&&(null==ev?void 0:ev.data.organizations)&&(0,s.jsx)(Y.iD,{title:C("form.fields.toWhom"),targetAllField:"forAllOrganization",organizations:null==ev?void 0:ev.data.organizations.agents})]}),(0,s.jsx)("div",{className:"my-4 flex flex-wrap items-center justify-center gap-x-5",children:(0,s.jsx)(o.gY,{onClick:ef(et),loading:Z,children:C("form.actions.send")})})]}):null]})})})},$=e=>{let{title:t}=e,{t:a}=(0,l.Bd)(["create-contact-request","common"]),{data:n,isLoading:i}=(0,r.Bg)(),{data:d,isLoading:m}=(0,r.Bq)(),u=(0,p.useRouter)(),f=i||m;return(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(c.dA,{leftContent:(0,s.jsx)(c.g4,{text:a("pageNav.myTimberTrades",{ns:"common"}),href:P.k9.MyTimberTrades})}),(0,s.jsx)(o.NA,{level:1,className:"text-center",children:t}),(0,s.jsxs)("div",{className:"mb-16 mt-10 w-full flex-1 sm:mb-0",children:[f?(0,s.jsx)(o.Mi,{heading:(0,s.jsxs)(o.NA,{level:3,children:["1. ",a("form.fields.concernsTitle")]})}):null,!f&&n&&d?(0,s.jsx)(H,{onSubmitSuccess:e=>u.push("".concat(P.k9.MyContactRequests,"/").concat(e)),userData:null==d?void 0:d.data,lookupData:n.data}):null]})]})};var Z=!0;let W=e=>{let{}=e,{t}=(0,l.Bd)(["common"]),a=t("pageTitle.createContactRequest");return(0,s.jsx)(i.M,{title:a,children:(0,s.jsx)(n.D,{width:"xl",children:(0,s.jsx)($,{title:a})})})}},53340:(e,t,a)=>{"use strict";a.d(t,{D:()=>r,U:()=>o});var s=a(37876),l=a(94356);let n={full:"w-full",xxxl:"max-w-screen-2xl",xxl:"max-w-7xl",xl:"max-w-6xl",lg:"max-w-5xl",md:"max-w-4xl"},i="p-4 sm:px-6 md:px-8 sm:py-8 print:!p-0",r=e=>{let{title:t,children:a,width:r="lg",noPad:o=!1,background:c="white"}=e;return(0,s.jsx)("div",{className:"w-full ".concat({white:"bg-white",lightGray:"bg-gray-veryLight",gray:"bg-gray-light"}[c]),children:(0,s.jsxs)("main",{className:"main-container flex w-full flex-1 flex-col items-center ".concat(n[r]," mx-auto print:max-w-full ").concat(o?"":i),children:[t&&(0,s.jsx)(l.NA,{level:1,className:"text-center",children:t}),a]})})},o=e=>{let{children:t,width:a="lg",noPad:l=!1,background:r="white"}=e;return(0,s.jsx)("div",{className:{white:"bg-white",lightGray:"bg-gray-veryLight",gray:"bg-gray-light"}[r],children:(0,s.jsx)("div",{className:"flex w-full flex-1 flex-col items-center ".concat(n[a]," mx-auto print:max-w-full ").concat(l?"":i),children:t})})}},63541:(e,t,a)=>{"use strict";a.d(t,{U:()=>o,c:()=>r});var s=a(22939),l=a(4750),n=a(47181),i=a(55417);let r="09/2026",o=e=>{let{t}=(0,s.Bd)(["map"]),a=(0,l.G)(n.Ff)===i.Y.PrivateUser&&e;return{showLayers:a,attribution:a?t("mapInfoCC",{date:r}):void 0}}},77076:(e,t,a)=>{"use strict";a.d(t,{BT:()=>d,Bg:()=>s,Bq:()=>v,I5:()=>c,Mc:()=>q,QU:()=>n,TR:()=>f,XA:()=>y,Yz:()=>N,_A:()=>j,a0:()=>u,aG:()=>
1o,cw:()=>m,dt:()=>p,hT:()=>r,rQ:()=>x,uG:()=>g,zk:()=>h});let{useGetLookupsQuery:s,useGetFilteredOrganizationByLocationNotSignedQuery:l,useGetFilteredOrganizationByLocationSignedQuery:n,useContactRequestAnonymousPostMutation:i,useGetSellerSideContactRequestListQuery:r,useGetSellerSideContactRequestDetailQuery:o,useGetOrgSideContactRequestListQuery:c,useGetOrgSideContactRequestDetailQuery:d,useSetFavoriteContactRequestMutation:m,useGetContactRequestFiltersQuery:u,useGetContactRequestRepliesQuery:f,useGetSellerSideContactRequestAttachmentsQuery:p,useGetForestDataQuery:x,useGetContactRequestStandsDataQuery:g,usePostSimpleReplyMutation:h,useGetSellerSideContactRequestRecipientDetailQuery:y,useGetUserDataQuery:v,useGetCreateContactRequestStandsDataQuery:j,useGetFilteredEstateByMunicipalityQuery:q,useSubmitContactRequestPostMutation:N}=a(3368)._.injectEndpoints({endpoints:e=>({getCreateContactRequestStandsData:e.query({query:e=>{let{estateId:t}=e;return{url:"/api/CreateContactRequest/getStands",params:{estateId:t},method:"GET"}}}),getFilteredEstateByMunicipality:e.query({query:e=>{let{municipalityId:t}=e;return{url:"/api/CreateContactRequest/GetFilteredEstateByMunicipality",params:{municipalityId:t},method:"GET"}}}),getUserData:e.query({query:()=>({url:"/api/CreateContactRequest/getUserData",method:"GET"})}),getLookups:e.query({query:()=>({url:"/api/CreateContactRequest/getLookups",method:"GET"}),providesTags:()=>["Localized"]}),getFilteredOrganizationByLocationNotSigned:e.query({query:e=>{let{municipalityId:t,requestTypeId:a}=e;return{url:"/api/CreateContactRequest/GetFilteredOrganizationByLocationNotSigned",method:"GET",params:{municipalityId:t,requestTypeId:a}}},providesTags:()=>["Localized"]}),getFilteredOrganizationByLocationSigned:e.query({query:e=>{let{municipalityId:t,realEstateId:a,requestTypeId:s}=e;return{url:"/api/CreateContactRequest/GetFilteredOrganizationByLocationSigned",method:"GET",params:{municipalityId:t,realEstateId:a,requestTypeId:s}}},providesTags:()=>["Localized"]}),contactRequestAnonymousPost:e.mutation({query:e=>{let{recaptchaResponse:t,...a}=e;return{url:"/api/CreateContactRequest/SubmitContactRequestAnonymous",method:"POST",data:a,headers:t?{"g-recaptcha-response":t}:void 0}}}),submitContactRequestPost:e.mutation({query:e=>({url:"/api/CreateContactRequest/SubmitContactRequest",method:"POST",data:e})}),getSellerSideContactRequestList:e.query({query:e=>({url:"/api/ContactRequests/getSellerSideContactRequestList",method:"POST",data:e}),providesTags:()=>["Localized","CR"]}),getSellerSideContactRequestDetail:e.query({query:e=>{let{crId:t}=e;return{url:"/api/ContactRequests/getSellerSideContactRequestDetail",method:"get",params:{crId:t}}},providesTags:()=>["Localized","CR"]}),getOrgSideContactRequestList:e.query({query:e=>({url:"/api/ContactRequests/getOrgSideContactRequestList",method:"POST",data:e}),providesTags:()=>["Localized","CR","OperationArea","OrganizationProfile"]}),getOrgSideContactRequestDetail:e.query({query:e=>{let{crId:t}=e;return{url:"/api/ContactRequests/getOrgSideContactRequestDetail",method:"get",params:{crId:t}}},providesTags:()=>["Localized","CR"]}),setFavoriteContactRequest:e.mutation({query:e=>({url:"/api/ContactRequests/setFavoriteContactRequest",method:"POST",data:e}),invalidatesTags:()=>["CR"]}),getContactRequestFilters:e.query({query:()=>({url:"/api/ContactRequests/getContactRequestFilters",method:"GET"}),providesTags:()=>["Localized"]}),getContactRequestReplies:e.query({query:e=>{let{crId:t}=e;return{url:"/api/SimpleReply/ReplyCr",method:"get",params:{crId:t}}},providesTags:()=>["Localized","CR"]}),getForestData:e.query({query:e=>{let{crId:t}=e;return{url:"/api/ContactRequests/getForestData",params:{contactRequestId:t},method:"get"}}}),getContactRequestStandsData:e.query({query:e=>{let{crId:t}=e;return{url:"/api/ContactRequests/getStandsData",params:{contactRequestId:t},method:"get"}}}),postSimpleReply:e.mutation({query:e=>({url:"/api/SimpleReply/ReplyCr",method:"post",data:e}),invalidatesTags:()=>["CR"]}),getSellerSideContactRequestAttachments:e.query({query:e=>{let{crId:t}=e;return{url:"/api/ContactRequestAttachment/getDocumentList",method:"get",params:{contactRequestId:t}}},providesTags:()=>["Localized","CR"]}),getSellerSideContactRequestRecipientDetail:e.query({query:e=>{let{crId:t}=e;return{url:"/api/ContactRequests/".concat(t,"/getSellerSideContactRequestRecipientDetail"),method:"get",params:{contactRequestId:t}}},providesTags:()=>["Localized","CR"]})})})},79551:(e,t,a)=>
1{(window.__NEXT_P=window.__NEXT_P||[]).push(["/metsanomistaja/omat-puukaupat/luo-yhteydenottopyynto",function(){return a(51580)}])}},e=>{e.O(0,[5446,3091,872,435,7848,8162,9618,1115,4705,912,636,6593,8792],()=>e(e.s=79551)),_N_E=e.O()}]);

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.