1import{j as e}from"./fluentui-v9-FBC1RKDV.js";import{U as r,u as A,V as H,W as N,g as E,h as D,E as k,e as I,Y as L,Z as M,_ as U,$ as W,d as j,T as q,a0 as w,a1 as z,a2 as B}from"./index-D9Yl0qQ7.js";import{r as a}from"./msal-C9xx2Jdk.js";import"./fluentui-BJF9F1b4.js";import"./router-Ysq38wtB.js";import"./telemetry-BDdBRI4w.js";const Q=s=>{var i,l,d,u,c,g,m,h,v;const x=(l=(i=r().get("targetid"))!=null?i:s.targetId)!=null?l:"",y=(u=(d=r().get("pageid"))!=null?d:s.pageId)!=null?u:"SurveyPage",Y=a.useRef(r().get("feedback")),f="SurveyThankYouNote",{strings:S}=A(),[P,b]=a.useState(!1),C=()=>{b(!0),B(f)},F=H(),n=a.useMemo(()=>({compassId:s.surveyId,targetId:x,pageId:y}),[y,s.surveyId,x]),o=N.useSurvey(),t=o.get(n),V=!t||t.state===E.RequestState.None||t.state===E.RequestState.Loading,_=((g=(c=t==null?void 0:t.survey)==null?void 0:c.thankYou)==null?void 0:g.headline)||S.Feedback_Form_Thanks,T=(h=(m=t==null?void 0:t.survey)==null?void 0:m.thankYou)==null?void 0:h.text,p=D(),R={root:{textAlign:"left",fontSize:p.fonts.mediumPlus.fontSize,lineHeight:p.fonts.mediumPlus.lineHeight}};return a.useEffect(()=>{t||o.request(n,void 0,k.getVar(I.VITE_CMS_SURVEY_PATH),void 0,void 0,k.getVar(I.VITE_CMS_SURVEY_SITENAME))},[t,n,o]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:L}),e.jsx("div",{style:F.container,"data-bi-dnt":"true",children:e.jsx(M,{style:{maxWidth:U},children:e.jsx("div",{className:W,children:e.jsx("div",{style:{display:"flex",flexDirection:"column"},children:P?e.jsxs("span",{id:f,tabIndex:0,role:"note","aria-label":_,style:{textAlign:"center"},children:[e.jsx(j,{children:_}),!!T&&e.jsx(q,{textProps:{block:!0},styles:R,children:T})]}):e.jsxs(e.Fragment,{children:[e.jsx(j,{children:S.Feedback_Title}),V||!t?e.jsx(w,{}):e.jsx(z,{surveyInstance:t,prr:(v=Y.current)!=null?v:void 0,onSurveyComplete:C,throwErrorOnFailure:!0})]})})})})})]})};export{Q as SurveyPage,Q as default}; 2//# sourceMappingURL=SurveyPage-BxcpJbqX.js.map
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.