1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3348],{6915:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/support/[id]",function(){return n(825)}])},8517:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5893),o=n(6308),i=n(9108);let a=(0,i.F4)(["to{transform:rotate(360deg);}"]),c=i.ZP.div.withConfig({componentId:"sc-fd8a0e27-0"})(["border:2px solid transparent;border-top:2px solid #3498db;border-radius:50%;width:16px;height:16px;position:absolute;margin:0 auto;left:0;right:0;animation:"," 1s linear infinite;display:",";"],a,e=>{let{loading:t}=e;return t?"block":"none"}),l={primary:{background:"#ffc107",color:"#000"},secondary:{background:"#0099c2",color:"#ffffff"},tertiary:{background:"#fff",color:"#000"}},s=i.ZP.button.attrs(e=>({disabled:e.disabled||e.loading})).withConfig({componentId:"sc-fd8a0e27-1"})(["display:inline-flex;justify-content:center;align-items:center;padding:10px 20px;font-size:0.9rem;position:relative;border:none;border-radius:4px;cursor:pointer;transition:background-color 0.3s,color 0.3s;position:relative;width:auto;min-width:",";"," "," &:hover{background-color:",";color:",";}.button-content{opacity:",";}"],e=>e.loading?"80px":"auto",o.S,e=>{var t,n;return"\n background-color: ".concat(null===(t=l[e.variant])||void 0===t?void 0:t.background,";\n color: ").concat(null===(n=l[e.variant])||void 0===n?void 0:n.color,";\n ")},e=>"primary"===e.variant?"#ffb300":"secondary"===e.variant?"#0086b3":"#f8f8f8",e=>"tertiary"===e.variant?"#000":"",e=>e.loading?"0":"1"),d=e=>{let{variant:t="primary",onClick:n=()=>{},disabled:o=!1,loading:i=!1,children:a,...l}=e;return(0,r.jsxs)(s,{variant:t,onClick:n,loading:i,...l,children:[(0,r.jsx)(c,{loading:i}),(0,r.jsx)("span",{className:"button-content",children:a})]})}},1697:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(5893);let o=n(9108).ZP.h1.withConfig({componentId:"sc-ca7a557c-0"})(["font-size:1.4rem;color:",";position:relative;font-family:",";direction:",";text-align:",";margin-bottom:",";border-bottom:",";padding-bottom:",";display:inline-block;"],e=>{let{theme:t}=e;return t.colors.text2},e=>{let{lang:t="fa"}=e;return"fa"===t?"IRANSansX":"Open Sans,sans-serif"},e=>{let{lang:t="fa"}=e;return"fa"===t?"rtl":"ltr"},e=>{let{withUnderline:t}=e;return t?"center":"initial"},e=>{let{withUnderline:t}=e;return t?"1rem":"initial"},e=>{let{withUnderline:t}=e;return t?" 2px solid #ffc107":"none"},e=>{let{withUnderline:t}=e;return t?"5px":"0"}),i=e=>{let{children:t,...n}=e;return(0,r.jsx)(o,{...n,withUnderline:n.withUnderline,children:t})}},1533:function(e,t,n){"use strict";n.d(t,{II:function(){return s},Kx:function(){return d},Qy:function(){return c},Xy:function(){return u},jR:function(){return x},jz:function(){return g},p6:function(){return b},qX:function(){return f}});var r=n(5893),o=n(7294),i=n(9108),a=n(8517);let c=i.ZP.label.withConfig({componentId:"sc-c7b9ca18-0"})(["display:block;font-size:0.9rem;margin:0 0 0.3rem;color:",";"],e=>{let{theme:t}=e;return t.colors.text}),l="\n width: 100%;\n padding: 0.55rem 0.9rem;\n font-size: 0.95rem;\n line-height: 1.5;\n background: transparent;\n border: 1px solid #becad6;\n border-radius: 0.375rem;\n font-family: inherit;\n margin-bottom: 1rem;\n box-sizing: border-box;\n\n &:focus {\n outline: none;\n border-color: #007bff;\n }\n",s=i.ZP.input.withConfig({componentId:"sc-c7b9ca18-1"})([""," color:",";"],l,e=>{let{theme:t}=e;return t.colors.text}),d=i.ZP.textarea.withConfig({componentId:"sc-c7b9ca18-2"})([""," color:",";min-height:160px;resize:vertical;"],l,e=>{let{theme:t}=e;return t.colors.text}),u=i.ZP.div.withConfig({componentId:"sc-c7b9ca18-3"})(["position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;"]),f=i.ZP.p.withConfig({componentId:"sc-c7b9ca18-4"})(["padding:0.8rem 1rem;border-radius:0.375rem;margin:0 0 1rem;background:",";color:",";"],e=>{let{tone:t}=e;return"error"===t?"#fdecee":"#e8f6ec"},e=>{let{tone:t}=e;return"error"===t?"#9b1c2c":"#1e6b3a"}),p=i.ZP.div.withConfig({componentId:"sc-c7b9ca18-5"})(["background:",";border:1px solid ",";border-left:4px solid ",";border-radius:0.5rem;padding:0.8rem 1rem;margin-bottom:0.8rem;"],e=>{let{theme:t}=e;return t.colors.backgroundResult},e=>{let{theme:t}=e;return t.colors.borderResult},e=>{let{mine:t,theme:n}=e;return t?n.colors.secondary:n.colors.primary}),m=i.ZP.div.withConfig({componentId:"sc-c7b9ca18-6"})(["font-size:0.8rem;color:",";margin-bottom:0.4rem;"],e=>{let{theme:t}=e;return t.colors.textSubtle}),h=i.ZP.div.withConfig({componentId:"sc-c7b9ca18-7"})(["white-space:pre-wrap;word-break:break-word;line-height:1.55;"]),b=e=>
1new Date(e).toLocaleString("de-DE",{dateStyle:"medium",timeStyle:"short",timeZone:"Europe/Berlin"}),g=e=>{let{messages:t,labels:n}=e;return(0,r.jsx)("div",{children:t.map(e=>(0,r.jsxs)(p,{mine:"admin"===e.author,children:[(0,r.jsxs)(m,{children:[n[e.author]," \xb7 ",b(e.createdAt)]}),(0,r.jsx)(h,{children:e.body})]},e.id))})},x=e=>{let{label:t,button:n,onSend:i}=e,[l,s]=(0,o.useState)(""),[u,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(null),b=async e=>{if(e.preventDefault(),!l.trim())return;p(!0),h(null);let t=await i(l);p(!1),t?h(t):s("")};return(0,r.jsxs)("form",{onSubmit:b,children:[m&&(0,r.jsx)(f,{tone:"error",children:m}),(0,r.jsx)(c,{htmlFor:"reply",children:t}),(0,r.jsx)(d,{id:"reply",value:l,onChange:e=>s(e.target.value),required:!0}),(0,r.jsx)(a.z,{type:"submit",loading:u,children:n})]})}},825:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w},default:function(){return j}});var r=n(5893),o=n(9008),i=n.n(o),a=n(1664),c=n.n(a),l=n(1163),s=n(7294),d=n(9108),u=n(3370),f=n(8517),p=n(1697),m=n(5373),h=n(1533);let b={open:"Offen",answered:"Beantwortet",closed:"Geschlossen"},g=d.ZP.p.withConfig({componentId:"sc-f950ba57-0"})(["color:",";margin-bottom:1.2rem;line-height:1.6;"],e=>{let{theme:t}=e;return t.colors.textMuted}),x=d.ZP.div.withConfig({componentId:"sc-f950ba57-1"})(["display:flex;gap:0.5rem;margin:1.5rem 0;flex-wrap:wrap;"]);var w=!0;function j(e){let{ticket:t,thread:n}=e,o=(0,l.useRouter)(),[a,d]=(0,s.useState)(null),w=()=>o.replace(o.asPath),j=async e=>{try{let{data:n}=await u.h.post("/support/admin/tickets/".concat(t.id),{body:e});return d(n.emailed?{tone:"ok",text:"Antwort gespeichert und an ".concat(t.email," gesendet.")}:{tone:"error",text:"Antwort gespeichert, aber die E-Mail konnte nicht gesendet werden."}),w(),null}catch(e){return"Die Antwort konnte nicht gespeichert werden."}},v=async e=>{await u.h.patch("/support/admin/tickets/".concat(t.id),{status:e}),w()};return(0,r.jsxs)(m.A,{children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:"#".concat(t.id," ").concat(t.subject," â Support")}),(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,r.jsx)("p",{children:(0,r.jsx)(c(),{href:"/admin/support",children:"â Alle F\xe4lle"})}),(0,r.jsxs)(p.s,{withUnderline:!0,children:["#",t.id," ",t.subject]}),(0,r.jsxs)(g,{children:[t.name?"".concat(t.name," \xb7 "):"",(0,r.jsx)("a",{href:"mailto:".concat(t.email),children:t.email}),(0,r.jsx)("br",{}),"email"===t.source?"Per E-Mail":"\xdcber das Kontaktformular"," ","\xb7 er\xf6ffnet ",(0,h.p6)(t.createdAt)," \xb7 Status:"," ",b[t.status]]}),(0,r.jsx)(h.jz,{messages:n,labels:{requester:t.name||t.email,admin:"wort.app"}}),a&&(0,r.jsx)(h.qX,{tone:a.tone,children:a.text}),(0,r.jsx)(h.jR,{label:"Antwort an ".concat(t.email),button:"Antwort senden",onSend:j}),(0,r.jsx)(x,{children:"closed"!==t.status?(0,r.jsx)(f.z,{variant:"tertiary",onClick:()=>v("closed"),children:"Fall schlie\xdfen"}):(0,r.jsx)(f.z,{variant:"tertiary",onClick:()=>v("open"),children:"Wieder \xf6ffnen"})})]})}}},function(e){e.O(0,[4976,3714,210,8634,6817,5373,2888,9774,179],function(){return e(e.s=6915)}),_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.