1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1555],{77913:e=>{e.exports={closeButton:"satisfaction-survey-dialog_closeButton__z1Mke",dialogTitle:"satisfaction-survey-dialog_dialogTitle__gWO9e",content:"satisfaction-survey-dialog_content__TJi5H",loadingArea:"satisfaction-survey-dialog_loadingArea__a9SVP"}},81555:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SatisfactionSurveyDialog:()=>x,jqueryScriptUrl:()=>r,survalyzerScriptUrl:()=>n});let r="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js",n="https://files.survalyzer.swiss/public/dependency/embedded/release/survalyzer-survey.js";var i=s(12072),a=s(60004),c=s(38232),o=s(7470),l=s(76316),u=s.n(l),y=s(56021),p=s.n(y),d=s(43207),f=s(68915),j=s(44705);function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function b(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach(function(t){(0,i.A)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}var O=s(77913),g=s.n(O),h=s(60072);function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}let x=({surveyTenant:e,surveyHash:t,open:s,onUserCompleted:l,onClose:y})=>{let[v]=(0,d.B)(),{0:O,1:x}=(0,a.useState)(!1),{0:_,1:w}=(0,a.useState)(!1),P=(0,a.useCallback)(()=>x(!0),[]),k=(0,a.useCallback)(()=>w(!0),[]),S=(()=>{let{account:e,contactId:t}=(0,f.Z2)(),s=e?.id,r=(0,j.Ri)("_ga")?.split(".")?.[2],n=(0,j.Ri)("_cs_id")?.split(".")?.[0],i="not_recording";try{{let e=window?.CS_CONF?.integrations_handler?.survalyzer("survey_displayed");e&&(i=e)}}catch(e){console.error("Failed to retrieve Survalyzer replay link:",e)}return b(b(b(b(b({},r&&{urlVar01:r}),n&&{urlVar03:n}),i&&{urlVar04:i}),s&&{urlVar05:s}),t&&{urlVar07:t})})();return(0,a.useEffect)(()=>{setTimeout(()=>{let e=window.api;_&&e&&e.events.subscribe("completed",l)},1e3)},[_,l]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(u(),{children:[(0,h.jsx)("link",{rel:"stylesheet",href:"https://use.fontawesome.com/releases/v5.11.2/css/all.css",integrity:"sha384-KA6wR/X5RY4zFAHpv/CnoG2UW1uogYfdnP67Uv7eULvTveboZJg0qUpmJZb5VqzN",crossOrigin:"anonymous"}),(0,h.jsx)("link",{rel:"stylesheet",type:"text/css",href:"https://cdn3.devexpress.com/jslib/20.1.7/css/dx.common.css"}),(0,h.jsx)("link",{rel:"stylesheet",type:"text/css",href:"https://cdn3.devexpress.com/jslib/20.1.7/css/dx.light.css"}),(0,h.jsx)("link",{href:"https://files.survalyzer.swiss/public/dependency/styleguide/latest/assets/default/rt-theme.min.css",rel:"stylesheet",type:"text/css"})]}),(0,h.jsx)(p(),{id:"satisfaction-survey-jquery",src:r,type:"text/javascript",onReady:P,async:!0}),O&&(0,h.jsx)(p(),{id:"satisfaction-survey-script",src:n,type:"text/javascript",onReady:k,async:!0}),(0,h.jsx)(c.a,{size:"m",open:s,onClose:y,"data-testid":"satisfactionsurvey-dialog-modal",closeLabel:v("satisfactionSurvey.survey.closeButton.aria"),children:(0,h.jsx)("div",{className:g().content,children:_?(0,h.jsx)("survalyzer-survey",function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach(function(t){(0,i.A)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}({surveyhash:t,tenant:e,"data-testid":"satisfactionsurvey-dialog-survey"},S)):(0,h.jsx)(o.O,{size:"l",text:"",className:g().loadingArea})})})]})}}}]);
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.