1"use strict";(self.webpackChunkbetatesting_frontend=self.webpackChunkbetatesting_frontend||[]).push([[919],{370(U,T,u){u.d(T,{A:()=>i});var M=u(82084),A=u(68277),g=u(54753),E=u(48011),d=function(){return d=Object.assign||function(n){for(var o,r=1,t=arguments.length;r<t;r++){o=arguments[r];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},d.apply(this,arguments)},h=function(n,o){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&o.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,t=Object.getOwnPropertySymbols(n);e<t.length;e++)o.indexOf(t[e])<0&&Object.prototype.propertyIsEnumerable.call(n,t[e])&&(r[t[e]]=n[t[e]]);return r},s=function(n,o,r){if(r||arguments.length===2)for(var t=0,e=o.length,c;t<e;t++)(c||!(t in o))&&(c||(c=Array.prototype.slice.call(o,0,t)),c[t]=o[t]);return n.concat(c||Array.prototype.slice.call(o))};function f(n,o){var r=o.randomize,t=o.rankTopN,e=o.tapToRank,c=o.maxSelections,_=h(o,["randomize","rankTopN","tapToRank","maxSelections"]),l=d(d(d(d({},r!==void 0&&{randomize:r}),t!==void 0&&{rankTopN:t}),e!==void 0&&{tapToRank:e}),c!==void 0&&{maxSelections:c});return d(d(d({},n),_),Object.keys(l).length>0&&{multipleChoiceConfiguration:d(d({},n.multipleChoiceConfiguration),l)})}function a(n,o){var r,t,e,c,_;return d(d({},o),{options:!((r=o.options)===null||r===void 0)&&r.length?o.options:n.options,matrixOptions:(t=o.matrixOptions)!==null&&t!==void 0?t:n.matrixOptions,matrixRows:(e=o.matrixRows)!==null&&e!==void 0?e:n.matrixRows,matrixColumns:(c=o.matrixColumns)!==null&&c!==void 0?c:n.matrixColumns,attachmentUploads:!((_=o.attachmentUploads)===null||_===void 0)&&_.length?o.attachmentUploads:n.attachmentUploads})}const i=(0,M.A)(function(n,o){return{survey:null,surveyCache:{},fetchState:null,itemsFetchState:null,updateSurveyItemProgressStatus:null,surveyItems:[],fetchSurvey:function(r,t){t===void 0&&(t=!0);var e=o().surveyCache;return t&&e[r]?(n({survey:e[r]}),Promise.resolve(e[r])):(n({fetchState:"fetching"}),(0,g.A)(r).then(function(c){return n(function(_){var l;return{survey:c,fetchState:"fetched",surveyCache:d(d({},_.surveyCache),(l={},l[r]=c,l))}}),c}).catch(function(c){var _,l;return n({fetchState:((_=c.response)===null||_===void 0?void 0:_.status)===404?"not-found":"error"}),((l=c.response)===null||l===void 0?void 0:l.status)!==404&&console.warn("Error fetching survey: ",c),Promise.reject(c)}))},addSurveyItemOption:function(r,t){n(function(e){return{surveyItems:e.surveyItems.map(function(c){var _,l;return r!==c.id||!((_=c.options)===null||_===void 0)&&_.some(function(v){return v.id===t.id})?c:d(d({},c),{options:s(s([],(l=c.options)!==null&&l!==void 0?l:[],!0),[t],!1)})})}})},fetchItems:function(r){return n({itemsFetchState:"fetching"}),(0,A.A)(r).then(function(t){return n(function(e){var c;return{surveyItems:t,survey:((c=e.survey)===null||c===void 0?void 0:c.id)===r?d(d({},e.survey),{items:t}):e.survey,itemsFetchState:"fetched"}}),t}).catch(function(t){var e,c;return n({itemsFetchState:((e=t.response)===null||e===void 0?void 0:e.status)===404?"not-found":"error"}),((c=t.response)===null||c===void 0?void 0:c.status)!==404&&console.warn("Error fetching survey items: ",t),Promise.reject(t)})},updateSurveyItem:function(r,t,e){n({updateSurveyItemProgressStatus:"in-progress"});var c=o().surveyItems;return n(function(_){var l;return r!==((l=_.survey)===null||l===void 0?void 0:l.id)?_:d(d({},_),{surveyItems:_.surveyItems.map(function(v){return t===v.id?f(v,e):v})})}),(0,E.A)(r,t,e).then(function(_){n(function(l){var v;return r!==((v=l.survey)===null||v===void 0?void 0:v.id)?l:d(d({},l),{updateSurveyItemProgressStatus:"success",surveyItems:l.surveyItems.map(function(P){return t===P.id?a(P,_):P})})})}).catch(function(_){return n(function(l){var v;return r!==((v=l.survey)===null||v===void 0?void 0:v.id)?l:d(d({},l),{updateSurveyItemProgressStatus:"error",surveyItems:c})}),Promise.reject(_)})}}})},970(U,T,u){u.d(T,{A:()=>r});var M=u(82084),A=u(80844),g=u(93232),E=u(38280),d=u(80500),h=u(2543),s=u.n(h),f=u(81142),a=u(75297),i=u(13398),n=function(){return n=Object.assign||function(t){for(var e,c=1,_=arguments.length;c<_;c++){e=arguments[c];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l])}return t},n.apply(this,arguments)},o=function(t,e,c){if(c||arguments.length===2)for(var _=0,l=e.length,v;_<l;_++)(v||!(_ in e))&&(v||(v=Array.prototype.slice.call(e,0,_)),v[_]=e[_]);return t.concat(v||Array.prototype.slice.call(e))};const r=(0,M.A)(function(t,e){return{bug:null,cache:{},fetchState:null,saveState:null,fetchBug:function(c,_,l){l===void 0&&(l=!0);var v=e().cache,P=(0,A.n1)({testId:c,bugId:_}),D=function(O){var K;return t({bug:O,fetchState:"fetched",cache:n(n({},v),(K={},K[P]=O,K))}),O};return l&&v[P]?(t({bug:v[P]}),l==="cache-first"?(0,g.A)(c,_).then(D):Promise.resolve(v[P])):(t({fetchState:"fetching"}),(0,g.A)(c,_).then(D).catch(function(O){return console.warn("Error fetching bug: ",O),t({fetchState:"error"}),Promise.reject(O)}))},updateBug:function(c,_,l,v){return v===void 0&&(v=!1),t({saveState:"saving"}),(0,E.A)(c,_,l,v).then(function(){var P=(0,h.pick)(l,["priority","status","assigneeId","assignee"]);t(function(D){var O;return{bug:((O=D.bug)===null||O===void 0?void 0:O.id)===_?n(n(n({},D.bug),l),{children:v?D.bug.children.map(function(K){return n(n({},K),P)}):D.bug.children,parent:v&&D.bug.parent?n(n({},D.bug.parent),P):D.bug.parent}):D.bug,saveState:"success",cache:{}}})}).catch(function(P){return t({saveState:"error"}),console.warn("Error saving bug: ",P),Promise.reject(P)})},unsetParent:function(c,_){var l=e().updateBug;return l(c,_,{parentId:null,parent:void 0}).then(function(v){return t(function(P){return P.bug?n(n({},P),{bug:n(n({},P.bug),{children:P.bug.children.filter(function(D){return D.id!==_})}),cache:{}}):P}),v})},linkChildren:function(c,_){return t({saveState:"saving"}),(0,d.A)(c.testId,c.id,_).then(function(l){t(function(v){var P;return{saveState:"success",bug:((P=v.bug)===null||P===void 0?void 0:P.id)===c.id?n(n({},v.bug),{children:(0,h.uniqBy)(o(o([],v.bug.children,!0),l,!0),"id")}):v.bug,cache:{}}})}).catch(function(l){return t({saveState:"error"}),console.warn("Error linking bug children: ",l),Promise.reject(l)})},watchBug:function(c,_){return t({saveState:"saving"}),(0,f.A)(c,_).then(function(){t(function(l){var v;return{saveState:"success",bug:((v=l.bug)===null||v===void 0?void 0:v.id)===_?n(n({},l.bug),{isWatching:!0}):l.bug,cache:{}}})}).catch(function(l){return console.warn("Error watching bug: ",l),Promise.reject(l)})},unwatchBug:function(c,_){return t({saveState:"saving"}),(0,a.A)(c,_).then(function(){t(function(l){var v;return{saveState:"success",bug:((v=l.bug)===null||v===void 0?void 0:v.id)===_?n(n({},l.bug),{isWatching:!0}):l.bug,cache:{}}})}).catch(function(l){return console.warn("Error stopping bug watch: ",l),Promise.reject(l)})},deleteBug:function(c,_){return t({saveState:"saving"}),(0,i.A)(c,_).then(function(){t(function(l){var v;return{saveState:"success",bug:((v=l.bug)===null||v===void 0?void 0:v.id)===_?null:l.bug,cache:{}}})}).catch(function(l){return console.warn("Error deleting bug: ",l),Promise.reject(l)})},refetchBugSilently:function(){var c=e().bug;return c.id?(0,g.A)(c.testId,c.id).then(function(_){return t({bug:_,cache:{}}),_}).catch(function(_){return console.warn("Error fetching bug: ",_),Promise.reject(_)}):Promise.resolve(null)}}})},2181(U,T,u){u.d(T,{A:()=>l});var M=u(82084),A=u(44154),g=u(65649),E=u(27308),d=u(1317),h=u(45677),s=u(36736),f=u(61435),a=u(23405),i=u(95864),n=u(23131),o=u(80017),r=function(){return r=Object.assign||function(O){for(var K,m=1,L=arguments.length;m<L;m++){K=arguments[m];for(var W in K)Object.prototype.hasOwnProperty.call(K,W)&&(O[W]=K[W])}return O},r.apply(this,arguments)},t=0,e={};function c(O){return e[O]=++t,t}function _(O,K){return e[O]===K}const l=(0,M.A)(function(O,K){return{test:null,fetchState:null,saveState:null,cache:{},fetchTest:function(m,L){L===void 0&&(L=!0);var W=K().cache;return L&&W[m]?(O({test:W[m]}),Promise.resolve(W[m])):(O({fetchState:"fetching"}),(0,h.A)(m).then(function(F){var I;return O({test:F,fetchState:"fetched",cache:r(r({},W),(I={},I[m]=F,I))}),(0,o.B)(F),F}).catch(function(F){var I,z={404:"not-found",403:"unauthorized"};
1return O({fetchState:z[(I=F.response)===null||I===void 0?void 0:I.status]||"error"}),console.warn("Error fetching test: ",F),Promise.reject(F)}))},updateTest:function(m,L){var W=c(m);return O({saveState:"saving"}),(0,s.A)(m,L).then(function(F){_(m,W)&&P(F,O)}).catch(function(F){return _(m,W)?v(O,"Error updating test: ")(F):Promise.reject(F)})},changeTestCompany:function(m,L){return O({saveState:"saving"}),(0,A.A)(m,L).then(function(W){P(W,O)}).catch(v(O,"Error changing test company: "))},closeTest:function(m){return O({saveState:"saving"}),(0,g.A)(m).then(function(){O({saveState:"success"}),D()}).catch(v(O,"Error closing test: "))},endTest:function(m){return O({saveState:"saving"}),(0,E.A)(m).then(function(){O({saveState:"success"}),D()}).catch(v(O,"Error ending test: "))},refetchTestSilently:function(){var m=K().test;return m?(0,h.A)(m.id).then(function(L){var W=String(L.id);O(function(F){var I;return{test:L,cache:r(r({},F.cache),(I={},I[W]=L,I))}}),(0,o.B)(L)}).catch(function(L){console.warn("Error fetching test: ",L)}):Promise.resolve()},extendTest:function(m,L,W){return O({saveState:"saving"}),(0,d.A)(m,L,W).then(function(){O(function(F){var I,z=r(r({},F.test),{extended:!0,finalDueDate:L});return r(r({},F),{saveState:"success",test:z,cache:r(r({},F.cache),(I={},I[m]=z,I))})}),D()}).catch(v(O,"Error extending test: "))},definePerTesterPrice:function(m){var L=c(m);return(0,n.A)(m).then(function(W){_(m,L)&&P(W,O)})}}});function v(O,K){return function(m){return O({saveState:"error"}),console.warn(K,m),Promise.reject(m)}}function P(O,K){K(function(m){var L,W=O.id;return r(r({},m),{test:O,saveState:"success",cache:r(r({},m.cache),(L={},L[W]=O,L))})}),(0,o.B)(O),D()}function D(){f.A.setState({cache:{}}),a.A.setState({cache:{}}),i.A.setState({cache:{}})}},5798(U,T,u){u.d(T,{A:()=>g});var M=u(82084),A=u(10330);const g=(0,M.A)(function(E){return{features:[],fetchState:null,fetchAllFeatures:function(){return E({fetchState:"fetching"}),(0,A.A)().then(function(d){return E({features:d,fetchState:"fetched"}),d}).catch(function(d){return E({fetchState:"error"}),console.warn("Error fetching all features: ",d),Promise.reject(d)})}}})},10516(U,T,u){u.d(T,{A:()=>i});var M=u(82084),A=u(80844),g=u(97593),E=u(16075),d=u(12006),h=u(11952),s=u(2543),f=u.n(s),a=function(){return a=Object.assign||function(n){for(var o,r=1,t=arguments.length;r<t;r++){o=arguments[r];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},a.apply(this,arguments)};const i=(0,M.A)(function(n,o){return{testers:[],fetchState:null,saveState:null,testerMap:{},cache:{},lastPage:1,perPage:50,totalTesters:0,fetchCompanyTesters:function(r,t,e,c){c===void 0&&(c=!0);var _=(0,A.n1)(a(a({companyId:r},t),e)),l=o().cache;return c&&l[_]?(n(function(v){return a(a(a({},v),l[_]),{fetchState:"fetched"})}),Promise.resolve(l[_].testers)):(n({fetchState:"fetching"}),(0,g.Ay)(a(a({},t),{companyId:r}),e).then(function(v){var P,D=v.data,O=v.lastPage,K=v.perPage,m=v.total,L={testers:D,lastPage:O,totalTesters:m,perPage:K,testerMap:(0,s.keyBy)(D,"id")};return n(a(a({cache:a(a({},l),(P={},P[_]=L,P))},L),{fetchState:"fetched"})),v.data}).catch(function(v){return n({fetchState:"error"}),console.warn("An error occurred while fetching or loading testers data: ",v),Promise.reject(v)}))},removeCompanyTesters:function(r,t,e,c){return e===void 0&&(e=!1),n({saveState:"saving"}),(0,E.A)(r,t,e,c).then(function(){n(function(_){var l=_.testers.filter(function(v){return!t.includes(v.id)});return{saveState:"success",testers:l,totalTesters:_.totalTesters-t.length,cache:{},testerMap:(0,s.keyBy)(l,"id")}})}).catch(function(_){return n({saveState:"error"}),console.warn("Error removing company testers: ",_),Promise.reject(_)})},sendOnboardingEmailToTesters:function(r,t){return n({saveState:"saving"}),(0,d.A)(r,t).then(function(e){return n({saveState:"success",cache:{}}),e}).catch(function(e){return n({saveState:"error"}),console.warn("Error sending onboarding emails: ",e),Promise.reject(e)})},inviteFromWaitingList:function(r,t){return n({saveState:"saving"}),(0,h.A)(r,t).then(function(e){return n({saveState:"success",cache:{}}),e}).catch(function(e){return n({saveState:"error"}),console.warn("Error inviting testers from the waiting list: ",e),Promise.reject(e)})}}})},13457(U,T,u){u.d(T,{A:()=>A});var M=u(62020);const A=(0,M.A)()},15311(U,T,u){u.d(T,{A:()=>d});var M=u(82084),A=u(32429),g=function(){return g=Object.assign||function(h){for(var s,f=1,a=arguments.length;f<a;f++){s=arguments[f];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(h[i]=s[i])}return h},g.apply(this,arguments)},E=function(h,s){var f={};for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&s.indexOf(a)<0&&(f[a]=h[a]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(h);i<a.length;i++)s.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(h,a[i])&&(f[a[i]]=h[a[i]]);return f};const d=(0,M.A)(function(h,s){return{bugs:[],cache:{}
1,fetchState:null,invalidateCache:function(f){h(function(a){var i=a.cache,n=f,o=i[n],r=E(i,[typeof n=="symbol"?n:n+""]);return{cache:r}})},fetchTesterBugs:function(f,a){a===void 0&&(a=!0);var i=s().cache;return a&&i[f]?(h({bugs:i[f],fetchState:"fetched"}),Promise.resolve(i[f])):(h({fetchState:"fetching"}),(0,A.A)(f).then(function(n){var o;return h({cache:g(g({},i),(o={},o[f]=n,o)),bugs:n,fetchState:"fetched"}),n}).catch(function(n){return h({fetchState:"error"}),console.warn("Error fetching tester bugs: ",n),Promise.reject(n)}))}}})},16800(U,T,u){u.d(T,{A:()=>h});var M=u(82084),A=u(26925),g=u(93863),E=u(50686),d=function(){return d=Object.assign||function(s){for(var f,a=1,i=arguments.length;a<i;a++){f=arguments[a];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(s[n]=f[n])}return s},d.apply(this,arguments)};const h=(0,M.A)(function(s,f){return{creditCards:[],cache:{},fetchState:null,saveState:null,fetchCreditCards:function(a,i){i===void 0&&(i=!0);var n=a,o=f().cache;return i&&o[n]?(s({creditCards:o[n]}),Promise.resolve(o[n])):(s({fetchState:"fetching"}),(0,A.A)(a).then(function(r){var t,e=r.filter(function(c){var _;return c.userId===((_=E.A.getState().user)===null||_===void 0?void 0:_.id)||c.companyWide});return s({cache:d(d({},o),(t={},t[n]=e,t)),creditCards:e,fetchState:"fetched"}),e}).catch(function(r){return console.warn("Error fetching company credit cards: ",r),s({fetchState:"error"}),Promise.reject(r)}))},saveCard:function(a,i){return s({saveState:"saving"}),(0,g.A)(a,i).then(function(){s({saveState:"success"})}).catch(function(n){return console.warn("error",n),s({saveState:"error"}),Promise.reject(n)})}}})},21795(U,T,u){u.d(T,{A:()=>E});var M=u(82084),A=u(71431),g=function(){return g=Object.assign||function(d){for(var h,s=1,f=arguments.length;s<f;s++){h=arguments[s];for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&(d[a]=h[a])}return d},g.apply(this,arguments)};const E=(0,M.A)(function(d,h){return{surveys:[],groups:[],cache:{},fetchState:null,fetchTesterSurveys:function(s,f,a){f===void 0&&(f=!0),a===void 0&&(a=!1);var i=h().cache,n=function(o){return d(function(r){return a?r:g(g({},r),{fetchState:o})})};return f&&i[s]?(d({surveys:i[s].activities,groups:i[s].groups}),n("fetched"),Promise.resolve(i[s])):(n("fetching"),(0,A.A)(s).then(function(o){var r;return d({cache:g(g({},h().cache),(r={},r[s]=o,r)),surveys:o.activities,groups:o.groups}),n("fetched"),o}).catch(function(o){return n("error"),console.warn("Error fetching tester surveys: ",o),Promise.reject(o)}))}}})},23405(U,T,u){u.d(T,{A:()=>d});var M=u(82084),A=u(47900),g=u(80844),E=function(){return E=Object.assign||function(h){for(var s,f=1,a=arguments.length;f<a;f++){s=arguments[f];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(h[i]=s[i])}return h},E.apply(this,arguments)};const d=(0,M.A)(function(h,s){return{figures:[],secondaryFigures:[],cache:{},fetchState:null,fetchFigures:function(f,a,i,n){i===void 0&&(i=!1),n===void 0&&(n=!0);var o=s().cache,r=(0,g.n1)(E({testId:f},a)),t=i?"secondaryFigures":"figures";return n&&o[r]?(h(function(e){var c;return E(E({},e),(c={},c[t]=o[r],c))}),Promise.resolve(o[r])):(h({fetchState:"fetching"}),(0,A.A)(f,a).then(function(e){return h(function(c){var _,l;return E(E({},c),(_={},_[t]=e,_.fetchState="fetched",_.cache=E(E({},c.cache),(l={},l[r]=e,l)),_))}),e}).catch(function(e){return console.warn("Error fetching figures:",e),h({fetchState:"error"}),Promise.reject(e)}))}}})},27739(U,T,u){u.d(T,{A:()=>h});var M=u(82084),A=u(85052),g=u(80017),E=function(){return E=Object.assign||function(s){for(var f,a=1,i=arguments.length;a<i;a++){f=arguments[a];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(s[n]=f[n])}return s},E.apply(this,arguments)},d;const h=(0,M.A)(function(s,f){return{audienceAcceptanceRate:null,audienceEstimate:null,audienceExcludedPanelAcquired:0,audienceProjectedApplicants:null,audienceUnavailablePercentage:null,acceptanceRateCache:{},excludedPanelAcquiredCache:{},projectedApplicantsCache:{},targetingRevisionByTest:{},cache:{},unavailablePercentageCache:{},fetchState:null,fetchTestAudienceEstimate:function(a,i){var n,o,r,t;i===void 0&&(i=!0);var e=f(),c=e.acceptanceRateCache,_=e.cache,l=e.excludedPanelAcquiredCache,v=e.projectedApplicantsCache,P=e.unavailablePercentageCache;if(i&&_[a])return s({audienceAcceptanceRate:(n=c[a])!==null&&n!==void 0?n:null,audie
1nceEstimate:_[a],audienceExcludedPanelAcquired:(o=l[a])!==null&&o!==void 0?o:0,audienceProjectedApplicants:(r=v[a])!==null&&r!==void 0?r:null,audienceUnavailablePercentage:(t=P[a])!==null&&t!==void 0?t:null,fetchState:"fetched"}),Promise.resolve(_[a]);s({fetchState:"fetching"});var D=Date.now();return d=D,(0,A.A)(a).then(function(O){var K,m,L,W,F,I,z,j,H;if(d!==D)return Promise.resolve(f().audienceEstimate);var N=(I=O.acceptanceRate)!==null&&I!==void 0?I:null,G=(z=O.projectedApplicants)!==null&&z!==void 0?z:null,x=(j=O.unavailablePercentage)!==null&&j!==void 0?j:null,J=(H=O.excludedPanelAcquired)!==null&&H!==void 0?H:0;return s({acceptanceRateCache:E(E({},c),(K={},K[a]=N,K)),excludedPanelAcquiredCache:E(E({},l),(m={},m[a]=J,m)),cache:E(E({},_),(L={},L[a]=O.estimate,L)),projectedApplicantsCache:E(E({},v),(W={},W[a]=G,W)),unavailablePercentageCache:E(E({},P),(F={},F[a]=x??0,F)),audienceAcceptanceRate:N,audienceEstimate:O.estimate,audienceExcludedPanelAcquired:J,audienceProjectedApplicants:G,audienceUnavailablePercentage:x,fetchState:"fetched"}),O.perTesterCost&&(0,g.A)({id:a,perTesterCost:O.perTesterCost}),O.estimate}).catch(function(O){return s({fetchState:"error"}),console.warn("Error fetching test audience estimate: ",O),Promise.reject(O)})},refetchAudienceEstimate:function(a,i){var n,o=i===void 0?{}:i,r=o.targetingChanged,t=r===void 0?!0:r,e=f(),c=e.fetchState,_=e.fetchTestAudienceEstimate,l=e.targetingRevisionByTest;if(t){var v=(l[a]||0)+1;s({targetingRevisionByTest:E(E({},l),(n={},n[a]=v,n))})}c&&_(a,!1)}}})},28997(U,T,u){u.d(T,{A:()=>i});var M=u(82084),A=u(31752),g=u(1819),E=u(45101),d=u(68737),h=u(38313),s=u(17022),f=u(43510),a=function(){return a=Object.assign||function(n){for(var o,r=1,t=arguments.length;r<t;r++){o=arguments[r];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},a.apply(this,arguments)};const i=(0,M.A)(function(n,o){return{subscription:null,cache:{},fetchState:null,saveState:null,fetchCompanySubscription:function(r,t){t===void 0&&(t=!0);var e=r,c=o().cache;return t&&c[e]?(n({subscription:c[e]}),Promise.resolve(c[e])):(n({fetchState:"fetching"}),(0,s.A)(r).then(function(_){var l;return n({cache:a(a({},c),(l={},l[e]=_,l)),subscription:_,fetchState:"fetched"}),_}).catch(function(_){return n({fetchState:"error"}),console.warn("Error fetching subscription: ",_),Promise.reject(_)}))},setupCompanySubscription:function(r,t,e){return n({saveState:"saving"}),(0,g.A)(r,t,e).then(function(){n({saveState:"success"})}).catch(function(c){return console.warn("Error creating/changing subscription: ",c),n({saveState:"error"}),Promise.reject(c)})},changeCompanySubscription:function(r,t,e){return n({saveState:"saving"}),(0,f.A)(r,t,e).then(function(){n({saveState:"success"})}).catch(function(c){return console.warn("Error creating/changing subscription: ",c),n({saveState:"error"}),Promise.reject(c)})},updateCompanySubscription:function(r,t,e){return n({saveState:"saving"}),(0,E.A)(r,t,e).then(function(){n({saveState:"success"})}).catch(function(c){return console.warn("Error updating subscription: ",c),n({saveState:"error"}),Promise.reject(c)})},startFreeTrialSubscription:function(r,t){return n({saveState:"saving"}),(0,h.A)(r,t).then(function(){n({saveState:"success"})}).catch(function(e){return console.warn("Error creating trial subscription: ",e),n({saveState:"error"}),Promise.reject(e)})},changeCompanySubscriptionFeatures:function(r,t){return n({saveState:"saving"}),(0,d.A)(r,t).then(function(){n({saveState:"success"})}).catch(function(e){return console.warn("Error updating subscription features: ",e),n({saveState:"error"}),Promise.reject(e)})},cancelCompanySubscription:function(r,t){return t===void 0&&(t=!1),n({saveState:"saving"}),(0,A.A)(r,t).then(function(){n({saveState:"success"})}).catch(function(e){return console.warn("Error canceling subscription: ",e),n({saveState:"error"}),Promise.reject(e)})}}})},30376(U,T,u){u.d(T,{A:()=>d});var M=u(82084),A=u(20456),g=u(80844),E=function(){return E=Object.assign||function(h){for(var s,f=1,a=arguments.length;f<a;f++){s=arguments[f];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(h[i]=s[i])}return h},E.apply(this,arguments)};const d=(0,M.A)(function(h,s){return{tags:[],cache:{},fetchState:null,lastPage:1,fetchTags:function(f,a){a===void 0&&(a=!0);var i=(0,g.n1)({companyId:f}),n=s().cache;return a&&n[i]?(h(E(E({},n[i]),{fetchState:"fetched"}
1)),Promise.resolve(n[i].tags)):(h({fetchState:"fetching"}),(0,A.A)(f).then(function(o){var r;return h({cache:E(E({},n),(r={},r[i]={tags:o.data,lastPage:o.lastPage},r)),tags:o.data,lastPage:o.lastPage,fetchState:"fetched"}),o.data}).catch(function(o){return h({fetchState:"error"}),Promise.reject(o)}))}}})},31394(U,T,u){u.d(T,{A:()=>E});var M=u(82084),A=u(4376),g=u(80017);const E=(0,M.A)(function(){return{updateInvitesMonitor:function(d,h){return(0,A.A)(d,h).then(function(s){(0,g.A)({id:d,invitesMonitor:s})}).catch(function(s){return console.warn("Error changing test invite status: ",s),Promise.reject(s)})}}})},31717(U,T,u){u.d(T,{A:()=>d});var M=u(82084),A=u(49874),g=u(35582),E=function(){return E=Object.assign||function(h){for(var s,f=1,a=arguments.length;f<a;f++){s=arguments[f];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(h[i]=s[i])}return h},E.apply(this,arguments)};const d=(0,M.A)(function(h,s){return{targetingSurvey:null,fetchState:null,saveState:null,surveyCache:{},fetchTargetingSurvey:function(f,a){a===void 0&&(a=!0);var i=s().surveyCache;return a&&i[f]?(h({targetingSurvey:i[f]}),Promise.resolve(i[f])):(h({fetchState:"fetching"}),(0,A.A)(f).then(function(n){return h(function(o){var r;return{targetingSurvey:n,fetchState:"fetched",surveyCache:E(E({},o.surveyCache),(r={},r[f]=n,r))}}),n}).catch(function(n){var o,r;return h({fetchState:((o=n.response)===null||o===void 0?void 0:o.status)===404?"not-found":"error"}),((r=n.response)===null||r===void 0?void 0:r.status)!==404&&console.warn("Error fetching survey: ",n),Promise.reject(n)}))},saveTargetingSurveyItemResponses:function(f,a){return h({saveState:"saving"}),(0,g.A)(f,a).then(function(){h({saveState:"success"})}).catch(function(i){return console.warn("Error saving targeting survey responses: ",i),h({saveState:"error"}),Promise.reject(i)})}}})},33742(U,T,u){u.d(T,{A:()=>E});var M=u(82084),A=u(13761),g=function(){return g=Object.assign||function(d){for(var h,s=1,f=arguments.length;s<f;s++){h=arguments[s];for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&(d[a]=h[a])}return d},g.apply(this,arguments)};const E=(0,M.A)(function(d,h){return{testAdmins:[],cache:{},fetchState:null,fetchTestAdmins:function(s,f){f===void 0&&(f=!0);var a=h().cache;return f&&a[s]?(d({testAdmins:a[s]}),Promise.resolve(a[s])):(d({fetchState:"fetching"}),(0,A.A)(s).then(function(i){var n;return d({testAdmins:i,cache:g(g({},a),(n={},n[s]=i,n)),fetchState:"fetched"}),i}).catch(function(i){return d({fetchState:"error"}),console.warn("Error fetching test admins: ",i),Promise.reject(i)}))}}})},38254(U,T,u){u.d(T,{A:()=>r});var M=u(82084),A=u(88061),g=u(50858),E=u(41643),d=u(87977),h=u(19072),s=u(56207),f=u(87765),a=u(44263),i=u(60605),n=function(){return n=Object.assign||function(t){for(var e,c=1,_=arguments.length;c<_;c++){e=arguments[c];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l])}return t},n.apply(this,arguments)},o=function(t,e,c){if(c||arguments.length===2)for(var _=0,l=e.length,v;_<l;_++)(v||!(_ in e))&&(v||(v=Array.prototype.slice.call(e,0,_)),v[_]=e[_]);return t.concat(v||Array.prototype.slice.call(e))};const r=(0,M.A)(function(t,e){return{activeRequestKey:void 0,messages:[],cache:{},fetchState:null,saveState:null,fetchMessages:function(c,_,l){l===void 0&&(l=!0);var v=e().cache,P=c;return l&&v[P]?(t({activeRequestKey:P,messages:v[P]}),Promise.resolve(v[P])):(t(function(D){return{activeRequestKey:P,fetchState:"fetching",messages:D.activeRequestKey===P?D.messages:[]}}),(0,A.A)(c).then(function(D){return t(function(O){var K;return{messages:O.activeRequestKey===P?D:O.messages,fetchState:O.activeRequestKey===P?"fetched":O.fetchState,cache:n(n({},O.cache),(K={},K[P]=D,K))}}),D}).catch(function(D){return console.warn("Error fetching bug messages: ",D),t(function(O){return{fetchState:O.activeRequestKey===P?"error":O.fetchState}}),Promise.reject(D)}))},sendMessage:function(c,_,l){return t({saveState:"saving"}),(0,g.A)(c,l).then(function(v){return t(function(P){var D,O,K=(O=P.cache[c])!==null&&O!==void 0?O:P.activeRequestKey===c?P.messages:[],m=o([v],K.filter(function(L){return L.id!==v.id}),!0);
1return{messages:P.activeRequestKey===c?m:P.messages,saveState:"success",cache:n(n({},P.cache),(D={},D[c]=m,D))}}),v}).catch(function(v){return t({saveState:"error"}),console.warn("Error creating bug message:",v),Promise.reject(v)})},updateMessage:function(c,_,l){return t({saveState:"saving"}),(0,E.A)(c,_,l).then(function(v){return a.t.getState().removeTranslations(_,i.Pq.Comment),t(function(P){var D,O,K=(O=P.cache[c])!==null&&O!==void 0?O:P.activeRequestKey===c?P.messages:[],m=K.map(function(L){return L.id===_?n(n({},L),v):L});return{messages:P.activeRequestKey===c?m:P.messages,saveState:"success",cache:n(n({},P.cache),(D={},D[c]=m,D))}}),v}).catch(function(v){return t({saveState:"error"}),console.warn("Error updating bug message:",v),Promise.reject(v)})},deleteMessage:function(c,_){return t({saveState:"saving"}),(0,d.A)(c,_).then(function(){a.t.getState().removeTranslations(_,i.Pq.Comment),t(function(l){var v,P,D=(P=l.cache[c])!==null&&P!==void 0?P:l.activeRequestKey===c?l.messages:[],O=D.filter(function(K){return K.id!==_});return{messages:l.activeRequestKey===c?O:l.messages,saveState:"success",cache:n(n({},l.cache),(v={},v[c]=O,v))}})}).catch(function(l){return t({saveState:"error"}),console.warn("Error removing bug message:",l),Promise.reject(l)})},saveMessageUploads:function(c,_,l){return t({saveState:"saving"}),(0,h.A)(_,l).then(function(v){t(function(P){return{messages:P.messages.map(function(D){return D.id===_?n(n({},D),{uploads:o(o([],D.uploads||[],!0),v,!0)}):D}),cache:{},saveState:"success"}})}).catch(function(v){return t({saveState:"error"}),console.warn("Error saving message uploads: ",v),Promise.reject(v)})},deleteMessageUpload:function(c,_){return t({saveState:"saving"}),(0,s.A)(c,_).then(function(){t(function(l){return{messages:l.messages.map(function(v){return v.id===c?n(n({},v),{uploads:(v.uploads||[]).filter(function(P){return P.id!==_})}):v}),cache:{},saveState:"success"}})}).catch(function(l){return t({saveState:"error"}),console.warn("Error deleting message upload: ",l),Promise.reject(l)})},updateMessageUpload:function(c,_,l){return t({saveState:"saving"}),(0,f.A)(c,_,l).then(function(){t(function(v){return{messages:v.messages.map(function(P){return P.id===c?n(n({},P),{uploads:(P.uploads||[]).map(function(D){return D.id===_?n(n({},D),l):D})}):P}),cache:{},saveState:"success"}})}).catch(function(v){return t({saveState:"error"}),console.warn("Error updating message upload: ",v),Promise.reject(v)})}}})},40894(U,T,u){u.d(T,{A:()=>s});var M=u(82084),A=u(93979),g=u(2543),E=u.n(g),d=u(80844),h=function(){return h=Object.assign||function(f){for(var a,i=1,n=arguments.length;i<n;i++){a=arguments[i];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(f[o]=a[o])}return f},h.apply(this,arguments)};const s=(0,M.A)(function(f,a){return{tests:[],cache:{},fetchState:null,fetchTests:function(i,n,o){i===void 0&&(i={}),n===void 0&&(n={}),o===void 0&&(o=!0);var r=(0,d.n1)(h(h({},i),n));return o&&a().cache[r]?(f(h({},a().cache[r])),Promise.resolve(a().cache[r].tests)):(f({fetchState:"fetching"}),(0,A.A)(i,n).then(function(t){var e,c=(0,g.pick)(t,["lastPage","currentPage","total","perPage"]);return f({tests:t.data,fetchState:"fetched",cache:h(h({},a().cache),(e={},e[r]={tests:t.data,pagination:c},e)),pagination:c}),t.data}).catch(function(t){return console.warn("error",t),f({fetchState:"error"}),Promise.reject(t)}))}}})},43456(U,T,u){u.d(T,{A:()=>d});var M=u(82084),A=u(72358),g=u(58039),E=function(){return E=Object.assign||function(h){for(var s,f=1,a=arguments.length;f<a;f++){s=arguments[f];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(h[i]=s[i])}return h},E.apply(this,arguments)};const d=(0,M.A)(function(h,s){return{notificationSettings:null,saveState:null,fetchState:null,cache:{},fetchNotificationSettings:function(f,a){a===void 0&&(a=!0);var i=s().cache;return a&&i[f]?(h({notificationSettings:i[f]}),Promise.resolve(i[f])):(h({fetchState:"fetching"}),(0,g.A)(f).then(function(n){var o;return h({fetchState:"fetched",notificationSettings:n,cache:E(E({},i),(o={},o[f]=n,o))}),n}).catch(function(n){var o;return((o=n.response)===null||o===void 0?void 0:o.status)===403?(h({fetchState:"unauthorized"}),Promise.resolve(null)):(console.warn("error: ",n),h({fetchState:"error"}),Promise.reject(n))}))},updateNotificationSettings:function(f,a){return h({saveState:"saving"}),(0,A.A)(f,a).then(function(i){var n;return h({saveState:"success",notificationSettings:i,cache:E(E({},s().cache),(n={},n[f]=i,n))}),i}).catch(function(i){return h({saveState:"error"}),Promise.reject(i)})}}})},43665(U,T,u){u.d(T,{A:()=>n});var M=u(82084),A=u(27912),g=u(93940),E=u(18575),d=u(60218),h=u(98288),s=u(2543),f=u.n(s),a=function(){return a=Object.assign||function(o){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(o[c]=r[c])}return o},a.apply(this,arguments)},i=function(o,r,t){if(t||arguments.length===2)for(var e=0,c=r.length,_;e<c;e++)(_||!(e in r))&&(_||(_=Array.prototype.slice.call(r,0,e)),_[e]=r[e]);return o.concat(_||Array.prototype.slice.call(r))};const n=(0,M.A)(function(o){return{brandingUploads:[],brandingColors:[],fetchState:null,colorsFetchState:null,saveCompanyBrandingUpload:function(r,t,e){return(0,A.A)(r,t,e)},deleteCompanyBrandingUpload:function(r,t){return(0,g.A)(r,t)},saveCompanyBrandingColor:function(r,t){return t.id?(0,d.A)(r,t.id,t).then(function(){o(function(e){return{brandingColors:e.brandingColors.map(function(c){return c.variant===t.variant?a(a({},c),t):c})}})}):(0,E.A)(r,t).then(function(e){o(function(c){return{brandingColors:(0,s.uniqBy)(i(i([],c.brandingColors,!0),[e],!1),"id")}})})},deleteCompanyBrandingColor:function(r,t){return(0,h.A)(r,t).then(function(){o(function(e){return{brandingColors:e.brandingColors.filter(function(c){return c.id!==t})}})})}}})},44263(U,T,u){u.d(T,{t:()=>r});var M=u(82084),A=u(2543),g=u.n(A),E=u(60605),d=u(19377),h=u(76901),s=function(){return s=Object.assign||function(t){for(var e,c=1,_=arguments.length;c<_;c++){e=arguments[c];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l])}return t},s.apply(this,arguments)},f=function(t,e,c){if(c||arguments.length===2)for(var _=0,l=e.length,v;_<l;_++)(v||!(_ in e))&&(v||(v=Array.prototype.slice.call(e,0,_)),v[_]=e[_]);return t.concat(v||Array.prototype.slice.call(e))};function a(t){return"".concat(t.objectId,":").concat(t.objectType,":").concat(t.targetLanguage)}function i(t,e){var c;switch(t.type){case"survey":return"survey:".concat(t.surveyId,":").concat(e);
1case"bug-comments":return"bug-comments:".concat(t.bugId,":").concat(e);case"test-messages":return"test-messages:".concat(t.testId,":").concat((c=t.testerId)!==null&&c!==void 0?c:"me",":").concat(e)}}function n(t,e){var c=new Set(e.map(a));return f(f([],t.filter(function(_){return!c.has(a(_))}),!0),e,!0)}function o(t,e,c){var _=Object.fromEntries(Object.entries(t).filter(function(l){var v=l[1];return!v||v===c}));return e.filter(function(l){return l.objectType===E.Pq.SurveyItem}).forEach(function(l){_[l.objectId]=l.targetLanguage}),_}var r=(0,M.A)(function(t,e){return{translations:[],fetchedScopeKeys:[],pendingScopeFetches:{},surveyItemLanguageMap:{},latestLanguage:void 0,setSurveyItemLanguage:function(c,_){t(function(l){var v;return{surveyItemLanguageMap:s(s({},l.surveyItemLanguageMap),(v={},v[c]=_,v))}})},setLatestLanguage:function(c){t({latestLanguage:c})},addTranslations:function(c){t(function(_){return{translations:n(_.translations,c)}})},removeTranslations:function(c,_){t(function(l){return{translations:l.translations.filter(function(v){return v.objectId!==c||v.objectType!==_})}})},fetchScopeTranslations:function(c,_){var l=i(c,_),v=e(),P=v.fetchedScopeKeys,D=v.pendingScopeFetches;if(P.includes(l))return Promise.resolve();if(D[l])return D[l];var O=(0,h.d)(c,_).then(function(K){t(function(m){var L=K.filter(function(W){return W.targetLanguage===_});return{fetchedScopeKeys:f(f([],m.fetchedScopeKeys,!0),[l],!1),surveyItemLanguageMap:c.type==="survey"?o(m.surveyItemLanguageMap,L,_):m.surveyItemLanguageMap,translations:n(m.translations,L)}})}).finally(function(){t(function(K){return{pendingScopeFetches:(0,A.omit)(K.pendingScopeFetches,l)}})});return t(function(K){var m;return{pendingScopeFetches:s(s({},K.pendingScopeFetches),(m={},m[l]=O,m))}}),O},fetchTranslation:function(c,_,l){var v=e(),P=v.translations,D=v.setLatestLanguage,O=v.setSurveyItemLanguage,K=P.find(function(m){return m.objectId===c&&m.objectType===_&&m.targetLanguage===l});return K?(D(l),_===E.Pq.SurveyItem&&O(c,l),Promise.resolve()):(0,d.C)(c,_,l).then(function(m){t(function(L){return{translations:n(L.translations,m)}}),D(l),_===E.Pq.SurveyItem&&O(c,l)})}}})},45501(U,T,u){u.d(T,{A:()=>g});var M=u(82084),A=u(25604);const g=(0,M.A)(function(E){return{countries:[],fetchState:null,fetchCountries:function(){return E({fetchState:"fetching"}),(0,A.A)().then(function(d){return E({countries:d,fetchState:"fetched"}),d}).catch(function(d){return console.warn("Error fetching country list: ",d),E({fetchState:"error"}),Promise.reject(d)})}}})},47850(U,T,u){u.d(T,{A:()=>A});var M=u(82084);const A=(0,M.A)(function(g){return{currentProgress:null,setProgress:function(E){g({currentProgress:E})}}})},48962(U,T,u){u.d(T,{A:()=>a});var M=u(82084),A=u(62853),g=u(37565),E=u(27739),d=u(80017),h=u(74353),s=u.n(h),f=function(){return f=Object.assign||function(i){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=n[t])}return i},f.apply(this,arguments)};const a=(0,M.A)(function(i,n){return{platforms:[],cache:{},fetchState:null,saveState:null,fetchTestPlatforms:function(o,r){r===void 0&&(r=!0);var t=n().cache;return r&&t[o]?(i({platforms:t[o]}),Promise.resolve(t[o])):(i({fetchState:"fetching"}),(0,A.A)(o).then(function(e){var c;return i({platforms:e,fetchState:"fetched",cache:f(f({},t),(c={},c[o]=e,c))}),e}).catch(function(e){return i({fetchState:"error"}),Promise.reject(e)}))},setTestPlatforms:function(o,r){return i({saveState:"saving"}),(0,g.A)(o,r).then(function(t){var e,c=n().cache;i({saveState:"success",platforms:t,cache:f(f({},c),(e={},e[o]=t,e))}),(0,d.A)({id:o,lastUpdateDate:s()()}),E.A.getState().refetchAudienceEstimate(o)}).catch(function(t){return i({saveState:"error"}),Promise.reject(t)})}}})},50686(U,T,u){u.d(T,{A:()=>t});var M=u(64251),A=u(57968),g=u(82084),E=u(57750),d=u(69891),h=u(94360),s=u(48590),f=u(97512),a=u(45736),i=u(71255),n=function(){return n=Object.assign||function(e){for(var c,_=1,l=arguments.length;_<l;_++){c=arguments[_];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(e[v]=c[v])}return e},n.apply(this,arguments)};function o(e){if(e?.optOutErrorTracking){A.o5().clear(),M.VN();return}A.KU()||(0,a.i)(),M.gV(e?{id:String(e.id)}:null),e?.partnerCompanyId&&M.NA("companyId",String(e.partnerCompanyId))}function r(e){(0,i.Zc)(e.preferredLanguage||i.q)}const t=(0,g.A)(function(e){return{user:null,fetchState:null,saveState:null,linkedInFetchState:null,fetch:function(){return e({fetchState:"fetching"}),(0,E.A)().then(function(c){return r(c),e({user:c,fetchState:"fetched"}),o(c),c}).catch(function(c){return e({fetchState:"error"}),o(null),[403,401].includes(c.status)||console.warn("Error fetching user info: ",c),Promise.reject(c)})},fetchWithMagicLinkCode:function(c){e({fetchState:"fetching"});var _=function(l){return r(l),e({user:l,fetchState:"fetched"}),o(l),l};return(0,f.A)(c).then(function(l){return _(l.user)}).catch(function(){return(0,E.A)().then(_)}).catch(function(l){return e({fetchState:"error"}),o(null),[403,401].includes(l.status)||console.warn("Error fetching user info: ",l),Promise.reject(l)})},refreshUserSession:function(){return(0,E.A)(!0).then(function(c){return r(c),e({user:c,fetchState:"fetched"}),o(c),c})},fetchLinkedInInfo:function(){return e({linkedInFetchState:"fetching"}),(0,d.A)().then(function(c){return e({linkedInInfo:c,linkedInFetchState:"fetched"}),c}).catch(function(c){return e({linkedInFetchState:"error"}),console.warn("Error fetching linkedIn info: ",c),Promise.reject(c)})},disconnectLinkedIn:function(){return(0,h.A)().then(function(){e({linkedInInfo:void 0})})},updateUser:function(c,_,l){return e({saveState:"saving"}),(0,s.A)(c,_,l).then(function(){e(function(v){var P;return n(n({},v),{user:((P=v.user)===null||P===void 0?void 0:P.id)===c?n(n({},v.user),_):v.user,saveState:"success"})})})}}})},53604(U,T,u){u.d(T,{A:()=>h});
1var M=u(82084),A=u(72287),g=u(29901),E=u(80844),d=function(){return d=Object.assign||function(s){for(var f,a=1,i=arguments.length;a<i;a++){f=arguments[a];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(s[n]=f[n])}return s},d.apply(this,arguments)};const h=(0,M.A)(function(s,f){return{cache:{},fetchState:null,fetchPanelData:function(a,i,n){n===void 0&&(n=!0);var o=f().cache,r=(0,E.n1)(d({testerId:a},i));return s({cacheKey:r}),n&&o[r]?(s({panelData:o[r]}),Promise.resolve(o[r])):(s({fetchState:"fetching"}),(0,A.A)(a,i).then(function(t){return s(function(e){var c;return{fetchState:"fetched",cache:d(d({},e.cache),(c={},c[r]=t,c)),panelData:t}}),t}).catch(function(t){return console.warn("Error fetching tester panel data:",t),s({fetchState:"error"}),Promise.reject(t)}))},rateTester:function(a,i,n){return(0,g.A)(a,i,n).then(function(){s(function(o){var r,t=d(d({},o.panelData),{testRating:n});return{cache:o.cacheKey?d(d({},o.cache),(r={},r[o.cacheKey]=t,r)):o.cache,panelData:t}})})},openProfilePanel:function(a,i){s({focusMessageInput:!!i?.focusMessageInput,panelTesterId:a})},closeProfilePanel:function(){s({focusMessageInput:void 0,panelTesterId:void 0,currentPanelTab:void 0})},clearMessageInputFocus:function(){s({focusMessageInput:void 0})},setCurrentPanelTab:function(a){s({currentPanelTab:a})},updatePanelDataInCache:function(a){s(function(i){var n;if(!i.panelData||!i.cacheKey)return i;var o=a(i.panelData);return d(d({},i),{panelData:o,cache:d(d({},i.cache),(n={},n[i.cacheKey]=o,n))})})}}})},59843(U,T,u){u.d(T,{A:()=>h});var M=u(82084),A=u(13263),g=u(36509),E=u(14409),d=u(42954);const h=(0,M.A)(function(s){return{invitedTests:[],invitedFetchState:null,eligibleFetchState:null,eligibleTests:[],fetchTesterInvitedTests:function(f){return s({invitedFetchState:"fetching"}),(0,A.A)(f).then(function(a){return s({invitedTests:a,invitedFetchState:"fetched"}),a}).catch(function(a){return console.warn("Error fetching tester tests: ",a),s({invitedFetchState:"error"}),Promise.reject(a)})},fetchTesterEligibleTests:function(){return s({eligibleFetchState:"fetching"}),(0,g.A)().then(function(f){return s({eligibleTests:f,eligibleFetchState:"fetched"}),f}).catch(function(f){return console.warn("Error fetching tester tests: ",f),s({eligibleFetchState:"error"}),Promise.reject(f)})},applyToTest:function(f,a){return(0,E.A)(f,a)},checkTesterEligibility:function(f,a){return(0,d.A)(f,a)}}})},61435(U,T,u){u.d(T,{A:()=>i});var M=u(82084),A=u(97593),g=u(97241),E=u(80844),d=u(2543),h=u.n(d),s=u(53616),f=u(82046),a=function(){return a=Object.assign||function(o){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(o[c]=r[c])}return o},a.apply(this,arguments)};const i=(0,M.A)(function(o,r){return{testers:[],cache:{},testerMap:{},fetchState:null,lastPage:1,perPage:50,totalTesters:0,fetchTesters:function(t,e,c){e===void 0&&(e={}),c===void 0&&(c=!0);var _=(0,d.omit)(t,s.Yg),l=(0,E.n1)(a(a({},_),e)),v=r().cache;return o({mostRecentFilter:_,mostRecentSort:e}),c&&v[l]?(o(a(a({},v[l]),{fetchState:"fetched"})),Promise.resolve(v[l].testers)):(o({fetchState:"fetching"}),n(_,e).then(function(P){var D,O=P.data,K=P.lastPage,m=P.perPage,L=P.total,W=(0,d.keyBy)(O,"id"),F={testers:O,lastPage:K,totalTesters:L,perPage:m,testerMap:W};return o(a(a({testerMap:W,cache:a(a({},v),(D={},D[l]=F,D))},F),{fetchState:"fetched"})),P.data}).catch(function(P){return o({fetchState:"error"}),console.warn("An error occurred while fetching or loading testers data: ",P),Promise.reject(P)}))},refetchTesters:function(){var t=r(),e=t.fetchTesters,c=t.mostRecentFilter,_=t.mostRecentSort;return e(c,_,!1)},updateTester:function(t){(0,f.A)(t)},clearCache:function(){o({cache:{}})}}});function n(o,r){return o.companyId?(0,A.Ay)(o,r):(0,g.Ay)(o,r)}},62020(U,T,u){u.d(T,{A:()=>h});var M=u(82084),A=u(2543),g=u.n(A),E=function(){return E=Object.assign||function(a){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])}return a},E.apply(this,arguments)},d=function(a,i,n){if(n||arguments.length===2)for(var o=0,r=i.length,t;o<r;
1o++)(t||!(o in i))&&(t||(t=Array.prototype.slice.call(i,0,o)),t[o]=i[o]);return a.concat(t||Array.prototype.slice.call(i))};function h(){var a=function(){return"filters_state_".concat(location.pathname.replace(/\//g,"_")).replace("survey-charts","survey-results")},i=function(){return"sort_state_".concat(location.pathname.replace(/\//g,"_")).replace("survey-charts","survey-results")};return(0,M.A)(function(n,o){return{filters:{},setFilters:function(r){var t=f(typeof r=="function"?r(o().filters):r);(0,A.isEqual)(t,o().filters)||(n({filters:t}),localStorage.setItem(a(),JSON.stringify(t)))},sort:{},setSort:function(r){var t=typeof r=="function"?r(o().sort):r;(0,A.isEqual)(t,o().sort)||(n({sort:t}),localStorage.setItem(i(),JSON.stringify(t)))},initializeFilterAndSort:function(r,t,e,c){t===void 0&&(t={}),e===void 0&&(e={}),c===void 0&&(c=!1),n({defaultFilters:r,filters:E(E(E({},r||{}),c?s(a()):{}),t),sort:E(E({},e),c?s(i()):{})})}}})}function s(a){try{var i=localStorage.getItem(a);if(i)return JSON.parse(i)}catch(n){console.warn("Error when retrieving data from localStorage: ",n),localStorage.removeItem(a)}return{}}function f(a){for(var i=(0,A.pickBy)(a,function(e){return e!==void 0&&!(0,A.isEqual)(e,[])}),n=0,o=Object.keys(i);n<o.length;n++){var r=o[n],t=i[r];Array.isArray(t)&&(i[r]=d([],t,!0).sort())}return i}},66331(U,T,u){u.d(T,{A:()=>h});var M=u(82084),A=u(40913),g=u(79670),E=u(95583),d=function(){return d=Object.assign||function(s){for(var f,a=1,i=arguments.length;a<i;a++){f=arguments[a];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(s[n]=f[n])}return s},d.apply(this,arguments)};const h=(0,M.A)(function(s,f){return{availableFeatures:[],cache:{},fetchState:null,saveState:null,fetchTestAvailableFeatures:function(a,i){i===void 0&&(i=!0);var n=f().cache;return i&&n[a]?(s({availableFeatures:n[a]}),Promise.resolve(n[a])):(s({fetchState:"fetching"}),(0,A.A)(a).then(function(o){return s(function(r){var t;return{availableFeatures:o,fetchState:"fetched",cache:d(d({},r.cache),(t={},t[a]=o,t))}}),o}).catch(function(o){return s({fetchState:"error"}),Promise.reject(o)}))},enableTestFeature:function(a,i){return s({saveState:"saving"}),(0,g.A)(a,i).then(function(){s(function(n){var o,r=n.availableFeatures.map(function(t){return d(d({},t),{enabledForTest:t.id===i?!0:t.enabledForTest})});return{saveState:"success",availableFeatures:r,cache:d(d({},n.cache),(o={},o[a]=r,o))}})}).catch(function(n){return s({saveState:"error"}),Promise.reject(n)})},disableTestFeature:function(a,i){return s({saveState:"saving"}),(0,E.A)(a,i).then(function(){s(function(n){var o,r=n.availableFeatures.map(function(t){return d(d({},t),{enabledForTest:t.id===i?!1:t.enabledForTest})});return{saveState:"success",availableFeatures:r,cache:d(d({},n.cache),(o={},o[a]=r,o))}})}).catch(function(n){return s({saveState:"error"}),Promise.reject(n)})}}})},70582(U,T,u){u.d(T,{A:()=>f});var M=u(82084),A=u(30387),g=u(94350),E=u(34126),d=u(80844),h=function(){return h=Object.assign||function(a){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])}return a},h.apply(this,arguments)},s;const f=(0,M.A)(function(a,i){return{subscriptionOptions:E.tR,cache:{},creditPackageOptions:E.tR,fetchState:null,fetchSubscriptionOptions:function(n,o,r){n===void 0&&(n=!0),o===void 0&&(o=!0);var t=i().cache,e=(0,d.n1)({withCreditsOnly:n,companyId:r});if(s=e,o&&t[e])return a(h(h({},t[e]),{fetchState:"fetched"})),Promise.resolve();a({fetchState:"fetching"});var c=r?(0,g.A)(r,n):(0,A.A)(n);return c.then(function(_){var l,v=_.subscriptionOptions,P=_.creditPackageOptions;s===e&&a({subscriptionOptions:v,creditPackageOptions:P,fetchState:"fetched",cache:h(h({},i().cache),(l={},l[e]={subscriptionOptions:v,creditPackageOptions:P},l))})}).catch(function(_){return a({fetchState:"error"}),console.warn("Error loading available subscription options: ",_),Promise.reject(_)})}}})},72652(U,T,u){u.d(T,{A:()=>n,y:()=>f});var M=u(82084),A=u(71335),g=u(80844),E=u(2543),d=u.n(E),h=u(53616),s=function(){return s=Object.assign||function(o){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(o[c]=r[c])}return o},s.apply(this,arguments)},f=function(){return(0,M.A)(function(o,r){return{fetchState:null,surveyResults:null,cache:{}
1,currentFilters:null,fetchSurveyResults:function(t,e,c){c===void 0&&(c=!0);var _=r().cache,l=i(e,t),v=(0,g.n1)(l);return o({currentFilters:l}),c&&_[v]?(o({surveyResults:_[v]}),Promise.resolve(_[v])):(o({fetchState:"fetching"}),(0,A.A)(t,l).then(function(P){var D=a(P,e,_);return o({surveyResults:D[v],fetchState:"fetched",cache:D}),P}).catch(function(P){return o({fetchState:"error"}),Promise.reject(P)}))},simulateRefetch:function(t){t===void 0&&(t=50);var e=r().surveyResults;o({fetchState:"fetching",surveyResults:null}),setTimeout(function(){o({fetchState:"fetched",surveyResults:e})},t)}}})};function a(o,r,t){var e,c,_=(0,g.n1)(i(r,o.surveyId)),l=s(s({},t),(e={},e[_]=o,e));return!((c=r.filterSurveyItemIds)===null||c===void 0)&&c.length?l:o.items.reduce(function(v,P){var D,O=(0,g.n1)(i(s(s({},r),{filterSurveyItemIds:[P.id]}),o.surveyId));return s(s({},v),(D={},D[O]=s(s({},o),{items:o.items.filter(function(K){return K.id===P.id})}),D))},l)}function i(o,r){return s(s({},(0,E.omit)(o,h.Yg)),{surveyId:r})}const n=f()},76062(U,T,u){u.d(T,{A:()=>f});var M=u(82084),A=u(88777),g=u(25342),E=u(80017),d=u(74353),h=u.n(d),s=function(){return s=Object.assign||function(a){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])}return a},s.apply(this,arguments)};const f=(0,M.A)(function(a,i){return{targetingSurveys:[],cache:{},fetchState:null,saveState:null,fetchTargetingSurveys:function(n,o){o===void 0&&(o=!0);var r=i().cache;return o&&r[n]?(a({targetingSurveys:r[n]}),Promise.resolve(r[n])):(a({fetchState:"fetching"}),(0,A.A)(n).then(function(t){var e;return a({targetingSurveys:t,fetchState:"fetched",cache:s(s({},r),(e={},e[n]=t,e))}),t}).catch(function(t){return a({fetchState:"error"}),console.warn("Error fetching surveys: ",t),Promise.reject(t)}))},saveTargetingSurveyReferenceResponses:function(n,o,r){return a({saveState:"saving"}),(0,g.A)(n,o,r).then(function(){a({saveState:"success"}),(0,E.A)({id:n,lastUpdateDate:h()()})}).catch(function(t){return console.warn("Error saving targeting survey responses: ",t),a({saveState:"error"}),Promise.reject(t)})}}})},80017(U,T,u){u.d(T,{A:()=>E,B:()=>h});var M=u(40894),A=u(2181),g=function(){return g=Object.assign||function(s){for(var f,a=1,i=arguments.length;a<i;a++){f=arguments[a];for(var n in f)Object.prototype.hasOwnProperty.call(f,n)&&(s[n]=f[n])}return s},g.apply(this,arguments)};function E(s){d(s),h(s)}function d(s){A.A.setState(function(f){var a,i;return g(g({},f),{test:((i=f.test)===null||i===void 0?void 0:i.id)===s.id?g(g({},f.test),s):f.test,saveState:"success",cache:g(g({},f.cache),(a={},a[s.id]=f.cache[s.id]?g(g({},f.cache[s.id]),s):void 0,a))})})}function h(s){M.A.setState(function(f){var a=function(i){return i.map(function(n){return n.id===s.id?g(g({},n),s):n})};return g(g({},f),{tests:a(f.tests),cache:Object.keys(f.cache).reduce(function(i,n){var o;return g(g({},i),(o={},o[n]=g(g({},f.cache[n]),{tests:a(f.cache[n].tests)}),o))},{})})})}},82046(U,T,u){u.d(T,{A:()=>s});var M=u(61435),A=u(10516),g=u(2543),E=u.n(g),d=u(53604),h=function(){return h=Object.assign||function(f){for(var a,i=1,n=arguments.length;i<n;i++){a=arguments[i];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(f[o]=a[o])}return f},h.apply(this,arguments)};function s(f){var a=function(n){return n.map(function(o){return o.id===f.id?h(h({},o),f):o})},i=function(n){var o=n.cache,r=n.testers;return{testers:a(r),cache:Object.keys(o).reduce(function(t,e){var c;return h(h({},t),(c={},c[e]=h(h({},o[e]),{testers:a(o[e].testers),testerMap:(0,g.keyBy)(o[e].testers,"id")}),c))},{})}};M.A.setState(i),A.A.setState(i),d.A.getState().updatePanelDataInCache(function(n){var o;return((o=n.tester)===null||o===void 0?void 0:o.id)!==f.id?n:h(h({},n),{tester:h(h({},n.tester),f)})})}},83386(U,T,u){u.d(T,{A:()=>E});var M=u(82084),A=u(9644),g=function(){return g=Object.assign||function(d){for(var h,s=1,f=arguments.length;s<f;s++){h=arguments[s];for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&(d[a]=h[a])}return d},g.apply(this,arguments)};const E=(0,M.A)(function(d,h){return{chartData:{},fetchState:null,cache:{},fetchTestChartData:function(s,f){f===void 0&&(f=!0);var a=h().cache;return f&&a[s]?(d({chartData:a[s]}),Promise.resolve(a[s])):(d({fetchState:"fetching"}),(0,A.A)(s).then(function(i){var n;return d({fetchState:"fetched",chartData:i,cache:g(g({},a),(n={},n[s]=i,n))}),i}).catch(function(i){return console.warn("error: ",i),d({fetchState:"error"}),Promise.reject(i)}))}}})},88778(U,T,u){u.d(T,{A:()=>E});var M=u(82084),A=u(85395),g=function(){return g=Object.assign||function(d){for(var h,s=1,f=arguments.length;s<f;s++){h=arguments[s];for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&(d[a]=h[a])}return d},g.apply(this,arguments)};const E=(0,M.A)(function(d,h){return{companyFieldsHTML:"",testFieldsHTML:"",cache:{companyFieldsHTML:{},testFieldsHTML:{}},fetchCompanyFieldsHTML:function(s,f){f===void 0&&(f=!0);var a=h().cache;return f&&a.companyFieldsHTML[s]!==void 0?(d({companyFieldsHTML:a.companyFieldsHTML[s]}),Promise.resolve()):(0,A.A)({companyId:s}).then(function(i){var n=i.companyLevelPreviewHTML,o=n===void 0?"":n;d(function(r){var t;return{companyFieldsHTML:o,cache:g(g({},r.cache),{companyFieldsHTML:g(g({},r.cache.companyFieldsHTML||{}),(t={},t[s]=o,t))})}})}).catch(function(i){return console.warn("Error fetching company custom fields HTML: ",i),Promise.reject(i)})},fetchTestFieldsHTML:function(s,f){f===void 0&&(f=!0);var a=h().cache;return f&&a.testFieldsHTML[s]!==void 0?(d({testFieldsHTML:a.testFieldsHTML[s]}),Promise.resolve()):(0,A.A)({testId:s}).then(function(i){var n=i.previewHTML,o=n===void 0?"":n;d(function(r){var t;return{testFieldsHTML:o,cache:g(g({},r.cache),{testFieldsHTML:g(g({},r.cache.testFieldsHTML||{}),(t={},t[s]=o,t))})}})}).catch(function(i){return console.warn("Error fetching company custom fields HTML: ",i),Promise.reject(i)})}}})},93884(U,T,u){u.d(T,{A:()=>i});var M=u(82084),A=u(64251),g=u(57968),E=u(19113),d=u(52977),h=u(28436),s=u(45736),f=function(){return f=Object.assign||function(n){for(var o,r=1,t=arguments.length;r<t;r++){o=arguments[r];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},f.apply(this,arguments)};function a(n){if(n?.optOutErrorTracking){g.o5().clear(),A.VN();return}g.KU()||(0,s.i)(),n?.id&&A.NA("companyId",String(n.id))}const i=(0,M.A)(function(n,o){return{company:null,cache:{},fetchState:null,saveState:null,fetchCompany:function(r,t){t===void 0&&(t=!0);var e=o().cache;return t&&e[r]?Promise.resolve(e[r]):(n({fetchState:"fetching"}),(0,E.A)(r).then(function(c){return n(function(_){var l;return{company:c,fetchState:"fetched",cache:f(f({},_.cache),(l={},l[r]=c,l))}}),a(c),c}).catch(function(c){var _,l={404:"not-found",403:"unauthorized",401:"unauthorized"};return n({fetchState:l[(_=c.response)===null||_===void 0?void 0:_.status]||"error"}),Promise.reject(c)}))},fetchCompanyFromSubdomain:function(){return n({fetchState:"fetching"}),(0,E.w)().then(function(r){return n(function(t){var e;return{company:r,fetchState:"fetched",cache:f(f({},t.cache),(e={},e[r.id]=r,e))}}),a(r),r}).catch(function(r){var t,e={404:"not-found",403:"unauthorized",401:"unauthorized"};return n({fetchState:e[(t=r.response)===null||t===void 0?void 0:t.status]||"error"}),Promise.reject(r)})},refetchCompanySilently:function(){var r=o().company;return r?.id?(0,E.A)(r.id).then(function(t){return n(function(e){var c;return{company:t,cache:f(f({},e.cache),(c={},c[t.id]=t,c))}}),a(t),t}):Promise.resolve(null)},setCompanyStandardFields:function(r,t){return n({saveState:"saving"}),(0,d.A)(r,t).then(function(){n(function(e){var c,_,l=((_=e.company)===null||_===void 0?void 0:_.id)===r?f(f({},e.company),{standardFields:t}):e.company;return{saveState:"success",company:l,cache:f(f({},e.cache),(c={},c[r]=l,c))}})}).catch(function(e){n({saveState:"error"}),console.warn("Error saving standard fields: ",e)})},updateCompany:function(r,t){return n({saveState:"saving"}),(0,h.A)(r,t).then(function(){n(function(e){var c,_,l=((_=e.company)===null||_===void 0?void 0:_.id)===r?f(f({},e.company),t):e.company;return{company:l,saveState:"success",cache:f(f({},e.cache),(c={},c[r]=l,c))}})}).catch(function(e){return n({saveState:"error"}),console.warn("Error updating company: ",e),Promise.reject(e)})}}})},95864(U,T,u){u.d(T,{A:()=>Q});var M=u(82084),A=u(16199),g=u(8698),E=u(39907),d=u(9506),h=u(64504),s=u(67134),f=u(70629);function a(C,p,R){return C().fetchSurveys(p,!1).then(function(){return R})}function i(C){return{createGroup:function(p,R,y){return(0,g.A)(p,R,y).then(function(S){return a(C,p,S.warnings)})},updateGroup:function(p,R,y){return(0,f.Ay)(p,R,y).then(function(S){return a(C,p,S)})},dissolveGroup:function(p,R){return(0,E.A)(p,R).then(function(y){return a(C,p,y.warnings)})},addMember:function(p,R,y){return(0,A.A)(p,R,y).then(function(S){return a(C,p,S.warnings)})},removeMember:function(p,R,y){return(0,h.A)(p,R,y).then(function(S){return a(C,p,S)})},publishAllMembers:function(p,R){return(0,d.A)(p,R).then(function(y){return a(C,p,y)})},revertToGroup:function(p,R,y){return(0,s.A)(R,y).then(function(S){return a(C,p,S)})}}}var n=u(74353),o=u.n(n),r=u(2543),t=u(55569),e=u(3904),c=u(64394),_=u(87177),l=u(96825),v=u(21824),P=u(80017),D=u(370),O=u(2181),K=u(80844),m=function(){return m=Object.assign||function(C){for(var p,R=1,y=arguments.length;R<y;R++){p=arguments[R];for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(C[S]=p[S])}return C},m.apply(this,arguments)},L=function(C,p,R){if(R||arguments.length===2)for(var y=0,S=p.length,B;y<S;y++)(B||!(y in p))&&(B||(B=Array.prototype.slice.call(p,0,y)),B[y]=p[y]);return C.concat(B||Array.prototype.slice.call(p))},W={surveys:[],cache:{},saveStateMap:{},fetchState:null,reorderState:null};function F(C){return(0,K.n1)({testId:C})}function I(C,p,R){var y;R===void 0&&(R=!1);var S=R?L(L([],C.surveys,!0),[p],!1):C.surveys.map(function(b){return b.id===p.id?p:b}),B=Object.keys(C.cache).reduce(function(b,X){var V,Y;return R?m(m({},b),(V={},V[X]=L(L([],C.cache[X]||[],!0),[p],!1),V)):m(m({},b),(Y={},Y[X]=C.cache[X].map(function(Z){return Z.id===p.id?p:Z}),Y))},{});return m(m({},C),{saveStateMap:m(m({},C.saveStateMap),(y={},y[p.id]="success",y)),surveys:S,cache:B})}function z(C){var p=C.survey,R=C.created;D.A.setState(function(S){var B;return((B=S.survey)===null||B===void 0?void 0:B.id)===p.id?m(m({},S),{survey:m(m({},S.survey),p)}):S});var y=O.A.getState().test;y?.id===p.testId&&(0,P.A)({id:p.testId,surveys:R?L(L([],y.surveys,!0),[p],!1):y.surveys.map(function(S){return S.id===p.id?m(m({},S),p):S}),lastUpdateDate:o()()})}var j=function(){return j=Object.assign||function(C){for(var p,R=1,y=arguments.length;R<y;R++){p=arguments[R];for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(C[S]=p[S])}return C},j.apply(this,arguments)};function H(C,p,R,y){var S=F(R);return y&&p().cache[S]?(C({surveys:p().cache[S]}),Promise.resolve(p().cache[S])):(C({fetchState:"fetching"}),(0,e.A)(R).then(function(B){var b;return C({surveys:B,fetchState:"fetched",cache:j(j({},p().cache),(b={},b[S]=B,b))}),B}).catch(function(B){return C({fetchState:"error"}),console.warn("Error fetching surveys: ",B),Promise.reject(B)}))}function N(C,p,R){return C({reorderState:"in-progress"}),(0,_.A)(p,R).then(function(){var y=(0,r.invert)(R);C(function(S){var B,b=S.surveys.map(function(X){return j(j({},X),{order:Number(y[X.id])||X.order})});return{reorderState:"success",surveys:b,cache:j(j({},S.cache),(B={},B[F(p)]=b,B))}}),(0,P.A)({id:p,lastUpdateDate:o()()})}).catch(function(y){return C({reorderState:"error"}),Promise.reject(y)})}function G(C,p){return{fetchSurveys:function(R,y){return y===void 0&&(y=!0),H(C,p,R,y)},updateSurvey:function(R,y){return C(function(S){var B;return{saveStateMap:j(j({},S.saveStateMap),(B={},B[R]="saving",B))}}),(0,v.A)(R,y).then(function(S){return C(function(B){return I(B,S)}),z({survey:S}),S}).catch(function(S){return C(function(B){var b;return{saveStateMap:j(j({},B.saveStateMap),(b={},b[R]="error",b))}}),console.warn("Error updating survey: ",S),Promise.reject(S)}).finally(function(){setTimeout(function(){C(function(S){var B;return{saveStateMap:j(j({},S.saveStateMap),(B={},B[R]=null,B))}})},5e3)})},createSurvey:function(R){return C(function(y){var S;return{saveStateMap:j(j({},y.saveStateMap),(S={},S[0]="saving",S))}}),(0,t.A)(R).then(function(y){return C(function(S){return I(S,y,!0)}),z({survey:y,created:!0}),y}).catch(function(y){return C(function(S){var B;return{saveStateMap:j(j({},S.saveStateMap),(B={},B[0]="error",B))}}),console.warn("Error creating survey: ",y),Promise.reject(y)}).finally(function(){setTimeout(function(){C(function(y){var S;return{saveStateMap:j(j({},y.saveStateMap),(S={},S[0]=null,S))}})},5e3)})},reorderSurveys:function(R,y){return N(C,R,y)},publishSurvey:function(R){return C(function(y){var S;return{saveStateMap:j(j({},y.saveStateMap),(S={},S[R]="saving",S))}}),(0,c.A)(R).then(function(y){return C(function(S){return I(S,y)}),z({survey:y}),y}).catch(function(y){return C(function(S){var B;return{saveStateMap:j(j({},S.saveStateMap),(B={},B[R]="error",B))}}),console.warn("Error publishing survey: ",y),Promise.reject(y)}).finally(function(){setTimeout(function(){C(function(y){var S;return{saveStateMap:j(j({},y.saveStateMap),(S={},S[R]=null,S))}})},5e3)})},updateDistributionSettings:function(R,y){return(0,l.A)(R,y).then(function(S){C(function(B){return I(B,S)}),z({survey:S})})}}}var x=function(){return x=Object.assign||function(C){for(var p,R=1,y=arguments.length;R<y;R++){p=arguments[R];for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(C[S]=p[S])}return C},x.apply(this,arguments)};const Q=(0,M.A)(function(C,p){return x(x(x(x({},W),G(C,p)),i(p)),{restore:function(){C(W)}})})}}]);
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.