PageSourceSearch

https://help.klaxoon.com/hc/theming_assets/01K9H2EG03SYK6ZHAV6SESZPB2

js klaxoon.com collected 2026-09-24 08:48:24 UTC 42,526 bytes, 83 lines download raw bytes

1import{j as e,F as n,L as t,S as s,H as r,I as a,M as o,r as i,u as l,a as u,N as c,T as d,C as m,s as f,b as h,d as p,e as j,f as b,h as g,O as x,i as w,k as v,l as q,p as y,m as k,n as _,o as C,P as S,A as T,q as I,t as F,D as P,v as R,K as $,w as L,x as E,y as D,z as M,B as V,E as A,$ as z,G,J as N,Q as U,R as H,U as X,V as O,W as B,X as W,Y,Z as K,_ as J,a0 as Z,a1 as Q,a2 as ee,a3 as ne,a4 as te,a5 as se,a6 as re,a7 as ae,a8 as oe}from"shared";function ie({field:i,onChange:l}){const{label:u,error:c,value:d,name:m,required:f,description:h,type:p}=i,j={},b="integer"===p||"decimal"===p?"number":"text";"integer"===p&&(j.step="1"),"decimal"===p&&(j.step="any");const g="anonymous_requester_email"===p?"email":void 0;return e.jsxs(n,{children:[e.jsxs(t,{children:[u,f&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),h&&e.jsx(r,{dangerouslySetInnerHTML:{__html:h}}),e.jsx(a,{name:m,type:b,defaultValue:d,validation:c?"error":void 0,required:f,onChange:e=>{l&&l(e.target.value)},autoComplete:g,...j}),c&&e.jsx(o,{validation:"error",children:c})]})}const le=f(n)`
2  .ck.ck-editor {
3    margin-top: ${e=>e.theme.space.xs};
4  }
5`,ue=f(o)`
6  .ck.ck-editor + & {
7    margin-top: ${e=>e.theme.space.xs};
8  }
9`;function ce({field:n,hasWysiwyg:a,baseLocale:o,hasAtMentions:f,userRole:p,brandId:j,onChange:b}){const{label:g,error:x,value:w,name:v,required:q,description:y}=n,k=function({hasWysiwyg:n,baseLocale:t,hasAtMentions:s,userRole:r,brandId:a}){const o=i.useRef(!1),{addToast:f}=l(),{t:h}=u();return i.useCallback((async i=>{if(n&&i&&!o.current){o.current=!0;const{createEditor:n}=await import("wysiwyg").then((function(e){return e.m}));(await n(i,{editorType:"supportRequests",hasAtMentions:s,userRole:r,brandId:a,baseLocale:t})).plugins.get("Notification").on("show",((n,t)=>{n.stop();const s=t.message instanceof Error?t.message.message:t.message,{type:r,title:a}=t;f((({close:n})=>e.jsxs(c,{type:r,children:[e.jsx(d,{children:a}),s,e.jsx(m,{"aria-label":h("new-request-form.close-label","Close"),onClick:n})]})))}))}}),[n,t,s,r,a,f,h])}({hasWysiwyg:a,baseLocale:o,hasAtMentions:f,userRole:p,brandId:j});return e.jsxs(le,{children:[e.jsxs(t,{children:[g,q&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),y&&e.jsx(r,{dangerouslySetInnerHTML:{__html:y}}),e.jsx(h,{ref:k,name:v,defaultValue:w,validation:x?"error":void 0,required:q,onChange:e=>b(e.target.value),rows:6,isResizable:!0}),x&&e.jsx(ue,{validation:"error",children:x})]})}function de(){const{t:n}=u();return e.jsxs(e.Fragment,{children:[e.jsx(s,{"aria-hidden":"true",children:"-"}),e.jsx(s,{hidden:!0,children:n("new-request-form.dropdown.empty-option","Select an option")})]})}function me({field:n,onChange:t}){const{label:r,options:a,error:o,value:l,name:u,required:c,description:d}=n,m=null==l?"":l.toString(),f=i.useRef(null);return i.useEffect((()=>{if(f.current&&c){const e=f.current.querySelector("[role=combobox]");e?.setAttribute("aria-required","true")}}),[f,c]),e.jsxs(p,{children:[e.jsxs(j,{children:[r,c&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),d&&e.jsx(b,{dangerouslySetInnerHTML:{__html:d}}),e.jsxs(g,{ref:f,inputProps:{name:u,required:c},isEditable:!1,validation:o?"error":void 0,inputValue:m,selectionValue:m,renderValue:({selection:n})=>n?.label||e.jsx(de,{}),onChange:({selectionValue:e})=>{void 0!==e&&t(e)},children:[!c&&e.jsx(x,{value:"",label:"-",children:e.jsx(de,{})}),a.map((n=>e.jsx(x,{value:n.value.toString(),label:n.name},n.value)))]}),o&&e.jsx(w,{validation:"error",children:o})]})}function fe({field:a,onChange:l}){const{label:u,error:c,value:d,name:m,required:f,description:h}=a,[p,j]=i.useState(d);return e.jsxs(n,{children:[e.jsx("input",{type:"hidden",name:m,value:"off"}),e.jsxs(v,{name:m,required:f,defaultChecked:d,value:p?"on":"off",onChange:e=>{const{checked:n}=e.target;j(n),l(n)},children:[e.jsxs(t,{children:[u,f&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),h&&e.jsx(r,{dangerouslySetInnerHTML:{__html:h}})]}),c&&e.jsx(o,{validation:"error",children:c})]})}const he="[]";function pe(e){return`[${e.join("::")}]`}function je(e){return e.startsWith("[")&&e.endsWith("]")}function be(e){const n=pe(e.slice(0,-1));return{type:"SubGroup",name:e[e.length-1],backOption:{type:"previous",label:"Back",value:n},options:[]}}function ge({options:e,hasEmptyOption:n}){const t=i.useMemo((()=>function(e,n){const t={[he]:{type:"RootGroup",options:n?[{label:"-",value:""}]:[]}};return e.forEach((e=>{const{name:n,value:s}=e;if(n.includes("::")){const[e,r]=function(e){const n=e.split("::");return[n.slice(0,-1),n.slice(-1)[0]]}(n),a=pe(e);t[a]||(t[a]=be(e)),t[a]?.options.push({value:s,label:n.split("::").join(" > "),menuLabel:r});for(let n=0;n<e.length;n++){const s=e.slice(0,n),r=e.slice(0,n+1),a=pe(s),o=pe(r);t[a]||(t[a]=be(s)),void 0===t[a]?.options.find((e=>e.value===o))&&t[a]?.options.push({type:"next",label:r[r.length-1],value:o})}}else t[he].options.push({value:s,label:n})}
9)),t}(e,n)),[e,n]),[s,r]=i.useState(function(e){const n={type:"RootGroup",options:[]};return Object.values(e).forEach((({options:e})=>{n.options.push(...e.filter((({type:e})=>void 0===e)))})),n}(t));i.useEffect((()=>{r(t[he])}),[t]);return{currentGroup:s,isGroupIdentifier:je,setCurrentGroupByIdentifier:e=>{const n=t[e];n&&r(n)}}}function xe({field:n}){const{label:t,options:r,error:a,value:o,name:l,required:u,description:c}=n,{currentGroup:d,isGroupIdentifier:m,setCurrentGroupByIdentifier:f}=ge({options:r,hasEmptyOption:!1}),[h,v]=i.useState(o||[]),y=i.useRef(null);i.useEffect((()=>{if(y.current&&u){const e=y.current.querySelector("[role=combobox]");e?.setAttribute("aria-required","true")}}),[y,u]);return e.jsxs(p,{children:[h.map((n=>e.jsx("input",{type:"hidden",name:`${l}[]`,value:n},n))),e.jsxs(j,{children:[t,u&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),c&&e.jsx(b,{dangerouslySetInnerHTML:{__html:c}}),e.jsxs(g,{ref:y,isMultiselectable:!0,inputProps:{required:u},isEditable:!1,validation:a?"error":void 0,onChange:e=>{if(Array.isArray(e.selectionValue)){const n=e.selectionValue.slice(-1).toString();m(n)?f(n):v(e.selectionValue)}},selectionValue:h,maxHeight:"auto",children:["SubGroup"===d.type&&e.jsx(x,{...d.backOption}),"SubGroup"===d.type?e.jsx(q,{"aria-label":d.name,children:d.options.map((n=>e.jsx(x,{...n,children:n.menuLabel??n.label},n.value)))}):d.options.map((n=>e.jsx(x,{...n},n.value)))]}),a&&e.jsx(w,{validation:"error",children:a})]})}const we="return-focus-to-ticket-form-field";function ve({field:n,newRequestPath:t}){const s=i.createRef();return i.useEffect((()=>{sessionStorage.getItem(we)&&(sessionStorage.removeItem(we),s.current?.firstChild?.focus())}),[]),e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"hidden",name:n.name,value:n.value}),n.options.length>1&&e.jsxs(p,{children:[e.jsx(j,{children:n.label}),e.jsx(g,{isEditable:!1,onChange:({selectionValue:e})=>
9{if(e&&"number"==typeof e){const n=new URL(window.location.href);n.searchParams.set("ticket_form_id",e),sessionStorage.setItem(we,"true"),window.location.assign(`${t}${n.search}`)}},ref:s,children:n.options.map((t=>e.jsx(x,{value:t.value,label:t.name,isSelected:n.value===t.value,children:t.name},t.value)))})]})]})}function qe({field:n}){const{value:t,name:s}=n;return e.jsx("input",{type:"hidden",name:s,value:t})}function ye(e){const n=i.useRef(!1),t=i.useRef(!1);return{formRefCallback:i.useCallback((s=>{s&&!n.current&&(n.current=!0,s.submit=async()=>{if(!1===t.current){t.current=!0;const n=await async function(){const e=await fetch("/api/v2/help_center/sessions.json"),{current_session:n}=await e.json();return n.csrf_token}(),r=document.createElement("input");r.type="hidden",r.name="authenticity_token",r.value=n,s.appendChild(r);const a=e.filter((e=>"partialcreditcard"===e.type));for(const e of a){const n=s.querySelector(`input[name="${e.name}"]`);n&&n instanceof HTMLInputElement&&4===n.value.length&&(n.value=`XXXXXXXXX${n.value}`)}HTMLFormElement.prototype.submit.call(s)}})}),[e]),handleSubmit:e=>{e.preventDefault(),e.target.submit()}}}const ke=2048,_e="tf_",Ce=/^\d{4}-\d{2}-\d{2}$/,Se=["true","false"],Te=["pre","strong","b","p","blockquote","ul","ol","li","h2","h3","h4","i","em","br"];function Ie(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 Fe(e){if(!Ce.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 Pe({ticketFields:e,ccField:n,dueDateField:t,emailField:s,organizationField:r}){return i.useMemo((()=>function(e){const{href:n}=location,t=new URL(n).searchParams,s={...e,ticketFields:[...e.ticketFields]};if(n.length>ke)return e;if(t.get("parent_id"))return e;for(const[e,n]of t){if(!e.startsWith(_e))continue;const t=Ie(e.substring(_e.length),s);if(!t)continue;const r=y.sanitize(n,{ALLOWED_TAGS:Te});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":Fe(r)&&(t.value=r);break;default:t.value=r}}return s}({ticketFields:e,ccField:n,dueDateField:t,emailField:s,organizationField:r})),[e,n,t,s,r])}const Re=f.div`
10  flex: 1;
11`;function $e({file:n,onRemove:t}){const{t:s}=u(),r=e=>{"Enter"!==e.code&&"Space"!==e.code&&"Delete"!==e.code&&"Backspace"!==e.code||(e.preventDefault(),t())},a="pending"===n.status?n.file_name:n.value.file_name,o=s("new-request-form.attachments.stop-upload","Stop upload"),i=s("new-request-form.attachments.remove-file","Remove file");return e.jsx(k.Item,{children:e.jsx(_,{type:"generic",tabIndex:0,"aria-label":s("new-request-form.attachments.file","File: {{fileName}}, press delete to remove",{fileName:a}),onKeyDown:e=>{"Delete"!==e.code&&"Backspace"!==e.code||(e.preventDefault(),t())},children:"pending"===n.status?e.jsxs(e.Fragment,{children:[e.jsx(Re,{children:a}),e.jsx(C,{content:o,children:e.jsx(_.Close,{"aria-label":s("new-request-form.attachments.stop-upload-aria-label","Stop uploading {{fileName}}",{fileName:a}),"aria-describedby":void 0,onClick:()=>{t()},onKeyDown:r})}),e.jsx(S,{value:n.progress,"aria-label":s("new-request-form.attachments.uploading","Uploading {{fileName}}",{fileName:a})})]}):e.jsxs(e.Fragment,{children:[e.jsx(Re,{children:e.jsx(T,{isExternal:!0,href:n.value.url,target:"_blank",children:a})}),e.jsx(C,{content:i,children:e.jsx(_.Delete,{"aria-label":s("new-request-form.attachments.remove-file-aria-label","Remove file: {{fileName}}",{fileName:a}),"aria-describedby":void 0,onClick:()=>{t()},onKeyDown:r})}),e.jsx(S,{value:100,"aria-hidden":"true"})]})})})}async function Le(){const e=await fetch("/api/v2/users/me.json"),{user:{authenticity_token:n}}=await e.json();return n}function Ee({field:s}){const{label:r,error:f,name:h,attachments:p}=s,{files:j,addPendingFile:b,setPendingFileProgress:g,setUploaded:x,removePendingFile:w,removeUploadedFile:v}=function(e){const[n,t]=i.useState(e);return{files:n,addPendingFile:i.useCallback(((e,n,s)=>{t((t=>[...t,{status:"pending",id:e,file_name:n,progress:0,xhr:s}]))}),[]),setPendingFileProgress:i.useCallback(((e,n)=>{t((t=>t.map((t=>"pending"===t.status&&t.id===e?{...t,progress:n}:t))))}),[]),removePendingFile:i.useCallback((e=>{t((n=>n.filter((n=>"pending"!==n.status||n.id!==e))))}),[]),removeUploadedFile:i.useCallback((e=>{t((n=>n.filter((n=>"uploaded"!==n.status||n.value.id!==e))))}),[]),setUploaded:i.useCallback(((e,n)=>{t((t=>t.map((t=>"pending"===t.status&&t.id===e?{status:"uploaded",value:n}:t))))}),[])}}(p.map((e=>({status:"uploaded",value:e})))??[]),{addToast:q}=l(),{t:y}=u(),_=i.useCallback((n=>{q((({close:t})=>e.jsxs(c,{type:"error",children:[e.jsx(d,{children:y("new-request-form.attachments.upload-error-title","Upload error")}),y("new-request-form.attachments.upload-error-description","There was an error uploading {{fileName}}. Try again or upload another file.",{fileName:n}),e.jsx(m,{"aria-label":y("new-request-form.close-label","Close"),onClick:t})]})))}),[q,y]),C=i.useCallback((async e=>{const n=await Le();for(const t of e){const e=new XMLHttpRequest,s=new URL(`${window.location.origin}/api/v2/uploads.json`);s.searchParams.append("filename",t.name),e.open("POST",s),t.type?e.setRequestHeader("Content-Type",t.type):e.setRequestHeader("Content-Type","application/octet-stream"),e.setRequestHeader("X-CSRF-Token",n),e.responseType="json";const r=crypto.randomUUID();b(r,t.name,e),e.upload.addEventListener("progress",(({loaded:e,total:n})=>{const t=Math.round(e/n*100);t<=90&&g(r,t)})),e.addEventListener("load",(()=>{if(e.status>=200&&e.status<300){const{upload:{attachment:{file_name:n,content_url:t},token:s}}=e.response;x(r,{id:s,file_name:n,url:t})}else _(t.name),w(r)})),e.addEventListener("error",(()=>{_(t.name),w(r)})),e.send(t)}}),[b,w,g,x,_]),{getRootProps:S,getInputProps:T,isDragActive:P}=I({onDrop:C});return e.jsxs(n,{children:[e.jsx(t,{children:r}),f&&e.jsx(o,{validation:"error",children:f}),e.jsxs(F,{...S(),isDragging:P,children:[P?e.jsx("span",{children:y("new-request-form.attachments.drop-files-label","Drop files here")}):e.jsx("span",{children:y("new-request-form.attachments.choose-file-label","Choose a file or drag and drop here")}),e.jsx(a,{...T()})]}),e.jsx(k,{children:j.map((n=>e.jsx($e,{file:n,onRemove:()=>{(async e=>{if("pending"===e.status)e.xhr.abort(),w(e.id);else{const n=await Le(),t=e.value.id;v(e.value.id),await fetch(`/api/v2/uploads/${t}.json`,{method:"DELETE",headers:{"X-CSRF-Token":n}})}})(n)}},"pending"===n.status?n.id:n.value.id)))}),j.map((n=>"uploaded"===n.status&&e.jsx("input",{type:"hidden",name:h,value:JSON.stringify(n.value)},n.value.id)))]})}function De(e,n){return n.filter((n=>n.child_fields.some((n=>n.id===e))))}function Me(e,n,t){return e.filter((e=>{const s=t.find((n=>n.id===e.parent_field_id));if(!s)return!1;const r=De(s.id,n);return function(e,n){return"checkbox"===n.parent_field_type&&!1===n.value?!1===e||null===e:e===n.value}(s.value,e)&&(0===r.length||Me(r,n,t).length>0)}))}function Ve(e,n){return 0===n.length?e:e.reduce(((t,s)=>{const r=De(s.id,n);if(0===r.length)return[...t,s];const a=Me(r,n,e);return a.length>0?[...t,{...s,required:a.some((e=>e.child_fields.some((e=>e.id==s.id&&e.is_required))))}]:t}),[])}function Ae({field:l,locale:u,valueFormat:c,onChange:d}){const{label:m,error:f,value:h,name:p,required:j,description:b}=l,[g,x]=i.useState(h?new Date(h):void 0),w=i.useCallback((e=>
11new Intl.DateTimeFormat(u,{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}).format(e)),[u]),v=i.useCallback((e=>{if(void 0===e)return"";const n=e.toISOString();return"dateTime"===c?n:n.split("T")[0]}),[c]),q=i.useCallback((e=>{const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0));x(n);const t=v(n);void 0!==t&&d(t)}),[d,v]);return e.jsxs(n,{children:[e.jsxs(t,{children:[m,j&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),b&&e.jsx(r,{dangerouslySetInnerHTML:{__html:b}}),e.jsx(P,{value:g,onChange:q,formatDate:w,locale:u,children:e.jsx(a,{required:j,lang:u,onChange:e=>{""===e.target.value&&(x(void 0),d(""))},validation:f?"error":void 0})}),f&&e.jsx(o,{validation:"error",children:f}),e.jsx("input",{type:"hidden",name:p,value:v(g)})]})}const ze=/^(([^<>()[\]\\.,;:\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,}))$/,Ge=f(E)`
12  padding: ${e=>`${e.theme.space.xxs} ${e.theme.space.sm}`};
13
14  // Removes white spaces for inline elements
15  font-size: 0;
16
17  // Same as height of Tag size="large" + base space (4px)
18  // to give some vertical space between tags
19  --line-height: ${e=>8*e.theme.space.base+e.theme.space.base}px;
20  line-height: var(--line-height);
21`,Ne=f.span`
22  display: inline-block;
23  margin-right: ${e=>e.theme.space.sm};
24`,Ue=f(D)`
25  ${e=>L({theme:e.theme,shadowWidth:"sm",selector:"&:focus"})}
26`,He=f.div`
27  display: inline-block;
28  position: relative;
29`,Xe=f(E)`
30  display: inline-block;
31  min-width: 200px;
32  opacity: 0;
33  user-select: none;
34  height: var(--line-height);
35  line-height: var(--line-height);
36`,Oe=f(a)`
37  position: absolute;
38  top: 0;
39  left: 0;
40  height: var(--line-height);
41  line-height: var(--line-height);
42`;function Be({field:a}){const{label:l,value:c,name:d,error:m,description:f}=a,{t:h}=u(),p=c?c.split(",").map((e=>e.trim())):[],[j,b]=i.useState(p),[g,x]=i.useState(""),w=i.useRef(null),v=i.useRef(null),{getContainerProps:q,getGridProps:y,getGridRowProps:k,getGridCellProps:_,getTagCloseProps:S,getInputProps:T,getAnnouncementProps:I,announcement:F}=function({tags:e,onTagsChange:n,inputValue:t,onInputValueChange:s,inputRef:r,gridRowRef:a,i18n:o}){const[l,u]=i.useState(0),[c,d]=i.useState(""),m=i.useCallback(((e,n)=>{u(n)}),[u]),{getGridProps:f,getGridCellProps:h}=R({matrix:[e],rowIndex:0,colIndex:l,onChange:m}),p=n=>e.includes(n),j=t=>{n([...e,t]),d(o.addedTag(t))},b=t=>{const s=e[t];n(e.filter(((e,n)=>n!==t))),d(o.removedTag(s)),u(0),setTimeout((()=>{const e=a.current?.querySelector('[tabindex="0"]');e?.focus()}),100)},g=e=>{e.target===e.currentTarget&&r.current?.focus()},x=()=>{u(0)},w=e=>{const n=e.target.value;!n||e.key!==$.SPACE&&e.key!==$.ENTER&&e.key!==$.TAB&&e.key!==$.COMMA||(e.preventDefault(),p(n)||j(n),s(""))},v=e=>{const n=e.target.value,[t,r]=[n.slice(0,-1),n.slice(-1)];" "===r||","===r?(t.length>0&&!p(t)&&j(t),s("")):s(n)},q=t=>{t.preventDefault();const s=t.clipboardData.getData("text"),r=new Set(s.split(/[\s,;]+/).filter((n=>!e.includes(n))));n([...e,...r]),d(o.addedTags([...r]))},y=e=>{const n=e.target.value;n&&(p(n)||j(n),s(""))},k=e=>n=>{"Backspace"===n.code&&(n.preventDefault(),b(e))},_=e=>()=>{b(e)};return{getContainerProps:()=>({onClick:g,onBlur:x,tabIndex:-1}),getGridProps:f,getGridRowProps:()=>({role:"row"}),getGridCellProps:e=>h({rowIndex:0,colIndex:e,onKeyDown:k(e)}),getTagCloseProps:e=>({onClick:_(e)}),getInputProps:()=>({value:t,onChange:v,onKeyDown:w,onPaste:q,onBlur:y}),announcement:c,getAnnouncementProps:()=>({"aria-live":"polite","aria-relevant":"text"})}}({tags:j,onTagsChange:b,inputValue:g,onInputValueChange:x,inputRef:w,gridRowRef:v,i18n:{addedTag:e=>h("new-request-form.cc-field.email-added","{{email}} has been added",{email:e}),removedTag:e=>h("new-request-form.cc-field.email-removed","{{email}} has been removed",{email:e}),addedTags:e=>h("new-request-form.cc-field.emails-added","{{emails}} have been added",{emails:e})}}),P=(n,t,s)=>e.jsxs(Ue,{size:"large","aria-label":h("new-request-form.cc-field.email-label","{{email}} - Press Backspace to remove",{email:s}),hue:t?void 0:"red",children:[!t&&e.jsx(D.Avatar,{children:e.jsx(M,{})}),e.jsx("span",{children:s}),e.jsx(D.Close,{...S(n)})]});return e.jsxs(n,{children:[e.jsx(t,{children:l}),f&&e.jsx(r,{children:f}),e.jsxs(Ge,{...q(),children:[j.length>0&&e.jsx("span",{...y({"aria-label":h("new-request-form.cc-field.container-label","Selected CC emails")}),children:e.jsx("span",{ref:v,...k(),children:j.map(((n,t)=>{const s=ze.test(n);return s?e.jsx(Ne,{..._(t),children:P(t,s,n)},t):e.jsx(C,{content:h("new-request-form.cc-field.invalid-email","Invalid email address"),children:e.jsx(Ne,{..._(t),children:P(t,s,n)})},t)}))})}),e.jsxs(He,{children:[e.jsx(Xe,{isBare:!0,"aria-hidden":"true",tabIndex:-1,
42children:g}),e.jsx(Oe,{ref:w,isBare:!0,...T()})]})]}),m&&e.jsx(o,{validation:"error",children:m}),j.map((n=>e.jsx("input",{type:"hidden",name:d,value:n},n))),e.jsx(s,{hidden:!0,...I(),children:F})]})}const We=f(s)`
43  margin-left: ${e=>e.theme.space.xxs};
44  font-weight: ${e=>e.theme.fontWeights.medium};
45`;function Ye({field:a,onChange:i}){const{t:l}=u(),{label:c,error:d,value:m,name:f,required:h,description:p}=a,j=function(e){return e?e.replaceAll("X",""):""}(m);return e.jsxs(n,{children:[e.jsxs(t,{children:[c,h&&e.jsx(s,{"aria-hidden":"true",children:"*"}),e.jsx(We,{children:l("new-request-form.credit-card-digits-hint","(Last 4 digits)")})]}),p&&e.jsx(r,{dangerouslySetInnerHTML:{__html:p}}),e.jsx(V,{start:e.jsx(A,{}),name:f,type:"text",value:j,onChange:e=>i(e.target.value),validation:d?"error":void 0,required:h,maxLength:4,placeholder:"XXXX"}),d&&e.jsx(o,{validation:"error",children:d})]})}function Ke({field:n,onChange:t}){const{label:r,options:a,error:o,value:l,name:u,required:c,description:d}=n,{currentGroup:m,isGroupIdentifier:f,setCurrentGroupByIdentifier:h}=ge({options:a,hasEmptyOption:!0}),v=l??"",[y,k]=i.useState(!1),_=i.useRef(null);i.useEffect((()=>{if(_.current&&c){const e=_.current.querySelector("[role=combobox]");e?.setAttribute("aria-required","true")}}),[_,c]);return e.jsxs(p,{children:[e.jsxs(j,{children:[r,c&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),d&&e.jsx(b,{dangerouslySetInnerHTML:{__html:d}}),e.jsxs(g,{ref:_,inputProps:{required:c,name:u},isEditable:!1,validation:o?"error":void 0,onChange:e=>{"string"==typeof e.selectionValue&&f(e.selectionValue)?h(e.selectionValue):("string"==typeof e.selectionValue&&t(e.selectionValue),void 0!==e.isExpanded&&k(e.isExpanded))},selectionValue:v,inputValue:v,renderValue:({selection:n})=>n?.label??e.jsx(de,{}),isExpanded:y,children:["SubGroup"===m.type&&e.jsx(x,{...m.backOption}),"SubGroup"===m.type?e.jsx(q,{"aria-label":m.name,children:m.options.map((n=>e.jsx(x,{...n,children:n.menuLabel??n.label},n.value)))}):m.options.map((n=>""===n.value?e.jsx(x,{...n,children:e.jsx(de,{})},n.value):e.jsx(x,{...n},n.value)))]}),o&&e.jsx(w,{validation:"error",children:o})]})}const Je=z`
46  from {
47    grid-template-rows: 0fr;
48  }
49  to {
50    grid-template-rows: 1fr;
51  }
52`,Ze=f.div`
53  display: grid;
54  animation: ${Je} 200ms forwards;
55`,Qe=f.div`
56  overflow: hidden;
57`,en=f.ul`
58  list-style: none;
59  padding: 0;
60  margin: 0;
61`,nn=f.li`
62  margin: ${e=>e.theme.space.sm} 0;
63`;function tn({query:n,locale:t}){const s=function(e,n){const[t,s]=i.useState(e);return i.useEffect((()=>{const t=setTimeout((()=>s(e)),n);return()=>{clearTimeout(t)}}),[e,n]),t}(n,500),[r,a]=i.useState([]),o=i.useRef({}),{t:l}=u();return i.useEffect((()=>{const e=s?.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 a([]);const n=new URL(`${window.location.origin}/api/v2/help_center/deflection/suggestions.json`);n.searchParams.append("locale",t),n.searchParams.append("query",e);const r=o.current[n.toString()];r?a(r):fetch(n).then((e=>e.json())).then((({results:e})=>{o.current[n.toString()]=e,a(e)}))}),[s,t]),r.length>0?e.jsx(Ze,{"data-test-id":"suggested-articles",children:e.jsxs(Qe,{children:[e.jsx("h2",{children:l("new-request-form.suggested-articles","Suggested articles")}),e.jsx(en,{children:r.map((n=>e.jsx(nn,{children:e.jsx(T,{href:n.html_url,children:n.name})},n.html_url)))})]})}):null}const sn=f.h3`
64  font-size: ${e=>e.theme.fontSizes.md};
65  font-weight: ${e=>e.theme.fontWeights.bold};
66`,rn=f(N)`
67  color: ${e=>G("successHue",700,e.theme)};
68`,an=f(U)`
69  position: absolute;
70  top: ${e=>5.5*e.theme.space.base}px;
71  inset-inline-start: ${e=>4*e.theme.space.base+"px"};
72`,on=f(T)`
73  display: inline-block;
74  margin-top: ${e=>e.theme.space.sm};
75`;function ln({authToken:n,interactionAccessToken:t,articles:s,requestId:r,hasRequestManagement:a,isSignedIn:o,helpCenterPath:l,requestsPath:c,requestPath:d}){const[m,f]=i.useState(0),h=H(),{t:p}=u(),j=()=>String(s[m]?.article_id),b=()=>{Q({type:"success",message:p("new-request-form.answer-bot-modal.request-submitted","Your request was successfully submitted")}),window.location.assign((()=>
75{if(o)return a?d:l;{const e=new URLSearchParams;return e.set("return_to",c),`${l}?${e.toString()}`}})())};return e.jsxs(X,{appendToNode:h,onClose:()=>{b()},children:[e.jsxs(rn,{tag:"h2",children:[e.jsx(an,{}),p("new-request-form.answer-bot-modal.request-submitted","Your request was successfully submitted")]}),e.jsxs(O,{children:[e.jsx(sn,{children:p("new-request-form.answer-bot-modal.title","While you wait, do any of these articles answer your question?")}),e.jsx("p",{children:p("new-request-form.answer-bot-modal.footer-content","If it does, we can close your recent request {{requestId}}",{requestId:`‭#${r}‬`})}),e.jsx(B,{level:4,expandedSections:[m],onChange:e=>{f(e)},children:s.map((({article_id:t,html_url:s,snippet:r,title:a})=>e.jsxs(B.Section,{children:[e.jsx(B.Header,{children:e.jsx(B.Label,{children:a})}),e.jsxs(B.Panel,{children:[e.jsx(W,{dangerouslySetInnerHTML:{__html:r}}),e.jsx(on,{isExternal:!0,href:`${s}?auth_token=${n}`,target:"_blank",children:p("new-request-form.answer-bot-modal.view-article","View article")})]})]},t)))})]}),e.jsxs(Y,{children:[e.jsx(K,{children:e.jsx(J,{onClick:()=>{(async()=>{await fetch("/api/v2/answer_bot/rejection",{method:"POST",body:JSON.stringify({article_id:j(),interaction_access_token:t,reason_id:0}),headers:{"Content-Type":"application/json"}}),b()})()},children:p("new-request-form.answer-bot-modal.mark-irrelevant","No, I need help")})}),e.jsx(K,{children:e.jsx(J,{isPrimary:!0,onClick:()=>{(async()=>{(await fetch("/api/v2/answer_bot/resolution",{method:"POST",body:JSON.stringify({article_id:j(),interaction_access_token:t}),headers:{"Content-Type":"application/json"}})).ok?Q({type:"success",message:p("new-request-form.answer-bot-modal.request-closed","Nice. Your request has been closed.")}
75):Q({type:"error",message:p("new-request-form.answer-bot-modal.solve-error","There was an error closing your request")}),window.location.href=l})()},children:p("new-request-form.answer-bot-modal.solve-request","Yes, close my request")})})]}),e.jsx(Z,{"aria-label":p("new-request-form.close-label","Close")})]})}const un={value:"",name:"-"};function cn({field:n,userId:t,organizationId:r,onChange:a}){const{id:o,label:l,error:c,value:d,name:m,required:f,description:h,relationship_target_type:v}=n,[q,y]=i.useState([]),[k,_]=i.useState(null),[C,S]=i.useState(d),[T,I]=i.useState(!1),{t:F}=u(),P=v.replace("zen:custom_object:","");const R={name:F("new-request-form.lookup-field.loading-options","Loading items..."),id:"loading"},$={name:F("new-request-form.lookup-field.no-matches-found","No matches found"),id:"no-results"},L=i.useCallback((async e=>{try{const n=await fetch(`/api/v2/custom_objects/${P}/records/${e}`);if(n.ok){const{custom_object_record:e}=await n.json(),t={name:e.name,value:e.id};_(t),S(e.name)}}catch(e){console.error(e)}}),[P]),E=i.useCallback((async e=>{const n=new URLSearchParams;n.set("name",e.toLocaleLowerCase()),n.set("source","zen:ticket"),n.set("field_id",o.toString()),n.set("requester_id",t.toString()),null!==r&&n.set("organization_id",r),I(!0);try{const e=await fetch(`/api/v2/custom_objects/${P}/records/autocomplete?${n.toString()}`),t=await e.json();if(e.ok){let e=t.custom_object_records.map((({name:e,id:n})=>({name:e,value:n})));k&&(e=e.filter((e=>e.value!==k.value)),e=[k,...e]),y(e)}else y([])}catch(e){console.error(e)}finally{I(!1)}}),[P,o,r,k,t]),D=i.useMemo((()=>ee(E,300)),[E]);i.useEffect((()=>()=>D.cancel()),[D]);const M=i.useCallback((({inputValue:e,selectionValue:n})=>{if(void 0!==n)if(""==n)_(un),S(un.name),y([]),a(un.value);else{const e=q.find((e=>e.value===n));e&&(S(e.name),_(e),y([e]),a(e.value))}void 0!==e&&(S(e),D(e))}),[D,a,q]);i.useEffect((()=>{d&&L(d)}),[]);return e.jsxs(p,{children:[e.jsxs(j,{children:[l,f&&e.jsx(s,{"aria-hidden":"true",children:"*"})]}),h&&e.jsx(b,{dangerouslySetInnerHTML:{__html:h}}),e.jsxs(g,{inputProps:{required:f},"data-test-id":"lookup-field-combobox",validation:c?"error":void 0,inputValue:C,selectionValue:k?.value,isAutocomplete:!0,placeholder:F("new-request-form.lookup-field.placeholder","Search {{label}}",{label:l.toLowerCase()}),onFocus:()=>{S(""),E("*")},onChange:M,renderValue:()=>k?k?.name:un.name,children:[k?.name!==un.name&&e.jsx(x,{value:"",label:"-",children:e.jsx(de,{})}),T&&e.jsx(x,{isDisabled:!0,value:R.name},R.id),!T&&C?.length>0&&0===q.length&&e.jsx(x,{isDisabled:!0,value:$.name},$.id),!T&&0!==q.length&&q.map((n=>e.jsx(x,{value:n.value,label:n.name,"data-test-id":`option-${n.name}`},n.value)))]}),c&&e.jsx(w,{validation:"error",children:c}),e.jsx("input",{type:"hidden",name:m,value:k?.value})]})}const dn=f(W)`
76  margin: ${e=>e.theme.space.md} 0;
77`,mn=f.form`
78  display: flex;
79  flex-direction: column;
80  gap: ${e=>e.theme.space.md};
81`,fn=f.div`
82  margin-top: ${e=>e.theme.space.md};
83`;function hn({requestForm:n,wysiwyg:t,newRequestPath:s,parentId:r,parentIdPath:a,locale:o,baseLocale:l,hasAtMentions:c,userRole:d,userId:m,brandId:f,organizations:h,answerBotModal:p}){const{ticket_fields:j,action:b,http_method:g,accept_charset:x,errors:w,parent_id_field:v,ticket_form_field:q,email_field:y,cc_field:k,organization_field:_,due_date_field:C,end_user_conditions:S,attachments_field:I,inline_attachments_fields:F,description_mimetype_field:P}=n,{answerBot:R}=p,{ticketFields:$,emailField:L,ccField:E,organizationField:D,dueDateField:M}=Pe({ticketFields:j,emailField:y,ccField:k,organizationField:_,dueDateField:C}),[V,A]=i.useState($),[z,G]=i.useState(D),[N,U]=i.useState(M),H=Ve(V,S),{formRefCallback:X,handleSubmit:O}=ye(V),{t:B}=u(),W=h.length>0&&h[0]?.id?h[0]?.id?.toString():null,Y=i.useCallback(((e,n)=>{A(V.map((t=>t.name===e.name?{...t,value:n}:t)))}),[V]);const K=i.useCallback((e=>{null!==N&&U({...N,value:e})}),[N]);return e.jsxs(e.Fragment,{children:[r&&e.jsx(dn,{children:e.jsx(T,{href:a,children:B("new-request-form.parent-request-link","Follow-up to request {{parentId}}",{parentId:`‭#${r}‬`})})}),e.jsx(dn,{"aria-hidden":"true",children:B("new-request-form.required-fields-info","Fields marked with an asterisk (*) are required.")}),e.jsxs(mn,{ref:X,action:b,method:g,acceptCharset:x,noValidate:!0,onSubmit:O,children:[w&&e.jsx(ne,{type:"error",children:w}),v&&e.jsx(qe,{field:v}),q.options.length>0&&e.jsx(ve,{field:q,newRequestPath:s}),L&&e.jsx(ie,{field:L},L.name),E&&e.jsx(Be,{field:E}),z&&e.jsx(me,{field:z,onChange:e=>{!function(e){null!==z&&G({...z,value:e})}(e)}},z.name),H.map((n=>{switch(n.type){case"subject":return e.jsxs(i.Fragment,{children:[e.jsx(ie,{field:n,onChange:e=>Y(n,e)}),e.jsx(tn,{query:n.value,locale:o})]},n.name);case"text":case"integer":case"decimal":case"regexp":return e.jsx(ie,{field:n,onChange:e=>Y(n,e)},n.name);case"partialcreditcard":return e.jsx(Ye,{field:n,onChange:e=>Y(n,e)},n.name);
83case"description":return e.jsxs(i.Fragment,{children:[e.jsx(ce,{field:n,hasWysiwyg:t,baseLocale:l,hasAtMentions:c,userRole:d,brandId:f,onChange:e=>Y(n,e)}),e.jsx("input",{type:"hidden",name:P.name,value:t?"text/html":"text/plain"})]},n.name);case"textarea":return e.jsx(ce,{field:n,hasWysiwyg:!1,baseLocale:l,hasAtMentions:c,userRole:d,brandId:f,onChange:e=>Y(n,e)},n.name);case"priority":case"basic_priority":case"tickettype":return e.jsxs(i.Fragment,{children:[e.jsx(me,{field:n,onChange:e=>Y(n,e)}),"task"===n.value&&e.jsx(Ae,{field:N,locale:l,valueFormat:"dateTime",onChange:e=>{K(e)}})]},n.name);case"checkbox":return e.jsx(fe,{field:n,onChange:e=>Y(n,e)},n.name);case"date":return e.jsx(Ae,{field:n,locale:l,valueFormat:"date",onChange:e=>Y(n,e)},n.name);case"multiselect":return e.jsx(xe,{field:n},n.name);case"tagger":return e.jsx(Ke,{field:n,onChange:e=>Y(n,e)},n.name);case"lookup":return e.jsx(cn,{field:n,userId:m,organizationId:null!==z?z.value:W,onChange:e=>Y(n,e)},n.name);default:return e.jsx(i.Fragment,{},n.name)}})),I&&e.jsx(Ee,{field:I}),F.map((({type:n,name:t,value:s},r)=>e.jsx("input",{type:n,name:t,value:s},r))),e.jsx(fn,{children:(0===q.options.length||q.value)&&e.jsx(J,{isPrimary:!0,type:"submit",children:B("new-request-form.submit","Submit")})})]}),R.auth_token&&R.interaction_access_token&&R.articles.length>0&&R.request_id&&e.jsx(ln,{authToken:R.auth_token,interactionAccessToken:R.interaction_access_token,articles:R.articles,requestId:R.request_id,...p})]})}async function pn(n,t,s){const{baseLocale:r}=t;te(r),await se(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-es.json":return import("new-request-form-translations").then((function(e){return e.F}));case"./translations/locales/es.json":return import("new-request-form-translations").then((function(e){return e.G}));case"./translations/locales/et.json":return import("new-request-form-translations").then((function(e){return e.H}));case"./translations/locales/eu.json":return import("new-request-form-translations").then((function(e){return e.I}));case"./translations/locales/fa-af.json":return import("new-request-form-translations").then((function(e){return e.J}));case"./translations/locales/fa.json":return import("new-request-form-translations").then((function(e){return e.K}));case"./translations/locales/fi.json":return import("new-request-form-translations").then((function(e){return e.L}));case"./translations/locales/fil.json":return import("new-request-form-translations").then((function(e){return e.M}));case"./translations/locales/fo.json":return import("new-request-form-translations").then((function(e){return e.N}));case"./translations/locales/fr-ca.json":return import("new-request-form-translations").then((function(e){return e.O}));case"./translations/locales/fr.json":return import("new-request-form-translations").then((function(e){return e.P}));case"./translations/locales/ga.json":return import("new-request-form-translations").then((function(e){return e.Q}));case"./translations/locales/he.json":return import("new-request-form-translations").then((function(e){return e.R}));case"./translations/locales/hi.json":return import("new-request-form-translations").then((function(e){return e.S}));case"./translations/locales/hr.json":return import("new-request-form-translations").then((function(e){return e.T}));case"./translations/locales/hu.json":return import("new-request-form-translations").then((function(e){return e.U}));case"./translations/locales/hy.json":return import("new-request-form-translations").then((function(e){return e.V}));case"./translations/locales/id.json":return import("new-request-form-translations").then((function(e){return e.W}));case"./translations/locales/is.json":return import("new-request-form-translations").then((function(e){return e.X}));case"./translations/locales/it-ch.json":return import("new-request-form-translations").then((function(e){return e.Y}));case"./translations/locales/it.json":return import("new-request-form-translations").then((function(e){return e.Z}
83));case"./translations/locales/ja.json":return import("new-request-form-translations").then((function(e){return e._}));case"./translations/locales/ka.json":return import("new-request-form-translations").then((function(e){return e.$}));case"./translations/locales/kk.json":return import("new-request-form-translations").then((function(e){return e.a0}));case"./translations/locales/kl-dk.json":return import("new-request-form-translations").then((function(e){return e.a1}));case"./translations/locales/ko.json":return import("new-request-form-translations").then((function(e){return e.a2}));case"./translations/locales/ku.json":return import("new-request-form-translations").then((function(e){return e.a3}));case"./translations/locales/lt.json":return import("new-request-form-translations").then((function(e){return e.a4}));case"./translations/locales/lv.json":return import("new-request-form-translations").then((function(e){return e.a5}));case"./translations/locales/mk.json":return import("new-request-form-translations").then((function(e){return e.a6}));case"./translations/locales/mn.json":return import("new-request-form-translations").then((function(e){return e.a7}));case"./translations/locales/ms.json":return import("new-request-form-translations").then((function(e){return e.a8}));case"./translations/locales/mt.json":return import("new-request-form-translations").then((function(e){return e.a9}));case"./translations/locales/my.json":return import("new-request-form-translations").then((function(e){return e.aa}));case"./translations/locales/nl-be.json":return import("new-request-form-translations").then((function(e){return e.ab}));case"./translations/locales/nl.json":return import("new-request-form-translations").then((function(e){return e.ac}));case"./translations/locales/no.json":return import("new-request-form-translations").then((function(e){return e.ad}));case"./translations/locales/pl.json":return import("new-request-form-translations").then((function(e){return e.ae}));case"./translations/locales/pt-br.json":return import("new-request-form-translations").then((function(e){return e.af}));case"./translations/locales/pt.json":return import("new-request-form-translations").then((function(e){return e.ag}));case"./translations/locales/ro.json":return import("new-request-form-translations").then((function(e){return e.ah}));case"./translations/locales/ru.json":return import("new-request-form-translations").then((function(e){return e.ai}));case"./translations/locales/sk.json":return import("new-request-form-translations").then((function(e){return e.aj}));case"./translations/locales/sl.json":return import("new-request-form-translations").then((function(e){return e.ak}));case"./translations/locales/sq.json":return import("new-request-form-translations").then((function(e){return e.al}));case"./translations/locales/sr-me.json":return import("new-request-form-translations").then((function(e){return e.am}));case"./translations/locales/sr.json":return import("new-request-form-translations").then((function(e){return e.an}));case"./translations/locales/sv.json":return import("new-request-form-translations").then((function(e){return e.ao}));case"./translations/locales/th.json":return import("new-request-form-translations").then((function(e){return e.ap}));case"./translations/locales/tr.json":return import("new-request-form-translations").then((function(e){return e.aq}));case"./translations/locales/uk.json":return import("new-request-form-translations").then((function(e){return e.ar}));case"./translations/locales/ur.json":return import("new-request-form-translations").then((function(e){return e.as}));case"./translations/locales/uz.json":return import("new-request-form-translations").then((function(e){return e.at}));case"./translations/locales/vi.json":return import("new-request-form-translations").then((function(e){return e.au}));case"./translations/locales/zh-cn.json":return import("new-request-form-translations").then((function(e){return e.av}));case"./translations/locales/zh-tw.json":return import("new-request-form-translations").then((function(e){return e.aw}));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`))),re.render(e.jsx(ae,{theme:oe(n),children:e.jsx(hn,{...t})}),s)}export{pn 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.