PageSourceSearch

https://castvoices.com/static/js/155.dc7a5432.chunk.js

js castvoices.com collected 2026-10-08 03:34:41 UTC 64,619 bytes, 112 lines download raw bytes

1(this.webpackJsonpcastvoices=this.webpackJsonpcastvoices||[]).push([[155,4,6,7,9,11,14,19,20,23,33,35,77,467],{2063:function(e,t,n){},2066:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return a}));var i=n(0),o=(n.n(i),n(756));const a={includes:(e="")=>e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),startsWith:(e="")=>"^"+a.includes(e)},r=({defaultOptions:e,searchPattern:t=a.includes,searchKey:n="name"})=>{const[o,r]=Object(i.useState)([]);Object(i.useEffect)(()=>{(null==e?void 0:e.length)&&r(e)},[e]);return{onSearch:Object(i.useCallback)((i="")=>{const o=new RegExp(t(i),"i");r(e.filter(e=>o.test(e[n])))},[e,n,t]),options:o,onDropdownClose:Object(i.useCallback)(()=>{r(e)},[e])}},l={tags:e=>({itemSearchableString:t})=>null==e?void 0:e.every(e=>{if("string"==typeof(null==e?void 0:e.name)){const n=e.name.split(" ");let i=!0;for(let e=0;e<n.length;e++){const o=n[e];if(!t.includes(o.toLowerCase())){i=!1;break}}return i}return!1}),text:e=>({itemSearchableString:t})=>t.includes(e.toLowerCase())},s=[],c=({data:e,isSearchable:t})=>{const n=Object(i.useMemo)(()=>t?((e=[])=>[].concat(e).map(e=>(e.itemSearchableString=Object.values(e).reduce((e,t)=>(Array.isArray(t)?e+=t.map(e=>e.name).join()+",":e+=t+",",e.toLowerCase()),""),e)))(e):e,[t,e]),[a,r]=Object(i.useState)(null!=n?n:s),c=Object(i.useRef)(""),d=Object(i.useCallback)(e=>{c.current=e;let t=null;if("string"==typeof e&&(t=l[o.a.TEXT](e)),Array.isArray(e)&&(t=l[o.a.TAGS](e)),t){const e=n.filter(t);r(e)}},[n]);Object(i.useEffect)(()=>{t&&c.current?d(c.current):r(null!=n?n:s)},[n,t,d]);const b=Object(i.useCallback)(t=>{t||r(e)},[e]);return{onSearch:d,onSearchChange:b,data:a}}},2069:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(16),o=(n.n(i),n(2023)),a=n(2029),r=n(2),l=n(2062),s=n(85),c=n(125);const d=Object(r.default)(o.a)`
2  align-items: center;
3  border-radius: 4px;
4  border: none;
5  display: flex;
6  height: 24px;
7  padding: 0px 6px;
8  padding-right: ${e=>e.icon?"8px":"6px"};
9  min-width: 65px;
10  justify-content: center;
11  div {
12     justify-self: flex-start;
13  }
14
15  ${Object(l.a)("iconColor")}
16`,b=e=>{var{iconColor:t,isResumeExperienceOrLocation:n,label:o,labelProps:r}=e,l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["iconColor","isResumeExperienceOrLocation","label","labelProps"]);return Object(i.jsx)(d,Object.assign({color:Object(s.b)(c.a.brand,.1),gap:"none",iconColor:t,label:Object(i.jsx)(a.a,Object.assign({color:c.a.brand,margin:{left:l.icon?"2px":"0"},size:"small"},r,{children:o}),void 0),margin:n?"auto 0":"0",primary:!0},l),void 0)}},2070:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var i=n(16),o=n(0),a=n(244),r=n(2023),l=n(2029),s=n(2),c=n(125);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var b=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 19c-6.627 0-12-7-12-7s5.373-7 12-7 12 7 12 7-5.373 7-12 7zm-7.23-5.057A22.384 22.384 0 012.66 12a22.384 22.384 0 012.11-1.943C6.808 8.415 9.364 7 12 7s5.192 1.415 7.23 3.057c.854.688 1.57 1.379 2.11 1.943a22.376 22.376 0 01-2.11 1.943C17.192 15.585 14.636 17 12 17s-5.192-1.415-7.23-3.057zM14 12a2 2 0 11-4 0 2 2 0 014 0zm2 0a4 4 0 11-8 0 4 4 0 018 0z"});function u(e){return o.createElement("svg",d({viewBox:"0 0 24 24"},e),b)}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var O=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 19c-6.627 0-12-7-12-7s5.373-7 12-7 12 7 12 7-5.373 7-12 7zm-7.23-5.057A22.384 22.384 0 012.66 12a22.384 22.384 0 012.11-1.943C6.808 8.415 9.364 7 12 7s5.192 1.415 7.23 3.057c.854.688 1.57 1.379 2.11 1.943a22.376 22.376 0 01-2.11 1.943C17.192 15.585 14.636 17 12 17s-5.192-1.415-7.23-3.057zM14 12a2 2 0 11-4 0 2 2 
160 014 0zm2 0a4 4 0 11-8 0 4 4 0 018 0z"}),g=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.707 20.707a1 1 0 01-1.414 0l-16-16a1 1 0 011.414-1.414l16 16a1 1 0 010 1.414z"});function p(e){return o.createElement("svg",j({viewBox:"0 0 24 24"},e),O,g)}var v=n(187);const h="24px",m="100%",f=Object(s.default)(a.a)`
17  height: ${h};
18  ${({underlineColor:e})=>e?`\n        padding-bottom: 12px;\n        border-bottom: 1px solid ${e};\n      `:""}
19`,x=Object(s.default)(r.a)`
20  border: none;
21`,E=({color:e="brand",isPublic:t,onClick:n,pad:a,title:r,titleSize:s="medium",isVisible:d=!0,fill:b=c.a.brand,fillNotVisible:j=c.a["dark-4"],margin:O={bottom:"10px"},showTitlePublicly:g=!0,size:E=h,style:y,underlineColor:C})=>{const w=Object(o.useMemo)(()=>d?Object(i.jsx)(u,{fill:b,width:m},void 0):Object(i.jsx)(p,{fill:j,width:m},void 0),[b,j,d]),S=Object(o.useMemo)(()=>Object(i.jsx)(x,Object.assign({"data-testid":"visibility-button",onClick:n,pad:a,style:Object.assign(Object.assign({},r&&y||{}),{height:E,width:E})},{children:w}),void 0),[w,n,a,E,y,r]);return Object(i.jsx)(v.a,Object.assign({fallback:S,when:r},{children:Object(i.jsxs)(f,Object.assign({align:"center",direction:"row",margin:O,pad:a,style:y,underlineColor:C},{children:[Object(i.jsx)(v.a,Object.assign({when:t&&g||!t},{children:Object(i.jsx)(l.a,Object.assign({color:e,margin:{right:"small"},size:s},{children:r}),void 0)}),void 0),Object(i.jsx)(v.a,Object.assign({when:n&&!t},{children:S}),void 0)]}),void 0)}),void 0)}},2071:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const i="20px",o={cursor:"pointer",height:i,width:i}},2073:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var i=n(16),o=n(0),a=n(244),r=n(2029),l=n(2),s=n(187),c=n(2071),d=n(1994),b=n(125),u=n(2143);const j=Object(l.default)(a.a)`
22  border-radius: 4px;
23  height: ${"24px"};
24  padding: 0 8px;
25
26  & > span {
27    overflow: hidden;
28    text-overflow: ellipsis;
29    white-space: nowrap;
30  }
31`,O=e=>{var{backgroundColor:t,fontColor:n,fontSize:a="small",icon:l,iconColor:O,id:g,isRemovable:p,isShareable:v,name:h,onRemove:m,onShare:f,prefix:x,tempId:E,tagMargin:y}=e,C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["backgroundColor","fontColor","fontSize","icon","iconColor","id","isRemovable","isShareable","name","onRemove","onShare","prefix","tempId","tagMargin"]);const w=Object(o.useMemo)(()=>h instanceof Object?null==h?void 0:h.name:h,[h]),S=Object(o.useMemo)(()=>Object.assign(Object.assign({},c.a),{marginLeft:"xsmall"}),[]),T=Object(o.useCallback)(e=>{m&&m(e,{name:w,id:g||E,tempId:E}
31)},[g,m,E,w]),I=Object(o.useCallback)(e=>{f&&f(e,{name:w,id:g||E,tempId:E})},[g,f,E,w]);return Object(i.jsxs)(j,Object.assign({align:"center",background:t,direction:"row",margin:y,width:"fit-content"},C,{children:[Object(i.jsx)(s.a,Object.assign({when:x},{children:Object(i.jsx)(r.a,Object.assign({color:n,margin:{right:"small"},size:"small",weight:"bold"},{children:x}),void 0)}),void 0),Object(i.jsx)(r.a,Object.assign({color:n,margin:l?{right:"xsmall"}:"none",size:a},{children:w}),void 0),l,Object(i.jsx)(s.a,Object.assign({when:p},{children:Object(i.jsx)(d.a,{"data-testid":"tag-remove-icon",fill:b.a[O]||b.a[n],onClick:T,style:S},void 0)}),void 0),Object(i.jsx)(s.a,Object.assign({when:!p&&v},{children:Object(i.jsx)(u.a,{"data-testid":"tag-add-icon",fill:b.a[O]||b.a[n],onClick:I,style:S},void 0)}),void 0)]}),void 0)};O.defaultProps={backgroundColor:"brand",fontColor:"white",fontSize:"small",icon:null,isRemovable:!0,tagMargin:{bottom:"2px"}}},2075:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(16),o=n(0),a=n(2029),r=n(2019),l=n(2024),s=n(187),c=n(25);const d=({contentProps:e,name:t,label:n,pad:d,required:b,errorTextSize:u,errors:j,type:O,inputRef:g,margin:p,style:v,value:h,onChange:m,customInput:f,placeholder:x,icon:E,isAuthFormField:y,textInputStyle:C={},size:w,formData:S={},testId:T,tabIndex:I,maxLength:P})=>{var R;const A={};m&&(A.onChange=e=>m(Object.assign(Object.assign({},S),Object(c.b)(t,e.target.value,{}))));const k=Object.assign({},C||{}),D=Object(o.useMemo)(()=>y?Object(i.jsx)(a.a,Object.assign({color:(null==j?void 0:j.length)?"status-critical":"dark-2",size:w||"14px"},{children:n}),void 0):n,[null==j?void 0:j.length,y,n]);return Object(i.jsx)(r.a,Object.assign({contentProps:e,error:null!==(R=null==j?void 0:j.map((e,t)=>Object(i.jsx)(a.a,Object.assign({color:"status-critical",size:null!=u?u:"small"},{children:e}),t)))&&void 0!==R?R:"",label:D,margin:p,name:t,pad:d,required:b,style:v,type:O},{children:Object(i.jsx)(s.a,Object.assign({fallback:f,when:!f},{children:Object(i.jsx)(l.a,Object.assign({"aria-label":t,className:(null==j?void 0:j.length)&&"has-error","data-testid":T,icon:E,maxLength:P,name:t,placeholder:x,ref:g,size:w,style:Object.assign({border:"none",textOverflow:"ellipsis",maxWidth:"100%"},k),tabIndex:I,type:O,value:h},A),void 0)}),void 0)}),void 0)}},2077:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n(16),o=n(0),a=n(760),r=n(2093),l=n(2023),s=n(244),c=n(2029),d=n(2),b=n(125),u=n(85);const j=Object(d.default)(l.a)`
32  background: ${({bgColor:e})=>e};
33  border-radius: 4px;
34  border: none;
35  height: 24px;
36  width: 100%;
37`,O=({color:e,cancelBtnLabel:t,btnLabel:n,btnLabelColor:a,hideTooltip:r,message:l,onConfirm:d})=>{const O=Object(o.useCallback)(e=>{e.stopPropagation(),r(),d()},[r,d]),g=Object(o.useCallback)(e=>{e.stopPropagation(),r()},[r]);return a=null!=a?a:b.a.white,Object(i.jsxs)(s.a,Object.assign({pad:"xsmall"},{children:[Object(i.jsx)(c.a,Object.assign({color:b.a["dark-2"],margin:{bottom:"small"},size:"small"},{children:l}),void 0),Object(i.jsxs)(s.a,Object.assign({direction:"row",gap:"xsmall"},{children:[t&&Object(i.jsx)(j,{bgColor:Object(u.b)(b.a["dark-1"],.1),borderColor:b.a["dark-1"],"data-testid":"confirm-tooltip-cancel-button",label:Object(i.jsx)(c.a,Object.assign({color:b.a["dark-1"],size:"small"},{children:t}),void 0),onClick:g,size:"small"},void 0),Object(i.jsx)(j,{bgColor:e,"data-testid":"confirm-tooltip-button",label:Object(i.jsx)(c.a,Object.assign({color:a,size:"small"},{children:n}),void 0),onClick:O,size:"small"},void 0)]}),void 0)]}),void 0)},g=({btnLabel:e,btnLabelColor:t,cancelBtnLabel:n,children:l,color:s,message:c,onConfirm:d,onHide:b,position:u,style:j,title:g,titleColor:p,titleBgColor:v,width:h=a.a})=>{const m=Object(o.useMemo)(()=>({hideTooltip:o})=>Object(i.jsx)(O,{btnLabel:e,btnLabelColor:t,cancelBtnLabel:n,color:s,hideTooltip:o,message:c,onConfirm:d},void 0),[s,e,c,d]);return Object(i.jsx)(r.a,Object.assign({Content:m,color:s,onHide:b,position:u,style:j,title:g,titleBgColor:v,titleColor:p,width:h},{children:l}),void 0)}},2080:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
37));var i=n(0);n.n(i);const o=(e,t)=>{Object(i.useEffect)(()=>{const n=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])}},2083:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0);n.n(i);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4h4V0h8v4h7v2h-2v18H3V6H1V4h3zm12 2H5v16h14V6h-3zm-6-2V2h4v2h-4zm4 15V9h2v10h-2zM8 9v10h2V9H8z",fill:"{currentColor}"});function r(e){return i.createElement("svg",o({width:24,height:24},e),a)}},2084:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0);n.n(i);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{d:"M3.482 8a.394.394 0 01-.268-.105.4.4 0 01-.104-.27V4.914H.493a.394.394 0 01-.268-.105.4.4 0 01-.104-.27V3.386c0-.11.035-.2.104-.27.07-.08.159-.12.268-.12H3.11V.375c0-.11.035-.2.104-.27A.394.394 0 013.482 0H4.76a.36.36 0 01.267.105c.08.07.12.16.12.27v2.621h2.587c.109 0 .198.04.267.12.08.07.12.16.12.27v1.153c0 .11-.04.2-.12.27a.36.36 0 01-.267.105H5.147v2.711c0 .11-.04.2-.119.27A.36.36 0 014.761 8H3.48z"});function r(e){return i.createElement("svg",o({viewBox:"0 0 8 8",fill:"none"},e),a)}},2088:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),o=(n.n(i),n(2046));const a=()=>{const e=Object(i.useContext)(o.a),t=Object(i.useMemo)(()=>["xsmall","small"].includes(e),[e]),n=Object(i.useMemo)(()=>["xsmall","small","medium"].includes(e),[e]),a=Object(i.useMemo)(()=>"xsmall"===e,[e]),r=Object(i.useMemo)(()=>["xsmall","small","medium","large"].includes(e),[e]),l=Object(i.useMemo)(()=>t?"column":"row",[t]);return{size:e,isMobile:a,isLarge:r,isSmall:t,isMediumAndBelow:n,direction:l}}},2089:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0),o=(n.n(i),function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{s(i.next(e))}catch(t){a(t)}}function l(e){try{s(i.throw(e))}catch(t){a(t)}}function s(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(r,l)}s((i=i.apply(e,t||[])).next())}))});let a=null;const r=e=>{const{audioRef:t,isLoaded:n,isPaused:r,onClick:l}=e||{},[s,c]=Object(i.useState)(!r);Object(i.useEffect)(()=>{c(!r)},[r]);const d=Object(i.useCallback)(()=>o(void 0,void 0,void 0,(function*(){if(n&&(a&&a.pause(),a={pause:()=>{var e;null===(e=null==t?void 0:t.current)||void 0===e||e.pause(),c(!0),a=null,l&&l(!0)}},null==t?void 0:t.current)){const e=!s;c(e),e?(t.current.pause(),t.current.currentTime=0):yield t.current.play()}l&&l(s)})),[t,s,n,l]),b=Object(i.useCallback)(()=>{a&&a.pause()},[]);return{isPaused:s,onClick:d,setIsPaused:c,stopCurrentAudio:b}}},2091:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0);n.n(i);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.742 5.587a2 2 0 00-2.829 0L6.46 13.04l-.183.184-.072.249-1.166 4.08-.494 1.731 1.73-.494 4.081-1.166.25-.072.183-.183 7.454-7.454a2 2 0 000-2.829l-1.5-1.5zM15.327 7l1.501 1.5-1.626 1.627-1.5-1.5L15.326 7zm-3.04 3.04l-4.23 4.231-.601 2.101 2.1-.6 4.232-4.231-1.501-1.5z",fill:"{currentColor}"});function r(e){return i.createElement("svg",o({width:24,height:24,fill:"none"},e),a)}},2093:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n(16),o=n(0),a=n(754),r=n(125),l=n(760),s=n(1846),c=n(244);const d=({children:e,getTriggerProps:t,style:n,triggerRef:o})=>Object(i.jsx)(c.a,Object.assign({},t({ref:o}),{style:n},{children:e}),void 0);var b=n(2029),u=n(187),j=n(85);const O=e=>e.stopPropagation(),g=({color:e=r.a.brand,content:t,getTooltipProps:n,getArrowProps:o,tooltipRef:a,arrowRef:l,placement:s,title:d,titleColor:g,titleBgColor:p,width:v})=>{g=null!=g?g:e,p=null!=p?p:Object(j.b)(e,.1);const h=o({ref:l,"data-placement":s,className:"tooltip-arrow"}),{style:m}=h,f=Object.assign(Object.assign({},m),{left:"left"in m?m.left+"px":"auto"});return Object(i.jsx)("div",Object.assign({onClick:O},{children:Object(i.jsxs)(c.a,Object.assign({pad:"none"},n({ref:a,className:"tooltip-container"}),{children:[Object(i.jsx)(c.a,Object.assign({},h,{style:f}),void 0),Object(i.jsxs)(c.a,Object.assign({width:v},{children:[Object(i.jsx)(u.a,Object.assign({when:d},{children:Object(i.jsx)(c.a,Object.assign({background:p,pad:"xsmall"},{children:Object(i.jsx)(b.a,Object.assign({color:g,size:"small"},{children:d}),void 0)}),void 0)}),void 0),t]}),void 0)]}),void 0)}),void 0)};n(2063);const p=e=>{var{children:t,color:n=r.a["dark-1"],Content:c,onHide:b,position:u=a.j.TOP,titleColor:j,titleBgColor:O,style:p,title:v,width:h=l.b}=e,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["children","color","Content","onHide","position","titleColor","titleBgColor","style","title","width"]);const[f,x]=Object(o.useState)(!1),E=Object(o.useCallback)(()=>{x(!1),b&&b()},[b]),y=Object(o.useCallback)(e=>{x(e),!e&&b&&b()},[b]),C=Object(o.useMemo)(()=>
37({getTriggerProps:e,triggerRef:n})=>Object(i.jsx)(d,Object.assign({getTriggerProps:e,style:p,triggerRef:n},{children:t}),void 0),[t,p]),w=Object(o.useMemo)(()=>Object(i.jsx)(c,Object.assign({hideTooltip:E},m),void 0),[c,E,m]),S=Object(o.useMemo)(()=>({getTooltipProps:e,getArrowProps:t,tooltipRef:o,arrowRef:a,placement:r})=>Object(i.jsx)(g,{arrowRef:a,color:n,content:w,getArrowProps:t,getTooltipProps:e,placement:r,title:v,titleBgColor:O,titleColor:j,tooltipRef:o,width:h},void 0),[n,v,O,j,w,h]);return Object(i.jsx)(s.a,Object.assign({onVisibilityChange:y,placement:u,tooltip:S,tooltipShown:f,trigger:"click"},{children:C}),void 0)}},2094:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var i=n(125),o=n(754),a=n(58);const r="tooltip-container",l={btnLabel:Object(a.a)("DELETE"),color:i.a["primary-3"],cancelBtnLabel:Object(a.a)("CANCEL"),message:Object(a.a)("REMOVE_BUTTON_POPUP_MESSAGE"),position:o.j.TOP,title:Object(a.a)("REMOVE_BUTTON_POPUP_TITLE")}},2095:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n(16),o=n(0),a=n(2023),r=n(2),l=n(187),s=n(125),c=n(754),d=n(2089);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var u=o.createElement("path",{d:"M10 5L0 10V0l10 5z",fill:"#DADADA"});function j(e){return o.createElement("svg",b({viewBox:"0 0 10 10",fill:"none"},e),u)}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var g=o.createElement("path",{stroke:"#064773",strokeWidth:2,d:"M0 0h4v10H0zM6 0h4v10H6z"});function p(e){return o.createElement("svg",O({viewBox:"0 0 10 10",fill:"none"},e),g)}const v="light-4",h=Object(r.default)(a.a)`
38  align-items: center;
39  border: 3px solid ${({isPaused:e,activeColor:t,iconColor:n})=>s.a[e?null!=n?n:v:t]};
40  border-radius: 100%;
41  cursor: ${({showPointer:e})=>e?"pointer":"auto"};
42  display: flex;
43  height: ${({buttonSize:e})=>e};
44  justify-content: center;
45  min-width: ${({buttonSize:e})=>e};
46  position: relative;
47  opacity: ${({isPaused:e})=>e?"0.7":"1"};
48  width: ${({buttonSize:e})=>e};
49
50  .icon-wrapper {
51    left: ${({isPaused:e,iconWrapperStyle:t})=>{var n;return e?null!==(n=null==t?void 0:t.left)&&void 0!==n?n:"1px":"0"}};
52    position: relative;
53    width: ${({iconWrapperStyle:e})=>{var t;return null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"34%"}};
54
55    path {
56      fill: ${({activeColor:e,isPaused:t,iconColor:n})=>s.a[t?null!=n?n:v:null!=e?e:"dark-4"]};
57      stroke: none;
58    }
59  }
60`,m=Object(r.default)("audio")`
61  position: absolute;
62  visibility: hidden;
63`,f=({activeColor:e="primary-2","data-testid":t,onClick:n=c.c,paused:a,iconColor:r,iconWrapperStyle:s,showPointer:b,size:u="28px",src:O,style:g})=>{const[v,f]=Object(o.useState)(!!O);Object(o.useEffect)(()=>{f(!!O)},[O]);const x=Object(o.useRef)(null),{isPaused:E,onClick:y,setIsPaused:C}=Object(d.a)({audioRef:x,isLoaded:v,isPaused:a,onClick:n}),w=Object(o.useMemo)(()=>E?j:p,[E]),S=Object(o.useCallback)(()=>C(!0),[C]),T=Object(o.useCallback)(()=>f(!0),[]),I=b||Boolean(O);return Object(i.jsxs)(h,Object.assign({activeColor:e,buttonSize:u,"data-testid":t||"player-icon",disabled:!I,iconColor:r,iconWrapperStyle:s,isPaused:E,onClick:y,showPointer:I,style:g},{children:[Object(i.jsx)(w,{className:"icon-wrapper",fill:"white"},void 0),Object(i.jsx)(l.a,Object.assign({when:O},{children:Object(i.jsx)(m,{controls:!0,onEnded:S,onLoadedData:T,ref:x,src:O},void 0)}),void 0)]}),void 0)}},2098:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(16),o=(n.n(i),n(0)),a=(n.n(o),n(187)),r=n(2083),l=n(125),s=n(2077);const c={cursor:"pointer"},d=({onConfirm:e,tooltipProps:t})=>{const n=Object(o.useMemo)(()=>Object(i.jsx)(r.a,{"data-testid":"remove-button-icon",fill:l.a["primary-3"],onClick:t?null:e,style:c},void 0),[e]);return Object(i.jsx)(a.a,Object.assign({fallback:n,when:t},{children:Object(i.jsx)(s.a,Object.assign({color:l.a["primary-3"],onConfirm:e},t,{children:n}),void 0)}),void 0)}},2103:function(e,t,n){"use strict";n.d(t,"a",(function(){return ce}));var i=n(16),o=n(1999),a=n(2e3),r=n(2001),l=n(1998),s=n(2049),c=n(2029),d=n(244),b=n(0),u=n(754);function j({isPublic:e,cb:t,id:n,rows:i}){const[o,a]=Object(b.useState)(e);Object(b.useEffect)(()=>{a(e)},[e]),Object(b.useEffect)(()=>{(null==i?void 0:i.length)&&a(i.every(e=>e.isPublic))},[i]);const r=Object(b.useCallback)(()=>{const e=!o;a(e),t&&t(e,n)},[o,t,n]);return{visibility:o,toggleVisibility:r}}var O=n(2080),g=n(2070),p=n(2088),v=n(125),h=n(2037),m=n(764);const f=(e,t,n)=>{if(!(t=(null==t?void 0:t[n])||(null==t?void 0:t.name)||t)||Object(m.isObject)(t))return null;return Object(i.jsxs)(h.a,Object.assign({columns:["60px","auto"],pad:{vertical:"small"}},{children:[Object(i.jsx)(c.a,Object.assign({color:v.a["brand-opacity-50"],size:"small",textAlign:"end"},{children:e}),void 0),Object(i.jsx)(c.a,Object.assign({color:v.a["dark-1"],margin:{left:"small"},size:"small",textAlign:"start"},{children:t}),void 0)]}),void 0)};function x({title:e,rows:t,columns:n}){return Object(i.jsxs)(d.a,Object.assign({pad:{top:"medium"}},{children:[Object(i.jsx)(d.a,{children:Object(i.jsx)(c.a,Object.assign({color:v.a.brand,size:"medium"},{children:e}),void 0)},void 0),Object(i.jsx)(d.a,{children:t.map(e=>Object(i.jsx)(d.a,Object.assign({border:{size:"1px",color:v.a["light-4"],side:"bottom"},pad:{vertical:"small"}},{children:n.map(t=>{const{primary:n,secondary:o,header:a,mobileHeader:r,secondaryHeader:l,primaryValueKey:s,secondaryValueKey:c}=t,d=null!=r?r:a;return Object(i.jsxs)(b.Fragment,{children:[f(d,e[n],s),o?f(l,t.formatSecondary(e),c):null]},n)})}),e.id))},void 0)]}),void 0)}var E=n(187),y=n(2),C=n(1845),w=n(2048),S=n(2069),T=n(2098);function I({addBtnStatus:e,buttons:t,toggleVisibility:n,datum:o,hasButtons:a,isPublic:r,primaryRowIdx:l,visibility:c,cIdx:u,isDraggingOver:j,isDragging:O,onRemove:p,removeBtnTooltipProps:h,verticalAlign:m="top"}){var f;const x=Object(b.useMemo)(()=>null==t?void 0:t.map(({buttonLabel:e,buttonIcon:t,buttonLabelColor:n,buttonBgColor:o,onClick:a},r)=>Object(i.jsx)(S.a,{color:o,icon:t,iconColor:v.a[n],label:e,labelProps:{color:n},onClick:a},r)),[t,u,l]),y=Object(b.useMemo)(()=>void 0!==(null==o?void 0:o.enabled),[o]),C=(null==x?void 0:x.length)>1?"54px":"fit-content",w=Object(b.useMemo)(()=>n?Object(i.jsx)(g.a,{isPublic:r,isVisible:c,onClick:n,pad:"4px 0",tabIndex:parseInt(`${l}${u+1}`,10)},void 0):null,[r,c,n]),I=Object(b.useMemo)(()=>p?Object(i.jsx)(T.a,{onConfirm:p,tooltipProps:h},void 0):null,[p,h]),P=Object(b.useMemo)(()=>{var t;switch(e){case"demo":return{vertical:"16px"};default:return null!==(t=o.cellPadding)&&void 0!==t?t:"small"}},[e]);return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)(E.a,Object.assign({when:(null==t?void 0:t.length)&&(!y||o.enabled)},{children:Object(i.jsx)(s.a,Object.assign({color:"light-4",pad:P,plain:!0,style:{height:C,display:"flex",flexDirection:"column",justifyContent:"space-between",textAlign:"end",visibility:j||O?"hidden":"unset"},verticalAlign:m},{children:x}),void 0)}),void 0),Object(i.jsx)(E.a,Object.assign({when:a},{children:Object(i.jsx)(s.a,Object.assign({pad:null!==(f=o.cellPadding)&&void 0!==f?f:{horizontal:"xsmall",vertical:"small"},verticalAlign:m},{children:Object(i.jsx)(E.a,Object.assign({when:!o.isAdd},{children:Object(i.jsxs)(d.a,Object.assign({align:"center",direction:"row",gap:"small"},{children:[w,I]}),void 0)}),void 0)}),void 0)}),void 0)]},void 0)}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var R=b.createElement("path",{d:"M8 8l4-4m0 0l4 4m-4-4v6M16 16l-4 4m0 0l-4-4m4 4v-6M5 10h14v4H5z",stroke:"#999",strokeWidth:2});function A(e){return b.createElement("svg",P({width:24,height:24,fill:"none"},e),R)}var k=n(39);function D({formatFn:e,fieldKey:t,lookupObj:n,valueKey:i,fallbackKey:o}){var a;let r=e?e(n):n[t];return r instanceof Object&&(r=null!==(a=r[null!=i?i:"name"])&&void 0!==a?a:r[o]),null!=r?r:""}var N=n(2066),L=n(2075),_=n(2045),B=n(2025),M=n(1843);function z(e){var{dropdowns:t,editIcon:n,fieldKey:o,placeholder:a,rowDataInEdit:r,setRowDataInEdit:l,errors:s,valueKey:c,onKeyDown:u,showMargin:j,maxLength:O,selectValuesAreStr
63ings:g}=e,p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["dropdowns","editIcon","fieldKey","placeholder","rowDataInEdit","setRowDataInEdit","errors","valueKey","onKeyDown","showMargin","maxLength","selectValuesAreStrings"]);const h=Object(b.useMemo)(()=>!!(null==t?void 0:t[o]),[t,o]),m=Object(b.useCallback)(({option:e})=>{l(Object.assign(Object.assign({},r),{[o]:e}))},[o,r,l]),f=Object(b.useMemo)(()=>D({fieldKey:o,lookupObj:r,valueKey:c}),[o,r,c]),x=Object(b.useMemo)(()=>{var e;return null!==(e=null==t?void 0:t[o])&&void 0!==e?e:[]},[t,o]),{onSearch:y,options:C,onDropdownClose:w}=Object(N.c)({defaultOptions:x}),S=Object(b.useMemo)(()=>Object(i.jsx)(L.a,Object.assign({},p,{errorTextSize:"xsmall",errors:null==s?void 0:s[o],formData:r,icon:n,maxLength:O,name:o,onChange:l,onKeyDown:u,placeholder:a,size:"small",testId:"custom-text-input",value:f}),void 0),[n,s,o,u,a,p,r,l,f,O]),T=Object(b.useMemo)(()=>g&&r[o]?C.find(e=>String(e.name)===String(r[o])):r[o]||{},[g,r,o,C]);return Object(i.jsx)(E.a,Object.assign({when:o},{children:Object(i.jsx)(_.a,Object.assign({onKeyDown:h?void 0:u},{children:Object(i.jsx)(d.a,Object.assign({margin:j?{top:"small"}:"none"},{children:Object(i.jsx)(M.ThemeContext.Extend,Object.assign({value:v.k},{children:Object(i.jsx)(E.a,Object.assign({fallback:S,when:h},{children:Object(i.jsx)(L.a,{customInput:Object(i.jsx)(B.a,{"data-testid":"custom-select-input",labelKey:"name",onChange:m,onClose:w,onSearch:y,options:C,placeholder:a,size:"small",value:T,valueKey:"id"},void 0),name:o},void 0)}),void 0)}),void 0)}),void 0)}),void 0)}),void 0)}const V=Object(y.default)(c.a)`
64  margin-right: 5px;
65  align-items: center;
66  display: flex;
67  text-transform: capitalize;
68  ${({isClickable:e})=>e?"cursor: pointer;":""}
69`,U=Object(y.default)(d.a)`
70  position: absolute;
71  left: -30px;
72  top: 50%;
73  transform: translateY(-50%);;
74`,H=Object(y.default)(d.a)`
75  position: relative;
76`;function K({column:e,isPublic:t,datum:n,hasErrors:o,rowDataInEdit:a,setRowDataInEdit:r,showErrors:l,setShowErrors:c,rowStatus:d,visibility:j,cIdx:O,placeholders:g,isDraggingOver:p,isDragging:h,isDragDisabled:m,dropdowns:f,errors:x,extra:y,onCellClick:C,onKeyDown:w,selectValuesAreStrings:S}){var T,I,P;const{textInputDisabled:R,primaryInputSize:N,secondaryInputSize:L,inputStyle:_}=d,B=Object(b.useMemo)(()=>t&&!e.hideInPublic&&j||!t,[t,j,e.hideInPublic]),M=Object(b.useMemo)(()=>!m&&!t&&1===O&&!n.isAdd&&(!p||h),[t,O,n,h,p,m]),K=Object(b.useMemo)(()=>"displaying"!==d.status,[d]),G=Object(b.useMemo)(()=>v.a[j?"dark-1":"dark-3"],[j]),$=Object(b.useCallback)(()=>{e.clickable&&C&&C({column:e,data:n})},[e,n,C]),F=Object(b.useMemo)(()=>{const t=D({fieldKey:e.primary,lookupObj:a,valueKey:e.primaryValueKey,fallbackKey:e.secondaryValueKey}),n=D({fieldKey:e.secondary,lookupObj:a,valueKey:e.secondaryValueKey});return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(V,Object.assign({color:G,isClickable:Boolean(e.clickable&&C),onClick:$,size:N},{children:[e.primaryPrefix,t]}),void 0),Object(i.jsx)(E.a,Object.assign({when:e.secondary&&n},{children:Object(i.jsx)(V,Object.assign({color:v.a["dark-4"],margin:{top:"xsmall"},size:L},{children:n}),void 0)}),void 0)]},void 0)},[$,G,N,a,e,L]),Y=((e,t)=>Object(b.useCallback)((n,i)=>t!==u.d.DISPLAYING&&e?D({formatFn:n["format"+Object(k.titleCase)(i)],fieldKey:n[i],lookupObj:e,valueKey:n[i+"ValueKey"]}):"",[e,t]))(g,status),W=e.CustomCellComponent,X=Object(b.useMemo)(()=>!("undefined"!=typeof(null==n?void 0:n.enabled)&&!(null==n?void 0:n.enabled))&&j,[null==n?void 0:n.enabled,j]),q=Object(b.useMemo)(()=>W?Object(i.jsx)(W,{datum:n,extra:y,hasErrors:o,isPublic:t,onKeyDown:w,renderCustomTexts:F,rowDataInEdit:a,rowStatus:d,setRowDataInEdit:r,setShowErrors:c,showErrors:l,visibility:X},void 0):null,[W,n,y,o,t,F,a,w,d,r,c,l,j]),J=Object(b.useMemo)(()=>Object.assign(Object.assign({display:"block"},_),e.textInputStyle||{}),[e.textInputStyle,_]),Q=K&&!W?"top":"middle";return Object(i.jsx)(E.a,Object.assign({when:B},{children:Object(i.jsx)(s.a,Object.assign({pad:"none",plain:!0,verticalAlign:null!==(T=e.verticalAlign)&&void 0!==T?T:Q,width:""+(null!==(I=null==e?void 0:e.width)&&void 0!==I?I:"33%")},{children:Object(i.jsxs)(H,Object.assign({pad:null!==(P=n.cellPadding)&&void 0!==P?P:{vertical:"small",horizontal:"xsmall"}},{children:[Object(i.jsx)(E.a,Object.assign({when:M},{children:Object(i.jsx)(U,{children:Object(i.jsx)(A,{},void 0)},void 0)}),void 0),Object(i.jsx)(E.a,Object.assign({fallback:q,when:!W},{children:Object(i.jsxs)(E.a,Object.assign({fallback:F,when:K},{children:[Object(i.jsx)(E.a,Object.assign({when:!n.hidePrimary},{children:Object(i.jsx)(z,{color:G,disabled:R,dropdowns:f,editIcon:null==e?void 0:e.editIcon,errors:x,fieldKey:e.primary,maxLength:null==e?void 0:e.maxLength,onKeyDown:w,placeholder:Y(e,"primary"),plain:!0,rowDataInEdit:a,selectValuesAreStr
76ings:S,setRowDataInEdit:r,size:N,textInputStyle:J,valueKey:e.primaryValueKey},void 0)}),void 0),Object(i.jsx)(E.a,Object.assign({when:e.secondary&&!n.hideSecondary},{children:Object(i.jsx)(z,{color:v.a["dark-4"],disabled:R,dropdowns:f,errors:x,fieldKey:e.secondary,maxLength:null==e?void 0:e.maxLength,onKeyDown:w,placeholder:Y(e,"secondary"),rowDataInEdit:a,selectValuesAreStrings:S,setRowDataInEdit:r,showMargin:!n.hideMargin,size:L,textInputStyle:J,valueKey:e.secondaryValueKey},void 0)}),void 0)]}),void 0)}),void 0)]}),void 0)}),void 0)}),void 0)}function G(e){var{addBtnStatus:t,column:n,isPublic:o,datum:a,hasButtons:r,rowDataInEdit:l,setRowDataInEdit:s,rowStatus:c,visibility:d,toggleVisibility:j,cIdx:O,rIdx:g,tableIndex:p,placeholders:v,resetRowDataInEdit:h,isDraggingOver:m,isDragging:f,onRemove:x,removeBtnTooltipProps:y}=e,C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["addBtnStatus","column","isPublic","datum","hasButtons","rowDataInEdit","setRowDataInEdit","rowStatus","visibility","toggleVisibility","cIdx","rIdx","tableIndex","placeholders","resetRowDataInEdit","isDraggingOver","isDragging","onRemove","removeBtnTooltipProps"]);const w=Object(b.useMemo)(()=>n.hideInPublic&&!o,[n.hideInPublic,o]),S=Object(b.useMemo)(()=>Number(`${p}${2*g+1}`),[p,g]);Object(b.useEffect)(()=>{h()},[g]);const T=Object(b.useCallback)(e=>{var t,n;e.keyCode===u.e.ENTER&&(e.preventDefault(),e.stopPropagation(),null===(n=null===(t=null==c?void 0:c.buttons)||void 0===t?void 0:t[0])||void 0===n||n.onClick())},[c]),P=Object(b.useMemo)(()=>Object(i.jsx)(I,{addBtnStatus:t,buttons:c.buttons,cIdx:O,datum:a,hasButtons:r,isDragging:f,isDraggingOver:m,isPublic:o,onRemove:x,primaryRowIdx:S,removeBtnTooltipProps:y,toggleVisibility:j,verticalAlign:n.verticalAlign,visibility:d},void 0),[O,n.verticalAlign,a,r,f,m,o,S,y,c,d]);return Object(i.jsx)(E.a,Object.assign({fallback:P,when:!w},{children:Object(i.jsx)(K,Object.assign({},C,{cIdx:O,column:n,datum:a,isDragging:f,isDraggingOver:m,isPublic:o,onKeyDown:T,placeholders:v,rIdx:g,rowDataInEdit:l,rowStatus:c,setRowDataInEdit:s,tableIndex:p,visibility:d}),void 0)}),void 0)}var $=n(85),F=n(2091);const{DISPLAYING:Y,ADDING:W,EDITING:X}=u.d;function q({addBtnLabel:e,columns:t,editBtnLabel:n,detailsBtnLabel:o,isPublic:a,noEditButtons:r,onAdd:l,onRemove:s,onUpdate:c,onDetailsButtonClick:d,onEditButtonClick:j,saveBtnLabel:O,datum:g,isDraggingOver:p,isResetting:h,reset:m,validate:f}){const{DISPLAYING:x,ADDING:E,EDITING:y}=u.d,[C,w]=Object(b.useState)(g.isAdd&&!a?E:x),S=Object(b.useMemo)(()=>g.isAdd&&!a||!o,[o,g.isAdd,a]),[T]=Object(b.useState)(function({datum:e,columns:t}){return null==t?void 0:t.reduce((t,{hideInPublic:n,primary:i,secondary:o,formatPrimary:a,formatSecondary:r})=>{var l,s;return!n&&!e.isAdd&&(t[i]=a?a(e):null!==(l=null==e?void 0:e[i])&&void 0!==l?l:"",o&&(t[o]=r?r(e):null!==(s=null==e?void 0:e[o])&&void 0!==s?s:"")),e.isAdd&&(t[i]="",o&&(t[o]="")),t},{})}({datum:g,columns:t})),[I,P]=Object(b.useState)(T),[R,A]=Object(b.useState)(!1),[k,D]=Object(b.useState)({values:{},hasErrors:!1,errors:{}});Object(b.useEffect)(()=>{a?w(x):g.isAdd&&w(E)},[]),Object(b.useEffect)(()=>{p&&C===y&&w(x)},[p,C]);const N=Object(b.useCallback)(()=>{C===E?P(T):C===y&&P(g),D(null)},[g,C]);Object(b.useEffect)(()=>{h&&(N(),m())},[h,N]);const L=Object(b.useCallback)(e=>{if(f){const t=f(e,g),n=t.hasErrors;return n&&(D(t),A(!0)),!n}return!0},[g]),_=Object(b.useCallback)(()=>{const e={data:I,row:g,id:g.id};L(I)&&(w(x),A(!1),c&&c(e))},[I,g]),B=Object(b.useCallback)(()=>{w(x),s&&s({data:I,row:g,id:g.id})},[I,g]),M=Object(b.useCallback)(()=>{if(l){const e={data:I,row:g};L(I)&&(A(!1),l(e),N())}},[I,g]),z=Object(b.useCallback)(()=>{d&&d(g)},[g]),V=Object(b.useCallback)(()=>{w(y),j(g)},[y,j,g]),U=Object(b.useMemo)(()=>({addBtnLabel:e,editBtnLabel:n,saveBtnLabel:O,detailsBtnLabel:o}),[e,n,O,o]),H=Object(b.useMemo)(()=>({onCreateNew:M,onEditButtonClick:V,onSave:_,onDetailsButtonClick:z}),[M,V,_]),K=Object(b.useMemo)(()=>{const e=((e,t)=>({[Y]:{textInputDisabled:!0,primaryInputSize:"small",secondaryInputSize:"xsmall",inputStyle:{border:"1px solid transparent"},buttons:[{buttonLabelMapper:"editBtnLabel",buttonBgColor:Object($.b)(v.a.brand,.1),buttonIcon:Object(i.jsx)(F.a,{},void 0),buttonLabelColor:"brand",onClickMapper:"onEditButtonClick"},!e&&{buttonLabelMapper:"detailsBtnLabel",buttonBgColor:v.a.brand,buttonLabelColor:"white",onClickMapper:"onDetailsButtonClick"}
76].filter(Boolean)},[X]:{textInputDisabled:!1,primaryInputSize:"small",secondaryInputSize:"small",inputStyle:{border:"1px solid "+Object($.b)(v.a["brand-tint-2"],.3)},buttons:[{buttonLabelMapper:"saveBtnLabel",buttonBgColor:v.a.brand,buttonLabelColor:"white",onClickMapper:"onSave"}]},[W]:{textInputDisabled:!1,primaryInputSize:"small",secondaryInputSize:"small",inputStyle:{border:"1px solid "+Object($.b)(v.a["brand-tint-2"],.3)},buttons:[!t&&{buttonLabelMapper:"addBtnLabel",buttonBgColor:v.a["primary-2"],buttonLabelColor:"dark-1",onClickMapper:"onCreateNew"},!e&&{buttonLabelMapper:"detailsBtnLabel",buttonBgColor:v.a.brand,buttonLabelColor:"white",onClickMapper:"onDetailsButtonClick"}].filter(Boolean)}}))(S||g.hideDetailsButton,g.hideAddButton)[C],t=r?null:e.buttons.filter(({onClickMapper:e})=>H[e]).map(e=>{var{buttonLabelMapper:t,onClickMapper:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["buttonLabelMapper","onClickMapper"]);return Object.assign({buttonLabel:U[t],onClick:H[n]},i)});return Object.assign(Object.assign({},e),{buttons:t,status:C})},[U,g,H,S,r,C]),G=Object(b.useCallback)(e=>{P(e),f&&D(f(e,g)),[E,y].includes(C)||w(y)},[g,C]);return Object.assign({onRemoveButtonClick:B,setRowData:G,setShowErrors:A,setValidation:D,showErrors:R,resetRowDataInEdit:N,rowDataInEdit:I,validation:k},K)}var J=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const Q=y.default.tr`
77  border-bottom: ${e=>"1px solid "+e.color};
78`;function Z(e){var{datum:t,columns:n,isPublic:o,editBtnLabel:a,saveBtnLabel:r,addBtnLabel:l,detailsBtnLabel:s,onVisibilityToggle:c,onUpdate:d,onAdd:u,onRemove:O,onDetailsButtonClick:g,rIdx:p,size:h,tableIndex:m,placeholders:f,draggableProps:x={},isDragging:E=!1,isDraggingOver:y,isResetting:C,reset:w,validate:S,removeBtnTooltipProps:T,noEditButtons:I,onEditButtonClick:P}=e,R=J(e,["datum","columns","isPublic","editBtnLabel","saveBtnLabel","addBtnLabel","detailsBtnLabel","onVisibilityToggle","onUpdate","onAdd","onRemove","onDetailsButtonClick","rIdx","size","tableIndex","placeholders","draggableProps","isDragging","isDraggingOver","isResetting","reset","validate","removeBtnTooltipProps","noEditButtons","onEditButtonClick"]);const{visibility:A,toggleVisibility:k}=j({isPublic:(null==t?void 0:t.isPublic)||!1,cb:c,id:null==t?void 0:t.id}),D=q({datum:t,columns:n,addBtnLabel:l,editBtnLabel:a,detailsBtnLabel:s,isPublic:o,isDraggingOver:y,isResetting:C,noEditButtons:I,onAdd:u,onRemove:O,onUpdate:d,onDetailsButtonClick:g,onEditButtonClick:P,saveBtnLabel:r,reset:w,validate:S}),{rowDataInEdit:N,setRowData:L,showErrors:_,resetRowDataInEdit:B,setShowErrors:M,validation:z}=D,V=J(D,["rowDataInEdit","setRowData","showErrors","resetRowDataInEdit","setShowErrors","validation"]),U=Object.assign(Object.assign({},null==x?void 0:x.style),{background:E?v.a["light-4"]:"",display:E?"flex":"table-row",visibility:y&&t.isAdd?"hidden":"unset"});return t.hideRowBorder&&(U.borderBottom="none"),Object(i.jsx)(Q,Object.assign({color:v.a["light-4"]},x,{style:U},{children:null==n?void 0:n.map((e,n)=>Object(b.createElement)(G,Object.assign({},R,{cIdx:n+1,column:e,datum:t,errors:_?null==z?void 0:z.errors:{},isDragging:E,isDraggingOver:y,isPublic:o,key:null==e?void 0:e.id,onRemove:O&&V.onRemoveButtonClick,placeholders:f,rIdx:t.isAdd?h:p,removeBtnTooltipProps:T,resetRowDataInEdit:B,rowDataInEdit:N,rowStatus:V,setRowDataInEdit:L,setShowErrors:M,showErrors:_,tableIndex:m,toggleVisibility:c?k:null,visibility:!c||A})))}),void 0)}function ee(e){const t=Object(b.useMemo)(()=>function(e){return(t,n)=>Object(i.jsx)(Z,Object.assign({},e,{draggableProps:Object.assign(Object.assign({ref:t.innerRef},t.draggableProps),t.dragHandleProps),isDragging:n.isDragging}),void 0)}(e),[e]);return Object(i.jsx)(C.b,Object.assign({draggableId:""+e.datum.id,index:e.rIdx,isDragDisabled:e.isDragDisabled},{children:t}),void 0)}const te=e=>Object(i.jsx)(l.a,{children:Object(i.jsx)(s.a,{children:e},void 0)},void 0);function ne(e){var{rows:t,infiniteScrollProps:n,isDragDisabled:o}=e,a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["rows","infiniteScrollProps","isDragDisabled"]);const r=Object(b.useCallback)((e,t)=>{var n;return Object(i.jsx)(E.a,Object.assign({when:e},{children:Object(i.jsx)(E.a,Object.assign({fallback:Object(i.jsx)(Z,Object.assign({},a,{datum:e,isDragDisabled:o,rIdx:t}),void 0),when:!o},{children:Object(i.jsx)(ee,Object.assign({},a,{datum:e,rIdx:t}),void 0)}),void 0)}),null!==(n=e.id)&&void 0!==n?n:t)},[a,o]),l=Object(b.useMemo)(()=>
78{if(!n)return Object(i.jsx)(i.Fragment,{children:t.map(r)},void 0)},[t,n,r]);return Object(i.jsx)(E.a,Object.assign({fallback:l,when:n},{children:Object(i.jsx)(w.a,Object.assign({items:t,renderMarker:te},n,{children:r}),void 0)}),void 0)}const ie=Object(y.default)(l.a)`
79  th {
80   ${({borders:e})=>e.map(({color:e,side:t})=>`\n      border-${t}: 2px solid ${e};\n   `)}
81  }
82`;function oe({columns:e,hasButtons:t,isPublic:n,headerCellBorder:o,headerCellTextColor:a}){return Object(i.jsxs)(ie,Object.assign({borders:o||[{color:v.a["light-4"],side:"bottom"}]},{children:[null==e?void 0:e.map(e=>Object(i.jsx)(E.a,Object.assign({when:!(n&&e.hideInPublic)&&!(null==e?void 0:e.hideHeaderCell)},{children:Object(i.jsx)(s.a,Object.assign({"data-testid":"table-header-cell",hidden:n&&e.hideInPublic,pad:"xsmall",scope:"col"},{children:Object(i.jsxs)(d.a,Object.assign({direction:"row",justify:e.justify||"start"},{children:[Object(i.jsx)(E.a,Object.assign({when:e.headerPrefix},{children:e.headerPrefix}),void 0),Object(i.jsx)(c.a,Object.assign({color:a||"brand-tint-2",size:"small"},{children:e.header}),void 0)]}),void 0)}),void 0)}),e.id)),Object(i.jsx)(E.a,Object.assign({when:t},{children:Object(i.jsx)(s.a,{"data-testid":"table-header-cell",scope:"col"},void 0)}),void 0)]}),void 0)}var ae=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const re=y.default.table`
83  border-collapse: collapse;
84  border-spacing: 0px;
85`,le={color:"transparent",size:"0px"};const se=Object(b.memo)((function({addBtnLabel:e,addBtnStatus:t,addRows:n=[],addRowsOnTop:p,columns:v=[],containerProps:h,dropdowns:m,detailsBtnLabel:f,editBtnLabel:x,extra:y,hasFooter:w=!1,headerCellBorder:S,headerCellTextColor:T,hideVisibilityToggle:
85I=!1,infiniteScrollProps:P,isPublic:R=!1,noEditButtons:A,noHeader:k,noResetting:D,onAdd:N,onBulkVisibilityToggle:L,onCellClick:_,onDetailsButtonClick:B=u.c,onEditButtonClick:M=u.c,onRemove:z,onReorder:V,onUpdate:U,onVisibilityToggle:H,placeholders:K,removeBtnTooltipProps:G,rows:$=[],saveBtnLabel:F,tableIndex:Y=1,title:W,validate:X,selectValuesAreStrings:q=!1}){const{visibility:J,toggleVisibility:Q}=j({isPublic:!1,cb:L,rows:$}),Z=Object(b.useRef)(null),ee=Object(b.useRef)(!1),te=Object(b.useRef)(!1),ie=Object(b.useRef)(!1),se=Object(b.useCallback)(()=>{ee.current||(ee.current=!0),ee.current&&(ie.current=!0)},[]),ce=Object(b.useCallback)(()=>{ee.current&&te.current&&(te.current=!1),ie.current=!1},[]),{isResetting:de,reset:be,onClickOutsideHandler:ue}=(({isTableActive:e,isEditingActive:t,noResetting:n})=>{const[i,o]=Object(b.useState)(!1),a=Object(b.useCallback)(()=>{i&&o(!1)},[i]),r=Object(b.useCallback)(()=>{!n&&!i&&e.current&&!t.current&&(o(!0),e.current=!1)},[i,e]);return{isResetting:i,reset:a,onClickOutsideHandler:r}})({isTableActive:ee,isEditingActive:ie,noResetting:D}),je=Object(b.useCallback)(e=>{V(e),te.current||(te.current=!0)},[]);Object(O.a)(Z,ue);const Oe=Object(b.useMemo)(()=>!V||R,[]),ge=Object(b.useMemo)(()=>(e=>{var{addRows:t,addRowsOnTop:n,columns:d,headerCellBorder:u,headerCellTextColor:j,hideVisibilityToggle:O,isDragDisabled:g,isPublic:p,isResetting:v,noHeader:h,onVisibilityToggle:m,rows:f,hasFooter:x}=e,y=ae(e,["addRows","addRowsOnTop","columns","headerCellBorder","headerCellTextColor","hideVisibilityToggle","isDragDisabled","isPublic","isResetting","noHeader","onVisibilityToggle","rows","hasFooter"]);return(e,{isDraggingOver:C})=>{const w=y.onRemove||(m||f.some(({isAdd:e})=>!e))&&!y.noEditButtons,S=Object(b.useMemo)(()=>Object(i.jsx)(E.a,Object.assign({when:(null==t?void 0:t.length)&&!p},{children:Object(i.jsx)(ne,Object.assign({},y,{columns:d,hasButtons:w,hideVisibilityToggle:O,isDragDisabled:!0,isDraggingOver:!1,isPublic:p,isResetting:v,onVisibilityToggle:m,rows:t,size:(null==f?void 0:f.length)||0}),void 0)}),void 0),[w,t,d,y.dropdowns]),T=Object(b.useMemo)(()=>Object(i.jsx)(ne,Object.assign({},y,{columns:d,hasButtons:w,hideVisibilityToggle:O,isDragDisabled:g,isDraggingOver:C,isPublic:p,isResetting:v,onVisibilityToggle:m,rows:f}),void 0),[w,C,f,d,y.dropdowns]);return Object(i.jsxs)(re,Object.assign({ref:e.innerRef},{children:[Object(i.jsx)(E.a,Object.assign({when:!h},{children:Object(i.jsx)(o.a,{children:Object(i.jsx)(oe,{columns:d,hasButtons:w,headerCellBorder:u,headerCellTextColor:j,isPublic:p},void 0)},void 0)}),void 0),Object(i.jsxs)(a.a,{children:[Object(i.jsx)(E.a,Object.assign({fallback:T,when:n},{children:S}),void 0),e.placeholder,Object(i.jsx)(E.a,Object.assign({fallback:S,when:n},{children:T}),void 0)]},void 0),Object(i.jsx)(E.a,Object.assign({when:x},{children:Object(i.jsx)(r.a,{children:Object(i.jsxs)(l.a,{children:[d.map(e=>Object(i.jsx)(s.a,Object.assign({align:e.align,border:le},{children:Object(i.jsx)(c.a,Object.assign({style:e.footerStyle},{children:e.footer}),void 0)}),e.id)),Object(i.jsx)(E.a,Object.assign({when:w},{children:Object(i.jsx)(s.a,{border:le},void 0)}),void 0)]},void 0)},void 0)}),void 0)]}),void 0)}})({addBtnLabel:e,addBtnStatus:t,addRows:n,addRowsOnTop:p,columns:v,dropdowns:m,detailsBtnLabel:f,editBtnLabel:x,extra:y,hasFooter:w,headerCellBorder:S,headerCellTextColor:T,hideVisibilityToggle:
85I,infiniteScrollProps:P,isDragDisabled:Oe,isDraggingDirty:te,isPublic:R,isResetting:de,noEditButtons:A,noHeader:k,noResetting:D,onAdd:N,onCellClick:_,onDetailsButtonClick:B,onEditButtonClick:M,onRemove:z,onUpdate:U,onVisibilityToggle:H,placeholders:K,removeBtnTooltipProps:G,reset:be,rows:$,saveBtnLabel:F,tableIndex:Y,validate:X,selectValuesAreStrings:q}),[e,n,p,v,m,f,x,y,w,S,T,I,P,Oe,te,R,de,A,k,D,N,_,B,M,z,U,H,K,G,be,$,F,Y,X,q]);return Object(i.jsxs)(d.a,Object.assign({onMouseDown:se,onMouseLeave:ce,ref:Z},h,{children:[Object(i.jsx)(E.a,Object.assign({when:W},{children:Object(i.jsx)(g.a,{isPublic:R,isVisible:J,onClick:L&&Q,title:W},void 0)}),void 0),Object(i.jsx)(C.a,Object.assign({onDragEnd:je},{children:Object(i.jsx)(C.c,Object.assign({droppableId:""+Y,isDropDisabled:Oe},{children:ge}),void 0)}),void 0)]}),void 0)}),(e,t)=>e.addRows===t.addRows&&e.rows===t.rows&&e.dropdowns===t.dropdowns);function ce(e){var t=ae(e,[]);const{useMobileView:n,rows:o,columns:a,title:r,isPublic:l}=t,{isSmall:s}=Object(p.a)();return l&&!(null==o?void 0:o.length)?null:s&&n?Object(i.jsx)(x,{columns:a,rows:o,title:r},void 0):Object(i.jsx)(se,Object.assign({},t),void 0)}},2104:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(16),o=(n.n(i),n(2023)),a=n(2029),r=n(2),l=n(2062),s=n(125);const c=Object(r.default)(o.a)`
86  align-items: center;
87  display: flex;
88  height: 36px;
89  justify-content: center;
90  min-width: ${e=>{var t;return null!==(t=e.minWidth)&&void 0!==t?t:"160px"}};
91  padding: 0 22px;
92  ${Object(l.a)("iconColor")}
93`,d=e=>{var{iconColor:t=s.a.white,label:n,labelProps:o}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["iconColor","label","labelProps"]);return Object(i.jsx)(c,Object.assign({"data-testid":"contact-plane-save-button",iconColor:t,label:Object(i.jsx)(a.a,Object.assign({color:s.a.white,size:"small",weight:"bold"},o,{children:n}),void 0)},r),void 0)};d.defaultProps={primary:!0,secondary:!1}},2107:function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var i=n(16),o=n(2029),a=n(244),r=n(2036),l=n(740),s=n(2),c=n(187),d=n(25),b=n(2095),u=n(85),j=n(125),O=n(765),g=n(766),p=n(0);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=p.createElement("circle",{cx:7,cy:7,r:7,fill:"#EFBC02"}),m=p.createElement("path",{d:"M3.5 8L6 10l5-6",stroke:"#FCFCFC",strokeWidth:2});function f(e){return p.createElement("svg",v({width:14,height:14,fill:"none"},e),h,m)}var x=n(2112),E=n(1994);const y=({maskType:e})=>{const t=Object(p.useMemo)(()=>e===O.d.SUCCESS?Object(i.jsx)(x.a,{stroke:j.a.white},void 0):Object(i.jsx)(E.a,{fill:j.a.white,height:O.b},void 0),[e]),n=Object(p.useMemo)(()=>e===O.d.SUCCESS?"brand":"status-critical",[e]);return Object(i.jsx)(a.a,Object.assign({align:"center",background:Object(u.b)(j.a[n],O.c),"data-testid":`representation-cell-${e}-mask`,fill:!0,justify:"center",style:{position:"absolute"}},{children:t}),void 0)},C=Object(s.default)(o.a)`
94  margin-top: ${({hasMargin:e})=>e?"2px":"0px"};
95`,w=Object(s.default)(a.a)`
96  border-radius: 50%;
97  overflow: hidden;
98  position: relative;
99  min-width: ${Object(d.A)("width")}
100`,S=Object(s.default)(r.a)`
101  visibility: ${({hasError:e,isImageLoaded:t})=>!e&&t?"visible":"hidden"};
102`,T=({disableBackground:e,imageUrl:t,isVerified:n,maskType:r,onImageClick:s,onTitleClick:d,subtitle:p,subtitleProps:v,title:h,titleProps:m,profileLink:x,soundByteUrl:E})=>{const{state:T,setLeft:I,setRight:P}=Object(l.a)(!1);return Object(i.jsx)(i.Fragment,{children:Object(i.jsxs)(a.a,Object.assign({align:"center","data-testid":"representation-cell",direction:"row"},{children:[Object(i.jsx)(b.a,{iconColor:"white",iconWrapperStyle:{width:"50%",left:"2.5px"},src:E,style:{backgroundColor:Object(u.b)(j.a.black,.45),position:"absolute",zIndex:10,width:"40px",height:"40px",left:"45px"}},void 0),Object(i.jsx)(c.a,Object.assign({when:t},{children:Object(i.jsxs)(w,Object.assign({background:e?"none":"dark-4","data-testid":"representation-cell-image-holder",height:O.a,margin:{right:"small"},onClick:s,width:O.a}
102,{children:[Object(i.jsx)(c.a,Object.assign({when:t!==g.a},{children:Object(i.jsx)(S,{alt:"representation-cell-image","data-testid":"representation-cell-image",fill:!0,fit:"cover",isImageLoaded:T,onError:I,onLoad:P,src:t},void 0)}),void 0),Object(i.jsx)(c.a,Object.assign({when:r},{children:Object(i.jsx)(y,{maskType:r},void 0)}),void 0)]}),void 0)}),void 0),Object(i.jsxs)(a.a,{children:[Object(i.jsx)(c.a,Object.assign({when:h},{children:Object(i.jsx)("a",Object.assign({href:x,style:{textDecoration:"none"},target:"_blank"},{children:Object(i.jsxs)(a.a,Object.assign({align:"center",direction:"row",gap:"xsmall",onClick:d},{children:[Object(i.jsx)(o.a,Object.assign({color:"dark-1",size:"small"},m,{children:h}),void 0),Object(i.jsx)(c.a,Object.assign({when:n},{children:Object(i.jsx)(f,{"data-testid":"representation-cell-verified-icon"},void 0)}),void 0)]}),void 0)}),void 0)}),void 0),Object(i.jsx)(c.a,Object.assign({when:p},{children:Object(i.jsx)(C,Object.assign({color:"dark-4",hasMargin:Boolean(h),size:"xsmall"},v,{children:p}),void 0)}),void 0)]},void 0)]}),void 0)},void 0)},I=({disableBackground:e,imageUrl:t,isVerified:n,maskType:r,onImageClick:s,onTitleClick:d,subtitle:b,subtitleProps:u,title:j,titleProps:p,profileLink:v})=>{const{state:h,setLeft:m,setRight:x}=Object(l.a)(!1);return Object(i.jsx)("a",Object.assign({href:v,style:{textDecoration:"none"},target:"_blank"},{children:Object(i.jsxs)(a.a,Object.assign({align:"center","data-testid":"representation-cell",direction:"row"},{children:[Object(i.jsx)(c.a,Object.assign({when:t},{children:Object(i.jsxs)(w,Object.assign({background:e?"none":"dark-4","data-testid":"representation-cell-image-holder",height:O.a,margin:{right:"small"},onClick:s,width:O.a},{children:[Object(i.jsx)(c.a,Object.assign({when:t!==g.a},{children:Object(i.jsx)(S,{alt:"representation-cell-image","data-testid":"representation-cell-image",fill:!0,fit:"cover",isImageLoaded:h,onError:m,onLoad:x,src:t},void 0)}),void 0),Object(i.jsx)(c.a,Object.assign({when:r},{children:Object(i.jsx)(y,{maskType:r},void 0)}),void 0)]}),void 0)}),void 0),Object(i.jsxs)(a.a,{children:[Object(i.jsx)(c.a,Object.assign({when:j},{children:Object(i.jsxs)(a.a,Object.assign({align:"center",direction:"row",gap:"xsmall",onClick:d},{children:[Object(i.jsx)(o.a,Object.assign({color:"dark-1",size:"small"},p,{children:j}),void 0),Object(i.jsx)(c.a,Object.assign({when:n},{children:Object(i.jsx)(f,{"data-testid":"representation-cell-verified-icon"},void 0)}),void 0)]}),void 0)}),void 0),Object(i.jsx)(c.a,Object.assign({when:b},{children:Object(i.jsx)(C,Object.assign({color:"dark-4",hasMargin:Boolean(j),size:"xsmall"},u,{children:b}),void 0)}),void 0)]},void 0)]}),void 0)}),void 0)},P=e=>e.soundByteUrl?Object(i.jsx)(T,Object.assign({},e),void 0):Object(i.jsx)(I,Object.assign({},e),void 0)},2112:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0);n.n(i);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{d:"M6 13l4.2 3.6L18 7",stroke:"{currentColor}",strokeWidth:2});function r(e){return i.createElement("svg",o({width:24,height:24,fill:"none"},e),a)}},2194:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));
102const i={NOTIFICATION_SENT:1,PENDING:2,DECLINED:4,ACCEPTED:8}},311:function(e,t,n){"use strict";n.r(t);var i=n(997);n.d(t,"RepresentationSection",(function(){return i.RepresentationSection}))},755:function(e,t,n){"use strict";n.r(t),n.d(t,"AGENT_SEARCH_CONFIG",(function(){return I})),n.d(t,"AGENT_SEARCH_CONTAINER_PROPS",(function(){return P})),n.d(t,"AGENCY_REP_STATUS_STYLES",(function(){return x})),n.d(t,"AGENCY_COLUMNS",(function(){return T})),n.d(t,"CONFIG",(function(){return S})),n.d(t,"HEADER_CELL_BORDER",(function(){return A})),n.d(t,"HEADER_CELL_TEXT_COLOR",(function(){return k})),n.d(t,"AGENT_SEARCH_INFINITE_SCROLL_PROPS",(function(){return R})),n.d(t,"REP_BUTTON_PROPS",(function(){return D})),n.d(t,"REP_CELL_STYLES",(function(){return y})),n.d(t,"REP_CELL_BUTTON_STYLES",(function(){return C})),n.d(t,"REP_STATUS_STYLES",(function(){return f})),n.d(t,"TALENT_REP_STATUS",(function(){return d})),n.d(t,"TALENT_REP_INVITATION_STYLES",(function(){return E}));var i=n(16),o=n(125),a=n(85),r=n(2084),l=n(0);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=l.createElement("path",{d:"M4 12h16",stroke:"#064773",strokeWidth:2});var d,b,u=n(58),j=n(2194),O=n(862),g=n(863),p=n(864),v=n(865),h=n(866),m=n(867);(b=d||(d={}))[b.DEFAULT=0]="DEFAULT",b[b.INVITED=1]="INVITED";const f={[j.a.ACCEPTED]:{name:Object(u.a)("REPRESENTATION_SECTION_CURRENT_STATUS")},[j.a.NOTIFICATION_SENT]:{backgroundColor:o.a["primary-2"],fontColor:o.a["dark-1"],name:Object(u.a)("REPRESENTATION_SECTION_INVITED_STATUS")},[j.a.PENDING]:{backgroundColor:o.a["brand-light-opacity-1"],fontColor:o.a.brand,name:Object(u.a)("REPRESENTATION_SECTION_PENDING_STATUS")}},x={[j.a.PENDING]:{backgroundColor:o.a["primary-2"],fontColor:o.a["dark-1"],name:Object(u.a)("AGENCY_PAGE_REPRESENTATIVES_SECTION_PENDING_STATUS")},[j.a.ACCEPTED]:{backgroundColor:o.a.brand,fontColor:o.a.white,name:Object(u.a)("AGENCY_PAGE_REPRESENTATIVES_SECTION_ACTIVE_STATUS")},[j.a.DECLINED]:{backgroundColor:o.a["dark-4"],fontColor:o.a["light-2"],name:Object(u.a)("AGENCY_PAGE_REPRESENTATIVES_SECTION_INACTIVE_STATUS")}},E={[d.DEFAULT]:{color:Object(a.b)(o.a.brand,.1),icon:Object(i.jsx)(r.a,{fill:o.a.brand,height:"8px"},void 0),label:Object(u.a)("REPRESENTATION_SECTION_INVITE_LABEL"),labelColor:"brand"},[d.INVITED]:{color:o.a.brand,label:Object(u.a)("REPRESENTATION_SECTION_INVITED_LABEL"),labelColor:"white",style:{cursor:"default"}}},y={name:{color:"brand",weight:"bold"},agency:{color:"brand"},[j.a.ACCEPTED]:{weight:"bold"},email:{color:"brand"}},C={accept:{color:"status-ok-opacity-3",labelProps:{color:"status-ok"},margin:{horizontal:"xxsmall"},size:"small"},decline:{color:"status-critical-opacity-3",labelProps:{color:"status-critical"},margin:{horizontal:"xxsmall"},size:"small"}},w=[{id:"agent-name",CustomCellComponent:O.AgentNameCell,primary:"agentName",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_AGENT_NAME"),verticalAlign:"middle",width:"auto"},{id:"agency",CustomCellComponent:g.AgencyCell,primary:"agencyName",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_AGENCY"),verticalAlign:"middle",width:"auto"},{id:"agent-email",primary:"agentEmail",CustomCellComponent:p.AgentEmailCell,header:Object(u.a)("REPRESENTATION_SECTION_HEADER_EMAIL"),verticalAlign:"middle",width:"auto"}],S=[...w,{id:"status",CustomCellComponent:v.RepresentationStatus,primary:"status",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_STATUS"),verticalAlign:"middle",width:"auto"},{id:"actions",CustomCellComponent:h.Actions,primary:"actions",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_ACTIONS"),verticalAlign:"middle",width:"auto",justify:"end"}],T=[{id:"agent-name",CustomCellComponent:O.AgentNameCell,primary:"agentName",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_AGENT_NAME"),verticalAlign:"middle",width:"auto"},{id:"agent-email",CustomCellComponent:p.AgentEmailCell,primary:"agentEmail",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_EMAIL"),verticalAlign:"middle",width:"auto"},{id:"status",CustomCellComponent:v.RepresentationStatus,primary:"status",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_STATUS"),verticalAlign:"middle",width:"auto"},{id:"actions",CustomCellComponent:e=>Object(i.jsx)(h.Actions,Object.assign({},e,{isAgent:!0}),void 0),primary:"actions",header:Object(u.a)("REPRESENTATION_SECTION_HEADER_ACTIONS"),verticalAlign:"middle",width:"auto",justify:"end"}],I=[...w,{id:"invitation",CustomCellComponent:m.InvitationCell,header:"",primary:"status",verticalAlign:"middle",width:"auto"}],P={height:{max:"300px"},margin:{horizontal:"small",bottom:"large"},overflow:"scroll"},R={step:5},A=[{color:Object(a.b)(o.a.brand,.3),side:"bottom"}],k="dark-1",D={ADD:{color:"brand",label:Object(u.a)("TALENT_REPRESENTATION_PAGE_BUTTON_NEW_AGENT")},HIDE:{color:"brand",label:Object(u.a)("REPRESENTATION_SECTION_HIDE_AGENTS_LABEL"),icon:Object(i.jsx)((function(e){return l.createElement("svg",s({viewBox:"0 0 24 24",fill:"none"},e),c)}),{height:"20px"},void 0)}}},756:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i={TAGS:"tags",TEXT:"text"}},760:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}
102));const i="160px",o="190px"},765:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));const i="36px",o="24px",a=.5;var r,l;(l=r||(r={})).NONE="none",l.SUCCESS="success",l.ERROR="error"},766:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i="url"},862:function(e,t,n){"use strict";n.r(t),n.d(t,"AgentNameCell",(function(){return r}));var i=n(16),o=(n.n(i),n(2107)),a=n(755);const r=({datum:{agentName:e,imageUrl:t},extra:n})=>Object(i.jsx)(o.a,{"data-testid":"agent-name-cell",imageUrl:t,title:e,titleProps:!(null==n?void 0:n.isAgentSearch)&&a.REP_CELL_STYLES.name},void 0)},863:function(e,t,n){"use strict";n.r(t),n.d(t,"AgencyCell",(function(){return r}));var i=n(16),o=(n.n(i),n(2107)),a=n(755);const r=({datum:{agencyName:e,createdSince:t},extra:n})=>Object(i.jsx)(o.a,{"data-testid":"agency-cell",subtitle:t,title:e,titleProps:!(null==n?void 0:n.isAgentSearch)&&a.REP_CELL_STYLES.agency},void 0)},864:function(e,t,n){"use strict";n.r(t),n.d(t,"AgentEmailCell",(function(){return r}));var i=n(16),o=(n.n(i),n(2107)),a=n(755);const r=({datum:{agentEmail:e},extra:t})=>Object(i.jsx)(o.a,{"data-testid":"agent-email-cell",title:e,titleProps:!(null==t?void 0:t.isAgentSearch)&&a.REP_CELL_STYLES.email},void 0)},865:function(e,t,n){"use strict";n.r(t),n.d(t,"RepresentationStatus",(function(){return s}));var i=n(16),o=(n.n(i),n(244)),a=n(2073),r=n(755),l=n(1866);const s=({datum:{id:e,status:t}})=>{const{isAgent:n}=Object(l.a)();return Object(i.jsx)(o.a,Object.assign({"data-testid":"representation-status-cell"},{children:Object(i.jsx)(a.a,Object.assign({id:e,isRemovable:!1},n?r.AGENCY_REP_STATUS_STYLES[t]:r.REP_STATUS_STYLES[t]),void 0)}),void 0)}},866:function(e,t,n){"use strict";n.r(t),n.d(t,"Actions",(function(){return O}));var i=n(16),o=(n.n(i),n(244)),a=n(2077),r=n(2083),l=n(125),s=n(2069),c=n(187),d=n(58),b=n(755),u=n(2194),j=n(2094);const O=({datum:e,onAccept:t,onDecline:n,onRemove:O,acceptOrDeclineState:g=u.a.PENDING})=>{const{status:p}=e,v=p===g&&t&&n;return Object(i.jsx)(o.a,Object.assign({align:"end","data-testid":"actions-cell"},{children:Object(i.jsx)(c.a,Object.assign({fallback:Object(i.jsx)(a.a,Object.assign({onConfirm:()=>O(e)},j.b,{children:Object(i.jsx)(r.a,{fill:l.a["primary-3"]},void 0)}),void 0),when:v},{children:Object(i.jsxs)(o.a,Object.assign({align:"center",direction:"row"},{children:[Object(i.jsx)(s.a,Object.assign({label:Object(d.a)("REPRESENTATION_SECTION_INVITE_ACCEPT"),onClick:()=>t(e)},b.REP_CELL_BUTTON_STYLES.accept),void 0),Object(i.jsx)(s.a,Object.assign({label:Object(d.a)("REPRESENTATION_SECTION_INVITE_DECLINE"),onClick:()=>n(e)},b.REP_CELL_BUTTON_STYLES.decline),void 0)]}),void 0)}),void 0)}),void 0)}},867:function(e,t,n){"use strict";n.r(t),n.d(t,"InvitationCell",(function(){return b}));var i=n(16),o=(n.n(i),n(0)),a=(n.n(o),n(2)),r=n(2023),l=n(2029),s=n(234),c=n(755);const d=Object(a.default)(r.a)`
103  background: ${Object(s.a)("color")};
104  border-radius: 4px;
105  border: none;
106  height: 24px;
107  padding: 0px 10px;
108
109  svg {
110    margin-right: 5px;
111  }
112`,b=({datum:{id:e,status:t},extra:n})=>{const[a,r]=Object(o.useState)(t),s=Object(o.useCallback)(()=>{a===c.TALENT_REP_STATUS.DEFAULT&&(r(c.TALENT_REP_STATUS.INVITED),null==n||n.onInvite(e))},[a,n,e]),b=c.TALENT_REP_INVITATION_STYLES[a]||{},{label:u,labelColor:j}=b,O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(b,["label","labelColor"]),g=Object(o.useMemo)(()=>Object(i.jsx)(l.a,Object.assign({color:j,size:"small"},{children:u}),void 0),[u]);return Object(i.jsx)(d,Object.assign({"data-testid":"invitation-cell",gap:"none",label:g,onClick:s,size:"small",status:a},O),void 0)}},997:function(e,t,n){"use strict";n.r(t),n.d(t,"RepresentationSection",(function(){return u}));var i=n(16),o=(n.n(i),n(187)),a=n(2103),r=n(2104),l=n(2094),s=n(755),c=n(244),d=n(2029),b=n(58);const u=({columns:e,emptyTableButtonLabel:t=Object(b.a)("TALENT_MANAGEMENT_ADD_TALENT_BUTTON"),emptyTableMessage:n=Object(b.a)("INVITES_PAGE_NO_INVITES_MESSAGE"),headerCellBorder:u=s.HEADER_CELL_BORDER,headerCellTextColor:j=s.HEADER_CELL_TEXT_COLOR,onEmptyTableButtonClick:O,onRemove:g,rows:p})=>Object(i.jsxs)(c.a,{children:[Object(i.jsx)(o.a,Object.assign({when:null==p?void 0:p.length},{children:Object(i.jsx)(a.a,{columns:e,headerCellBorder:u,headerCellTextColor:j,noEditButtons:!0,onRemove:g,removeBtnTooltipProps:l.b,rows:p},void 0)}),void 0),Object(i.jsx)(o.a,Object.assign({when:!(null==p?void 0:p.length)},{children:Object(i.jsxs)(c.a,Object.assign({align:"center",margin:{top:"medium"}},{children:[Object(i.jsx)(d.a,Object.assign({color:"brand",size:"small"},{children:n}),void 0),Object(i.jsx)(r.a,{color:"brand",label:t,labelProps:{color:"white",size:"medium",weight:"bold"},margin:{top:"large"},onClick:O},void 0)]}),void 0)}),void 0)]},void 0)}}]);

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.