PageSourceSearch

https://jobnet.dk/_next/static/chunks/pages/direkte/jobagent/[id]-00d039330ba79c32.js

js jobnet.dk collected 2026-10-02 03:06:27 UTC 3,605 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8547],{19071:e=>{e.exports={maxWidth:"jobagent_maxWidth__I3pUB"}},24168:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>b,default:()=>j});var i=n(37876),l=n(46817),s=n(14232),r=n(88992),o=n(49458),d=n(12433),c=n(78492),a=n(99365),u=n(7634),x=n(19071),h=n.n(x),b=!0;let j=({jobAgentData:e,id:t})=>{let[n,x]=(0,s.useState)(void 0),[b,j]=(0,s.useState)(!1),[g,m]=(0,s.useState)(!1),{register:f,handleSubmit:p,watch:y}=(0,r.mN)({mode:"onSubmit",defaultValues:{frequency:e.dispatchInterval}}),{content:T}=(0,d.H)(u.b.FindJob),A=[{value:"Daily",title:T?.dailyDispatchFrequencyLabel??""},{value:"Weekly",title:T?.weeklyDispatchFrequencyLabel??""}],_=y("frequency"),J=()=>{E({body:{dispatchInterval:_,identifier:t,title:e.title},pathParams:{identifier:t}})},{mutate:E,isPending:v}=(0,a.RsD)({onSuccess:()=>{x(void 0)},onError:()=>{x(T?.editJobAgentErrorMessage)}}),{mutate:N,isPending:k}=(0,a.fIp)({onSuccess:()=>{j(!0),m(!1),x(void 0)},onError:()=>{x(T?.editJobAgentErrorMessage)}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.mc,{className:"pt-8",children:[!b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.DZ,{tag:"h1",children:T?.editJobAgentTitle}),(0,i.jsx)(l.EY,{as:"strong",children:T?.editJobAgentSubTitle}),(0,i.jsx)(l.EY,{children:T?.editJobAgentBodyText}),(0,i.jsx)(l.Zp,{className:"d-flex flex-column justify-content-center",children:(0,i.jsx)(l.Wu,{children:(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p(J)(e).catch(console.error)},children:[(0,i.jsx)(l.DZ,{tag:"h3",children:`Jobagent: ${e.title}`}),n&&(0,i.jsx)(l.Fc,{version:l.q4.Error,title:T?.editJobAgentErrorAlertTitle,text:n}),(0,i.jsxs)(l.fI,{className:"mt-6",children:[(0,i.jsx)(l.fv,{col:12,md:4,children:(0,i.jsx)(l.gE,{label:T?.editJobAgentFrequencyLabel,inputId:"frequency",children:(0,i.jsx)(l.ki,{...f("frequency"),options:A})})}),(0,i.jsx)(l.fv,{col:12,md:5,className:"align-self-end md-px-0",children:(0,i.jsxs)(l.$n,{buttonType:l.VQ.Primary,type:"submit",isLoading:v,children:[!v&&(0,i.jsx)(l.In,{icon:"check"}),T?.saveFrequencyButtonText]})}),(0,i.jsx)(l.fv,{col:12,md:3,className:"align-self-end",children:(0,i.jsxs)(l.$n,{buttonType:l.VQ.Secondary,onClick:()=>{m(!0)},type:"button",children:[!k&&(0,i.jsx)(l.In,{icon:"delete"})," ",T?.cancelJobAgentButtonText]})})]})]})})})]}),b&&(0,i.jsx)(c.default,{title:e.title})]}),(0,i.jsxs)(o.A,{show:g,onClose:()=>{m(!1)},hideFooter:!0,title:T?.deleteJobAgentModalTitle,children:[(0,i.jsx)(l.EY,{className:h().maxWidth,children:T?.deleteJobAgentConfirmationText.replace("{jobAgentTitle}",e.title)}),(0,i.jsxs)(l.BJ,{className:"mt-4",gap:"medium",children:[(0,i.jsx)(l.$n,{buttonType:l.VQ.Secondary,onClick:()=>{m(!1)},children:T?.deleteJobAgentCancelButtonText}),(0,i.jsxs)(l.$n,{buttonType:l.VQ.Primary,isLoading:k,onClick:()=>{N({pathParams:{identifier:t}})},children:[!k&&(0,i.jsx)(l.In,{icon:"delete"}),T?.deleteJobAgentConfirmButtonText]})]})]})]})}},78180:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/direkte/jobagent/[id]",function(){return n(24168)}])},78492:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37876),l=n(46817),s=n(48230),r=n.n(s),o=n(12433),d=n(7634);let c=({title:e})=>{let{content:t}=(0,o.H)(d.b.FindJob);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.DZ,{tag:"h1",children:t?.jobAgentDeletedTitle}),(0,i.jsx)(l.EY,{children:t?.jobAgentDeletedBodyText.replace("{jobAgentTitle}",e)}),(0,i.jsx)(r(),{href:"/find-job",children:t?.jobAgentDeletedFindJobButtonText}),t?.jobAgentDeletedLinkDescription]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=78180)),_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.