1import{e as P,ci as M,cj as b,o as C,k as r,G as j,g4 as I,n as R}from"./assets/index-TAEEou5_.js";import{c as A}from"./compiler-runtime-DXgPzoQA__cache.js";import{S as k}from"./SurveyCreator-CTRGoMH9__cache.js";import{S as z}from"./types-DnS6rO6S__cache.js";import{k as E,t as N,d as _,M as V,N as F}from"./surveyCreatorState-DyS_5HrZ__cache.js";import{V as $}from"./ViewIcon-BR5LIfFw__cache.js";import"./TextField.form-s_zY7Jop__cache.js";import"./TextField-DaKI2RKy__cache.js";import"./InputAdornment-BLicvagw__cache.js";import"./mappers-CZNwEOJ2__cache.js";import"./Pagination-Cat5LP64__cache.js";import"./Select-CHiDFGiJ__cache.js";import"./Select-OAKOVxeI__cache.js";import"./PaginatedTable-BYDQQYa6__cache.js";import"./SwitchInput-fx-gUAqB__cache.js";import"./FormControlLabel-Dm-PJTHB__cache.js";import"./Switch-BxZR4GU8__cache.js";import"./ArrowDownIcon-CltWS1IL__cache.js";import"./ArrowUpIcon-RNz1Jk99__cache.js";import"./NavigationMenuVerticalIcon-CN-ADwPz__cache.js";import"./RadioGroupInput-B6kJ_Y8s__cache.js";import"./FormGroup-CqUKweqq__cache.js";import"./RatingStarAlternateIcon-nQXYImj5__cache.js";import"./SmileyThrilledIcon-P7iAcoUn__cache.js";import"./ToggleButtonGroup-BI-hpaW5__cache.js";import"./getValidReactChildren-WqDnzxOQ__cache.js";import"./LayersBackIcon-DP6Z25Xl__cache.js";import"./Select.form-B8fBvLpY__cache.js";import"./Pencil1Icon-ARyDxiUF__cache.js";import"./ChecklistIllustration-n2cgXo3V__cache.js";import"./SurveyPeriodAccordion-BDxkc67p__cache.js";import"./DateInput-Cpni_467__cache.js";import"./useDesktopPicker-CVPK9DVA__cache.js";import"./index-IVJeqIz0__cache.js";import"./index-Chjiymov__cache.js";import"./PickersLayout-DWPWx232__cache.js";import"./index-DK6Eoh6s__cache.js";import"./visuallyHidden-Dan1xhjv__cache.js";import"./DateTextFieldWrapper-CttP054E__cache.js";import"./TextField-Bfcav35j__cache.js";import"./convertToDate-JDe_5jCX__cache.js";import"./index-C2i2FgOK__cache.js";import"./ArrowRight1Icon-CR4avEcv__cache.js";import"./Calendar3Icon-DBFqDVqq__cache.js";import"./DesktopDatePicker-D_KAkpxx__cache.js";import"./shared-A-5ZObEf__cache.js";import"./dateViewRenderers-irJ-jy-I__cache.js";import"./index-P96jEhyB__cache.js";import"./SurveyInfoBox-b1_Ta71Y__cache.js";import"./ButtonWithTooltip-DeRdK-Wy__cache.js";import"./CheckboxInput-DJmX46cb__cache.js";import"./useGenerationWithAi-kZ6v2x75__cache.js";import"./BottomActionBar-B2jm11xU__cache.js";import"./FormatDate-Ck_YmE-C__cache.js";import"./ManThinkingIllustration-_JD9Q8tK__cache.js";import"./bayzatGradients-BKTRrtTm__cache.js";import"./CheckCircle1AlternateIcon-mJHuZqIz__cache.js";import"./BaynalyticsBarsIcon-n28SRiJt__cache.js";import"./Check2Icon-D1wcAyx___cache.js";import"./ParagraphLeftAlignIcon-CQEzma7v__cache.js";import"./InvitationDialog-rre8r007__cache.js";import"./mapResponseArrayGenerator-BqO8H1OT__cache.js";import"./Invitations-BZMpCLM9__cache.js";import"./EmployeeNameResponse-dBYlqae4__cache.js";import"./SearchInput-DuWtuQO3__cache.js";import"./useDebouncedState-CRswtz2g__cache.js";import"./emailValidator-VvB2Tiin__cache.js";import"./HorizontalStepper-DYOGNiDm__cache.js";import"./Check1Icon-BbJcXkK___cache.js";import"./Departments-CbW51EBz__cache.js";import"./commonPaginationForAllRows-Cxm1f5j4__cache.js";import"./mapResponseArrayDataOnlyGenerator-DC4F1Bb6__cache.js";import"./Offices-9F0Iu7in__cache.js";import"./OfficeResponsePayload-CRsfzd1f__cache.js";import"./InsurancePolicies-D5hhhJKV__cache.js";import"./WorkLocation-Cevv7v5a__cache.js";import"./VideoPreviewModal-23OWMcG5__cache.js";import"./constants-WvCITwjF__cache.js";import"./useEmployeeProfile-BdecwU5b__cache.js";import"./TransferLists-Bnpm1EMX__cache.js";import"./ArrowButtonRight1Icon-qo2BSYOG__cache.js";import"./index.m-DwPtNleW__cache.js";import"./utils-0gEqefKK__cache.js";import"./SurveysPageMetaContext-DThEEWaN__cache.js";const w=R({closePreview:{id:"company-survey.common.close-preview",defaultMessage:"Close preview"},preview:{id:"company-survey.common.preview",defaultMessage:"Preview"},companySurveys:{id:"company-survey.common.surveys",defaultMessage:"Surveys"}
1,newSurvey:{id:"company-survey.common.new-survey",defaultMessage:"New survey"}}),ye=()=>{const t=A.c(26),e=P(),a=M(E);let n;t[0]!==e||t[1]!==a?(n=a===""?e.formatMessage(w.newSurvey):a,t[0]=e,t[1]=a,t[2]=n):n=t[2];const S=n,i=b(N),o=M(_),l=V();let c,u;t[3]!==l?(c=()=>{l({...F,name:"",questions:[],participants:new Set})},u=[l],t[3]=l,t[4]=c,t[5]=u):(c=t[4],u=t[5]),C.useEffect(c,u);let v;t[6]!==i?(v=()=>{i({type:"renameSurvey"})},t[6]=i,t[7]=v):v=t[7];const x=v;let m;t[8]!==e||t[9]!==o?(m=o?void 0:{paths:[{to:"/company",title:e.formatMessage(w.companySurveys)}]},t[8]=e,t[9]=o,t[10]=m):m=t[10];const g=!o,h=`company-new-from-scratch${o?"-preview":""}`;let y;t[11]===Symbol.for("react.memo_cache_sentinel")?(y={pt:0},t[11]=y):y=t[11];let s;t[12]!==i||t[13]!==e||t[14]!==o?(s=o?[r.jsx(j,{"data-external-id":"close-preview-button",onClick:()=>i({type:"closePreview"}),icon:r.jsx(I,{fontSize:"x-small"}),variant:"outlined",children:e.formatMessage(w.closePreview)},0)]:[r.jsx(j,{"data-external-id":"preview-button",onClick:()=>i({type:"showPreview"}),icon:r.jsx($,{fontSize:"x-small"}),variant:"outlined",children:e.formatMessage(w.preview)},0)],t[12]=i,t[13]=e,t[14]=o,t[15]=s):s=t[15];let p;t[16]!==x||t[17]!==m||t[18]!==g||t[19]!==h||t[20]!==s||t[21]!==S?(p=r.jsx(z,{breadcrumbs:m,title:S,allowRename:g,onRename:x,externalId:h,bodyProps:y,buttons:s}),t[16]=x,t[17]=m,t[18]=g,t[19]=h,t[20]=s,t[21]=S,t[22]=p):p=t[22];let f;t[23]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(k,{}),t[23]=f):f=t[23];let d;return t[24]!==p?(d=r.jsxs(r.Fragment,{children:[p,f]}),t[24]=p,t[25]=d):d=t[25],d};export{ye as FromScratchRoute,ye as default};
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.