1(self.webpackChunkfacetalk=self.webpackChunkfacetalk||[]).push([["9089"],{877616(e,t,r){var s={"./de.mjs":["527645","1214"],"./types.mjs":["766593","426"],"./fr.mjs":["22273","8762"],"./en-US.mjs":["942983","348"],"./es.mjs":["892801","9098"]};function i(e){if(!r.o(s,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],i=t[0];return r.e(t[1]).then(function(){return r(i)})}i.keys=()=>Object.keys(s),i.id=877616,e.exports=i},779212(e,t,r){var s={"./de.js":"877853","./fr.js":"585498","./es.js":"497650"};function i(e){return Promise.resolve().then(function(){if(!r.o(s,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var i=s[e];return r.t(i,23)})}i.keys=()=>Object.keys(s),i.id=779212,e.exports=i},573666(e,t,r){var s={"./de.js":"877853","./es.js":"497650","./fr.js":"585498"};function i(e){return r(n(e))}function n(e){if(!r.o(s,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=n,e.exports=i,i.id=573666},484326(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(688991),i=r(996599),n=r(529633);let a={receiveFeatures:function(e){s.A.dispatch({type:i.k1f,features:e})},receiveFeaturesError:function(e){s.A.dispatch({type:i.Buy,error:e})},receiveFeatureFlags:function(e){let t=e.map(e=>{let t=n.A.getLocalValue(e.name);return null!==t?{...e,active:"true"===t,final:!0}:e});s.A.dispatch({type:i.NrO,featureFlags:t})},receiveFeatureFlagsError:function(e){s.A.dispatch({type:i.Cz6,error:e})}}},859647(e,t,r){"use strict";r.d(t,{A:()=>i});var s=r(688991);let i=class{index(...e){this.restAPI.index(...e)}show(...e){this.restAPI.show(...e)}startPolling(e){this.restAPI.startPolling(e)}stopPolling(){this.restAPI.stopPolling()}create(...e){let t=this.validateCreate(...e);t?s.A.dispatch({type:`${this.resource}_CREATE_ERROR`,error:t}):this.restAPI.create(...e)}update(e,t){let r=this.validateUpdate(e,t);r?s.A.dispatch({type:`${this.resource}_UPDATE_ERROR`,error:r}):this.restAPI.update(e,t)}destroy(e,t){this.restAPI.destroy(e,t)}get(...e){return this.restAPI.index(...e)}startIndexRequests(...e){this.restAPI.startIndexRequests(...e)}cancelIndexRequests(){this.restAPI.cancelIndexRequests()}reset(){this.restAPI.reset()}validateCreate(){return null}validateUpdate(){return null}constructor(e,t){!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"getAll",this.index),this.restAPI=e,this.resource=t}}},443510(e,t,r){"use strict";r.d(t,{A:()=>i});var s=r(688991);let i=class{requestStarting(e,t){s.A.dispatch({type:`${this.resource}_REQUEST_STARTING`,requestType:e,requestArgs:t})}requestDone(e){s.A.dispatch({type:`${this.resource}_REQUEST_DONE`,requestType:e})}indexSuccess(e){s.A.dispatch({type:`${this.resource}_INDEX_SUCCESS`,result:e})}indexError(e){s.A.dispatch({type:`${this.resource}_INDEX_ERROR`,error:e})}showSuccess(e){s.A.dispatch({type:`${this.resource}_SHOW_SUCCESS`,result:e})}showError(e){s.A.dispatch({type:`${this.resource}_SHOW_ERROR`,error:e})}createSuccess(e){s.A.dispatch({type:`${this.resource}_CREATE_SUCCESS`,result:e})}createError(e){s.A.dispatch({type:`${this.resource}_CREATE_ERROR`,error:e})}updateSuccess(e){s.A.dispatch({type:`${this.resource}_UPDATE_SUCCESS`,result:e})}updateError(e){s.A.dispatch({type:`${this.resource}_UPDATE_ERROR`,error:e})}destroySuccess(e){s.A.dispatch({type:`${this.resource}_DESTROY_SUCCESS`,id:e})}destroyError(){s.A.dispatch({type:`${this.resource}_DESTROY_ERROR`})}reset(){s.A.dispatch({type:`${this.resource}_RESET`})}constructor(e){this.resource=e}}},900448(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(860976),i=r(859647),n=r(688991),a=r(996599);class o extends i.A{setLocale(e){n.A.dispatch({type:a.ZY6,locale:e})}constructor(){super(s.A)}}let l=new o},683613(e,t,r){"use strict";r.d(t,{A:()=>o});var s=r(965936),i=r(751455),n=r(545134);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(996599);let o=class{afterCreate(){return Promise.resolve()}index(e,{extraPath:t="",cacheResource:r=null}={}){let a=`${this.apiEndpoint}${t}`,o=e=>{this.ServerActions.indexSuccess(e)},l=e=>{i.A.sendError(`${a}#index`,e),this.ServerActions.indexError()};return new n.A(r,!!r).fetch(e=>s.A.getJSON(a,e),{onStart:()=>this.ServerActions.requestStarting("INDEX",e),onSuccess:o,onFailure:l,args:e}).finally(()=>this.ServerActions.requestDone("INDEX"))}show(e,t,{onSuccess:r=null,onFailure:n=null,extraPath:a=null}={}){return this.ServerActions.requestStarting("SHOW"),r||(r=e=>{this.ServerActions.showSuccess(e)}),n||(n=e=>{i.A.sendError(`${this.apiEndpoint}#show`,e),this.ServerActions.showError(e)}),s.A.getJSON(`${this.apiEndpoint}/${e}${a||""}`,t).then(r,n).then(()=>this.ServerActions.requestDone("SHOW"))}create(e,{onSuccess:t=null,onFailure:r=null,extraPath:n=null}={}){return this.ServerActions.requestStarting("CREATE"),t||(t=e=>this.afterCreate().then(()=>{this.ServerActions.createSuccess(e)})),r||(r=e=>{i.A.sendError(`${this.apiEndpoint}#create`,e),this.ServerActions.createError(e.message)}),s.A.postJSON(`${this.apiEndpoint}${n||""}`,e).then(t,r).then(()=>this.ServerActions.requestDone("CREATE"))}update(e,t,{onSuccess:r=null,onFailure:n=null,extraPath:a=null}={}){return this.ServerActions.requestStarting("UPDATE"),r||(r=e=>{this.ServerActions.updateSuccess(e)}),n||(n=e=>{i.A.sendError(`${this.apiEndpoint}#update`,e),this.ServerActions.updateError(e.message)}),s.A.putJSON(`${this.apiEndpoint}/${e}${a||""}`,t).then(r,n).then(()=>this.ServerActions.requestDone("UPDATE"))}destroy(e,t,{deleteUrl:r=null}={}){this.ServerActions.requestStarting("DELETE");let n=()=>{this.ServerActions.destroySuccess(e)},a=e=>{i.A.sendError(`${this.apiEndpoint}#destroy`,e),this.ServerActions.destroyError()};return r||(r=`${this.apiEndpoint}/${e}`),s.A.deleteJSON(r,t).then(n,a).then(()=>this.ServerActions.requestDone("DELETE"))}constructor(e,t){a(this,"startPolling",(e=15)=>{let t=()=>6e4*(e-new Date().getMinutes()%e)+Math.floor(6e4*Math.random()+1),r=()=>{this.index(),setTimeout(r,t())};this.pollingTimeout=setTimeout(r,t())}),a(this,"stopPolling",()=>{clearTimeout(this.pollingTimeout)}),a(this,"cancelIndexRequests",()=>{this.cancelRequest=!0}),a(this,"startIndexRequests",e=>{this.ServerActions.requestStarting("INDEX"),this.cancelRequest=!1;let t=e.page,r={total:0,data:[]},s=this;return this.onSuccess=function(i){r.data=r.data.concat(i.data),r.total=i.total,i.total>r.data.length&&!s.cancelRequest?(e.page=++t,s._getPaginatedJSON(s.onSuccess,s.onFailure,e)):(s.cancelRequest=!1,s.ServerActions.indexSuccess(r.data),s.ServerActions.requestDone("INDEX"))},this.onFailure=e=>{i.A.sendError(`${this.apiEndpoint}#startIndexRequests`,e),this.ServerActions.indexError(),this.cancelRequest=!1,s.ServerActions.requestDone("INDEX")},this._getPaginatedJSON(this.onSuccess,this.onFailure,e)}),a(this,"reset",()=>{this.ServerActions.reset()}),a(this,"_getPaginatedJSON",(e,t,r)=>s.A.getJSON(this.apiEndpoint,r).then(e,t)),this.apiEndpoint=e,this.ServerActions=t,this.cancelRequest=!1,this.pollingTimeout}}},860976(e,t,r){"use strict";r.d(t,{A:()=>c});var s=r(683613),i=r(443510),n=r(996599);class a extends i.A{constructor(){super(n.b5y)}}let o=new a;class l extends s.A{constructor(){super("/translations",o)}}let c=new l},465780(e,t,r){"use strict";r.d(t,{A:()=>p});var s,i=r(474848),n=r(296540),a=r(958065),o=r(27644),l=r(587492),c=r(996599),u=r(31522);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class h extends(s=n.Component){componentDidMount(){l.default.on("CHA
1NGE",this._onStoreChange)}componentWillUnmount(){l.default.off("CHANGE",this._onStoreChange)}render(){let{showPuffinEnabled:e}=this.state,{containsIcon:t,imageLogo:r,heading:s,description:n,buttons:l,children:c}=this.props;return(0,i.jsx)("div",{className:"error-page",children:(0,i.jsx)("div",{className:"container scroll",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"column-12-hand column-4-lap offset-4-lap",children:(0,i.jsxs)("div",{children:[t&&(e?(0,i.jsx)("p",{children:(0,i.jsx)("img",{src:u.A.getPath("/images/fci/puffin/puffin-surprised.png"),width:"175"})}):r?(0,i.jsx)("p",{className:"error-page__icon",children:(0,i.jsx)("img",{src:r})}):(0,i.jsx)("p",{className:"error-page__icon icon-wrap icon-wrap--circle icon-wrap--error icon-3x",children:(0,i.jsx)(o.A,{name:"remove"})})),(0,i.jsx)("h2",{id:"heading",children:(0,i.jsx)(a.A,{id:s})}),"string"==typeof n?(0,i.jsx)("p",{id:"description",children:(0,i.jsx)(a.A,{id:n})}):"function"==typeof n?n():n,"function"==typeof l?l():l,c]})})})})})}constructor(...e){super(...e),d(this,"state",{showPuffinEnabled:l.default.enabled(c.fXv)}),d(this,"_onStoreChange",()=>{this.setState({showPuffinEnabled:l.default.enabled(c.fXv)})})}}d(h,"defaultProps",{heading:"error_page.heading",description:"error_page.description",containsIcon:!0,imageLogo:null});let p=h},562602(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(474848);r(296540);var i=r(634164),n=r(529633),a=r(965936),o=r(457167);let l=({href:e,target:t,rel:r="noopener noreferrer",className:l,download:c=!1,options:u="",safariViewController:d=!1,children:h,...p})=>{let g=n.A.isCordova()?()=>{t||(t="_blank"),d?a.A.tryToOpenInSafariViewController(e,t):a.A.openWindow(e,t,u)}:void 0;return g?(0,s.jsx)(o.A,{onClick:g,download:c,className:(0,i.A)(l,"link"),...p,children:h}):(0,s.jsx)("a",{href:e,target:t,rel:r,download:c,className:l,...p,children:h})}},474909(e,t,r){"use strict";r.d(t,{A:()=>u});var s=r(474848);r(296540);var i=r(706442),n=r(996599),a=r(465780),o=r(562602),l=r(457167);let c=()=>{window.location.reload()},u=({reloadMsgId:e="error_page.reload"})=>{let{formatMessage:t}=(0,i.A)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.A,{buttons:(0,s.jsxs)("p",{children:[(0,s.jsx)(o.A,{className:"button button--primary error-page__support-button",href:n.cKV,children:t({id:"error_page.contact_support"})}),"\xa0",(0,s.jsx)(l.A,{className:"button button--tertiary error-page__back-button",onClick:c,children:t({id:e})})]})})})}},881312(e,t,r){"use strict";r.d(t,{A:()=>c});var s=r(474848),i=r(296540),n=r(751455),a=r(260854),o=r(923883);class l extends i.Component{static getDerivedStateFromError(e){return(0,a.p6)(e)?{hasError:!0,skipRender:!0}:{hasError:!0}}componentDidCatch(e,t){this.state.skipRender||n.A.onComponentError("IntlErrorBoundary",e,t)}render(){return this.state.skipRender?(0,s.jsx)(o.A,{}):this.state.hasError?(0,s.jsx)("div",{className:"error-page",children:(0,s.jsx)("div",{className:"container scroll",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"column-12-hand column-4-lap offset-4-lap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{id:"heading",children:"Oops! Something went wrong."}),(0,s.jsxs)("p",{id:"description",children:["We are sorry for the inconvenience.",(0,s.jsx)("br",{}),"Usually, you can reload the page to fix the error."]})]})})})})}):(0,s.jsx)(s.Fragment,{children:this.props.children})}constructor(...e){super(...e),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"state",{hasError:!1,skipRender:!1})}}let c=l},457167(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(474848);r(296540);var i=r(354625);let n=({children:e,tabIndex:t=0,to:r,href:n,...a})=>a.onClick?(0,s.jsx)("button",{type:"button",...a,onClick:a.disabled?void 0:a.onClick,children:e}):r?(0,s.jsx)(i.N_,{to:r,role:"button",tabIndex:t,...a,children:e}):(0,s.jsx)("a",{href:n,role:"button",tabIndex:t,...a,children:e})},923883(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(474848),i=r(296540),n=r(183320),a=r(877241);class o extends i.Component{componentDidMount(){let{close:e,text:t}=this.state;e&&!t&&this._closeMe()}render(){let{close:e,text:t}=this.state;return e&&!t?null:(0,s.jsx)(n.A,{...this.props,centered:!0,children:e&&t?(0,s.jsx)("button",{type:"button",className:"button",onClick:this._closeMe,children:t}):null})}constructor(e){super(),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"_closeMe",()=>{let{message:e}=this.state;if(e){var t;null==(t=opener)||t.postMessage(e,location.origin)}window.close()});const{close:t,text:r,message:s}=a.A.parseAndRemove(e.location,["close","text","message"],e.history,!1);this.state={close:t,text:r,message:s}}}let l=o},877462(e,t,r){"use strict";r.d(t,{A:()=>g});var s=r(474848),i=r(296540),n=r(150372),a=r(795093),o=r(759386),l=r(751455),c=r(402785),u=r(472184),d=r
1(923883);let h=async()=>({locale:""}),p=e=>{l.A.sendError("IntlProvider#onError",e)},g=({defaultLocale:e,extraLocales:t,children:l})=>{let g=(0,i.useRef)(Promise.resolve());(0,i.useEffect)(()=>()=>{g.current=null},[]);let[m,f]=(0,i.useState)(()=>null),v=(0,c.A)(u.A,(0,i.useCallback)(()=>u.A.getLocale(),[])),A=t&&t[v]||h;return(0,i.useEffect)(()=>{if(!g.current)return;let t=async e=>{e.startsWith("en")||(0,o.registerLocale)(e,(await r(877616)(`./${e}.mjs`)).default),(0,o.setDefaultLocale)(e)},s=async e=>{if(e.startsWith("en"))"en-us"===e&&(e="en");else{if((0,a.locale)(e)===e)return;await r(779212)(`./${e}.js`).catch(Object)}(0,a.locale)(e)};g.current=g.current.then(()=>Promise.all([e(),A()]).then(async([e,r])=>{if(!g.current)return;let i=r.locale||e.locale;await s(i.toLowerCase()),await t(i),g.current&&f(u.A.getAllMessages(r.app,r.common,e.app,e.common))}))},[e,A]),m?(0,s.jsx)("div",{lang:v,children:(0,s.jsx)(n.A,{locale:v,messages:m,onError:p,children:l})}):(0,s.jsx)(d.A,{})}},183320(e,t,r){"use strict";r.d(t,{A:()=>u});var s=r(474848),i=r(296540),n=r(634164),a=r(769853);let o=({className:e,delay:t=0})=>{let[r]=(0,a.A)(t,t>0);return r?null:(0,s.jsx)("div",{className:e,children:(0,s.jsx)("div",{className:"loading__inner"})})},l=i.memo(function({text:e,longWaitDelay:t,longWaitText:r,longWaitContent:n,onLongWait:o}){let[l]=(0,a.A)(t,t>0),c=!l;return((0,i.useEffect)(()=>{c&&(null==o||o())},[c,o]),c)?(r||(r=e),(0,s.jsxs)(s.Fragment,{children:[r?(0,s.jsx)("p",{children:r}):null,n]})):e?(0,s.jsx)("p",{children:e}):null}),c=({expanded:e,children:t})=>e?(0,s.jsx)("div",{className:"loading__body",children:t}):t,u=({id:e,text:t=null,expanded:r=!1,centered:a=!1,invert:u=!1,block:d=!1,box:h=!1,size:p="medium",wrapper:g=!0,overlay:m=!1,overlayActive:f=!1,style:v="default",delay:A=0,longWaitDelay:w=0,longWaitText:y=null,longWaitContent:_=null,onLongWait:S=null,overlayClassName:b,children:E})=>{let C=(0,n.A)("loading","loading--"+p,"loading--"+v,{"loading--invert":u,"loading--block":d}),R=(0,i.useRef)(S);R.current=S;let P=(0,i.useCallback)(()=>{var e;return null==(e=R.current)?void 0:e.call(R)},[]);if(g||m){let e=(0,n.A)(b,{loading__overlay:m,active:f,loading__wrapper:g,"loading__wrapper--box":h,"loading__wrapper--invert":u||h,"loading__wrapper--static":!r&&!a});return(0,s.jsx)(c,{expanded:r,children:(0,s.jsxs)("div",{className:e,children:[E||(0,s.jsx)(o,{className:C,delay:A}),w>0?(0,s.jsx)(l,{text:t,longWaitDelay:w,longWaitText:y,longWaitContent:_,onLongWait:P}):t?(0,s.jsx)("p",{children:t}):null]})})}return(0,s.jsx)(o,{className:C,delay:A})}},87756(e,t,r){"use strict";r.d(t,{A:()=>u});var s=r(474848),i=r(701506),n=r(296540),a=r(402785),o=r(996599),l=r(186158),c=r(923883);let u=({children:e})=>{let[t,r,u,d,h]=(0,a.A)(l.A,(0,n.useCallback)(()=>[l.A.isLoaded(),l.A.enabled(o.Rj7),l.A.enabled(o.Ptd),l.A.enabled(o.Y1u),l.A.enabled(o.IPH)],[]));return t?(0,s.jsx)(i.A.Provider,{value:{avatarCircle:r,navbarColor:u,navbarHideLabels:d,darkCallPage:h},children:e}):(0,s.jsx)(c.A,{})}},701506(e,t,r){"use strict";r.d(t,{A:()=>a,w:()=>i});var s=r(296540);let i=()=>(0,s.useContext)(n),n=(0,s.createContext)({avatarCircle:!1,navbarColor:!1,navbarHideLabels:!1,darkCallPage:!1});n.displayName="ThemeContext";let a=n},681917(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(484326),i=r(529633),n=r(292944),a=r(965936),o=r(996599);let l=()=>{r(587492);let e=(({isStripMode:e,isOnMobile:t})=>[{name:o.rzu,active:!1},{name:o.UsC,active:!i.A.isProductionMode()||n.A.getPlugin("NativeLogging")},{name:o.O6u,active:!1},{name:o.CnE,active:!1},{name:o.Gcy,active:!1},{name:o.oXA,active:!1,final:!i.A.supportsVideo()},{name:o.MdL,active:!1,final:t},{name:o.CCr,active:!1},{name:o.tAQ,active:!1},{name:o.SyU,active:!0},{name:o.$s1,active:!0},{name:o.Vf3,active:!!i.A.getSessionValue(o.$Mi),final:!0},{name:o.Flz,active:!0},{name:o.GCx,active:!1},{name:o.LzK,active:!0},{name:o.f5i,active:!1},{name:o.tvR,active:!1},{name:o.ZrQ,active:!1},{name:o._PO,active:!1},{name:o.CJJ,active:!1},{name:o.o1B,active:!1},{name:o.mVV,active:!1},{name:o.ftZ,active:!1},{name:o.PHV,active:!1},{name:o.l0,active:!1},{name:o.Th4,active:!1},{name:o.jpI,active:!1},{name:o.K_L,active:!0},{name:o.BqH,active:!1},{name:o.q_e,active:!1},{name:o.fXv,active:!1},{name:o.wiZ,active:!1},{name:o.XXM,active:!1},{name:o.hLh,active:!1},{name:o.kOt,active:!0},{name:o.Epn,active:!1},{name:o.dTz,active:!1},{name:o.Ld6,active:!0},{name:o.N11,active:!1},{name:o.Dix,active:!1},{name:o.IPT,active:!1},{name:o.G82,active:!1},{name:o.Xe2,active:!1},{name:o.pnM,active:!1},{name:o.NYR,active:!1},{name:o.Cvc,active:!1},{name:o.qLn,active:!1},{name:o.yg1,active:!1},{name:o.YhX,active:!1},{name:o.fVW,active:!1},{name:o.QqB,active:!1},{name:o.Mb0,active:!0},{name:o.JLL,active:!1},{name:o.tJB,active:!0},{name:o.nJw,active:!1},{name:o.EsE,active:!1},{name:o.Q1L,active:!1},{name:o.wSo,active:!0},{name:o.hKV,active:!0},{name:o.Vzg,active:!0},{name:o.u_3,active:!1},{name:o.bY_,active:!1},{name:o.eUi,active:!0},{name:o.tz$,active:!1},{name:o.ydF,active:!0},{name:o.MMO,active:!1},{name:o.fMS,active:!0},{name:o.mPq,active:!0},{name:o.taY,active:!0},{name:o.UAU,active:!0},{name:o.$y2,active:!0},{name:o.fDi,active:e},{name:o.HTD,active:!0},{name:o.D4E,active:!0},{name:o.wJA,active:!1},{name:o.D7N,active:!1},{name:o.zfj,active:!1},{name:o.LK8,active:e},{name:o.Ajs,active:e},{name:o.Pg$,active:e},{name:o.$A4,active:"true"===a.A.getQueryStringValue("observer")},{name:o.pAl,active:!1},{name:o.XoE,active:!0},{name:o.dJl,active:!0},{name:o.SDR,active:!1},{name:o.NNY,active:!1},{name:o.Oyo,active:!1},{name:o.I4p,active:"true"===a.A.getQueryStringValue("tracklastn")},{name:o.FOS,active:!0},{name:o.a2S,active:!1},{name:o.Iay,active:!1},{name:o.tpY,active:!1},{name:o.uzn,active:!1},{name:o.dRR,active:!1},{name:o.jUb,active:!1},{name:o.$cQ,active:!1},{name:o.l$i,active:!1},{name:o.PP7,active:!1},{name:o.IFj,active:!1},{name:o.QB8,active:!1,final:t},{name:o.jcf,active:!1},{name:o.cNI,active:!1,final:t},{name:o.vf2,active:!1},{name:o.oMw,active:!1},{name:o.e6I,active:!1},{name:o.hEw,active:!1},{name:o.FOd,active:!1},{name:o.Q9p,active:!1},{name:o.P7g,active:!1},{name:o.yIi,active:!0},{name:o.zXB,active:!1},{name:o.Vwt,active:!1},{name:o.gJ0,active:!1},{name:o.YjA,active:!1},{name:o.SWS,active:!1},{name:o.QFo,active:!1},{name:o.IIn,active:!1},{name:o.pPx,active:!1},{name:o.eXM,active:!e,final:e},{name:o.hL8,active:!1},{name:o.TEv,active:!1},{name:o.hN$,active:!1},{name:o.vbS,active:!1},{name:o.ofB,active:!1},{name:o.W3H,active:!1},{name:o.eZw,active:!1}])({isStripMode:"strip"===a.A.getQueryStringValue("layout"),isOnMobile:i.A.isMobileOrTablet()||i.A.isCordova()});s.A.receiveFeatureFlags(e)}},908503(e,t,r){"use strict";r.d(t,{A:()=>f});var s=r(755373),i=r.n(s),n=r(302543),a=r(554997),o=r(719996),l=r(965936),c=r(545134),u=r(642008),d=r(996599);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let p="~cached~",g={isLoaded:!1,records:[],requests:{},pageNumber:1,totalRecords:void 0,pageSize:void 0,totalPages:void 0,minId:void 0,maxId:void 0};
1class m extends Error{constructor(e){super(e),this.name="ValidationError"}}let f=class{getReducer(){return this._slice.reducer}getSortFunction(){return(e,t)=>t.id-e.id}isLoaded(){return e=>this._my(e).isLoaded}getMinId(){return e=>this._my(e).minId}getMaxId(){return e=>this._my(e).maxId}getPageNumber(){return e=>this._my(e).pageNumber}getTotalNumberOfPages(){return e=>this._my(e).totalPages}getAll(){return e=>this._my(e).records}findBy(e){return e?(0,a.Mz)(this.getAll(),t=>this._filterRecordsByConditions(t,e)[0]):()=>void 0}where(e){return(0,a.Mz)(this.getAll(),t=>this._filterRecordsByConditions(t,e))}map({conditions:e={},recordMapper:t=Object,resultMapper:r=Object}){return(0,a.Mz)(this.getAll(),s=>r(this._filterRecordsByConditions(s,e).map(t)))}mergeRecord(e,t){let r=e.records.findIndex(e=>e.id===t.id);r>=0?e.records.splice(r,1,t):e.records.push(t)}_filterRecordsByConditions(e,t){let r=e;return Object.keys(t).forEach(e=>{r=r.filter(r=>r[e]==t[e])}),r}getLast(){return e=>this._my(e).records.slice(-1)[0]}getRequest(e){return t=>this._my(t).requests[e]||{status:null,errorMessage:null,records:[]}}getRequestStatus(e){return t=>this.getRequest(e)(t).status}getRequestErrorMessage(e){return t=>this.getRequest(e)(t).errorMessage}clearRequest(e){return this._slice.actions.clearRequest({requestType:e})}clearRequests(){return this._slice.actions.clearRequests()}addRecords(e){return this._slice.actions.addRecords(e)}updateRecord(e){return this._slice.actions.updateRecord(e)}deleteRecord(e){return this._slice.actions.deleteRecord(e)}fetch(e={}){return this._fetchAsyncThunk(e)}fetchAll(e){return e.length?this._fetchAsyncThunk(e):Object}create(e={}){return this._createAsyncThunk(e)}update(e={}){return this._updateAsyncThunk(e)}delete(e={}){return this._deleteAsyncThunk(e)}uploadFiles({files:e,createParams:t}){return async r=>{r(this._slice.actions.updateRequestStatus({requestType:"uploadFiles",status:d.flB,errorMessage:null}));let s=(e,t)=>{r(this._slice.actions.requestError({requestType:"uploadFiles",error:t})),r(this._slice.actions.updateRecord({...e,uploadFailed:!0}))},i=t=>{if(r(this._slice.actions.addRecords(t)),0===e.length)return void r(this._slice.actions.updateRequestStatus({requestType:"uploadFiles",status:d.tOJ}));let i=e.length,n=()=>{0==(i-=1)&&r(this._slice.actions.updateRequestStatus({requestType:"uploadFiles",status:d.tOJ}))};e.forEach((e,i)=>{let a=t[i];if(!(null==a?void 0:a.upload_url)){s(a||{},{name:"RequestError",message:"errors.generic_error"}),n();return}let o=t=>{let s=e.size?Math.floor(t/e.size*100):0,i={...a,uploadPercentage:s};r(this._slice.actions.updateRecord(i))},c=async()=>{try{let t={id:a.id,uploaded:!0};if(!e.type||e.type.startsWith("image/")){let r=await ("u"<typeof Image?Promise.resolve(null):new Promise(t=>{let r=new Image,s=URL.createObjectURL(e);r.onload=()=>{URL.revokeObjectURL(s),t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=()=>{URL.revokeObjectURL(s),t(null)},r.src=s}));r&&(t.width=r.width,t.height=r.height)}let i=await this._update(t).catch(e=>(s(a,e),null));i&&r(this._slice.actions.updateRecord(i))}finally{n()}};l.A.uploadFile(a.upload_url,e,o,c,e=>{s(a,e),n()})})},n=e=>{r(this._slice.actions.requestError({requestType:"uploadFiles",error:e}))};this._create({...t,files:e.map(e=>({filename:e.name}))}).then(i,n)}}allowRequest(e,t,r){return this.getRequest(e)(r()).status!==d.flB}validateRecord(e,t){return null}getErrorMessage(e){return"ValidationError"==e.name?{id:e.message}:"RequestError"==e.name&&401===e.status?{id:"errors.unauthorized"}:{id:e.message||"errors.generic_error"}}clear(){return this._slice.actions.clear()}constructor(e,{trackId:t=!1,mergeOnFetch:r=!1,path:s="",query:a,reducers:l={}}={}){h(this,"_my",e=>e[String(this.resource)]),h(this,"_params",e=>({...e||{},...this.query||{}})),h(this,"_path",(e=this.path)=>this.query?`${e}?${i().stringify(this.query)}`:e),h(this,"_fetch",e=>{let{pathOverride:t,...r}=e;return u.A.fetch(null!=t?t:this.path,this._params(r))}),h(this,"_create",e=>{let{pathOverride:t,...r}=e;return u.A.create(this._path(t),r)}),h(this,"_update",e=>{if(Array.isArray(e)||(0,n.isString)(e))return u.A.update(this._path(),e);let{pathOverride:t,...r}=e;return u.A.update(this._path(t),r)}),h(this,"_delete",e=>{if(Array.isArray(e)||(0,n.isString)(e))return u.A.delete(this._path(),e);let{pathOverride:t,...r}=e;return u.A.delete(this._path(t),r)}),this.resource=e,this.path=s,this.query=a,this._fetchAsyncThunk=(0,o.zD)(`${this.resource}/fetch`,async(t,{dispatch:r,requestId:s})=>{if(Array.isArray(t)&&t.length>1)return await Promise.all(t.map(e=>this._fetch(e).catch(()=>null))).then(e=>e.filter(Boolean));let{useCache:i=!1,...n}=Array.isArray(t)?t[0]:t;return await new c.A(e,!!i).fetch(this._fetch,{onCachedData:e=>{"skip"!==i&&r(this._fetchAsyncThunk.fulfilled(e,s+p,n))},onSuccess:e=>e,onFailure:e=>{throw e},args:n})},{condition:(e,{getState:t})=>this.allowRequest("fetch",e,t)}),this._createAsyncThunk=(0,o.zD)(`${this.resource}/create`,async e=>{let t=this.validateRecord(e,"create");
1if(t)throw new m(t);return await this._create(e)},{condition:(e,{getState:t})=>this.allowRequest("create",e,t)}),this._updateAsyncThunk=(0,o.zD)(`${this.resource}/update`,async e=>{let t=this.validateRecord(e,"update");if(t)throw new m(t);return await this._update(e)},{condition:(e,{getState:t})=>this.allowRequest("update",e,t)}),this._deleteAsyncThunk=(0,o.zD)(`${this.resource}/delete`,async e=>await this._delete(e),{condition:(e,{getState:t})=>this.allowRequest("delete",e,t)}),this._slice=(0,o.Z0)({name:e,initialState:g,reducers:{addRecords:(e,t)=>{Array.isArray(t.payload)&&(t.payload.forEach(t=>this.mergeRecord(e,t)),e.isLoaded=!0,e.records=e.records.sort(this.getSortFunction()))},updateRecord:(e,t)=>{let r=t.payload;e.records=e.records.map(e=>{if(e.id==r.id){let{_updateRule:t,...s}=r;return"partial"===t?{...e,...s}:s}return e})},deleteRecord:(e,t)=>{e.records=e.records.filter(e=>e.id!=t.payload.id)},updateRequestStatus:(e,t)=>{e.requests[t.payload.requestType]={...e.requests[t.payload.requestType]||{},status:t.payload.status,..."errorMessage"in t.payload?{errorMessage:t.payload.errorMessage}:{}}},requestError:(e,t)=>{e.requests[t.payload.requestType]={errorMessage:this.getErrorMessage(t.payload.error)}},clearRequest:(e,t)=>{e.requests[t.payload.requestType]=null},clearRequests:e=>{e.requests={}},clear:e=>{e.isLoaded=!1,e.records=[],e.requests={}},localClear:e=>{e.isLoaded=!0,e.records=[],e.requests={}},...l},extraReducers:e=>{e.addCase(this._fetchAsyncThunk.pending,(e,{meta:t})=>{e.requests.fetch={status:d.flB,arg:null==t?void 0:t.arg}}).addCase(this._createAsyncThunk.pending,(e,{meta:t})=>{e.requests.create={status:d.flB,arg:null==t?void 0:t.arg}}).addCase(this._updateAsyncThunk.pending,(e,{meta:t})=>{e.requests.update={status:d.flB,arg:null==t?void 0:t.arg}}).addCase(this._deleteAsyncThunk.pending,(e,{meta:t})=>{e.requests.delete={status:d.flB,arg:null==t?void 0:t.arg}}).addCase(this._fetchAsyncThunk.rejected,(e,t)=>{e.requests.fetch={status:d.wZo,errorMessage:this.getErrorMessage(t.error)}}).addCase(this._createAsyncThunk.rejected,(e,t)=>{e.requests.create={status:d.wZo,errorMessage:this.getErrorMessage(t.error)}}).addCase(this._updateAsyncThunk.rejected,(e,t)=>{e.requests.update={status:d.wZo,errorMessage:this.getErrorMessage(t.error)}}).addCase(this._deleteAsyncThunk.rejected,(e,t)=>{e.requests.delete={status:d.wZo,errorMessage:this.getErrorMessage(t.error)}}).addCase(this._fetchAsyncThunk.fulfilled,(e,s)=>{var i,n,a,o;let l=s.payload,c=l.data||l,u=Array.isArray(c)?c.slice():[c],h=r&&e.records.length>0;if(h?u.forEach(t=>this.mergeRecord(e,t)):e.records=u,(null==(n=s.meta)||null==(i=n.arg)?void 0:i.order_by)||(e.records=e.records.sort(this.getSortFunction())),e.isLoaded=!0,e.totalRecords=parseInt(l.total),e.pageSize=parseInt(l.per_page),e.totalPages=Math.max(1,Math.ceil(e.totalRecords/e.pageSize)),u.length>0&&t){let t=u.map(e=>e.id),r=Math.min(...t),s=Math.max(...t);h?(e.minId=Math.min(e.minId,r),e.maxId=Math.max(e.maxId,s)):(e.minId=r,e.maxId=s)}let g=parseInt(l.page);e.pageNumber=g>e.totalPages?e.totalPages:g,(null==(o=s.meta)||null==(a=o.requestId)?void 0:a.endsWith(p))||(e.requests.fetch={status:d.tOJ})}).addCase(this._createAsyncThunk.fulfilled,(e,t)=>{let r=Array.isArray(t.payload)?t.payload:[t.payload];r.forEach(t=>{e.records.some(e=>e.id===t.id)?e.records=e.records.map(e=>e.id===t.id?t:e):e.records.push(t)}),e.requests.create={status:d.tOJ,records:r}}).addCase(this._updateAsyncThunk.fulfilled,(e,t)=>{(Array.isArray(t.payload)?t.payload:[t.payload]).forEach(t=>{e.records=e.records.map(e=>{if(e.id==t.id){let{_updateRule:r,...s}=t;return"partial"===r?{...e,...s}:t}return e})}),e.requests.update={status:d.tOJ}}).addCase(this._deleteAsyncThunk.fulfilled,(e,t)=>{let r=Array.isArray(t.payload)?t.payload.map(e=>e.id):[t.payload.id];e.records=e.records.filter(e=>!r.includes(e.id)),e.requests.delete={status:d.tOJ}})}})}}},642008(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(302543),i=r(965936);let n=class{static fetch(e,t){return i.A.getJSON(e,t)}static create(e,t){return i.A.postJSON(e,t)}static update(e,t){let r="-",n=t;return Array.isArray(t)||(0,s.isString)(t)||({id:r,...n}=t),i.A.putJSON(`${e}/${r}`,n)}static async delete(e,t){let r="-",n=t;return Array.isArray(t)||(0,s.isString)(t)||({id:r,...n}=t),await i.A.deleteJSON(`${e}/${r}`,n)||t}}},587492(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>C});
1var s=r(688991),i=r(430228),n=r(996599),a=r(209404),o=r.n(a),l=r(473790),c=r.n(l),u=r(101680),d=r(42385),h=r(562770);let p="features",g={11:n.CCr,14:n.ftZ,23:n.$s1,25:n.oXA,27:n.GCx,28:n.tvR,29:n.ZrQ,30:n.o1B,31:n.Gcy,32:n.CnE,34:n.f5i,35:n._PO,39:n.dTz,40:n.u_3,41:n.bY_,42:n.wJA,48:n.Th4,49:n.l0,50:n.D7N,55:n.Iay,56:n.a2S,57:n.tpY,60:n.dRR,61:n.uzn,62:n.QB8,63:n.MdL,65:n.cNI,66:n.vf2,67:n.jcf,68:n.jUb,69:n.PP7,71:n.hEw,76:n.Q9p,78:n.P7g,79:n.IFj,80:n.pAl,81:n.zXB,82:n.Vwt,83:n.gJ0,84:n.YjA,85:n.IIn,86:n.$cQ,87:n.QFo,88:n.l$i,89:n.dW0,90:n.pPx,91:n.SWS,92:n.O6u,93:n.lCF,94:n.eXM,95:n._0$,96:n.hL8,97:n.TEv,99:n.hN$,100:n.vbS,101:n.ofB,102:n.W3H,103:n.eZw,104:n.tAQ},m=!1,f=o().Map(),v=[],A=(e=[])=>{let t=Object.assign({},g),r=e.reduce((e,t)=>{let r=g[t.type];return r&&(f.has(r)&&f.getIn([r,"final"])?delete e[r]:e[r]={name:r,param:t.param,active:!0,final:!1}),e},{});return Object.keys(t).forEach(e=>{let s=t[e];if(r[s]||f.has(s)&&f.getIn([s,"final"]))return delete t[e];t[s]={name:s,active:!1,final:!1},delete t[e]}),Object.assign({},r,t)},w=e=>e.reduce((e,t)=>(e[t.name]={name:t.name,active:t.active,final:!!t.final&&t.final},e),{}),y=e=>c().setItem(p,e).catch(e=>{u.A.sendError("FeatureStore localForage.setItem",e)}),_=()=>c().getItem(p).then(e=>e||{},e=>(u.A.sendError("FeatureStore localForage.getItem",e),{})),S=async()=>{let e=await _();if("FEATURE_FLAG_GALLERY_MODE"in e){let t=e.FEATURE_FLAG_GALLERY_MODE;setTimeout(()=>{h.A.changeInCallView(t?n.F5F:n.UDe)}),delete e.FEATURE_FLAG_GALLERY_MODE,y(e)}let t=Object.entries(e).filter(([e,t])=>f.has(e)).map(([e,t])=>({name:e,active:t,final:f.getIn([e,"final"])}));if(d.A.debug("Saved Features",t),t.some(e=>f.getIn([e.name,"active"])!==e.active))return t},b=(e,t)=>{let r=f.get(e);if(!r)throw Error(`Features#getValue called with invalid key: ${e}`);return r.get(t)},E=Object.assign(new i.EventEmitter,{getAll:function(){if(f.isEmpty())throw Error("Features#getAll called before Store bootstraped");return f},getActive:function(){if(f.isEmpty())throw Error("Features#getAll called before Store bootstraped");return v[0]!==f&&(v=[f,f.filter(e=>e.get("active"))]),v[1]},loaded:function(){return m},enabled:function(e){return!!b(e,"active")},getParam:function(e){return Number(b(e,"param"))},get:function(e){return g[e]},dispatchToken:null});E.dispatchToken=s.A.register(function(e){switch(e.type){case n.NrO:f=f.merge(w(e.featureFlags)),E.emit("CHANGE");break;case n.Cz6:E.emit("ERROR",e.error);break;case n.k1f:m=!0,f=f.merge(A(e.features)),E.emit("CHANGE");break;case n.Buy:E.emit("ERROR",e.error);break;case n.PTA:return S().then(e=>{e&&(f=f.merge(w(e)),E.emit("CHANGE"))});case n.Jxx:var t,r,s;let i;t=e.name,r=e.persist,s=e.enabled,i=!0,void 0===s?s=!E.enabled(t):i=E.enabled(t)!==s,i&&(f=f.setIn([t,"active"],s)),r&&_().then(e=>{e&&(e[t]=s,y(e))}),i&&E.emit("CHANGE");break;case n.MGX:m=!1,f=f.merge(A()),E.emit("CHANGE")}});let C=E},290692(e,t,r){"use strict";r.d(t,{A:()=>h});var s=r(688991),i=r(430228),n=r(996599),a=r(31522),o=r(209404),l=r.n(o);let c=["sparx"],u=null,d=Object.assign(new i.EventEmitter,{get:function(e){if(!this.loaded())throw Error("Organization#get called before the Store is bootstraped");return e?u.get(e):u},hasLogo:function(){return this.get("has_logo")},getLogo:function(){return a.A.getPath(this.get("logo"))},getLogo2x:function(){return a.A.getPath(this.get("logo_2x"))},getLogoSet:function(){return`${this.getLogo()}, ${this.getLogo2x()} 2x`},hasIcon:function(){return this.get("has_icon")},getIcon:function(){return a.A.getPath(this.get("icon"))},getIcon2x:function(){return a.A.getPath(this.get("icon_2x"))},getIconSet:function(){return`${this.getIcon()}, ${this.getIcon2x()} 2x`},getDomainUrl:function(){return`https://${this.get("domain")}`},getDomainAppUrl:function(){return`https://app.${this.get("domain")}`},loaded:function(){return null!==u},isWatchParty:function(){let e=this.get("subdomain");return c.includes(e)},dispatchToken:null});d.dispatchToken=s.A.register(function(e){switch(e.type){case n.cHl:u=l().Map(e.organization),d.emit("CHANGE");break;case n.B0:d.emit(n.lPt,e.error),d.emit("ERROR",e.error);break;case n.s4H:u=l().Map(e.organization),d.emit("CHANGE"),d.emit("UPDATE");break;case n.FFT:d.emit("ERROR",e.error);break;
1case n.ezr:u=null,d.emit("CHANGE");break;case n.Wiv:switch(e.requestType){case n.MBJ:d.emit(n.$_6);break;case n.COf:d.emit(n.dlL);break;case n.aZL:d.emit(n.zr4);break;case n.iac:d.emit(n.pV0)}break;case n.OM2:switch(e.requestType){case n.MBJ:d.emit(n.R9M);break;case n.COf:d.emit(n.XwP);break;case n.aZL:d.emit(n.nxZ);break;case n.iac:d.emit(n.Z5H)}}});let h=d},186158(e,t,r){"use strict";r.d(t,{A:()=>v});var s=r(209404),i=r.n(s),n=r(430228),a=r(473790),o=r.n(a),l=r(101680),c=r(996599),u=r(688991),d=r(529633);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let p="theme",g={userOverride:!1,darkTheme:!1,dashboardDarkTheme:!1},m=[];class f extends n.EventEmitter{reset(){this._options=i().fromJS(this._mapOptions(c.HRH)),this._userTheme=g,o().getItem(p).then(e=>{this._userTheme={...g,...e}},e=>{l.A.sendError("FeatureStore localForage.getItem",e)}).then(()=>this._handleReceive())}getAll(){return this._options.map(e=>e.set("active",this.enabled(e.get("name"))))}getActive(){return this.getAll().filter(e=>e.get("active"))}enabled(e){if(e===c.fSx){let{dashboardDarkTheme:e}=this._userTheme;return!!e}let t=this._options.getIn([e,"active"]);if(e===c.IPH){let{userOverride:e,darkTheme:t}=this._userTheme;if(e)return!!t}return!!t}getUserThemeOptions(){return{...this._userTheme}}get(e){return this._options.getIn([e,"value"])}getNavbarColor(){return this.enabled(c.Ptd)?this.get(c.Ptd)||"primary":void 0}getCallPageNavbarColor(){return this.getNavbarColor()||(this.enabled(c.IPH)?"dark":void 0)}getHiddenElements(){return m}isLoaded(){return this._loaded}constructor(){super(),h(this,"_handleAction",e=>{switch(e.type){case c.$Fv:this.reset();break;case c.eMv:this._handleToggle(e.name,{enable:!0,extras:e.extras});break;case c.HID:this._handleToggle(e.name,{enable:!1});break;case c.GQ$:m=this._handleHiddenElementParams(e.hiddenElements),this.emit("CHANGE")}}),h(this,"_handleHiddenElementParams",e=>e?(Array.isArray(e)?e:e.split(",")).map(Number).filter(Number):[]),h(this,"_handleReceive",()=>{let e=getComputedStyle(document.documentElement),t=c.HRH.map(({name:t})=>({name:t,value:e.getPropertyValue("--"+t.replace(/_/g,"-")).trim()})).filter(({value:e})=>!!e).map(({name:e,value:t})=>({name:e,value:["true","false"].includes(t)?"true"===t:t}));this._options=this._options.merge(this._mapOptions(t)),this._monitorColorScheme(),this._loaded=!0,this.emit("CHANGE")}),h(this,"_handleToggle",(e,{enable:t,skipEvent:r=!1,extras:s=null})=>{if(e===c.F_n){if(s&&"dashboardDarkTheme"in s)this._userTheme={...this._userTheme,dashboardDarkTheme:s.dashboardDarkTheme};else if(t){let{userOverride:e,darkTheme:t}=s;this._userTheme={...this._userTheme,userOverride:e,darkTheme:t}}else this._userTheme={...this._userTheme,userOverride:g.userOverride,darkTheme:g.darkTheme};o().setItem(p,this._userTheme).catch(e=>{l.A.sendError("ThemeStore localForage.setItem",e)}),this.emit("CHANGE")}else t!==this.enabled(e)&&(this._options=this._options.setIn([e,"active"],t),r||this.emit("CHANGE"))}),h(this,"_monitorColorScheme",()=>{let e=d.A.queryDarkScheme();!e||(e.matches&&this._handleToggle(c.IPH,{enable:!0,skipEvent:!0}),this._darkSchemeQuery||(e.onchange=e=>{this._loaded&&this._handleToggle(c.IPH,{enable:e.matches})},this._darkSchemeQuery=e))}),h(this,"_mapOptions",e=>e.reduce((e,t)=>(this._options&&this._options.has(t.name)&&this._options.getIn([t.name,"final"])&&(delete e[t.name],t.final=!0),e[t.name]={name:t.name,value:t.value,active:"boolean"==typeof t.value?t.value:void 0!==t.value,final:!!t.final},e),{})),this._darkSchemeQuery=null,this.dispatchToken=u.A.register(this._handleAction),this._loaded=!1,this.reset()}}let v=new f},751455(e,t,r){"use strict";r.d(t,{A:()=>f});var s=r(42385),i=r(260854),n=r(292944),a=r(37191);let o=["log","debug","info","warn","error"],l=function(e={}){let t=o.filter(e=>"u">typeof console&&"function"==typeof console[e]);return function(){let e=this;t.forEach(t=>{let r=console[t];console[t]=function(...s){let i={action:s.length>1?"Console logged some values":"Console logged a value",category:`console.${t}`,metadata:{}};
1s.forEach((e,t)=>i.metadata[`argument${t}`]=function(e){switch(typeof e){case"string":return e;case"undefined":return"undefined";default:try{return JSON.stringify((function(e=3){let t=new WeakSet;return function r(s,i=0){if(null===s||"object"!=typeof s)return s;if(t.has(s))return"[Circular]";if(t.add(s),i>=e)return Array.isArray(s)?"[Array]":"[Object]";if(Array.isArray(s))return s.map(e=>r(e,i+1));let n={};for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(n[e]=r(s[e],i+1));return n}})(3)(e))}catch(e){if(e&&"string"==typeof e.message)return`[could not stringify value: ${e.message}]`;return"[could not stringify value]"}}}(e)),e.addBreadcrumb(i),r.apply(console,s)}})}};var c=r(992609),u=r(950377),d=r(168140);let h=Object.freeze({production:"2616c974-5f54-4d06-a802-225a135611ab",production_ca:"b3595c38-95cb-4240-a91a-e6d7df47caea",staging:"bbfa06f7-7d5b-4f8c-be8f-dc98d6c8819c"}),p=h[window.rails_env]?new a.Ay({key:h[window.rails_env],revision:"v2.6.374.13",ignoreErrors:[/Blocked a frame with origin .*. Protocols, domains, and ports must match\./,/Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS./,/WebSocket is not defined/,/^Feature discovery error: null$/,/^Ping timeout$/,/^this.socket is null$/,/^Cannot read property 'send' of null$/,/evaluating 'this\.socket\.send'/,/Strophe: /,/Jingle error:/,/NetworkError when attempting to fetch resource./,/The network connection was lost./,/The Internet connection appears to be offline./,/ResizeObserver loop limit exceeded/,/^cancelled$/,/Software caused connection abort/,/^Object Not Found Matching Id:.*/,/^Branch SDK initialization failed.*/]}):null,g={},m={"TPC error":/^TPC.*/,"Focus error, retry":/^Focus error, retry after.*/,"LocalTrack[audio] already in TPC":/^LocalTrack\[.+?,audio\] is already in TPC.*/,"LocalTrack[video] already in TPC":/^LocalTrack\[.+?,video\] is already in TPC.*/,"Invalid participant":/^Invalid participant.*/,"Missing whiteboard dimensions":/^Missing whiteboard dimensions.*/},f=new class{set_new_in_call_page(){this.prefix="V2: ",this.set_cordova()}set_admin(){this.prefix="ADMIN: "}set_talkshoe_admin(){this.prefix="TALKSHOE ADMIN: "}set_talkshoe(){this.prefix="TALKSHOE: ",this.set_cordova()}set_livestream(){this.prefix="LIVESTREAM: "}set_cordova(){let e=()=>{this.tags.platform="cordova",n.A.getDevice()&&(this.environment.platform=n.A.getDevice().platform,this.environment.platform_version=n.A.getDevice().version),n.A.getAppVersion()&&(n.A.getAppVersion().getVersionNumber().then(e=>{this.tags.app_version=e}),n.A.getAppVersion().getPackageName().then(e=>{this.tags.app_id=e})),document.removeEventListener("deviceready",e)};document.addEventListener("deviceready",e)}set_account_id(e){this.environment.account_id=e}set_conference_call_id(e){this.environment.conference_call_id=e}set_participant_id(e){this.environment.participant_id=e}set_websocket_event(e){this.environment.last_websocket_event=JSON.stringify(e)}sendError(e,t,r){s.A.error("Sending error:",e,t,r),null==p||p.send(t,t=>{t.setAction(e).setTags(this.tags).setParams({_original_msg:r})})}reportSpinnerLongWait(e,t){this.sendError(`${e}#longWait`,Error(`Spinner long wait: ${t}`))}onComponentError(e,t,r){this.tags.component_stack=r.componentStack,this.sendError(`${e}#componentDidCatch`,t),delete this.tags.component_stack}install(){p&&(p.use((0,u.I)({})),p.use((0,d.I)({})),p.use(l({})),p.use((0,c.I)({}))),null==p||p.addOverride(this._override)}constructor(){!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"_override",e=>{let t,r=e.getAction(),s=e.getError();if((0,i.oz)(s)||(0,i.R)(s,/^Not connected$/)||(0,i.R)(s,/^The operation was aborted\.$/)||(0,i.R)(s,/^A user gesture is required/))return!1;let a=((t=Object.entries(m).find(([e,t])=>(0,i.R)(s,t)))?t[0]:null)||("string"==typeof s?s:s.message),o=`${this.prefix}${s.name}: ${"RequestError"===s.name?`${r} ${s.status}`:a}`;if(g[o])return!1;let l=e.getParams()._original_msg,c=e.getTags();c.fullstory_url=function(){if(window.FS&&window.FS.getCurrentSessionURL)return window.FS.getCurrentSessionURL()}(),c.original_message="string"==typeof l?l.replace(/^!!/,""):l,c.original_message===l&&(g[o]=!0),Object.keys(c).forEac
1h(e=>{void 0===c[e]&&delete c[e]});let u={};if(n.A.isCordova()&&window.apiUrl)try{u.domain=new URL(window.apiUrl).hostname}catch(e){u.domain=window.apiUrl}else u.domain=location.hostname;return e.setTags(c).setEnvironment({...this.environment,...u,path:n.A.isCordova()?location.hash:location.pathname,screen:`${screen.width} x ${screen.height}`})}),this.action="",this.prefix="",this.tags={git_tag:"v2.6.374.13"},this.environment={domain:window.location.hostname,agent:navigator.userAgent,platform:navigator.platform,vendor:navigator.vendor}}}},766873(e,t,r){"use strict";r.d(t,{A:()=>i});class s{static postMessage(e,t){let r=new s(e);r.postMessage(t),r.close()}close(){this._channel&&(this._listeners.forEach(e=>this.remove(e)),this._channel.close(),this._channel=void 0)}postMessage(e){this._channel&&this._channel.postMessage(e)}onMessage(e){this._channel&&(this._channel.addEventListener("message",e),this._listeners.add(e))}remove(e){this._channel&&(this._channel.removeEventListener("message",e),this._listeners.delete(e))}constructor(e){this._listeners=new Set,"BroadcastChannel"in self&&(this._channel=new BroadcastChannel(e))}}let i=s},545134(e,t,r){"use strict";r.d(t,{A:()=>p,c:()=>c}),r(996599);var s=r(302543),i=r(473790),n=r.n(i),a=r(42385);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let l="store",c=Object.freeze({TRANSLATIONS:"c-tr",SITE:"c-s",ORGANIZATION:"c-o",ACCOUNT:"c-ac",SESSION:"c-se",DIAL_IN_NUMBER:"c-din",FEATURES:"f-f",CONTACTS:"f-c",GROUPS:"f-g",SUBSCRIPTIONS:"f-s",UPCOMING_CONFERENCES:"f-m",CHAT_ROOMS:"tc-r",CHAT_MESSAGES:"tc-m"}),u=(e,t={})=>[l,e,JSON.stringify(t)].join(":"),d=e=>{let t=e?`${l}:${e}:`:`${l}:`;return n().keys().then(e=>Promise.all(e.filter(e=>e.startsWith(t)).map(e=>n().removeItem(e).catch(()=>{})))).then(()=>{})};class h{async fetch(e,{onStart:t,onSuccess:r,onFailure:i,onCachedData:n,validate:o,presave:l,args:c}){if(null==t||t(),!this.enabled)return e(c).then(r,i);let u=await this.load(c);return u&&(!o||(u=o(u)))&&(a.A.debug("Cached",this.resource),null==n||n(u),r(u),null==t||t()),e(c).then(async e=>(a.A.debug("Fetched",this.resource),await this.save(l?l((0,s.cloneDeep)(e)):e,c),r(e)),(e={})=>{let t="RequestError"===e.name;!1===navigator.onLine||t&&"offline"===e.message?a.A.warn("Offline, skipping fetch",this.resource,{args:c}):(a.A.error("Error fetching data",this.resource,{args:c,error:e}),(401===e.status||t)&&this.remove(c),i(e))})}async replace(e,t){if(this.enabled&&await this.load(t)!==null)return this.save(await e(t),t)}async load(e={}){return this.enabled?n().getItem(u(this.resource,e)).catch(()=>null):null}async save(e,t={}){return this.enabled?n().setItem(u(this.resource,t),e).catch(()=>null):null}async remove(e={}){return this.enabled?n().removeItem(u(this.resource,e)).catch(()=>{}):null}constructor(e,t=!0){this.resource=e,this.enabled=t}}o(h,"reset",e=>d(e)),o(h,"resetAll",()=>d());let p=h},125560(e,t,r){"use strict";r.d(t,{A:()=>g});var s=r(42385),i=r(751455),n=r(529633),a=r(842226);let o=e=>{s.A.debug(`CordovaCallkitHelpers: ${e}`)},l=(e,t)=>{e.message=`CordovaCallkitHelpers: ${e.message}`,i.A.sendError("CordovaCallkitHelpers",e,t),s.A.error(e.message,t)},c=()=>{var e,t;if(!n.A.isCordova())return{earlyReturn:Promise.resolve(null)};let{CordovaCall:r}=(null==(t=window)||null==(e=t.cordova)?void 0:e.plugins)||{};return r?{plugin:r}:(o("Missing CordovaCall Plugin"),{earlyReturn:Promise.resolve("Missing CordovaCall Plugin")})},u=e=>{let{plugin:t,earlyReturn:r}=c();return r||new Promise((r,s)=>e(t,r,s))},d=new a.A("CordovaCall"),h=3e3,p=(e,{timeoutMs:t=h,rejectOnTimeout:r=!1}={})=>{let{plugin:s,earlyReturn:i}=c();if(i)return i;let n=Error(`CordovaCall action timed out after ${t}ms`);return d.run(()=>{let i;return Promise.race([new Promise((t,r)=>e(s,t,r)),new Promise((e,s)=>{i=setTimeout(()=>{(l(n),r)?s(n):e()},t)})]).finally(()=>clearTimeout(i))})},g={setAppName:e=>p((t,r,s)=>t.setAppName(e,r,s)),setIcon:e=>p((t,r,s)=>t.setIcon(e,r,s)),setRingtone:async e=>{if(n.A.isIOSApp())return p((t,r,s)=>t.setRingtone(e,r,s))},setIncludeInRecents:async e=>{if(n.A.isIOSApp())return p((t,r,s)=>t.setIncludeInRecents(e,r,s))},setDTMFState:async e=>{if(n.A.isIOSApp())return p((t,r,s)=>t.setDTMFState(e,r,s))}
1,receiveCall:(e,t,r)=>p((s,i,n)=>s.receiveCall(e,t,r,i,n)),getAudioRoute:()=>p((e,t,r)=>e.getAudioRoute(t,r)),speakerOn:()=>p((e,t,r)=>e.speakerOn(t,r)),speakerOff:()=>p((e,t,r)=>e.speakerOff(t,r)),callNumber:e=>p((t,r,s)=>t.callNumber(e,r,s)),mute:e=>p((t,r)=>t.mute(e,()=>{o("mute success"),r()},e=>{l(Error("mute"),e),r()})),unmute:e=>p((t,r)=>t.unmute(e,()=>{o("unmute success"),r()},e=>{l(Error("unmute"),e),r()})),setAllowUnmute:async(e,t)=>{if(n.A.isIOSApp())return p((r,s,i)=>r.setAllowUnmute(e,t,s,i))},hold:e=>p((t,r)=>t.hold(e,()=>{o("hold success"),r()},e=>{l(Error("hold"),e),r()})),unhold:e=>p((t,r)=>t.unhold(e,()=>{o("unhold success"),r()},e=>{l(Error("unhold"),e),r()}),{timeoutMs:1e4,rejectOnTimeout:!0}),group:(e,t)=>p((r,s)=>r.group(e,t,e=>{o(`group success: ${JSON.stringify(e)}`),s(e)},e=>{l(Error("group"),e),s()})),endCall:e=>p((t,r)=>t.endCall(e,()=>{o("endCall success"),r()},e=>{l(Error("endCall"),e),r()})),sendCall:(e,t="",r)=>p((s,i,n)=>s.sendCall(e,t,r,()=>{o("sendCall success"),i()},e=>{l(Error("sendCall"),e),n(e)}),{timeoutMs:1e4,rejectOnTimeout:!0}),connectCall:(e,t)=>p((r,s,i)=>r.connectCall(e,t,()=>{o("connectCall success"),s()},e=>{l(Error("connectCall"),e),i(e)})),setVideo:async e=>{if(n.A.isIOSApp())return p((t,r,s)=>t.setVideo(e,()=>{o("setVideo success"),r()},e=>{l(Error("setVideo"),e),s(e)}))},setupAudioSession:async()=>{if(n.A.isIOSApp())return p((e,t,r)=>e.setupAudioSession(e=>{o(`setupAudioSession success: ${e||""}`),t(e)},e=>{l(Error("setupAudioSession"),e),r(e)}),{timeoutMs:1e4,rejectOnTimeout:!0})},dismissRingingCall:async e=>{if(n.A.isIOSApp())return p((t,r)=>t.dismissRingingCall(e,()=>{o("dismissRingingCall success"),r()}))},log:async e=>{var t,r,s,i;return null==(i=window)||null==(s=i.cordova)||null==(r=s.plugins)||null==(t=r.CordovaCall)?void 0:t.log("CordovaCallJS: "+e)},keepAlive:async()=>{if(n.A.isIOSApp())return u((e,t)=>{e.keepAlive(),t()})},stopKeepAlive:async()=>{if(n.A.isIOSApp())return u((e,t)=>{e.stopKeepAlive(),t()})},keepAliveInBackground:async e=>{if(n.A.isIOSApp())return u((t,r)=>{t.keepAliveInBackground(e),r()})},stopKeepAliveInBackground:async()=>{if(n.A.isIOSApp())return u((e,t)=>{e.stopKeepAliveInBackground(),t()})},updateCallName:(e,t)=>p((r,s)=>r.updateCallName(e,t,()=>{o("updateCallName success"),s()},e=>{l(Error("updateCallName"),e),s()})),checkCallPermission:async()=>{if(n.A.isAndroidApp())return u((e,t)=>{e.checkCallPermission(e=>{l(Error("checkCallPermission"),e)}),t()})},canUseFullScreenIntent:async()=>!!n.A.isAndroidApp()&&u((e,t,r)=>e.canUseFullScreenIntent(e=>t(e),e=>{l(Error("canUseFullScreenIntent"),e),r(e)})),openFullScreenIntentSettings:async()=>{if(n.A.isAndroidApp())return u((e,t,r)=>{e.openFullScreenIntentSettings(()=>t(),e=>{l(Error("openFullScreenIntentSettings"),e),r(e)})})},wsConnect:(e,t,r,s)=>u((i,n)=>{i.wsConnect(e,t,r,s),n()}),wsClose:(e,t,r)=>u((s,i)=>{s.wsClose(e,t,r),i()}),wsSend:(e,t)=>u((r,s)=>{r.wsSend(e,t),s()})}},292944(e,t,r){"use strict";let s;r.d(t,{A:()=>h});var i=r(302543),n=r(842226),a=r(42385);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let l=(e,t)=>{window.dispatchEvent(new ErrorEvent("error",{message:`CordovaHelpers#${e}`,error:t}))},c=new n.A,u=new Set,d=HTMLVideoElement.prototype.getBoundingClientRect,h=new class{get(){return window.cordova}isCordova(){return!!window.cordova}isAndroid(){var e;return(null==(e=window.cordova)?void 0:e.platformId)==="android"}isIos(){var e;return(null==(e=window.cordova)?void 0:e.platformId)==="ios"}getPlugin(e){return window.cordova&&window.cordova.plugins&&window.cordova.plugins[e]}getDevice(){return window.device}getStatusBar(){return window.StatusBar}getFirstPartyStatusBar(){return window.statusbar}resetStatusBar(){this.isAndroid()&&delete window.StatusBar}getKeyboard(){return this.getPlugin("Keyboard")}getDiagnostic(){return this.getPlugin("diagnostic")}getAppVersion(){return this.get()&&this.get().getAppVersion}getIOSRTC(){return this.getPlugin("iosrtc")}getBackgroundMode(){return this.getPlugin("backgroundMode")}getAndroidScreenshare(){return window.CordovaAndroidScreenshare}getNotification(){return this.getPlugin("notification")}getInAppBrowser(){return window.cordova.InAppBrowser}patchInAppBrowser(){window.open=(e,t="_self",r="location=yes")=>{if("_system"!==t){let e=r.split(",");e.push("shouldPauseOnSuspend=yes"),e.push("allowInlineMediaPlayback=yes"),e.push("toolbarposition=top"),e.push("toolbarcolor=#cccccc"),e.push("closebuttoncolor=#333333"),e.push("navigationbuttoncolor=#333333"),r=e.join(",")}return window.cordova.InAppBrowser.open(e,t,r)}}
1patchIOSRTC(e=!1){if(["getSettings","getConstraints"].forEach(e=>{e in MediaStreamTrack.prototype||(MediaStreamTrack.prototype[e]=()=>({}))}),HTMLMediaElement.prototype.play.toString().includes("[native code]")){let e=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){return e.apply(this),new Promise(e=>setTimeout(e))}}}patchGetBCR(e){this.getIOSRTC()&&(e?HTMLVideoElement.prototype.getBoundingClientRect=function(){let e=getComputedStyle(document.body),t=parseInt(e.getPropertyValue("--sai-left"))||0,r=parseInt(e.getPropertyValue("--sai-top"))||0,s=d.call(this);return t>0||r>0?new DOMRect(s.left-t,s.top-r,s.width,s.height):s}:HTMLVideoElement.prototype.getBoundingClientRect=d)}allowNavigationGestures(e){var t,r;null==(r=window.WkWebView)||null==(t=r.allowsBackForwardNavigationGestures)||t.call(r,e)}observeIOSRTCVideo(e){let t=this.getIOSRTC();t&&t.observeVideo(e)}keepAwake(){let{insomnia:e}=window.plugins||{};e&&e.keepAwake()}allowSleep(){let{insomnia:e}=window.plugins||{};e&&e.allowSleepAgain()}enableProximitySensor(){let e=navigator.proximity;e&&(e.enableSensor(),e.enableProximityScreenOff())}disableProximitySensor(){let e=navigator.proximity;e&&(e.disableProximityScreenOff(),e.disableSensor())}flushCookies(){let e=this.getPlugin("CookieManagementPlugin");e&&e.flush()}enableBackgroundMode(){let e=this.getPlugin("backgroundMode");e&&e.enable()}disableBackgroundMode(){let e=this.getPlugin("backgroundMode");e&&e.disable()}setAppBackgroundColor(e){let t=this.getPlugin("iotumHelper");t&&t.setAppBackgroundColor(e)}hideKeyboardAccessoryBar(e){let t=this.getPlugin("iotumHelper");t&&t.hideKeyboardAccessoryBar&&t.hideKeyboardAccessoryBar(e)}registerIosRtcGlobals(){let e=this.getIOSRTC();e&&(e.registerGlobals(!0),navigator.webkitGetUserMedia=void 0)}async replaceWebSocket(){if(this.getCordovaCall()){let{default:e}=await r.e("6295").then(r.bind(r,681786));window.WebSocket=e}}cedeAudioSessionToCallKit(e){let t=this.getIOSRTC();t&&t.setCedeAudioSessionToCallKit(e)}hasAndroidScreenshare(){return!!window.CordovaAndroidScreenshare}setStatusBarStyle({overlay:e,light:t}){let r=this.getStatusBar();if("boolean"==typeof e&&r&&r.overlaysWebView(e),"boolean"==typeof t){let e=t?"#333333":"#ffffff";if(this.isAndroid()){var s;null==(s=this.getFirstPartyStatusBar())||s.setBackgroundColor(e)}else r&&(r.backgroundColorByHexString(e),t?r.styleLightContent():r.styleDefault())}}hideStatusBar(e=!0){let t=this.getStatusBar();t&&(e?t.hide():t.show())}async requestPermission(e){return await c.run(async()=>new Promise((t,r)=>{window.cordova.plugins.permissions.requestPermission(e,({hasPermission:r})=>{a.A.debug(`${e} hasPermission: ${r}`),t(r)},e=>r(e))}))}async isPermissionGranted(e){var t,r;let s=null==(r=window.cordova)||null==(t=r.plugins)?void 0:t.permissions;return!!s&&new Promise(t=>{s.checkPermission(e,({hasPermission:r})=>{a.A.debug(`isPermissionGranted(${e}): ${r}`),t(r)},()=>t(!1))})}async checkMicrophonePermission(){let e=this.getDiagnostic();return e?new Promise((t,r)=>{this.isAndroid()?e.getPermissionAuthorizationStatus(e=>{a.A.debug(`checkMicrophonePermission status: ${e}`),t(e)},r,e.permission.RECORD_AUDIO):this.isIos()?e.getMicrophoneAuthorizationStatus(e=>{a.A.debug(`checkMicrophonePermission (iOS) status: ${e}`),t(e)},r):t("NOT_AVAILABLE")}):"NOT_AVAILABLE"}async hasFirebasePermission(){return"FirebasePlugin"in window&&new Promise(e=>{window.FirebasePlugin.hasPermission(t=>{a.A.debug(`hasFirebasePermission: ${t}`),e(!!t)},()=>e(!1))})}async isFirebasePermissionGranted(){if(!("FirebasePlugin"in window))throw Error("FirebasePlugin is not available");return a.A.debug("Requesting Firebase permission"),await c.run(async()=>new Promise((e,t)=>{window.FirebasePlugin.hasPermission(r=>{if(r)return e(!0);window.FirebasePlugin.grantPermission(e,t)},t)}))}async unregisterFirebase(){let{FirebasePlugin:e}=window;e&&(e.setBadgeNumber(0),e.clearAllNotifications(),await new Promise(t=>e.setAutoInitEnabled(!1,t,t)),e.unregister())}async requestMediaPermissions(e=!1,t=!1){if((t||e)&&this.getDiagnostic())if(this.isAndroid())return this._requestMediaPermissionsAndroid(e,t);else if(this.isIos())return this._requestMediaPermissionsIOS(e,t);else throw Error("No media permissions functionality defined for current platform")}async _requestMediaPermissionsIOS(e,t){let r=this.getDiagnostic(),s=[e&&{device:"Microphone",getStatus:r.getMicrophoneAuthorizationStatus,requestAuthorization:r.requestMicrophoneAuthorization},t&&{device:"Camera",getStatus:r.getCameraAuthorizationStatus,requestAuthorization:(e,t)=>r.requestCameraAuthorization(e,t,!1)}
1].filter(Boolean);await c.run(async()=>{let e=[];for(let{device:t,getStatus:i,requestAuthorization:n}of s){let s=await new Promise(i);s===r.permissionStatus.NOT_REQUESTED&&(s=await new Promise(n)),s!==r.permissionStatus.GRANTED&&e.push(t)}if(e.length){let t=Error(`Permissions denied: ${e.join(", ")}`);throw t.name="PermissionDeniedError",t}})}async _requestMediaPermissionsAndroid(e=!1,t=!1){let r=this.getDiagnostic(),i=e=>{let t=Error(`Permissions denied: ${e.join(", ")}`);throw t.name="PermissionDeniedError",t},n=await new Promise((e,t)=>{r.getPermissionsAuthorizationStatus(e,t,[r.permission.RECORD_AUDIO,r.permission.CAMERA])});a.A.debug("CordovaHelpers.requestMediaPermissions() permissions authorization statuses: ",n);let o=[e&&{device:"Microphone",status:n[r.permission.RECORD_AUDIO],permission:r.permission.RECORD_AUDIO},t&&{device:"Camera",status:n[r.permission.CAMERA],permission:r.permission.CAMERA}].filter(Boolean);await c.run(async()=>{let n=[];for(let e of o)e.status===r.permissionStatus.DENIED_ALWAYS&&!u.has(e.device)&&(s||(s=await new Promise(r.getDeviceOSVersion)),s.apiLevel>=30&&(e.status=r.permissionStatus.DENIED_ONCE));let l=e=>[r.permissionStatus.NOT_REQUESTED,r.permissionStatus.DENIED_ONCE].includes(e),c=e&&l(o.filter(e=>"Microphone"===e.device)[0].status),d=t&&l(o.filter(e=>"Camera"===e.device)[0].status),h=[c&&r.permission.RECORD_AUDIO,d&&r.permission.CAMERA].filter(Boolean);if(a.A.debug("CordovaHelpers.requestMediaPermissions() permissionsToRequest: ",h),0===h.length){let e=[];o.forEach(t=>{(t.status===r.permissionStatus.DENIED_ONCE||t.status===r.permissionStatus.DENIED_ALWAYS)&&e.push(t.device)}),e.length>0&&i(e);return}let p=await new Promise((e,t)=>{r.requestRuntimePermissions(e,t,h)});a.A.debug("CordovaHelpers.requestMediaPermissions() diagnostic.requestRuntimePermissions() results: ",p),o.forEach(e=>{if(e.permission in p){let t=p[e.permission];t!==r.permissionStatus.GRANTED&&(n.push(e.device),t===r.permissionStatus.DENIED_ALWAYS&&u.add(e.device))}}),n.length&&i(n)})}async onDeepLink(){if(!window.Branch||"object"!=typeof window.Branch)return;let e=!1;return Promise.race([window.Branch.initSession().catch(Boolean).then(()=>window.Branch.getLatestReferringParams()).then(e=>{if(e){let t=e["+clicked_branch_link"]?e.$canonical_url:e["+non_branch_link"];if(t)return new URL(t)}}).catch(e=>{l("onDeepLink",e)}).then(async t=>(await window.Branch.disableTracking(!1).catch(Object),await window.Branch.disableTracking(!0).catch(Object),e=!0,t)),new Promise(t=>setTimeout(()=>{e||l("onDeepLink",Error("Timeout")),t()},2e3))])}async isDebug(){let e=this.getDiagnostic();return!!e&&new Promise((t,r)=>{e.isDebugBuild(e=>{t(e)},e=>{r(e)})})}getCordovaCall(){return this.getPlugin("CordovaCall")}isSafariViewControllerAvailable(){let{SafariViewController:e}=window;return!!e&&new Promise(t=>{e.isAvailable(e=>t(e))})}async getSafariViewController(){return await this.isSafariViewControllerAvailable()?window.SafariViewController:void 0}constructor(){o(this,"scheduleIOSRTCVideoRefresh",(0,i.debounce)(()=>{var e;return null==(e=this.getIOSRTC())?void 0:e.refreshVideos()},100)),o(this,"throttleIOSRTCVideoRefresh",(0,i.throttle)(()=>{var e;return null==(e=this.getIOSRTC())?void 0:e.refreshVideos()},100,{leading:!1,trailing:!0})),o(this,"switchToAppSettings",()=>{var e;null==(e=this.getDiagnostic())||e.switchToSettings()}),o(this,"switchToWirelessSettings",()=>{var e;null==(e=this.getDiagnostic())||e.switchToWirelessSettings()}),o(this,"switchToNotificationSettings",()=>{var e;null==(e=this.getDiagnostic())||e.switchToNotificationSettings()})}}},260854(e,t,r){"use strict";function s(e,t){var r,s;return null==e||null==(s=e.message)||null==(r=s.match)?void 0:r.call(s,t)}function i(e){return!!s(e,/Loading\b.+?\bchunk \d+ failed/)}function n(e){return!!i(e)&&(setTimeout(e=>window.location.reload(),1e3),!0)}r.d(t,{R:()=>s,oz:()=>i,p6:()=>n})},101680(e,t,r){"use strict";r.d(t,{A:()=>i});var s=r(751455);let i={sendError:(e,t)=>{if("QuotaExceededError"!=t.name)switch(t.message){case"No available storage method found.":case"Database deleted by request of the user":case"Internal error opening backing store for indexedDB.open.":break;default:s.A.sendError(e,t)}}}},42385(e,t,r){"use strict";r.d(t,{A:()=>c});let s=(...e)=>{},i={debug:s,trace:s,warn:s,info:s,error:s,log:s},n=["debug","trace"],a=new WeakSet,o={...i,setDebugOutput:e=>
1{n.forEach(t=>{e?l(t):Object.defineProperty(o,t,{get:function(){return()=>{}}})})},logAndSetupEvents:(e,t,r,s=null)=>{if(!a.has(e))for(let[i,n]of(a.add(e),Object.entries(t))){let t=s?`${s}:${i}`:i,a=(...e)=>{if(o.debug(t,e),n)return n.apply(r,e)};e.on(i,a)}}},l=e=>{Object.defineProperty(o,e,{get:function(){return self.console[e].bind(self.console,"[%s]",new Date().toISOString().substring(11))}})};Object.keys(i).forEach(l);let c=o},842226(e,t,r){"use strict";r.d(t,{A:()=>s});let s=class{async acquire(){let e,t=new Promise(t=>{e=()=>t()}),r=this._current.then(()=>e);return this._current=t,await r}async run(e){let t=await this.acquire();try{return await e()}finally{t()}}get current(){return this._current}constructor(e=""){this._current=Promise.resolve(),this.name=e}}},31522(e,t,r){"use strict";r.d(t,{A:()=>s});let s={getPath:function(e){return e}}},529633(e,t,r){"use strict";r.d(t,{A:()=>b});var s=r(507503),i=r.n(s),n=r(604866),a=r.n(n),o=r(796122),l=r.n(o),c=r(292944),u=r(42385),d=r(996599);function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let p="SDK_EVENTS",g="SDK_LAYOUT",m="SDK_MEETING_ACTION",f="SDK_SCHEDULE_ACTION",v="EXTERNAL_REDIRECT_URL",A="SDK_DISABLE_DOC_PIP",w="timezoneCache";function y(e,t,r,s=!1){if(r.includes(t))S.setSessionValue(e,t);else if(s)return void S.clearSessionValue(e);"auto"===t&&S.clearSessionValue(e)}class _{get(e,t,r){try{return this._getStorage().getItem(e)||t}catch(e){return null!==r?r:t}}set(e,t){try{this._getStorage().setItem(e,t)}catch(e){}}remove(e){try{this._getStorage().removeItem(e)}catch(e){}}constructor(e){this._getStorage=e}}h(_,"session",new _(()=>sessionStorage)),h(_,"local",new _(()=>localStorage));let S={getPlatformType:()=>S.isElectron()?"electron":S.isCordova()?"cordova":"browser",isSupportedBrowser:function(){if(this.isCordova())return!0;if(this.isIosBrowser()){if(!this.isSafari()&&15>parseFloat(String(l().osversion)))return!1;this.isSafariUA()}return this.supportsWebSockets()&&this.supportsWebRTC()},supportsWebSockets:function(){return!!window.WebSocket},supportsVirtualBackground:function(){let e=this.isSafari()&&17>this.browserVersion();return"WebAssembly"in window&&!e&&!this.isOnIos()&&!this.isIosBrowser()},supportsAudioWorklet:function(){return"AudioWorklet"in window&&"WebAssembly"in window&&!this.isIOSApp()},isSupportedBrowserWithIssues:function(){return!1},supportsWebRTC:function(){if(!this.hasMediaDevices()||this.isChrome()&&!this.isOnIos()&&81>this.browserVersion()||["RTCPeerConnection","RTCRtpTransceiver","RTCRtpReceiver","RTCRtpSender","AudioNode"].some(e=>!window[e]))return!1;if(!this.isCordova()){if(this.isOnIos()){var e;if(!(null==(e=window.navigator.mediaCapabilities)?void 0:e.decodingInfo))return!1}if(!Object.keys(window.RTCRtpTransceiver.prototype).includes("currentDirection"))return!1}return!0},isWebGL2WellSupported:()=>!!document.createElement("canvas").getContext("webgl2",{failIfMajorPerformanceCaveat:!0}),hasMediaDevices:function(){let e=window.navigator.mediaDevices;return!!e&&!!e.enumerateDevices&&!!e.getUserMedia||(u.A.error("Compatibility error: Cannot access getUserMedia"),!1)},supportsAudioRoute:function(){return!!c.A.getCordovaCall()},supportsVideo:function(){var e;return!!this.supportsWebRTC()&&!!(null==(e=window.HTMLCanvasElement)?void 0:e.prototype.captureStream)&&(!this.isIOSApp()||"getTransceivers"in window.RTCPeerConnection.prototype)},supportsScreenshare:function(){var e;return!!this.supportsVideo()&&(null!=(e=window.navigator.mediaDevices)&&!!e.getDisplayMedia||this.isChrome())},supportsMobileScreenshare:function(){return!1},supportsFullScreen:function(){return!this.isIosBrowser()&&!this.isCordova()&&!this.isIframe()},supportsAudioOutputAPI:function(){return this.supportsWebRTC()&&"setSinkId"in window.HTMLAudioElement.prototype},supportsDocumentPiP:function(){var e,t;return!this.isDocPipDisabled()&&(!this.isElectron()||parseFloat(null==(t=window.Electron)||null==(e=t.getAppVersion)?void 0:e.call(t))>9.2)&&"documentPictureInPicture"in window},queryDarkScheme:function(){return window.matchMedia("(prefers-color-scheme: dark)")},queryPortrait:function(){return window.matchMedia("(orientation: portrait)")},getLocalValue:function(e,t=null,r=null){return _.local.get(e,t,r)},setLocalValue:function(e,t){_.local.set(e,t)},clearLocalValue:function(e){_.local.remove(e)},isPermissionWizardCompleted:function(){return"true"===_.local.get(d.VG4,null,null)},getSessionValue:function(e,t=null,r=null){return _.session.get(e,t,r)},setSessionValue:function(e,t){_.session.set(e,t)},clearSessionValue:function(e){_.session.remove(e)},isOnMac:function(){return"OS X"===i().os.family},isOnMacDesktop:function(){return this.isOnMac()&&!this.isIpad()},isOnWindows:function(){return"Windows"===i().os.family},isOnIos:function(){return!0===l().ios||this.isIpad()},isOnAndroid:function(){return!0===l().android},isChrome:function(){return!this.isIOSApp()&&(!0===l().chrome||!0===l().chromium)},isSafari:function(){return!0===l().safari},isSafariUA:function(){return/safari/i.test(window.navigator.userAgent)},isFirefox:function(){return!0===l().firefox},isInternetExplorer:function(){return!0===l().msie},isMicrosoftEdge:function(){return!0===l().msedge},isGoogleBot:function(){return/Google Web Preview/.test(window.navigator.userAgent)||/http:\/\/www\.google\.com\/bot\.html/.test(window.navigator.userAgent)},isYandexBot:function(){return/http:\/\/yandex\.com\/bots/.test(window.navigator.userAgent)},isCordova:function(){return c.A.isCordova()},isElectron:function(){return a()()},isNativeApp:function(){return this.isCordova()||this.isElectron()},isIOSApp:function(){return(this.isOnIos()||this.isOnMac())&&this.isCordova()}
1,isAndroidApp:function(){return this.isOnAndroid()&&this.isCordova()},isAndroidWebView:function(){return this.isOnAndroid()&&/; wv\)/i.test(window.navigator.userAgent)},getWKScriptMessageHandler:function(){return this.isOnIos()?window.webkit&&window.webkit.messageHandlers:void 0},isWKWebView:function(){return!!this.getWKScriptMessageHandler()},isUIWebView:function(){return this.isOnIos()&&!this.isIosStandalone()&&!this.isWKWebView()&&!this.isSafari()},isWebView:function(){return this.isAndroidWebView()||this.isWKWebView()||this.isUIWebView()},isIosStandalone:function(){return!!window.navigator.standalone},isStandalone:function(){return this.isIosStandalone()||window.matchMedia("(display-mode: standalone)").matches},isMobile:function(){return!0===l().mobile},isTablet:function(){return!0===l().tablet||this.isIpad()},isMobileOrTablet:function(){return this.isMobile()||this.isTablet()},isIpad:function(){return this.isOnMac()&&this.isTouchDevice()},isIosBrowser:function(){return this.isOnIos()&&!this.isCordova()},isAndroidBrowser:function(){return this.isOnAndroid()&&!this.isCordova()},deviceType:function(){return this.isMobile()?"mobile":this.isTablet()?"tablet":"desktop"},hotkeySuffix:function(e){return"mac"===this.os()?e+"_mac":this.isMobileOrTablet()?e+"_mobile":e},isDevelopmentMode:function(){return"development"===window.rails_env},isStagingMode:function(){return"staging"===window.rails_env},isProductionMode:function(){return"production"===window.rails_env||"production_ca"===window.rails_env||"production_uk"===window.rails_env||"production_in"===window.rails_env},engine:function(){if(l().webkit)return"webkit";if(l().blink)return"blink";if(l().gecko)return"gecko";if(l().msie)return"msie";if(l().msedge)return"msedge";else return null},os:function(){if(l().mac&&this.isIpad())return"ios";if(l().mac)return"mac";if(l().windows)return"windows";if(l().windowsphone)return"windowsphone";if(l().linux)return"linux";else if(l().chromeos)return"chromeos";else if(l().android)return"android";else if(l().ios)return"ios";else if(l().blackberry)return"blackberry";else return null},osVersion:function(){return l().osversion||null},browser:function(){return l().name},browserClassName:function(){return this.browser().toLowerCase().replace(/\s+/g,"-")},browserVersion:function(){return parseFloat(String(l().version))},grade:function(){return l().a?"a":l().c?"c":l().x?"x":void 0},isAutoFocusAllowed:function(){return!this.isMobileOrTablet()},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},supportsDownloadAttribute:function(){return!(this.isCordova()||this.isWebView()||this.isInternetExplorer())},supportsTelLink:function(){return this.isMobileOrTablet()},hideBillingFeatures:function(){return this.isIOSApp()||this.isAndroidApp()},isIframe:function(){try{return window.self!==window.top}catch(e){return!0}},isPopup:function(){return!!window.opener},emitLegacyLeaveEvent:function(e={reason:"left"}){let t=window.opener||window.parent;t&&t!==window&&t.postMessage({type:"iotumLeaveCallEvent",...e},"*")},canShareScreen:function(){return this.isElectron()?window.JitsiMeetElectron&&"function"==typeof window.JitsiMeetElectron.obtainDesktopStreams:this.isMobileOrTablet()?this.supportsMobileScreenshare():this.supportsScreenshare()},setSkipAppModal:function(e=!0){e?this.setSessionValue(d.vR$,"true"):this.clearSessionValue(d.vR$)},shouldSkipAppModal:function(){return"true"===this.getSessionValue(d.vR$)},setAutoClose:function(e=!1){return e||!(this.isCordova()||this.isIframe())?(this.setSessionValue(d.zfv,"true"),!0):(this.clearSessionValue(d.zfv),!1)},setSdkEnabled:function(e){"true"===e?this.setSessionValue(p,"true"):"false"===e&&(this.clearSessionValue(p),this.clearSessionValue(g),this.clearSessionValue(m),this.clearSessionValue(f))},isSdkEnabled:function(){return"true"===this.getSessionValue(p)},setExternalReturnUrl:function(e){this.setSessionValue(v,e)},getExternalReturnUrl:function(){return this.getSessionValue(v)},setMeetingAction:function(e){y(m,e,["popup","intercept"])}
1,getMeetingAction:function(){return this.getSessionValue(m)||"auto"},setScheduleAction:function(e){y(f,e,["intercept"])},getScheduleAction:function(){return this.getSessionValue(f)||"auto"},setLayout(e){y(g,e,["full","list","main","none"])},getLayout:function(){return this.getSessionValue(g)||"full"},disableDocPip(e){y(A,e,["true"],!0)},isDocPipDisabled(){return"true"===this.getSessionValue(A)},removeNode:function(e){if(e){var t,r;null==(t=e.remove)||t.call(e),null==(r=e.parentElement)||r.removeChild(e)}},isServiceWorkersSupported:function(){return"serviceWorker"in navigator},isPushSupported:function(){return!this.isElectron()&&"PushManager"in window},isNotificationSupported:function(){return"Notification"in window},isPushNotificationsSupported:function(){return"vapidPublicKey"in window&&this.isServiceWorkersSupported()&&this.isPushSupported()&&this.isNotificationSupported()},getUAData:async function(){let{connection:e,deviceMemory:t,userAgentData:r}=navigator,s={};return r&&"getHighEntropyValues"in r&&await r.getHighEntropyValues(["architecture","bitness","formFactor","model","platformVersion"]).then(e=>{s.ua=e}),e&&(s.network=Object.fromEntries(["downlink","effectiveType","rtt","saveData"].filter(t=>t in e).map(t=>[t,e[t]]))),t&&(s.device={memory:t}),s},getCachedTimezones:function(){return JSON.parse(this.getLocalValue(w))||[]},cacheTimezones:function(e){this.setLocalValue(w,JSON.stringify(e))},polyfillDocumentPiP(){if(this.isElectron()&&this.supportsDocumentPiP()){let e=null;window.DocumentPictureInPicture.prototype.requestWindow=async({width:t,height:r})=>((e=window.open("about:blank","_pip_window_",`width=${t},height=${r}`)).addEventListener("unload",()=>e=null),e),Object.defineProperties(window.DocumentPictureInPicture.prototype,{window:{get:()=>e}})}},extendGlobalHelpers:function(e,t){return window._APP=window._APP||{},e&&Object.defineProperties(window._APP,e),t&&Object.assign(window._APP,t),window._APP}},b=S},877241(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(302543),i=r(755373),n=r.n(i);let a={},o={parseAndRemove(e,t,r,i=!1){let n={};if(e){let l=o.parse(e.search),c=!1;t.forEach(e=>{let t=(0,s.snakeCase)(e),r=(0,s.camelCase)(e),o=l[r]||l[t]||l[e]||"";delete l[r],delete l[t],delete l[e],o&&(n[r]=o,i&&(a[r]=o),c=!0)}),r&&c&&r.replace({search:o.stringify(l)})}return n},parse:(e,t={})=>(t=Object.assign({ignoreQueryPrefix:!0},t),n().parse(e,t)),stringify:(e,t={})=>(t=Object.assign({arrayFormat:"brackets"},t),n().stringify(e,t)),createURL(e,t){let r=new URL(e);return Object.entries(t).forEach(([e,t])=>{void 0!==t&&r.searchParams.set(e,t)}),r.href},clearHistory(){a={}},getHistory:()=>a},l=o},965936(e,t,r){"use strict";r.d(t,{A:()=>H});var s=r(996599),i=r(688991),n=r(529633),a=r(440913),o=r(257768),l=r(744499),c=r(755373),u=r.n(c),d=r(587492),h=r(42385),p=r(31522),g=r(766873),m=r(545134),f=r(877241),v=r(292944);let A=1,w=new DOMParser,y=null,_=self.document,S=e=>{var t;let r=null==_||null==(t=_.head)?void 0:t.querySelector(`meta[name='${e}']`);return(null==r?void 0:r.getAttribute("content"))||null},b=S("csrf-token"),E=null,C={Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":b},R={"X-CSRF-Token":b},P=e=>{b=e,C["X-CSRF-Token"]=b,R["X-CSRF-Token"]=b,window.turnstileKey=e?S("turnstile-key"):""},O="CACHED_API_URL";class T extends Error{constructor(e,t){super(),this.name="RequestError",this.message=e,this.status=t}}let I=(e=0)=>new Promise(t=>setTimeout(t,e)),k=(e,t)=>{let r=u().stringify(t,{arrayFormat:"brackets"});return r&&r.length>0?`${e}?${r}`:e},x=async(e,t,r,a=R,{jsonReq:o=!1,jsonResp:l=!0,isBlob:c=!1,credentials:u=null,skipAuto401:d=!1,retryOn:h=[504],retryAttempts:p=A}={})=>{let g,m;for(let s=0;s<=p&&(s>0&&await I(250*s),!(g=await self.fetch(z.prefixApiUrl(e),{method:t,body:r?o?JSON.stringify(r):r:void 0,headers:o?{...C,...a}:a,credentials:u||(n.A.isCordova()?"include":"same-origin")}).catch(e=>(m=e,null)))||(null==h?void 0:h.includes(g.status)));s++);if(g){var f;let t;return(d||401!==g.status||i.A.dispatch({type:s.Bo4,url:e}),c)?g.blob():(t=(f=g).ok,!l?f.text().then(e=>{if(t)return e;throw Error(e)},e=>{if(t)return null;throw Error((null==e?void 0:e.message)||"")}):f.json().then(e=>(e=>
1{if(t)if(f.headers&&f.headers.get("per-page")&&f.headers.get("page"))return{per_page:f.headers.get("per-page"),total:f.headers.get("total"),page:f.headers.get("page"),data:e};else return e;for(let t in e.errors)if(Object.prototype.hasOwnProperty.call(e.errors,t))throw Error(e.errors[t]);if(e.error)throw Error(e.error.message||e.error);throw Error("JSON not ok")})(e),()=>{if(t)return null;throw Error(`${f.status} ${f.statusText}`)})).catch(e=>{throw new T(e.message||`${g.url}: ${e}`,g.status)})}throw m},M=Promise.resolve(),N=async(e=!1)=>{M=M.then(async()=>{e&&b||(await z.refreshCsrfToken(),z._updateCssSheet())}).catch(e=>{h.A.error("RequestHelper: _setupApi failed",e)}),await M},L='link[rel=stylesheet][href*="assets/"]',D="css_vars_link",j="LAST_KNOWN_CSS_LINKS",F="LAST_KNOWN_CSS_VARS",$=async e=>{let t=!1,r=[...document.head.querySelectorAll(L)];for(let i of e){var s;let e=(s=i.getAttribute("href"),y?y[s.replace(/.*assets\/(.+)-[^-]*?(\.css)$/gm,"$1$2")]:null);if(e&&!r.some(t=>t.getAttribute("href").includes(e))&&!(t=await new Promise(t=>{let r=Object.assign(i,{href:`assets/${e}`,onload:()=>{clearTimeout(s),t(!0)}}),s=setTimeout(()=>{r.remove(),t(!1)},2e3);document.head.append(r)})))break}return t&&r.forEach(e=>e.remove()),t},q=e=>{if(e=null!=e?e:n.A.getLocalValue(F)){var t;null==(t=document.getElementById(D))||t.remove();let r=document.createElement("style");r.id=D,r.textContent=e,document.head.insertBefore(r,document.head.querySelector("link")),i.A.dispatch({type:s.$Fv})}},V=()=>{let{hash:e,origin:t,href:r}=window.location;return n.A.isCordova()?new URL(e.substring(1),window.apiUrl||t):new URL(r)},U=()=>(d.default.enabled(s.P7g)||d.default.enabled(s.hN$)||n.A.isElectron())&&!n.A.isCordova(),B=()=>n.A.isSdkEnabled()?n.A.getMeetingAction():"",W=e=>{("string"==typeof e?e:(0,l.AO)(e))===(0,l.AO)(o.b.location)?h.A.debug("RequestHelper: _navigate(dup)",e):(E=V().pathname,h.A.debug("RequestHelper: _navigate() to",e),o.b.push(e))},z={goToUrl:function(e){n.A.isCordova()?(h.A.debug(`RequestHelper: reload() to ${e}`),o.b.block(()=>{location.href=o.b.createHref({pathname:e}),location.reload()}),o.b.replace("/")):window.location.href=e},goToSchedule:function(e,t={}){if(n.A.isSdkEnabled()&&e===s.ajK&&"intercept"===n.A.getScheduleAction()){let{id:e,...r}=t;return i.A.dispatch({type:s.E8i,id:e,params:r}),!1}W({pathname:e,search:u().stringify(t)})},willReplaceCurrentView:function(){let e=B();return"popup"!==e&&("intercept"===e||!U()||n.A.isIframe())},reserveCallWindow:function(){if(this.willReplaceCurrentView())return null;n.A.setAutoClose("popup"===B());let e=this.openWindow("about:blank");return e||n.A.clearSessionValue(s.zfv),e},releaseCallWindow:function(e){e&&(e.close(),n.A.clearSessionValue(s.zfv))},goToCall:function(e,t,r){let a=B();if("intercept"===a){this.releaseCallWindow(r),i.A.dispatch({type:s.bOD,accessCode:e,params:t});return}let o=this.getCallUrl(e);if((!n.A.isMobileOrTablet()||n.A.isCordova()||n.A.isElectron())&&n.A.setSkipAppModal(),this.pathMatch(o)){this.releaseCallWindow(r);let e=V();t&&Object.keys(t).forEach(r=>e.searchParams.set(r,String(t[r]))),n.A.isCordova()?window.location.hash="#"+e.pathname:window.history.pushState(null,"",e.toString()),window.dispatchEvent(new Event("goToCall"));return}let l=k(o,t);if(r&&!r.closed){r.location.href=l;return}null==r||r.close(),("popup"===a?n.A.setAutoClose(!0):U()&&n.A.setAutoClose())?this.openWindow(l)||(n.A.clearSessionValue(s.zfv),W(l)):W(l)},goToWebinarAsAttendee:function(e,t){let r=V();r.pathname=this.getWebinarViewerPath(e),r.searchParams.append("participant_key",t),this.openWindow(r.toString(),n.A.isCordova()?"_system":"_blank")},getOpenIdStartUrl:function(e,t=""){let r=new URL(`/auth/${e}`,this.getCurrentUrl());return r.searchParams.set("origin",n.A.getPlatformType()),r.searchParams.set("landing_url",t||this.getPathname()+this.getQueryString()),r.toString()},navigate:W,getCurrentUrl:V,navigationReplace:function(e,t=null){o.b.replace(k(e,t))},go:e=>o.b.go(e),listen:e=>o.b.listen(e),getCallUrl:function(e){return`${s.GXj}/${a.A.sanitizePin(e)}`},getWebinarViewerPath:function(e){return`${s.aWD}
1/${a.A.sanitizePin(e)}`},openWindow:function(e,t,r){n.A.isCordova()&&(e.startsWith("tel:")||e.startsWith("mailto:")?t="_system":e=this.prefixApiUrl(e));let s=window.open(e,t,r);if(s&&"extension_store_window"!==t){let e=!0;try{e=!window.parent.location.hostname}catch(e){}if(e)for(let e=0;e<sessionStorage.length;e++){let t=sessionStorage.key(e);t&&s.sessionStorage.setItem(t,sessionStorage.getItem(t))}try{s.opener=null}catch(e){}}return s},tryToOpenInSafariViewController:async function(e,t,{...r}={},s=1e3,i){for(let e of Object.keys(r))"boolean"==typeof r[e]&&(r[e]=r[e]?"yes":"no");let a="yes"===r.hidden;if(n.A.isCordova()){let t=await v.A.getSafariViewController();if(t)return void t.show({url:e},({event:e})=>{"loaded"===e&&(n.A.isAndroidApp()?setTimeout(()=>{a&&t.hide(),null==i||i(!0)},s):(a&&t.hide(),null==i||i(!0)))},e=>{h.A.error("SafariViewController show error:",e),null==i||i(!1)});h.A.error("SafariViewController not available, fallback to window.open")}let o=this.openWindow(e,t,Object.entries(r).map(([e,t])=>`${e}=${t}`).join(","));o?setTimeout(()=>{a&&o.close(),null==i||i(!0)},s):null==i||i(!1)},openWindowAndListenForMessages:function(e,t,r,s){if(!n.A.isCordova())throw Error("openWindowAndListenForMessages is only for Cordova due to Cordova IAP specific events");let i=this.openWindow(e,t,r);if(i){let e=e=>{var t;s&&"message"==e.type&&(null==(t=e.data)?void 0:t.from_facetalk)&&(s(e.data),i.close())},t=()=>{i.removeEventListener("message",e),i.removeEventListener("exit",t)};i.addEventListener("message",e),i.addEventListener("exit",t)}return i},pathMatch:function(e,t=!1){let r=V().pathname.replace(/\/$/,"");return t?r===e:0===r.indexOf(e)},getPathname:function(){return V().pathname},getQueryString:function(){return V().search},getQueryStringValue:function(e){return new URLSearchParams(this.getQueryString()).get(e)||void 0},setApiUrl:async function(e,t){e=e.replace(/^\s*|\s*$/g,""),t=t.replace(/^\s*|\s*$/g,""),await this.setApiUrlWithUrl(new URL(`https://${e}.${t}`))},setApiUrlWithUrl:async function(e,t=!1){let r=window.apiUrl;return window.apiUrl=e.origin,n.A.setSessionValue(O,window.apiUrl),r!==window.apiUrl&&(z._updateCssVars(window.apiUrl),t?(window.addEventListener("online",()=>N(!0)),document.addEventListener("resume",()=>N(!0)),!1===navigator.onLine||N()):(await m.A.resetAll(),await N()),!0)},restoreApiUrl:async function(e){let t=n.A.getSessionValue(O)||n.A.getLocalValue(s.LOc);return!!t&&(n.A.clearSessionValue(O),await this.setApiUrlWithUrl(new URL(t),e))},getApiUrl:function(){return window.apiUrl||""},_updateCssSheet:async function(){if(!y)return void h.A.warn("Asset manifest not found");let e=Array.from(_.head.querySelectorAll(L)),t=e.map(e=>e.outerHTML);await $(e)&&n.A.setLocalValue(j,JSON.stringify(t))},_updateCssVars:function(e){fetch(`${e}/themes/css_vars/`).then(e=>e.ok?e.text():Promise.reject(Error("Failed to fetch CSS vars"))).then(e=>{n.A.setLocalValue(F,e),q(e)}).catch(()=>{navigator.onLine&&n.A.clearLocalValue(F)})},prefixApiUrl:function(e){let t=e.toLowerCase();return t.startsWith("http")||t.startsWith("blob:")?e:this.getApiUrl()+e},getFullUrl:function(e){return(this.getApiUrl()||location.origin)+e},getHost:function(){return new URL(this.getApiUrl()||window.location.href).host},get:function(e,t,{headers:r,jsonReq:s=!1,jsonResp:i=!0,retryOn:n}={}){return x(k(e,t),"GET",void 0,r,{jsonReq:s,jsonResp:i,retryOn:n})},put:function(e,t,{headers:r,jsonReq:s=!1,jsonResp:i=!0,skipAuto401:n=!1}={}){return x(e,"PUT",t,r,{jsonReq:s,jsonResp:i,credentials:e.startsWith("/")?void 0:"omit",skipAuto401:n})},post:function(e,t,{headers:r,jsonReq:s=!1,jsonResp:i=!0,retryAttempts:n}={}){return x(e,"POST",t,r,{jsonReq:s,jsonResp:i,retryAttempts:n})},delete:function(e,t,{headers:r,jsonReq:s=!1,jsonResp:i=!0}={}){return x(e,"DELETE",t,r,{jsonReq:s,jsonResp:i})},getJSON:function(e,t,r={},{retryOn:s}={}){return this.get(e,t,{headers:r,retryOn:s,jsonReq:!0})},putJSON:function(e,t,r={},{skipAuto401:s=!1}={}){return this.put(e,t,{headers:r,jsonReq:!0,skipAuto401:s})},postJSON:function(e,t,r={},{retryAttempts:s}={}){return this.post(e,t,{headers:r,jsonReq:!0,retryAttempts:s})},deleteJSON:function(e,t,r={}){return this.delete(e,t,{headers:r,jsonReq:!0})},getBlob:function(e){return x(e,"GET",void 0,{},{credentials:"omit",isBlob:!0})},getPreviousPath:function(){return E},refreshCsrfToken:async function(){P(null);try{await this.loadCsrfToken()}catch(e){throw!1===navigator.onLine||setTimeout(()=>N(),1e3),e}},loadCsrfToken:async function(e=!1){if(b)return;if(e&&!y&&(y=await fetch(p.A.getPath("/assets/sprockets-manifest.json")).then(e=>e.json()).then(e=>e.assets).catch(()=>null)),e&&await this.restoreApiUrl(e)){let e=n.A.getLocalValue(j);if(e)try{await $(JSON.parse(e).map(e=>{var t;let r=document.createElement("div");return r.innerHTML=e,(null==(t=r.firstChild)?void 0:t.nodeName)==="LINK"?r.firstChild:null}
1).filter(Boolean))}catch(e){}q();return}let t=await this.get(`${this.getApiUrl()}/`,void 0,{jsonResp:!1});_=w.parseFromString(t,"text/html"),P(S("csrf-token"))},resetCsrfToken:async function(){let e=await this.get("/",void 0,{jsonResp:!1});_=w.parseFromString(e,"text/html"),P(S("csrf-token"))},parseXml:function(e,t){let r=w.parseFromString(e,"text/xml"),s=r.querySelector("parsererror");t(s?Error(s.textContent):null,r)},uploadFile:function(e,t,r=e=>{},s=()=>{},i=()=>{},n=0){let a=new XMLHttpRequest;a.upload.addEventListener("progress",e=>{e.lengthComputable&&r(e.loaded/e.total*t.size)},!1),a.addEventListener("load",()=>{a.status>=200&&a.status<300?s():i({name:"RequestError",status:a.status})},!1),a.addEventListener("error",i,!1),a.addEventListener("abort",i,!1),a.addEventListener("timeout",i,!1),a.open("PUT",e,!0),a.timeout=n,a.setRequestHeader("Content-Type","multipart/form-data"),a.send(t)},downloadFile:async function(e,t){if(!n.A.isCordova())return!1;let r=await this.getBlob(e).catch(()=>null);return null!==r&&(await window.cordova.plugins.saveDialog.saveFile(r,t).then(()=>{}).catch(()=>{}),!0)},getAutoCloseAndClearFlag:function({close:e=!1,feedbackGuid:t=""}={}){let r="true"==n.A.getSessionValue(s.zfv);return n.A.clearSessionValue(s.zfv),r&&e&&(g.A.postMessage(s.ImB,t),n.A.isElectron()?W("/loading?close=true"):window.close()),r},setJoinToken:function(e){e&&(n.A.setSessionValue(s.u7B,e),n.A.setSkipAppModal())},validateAccountSession:function(e=250){let t="/accounts/ping";return z.post(t).then(()=>n.A.clearSessionValue(s.DEz),r=>{if(401===r.status){if(n.A.isSdkEnabled()&&i.A.dispatch({type:s.Bo4,sdk:!0,url:t}),"true"===n.A.getSessionValue(s.DEz))return void z.goToUrl("/login");n.A.setSessionValue(s.DEz,"true"),setTimeout(()=>window.location.reload(),e)}})},generateSSOUrl:function({accountId:e,onetimeToken:t,loginTokenPublicKey:r}){let s={host_id:e,...t?{onetime_token:t}:{},...r?{login_token_public_key:r}:{},redirect_url:window.location.pathname+window.location.search},i=new URL("/mobile_auth",window.location.origin);return i.search=new URLSearchParams(s).toString(),i.toString()},generateSSODeeplink:function({isGuest:e,accountId:t,onetimeToken:r,loginTokenPublicKey:s,branchAppLink:i,guid:n}){let a=window.location.href;if(e){if(n){let e=new URL(a);e.searchParams.set("guid",n),e.searchParams.set("guest_guid","true"),a=e.toString()}}else a=this.generateSSOUrl({accountId:t,onetimeToken:r,loginTokenPublicKey:s});let o=new URL(`https://${i}`);return o.searchParams.append("$canonical_url",a),o.toString()},openInAppBrowserSSO:async function({mobileAppLoginRedirectURL:e,redirectUri:t,openIdUrl:r,callback:s}){let i,n=await v.A.getSafariViewController();if(n){let i;if(r){let e=new URL(r,this.getCurrentUrl());e.searchParams.set("frontend_safariviewcontroller_redirect","true"),i=e.toString()}else{let r=f.A.createURL(t,{frontend_safariviewcontroller_redirect:"true"});i=f.A.createURL(e,{redirect_uri:r})}let a=window.handleOpenURL;window.handleOpenURL=e=>{s(Object.fromEntries(new URL(e).searchParams)),window.handleOpenURL=a,n.hide()},n.show({url:i});return}if(r){let e=new URL(r,this.getCurrentUrl());e.searchParams.set("frontend_inappbrowser_redirect","true"),i=e.toString()}else{let r=f.A.createURL(t,{frontend_inappbrowser_redirect:"true"});i=f.A.createURL(e,{redirect_uri:r})}z.openWindowAndListenForMessages(i,"_blank",void 0,s)}},H=z},257768(e,t,r){"use strict";r.d(t,{K:()=>l,b:()=>o});var s=r(474848),i=r(296540),n=r(956347),a=r(744499);let o=r(529633).A.isCordova()?(0,a.TM)():(0,a.zR)();class l extends i.PureComponent{render(){return(0,s.jsx)(n.Ix,{history:o,children:this.props.children})}}},440913(e,t,r){"use strict";r.d(t,{A:()=>c}),r(996599);let s=/\p{Emoji_Presentation}+/u,i=/^\+(\p{Emoji}\uFE0F)$/u,n=/^([^ @]+@([^.]+\.)+[a-zA-Z]+)$/i,a=/(?:\p{Extended_Pictographic}\p{Emoji_Modifier}*\uFE0F?\u200D?\s*|\p{Emoji}[\uFE0E\uFE0F]\s*)/u,o=RegExp(`(${a.source}+)`,"gu"),l=RegExp(`^${a.source}+$`,"u"),c=Object.freeze({isValidEmail:function(e){return!!e&&n.test(e)},validateCompanyName:function(e){return this.validateName(e,!0)},validateName:function(e,t=!1){let r=t?"company":"users";return e&&e.trim()?e.length>320?`validations.${r}.name_too_long`:null!=e.match(/<|>/g)||this.hasEmoji(e)?`validations.${r}.name_special_characters`:null:`validations.${r}.name_blank`},validateEmailBasic:function(e){return!e||!(!n.test(e)||/[^A-Za-z0-9!#$%&'*+-/=?^_`{|}~@.]/g.test(e))},validateEmail:function(e,t=!1){return e&&e.trim()?this.validateEmailBasic(e)?null:t?"validations.users.public_email_invalid":"validations.users.email_invalid":"validations.users.email_blank"},validatePassword:function(e){if(!e)return"validations.passwords.blank";if(e.length<8)return["validations.passwords.length","password_complexity.length"];let t=["validations.passwords.complexity"];
1return e.match(/(?=.*[a-z])/)||t.push("password_complexity.lowercase"),e.match(/(?=.*[A-Z])/)||t.push("password_complexity.uppercase"),e.match(/(?=.*[0-9])/)||t.push("password_complexity.number"),e.match(/(?=.*[^a-zA-Z0-9])/)||t.push("password_complexity.special"),t.length>1?t:null},sanitizePin:function(e){return(e+"").replace(/\D/g,"")},validateSecurity:function(e,t,r){let s=1===(t=Number(t));return(e?[0,1,2]:[0,1]).includes(t)?{oneTimeAccessCodeEnabled:e,additionalSecurityType:t,sharedPasscode:(r=s?r:null)||null,error:s?this.validatePasscode(r,!1):null}:e||2!==t?{error:"validations.addition_security.unrecognized"}:{oneTimeAccessCodeEnabled:e,additionalSecurityType:0,sharedPasscode:null,error:null}},validatePasscode:function(e,t=!0){if(e){if(e.length>32)return"validations.passcode.length";if(!e.match(/^[0-9]+$/i))return"validations.passcode.format"}else if(!t)return"validations.passcode.empty";return null},validateUsername:e=>e&&!e.match(/^[a-z0-9\-_+~.]+$/i)?"validations.username.format":null,validateWebsiteURL:(e,{optionalProtocol:t=!0,optionalPath:r=!0}={})=>{let s=!0;if(e)try{let i=new URL(!t||/^\w+:\/\//.test(e)?e:`https://${e}`);(s=["http:","https:"].includes(i.protocol))&&!r&&(s=i.pathname.length>1)}catch(e){s=!1}return s?null:"validations.users.website_url_invalid"},validateTurnstileToken:function(e){let t=e.elements["cf-turnstile-response"];if(t){let e=t.value||void 0;return{cfTurnstileToken:e,errorId:e?void 0:"validations.users.require_human"}}return{}},hasEmoji:e=>a.test(e),replaceEmoji:(e,t)=>e.replace(o,t),hasOnlyEmojis:e=>l.test(e),getReactionEmoji:e=>{if(e&&e.startsWith("+")){let t=e.match(s);if(t&&t[0].length===e.length-1)return t[0];if(i.test(e))return e.substring(1)}return null}})},402785(e,t,r){"use strict";r.d(t,{A:()=>n}),r(996599);var s=r(296540),i=r(302543);function n(e,t,{event:r="CHANGE",onEvent:a,fireOnMount:o=!1}={}){let[l,c]=(0,s.useState)(t);return(0,s.useEffect)(()=>{let s=!0,n=e=>{s&&c(t=>(0,i.isEqual)(t,e)?t:e)};function l(...e){t&&n(t(...e)),a&&a(...e)}return e.on(r,l),t?n(t()):a&&o&&a(),()=>{s=!1,e.off(r,l)}},[e,t,r,a,o]),l}},769853(e,t,r){"use strict";r.d(t,{A:()=>i});var s=r(296540);function i(e=2e3,t=!1){let[r,n]=(0,s.useState)(t);return(0,s.useEffect)(()=>{if(r){let t=setTimeout(()=>n(!1),e);return()=>clearTimeout(t)}},[r,e]),[r,(0,s.useCallback)(()=>n(!0),[])]}},562770(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(688991),i=r(996599);let n=Object.freeze({toggleSelfView:()=>{s.A.dispatch({type:i.yi4})},toggleP2PView:()=>{s.A.dispatch({type:i.cbb})},changeInCallView:(e,t=!0)=>{s.A.dispatch({type:i.hsQ,viewType:e,persist:t})},reset:()=>{s.A.dispatch({type:i.QoV})}})},86868(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);r(996599);class i extends s.A{getSortFunction(){return(e,t)=>!!t.pbx_reg_state-!!e.pbx_reg_state||!!e.expired-!!t.expired||String(e.sip_username).localeCompare(String(t.sip_username))}allowRequest(e,t,r){return"update"===e||"delete"===e||super.allowRequest(e,t,r)}constructor(){super("sipDevices",{path:"/sip_devices"})}}let n=new i},965780(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(965936),i=r(908503);class n extends i.A{getErrorMessage(e){return"RequestError"===e.name?{id:"settings.answering_rules.error.generic"}:super.getErrorMessage(e)}getRingTimeout(){return e=>{var t;return null!=(t=this._my(e).ringTimeout)?t:null}}getGlobalSettings(){return e=>{var t;return null!=(t=this._my(e).globalSettings)?t:null}}fetchRingTimeout(){return async e=>{try{let t=await s.A.getJSON("/pbx/answering_rules/ring_timeout");e(this._slice.actions.setRingTimeout(t.seconds)),e(this._slice.actions.setGlobalSettings({privacy:t.privacy,reject_anonymous_calls:t.reject_anonymous_calls,recording_configuration:t.recording_configuration,allowed_numbers_enabled:t.allowed_numbers_enabled,rejected_numbers_enabled:t.rejected_numbers_enabled}))}catch(e){}}}updateRingTimeout(e){return async t=>{try{await s.A.putJSON("/pbx/answering_rules/ring_timeout",{seconds:e}),t(this._slice.actions.setRingTimeout(e))}catch(e){}}}reorder(e){return async t=>{try{await s.A.putJSON("/pbx/answering_rules/reorder",{time_frames:e}),t(this.fetch())}catch(e){}}}constructor(){super("answeringRules",{path:"/pbx/answering_rules",reducers:{setRingTimeout:(e,t)=>{e.ringTimeout=t.payload},setGlobalSettings:(e,t)=>{e.globalSettings=t.payload}}})}}let a=new n},319171(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{constructor(){super("bookedEvents",{path:"/booked_events"})}}let n=new i},78567(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{constructor(){super("bookingPages",{path:"/booking_pages"})}}let n=new i},81537(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{getSortFunction(){return(e,t)=>e.starts_at<t.starts_at?-1:+(e.starts_at>t.starts_at)}constructor(){super("calendarEvents",{path:"/calendar_events"})}}let n=new i},488030(e,t,r){"use strict";r.d(t,{A:()=>c});var s=r(554997),i=r(996599),n=r(908503),a=r(965936);let o="true"===localStorage.getItem("callQueues.showAll");class l extends n.A{fetch(e={}){return super.fetch({...e,order_by:"none"})}login(e,t){let r=[`/pbx/queues/${encodeURIComponent(e)}/login`];return t&&r.push({sip_device_key:t}),a.A.postJSON(...r)}logout(e,t){let r=[`/pbx/queues/${encodeURIComponent(e)}/logout`];return t&&r.push({sip_device_key:t}),a.A.postJSON(...r)}getCallQueues(){return(0,s.Mz)(super.getAll(),e=>e.filter(e=>e.id&&"Call Park"!==e.strategy&&(o||e.is_member)))}getMemberQueues(){return(0,s.Mz)(super.getAll(),e=>e.filter(e=>"Call Park"!==e.strategy&&e.is_member))}getCallParkQueues(){return(0,s.Mz)(super.getAll(),e=>e.filter(e=>"Call Park"===e.strategy))}constructor(){super(i.JJB,{path:"/pbx/queues",trackId:!1,mergeOnFetch:!1})}}let c=new l},655300(e,t,r){"use strict";r.d(t,{A:()=>c});var s=r(554997),i=r(719996),n=r(996599),a=r(908503),o=r(965936);class l extends a.A{getAll(e){return(0,s.Mz)(super.getAll(),t=>t.map(t=>e(t)))}getPageSize(){return e=>e[`${this.resource}`].pageSize}getTotal(){return e=>e[`${this.resource}`].totalRecords}getMissedCallCount(){return(0,s.Mz)(super.getAll(),e=>e.filter(e=>"phone_inbound"===e.v2_type&&!1===e.viewed&&"NsPbxAdapter"===e.carrier).length)}getSortFunction(){return(e,t)=>t.start_time-e.start_time||t.id-e.id}constructor(){super(n.HFK,{path:"/live_cdrs",trackId:!0,mergeOnFetch:!0}),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"markAllViewed",(0,i.zD)(`${n.HFK}/markAllViewed`,async(e,t)=>{var r;let s=((null==(r=t.getState()[n.HFK])?void 0:r.records)||[]).filter(e=>"phone_inbound"===e.v2_type&&!1===e.viewed&&"NsPbxAdapter"===e.carrier);if(0===s.length)return;let i=s.map(e=>e.id);await o.A.putJSON("/live_cdrs/mark_viewed",{ids:i});let a=s.map(e=>({...e,viewed:!0}));t.dispatch(this.addRecords(a))}))}}let c=new l},625500(e,t,r){"use strict";r.d(t,{A:()=>
1o});var s=r(554997),i=r(996599),n=r(908503);class a extends n.A{fetch(e={}){return super.fetch({...e,order_by:"none"})}getFolderIds(){return(0,s.Mz)(this.getAll(),e=>e.map(e=>e.id))}getInboxFolderId(){return(0,s.Mz)(this.getAll(),e=>{var t;return null==(t=e.find(e=>e.type===i.FNI.INBOX))?void 0:t.id})}getFolderTypeById(e){return(0,s.Mz)(this.getAll(),t=>{var r;return null==(r=t.find(t=>t.id===e))?void 0:r.type})}getNonTrashFolderIds(){return(0,s.Mz)(this.getAll(),e=>e.filter(e=>e.type!==i.FNI.TRASH).map(e=>e.id))}constructor(){super(i.n99,{path:"/pbx/vmail/folders",trackId:!1,mergeOnFetch:!0})}}let o=new a},890807(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(302543),i=r(554997),n=r(996599),a=r(908503);class o extends a.A{fetch(e={}){return super.fetch({...e,order_by:"none"})}delete(e={}){let{folder:t,...r}=e;return this._deleteAsyncThunk({...r,pathOverride:`${this.path}/${t}`})}update(e={}){let{folder:t,...r}=e;return this._updateAsyncThunk({...r,pathOverride:`${this.path}/${t}`})}getByFolder(e){return this.where({folder:e})}getByFolders(e){return(0,i.Mz)(this.getAll(),t=>t.filter(t=>e.includes(t.folder)))}getFolderMessageCounts(e){return(0,i.Mz)(this.getAll(),t=>{let r=(0,s.countBy)(t,e=>e.folder);return e.reduce((e,t)=>(t&&(e[t]=r[t]||0),e),{})})}findById(e){return e?super.findBy({id:e}):()=>null}constructor(){super(n.W5j,{path:"/pbx/vmail/messages",trackId:!1,mergeOnFetch:!1})}}let l=new o},699921(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(554997);r(996599);var i=r(908503);class n extends i.A{findBy(e){return(0,s.Mz)(super.findBy(e),e=>e?this.transformRecord(e):null)}transformRecord(e){let t=new URL(e.room_url);return t.searchParams.set("skipJoin","true"),{...e,joinURL:t.toString()}}allowRequest(e,t,r){return"fetch"==e||super.allowRequest(e,t,r)}callEnded({conference_call_id:e}){return this._slice.actions.callEnded({conference_call_id:e})}constructor(){super("chatConferences",{mergeOnFetch:!0,path:"/conf/show_conference",query:{chat_message:"1"},reducers:{callEnded:(e,t)=>{e.records=e.records.map(e=>(e.id==t.payload.conference_call_id&&(e.is_past=!0),e))}}})}}let a=new n},703024(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{constructor(){super("chatParticipants",{path:"/chat_participants"})}}let n=new i},830388(e,t,r){"use strict";r.d(t,{A:()=>d});var s=r(554997),i=r(719996),n=r(908503),a=r(996599),o=r(965936),l=r(642008);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u extends n.A{isBotDM(e){var t,r,s;return e.room_type===a.MP4&&(null==(r=e.bots)?void 0:r.length)>0&&(null!=(t=null==(s=e.accounts)?void 0:s.length)?t:0)<=1}getListOfNames(e,t){if(1==e.length){let[r]=e;if(r.id==t)return`${r.name} (You)`}return e.filter(e=>e.id!=t).map(({name:e})=>e).join(", ")}getChannels(e){return(0,s.Mz)(this.getAll(),t=>t.filter(t=>t.slug&&(!e||t.accounts.some(t=>t.id===e))).sort((e,t)=>e.slug.localeCompare(t.slug)))}getDirectMessagingRooms(e,t=null){return(0,s.Mz)(this.getAll(),r=>r.filter(e=>!e.slug&&(e.last_msg||e.id===t)).sort((e,r)=>{var s,i;return((null==(s=r.last_msg)?void 0:s.timestamp)||(r.id===t?1/0:0))-((null==(i=e.last_msg)?void 0:i.timestamp)||(e.id===t?1/0:0))}).slice(0,15).map(t=>({room:t,names:this.getListOfNames(t.accounts,e)})).sort(({names:e},{names:t})=>e.localeCompare(t)).map(({room:e})=>e))}getInbox(e){return(0,s.Mz)(this.getAll(),t=>t.filter(t=>!t.slug||t.accounts.some(t=>t.id===e)).sort((e,t)=>{let r=!!e.last_msg,s=!!t.last_msg;if(r&&!s)return -1;if(!r&&s)return 1;if(r&&s){let r=t.last_msg.timestamp-e.last_msg.timestamp;if(0!==r)return r}let i=!e.slug,n=!t.slug;return i&&!n?-1:!i&&n?1:e.slug&&t.slug?e.slug.localeCompare(t.slug):0}))}validateRecord(e){if("string"==typeof e.slug){if(e.slug.match(/[^a-z0-9-]/))return"chat_rooms.errors.slug_invalid_chars";else if(""==e.slug)return"chat_rooms.errors.slug_blank"}return null}searchByAccountIDs(){return(0,s.Mz)([super.where({room_type:a.MP4}),(e,t)=>t],(e,t)=>this._findRoomByAccountIDs(e,t))}constructor(){super("chatRooms",{path:"/chat_rooms"}),c(this,"startChat",(0,i.zD)("startChat",async(e,t)=>{if(!e.accountIDs)throw Error("Currently this function only supports starting a chat by accountIDs (TODO: implement support for params.participantIds if needed)");let r=t.getState().chatRooms.records.filter(e=>e.room_type===a.MP4),s=this._findRoomByAccountIDs(r,e.accountIDs);if(s.length)this.goToRoom(s[0].id);else{let r=await l.A.create(this._path(),{room_type:a.MP4,account_ids:e.accountIDs});t.dispatch(this.addRecords([r])),this.goToRoom(r.id)}})),c(this,"updateNotificationSetting",(0,i.zD)("chatRooms/updateNotificationSetting",async(e,t)=>{let r=await o.A.putJSON(`/chat_rooms/${e.roomId}`,{notification_setting:e.notificationSetting,muted_until:e.mutedUntil});return t.dispatch(this.updateRecord({_updateRule:"partial",id:e.roomId,notification_setting:r.notification_setting,muted_until:r.muted_until})),r})),c(this,"getRoomCacheKey",e=>`last_room_viewed_for_account_${e}`),c(this,"goToRoom",e=>{o.A.navigate(`${a.Ddi}/room/${e}`)}),c(this,"gotoNewDM",()=>{o.A.navigate(`${a.Ddi}/new`)}
1),c(this,"gotoNewChannel",()=>{o.A.navigate(`${a.Ddi}/channels`)}),c(this,"_findRoomByAccountIDs",(e,t)=>e.map(e=>({room:e,matchingParticipantCount:e.accounts.map(e=>e.id).filter(e=>t.includes(e)).length})).filter(e=>e.matchingParticipantCount>0).sort((e,t)=>t.matchingParticipantCount-e.matchingParticipantCount).map(e=>e.room))}}let d=new u},416904(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(908503),i=r(996599);class n extends s.A{constructor(){super(i.rPM,{path:"/departments"})}}let a=new n},4569(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{constructor(){super("storage",{path:"/accounts/billing_storage"})}}let n=new i},254466(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(22472),i=r(688991),n=r(996599),a=r(280468);class o extends s.A{constructor(){super("chatFiles"),i.A.register(e=>{e.type==n.DIV&&a.M.dispatch(this._slice.actions.clear())})}}let l=new o},957504(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(22472);class i extends s.A{constructor(){super("contentLibraryFiles",{mergeOnFetch:!0})}}let n=new i},22472(e,t,r){"use strict";r.d(t,{A:()=>o});var s=r(554997),i=r(908503),n=r(571606);class a extends i.A{getAll(){return(0,s.Mz)(super.getAll(),e=>e.map(e=>a.transformFile(e)))}addRecordsBeforeLoaded(e){return this._slice.actions.addRecordsBeforeLoaded(e)}static transformFile(e){return{...e,isAVFile:a.isAVFile(e),isAudioFile:a.isAudioFile(e),isVideoFile:a.isVideoFile(e),isPresentable:a.isPresentable(e),icon:n.Ay.getIconForFile(e.filename)}}static isPresentable(e){return"ready"===e.presentation_status||a.isAVFile(e)}static isAVFile(e){return a.isAudioFile(e)||a.isVideoFile(e)}static isAudioFile(e){let{mimetype:t}=e;return!!t&&["audio","mp3","wav","wma","ogg"].some(e=>t.includes(e))}static isVideoFile(e){let{mimetype:t}=e;return!!t&&["video","mp4","avi","wmv"].some(e=>t.includes(e))}constructor(e,t={}){Object.assign(t,{reducers:{addRecordsBeforeLoaded:(e,t)=>{t.payload.forEach(t=>e.records.push(t)),e.records=e.records.sort(this.getSortFunction())}}}),super(e,{path:"/drive_files",...t})}}let o=a},272088(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(22472);class i extends s.A{constructor(){super("filesRetention",{path:"/files_retentions"})}}let n=new i},510721(e,t,r){"use strict";r.d(t,{A:()=>l});var s=r(22472),i=r(688991),n=r(996599),a=r(280468);class o extends s.A{constructor(){super("participantFiles"),i.A.register(e=>{e.type==n.DIV&&a.M.dispatch(this._slice.actions.clear())})}}let l=new o},66808(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(22472);class i extends s.A{constructor(){super("recordingsFiles",{mergeOnFetch:!0})}}let n=new i},441730(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(22472);class i extends s.A{constructor(){super("sharedDuringMeetingsFiles",{mergeOnFetch:!0})}}let n=new i},936826(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{clearLoaded(){return this._slice.actions.clearLoaded()}getTotal(){return e=>e[`${this.resource}`].totalRecords}constructor(){super("storage",{path:"/accounts/storage_size",reducers:{clearLoaded:e=>{e.isLoaded=!1}}})}}let n=new i},269334(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(22472);class i extends s.A{getSortFunction(){return(e,t)=>new Date(t.added_to_trash_at)-new Date(e.added_to_trash_at)}constructor(){super("trashFiles",{mergeOnFetch:!0})}}let n=new i},247423(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(908503),i=r(996599);class n extends s.A{constructor(){super(i.Nt,{path:"/live_conferences"})}}let a=new n},187891(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(908503),i=r(996599);class n extends s.A{constructor(){super(i.JSX,{path:"/payment_allocations"})}}let a=new n},898098(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{validateRecord(e){return e.country_code?e.national_number?null:"validations.phone_number.phone_number_blank":"validations.phone_number.country_code_blank"}getErrorMessage(e){return"RequestError"==e.name?{id:"errors.phone_number.save_error"}:super.getErrorMessage(e)}constructor(){super("phoneNumbers",{path:"/phone_numbers"})}}let n=new i},41678(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{getSortFunction(){return(e,t)=>e.id-t.id}constructor(){super("activePoll",{path:"/poll_questions"})}}let n=new i},42643(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{constructor(){super("adImpression",{path:"/ad_impression"})}}let n=new i},956257(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(908503);class i extends s.A{constructor(){super("adListen",{path:"/ad_listen"})}}let n=new i},824348(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(908503),i=r(996599);class n extends s.A{constructor(){super(i.eTT,{path:"/livestream_analytics"})}}let a=new n},912745(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(908503),i=r(996599);class n extends s.A{constructor(){super(i.eBl,{path:"/registration_answers"})}}let a=new n},468447(e,t,r){"use strict";r.d(t,{A:()=>a});var s=r(996599),i=r(908503);class n extends i.A{getSortFunction(){return(e,t)=>e.id-t.id}constructor(){super(s.ob4,{path:"/registration_question"})}}let a=new n},755666(e,t,r){"use strict";r.d(t,{A:()=>
1o});var s=r(6147),i=r.n(s),n=r(569840);let a=["DisplayNames","ListFormat","PluralRules","RelativeTimeFormat"],o=new Promise((e,t)=>{if(window.Intl&&window.Intl.Locale&&a.every(e=>window.Intl[e]&&window.Intl[e].supportedLocalesOf&&window.Intl[e].supportedLocalesOf(n).length===n.length))e();else{let t=["general","Intl","Intl.getCanonicalLocales",...n.flatMap(e=>["Intl.Locale",...a].map(t=>`Intl.${t}.~locale.${e}`))].join(","),r=`https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=${t}`;i()(r,{async:!0},e)}})},114892(){},569840(e){"use strict";e.exports=JSON.parse('["en","fr","es","de"]')}}]); 2//# sourceMappingURL=9089-89ac5a11c01a684c.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.