PageSourceSearch

https://form.rctj.com/_next/static/chunks/62824-19c4bfed7d9cfa02.js

js rctj.com collected 2026-10-05 09:44:59 UTC 23,391 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e4c50c4c-6891-4bb5-a2dc-8d0a2d1fc927",e._sentryDebugIdIdentifier="sentry-dbid-e4c50c4c-6891-4bb5-a2dc-8d0a2d1fc927")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62824],{84858:(e,t,s)=>{s.d(t,{S:()=>d});var r=s(75834),n=s(543599),l=s(95221),i=s(987180),o=s(826625),a=s(868645);let d=e=>{let{flowPublicIdentifier:t}=e,s=(0,n.jL)(),d=(0,n.GV)(l.j39),c=(0,n.GV)(i.U8),u=(0,n.GV)(l.FKe),m=(0,n.GV)(l.xQf),f=(0,n.GV)(l.Siq);(0,r.useEffect)(()=>{if(!d||!t)return;let{hasChanged:e,newCalculationsModel:r}=(0,o.$)(c,d,m);e&&s((0,i.Z3)({flowPublicIdentifier:t,calculationsModel:r}))},[d,c,t,s,m]),(0,r.useEffect)(()=>{if(!u||!t||!f)return;let{hasChanged:e,score:r,maxScore:n}=(0,a.AI)(c,u);e&&s((0,i.pN)({flowPublicIdentifier:t,score:r,maxScore:n}))},[u,c,t,s,f])}},102308:(e,t,s)=>{s.d(t,{A:()=>G});var r=s(67059),n=s(694264),l=s(358085),i=s(886560),o=s(253185),a=s(625408),d=s(75834),c=s(675204),u=s(516378),m=s(95221),f=s(987180),h=s(543599),p=s(397435),v=s.n(p),g=s(751830),y=s(415991),x=s(1343),w=s(340573),j=s(846225),b=s(133521),C=s(239066),N=s(378129),S=s(850704),k=s(308584),E=s(9210);let G=()=>{let[e,t]=(0,d.useState)(!1),s=(0,h.GV)(m.oRq),p=(0,h.GV)(m.ebr),G=(0,h.jL)(),I=(()=>{let{flowPublicIdentifier:e}=(0,j.useRouter)().query,t=(0,b.Bq)();return(0,d.useCallback)(async s=>{var r;let n,{mode:i,flowTemplate:d,sessionToken:u,currentStepId:f,submissionId:h,localStorageModel:p,agentLocation:v}=s;if(null==e)throw Error("No flowPublicIdentifier");if(!d.firstStep)return(0,a.UR)("No first step set for form"),{didRun:!1};if(!((e,t)=>{let s=Object.keys((0,m.vCG)(e.integrations)).length>0||(0,c.qJ)(),r=!!(t&&t===e.firstStep),{loginTemplate:n}=(0,o.getLoginStepTemplate)(e);return r&&s&&!n})(d,f))return{didRun:!1};let g={mode:i,sessionToken:u,stepId:f,submissionId:h,urlParams:(0,l.vA)(),version:"v2"};try{n=await (0,C.Ho)(v,"/v1/flow/".concat(e,"/runReadIntegrations"),"POST",g)}catch(t){return(0,c.lz)(t,u,e,f,i)}if(n.error)throw Error(n.error.error);let y=(null==(r=n.model.stepHistory)?void 0:r.path)||[],x=y.length?y[y.length-1]:d.firstStep,w=(0,N.s)({backendModel:n.model,flowTemplate:d,localStorageModel:p,stepToStartFrom:x});return Object.keys(w).filter(e=>(0,c.qJ)()||"stepHistory"!==e).forEach(s=>{let r=w[s];t({mode:i,flowPublicIdentifier:e,stepId:s,registeredUrlParams:d.urlParams,stepModel:r})}),{didRun:!0,existingUpdateSequenceNumber:n.currentUpdateSequenceNumber,stepToStartFrom:(0,c.qJ)()?x:void 0,newStepHistory:(0,c.qJ)()?y:void 0}},[e,t])})();return{initializeSession:(0,d.useCallback)(async e=>{let d,{flowPublicIdentifier:h,mode:j,liveFlowResponse:b,previewFlowResponse:C,ignorePreviewFromCurrentStep:N}=e;t(!0),G((0,f.kK)({isLoadingNextStep:!1}));try{var F,V,T,q;let e=(d="live"===j&&b?b:"preview"===j?C||await (0,i.Em)("/admin/flows/fetch/".concat(h)):await (0,i.Em)("/public/flows/".concat(h,"?mode=").concat(j))).flowSnapshot.template,t=(0,g.NY)(),a=d.flow.settings.disableResumingSubmissions||!!d.flow.parentFlowPublicIdentifier||t||(0,c.qJ)(),u=a?void 0:(0,w.Ht)(j,h),R=(0,k.h)(d.features);if(a&&(0,w.Ht)(j,h)&&!(0,c.qJ)()&&(0,c.B_)(h,j,R),u){let t=(0,o.isStepReachableFromStart)({steps:e.steps,firstStepId:e.firstStep,targetStepId:u.currentStepId});u.currentStepId&&u.currentStepId in e.steps&&t||(u.currentStepId=e.firstStep,(0,w.qO)(j,h,(0,n._)((0,r._)({},u),{currentStepId:e.firstStep}))),(e.firstStep!==u.currentStepId||0!==Object.keys((0,m.vCG)(e.integrations)).length)&&G((0,m.nXF)({open:!0}))}let _=(0,c.ME)(j,h);G((0,f.Ui)({mode:j,sessionToken:_.token})),"live"!==j&&"preview"!==j||(null==b?void 0:b.features.includes("MINIMIZE_NETWORK_REQUESTS"))||(0,S.g)({flowOwnerUserId:null==b?void 0:b.flow.ownerUserId,flowPublicIdentifier:h,dispatch:G,sessionToken:_.token,agentLocation:R,mode:j,organizationId:null==b?void 0:b.flow.organizationId});let O=(0,y.Ry)(h,j),L=(null==u?void 0:u.currentStepId)||e.firstStep;if(!L)throw Error("Missing a desired step to go to when initializing the form");let z=(null==O||null==(F=O.globals)?void 0:F.submissionId)||v().uuid(),P=(0,n._)((0,r._)({}
1,O),{urlParams:(0,l.x5)((0,l.vA)(),e.urlParams),globals:{submissionId:z}});G((0,f.xI)({flowPublicIdentifier:h,mode:j,newModel:P}));let M=!1;if(window.location.hash){let t=decodeURIComponent(window.location.hash.split("#")[1]||"");t&&(M=Object.values(e.steps).reduce((e,t)=>(0,n._)((0,r._)({},e),{[t.name]:t.id}),{})[t])}G((0,f.Lw)({flowPublicIdentifier:h,stepId:p&&!N&&s||M||L,existingStepHistory:null==O||null==(V=O.stepHistory)?void 0:V.path,mode:j}));let{existingUpdateSequenceNumber:A,stepToStartFrom:B,newStepHistory:D}=await I({mode:j,flowTemplate:e,currentStepId:L,sessionToken:_.token,submissionId:z,localStorageModel:P,agentLocation:R});(0,c.qJ)()&&B&&G((0,f.Lw)({flowPublicIdentifier:h,stepId:B,existingStepHistory:D||(null==O||null==(q=O.stepHistory)?void 0:q.path),mode:j})),G((0,f.hY)({mode:j,flowPublicIdentifier:h,sequenceNumber:A||_.sequenceNumber||0}));let{loginTemplate:H,stepId:U}=(0,o.getLoginStepTemplate)(e);if(H&&U&&("email"===H.loginType||"sso"===H.loginType))try{await (0,x.RA)({model:P,sessionUuid:z,mode:j,flowPublicIdentifier:h,dispatch:G,loginStepId:U,sessionToken:_.token,flowTemplate:e,agentLocation:R})}catch(e){if(!(null==e?void 0:e.message))return void console.error(e);if(401===e.statusCode)return void G((0,f.dW)({error:e.message===o.DEFAULT_NOT_LOGGED_IN_MESSAGE?void 0:e.message}));console.error(e)}let W={type:"form_init",embedId:(0,E.c2)(),submissionUuid:z};null==(T=window.parent)||T.postMessage(W,"*")}catch(e){throw"LIVE_FORM_MAINTENANCE_MODE_ENABLED"===e.message?(0,a._X)("Form is undergoing scheduled maintenance",{position:"top-center",autoClose:!1,description:"Please try refreshing the page in a few minutes"}):(0,u.TX)(e)?(0,a._X)("Oops! Couldn't seem to fetch this form",{position:"top-center",autoClose:!1,description:"Please try refreshing the page and checking your internet connectivity"}):(0,a.UR)(e.message,{duration:6e3,autoClose:!1,position:"top-center"}),e}return t(!1),(0,r._)({},d)},[I,G]),loading:e}}},407213:(e,t,s)=>{s.d(t,{TK:()=>i});var r=s(204516),n=s(543599),l=s(75834);let i=()=>{let e=(0,n.jL)(),t=(0,l.useCallback)(()=>{e((0,r.Fu)({windowWidth:window.innerWidth}))},[e]);(0,l.useEffect)(()=>(e((0,r.Fu)({windowWidth:window.innerWidth})),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}),[t,e])}},962824:(e,t,s)=>{s.d(t,{A:()=>eu});var r=s(67059),n=s(626514),l=s(95221),i=s(987180),o=s(119425),a=s(622574),d=s(469822),c=s(543599),u=s(75834),m=s(358085),f=s(308584),h=s(253185),p=s(556846),v=s(972973),g=s(397435),y=s.n(g),x=s(863851),w=s(363488),j=s.n(w),b=s(650161),C=s(951486),N=s(618334);let S=(0,u.memo)(()=>{let e=(0,c.GV)(x.xB),t=(0,u.useMemo)(()=>{let t=new Set;return Object.keys(e.steps).forEach(s=>{let r=e.steps[s].template.widgets;Object.keys(r).forEach(e=>{let s=r[e],n=s.type;p.m[n].isDynamicallyLoaded&&t.add(s.type)})}),Array.from(t)},[e]);return(0,n.jsx)("div",{className:"opacity-0 absolute w-0 h-0 overflow-hidden",style:{display:"none",visibility:"hidden",left:"-9999px",top:"-9999px",clipPath:"polygon(0 0, 0 0, 0 0, 0 0)",pointerEvents:"none"},"data-cy":"hidden-widget-preload-div",children:(0,n.jsx)(b.tH,{fallback:(0,n.jsx)(n.Fragment,{}),onError:e=>{N.Cp(e)},children:t.map(e=>{let t=p.m[e].Component,s=v.eR[e].getInitialTemplate(),r=y().generate();return(0,n.jsx)(t,{dontRenderLabel:!1,evaluatedTemplate:(0,h.evaluateGenericObject)(s,{},{timezone:(0,C.F)(),language:void 0,flowTemplate:null}),unevaluatedTemplate:s,isReadonlyMode:!0,setValue:()=>{},value:h.SHARED_WIDGETS[e].docs.emptyValue,widgetId:r},r)})})})},j());var k=s(22449),E=s(448516),G=s(204516);let I=(0,s(299214).DU)(["html{overflow:hidden;height:100%;}body{height:100%;overflow:auto;}"]);var F=s(407213),V=s(690563),T=s(15171),q=s(464507),R=s(202514),_=s.n(R),O=s(564189),L=s(360049),z=s(30689),P=s(133521);let M=()=>{let e=(0,c.GV)(G.c5),t=(0,c.GV)(i.wC),s=(0,c.GV)(i.VC),r=(0,c.jL)(),{schedulingStepIdWithConflict:l,schedulingConflictType:o="conflict"}=(0,c.GV)(z.qt),a=(0,P.jz)();if(!l||"edit"===t)return null;let d=_()(e.primaryColor).fade(.85).hsl().string();return(0,n.jsx)(V.e.Root,{show:void 0!==l,as:u.Fragment,children:(0,n.jsxs)(T.l,{as:"div",className:"relative z-[12]",onClose:()=>{},children:[(0,n.jsx)(V.e.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500/75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed z-[12] inset-0 overflow-y-auto",children:(0,n.jsx)("div",{className:"flex items-end sm:items-start justify-center min-h-full p-4 text-center sm:p-0",children:(0,n.jsx)(V.e.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)("div",{children:(0,n.jsx)(O.Rj,{children:(0,n.jsxs)(T.l.Panel,{className:"relative  rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full sm:p-6 mt-28! fillout-in-progress-modal",style:{background:e.questionsBackgroun
1dColorNoOpacity},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full ",style:{backgroundColor:d},children:(0,n.jsx)(q.C,{className:"h-6 w-6 ","aria-hidden":"true",style:{color:e.primaryColor}})}),(0,n.jsx)("div",{className:"mt-3 text-center sm:mt-5",children:(0,n.jsx)(T.l.Title,{as:"h3",className:"text-lg leading-5 font-medium ",style:{color:e.questionsColorOnNoOpacity},children:(()=>{switch(o){case"conflict":return"Your time slot was just taken. Please choose another time.";case"already_attending":return"You are already attending this event."}})()})})]}),(0,n.jsx)("div",{className:"mt-3 sm:mt-4",children:(0,n.jsx)(L.gx,{alignment:"full",text:(()=>{switch(o){case"conflict":return"Pick time";case"already_attending":return"Continue"}})(),sizingOverride:"small",onClick:async()=>{r((0,z.qg)({stepId:void 0})),s!==l&&a(l)}})})]})})})})})})]})})};var A=s(423650),B=s(757098),D=s(340573),H=s(118426),U=s(846225),W=s(666972),X=s(751830),J=s(430174),Y=s(675204);let K=()=>{let{flowPublicIdentifier:e}=(0,U.useRouter)().query,t=(0,c.GV)(G.c5),s=(0,c.GV)(i.wC),{t:r}=(0,B.c)(),o=(()=>{let{isPreviewingTemplate:e}=(0,X.GT)(),t=(0,c.GV)(i.wC),{flowPublicIdentifier:s}=(0,U.useRouter)().query,r=(0,u.useMemo)(()=>{if("edit"===t)return!1;let e=(0,D.Ht)(t,s);return!!(null==e?void 0:e.startAgainStep)&&!!e.currentStepId&&e.startAgainStep===e.currentStepId},[t,s]),[n]=(0,W.useQueryParam)(J.tx,W.StringParam),[l]=(0,W.useQueryParam)(J.dl,W.StringParam);return"true"===n||"true"===l||r||e})(),a=(0,c.GV)(x.Mj),d=(0,c.jL)(),m=(0,c.GV)(l.$Kd),f=(0,c.GV)(l.l8P),h=(0,c.GV)(i.MZ),p=(0,c.GV)(i.z8),v=(0,c.GV)(E.Dl),[g,y]=(0,u.useState)(!1);if(!e||!m||"edit"===s||o||a&&(!p||h)||f)return(0,n.jsx)(n.Fragment,{});let w=()=>{d((0,l.nXF)({open:!1}))},j=_()(t.primaryColor).fade(.85).hsl().string(),b=_()(t.questionsColorOnNoOpacity).fade(.15).hsl().string();return(0,n.jsx)(V.e.Root,{show:m,as:u.Fragment,children:(0,n.jsxs)(T.l,{as:"div",className:"relative z-[12]",onClose:w,children:[(0,n.jsx)(V.e.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500/75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed z-[12] inset-0 overflow-y-auto",children:(0,n.jsx)("div",{className:"flex items-end sm:items-start justify-center min-h-full p-4 text-center sm:p-0",children:(0,n.jsx)(V.e.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)("div",{children:(0,n.jsx)(O.Rj,{children:(0,n.jsxs)(T.l.Panel,{className:"relative  rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full sm:p-6 mt-28! fillout-in-progress-modal",style:{background:t.questionsBackgroundColorNoOpacity},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full ",style:{backgroundColor:j},children:(0,n.jsx)(A.R,{className:"h-6 w-6 ","aria-hidden":"true",style:{color:t.primaryColor}})}),(0,n.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,n.jsx)(T.l.Title,{as:"h1",className:"text-lg leading-5 font-medium ",style:{color:t.questionsColorOnNoOpacity},children:r("You have a submission in progress. Would you like to continue?")}),(0,n.jsx)(T.l.Description,{style:{color:b},children:r("Starting again will erase all information you have entered.")})]})]}),(0,n.jsxs)("div",{className:"mt-5 sm:mt-6 sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense [&>*:first-child]:order-last [&>*:last-child]:order-first",children:[(0,n.jsx)("div",{"data-cy":"continue-form-button",children:(0,n.jsx)(L.gx,{alignment:"full",text:r("Continue"),sizingOverride:"small",onClick:async()=>w()})}),(0,n.jsx)("div",{"data-cy":"start-again-form-button",className:"mt-4 sm:mt-0",children:(0,n.jsx)(L.gx,{customHoverColor:t.inputBackgroun
1dColor,isLoading:g,alignment:"full",text:r("Start again"),sizingOverride:"small",style:{background:t.questionsBackgroundColor,borderColor:t.borderColor,color:(0,H.o)(t.slightlyFadedAnswersColor,t.questionsBackgroundColor)},onClick:async()=>{y(!0),await (0,Y.B_)(e,s,v),window.location.reload()}})})]})]})})})})})})]})})};var Q=s(633563);let Z=()=>{let[e,t]=(0,u.useState)(!1),s=(0,c.GV)(l.stg),{t:r}=(0,B.c)(),o=(0,c.GV)(G.c5),[a,d]=(0,u.useState)(!1),m=(0,Y.nJ)(),f=(0,c.GV)(i.wC),h=(0,c.GV)(x.E$),p=(0,c.GV)(l.l8P),v=(0,c.GV)(x.qR),g=(0,c.GV)(i.W1);if(m||"edit"===f||!g||!p||"ending"===h)return(0,n.jsx)(n.Fragment,{});let y=_()(o.primaryColor).fade(.85).hsl().string();return(0,n.jsx)(V.e.Root,{show:p,as:u.Fragment,children:(0,n.jsxs)(T.l,{as:"div",className:"relative z-[12]",onClose:()=>{},children:[(0,n.jsx)(V.e.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500/75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed z-[12] inset-0 overflow-y-auto",children:(0,n.jsx)("div",{className:"flex items-end sm:items-start justify-center min-h-full p-4 text-center sm:p-0",children:(0,n.jsx)(V.e.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsx)("div",{children:(0,n.jsx)(O.Rj,{children:(0,n.jsxs)(T.l.Panel,{className:"relative  rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-xl sm:w-full sm:p-6 mt-28! sm:min-w-[512px]",style:{background:o.questionsBackgroundColorNoOpacity},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full ",style:{backgroundColor:y},children:(0,n.jsx)(A.R,{className:"h-6 w-6 ","aria-hidden":"true",style:{color:o.primaryColor}})}),(0,n.jsx)("div",{className:"mt-3 text-center sm:mt-5",children:(0,n.jsx)(T.l.Title,{as:"h3",className:"text-lg leading-5 font-medium ",style:{color:o.questionsColorOnNoOpacity},children:r("This response was already submitted")})})]}),(0,n.jsxs)("div",{className:(0,Q.cn)("mt-5 sm:mt-6  ",v?"sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense":" flex justify-center w-full"),children:[(0,n.jsx)("div",{children:(0,n.jsx)(L.gx,{removeRingOffset:!0,customHoverColor:o.inputBackgroundColor,alignment:"full",text:r("New submission"),isLoading:a,sizingOverride:"small",style:v?{background:o.questionsBackgroundColor,borderColor:o.borderColor,color:(0,H.o)(o.slightlyFadedAnswersColor,o.questionsBackgroundColor)}:{},onClick:async()=>{d(!0),(0,D.dF)(f,s),window.location.reload()}})}),v&&(0,n.jsx)("div",{className:"mt-4 sm:mt-0","data-cy":"continue-form-button",children:(0,n.jsx)(L.gx,{alignment:"full",isLoading:e,text:r("Edit submission"),sizingOverride:"small",onClick:async()=>{t(!0),(0,D.dF)(f,s),(0,Y.CI)(g)}})})]})]})})})})})})]})})};var $=s(201670),ee=s(29256);let et=()=>{let e=(0,c.GV)(l.VNm),t=(0,c.GV)(l.sFB),s=(0,c.GV)(i.wC),r=(0,c.GV)(l.iZf),o=(0,c.GV)(G.c5),[a,d]=(0,u.useState)(!1);if(null==e||"live"!==s||a)return(0,n.jsx)(n.Fragment,{});let m=(0,ee.vF)(e);return null==m||m.lastSavedSnapshotTime<=r||m.lastSavedSnapshotId===t?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)("div",{className:"fixed bottom-0 left-1/2   -translate-x-1/2 z-50",children:(0,n.jsxs)("div",{className:(0,Q.cn)("flex flex-col mb-1 sm:mb-3 shadow-md sm:shadow-lg rounded-sm py-2 pl-4 pr-4 sm:pl-5 sm:pr-7 font-medium ",o.isDark?"bg-white text-gray-800":"bg-gray-800 text-white"),children:[(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"inline-flex font-semibold mr-1"}),"This form has unpublished changes"]}),(0,n.jsx)("div",{className:"flex items-center justify-center text-xs text-gray-400 mt-0 sm:mt-[2px]",children:"This note is only visible to you"}),(0,n.jsx)("div",{className:"absolute top-0 right-0 mr-1 mt-1 sm:mt-[5px]",children:(0,n.jsx)($.u,{onClick:()=>{(0,ee.Ov)(e),d(!0)},className:(0,Q.cn)("flex z-[10] cursor-pointer","h-4 w-4",o.isDark?"text-gray-500 hover:text-gray-600":"text-gray-400 hover:text-gray-500"),"aria-hidden":"true"})})]})})};var es=s(102308),er=s(694264),en=s(357330);let el=(e,t,s)=>Math.max(t,Math.min(e,s)),ei=e=>{var t;if(!e||e===document.body)return;let{top:s,bottom:r,left:n}=(null!=(t=e.closest('button, [role="button"], a, input, label'))?t:e).getBoundingClientRect();return{top:s,bottom:r,left:n}},eo=()=>{var e,t,s,o,a,d;let m=(0,u.useRef)(null),f=(0,u.useRef)(null),h=(0,u.useRef)(),[p,v]=(0,u.useState)(),[g,y]=(0,u.useState)(!1),x=(0,c.GV)(l.stg),w=(0,c.GV)(i.W1),j=(0,c.GV)(i.wC),b=(0,c.GV)(E.Dl),C=(0,c.GV)(l.xQf),N=(0,c.GV)(G.c5),S=!!N.isDark,[k,I]=(0,u.useState)(!1);(0,u.useEffect)(()=>I((0,en.GX)()),[]),(0,u.useEffect)(()=>
1{if(!k)return;let e=e=>{var t;h.current=null!=(t=ei(e.target instanceof Element?e.target:null))?t:h.current},t=e=>{var t;("Enter"===e.key||" "===e.key)&&(h.current=null!=(t=ei(document.activeElement))?t:h.current)};document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),(0,en.EB)(f.current);let s=(0,en.Il)((e,t)=>{v(t=>e?null!=t?t:(e=>{let t=window.innerHeight-150-12,s=el((window.innerWidth-326)/2,0,12),r=Math.max(s,window.innerWidth-326-12);if(!e)return{top:el(t/2,12,t),left:el(r/2,s,r)};let n=el(e.left,s,r),l=e.bottom+12;return l<=t?{top:l,left:n}:{bottom:Math.min(window.innerHeight-e.top+12,window.innerHeight-150-12),left:n}})(h.current):void 0),y(t)});return()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0),s(),(0,en.EB)(null)}},[k]),(0,u.useEffect)(()=>{k&&x&&w&&("live"===j||"preview"===j)&&(0,en.Js)({flowPublicIdentifier:x,mode:j,sessionToken:w,agentLocation:b,language:C,theme:S?"dark":"light"})},[k,x,j,w,b,C,S]);let F=void 0!==p;if((0,u.useEffect)(()=>{var e;F&&(null==(e=m.current)||e.focus({preventScroll:!0}))},[F]),!k)return null;let V=null!=(a=null==(t=N.font)||null==(e=t.googleFont)?void 0:e.name)?a:null==(o=N.font)||null==(s=o.customFont)?void 0:s.name,T=F?(0,er._)((0,r._)({},p),{width:326,backgroundColor:((e,t,s)=>{if(!s)return e;try{return _()(e).mix(_()(t),.1).hsl().string()}catch(t){return e}})(null!=(d=N.questionsBackgroundColorNoOpacity)?d:N.questionsBackgroundColor,N.questionsColor,S),color:N.questionsColor,borderColor:N.borderColor,fontFamily:V?'"'.concat(V,'", sans-serif'):void 0}):void 0;return(0,n.jsxs)("div",{ref:m,role:F?"dialog":void 0,"aria-label":F?"Security check":void 0,tabIndex:F?-1:void 0,style:T,className:(0,Q.cn)("fixed z-[2147483000]",F?"rounded-xl border p-3 shadow-xl outline-none":"bottom-0 left-0"),children:[F&&(0,n.jsxs)("div",{className:"mb-2 text-sm",children:[(0,n.jsx)("div",{className:"font-medium",children:"Quick security check to send your answers"}),g&&(0,n.jsx)("div",{className:"mt-0.5 opacity-80",children:"That didn't go through. Please try once more."})]}),(0,n.jsx)("div",{ref:f,className:(0,Q.cn)(F&&"min-h-[65px]")})]})};var ea=s(673250);let ed=["pointermove","keydown","scroll","touchstart"];var ec=s(84858);let eu=e=>{var t;let{children:s,flowPublicIdentifier:h,mode:p,liveFlowResponse:v,previewFlowResponse:g}=e,y="undefined"===h?void 0:h,w=(0,c.GV)(l.hiL),j=(0,c.jL)(),b=(0,c.GV)(x.xB),C=(0,c.GV)(l.cXx),N=(0,c.GV)(i.wC),V=(0,c.GV)(l.Otj),T=(0,o.W)();(0,F.TK)();let{initializeSession:q,loading:R}=(0,es.A)();(0,u.useEffect)(()=>{y&&(async()=>{try{var e,t;let s=await q({flowPublicIdentifier:y,mode:p,liveFlowResponse:v,previewFlowResponse:g});g?j((0,i.Xu)({flow:g.flow,flowSnapshot:g.flowSnapshot,mode:"preview"})):j((0,d.XV)((0,r._)({mode:p},s))),j((0,l.muY)({flowPublicIdentifier:y,mode:p,flowTemplate:null==s||null==(e=s.flowSnapshot)?void 0:e.template,liveModeGetFlowResponse:v,agentLocation:(0,f.h)((null==s?void 0:s.features)||(null==g?void 0:g.features)||[])})),(0,E.di)((null==v?void 0:v.features)||[])&&(0,a.D)(null==s||null==(t=s.flowSnapshot)?void 0:t.template,y,p,T.length),j((0,l.tEX)({flowInitializationState:"done"}))}catch(e){j((0,l.tEX)({flowInitializationState:"error"}))}})()},[j,y,p,q]),(0,u.useEffect)(()=>{j((0,i.iY)({mode:p}))},[p,j]),(0,u.useEffect)(()=>{let e=e=>{e.persisted&&j((0,i.kK)({isLoadingNextStep:!1}))};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[j]),(0,ec.S)({flowPublicIdentifier:y});let _=b&&w&&N&&!R;return((e=>{let{mode:t,flowPublicIdentifier:s}=e;(0,u.useEffect)(()=>{if(!s)return;for(let e of((0,ea.q$)(),ed))window.addEventListener(e,ea.L1,{passive:!0});let e=setInterval(()=>{(0,ea.AJ)(t,s)},ea.b9);return()=>{for(let t of(clearInterval(e),(0,ea.Qb)(),ed))window.removeEventListener(t,ea.L1)}},[t,s])})({mode:p,flowPublicIdentifier:_?y:void 0}),(0,u.useEffect)(()=>{if(y&&C){let e=(0,m.vA)();j((0,i.Et)({urlParams:e,registeredUrlParams:C}))}},[p,y,j,C]),b&&!V)?(0,n.jsx)("div",{className:"flex justify-center mt-20",children:(0,n.jsx)("div",{className:"text-red-500 text-2xl",children:"You must select a first step in the flow editor"})}):(0,n.jsxs)(n.Fragment,{children:[_?(0,n.jsx)(n.Fragment,{children:s}):(0,n.jsx)(k.A,{activeTheme:b?(0,G._s)(null==v?void 0:v.theme,b):null==v||null==(t=v.theme)?void 0:t.theme}),(0,n.jsx)(K,{}),(0,n.jsx)(Z,{}),(0,n.jsx)(et,{}),(0,n.jsx)(I,{}),(0,n.jsx)(M,{}),_&&(0,n.jsx)(eo,{}),_&&(0,n.jsx)(S,{})]})}}}]);

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.