1import{r as e,j as n,g as t,h as s,O as r,p as a,l as o,K as i,s as l,m as u,o as c,q as d,I as f,u as h,b as m,T as j,S as b,t as p,$ as k,A as w,v as g,w as q,x,y as v,z as y,B as _,E as I,G as $,H as C,J as S,L as F,N as T,Q as P,R as z,U as E,V as A,W as R,n as L,X as D,Y as M,Z as B,_ as G,a0 as N,a1 as O}from"shared";import{g as V,I as U,D as X,T as H,R as Y,A as W}from"ticket-fields";const J="return-focus-to-ticket-form-field";function K({field:a,newRequestPath:o}){const i=e.createRef();return e.useEffect((()=>{sessionStorage.getItem(J)&&(sessionStorage.removeItem(J),i.current?.firstChild?.focus())}),[]),n.jsxs(n.Fragment,{children:[n.jsx("input",{type:"hidden",name:a.name,value:a.value}),a.options.length>1&&n.jsxs(t,{children:[n.jsx(t.Label,{children:a.label}),n.jsx(s,{isEditable:!1,onChange:({selectionValue:e})=>{if(e&&"number"==typeof e){const n=new URL(window.location.href);n.searchParams.set("ticket_form_id",e),sessionStorage.setItem(J,"true"),window.location.assign(`${o}${n.search}`)}},ref:i,children:a.options.map((e=>n.jsx(r,{value:e.value,label:e.name,isSelected:a.value===e.value,children:e.name},e.value)))})]})]})}function Z({field:e}){const{value:t,name:s}=e;return n.jsx("input",{type:"hidden",name:s,value:t})}async function Q(){const e=await fetch("/api/v2/help_center/sessions.json"),{current_session:n}=await e.json();return n.csrf_token}const ee=2048,ne="tf_",te=/^\d{4}-\d{2}-\d{2}$/,se=["true","false"],re=["pre","strong","b","p","blockquote","ul","ol","li","h2","h3","h4","i","em","br"];function ae(e,n){if(!Number.isNaN(Number(e))){const t=`request[custom_fields][${e}]`;return n.ticketFields.find((e=>e.name===t))}switch(e){case"anonymous_requester_email":return n.emailField;case"due_at":return n.dueDateField;case"collaborators":return n.ccField;case"organization_id":return n.organizationField;default:return n.ticketFields.find((n=>n.name===`request[${e}]`))}}function oe(e){if(!te.test(e))return!1;const n=new Date(e),[t,s,r]=e.split("-").map(Number);return n.getUTCFullYear()===t&&n.getUTCMonth()+1===s&&n.getUTCDate()===r}function ie({ticketFields:n,ccField:t,dueDateField:s,emailField:r,organizationField:o}){return e.useMemo((()=>function(e){const{href:n}=location,t=new URL(n).searchParams,s={...e,ticketFields:[...e.ticketFields]};if(n.length>ee)return e;if(t.get("parent_id"))return e;for(const[e,n]of t){if(!e.startsWith(ne))continue;const t=ae(e.substring(ne.length),s);if(!t)continue;const r=a.sanitize(n,{ALLOWED_TAGS:re});switch(t.type){case"partialcreditcard":continue;case"multiselect":t.value=r.split(",").filter((e=>t.options.some((n=>n.value===e))));break;case"checkbox":se.includes(r)&&(t.value="true"===r?"on":"false"===r?"off":"");break;case"due_at":case"date":oe(r)&&(t.value=r);break;default:t.value=r}}return s}({ticketFields:n,ccField:t,dueDateField:s,emailField:r,organizationField:o})),[n,t,s,r,o])}const le=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ue=l(c)` 2 padding: ${e=>`${e.theme.space.xxs} ${e.theme.space.sm}`}; 3
4 // Removes white spaces for inline elements 5 font-size: 0; 6 7 // Same as height of Tag size="large" + base space (4px) 8 // to give some vertical space between tags 9 --line-height: ${e=>8*e.theme.space.base+e.theme.space.base}px; 10 line-height: var(--line-height); 11`,ce=l.span` 12 display: inline-block; 13 margin-inline-end: ${e=>e.theme.space.sm}; 14`,de=l(d)` 15 ${e=>u({theme:e.theme,shadowWidth:"sm",selector:"&:focus"})} 16`,fe=l.div` 17 display: inline-block; 18 position: relative; 19`,he=l(c)` 20 display: inline-block; 21 min-width: 200px; 22 opacity: 0; 23 user-select: none; 24 height: var(--line-height); 25 line-height: var(--line-height); 26`,me=l(f)` 27 position: absolute; 28 top: 0; 29 left: 0; 30 height: var(--line-height); 31 line-height: var(--line-height); 32`;function je({field:t}){const{label:s,value:r,name:a,error:l,description:u}=t,{t:c}=h(),f=r?r.split(",").map((e=>e.trim())):[],[k,w]=e.useState(f),[g,q]=e.useState(""),x=e.useRef(null),v=e.useRef(null),{getContainerProps:y,getGridProps:_,getGridRowProps:I,getGridCellProps:$,getTagCloseProps:C,getInputProps:S,getAnnouncementProps:F,announcement:T}=function({tags:n,onTagsChange:t,inputValue:s,onInputValueChange:r,inputRef:a,gridRowRef:l,i18n:u}){const[c,d]=e.useState(0),[f,h]=e.useState(""),m=e.useCallback(((e,n)=>{d(n)}),[d]),{getGridProps:j,getGridCellProps:b}=o({matrix:[n],rowIndex:0,colIndex:c,onChange:m}),p=e=>n.includes(e),k=e=>{t([...n,e]),h(u.addedTag(e))},w=e=>{const s=n[e];t(n.filter(((n,t)=>t!==e))),h(u.removedTag(s)),d(0),setTimeout((()=>{const e=l.current?.querySelector('[tabindex="0"]');e?.focus()}),100)},g=e=>{e.target===e.currentTarget&&a.current?.focus()},q=()=>{d(0)},x=e=>{const n=e.target.value;!n||e.key!==i.SPACE&&e.key!==i.ENTER&&e.key!==i.TAB&&e.key!==i.COMMA||(e.preventDefault(),p(n)||k(n),r(""))},v=e=>{const n=e.target.value,[t,s]=[n.slice(0,-1),n.slice(-1)];" "===s||","===s?(t.length>0&&!p(t)&&k(t),r("")):r(n)},y=e=>{e.preventDefault();const s=e.clipboardData.getData("text"),r=new Set(s.split(/[\s,;]+/).filter((e=>!n.includes(e))));t([...n,...r]),h(u.addedTags([...r]))},_=e=>{const n=e.target.value;n&&(p(n)||k(n),r(""))},I=e=>n=>{"Backspace"===n.code&&(n.preventDefault(),w(e))},$=e=>()=>{w(e)};return{getContainerProps:()=>({onClick:g,onBlur:q,tabIndex:-1}),getGridProps:j,getGridRowProps:()=>({role:"row"}),getGridCellProps:e=>b({rowIndex:0,colIndex:e,onKeyDown:I(e)}),getTagCloseProps:e=>({onClick:$(e)}),getInputProps:()=>({value:s,onChange:v,onKeyDown:x,onPaste:y,onBlur:_}),announcement:f,getAnnouncementProps:()=>({"aria-live":"polite","aria-relevant":"text"})}}({tags:k,onTagsChange:w,inputValue:g,onInputValueChange:q,inputRef:x,gridRowRef:v,i18n:{addedTag:e=>c("new-request-form.cc-field.email-added","{{email}} has been added",{email:e}),removedTag:e=>c("new-request-form.cc-field.email-removed","{{email}} has been removed",{email:e}),addedTags:e=>c("new-request-form.cc-field.emails-added","{{emails}} have been added",{emails:e})}}),P=(e,t,s)=>n.jsxs(de,{size:"large","aria-label":c("new-request-form.cc-field.email-label","{{email}} - Press Backspace to remove",{email:s}),hue:t?void 0:"red",children:[!t&&n.jsx(d.Avatar,{children:n.jsx(p,{})}),n.jsx("span",{children:s}),n.jsx(d.Close,{...C(e)})]});return n.jsxs(m,{children:[n.jsx(m.Label,{children:s}),u&&n.jsx(m.Hint,{children:u}),n.jsxs(ue,{...y(),children:[k.length>0&&n.jsx("span",{..._({"aria-label":c("new-request-form.cc-field.container-label","Selected CC emails")}),children:n.jsx("span",{ref:v,...I(),children:k.map(((e,t)=>{const s=le.test(e);return s?n.jsx(ce,{...$(t),children:P(t,s,e)},t):n.jsx(j,{content:c("new-request-form.cc-field.invalid-email","Invalid email address"),children:n.jsx(ce,{...$(t),children:P(t,s,e)})},t)}))})}),n.jsxs(fe,{children:[n.jsx(he,{isBare:!0,"aria-hidden":"true",tabIndex:-1,children:g}),n.jsx(me,{ref:x,isBare:!0,...S()})]})]}),l&&n.jsx(m.Message,{validation:"error",children:l}),k.map((e=>n.jsx("input",{type:"hidden",name:a,value:e},e))),n.jsx(b,{hidden:!0,...F(),children:T})]})}const be=k` 33 from { 34 grid-template-rows: 0fr; 35 } 36 to { 37 grid-template-rows: 1fr; 38 } 39`,pe=l.div` 40 display: grid; 41 animation: ${be} 200ms forwards; 42`,ke=l.div` 43 overflow: hidden; 44`,we=l.ul` 45 list-style: none; 46 padding: 0; 47 margin: 0; 48`,ge=l.li` 49 margin: ${e=>e.theme.space.sm} 0; 50`;function qe({query:t,locale:s}){const r=function(n,t){const[s,r]=e.useState(n);return e.useEffect((()=>{const e=setTimeout((()=>r(n)),t);return()=>{clearTimeout(e)}}),[n,t]),s}(t,500),[a,o]=e.useState([]),i=e.useRef({}),{t:l}=h();return e.useEffect((()=>{const e=r?.trim().toLocaleLowerCase();if(!e||!function(e){const n=e.charCodeAt(0);return n>=19968&&n<=195103?e.length>=2:e.length>=3}(e))return void o([]);const n=new URL(`${window.location.origin}/api/v2/help_center/deflection/suggestions.json`);n.searchParams.append("locale",s),n.searchParams.append("query",e);const t=i.current[n.toString()];t?o(t):fetch(n).then((e=>e.json())).then((({results:e})=>{i.current[n.toString()]=e,o(e)}))}),[r,s]),a.length>0?n.jsx(pe,{"data-test-id":"suggested-articles",children:n.jsxs(ke,{children:[n.jsx("h2",{children:l("new-request-form.suggested-articles","Suggested articles")}),n.jsx(we,{children:a.map((e=>n.jsx(ge,{children:n.jsx(w,{isExternal:!0,rel:"noopener",externalIconLabel:l("new-request-form.suggested-articles-external-link-label","(Opens in a new tab)"),href:e.html_url,children:e.name})},e.html_url)))})]})}):null}const xe=l.h3` 51 font-size: ${e=>e.theme.fontSizes.md}; 52 font-weight: ${e=>e.theme.fontWeights.bold}; 53`,ve=l(g.Header)` 54 color: ${({theme:e})=>q({theme:e,hue:"successHue",shade:700})}; 55`,ye=l(x)` 56 position: absolute; 57 top: ${e=>5.5*e.theme.space.base}px; 58 inset-inline-start: ${e=>4*e.theme.space.base+"px"}; 59`,_e=l(w)` 60 display: inline-block; 61 margin-top: ${e=>e.theme.space.sm}; 62`;function Ie({authToken:t,interactionAccessToken:s,articles:r,requestId:a,hasRequestManagement:o,isSignedIn:i,helpCenterPath:l,requestsPath:u,requestPath:c}){const[d,f]=e.useState(0),m=v(),{t:j}=h(),b=()=>String(r[d]?.article_id),p=()=>{$({type:"success",message:j("new-request-form.answer-bot-modal.request-submitted","Your request was successfully submitted")}),window.location.assign((()=>
62{if(i)return o?c:l;{const e=new URLSearchParams;return e.set("return_to",u),`${l}?${e.toString()}`}})())};return n.jsxs(g,{appendToNode:m,onClose:()=>{p()},children:[n.jsxs(ve,{tag:"h2",children:[n.jsx(ye,{}),j("new-request-form.answer-bot-modal.request-submitted","Your request was successfully submitted")]}),n.jsxs(g.Body,{children:[n.jsx(xe,{children:j("new-request-form.answer-bot-modal.title","While you wait, do any of these articles answer your question?")}),n.jsx("p",{children:j("new-request-form.answer-bot-modal.footer-content","If it does, we can close your recent request {{requestId}}",{requestId:`â#${a}â¬`})}),n.jsx(y,{level:4,expandedSections:[d],onChange:e=>{f(e)},children:r.map((({article_id:e,html_url:s,snippet:r,title:a})=>n.jsxs(y.Section,{children:[n.jsx(y.Header,{children:n.jsx(y.Label,{children:a})}),n.jsxs(y.Panel,{children:[n.jsx(_,{dangerouslySetInnerHTML:{__html:r}}),n.jsx(_e,{isExternal:!0,href:`${s}?auth_token=${t}`,target:"_blank",children:j("new-request-form.answer-bot-modal.view-article","View article")})]})]},e)))})]}),n.jsxs(g.Footer,{children:[n.jsx(g.FooterItem,{children:n.jsx(I,{onClick:()=>{(async()=>{await fetch("/api/v2/answer_bot/rejection",{method:"POST",body:JSON.stringify({article_id:b(),interaction_access_token:s,reason_id:0}),headers:{"Content-Type":"application/json"}}),p()})()},children:j("new-request-form.answer-bot-modal.mark-irrelevant","No, I need help")})}),n.jsx(g.FooterItem,{children:n.jsx(I,{isPrimary:!0,onClick:()=>{(async()=>{(await fetch("/api/v2/answer_bot/resolution",{method:"POST",body:JSON.stringify({article_id:b(),interaction_access_token:s}),headers:{"Content-Type":"application/json"}})).ok?$({type:"success",message:j("new-request-form.answer-bot-modal.request-closed","Nice. Your request has been closed.")}
62):$({type:"error",message:j("new-request-form.answer-bot-modal.solve-error","There was an error closing your request")}),window.location.href=l})()},children:j("new-request-form.answer-bot-modal.solve-request","Yes, close my request")})})]}),n.jsx(g.Close,{"aria-label":j("new-request-form.close-label","Close")})]})}var $e;!function(e){e.POSITIVE="resolution",e.NEGATIVE="rejection"}($e||($e={}));const Ce=l.div` 63 border-top: 1px solid ${e=>C("neutralHue",300,e.theme)}; 64 padding: ${e=>e.theme.space.sm} 65 calc(2 * ${e=>e.theme.space.sm}); 66 font-size: ${e=>e.theme.fontSizes.sm}; 67`,Se=l.div` 68 margin-top: ${e=>e.theme.space.sm}; 69`,Fe=l.div` 70 margin-top: ${e=>e.theme.space.sm}; 71 padding-bottom: ${e=>e.theme.space.sm}; 72`,Te=l(b)` 73 color: ${e=>C("blue",600,e.theme)}; 74 a { 75 text-decoration: underline; 76 } 77`,Pe=l.div` 78 display: flex; 79 align-items: center; 80 justify-content: space-between; 81`;function ze({citations:t,testId:s}){const{t:r}=h(),[a,o]=e.useState(!1);return n.jsx(Ce,{children:a?n.jsxs(Se,{children:[n.jsx(_,{size:"small",children:r("new-request-form.answer-bot-generative-modal.sources_description","This message was automatically generated using AI and the following article sources:")}),n.jsx(Fe,{children:t.map(((e,r)=>n.jsxs(Te,{children:[n.jsx(w,{id:`${s}-source-link-${r}`,href:e.html_url,target:"_blank",children:e.title}),r<t.length-1&&", "]},e.article_id)))})]}):n.jsxs(Pe,{children:[n.jsxs(b,{children:[n.jsx(b.StartIcon,{children:n.jsx(S,{})}),r("new-request-form.answer-bot-generative-modal.generated_by_ai","Generated by AI")]}),n.jsx(I,{size:"small",isBasic:!0,onClick:()=>o(!0),id:`${s}-show-sources-button`,children:r("new-request-form.answer-bot-generative-modal.view_sources","View Sources")})]})})}const Ee=l.div` 82 background-color: #f4f6f8; 83 border-radius: 10px; 84`,Ae=l.div` 85 margin-top: ${e=>e.theme.space.xs}; 86 padding: calc(2 * ${e=>e.theme.space.sm}); 87 white-space: break-spaces; 88`;function Re({generatedAnswer:e,citations:t,testId:s}){return n.jsxs(Ee,{children:[n.jsx(Ae,{id:`${s}-generated-answer-content`,children:e}),n.jsx(ze,{citations:t,testId:s})]})}const Le=l.div` 89 display: flex; 90 gap: ${e=>e.theme.space.xs}; 91 margin-top: ${e=>e.theme.space.md}; 92 align-items: end; 93`,De=l.div` 94 max-height: 40px; /* specific height, avatar size plus a small difference */ 95 display: flex; 96 padding: ${e=>e.theme.space.sm}; 97 border-radius: ${e=>e.theme.rtl?"16px 16px 0px 16px":"16px 16px 16px 0px"}; 98 gap: ${e=>e.theme.space.sm}; 99 align-items: center; 100 background-color: #f4f6f8; 101`;function Me({isLoading:e,isError:t,generatedAnswer:s,citations:r,testId:a}){const{t:o}=h();return t?n.jsx(b,{children:o("new-request-form.answer-bot-generative-modal.error.subtitle","The AI wasnât able to find an answer this time. Don't worry, a human agent will get back to you by email shortly.")}):n.jsxs(n.Fragment,{children:[n.jsx(b,{children:e?o("new-request-form.answer-bot-generative-modal.loading.subtitle","While you wait, an AI agent will try to find an answer to your request. If you close this window, you'll receive an email follow-up."):o("new-request-form.answer-bot-generative-modal.default.subtitle","If the following information resolves your request and you no longer require assistance, you can inform us by clicking 'This helped, solve my request'.")}),n.jsxs(Le,{children:[n.jsx(F,{size:"small",isSystem:!0,children:n.jsx("img",{src:"https://accounts.zendesk.com/flow_director/assets/default_avatar.png",alt:o("new-request-form.answer-bot-generative-modal.ai_agent_avatar_alt","AI Agent Avatar")})}),n.jsxs(De,{children:[n.jsx(b,{children:e?o("new-request-form.answer-bot-generative-modal.loading.start","Thinking"):o("new-request-form.answer-bot-generative-modal.loading.finished","I found something that might help...")}),e&&n.jsx(T,{size:16})]})]}),s&&n.jsx(Re,{generatedAnswer:s,citations:r,testId:a})]})}function Be({isLoading:e,isError:t,isSubmittingFeedback:s,testId:r,onClose:a,onReject:o,onResolve:i}){const{t:l}=h();return t?n.jsx(I,{isPrimary:!0,onClick:a,children:l("new-request-form.answer-bot-generative-modal.buttons.ok","Ok")}):e?n.jsxs(n.Fragment,{children:[n.jsx(P,{children:n.jsx(I,{onClick:a,id:`${r}-discard-button`,isBasic:!0,children:l("new-request-form.answer-bot-generative-modal.buttons.close","Close")})}),n.jsx(P,{children:n.jsx(I,{isPrimary:!0,disabled:!0,children:n.jsx(T,{size:24,color:"white"})})})]}):n.jsxs(n.Fragment,{children:[n.jsx(P,{children:n.jsx(I,{onClick:o,id:`${r}-reject-button`,isBasic:!0,disabled:s,children:l("new-request-form.answer-bot-generative-modal.buttons.still_need_help","I still need help")})}),n.jsx(P,{children:n.jsx(I,{isPrimary:!0,onClick:i,id:`${r}-resolve-button`,disabled:s,children:l("new-request-form.answer-bot-generative-modal.buttons.this_helped","This helped, solve my request")})})]})}const Ge="ab-generative-modal",Ne=e=>`/hc/answer_bot/generate_reply_status/${e}`,Oe=e=>`/hc/answer_bot/generate_reply_v2/${e}`,Ve=e=>`/hc/answer_bot/generated_response/${e}`,Ue=(e,n)=>`/api/v2/answer_bot/generative_deflection/${e}?auth_token=${n}`;function Xe({requestId:t,hasRequestManagement:s,isSignedIn:r,helpCenterPath:a,requestsPath:o,requestPath:i}){const l=v(),{t:u}=h(),[c,d]=e.useState({generatedAnswer:"",citations:[],authToken:"",isLoading:!0,isError:!1,isSubmittingFeedback:!1}),f=e.useRef(null);e.useEffect((()=>{let e=!0;const n={pending:async e=>!1,completed:async e=>{try{const n=await fetch(Ve(e),{credentials:"same-origin"}),{generated_answer:t,citations:s,ticket_deflection:r}=await n.json();return d((e=>({...e,generatedAnswer:t,citations:s,authToken:r.auth_token,isLoading:!1,isError:!t}))),!0}catch(e){return d((e=>({...e,isError:!0,isLoading:!1}))),!0}},failed:async e=>(d((e=>({...e,isError:!0,isLoading:!1}))),!0),not_found:async e=>(d((e=>({...e,isError:!0,isLoading:!1}))),!0)};return async function(){try{await fetch(Oe(t),{credentials:"same-origin"})}catch(n){e&&d((e=>({...e,isError:!0,isLoading:!1})))}const s=async()=>{try{const e=await fetch(Ne(t),{credentials:"same-origin"}),{status:s}=await e.json();if(!n[s])throw new Error(`Unknown job status: ${s}`);return await(n[s]?.(t))}catch(e){return d((e=>({...e,isError:!0,isLoading:!1}))),!0}};await s()||(f.current=setInterval((async()=>{await s()&&f.current&&(clearInterval(f.current),f.current=null)}),2e3))}(),()=>{e=!1,f.current&&(clearInterval(f.current),f.current=null)}}),[t]);const m=e=>{$({type:"success",message:e}),window.location.assign((()=>
101{if(r)return s?i:a;{const e=new URLSearchParams;return e.set("return_to",o),`${a}?${e.toString()}`}})())},j=()=>{m(u("new-request-form.answer-bot-generative-modal.request-submitted","Your request was successfully submitted"))},b=()=>{L({type:"error",message:u("new-request-form.answer-bot-generative-modal.feedback-error","There was an error submitting your feedback")}),d((e=>({...e,isSubmittingFeedback:!1})))},p=async e=>{const{authToken:n}=c;if(!n)return b(),void console.error("[GenerativeAnswerBotModal][sendFeedback]: Auth token is missing");d((e=>({...e,isSubmittingFeedback:!0})));try{const t=await Q();(await fetch(Ue(e,n),{headers:{...t&&{"X-CSRF-Token":t}}})).ok?m(e===$e.POSITIVE?u("new-request-form.answer-bot-generative-modal.request-closed","Your request has been solved"):u("new-request-form.answer-bot-generative-modal.request-submitted","Your request was successfully submitted")):b()}catch(e){b()}};return n.jsxs(g,{appendToNode:l,onClose:j,isLarge:!0,children:[n.jsx(z,{children:c.isError?u("new-request-form.answer-bot-generative-modal.error.title","An agent will be in touch soon"):u("new-request-form.answer-bot-generative-modal.default.title","Your request was submitted successfully")}),n.jsx(E,{children:n.jsx(Me,{isLoading:c.isLoading,isError:c.isError,generatedAnswer:c.generatedAnswer,citations:c.citations,testId:Ge})}),n.jsx(A,{children:n.jsx(Be,{isLoading:c.isLoading,isError:c.isError,isSubmittingFeedback:c.isSubmittingFeedback,testId:Ge,onClose:j,onReject:async()=>await p($e.NEGATIVE),onResolve:async()=>await p($e.POSITIVE)})}),n.jsx(R,{"aria-label":u("new-request-form.answer-bot-generative-modal.close_modal_aria_label","Close modal")})]})}const He=l(_)` 102 margin: ${e=>e.theme.space.md} 0; 103`,Ye=l.form` 104 display: flex; 105 flex-direction: column; 106 gap: ${e=>e.theme.space.md}; 107`,We=l.div` 108 margin-top: ${e=>e.theme.space.md}; 109`;function Je({requestForm:t,wysiwyg:s,newRequestPath:r,parentId:a,parentIdPath:o,locale:i,baseLocale:l,hasAtMentions:u,userRole:c,userId:d,brandId:f,showSuggestedArticles:m,organizations:j,answerBotModal:b}){const{ticket_fields:p,action:k,http_method:g,accept_charset:q,errors:x,parent_id_field:v,ticket_form_field:y,email_field:_,cc_field:$,organization_field:C,due_date_field:S,end_user_conditions:F,attachments_field:T,inline_attachments_fields:P,description_mimetype_field:z}=t,{answerBot:E,answerBotGenerativeExperience:A}=b,{ticketFields:R,emailField:L,ccField:M,organizationField:B,dueDateField:G}=ie({ticketFields:p,emailField:_,ccField:$,organizationField:C,dueDateField:S}),[N,O]=e.useState(R),[J,ee]=e.useState(B),[ne,te]=e.useState(G),se=V(N,F),{formRefCallback:re,handleSubmit:ae}=function(n){const t=e.useRef(!1),s=e.useRef(!1);return{formRefCallback:e.useCallback((e=>{e&&!t.current&&(t.current=!0,e.submit=async()=>{if(!1===s.current){s.current=!0;const t=await Q(),r=document.createElement("input");r.type="hidden",r.name="authenticity_token",r.value=t,e.appendChild(r);const a=n.filter((e=>"partialcreditcard"===e.type));for(const n of a){const t=e.querySelector(`input[name="${n.name}"]`);t&&t instanceof HTMLInputElement&&4===t.value.length&&(t.value=`XXXXXXXXX${t.value}`)}HTMLFormElement.prototype.submit.call(e)}})}),[n]),handleSubmit:e=>{e.preventDefault(),e.target.submit()}}}(N),{t:oe}=h(),le=j.length>0&&j[0]?.id?j[0]?.id?.toString():null,ue=e.useCallback(((e,n)=>{O(N.map((t=>t.name===e.name?{...t,value:n}:t)))}),[N]);const ce=e.useCallback((e=>{null!==ne&&te({...ne,value:e})}),[ne]),de=!!(E?.auth_token&&E?.interaction_access_token&&E?.articles?.length&&E?.request_id),fe=A&&Boolean(A.request_id);return n.jsxs(n.Fragment,{children:[a&&n.jsx(He,{children:n.jsx(w,{href:o,children:oe("new-request-form.parent-request-link","Follow-up to request {{parentId}}",{parentId:`â#${a}â¬`})})}),n.jsx(He,{"aria-hidden":"true",children:oe("new-request-form.required-fields-info","Fields marked with an asterisk (*) are required.")}),n.jsxs(Ye,{ref:re,action:k,method:g,acceptCharset:q,noValidate:!0,onSubmit:ae,children:[x&&n.jsx(D,{type:"error",children:x}),v&&n.jsx(Z,{field:v}),y.options.length>0&&n.jsx(K,{field:y,newRequestPath:r}),L&&n.jsx(U,{field:L},L.name),M&&n.jsx(je,{field:M}),J&&n.jsx(X,{field:J,onChange:e=>{!function(e){null!==J&&ee({...J,value:e})}(e)}},J.name),se.map((t=>"subject"===t.type?n.jsxs(e.Fragment,{children:[n.jsx(U,{field:t,onChange:e=>ue(t,e)}),m&&n.jsx(qe,{query:t.value,locale:i})]},t.name):"description"===t.type?n.jsxs(e.Fragment,{children:[n.jsx(H,{field:t,hasWysiwyg:s,baseLocale:l,hasAtMentions:u,userRole:c,brandId:f,onChange:e=>ue(t,e)}),n.jsx("input",{type:"hidden",name:z.name,value:s?"text/html":"text/plain"})]},t.name):n.jsx(Y,{field:t,baseLocale:l,hasAtMentions:u,userRole:c,userId:d,brandId:f,dueDateField:ne,handleDueDateChange:ce,organizationField:J,defaultOrganizationId:le,visibleFields:se,handleChange:ue}
109,t.name))),T&&n.jsx(W,{field:T,baseLocale:l}),P.map((({type:e,name:t,value:s},r)=>n.jsx("input",{type:e,name:t,value:s},r))),n.jsx(We,{children:(0===y.options.length||y.value)&&n.jsx(I,{isPrimary:!0,type:"submit",children:oe("new-request-form.submit","Submit")})})]}),de&&n.jsx(Ie,{authToken:E.auth_token,interactionAccessToken:E.interaction_access_token,articles:E.articles,requestId:E.request_id,...b}),fe&&n.jsx(Xe,{requestId:Number(A.request_id),...b})]})}async function Ke(e,t,s){const{baseLocale:r}=t;M(r),await B(r,[()=>function(e){switch(e){case"./translations/locales/af.json":return import("new-request-form-translations").then((function(e){return e.a}));case"./translations/locales/ar-x-pseudo.json":return import("new-request-form-translations").then((function(e){return e.b}));case"./translations/locales/ar.json":return import("new-request-form-translations").then((function(e){return e.c}));case"./translations/locales/az.json":return import("new-request-form-translations").then((function(e){return e.d}));case"./translations/locales/be.json":return import("new-request-form-translations").then((function(e){return e.e}));case"./translations/locales/bg.json":return import("new-request-form-translations").then((function(e){return e.f}));case"./translations/locales/bn.json":return import("new-request-form-translations").then((function(e){return e.g}));case"./translations/locales/bs.json":return import("new-request-form-translations").then((function(e){return e.h}));case"./translations/locales/ca.json":return import("new-request-form-translations").then((function(e){return e.i}));case"./translations/locales/cs.json":return import("new-request-form-translations").then((function(e){return e.j}));case"./translations/locales/cy.json":return import("new-request-form-translations").then((function(e){return e.k}));case"./translations/locales/da.json":return import("new-request-form-translations").then((function(e){return e.l}));case"./translations/locales/de-de.json":return import("new-request-form-translations").then((function(e){return e.m}));case"./translations/locales/de-x-informal.json":return import("new-request-form-translations").then((function(e){return e.n}));case"./translations/locales/de.json":return import("new-request-form-translations").then((function(e){return e.o}));case"./translations/locales/el.json":return import("new-request-form-translations").then((function(e){return e.p}));case"./translations/locales/en-001.json":return import("new-request-form-translations").then((function(e){return e.q}));case"./translations/locales/en-150.json":return import("new-request-form-translations").then((function(e){return e.r}));case"./translations/locales/en-au.json":return import("new-request-form-translations").then((function(e){return e.s}));case"./translations/locales/en-ca.json":return import("new-request-form-translations").then((function(e){return e.t}));case"./translations/locales/en-gb.json":return import("new-request-form-translations").then((function(e){return e.u}));case"./translations/locales/en-my.json":return import("new-request-form-translations").then((function(e){return e.v}));case"./translations/locales/en-ph.json":return import("new-request-form-translations").then((function(e){return e.w}));case"./translations/locales/en-se.json":return import("new-request-form-translations").then((function(e){return e.x}));case"./translations/locales/en-us.json":return import("new-request-form-translations").then((function(e){return e.y}));case"./translations/locales/en-x-dev.json":return import("new-request-form-translations").then((function(e){return e.z}));case"./translations/locales/en-x-keys.json":return import("new-request-form-translations").then((function(e){return e.A}));case"./translations/locales/en-x-obsolete.json":return import("new-request-form-translations").then((function(e){return e.B}));case"./translations/locales/en-x-pseudo.json":return import("new-request-form-translations").then((function(e){return e.C}));case"./translations/locales/en-x-test.json":return import("new-request-form-translations").then((function(e){return e.D}));case"./translations/locales/es-419.json":return import("new-request-form-translations").then((function(e){return e.E}));case"./translations/locales/es-ar.json":return import("new-request-form-translations").then((function(e){return e.F}));case"./translations/locales/es-cl.json":return import("new-request-form-translations").then((function(e){return e.G}));case"./translations/locales/es-es.json":return import("new-request-form-translations").then((function(e){return e.H}));case"./translations/locales/es-mx.json":return import("new-request-form-translations").then((function(e){return e.I}));case"./translations/locales/es-pe.json":return import("new-request-form-translations").then((function(e){return e.J}));case"./translations/locales/es.json":return import("new-request-form-translations").then((function(e){return e.K}));case"./translations/locales/et.json":return import("new-request-form-translations").then((function(e){return e.L}));case"./translations/locales/eu.json":return import("new-request-form-translations").then((function(e){return e.M}));case"./translations/locales/fa-af.json":return import("new-request-form-translations").then((function(e){return e.N}));case"./translations/locales/fa.json":return import("new-request-form-translations").then((function(e){return e.O}));case"./translations/locales/fi.json":return import("new-request-form-translations").then((function(e){return e.P}));case"./translations/locales/fil.json":return import("new-request-form-translations").then((function(e){return e.Q}));case"./translations/locales/fo.json":return import("new-request-form-translations").then((function(e){return e.R}));case"./translations/locales/fr-ca.json":return import("new-request-form-translations").then((function(e){return e.S}));case"./translations/locales/fr-dz.json":return import("new-request-form-translations").then((function(e){return e.T}));case"./translations/locales/fr-mu.json":return import("new-request-form-translations").then((function(e){return e.U}));case"./translations/locales/fr.json":return import("new-request-form-translations").then((function(e){return e.V}));case"./translations/locales/ga.json":return import("new-request-form-translations").then((function(e){return e.W}));case"./translations/locales/he.json":return import("new-request-form-translations").then((function(e){return e.X}));case"./translations/locales/hi.json":return import("new-request-form-translations").then((function(e){return e.Y}));case"./translations/locales/hr.json":return import("new-request-form-translations").then((function(e){return e.Z}
109));case"./translations/locales/hu.json":return import("new-request-form-translations").then((function(e){return e._}));case"./translations/locales/hy.json":return import("new-request-form-translations").then((function(e){return e.$}));case"./translations/locales/id.json":return import("new-request-form-translations").then((function(e){return e.a0}));case"./translations/locales/is.json":return import("new-request-form-translations").then((function(e){return e.a1}));case"./translations/locales/it-ch.json":return import("new-request-form-translations").then((function(e){return e.a2}));case"./translations/locales/it.json":return import("new-request-form-translations").then((function(e){return e.a3}));case"./translations/locales/ja.json":return import("new-request-form-translations").then((function(e){return e.a4}));case"./translations/locales/ka.json":return import("new-request-form-translations").then((function(e){return e.a5}));case"./translations/locales/kk.json":return import("new-request-form-translations").then((function(e){return e.a6}));case"./translations/locales/kl-dk.json":return import("new-request-form-translations").then((function(e){return e.a7}));case"./translations/locales/km.json":return import("new-request-form-translations").then((function(e){return e.a8}));case"./translations/locales/ko.json":return import("new-request-form-translations").then((function(e){return e.a9}));case"./translations/locales/ku.json":return import("new-request-form-translations").then((function(e){return e.aa}));case"./translations/locales/ky.json":return import("new-request-form-translations").then((function(e){return e.ab}));case"./translations/locales/lt.json":return import("new-request-form-translations").then((function(e){return e.ac}));case"./translations/locales/lv.json":return import("new-request-form-translations").then((function(e){return e.ad}));case"./translations/locales/mk.json":return import("new-request-form-translations").then((function(e){return e.ae}));case"./translations/locales/mn.json":return import("new-request-form-translations").then((function(e){return e.af}));case"./translations/locales/ms.json":return import("new-request-form-translations").then((function(e){return e.ag}));case"./translations/locales/mt.json":return import("new-request-form-translations").then((function(e){return e.ah}));case"./translations/locales/my.json":return import("new-request-form-translations").then((function(e){return e.ai}));case"./translations/locales/ne.json":return import("new-request-form-translations").then((function(e){return e.aj}));case"./translations/locales/nl-be.json":return import("new-request-form-translations").then((function(e){return e.ak}));case"./translations/locales/nl.json":return import("new-request-form-translations").then((function(e){return e.al}));case"./translations/locales/no.json":return import("new-request-form-translations").then((function(e){return e.am}));case"./translations/locales/pl.json":return import("new-request-form-translations").then((function(e){return e.an}));case"./translations/locales/pt-br.json":return import("new-request-form-translations").then((function(e){return e.ao}));case"./translations/locales/pt.json":return import("new-request-form-translations").then((function(e){return e.ap}));case"./translations/locales/ro-md.json":return import("new-request-form-translations").then((function(e){return e.aq}));case"./translations/locales/ro.json":return import("new-request-form-translations").then((function(e){return e.ar}));case"./translations/locales/ru.json":return import("new-request-form-translations").then((function(e){return e.as}));case"./translations/locales/si.json":return import("new-request-form-translations").then((function(e){return e.at}));case"./translations/locales/sk.json":return import("new-request-form-translations").then((function(e){return e.au}));case"./translations/locales/sl.json":return import("new-request-form-translations").then((function(e){return e.av}));case"./translations/locales/sq.json":return import("new-request-form-translations").then((function(e){return e.aw}));case"./translations/locales/sr-me.json":return import("new-request-form-translations").then((function(e){return e.ax}));case"./translations/locales/sr.json":return import("new-request-form-translations").then((function(e){return e.ay}));case"./translations/locales/sv.json":return import("new-request-form-translations").then((function(e){return e.az}));case"./translations/locales/sw-ke.json":return import("new-request-form-translations").then((function(e){return e.aA}));case"./translations/locales/ta.json":return import("new-request-form-translations").then((function(e){return e.aB}));case"./translations/locales/th.json":return import("new-request-form-translations").then((function(e){return e.aC}));case"./translations/locales/tr.json":return import("new-request-form-translations").then((function(e){return e.aD}));case"./translations/locales/uk.json":return import("new-request-form-translations").then((function(e){return e.aE}));case"./translations/locales/ur-pk.json":return import("new-request-form-translations").then((function(e){return e.aF}));case"./translations/locales/ur.json":return import("new-request-form-translations").then((function(e){return e.aG}));case"./translations/locales/uz.json":return import("new-request-form-translations").then((function(e){return e.aH}));case"./translations/locales/vi.json":return import("new-request-form-translations").then((function(e){return e.aI}));case"./translations/locales/zh-cn.json":return import("new-request-form-translations").then((function(e){return e.aJ}));case"./translations/locales/zh-tw.json":return import("new-request-form-translations").then((function(e){return e.aK}));default:return new Promise((function(n,t){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`./translations/locales/${r}.json`),()=>function(e){switch(e){case"../ticket-fields/translations/locales/af.json":return import("ticket-fields").then((function(e){return e.b}));case"../ticket-fields/translations/locales/ar-x-pseudo.json":return import("ticket-fields").then((function(e){return e.c}));case"../ticket-fields/translations/locales/ar.json":return import("ticket-fields").then((function(e){return e.d}));case"../ticket-fields/translations/locales/az.json":return import("ticket-fields").then((function(e){return e.e}));case"../ticket-fields/translations/locales/be.json":return import("ticket-fields").then((function(e){return e.f}));case"../ticket-fields/translations/locales/bg.json":return import("ticket-fields").then((function(e){return e.h}));case"../ticket-fields/translations/locales/bn.json":return import("ticket-fields").then((function(e){return e.i}));case"../ticket-fields/translations/locales/bs.json":return import("ticket-fields").then((function(e){return e.j}));case"../ticket-fields/translations/locales/ca.json":return import("ticket-fields").then((function(e){return e.k}));case"../ticket-fields/translations/locales/cs.json":return import("ticket-fields").then((function(e){return e.l}));case"../ticket-fields/translations/locales/cy.json":return import("ticket-fields").then((function(e){return e.m}));case"../ticket-fields/translations/locales/da.json":return import("ticket-fields").then((function(e){return e.n}));case"../ticket-fields/translations/locales/de-de.json":return import("ticket-fields").then((function(e){return e.o}));case"../ticket-fields/translations/locales/de-x-informal.json":return import("ticket-fields").then((function(e){return e.p}));case"../ticket-fields/translations/locales/de.json":return import("ticket-fields").then((function(e){return e.q}));case"../ticket-fields/translations/locales/el.json":return import("ticket-fields").then((function(e){return e.r}));case"../ticket-fields/translations/locales/en-001.json":return import("ticket-fields").then((function(e){return e.s}));case"../ticket-fields/translations/locales/en-150.json":return import("ticket-fields").then((function(e){return e.t}));case"../ticket-fields/translations/locales/en-au.json":return import("ticket-fields").then((function(e){return e.u}));case"../ticket-fields/translations/locales/en-ca.json":return import("ticket-fields").then((function(e){return e.v}));case"../ticket-fields/translations/locales/en-gb.json":return import("ticket-fields").then((function(e){return e.w}));case"../ticket-fields/translations/locales/en-my.json":return import("ticket-fields").then((function(e){return e.x}));case"../ticket-fields/translations/locales/en-ph.json":return import("ticket-fields").then((function(e){return e.y}));case"../ticket-fields/translations/locales/en-se.json":return import("ticket-fields").then((function(e){return e.z}));case"../ticket-fields/translations/locales/en-us.json":return import("ticket-fields").then((function(e){return e.B}));case"../ticket-fields/translations/locales/en-x-dev.json":return import("ticket-fields").then((function(e){return e.C}));case"../ticket-fields/translations/locales/en-x-keys.json":return import("ticket-fields").then((function(e){return e.E}));case"../ticket-fields/translations/locales/en-x-obsolete.json":return import("ticket-fields").then((function(e){return e.F}));case"../ticket-fields/translations/locales/en-x-pseudo.json":return import("ticket-fields").then((function(e){return e.G}));case"../ticket-fields/translations/locales/en-x-test.json":return import("ticket-fields").then((function(e){return e.H}));case"../ticket-fields/translations/locales/es-419.json":return import("ticket-fields").then((function(e){return e.J}));case"../ticket-fields/translations/locales/es-ar.json":return import("ticket-fields").then((function(e){return e.K}));case"../ticket-fields/translations/locales/es-cl.json":return import("ticket-fields").then((function(e){return e.L}));case"../ticket-fields/translations/locales/es-es.json":return import("ticket-fields").then((function(e){return e.M}));case"../ticket-fields/translations/locales/es-mx.json":return import("ticket-fields").then((function(e){return e.N}));case"../ticket-fields/translations/locales/es-pe.json":return import("ticket-fields").then((function(e){return e.O}));case"../ticket-fields/translations/locales/es.json":return import("ticket-fields").then((function(e){return e.P}));case"../ticket-fields/translations/locales/et.json":return import("ticket-fields").then((function(e){return e.Q}));case"../ticket-fields/translations/locales/eu.json":return import("ticket-fields").then((function(e){return e.S}));case"../ticket-fields/translations/locales/fa-af.json":return import("ticket-fields").then((function(e){return e.U}));case"../ticket-fields/translations/locales/fa.json":return import("ticket-fields").then((function(e){return e.V}));case"../ticket-fields/translations/locales/fi.json":return import("ticket-fields").then((function(e){return e.W}));case"../ticket-fields/translations/locales/fil.json":return import("ticket-fields").then((function(e){return e.X}));case"../ticket-fields/translations/locales/fo.json":return import("ticket-fields").then((function(e){return e.Y}));case"../ticket-fields/translations/locales/fr-ca.json":return import("ticket-fields").then((function(e){return e.Z}
109));case"../ticket-fields/translations/locales/fr-dz.json":return import("ticket-fields").then((function(e){return e._}));case"../ticket-fields/translations/locales/fr-mu.json":return import("ticket-fields").then((function(e){return e.$}));case"../ticket-fields/translations/locales/fr.json":return import("ticket-fields").then((function(e){return e.a0}));case"../ticket-fields/translations/locales/ga.json":return import("ticket-fields").then((function(e){return e.a1}));case"../ticket-fields/translations/locales/he.json":return import("ticket-fields").then((function(e){return e.a2}));case"../ticket-fields/translations/locales/hi.json":return import("ticket-fields").then((function(e){return e.a3}));case"../ticket-fields/translations/locales/hr.json":return import("ticket-fields").then((function(e){return e.a4}));case"../ticket-fields/translations/locales/hu.json":return import("ticket-fields").then((function(e){return e.a5}));case"../ticket-fields/translations/locales/hy.json":return import("ticket-fields").then((function(e){return e.a6}));case"../ticket-fields/translations/locales/id.json":return import("ticket-fields").then((function(e){return e.a7}));case"../ticket-fields/translations/locales/is.json":return import("ticket-fields").then((function(e){return e.a8}));case"../ticket-fields/translations/locales/it-ch.json":return import("ticket-fields").then((function(e){return e.a9}));case"../ticket-fields/translations/locales/it.json":return import("ticket-fields").then((function(e){return e.aa}));case"../ticket-fields/translations/locales/ja.json":return import("ticket-fields").then((function(e){return e.ab}));case"../ticket-fields/translations/locales/ka.json":return import("ticket-fields").then((function(e){return e.ac}));case"../ticket-fields/translations/locales/kk.json":return import("ticket-fields").then((function(e){return e.ad}));case"../ticket-fields/translations/locales/kl-dk.json":return import("ticket-fields").then((function(e){return e.ae}));case"../ticket-fields/translations/locales/km.json":return import("ticket-fields").then((function(e){return e.af}));case"../ticket-fields/translations/locales/ko.json":return import("ticket-fields").then((function(e){return e.ag}));case"../ticket-fields/translations/locales/ku.json":return import("ticket-fields").then((function(e){return e.ah}));case"../ticket-fields/translations/locales/ky.json":return import("ticket-fields").then((function(e){return e.ai}));case"../ticket-fields/translations/locales/lt.json":return import("ticket-fields").then((function(e){return e.aj}));case"../ticket-fields/translations/locales/lv.json":return import("ticket-fields").then((function(e){return e.ak}));case"../ticket-fields/translations/locales/mk.json":return import("ticket-fields").then((function(e){return e.al}));case"../ticket-fields/translations/locales/mn.json":return import("ticket-fields").then((function(e){return e.am}));case"../ticket-fields/translations/locales/ms.json":return import("ticket-fields").then((function(e){return e.an}));case"../ticket-fields/translations/locales/mt.json":return import("ticket-fields").then((function(e){return e.ao}));case"../ticket-fields/translations/locales/my.json":return import("ticket-fields").then((function(e){return e.ap}));case"../ticket-fields/translations/locales/ne.json":return import("ticket-fields").then((function(e){return e.aq}));case"../ticket-fields/translations/locales/nl-be.json":return import("ticket-fields").then((function(e){return e.ar}));case"../ticket-fields/translations/locales/nl.json":return import("ticket-fields").then((function(e){return e.as}));case"../ticket-fields/translations/locales/no.json":return import("ticket-fields").then((function(e){return e.at}));case"../ticket-fields/translations/locales/pl.json":return import("ticket-fields").then((function(e){return e.au}));case"../ticket-fields/translations/locales/pt-br.json":return import("ticket-fields").then((function(e){return e.av}));case"../ticket-fields/translations/locales/pt.json":return import("ticket-fields").then((function(e){return e.aw}));case"../ticket-fields/translations/locales/ro-md.json":return import("ticket-fields").then((function(e){return e.ax}));case"../ticket-fields/translations/locales/ro.json":return import("ticket-fields").then((function(e){return e.ay}));case"../ticket-fields/translations/locales/ru.json":return import("ticket-fields").then((function(e){return e.az}));case"../ticket-fields/translations/locales/si.json":return import("ticket-fields").then((function(e){return e.aA}));case"../ticket-fields/translations/locales/sk.json":return import("ticket-fields").then((function(e){return e.aB}));case"../ticket-fields/translations/locales/sl.json":return import("ticket-fields").then((function(e){return e.aC}));case"../ticket-fields/translations/locales/sq.json":return import("ticket-fields").then((function(e){return e.aD}));case"../ticket-fields/translations/locales/sr-me.json":return import("ticket-fields").then((function(e){return e.aE}));case"../ticket-fields/translations/locales/sr.json":return import("ticket-fields").then((function(e){return e.aF}));case"../ticket-fields/translations/locales/sv.json":return import("ticket-fields").then((function(e){return e.aG}));case"../ticket-fields/translations/locales/sw-ke.json":return import("ticket-fields").then((function(e){return e.aH}));case"../ticket-fields/translations/locales/ta.json":return import("ticket-fields").then((function(e){return e.aI}));case"../ticket-fields/translations/locales/th.json":return import("ticket-fields").then((function(e){return e.aJ}));case"../ticket-fields/translations/locales/tr.json":return import("ticket-fields").then((function(e){return e.aK}));case"../ticket-fields/translations/locales/uk.json":return import("ticket-fields").then((function(e){return e.aL}));case"../ticket-fields/translations/locales/ur-pk.json":return import("ticket-fields").then((function(e){return e.aM}));case"../ticket-fields/translations/locales/ur.json":return import("ticket-fields").then((function(e){return e.aN}));case"../ticket-fields/translations/locales/uz.json":return import("ticket-fields").then((function(e){return e.aO}));case"../ticket-fields/translations/locales/vi.json":return import("ticket-fields").then((function(e){return e.aP}));case"../ticket-fields/translations/locales/zh-cn.json":return import("ticket-fields").then((function(e){return e.aQ}));case"../ticket-fields/translations/locales/zh-tw.json":return import("ticket-fields").then((function(e){return e.aR}));default:return new Promise((function(n,t){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`../ticket-fields/translations/locales/${r}.json`),()=>function(e){switch(e){case"../shared/translations/locales/af.json":return import("shared").then((function(e){return e.aX}));case"../shared/translations/locales/ar-x-pseudo.json":return import("shared").then((function(e){return e.aY}));case"../shared/translations/locales/ar.json":return import("shared").then((function(e){return e.aZ}));case"../shared/translations/locales/az.json":return import("shared").then((function(e){return e.a_}));case"../shared/translations/locales/be.json":return import("shared").then((function(e){return e.a$}));case"../shared/translations/locales/bg.json":return import("shared").then((function(e){return e.b0}));case"../shared/translations/locales/bn.json":return import("shared").then((function(e){return e.b1}));case"../shared/translations/locales/bs.json":return import("shared").then((function(e){return e.b2}));case"../shared/translations/locales/ca.json":return import("shared").then((function(e){return e.b3}));case"../shared/translations/locales/cs.json":return import("shared").then((function(e){return e.b4}));case"../shared/translations/locales/cy.json":return import("shared").then((function(e){return e.b5}));case"../shared/translations/locales/da.json":return import("shared").then((function(e){return e.b6}));case"../shared/translations/locales/de-de.json":return import("shared").then((function(e){return e.b7}));case"../shared/translations/locales/de-x-informal.json":return import("shared").then((function(e){return e.b8}));case"../shared/translations/locales/de.json":return import("shared").then((function(e){return e.b9}));case"../shared/translations/locales/el.json":return import("shared").then((function(e){return e.ba}));case"../shared/translations/locales/en-001.json":return import("shared").then((function(e){return e.bb}));case"../shared/translations/locales/en-150.json":return import("shared").then((function(e){return e.bc}));case"../shared/translations/locales/en-au.json":return import("shared").then((function(e){return e.bd}));case"../shared/translations/locales/en-ca.json":return import("shared").then((function(e){return e.be}));case"../shared/translations/locales/en-gb.json":return import("shared").then((function(e){return e.bf}));case"../shared/translations/locales/en-my.json":return import("shared").then((function(e){return e.bg}));case"../shared/translations/locales/en-ph.json":return import("shared").then((function(e){return e.bh}));case"../shared/translations/locales/en-se.json":return import("shared").then((function(e){return e.bi}
109));case"../shared/translations/locales/en-us.json":return import("shared").then((function(e){return e.bj}));case"../shared/translations/locales/en-x-dev.json":return import("shared").then((function(e){return e.bk}));case"../shared/translations/locales/en-x-keys.json":return import("shared").then((function(e){return e.bl}));case"../shared/translations/locales/en-x-obsolete.json":return import("shared").then((function(e){return e.bm}));case"../shared/translations/locales/en-x-pseudo.json":return import("shared").then((function(e){return e.bn}));case"../shared/translations/locales/en-x-test.json":return import("shared").then((function(e){return e.bo}));case"../shared/translations/locales/es-419.json":return import("shared").then((function(e){return e.bp}));case"../shared/translations/locales/es-ar.json":return import("shared").then((function(e){return e.bq}));case"../shared/translations/locales/es-cl.json":return import("shared").then((function(e){return e.br}));case"../shared/translations/locales/es-es.json":return import("shared").then((function(e){return e.bs}));case"../shared/translations/locales/es-mx.json":return import("shared").then((function(e){return e.bt}));case"../shared/translations/locales/es-pe.json":return import("shared").then((function(e){return e.bu}));case"../shared/translations/locales/es.json":return import("shared").then((function(e){return e.bv}));case"../shared/translations/locales/et.json":return import("shared").then((function(e){return e.bw}));case"../shared/translations/locales/eu.json":return import("shared").then((function(e){return e.bx}));case"../shared/translations/locales/fa-af.json":return import("shared").then((function(e){return e.by}));case"../shared/translations/locales/fa.json":return import("shared").then((function(e){return e.bz}));case"../shared/translations/locales/fi.json":return import("shared").then((function(e){return e.bA}));case"../shared/translations/locales/fil.json":return import("shared").then((function(e){return e.bB}));case"../shared/translations/locales/fo.json":return import("shared").then((function(e){return e.bC}));case"../shared/translations/locales/fr-ca.json":return import("shared").then((function(e){return e.bD}));case"../shared/translations/locales/fr-dz.json":return import("shared").then((function(e){return e.bE}));case"../shared/translations/locales/fr-mu.json":return import("shared").then((function(e){return e.bF}));case"../shared/translations/locales/fr.json":return import("shared").then((function(e){return e.bG}));case"../shared/translations/locales/ga.json":return import("shared").then((function(e){return e.bH}));case"../shared/translations/locales/he.json":return import("shared").then((function(e){return e.bI}));case"../shared/translations/locales/hi.json":return import("shared").then((function(e){return e.bJ}));case"../shared/translations/locales/hr.json":return import("shared").then((function(e){return e.bK}));case"../shared/translations/locales/hu.json":return import("shared").then((function(e){return e.bL}));case"../shared/translations/locales/hy.json":return import("shared").then((function(e){return e.bM}));case"../shared/translations/locales/id.json":return import("shared").then((function(e){return e.bN}));case"../shared/translations/locales/is.json":return import("shared").then((function(e){return e.bO}));case"../shared/translations/locales/it-ch.json":return import("shared").then((function(e){return e.bP}));case"../shared/translations/locales/it.json":return import("shared").then((function(e){return e.bQ}));case"../shared/translations/locales/ja.json":return import("shared").then((function(e){return e.bR}));case"../shared/translations/locales/ka.json":return import("shared").then((function(e){return e.bS}));case"../shared/translations/locales/kk.json":return import("shared").then((function(e){return e.bT}));case"../shared/translations/locales/kl-dk.json":return import("shared").then((function(e){return e.bU}));case"../shared/translations/locales/km.json":return import("shared").then((function(e){return e.bV}));case"../shared/translations/locales/ko.json":return import("shared").then((function(e){return e.bW}));case"../shared/translations/locales/ku.json":return import("shared").then((function(e){return e.bX}));case"../shared/translations/locales/ky.json":return import("shared").then((function(e){return e.bY}));case"../shared/translations/locales/lt.json":return import("shared").then((function(e){return e.bZ}));case"../shared/translations/locales/lv.json":return import("shared").then((function(e){return e.b_}));case"../shared/translations/locales/mk.json":return import("shared").then((function(e){return e.b$}));case"../shared/translations/locales/mn.json":return import("shared").then((function(e){return e.c0}));case"../shared/translations/locales/ms.json":return import("shared").then((function(e){return e.c1}));case"../shared/translations/locales/mt.json":return import("shared").then((function(e){return e.c2}));case"../shared/translations/locales/my.json":return import("shared").then((function(e){return e.c3}));case"../shared/translations/locales/ne.json":return import("shared").then((function(e){return e.c4}));case"../shared/translations/locales/nl-be.json":return import("shared").then((function(e){return e.c5}));case"../shared/translations/locales/nl.json":return import("shared").then((function(e){return e.c6}));case"../shared/translations/locales/no.json":return import("shared").then((function(e){return e.c7}));case"../shared/translations/locales/pl.json":return import("shared").then((function(e){return e.c8}));case"../shared/translations/locales/pt-br.json":return import("shared").then((function(e){return e.c9}));case"../shared/translations/locales/pt.json":return import("shared").then((function(e){return e.ca}));case"../shared/translations/locales/ro-md.json":return import("shared").then((function(e){return e.cb}));case"../shared/translations/locales/ro.json":return import("shared").then((function(e){return e.cc}));case"../shared/translations/locales/ru.json":return import("shared").then((function(e){return e.cd}));case"../shared/translations/locales/si.json":return import("shared").then((function(e){return e.ce}));case"../shared/translations/locales/sk.json":return import("shared").then((function(e){return e.cf}));case"../shared/translations/locales/sl.json":return import("shared").then((function(e){return e.cg}));case"../shared/translations/locales/sq.json":return import("shared").then((function(e){return e.ch}));case"../shared/translations/locales/sr-me.json":return import("shared").then((function(e){return e.ci}));case"../shared/translations/locales/sr.json":return import("shared").then((function(e){return e.cj}));case"../shared/translations/locales/sv.json":return import("shared").then((function(e){return e.ck}));case"../shared/translations/locales/sw-ke.json":return import("shared").then((function(e){return e.cl}));case"../shared/translations/locales/ta.json":return import("shared").then((function(e){return e.cm}));case"../shared/translations/locales/th.json":return import("shared").then((function(e){return e.cn}));case"../shared/translations/locales/tr.json":return import("shared").then((function(e){return e.co}));case"../shared/translations/locales/uk.json":return import("shared").then((function(e){return e.cp}));case"../shared/translations/locales/ur-pk.json":return import("shared").then((function(e){return e.cq}));case"../shared/translations/locales/ur.json":return import("shared").then((function(e){return e.cr}));case"../shared/translations/locales/uz.json":return import("shared").then((function(e){return e.cs}));case"../shared/translations/locales/vi.json":return import("shared").then((function(e){return e.ct}));case"../shared/translations/locales/zh-cn.json":return import("shared").then((function(e){return e.cu}));case"../shared/translations/locales/zh-tw.json":return import("shared").then((function(e){return e.cv}));default:return new Promise((function(n,t){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`../shared/translations/locales/${r}.json`)]),G.render(n.jsx(N,{theme:O(e),children:n.jsx(Je,{...t})}),s)}export{Ke as renderNewRequestForm};
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.