"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44],{54267:function(e,t,a){a.d(t,{U5:function(){return x},Fu:function(){return ef},NU:function(){return eN},WU:function(){return j},q4:function(){return eE}});var o=a(24004),r=a(14978),n=a(95683),i=a(7905);let d=e=>(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#D8D8D8",height:"13",rx:"3",width:"13",y:"0.5"}),(0,o.jsx)("path",{d:"M3.75 7.5L5.25 9L9.25 5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}),s=e=>(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#77BDD3",height:"13",rx:"3",width:"13",y:"0.5"}),(0,o.jsx)("path",{d:"M3.75 7.5L5.25 9L9.25 5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}),l=e=>(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#77BDD3",height:"13",rx:"3",width:"13",y:"0.5"}),(0,o.jsx)("path",{d:"M9 7H4",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5"})]})}),c=e=>(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"white",height:"12",rx:"2.5",width:"12",x:"0.5",y:"0.5"}),(0,o.jsx)("rect",{height:"12",rx:"2.5",stroke:"#77BDD3",width:"12",x:"0.5",y:"0.5"})]})}),p=e=>(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#D8D8D8",height:"12",rx:"2.5",width:"12",x:"0.5",y:"1"}),(0,o.jsx)("rect",{height:"12",rx:"2.5",stroke:"#D8D8D8",width:"12",x:"0.5",y:"1"})]})}),_=(0,r.forwardRef)((e,t)=>{let{disabled:a=!1,...r}=e;return(0,o.jsx)(n.Z,{checked:!!r.value,checkedIcon:(0,o.jsx)(a?d:s,{viewBox:"0 0 14 14"}),"data-test":"checkbox",disabled:a,icon:(0,o.jsx)(a?p:c,{sx:{color:"transparent"},viewBox:"0 0 14 14"}),ref:t,...r,sx:{"& svg":{fontSize:r.fontSize},p:0,...r.sx}})});var u=a(73623),g=a(31348);let y=e=>(0,o.jsx)(g.Z,{sx:{marginRight:"10px",display:"flex","& svg":{fontSize:"16px",color:"transparent",paddingTop:0,paddingBottom:0}},...e}),m=(0,r.forwardRef)((e,t)=>{let a=e.disabled?p:c;return(0,o.jsx)(_,{checkedIcon:(0,o.jsx)(l,{viewBox:"0 0 14 14"}),icon:(0,o.jsx)(a,{viewBox:"0 0 14 14"}),...e,ref:t})});var v=a(85631),h=a(59348);let f=e=>(0,o.jsxs)(i.Z,{...e,inheritViewBox:!0,sx:{color:"transparent"},children:[(0,o.jsx)("path",{d:"M16 19H8C5.6 19 4 17.7647 4 14.8824V9.11765C4 6.23529 5.6 5 8 5H16C18.4 5 20 6.23529 20 9.11765V14.8824C20 17.7647 18.4 19 16 19Z",stroke:"#77BDD3",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5"}),(0,o.jsx)("path",{d:"M17.3332 10.25L13.9945 11.6545C12.8958 12.1152 11.0932 12.1152 9.9945 11.6545L6.6665 10.25",stroke:"#77BDD3",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5"})]}),x=e=>{let[t,a]=(0,r.useState)(!1);return(0,o.jsx)(v.Z,{...e,InputLabelProps:{shrink:e.value.length>0||t,sx:{marginLeft:6}},InputProps:{startAdornment:(0,o.jsx)(h.Z,{position:"start",variant:"outlined",children:(0,o.jsx)(f,{})})},autoComplete:"off",inputProps:{sx:{"&&&":{px:2}}},onBlur:()=>{a(!1)},onFocus:()=>{a(!0)},sx:{".MuiInputBase-root":{backgroundColor:e.error?"error.light":""},"&&& input:-internal-autofill-selected":{backgroundClip:"text "},"& .MuiInputLabel-shrink":{transform:"translate(24px, ".concat("small"===e.size?"5px":"10px",") scale(0.85)")}},type:"email"})};var C=a(40980),b=a(61256);let w=e=>(0,o.jsxs)(i.Z,{...e,sx:{color:"transparent"},children:[(0,o.jsx)("path",{d:"M8.46143 9.78788V8.09091C8.46143 5.28242 9.1345 3 12.4999 3C15.8653 3 16.5383 5.28242 16.5383 8.09091V9.78788M12.4999 17C12.9462 17 13.3742 16.7765 13.6897 16.3787C14.0053 15.9809 14.1826 15.4414 14.1826 14.8788C14.1826 14.3162 14.0053 13.7767 13.6897 13.3789C13.3742 12.9811 12.9462 12.7576 12.4999 12.7576C12.0536 12.7576 11.6256 12.9811 11.31 13.3789C10.9945 13.7767 10.8172 14.3162 10.8172 14.8788C10.8172 15.4414 10.9945 15.9809 11.31 16.3787C11.6256 16.7765 12.0536 17 12.4999 17Z",stroke:"#77BDD3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,o.jsx)("path",{d:"M16.25 20H8.75C5.75 20 5 19.1667 5 15.8333V14.1667C5 10.8333 5.75 10 8.75 10H16.25C19.25 10 20 10.8333 20 14.1667V15.8333C20 19.1667 19.25 20 16.25 20Z",stroke:"#77BDD3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]}),j=e=>{let[t,a]=(0,r.useState)(!1),[n,d]=(0,r.useState)(!1);return(0,o.jsx)(v.Z,{onBlur:()=>{d(!1)},onFocus:()=>{d(!0)},type:t?"text":"password",...e,InputLabelProps:{..."outlined"!==e.variant&&{shrink:e.value.length>0||n,sx:{marginLeft:6}}},InputProps:{...e.InputProps,startAdornment:(0,o.jsx)(h.Z,{position:"start",children:(0,o.jsx)(w,{})}),endAdornment:(0,o.jsx)(h.Z,{"data-test":"password-input-adornment",position:"end",children:(0,o.jsx)(i.Z,{component:t?b.Z:C.Z,onClick:()=>{a(!t)},sx:{cursor:"pointer",fontSize:"18px"}})})},autoComplete:"off",inputProps:{sx:{"&&&":{px:2}}},sx:[{".MuiInputBase-root":{backgroundColor:e.error?"error.light":""},"&&& input:-internal-autofill-selected":{backgroundClip:"text "}},"outlined"!==e.variant&&{"& .MuiInputLabel-shrink":{transform:"translate(24px, ".concat("small"===e.size?"5px":"10px",") scale(0.85)")}}]})},H=e=>(0,o.jsx)(i.Z,{sx:{color:"transparent"},viewBox:"0 0 15 16",...e,children:(0,o.jsx)("svg",{fill:"none",height:"15",viewBox:"0 0 14 15",width:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M13 13.5L11.83 12.33M6.85755 12.915C7.58737 12.915 8.31004 12.7712 8.98431 12.4919C9.65858 12.2127 10.2712 11.8033 10.7873 11.2872C11.3034 10.7712 11.7127 10.1585 11.992 9.48425C12.2713 8.80998 12.415 8.08731 12.415 7.35749C12.415 6.62767 12.2713 5.90499 11.992 5.23072C11.7127 4.55646 11.3034 3.9438 10.7873 3.42774C10.2712 2.91168 9.65858 2.50232 8.98431 2.22303C8.31004 1.94374 7.58737 1.79999 6.85755 1.79999C5.38361 1.79999 3.97004 2.38551 2.9278 3.42774C1.88557 4.46998 1.30005 5.88355 1.30005 7.35749C1.30005 8.83143 1.88557 10.245 2.9278 11.2872C3.97004 12.3295 5.38361 12.915 6.85755 12.915Z",stroke:"#818897",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}),I=(0,r.forwardRef)((e,t)=>(0,o.jsxs)(g.Z,{sx:{display:"flex",flexDirection:"row",border:"1px solid",borderColor:"primary.light",borderRadius:2,px:2,py:1,mb:3,flexGrow:1,backgroundColor:"common.white",...e.sx},children:[(0,o.jsx)(g.Z,{className:"input-group-text",component:"span",children:(0,o.jsx)(H,{sx:{fontSize:"16px",color:"transparent"}})}),(0,o.jsx)(v.Z,{inputRef:t,sx:{border:"none",color:"text.secondary",pl:2,"&& input":{backgroundColor:"common.white",p:0},"& .MuiInputLabel-shrink":{transform:"translate(24px, ".concat("small"===e.size?"5px":"10px",") scale(0.85)")}},type:"search",...e})]})),A=e=>e.disabled?(0,o.jsxs)("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"white",height:"12",rx:"6",width:"12",x:"0.5",y:"0.5"}),(0,o.jsx)("rect",{height:"12",rx:"6",stroke:"#D8D8D8",width:"12",x:"0.5",y:"0.5"}),(0,o.jsx)("circle",{cx:"6.5",cy:"6.5",fill:"#D8D8D8",r:"3.5"})]}):(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,sx:{...e.sx,color:"transparent"},children:(0,o.jsxs)("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"white",height:"12",rx:"6",width:"12",x:"0.5",y:"0.5"}),(0,o.jsx)("circle",{cx:"6.5",cy:"6.5",fill:"#77BDD3",r:"3.5"}),(0,o.jsx)("rect",{height:"12",rx:"6",stroke:"#77BDD3",width:"12",x:"0.5",y:"0.5"})]})});var N=a(54688);let O=e=>{var t;let a;let{values:r=[],placeholder:n=null,noValueText:i="Any",isMenuOpen:d=!1,options:s=[],toggleMenu:l,disabled:c=!1,excludingList:p,onClose:_,isLoading:y,indicatorColor:m,...v}=e;a=1===r.length&&r.length!==s.length?r[0].label:r.length>1&&r.length<s.length?"".concat(r.length," selected"):0===r.length?i:"All",(null==p?void 0:p.length)&&(a="".concat(p.length," excluded"));let h=!!(null===(t=v["data-test"])||void 0===t?void 0:t.includes("date"));return(0,o.jsx)(u.Button,{endIcon:_?(0,o.jsx)(u.IconButton,{color:"default",component:"span","data-test":"".concat(v["data-test"],"-close"),onClick:e=>{e.stopPropagation(),_()},size:"small",sx:{width:20,height:20},variant:"contained",children:(0,o.jsx)(N.bM,{sx:{fontSize:"15px"}})}):(0,o.jsx)(N.qX,{children:d?(0,o.jsx)(N.TS,{}):(0,o.jsx)(N.CR,{})}),helperText:a,isLoading:y,onClick:e=>{var t;null===(t=v.onClick)||void 0===t||t.call(v,e),c||l(!d)},startIcon:h?(0,o.jsx)(N.jo,{}):m&&(0,o.jsx)(g.Z,{sx:{width:10,height:10,backgroundColor:"".concat(m,".dark"),borderRadius:"50%",mr:1}}),sx:{borderColor:"border",typography:"button","& .MuiButton-endIcon":{ml:1},"&:hover":{backgroundColor:"background.dark",boxShadow:"none",borderColor:"border"},borderRadius:2,color:"text.primary",width:"max-content",textTransform:"capitalize",...h&&{backgroundColor:"background.default"}},variant:"outlined",...v,children:n})};var S=a(94391),T=a.n(S);let E=e=>{var t;let a=null!==(t=e.values)&&void 0!==t?t:e.getValue();return T()(a)||(a=[a]),(0,o.jsx)(O,{"data-test":e.selectProps["data-test"]||"single-select",disabled:e.isDisabled,indicatorColor:e.selectProps.indicatorColor,isMenuOpen:e.menuIsOpen,noValueText:e.selectProps.noValueText,onClose:e.selectProps.onClose,options:e.options,placeholder:e.selectProps.placeholder,toggleMenu:()=>{e.menuIsOpen?e.selectProps.onMenuClose():e.selectProps.onMenuOpen()},values:a})};a(61104);var L=a(64605),R=a(89817),D=a(54898),M=a.n(D),k=a(34740),B=a(56229),V=a(84752),Z=a(39552),P=a(17928),F=a(16734),U=a.n(F);let W=(0,r.createContext)((0,r.createRef)()),G=e=>{let{value:t,children:a}=e;return(0,o.jsx)(W.Provider,{value:t,children:a})},J=()=>(0,r.useContext)(W).current,z=e=>{let{onApply:t,isDisabled:a,sx:r,...n}=e;return(0,o.jsx)(g.Z,{sx:{display:"flex",justifyContent:"end",alignItems:"center",m:3,mb:5,height:25,mr:5,...r},children:(0,o.jsx)(u.Button,{disabled:a,onClick:t,variant:"contained",...n,children:"Apply"})})};function Q(){let e=J(),t=null==e?void 0:e.props;(0,r.useEffect)(()=>()=>{null==t||t.onInputChange("",{action:"input-change",prevInputValue:""})},[null==t?void 0:t.menuIsOpen])}let Y=e=>{var t,a,n,i,d;let{children:s,isMulti:l,selectProps:c}=e,p=r.Children.map(s,e=>e),_=c.setExcludingList||(()=>null),u=p.filter(e=>!U()(e,"props.data.isDisabled",!1)),v=[...u,...p.filter(e=>U()(e,"props.data.isDisabled",!1))],h=J(),f=(0,r.useMemo)(()=>[...new Set(c.options.map(e=>(e.category||(e.category="Others"),e.category)))],[c.options]),x=(0,r.useMemo)(()=>1===f.length&&"Others"===f[0]?[{options:v}]:f.map(e=>({category:e,options:p.filter(t=>{var a;return(null===(a=t.props.data)||void 0===a?void 0:a.category)===e})})),[f,p,v]);Q(),(0,r.useEffect)(()=>()=>{b("")},[c.menuIsOpen]);let[C,b]=(0,r.useState)("");return(0,r.useEffect)(()=>{var e;c.isCreate&&b(null==h?void 0:null===(e=h.inputRef)||void 0===e?void 0:e.value)},[null==h?void 0:null===(t=h.inputRef)||void 0===t?void 0:t.value]),(0,o.jsxs)(B.Z,{"data-test":"menu-list",sx:{position:"relative"},children:[c.shouldShowSearch?(0,o.jsxs)(g.Z,{sx:{position:"relative",display:"flex",alignItems:"center",pt:3,px:4},children:[l&&(null===(n=x.at(0))||void 0===n?void 0:null===(a=n.options.at(0))||void 0===a?void 0:a.props.data)?(0,o.jsx)(g.Z,{sx:{mb:3},children:(0,o.jsx)(y,{children:(0,o.jsx)(m,{"data-test":"select-all",fontSize:"16px",onChange:e=>{e.target.checked?(c.setOptionsSelected(u.map(e=>U()(e,"props.data",{}))),_([])):(c.setOptionsSelected([]),c.onCancel(),c.inputValue&&_(u.map(e=>U()(e,"props.data",{}))))},value:(null==h?void 0:null===(d=h.props)||void 0===d?void 0:null===(i=d.optionsSelected)||void 0===i?void 0:i.length)!==0})})}):null,null==h?void 0:h.renderInput()]}):null==h?void 0:h.renderInput(),c.shouldShowSearch?(0,o.jsx)(V.Z,{sx:{borderColor:"action.disabled",mx:4}}):null,(0,o.jsx)(g.Z,{sx:{maxHeight:c.menuMaxHeight?"".concat(c.menuMaxHeight,"rem"):"25rem",overflowY:"scroll",margin:0,padding:0,mt:2},children:c.isLoading?(0,o.jsx)(g.Z,{sx:{display:"flex",minHeight:60,minWidth:200,justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(Z.Z,{})}):(0,o.jsx)(o.Fragment,{children:x.map(e=>{var t;return(0,o.jsxs)(r.Fragment,{children:[e.category?(0,o.jsx)(P.Z,{sx:{padding:0,color:"text.primary"},variant:"body1",children:e.category}):null,(0,o.jsx)(k.OO,{data:e.options,fixedItemHeight:32,itemContent:(e,t)=>{var a;return(0,o.jsx)(g.Z,{"data-test":"select-option-".concat(null==t?void 0:null===(a=t.props.data)||void 0===a?void 0:a.value),sx:{px:2,py:.5,"& p":{color:"text.primary",typography:"body1"}},children:t})},style:{height:Math.min(32*e.options.length+10),width:250},totalCount:e.options.length})]},e.category||(null===(t=e.options[0].props.data)||void 0===t?void 0:t.value))})})}),c.isCreate&&(null==C?void 0:C.length)!==0?(0,o.jsxs)(g.Z,{"data-test":"new-item",sx:{position:"relative",alignItems:"center",padding:"10px 16px 11px 16px"},children:[(0,o.jsx)(P.Z,{variant:"body2",children:c.createTitle}),(0,o.jsxs)(y,{children:[(0,o.jsx)(m,{fontSize:"16px",onChange:e=>(c.onCreate(C),!e)}),(0,o.jsx)(P.Z,{sx:{marginLeft:"10px"},variant:"body1",children:C})]})]}):null,"SingleSelect"!==c.classNamePrefix&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(V.Z,{sx:{borderColor:"action.disabled",mx:4}}),(0,o.jsx)(z,{"data-test":"btn-select-apply",isDisabled:c.isDisabledBtn,onApply:c.onApply})]})]})},K=(0,r.forwardRef)(function(e,t){return(0,o.jsx)(v.Z,{"data-test":"select-empty-search",inputRef:t,sx:{border:"none",pl:0,height:0,width:0,position:"absolute"},type:"search",...e})}),X=e=>{let{innerRef:t,selectProps:a,isDisabled:n,isHidden:i,selectOption:d,isRtl:s,isMulti:l,hasValue:c,getValue:p,getStyles:_,clearValue:u,cx:g,setValue:y,theme:m,size:v,color:h,...f}=e,x=J(),C={ref:e=>{null==t||t(e)}};return(0,r.useEffect)(()=>{null==x||x.focusInput()},[x]),e.selectProps.shouldShowSearch?(0,o.jsx)(I,{...C,"data-test":"select-search",disabled:n,onChange:e=>{a.onInputChange(e.currentTarget.value,{action:"input-change",prevInputValue:""})},placeholder:a.searchPlaceholder,...f}):(0,o.jsx)(K,{...C,...f})};var $=a(95409),q=a(72063);let ee=(0,r.forwardRef)((e,t)=>{var a,r;let n;let{values:i=[],placeholder:d,noValueText:s,isMenuOpen:l=!1,options:c,toggleMenu:p,disabled:_=!1,excludingList:u,className:y,...m}=e;for(let e in n=i.at(0)?"".concat(i[0].label,"-"):"Select Accounts",i){let t=i[e].value;n+="".concat(0!==Number(e)?", ":"").concat(t.label)}return(0,o.jsx)(g.Z,{className:(0,q.W)(y,"DropDownButton",{open:l}),component:"button",disabled:_,onClick:()=>{_||p(!l)},sx:{typography:"body1",backgroundColor:"common.white",border:"none",minWidth:100,alignItems:"center",display:"flex",cursor:"pointer"},type:"button",...m,ref:t,children:(0,o.jsxs)(g.Z,{sx:{display:"flex",alignItems:"flex-end"},children:[n?(0,o.jsxs)(g.Z,{sx:{display:"flex",flexDirection:"column",mr:2,textAlign:"start"},children:[(0,o.jsx)($.Z,{title:null===(a=i[0])||void 0===a?void 0:a.category,children:(0,o.jsx)(P.Z,{component:"span",noWrap:!0,sx:{typography:"caption",overflow:"hidden",color:"text.secondary",maxWidth:110},children:i[0]?"".concat(null===(r=i[0])||void 0===r?void 0:r.category,":"):""})}),(0,o.jsx)($.Z,{title:n,children:(0,o.jsx)(P.Z,{component:"span",sx:{typography:"caption",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",textOverflow:"ellipsis",height:"fit-content",textAlign:"start",maxWidth:110},children:n})})]}):null,(0,o.jsx)(N.qX,{children:l?(0,o.jsx)(N.TS,{}):(0,o.jsx)(N.CR,{})})]})})}),et=e=>{var t;let a=null!==(t=e.values)&&void 0!==t?t:e.getValue();return T()(a)||(a=[a]),(0,o.jsx)(ee,{"data-test":e.selectProps["data-test"]||"single-select",disabled:e.isDisabled,isMenuOpen:e.menuIsOpen,noValueText:e.selectProps.noValueText,options:e.options,placeholder:e.selectProps.placeholder,ref:e.selectProps.controlRef,toggleMenu:()=>{e.menuIsOpen?e.selectProps.onMenuClose():e.selectProps.onMenuOpen()},values:a})};var ea=a(10753),eo=a(79188),er=a(98102),en=a(43210),ei=a.n(en),ed=a(50383),es=a(19449),el=a(81679),ec=a(50581),ep=a.n(ec);let e_=e=>{let{label:t,variant:a="body1",className:n,sx:i=[],...d}=e,s=(0,r.useRef)(null),[l,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!s.current)return;let e=s.current.querySelector("p");e.offsetWidth<e.scrollWidth&&c(!0)},[]),(0,r.createElement)(l?u.Tooltip:r.Fragment,l?{title:t,placement:"top",leaveDelay:0,disableInteractive:!0}:{},(0,o.jsx)(g.Z,{className:n,ref:s,sx:[{overflow:"hidden"},...Array.isArray(i)?i:[i]],children:(0,o.jsx)(P.Z,{component:"p",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variant:a,...d,children:t})}))},eu=e=>{var t;let{label:a,children:n}=e,i=J(),d=(null==i?void 0:null===(t=i.props)||void 0===t?void 0:t.optionsSelected)||[],s=(null==i?void 0:i.props.options)||[],[l,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(ep()(d))return;let e=s.filter(e=>e.category===a),t=d.map(e=>e.value),o=e.some(e=>e.value.value.some(e=>t.includes(e.value)));o&&c(o)},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ed.Z,{className:l?"open":"","data-test":"group-category-".concat(a),disableGutters:!0,onClick:()=>{c(!l)},sx:{p:0,pb:1.5,pt:1.5,px:5},children:[(0,o.jsx)(es.Z,{primary:(0,o.jsx)(e_,{label:a,variant:"body1"})}),(0,o.jsx)(N.qX,{children:l?(0,o.jsx)(N.TS,{sx:{fill:"none"}}):(0,o.jsx)(N.CR,{sx:{fill:"none"}})})]}),(0,o.jsx)(el.Z,{in:l,unmountOnExit:!0,children:n})]})},eg=(e,t)=>e===t?0:e>t?1:e<t?-1:void 0;var ey=a(16287);let em="Multiple accounts can only be selected within the same product and platform",ev=e=>{let t=(t=>{let a=e.selectProps.inputValue.toLowerCase();return t.label.toLowerCase().includes(a)||t.category.toLowerCase().includes(a)?t.value.value:t.value.value.filter(e=>e.label.toLowerCase().includes(a))})(e.data),a=t=>!e.selectProps.freeSelect&&!e.optionsSelected.some(e=>t.value.map(e=>e.value).includes(e.value))&&!!e.optionsSelected.length,n=t=>!!e.optionsSelected.find(e=>e.value===t),i=(t,o,r)=>{r.preventDefault(),r.stopPropagation(),a(t)||(n(o.value)?e.setOptionsSelected(e=>e.filter(e=>e.value!==o.value)):e.setOptionsSelected(e=>[...e,o]))};return(0,o.jsx)(er.Z,{component:"div",disablePadding:!0,children:(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(u.Tooltip,{placement:"left-start",title:a(e.data.value)?em:"",children:(0,o.jsx)(g.Z,{component:"span",children:(0,o.jsxs)(ed.Z,{"data-test":"option-group-label-".concat(e.data.category,"_").concat(e.data.value.label),disabled:a(e.data.value),onClick:o=>{let r=e.data.value;if(a(r))return;let n=e.optionsSelected.every(e=>r.value.map(e=>e.value).includes(e.value))&&e.optionsSelected.length>0,i=!1===o.target.checked;if(e.selectProps.freeSelect&&i){e.setOptionsSelected(e=>e.filter(e=>!r.value.some(t=>t.value===e.value)));return}n?e.setOptionsSelected([]):e.setOptionsSelected(e=>[...e,...t])},sx:{ml:3,alignItems:"center",pt:.5,pb:.5},children:[(0,o.jsx)(y,{children:(0,o.jsx)(m,{disabled:a(e.data.value),fontSize:"16px",value:e.optionsSelected.some(t=>e.data.value.value.map(e=>e.value).includes(t.value))})}),(0,o.jsx)(ey.Z,{sx:{mr:1,minWidth:"inherit","& svg":{width:16}},children:(0,r.createElement)(e.data.value.Icon)}),(0,o.jsx)(es.Z,{primary:"".concat(e.data.value.label," (").concat(t.length,"/").concat(e.data.value.value.length,")")})]})})}),t.map(t=>(0,o.jsx)(u.Tooltip,{placement:"left-start",title:a(e.data.value)?em:"",children:(0,o.jsx)(g.Z,{component:"span",children:(0,o.jsxs)(ed.Z,{"data-test":"option-group-account-".concat(t.value),disabled:a(e.data.value),onClick:a=>{i(e.data.value,t,a)},sx:{ml:8,py:0,pt:1.5,pb:1.5},children:[(0,o.jsx)(_,{disabled:a(e.data.value),fontSize:"16px",value:-1!==e.optionsSelected.findIndex(e=>e.value===t.value)}),(0,o.jsx)(e_,{className:"overflow-ellipsis",label:t.label,sx:{pl:2}})]})})},t.value))]},e.data.value.label)})},eh={Control:e=>(0,o.jsx)(et,{...e,values:e.selectProps.filteredOptions}),Option:e=>(0,o.jsx)(ev,{...e,optionsSelected:e.selectProps.optionsSelected,setOptionsSelected:e.selectProps.setOptionsSelected}),Menu:e=>{var t,a;let{selectProps:r}=e,n=r.menuIsOpen;return(0,o.jsx)(eo.Z,{anchorEl:null===(t=r.controlRef)||void 0===t?void 0:t.current,disablePortal:!(null===(a=r.controlRef)||void 0===a?void 0:a.current),open:n,placement:"top-start",sx:{zIndex:"modal",m:10},children:(0,o.jsx)(ea.c.Menu,{...e,getStyles:(t,a)=>{let{backgroundColor:o,borderRadius:r,boxShadow:n,marginBottom:i,marginTop:d}=e.getStyles(t,a);return{padding:8,backgroundColor:o,borderRadius:r,boxShadow:n,marginBottom:i,marginTop:d}},children:e.children})})},MenuList:e=>{var t,a;let{children:n,selectProps:i}=e,d=J();Q();let s=(0,r.useMemo)(()=>r.Children.toArray(n).sort((e,t)=>eg(e.props.data.category.toLowerCase(),t.props.data.category.toLowerCase())).sort((e,t)=>eg(e.props.data.label.toLowerCase(),t.props.data.label.toLowerCase())),[n]),l=ei()(s.filter(e=>{var t;return null===(t=e.props.data)||void 0===t?void 0:t.category}).map(e=>{var t;return null===(t=e.props.data)||void 0===t?void 0:t.category}));return(0,o.jsxs)(g.Z,{"data-test":"group-menu-list",sx:{backgroundColor:"common.white",zIndex:1,borderRadius:2.5},children:[(0,o.jsxs)(g.Z,{sx:{display:"flex",flexDirection:"row",px:4},children:[(0,o.jsx)(y,{children:(0,o.jsx)(m,{"data-test":"btn-group-select-cancel",disabled:i.allowSelectAll?!i.allowSelectAll:(null==d?void 0:null===(t=d.props)||void 0===t?void 0:t.optionsSelected.length)===0,fontSize:"16px",onClick:()=>{var e;let t=null==d?void 0:null===(e=d.props)||void 0===e?void 0:e.optionsSelected.length;if(i.freeSelect&&i.allowSelectAll&&!t){let e=i.options.flatMap(e=>e.value.value.map(e=>e));i.setOptionsSelected(e);return}i.onCancel()},value:(null==d?void 0:null===(a=d.props)||void 0===a?void 0:a.optionsSelected.length)!==0})}),(0,o.jsx)(g.Z,{sx:{pt:3,flexGrow:1},children:null==d?void 0:d.renderInput()})]}),(0,o.jsx)(V.Z,{sx:{borderColor:"action.disabled",mx:4}}),(0,o.jsx)(g.Z,{sx:{maxHeight:"20rem",overflowY:"scroll",color:"text.primary",mt:2,mb:1},children:(0,o.jsx)(er.Z,{dense:!0,disablePadding:!0,children:l.map(e=>{let t=s.filter(t=>{var a;return(null===(a=t.props.data)||void 0===a?void 0:a.category)===e});return(0,o.jsx)(r.Fragment,{children:(0,o.jsx)(eu,{label:e,children:(0,o.jsx)(er.Z,{dense:!0,disablePadding:!0,children:t.map(e=>(0,o.jsx)(r.Fragment,{children:e},e.props.data.label))})})},e)})})}),!i.applyOnChange&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(V.Z,{sx:{borderColor:"action.disabled",mx:4}}),(0,o.jsx)(z,{"data-test":"btn-group-select-apply",isDisabled:i.isDisabledBtn,onApply:i.onApply})]})]})},Input:X},ef=e=>{var t,a;let{onChange:n,...i}=e,d=(0,r.useRef)(),s=(0,r.useRef)(),l=(0,R.Z)(),c=(0,r.useId)(),[p,_]=(0,r.useState)(!1),[u,g]=(0,r.useState)((null==i?void 0:i.value)||[]),[y,m]=(0,r.useState)((null==i?void 0:i.value)||[]);(0,r.useEffect)(()=>{!(null==i?void 0:i.value)||M()(null==i?void 0:i.value,y)||(g(i.value),m(i.value))},[y,null==i?void 0:i.value]);let v=(0,r.useCallback)(()=>{g([])},[g]),h=(0,r.useCallback)(()=>{i.applyOnChange||_(!1),m(u),n(u)},[i.applyOnChange,u,n]);(0,r.useEffect)(()=>{i.applyOnChange&&h()},[h,u,i.applyOnChange]);let f=u.map(e=>i.options.find(t=>t.value.value.map(e=>e.value).includes(e.value))),x=(0,r.useMemo)(()=>{let e=[];for(let t of i.options)for(let a of u)t.value.value.map(e=>e.value).includes(a.value)&&e.push({label:t.label,value:a,Icon:t.value.Icon,category:t.category});return e},[i.options,u]);return(0,o.jsx)(G,{value:d,children:(0,o.jsx)(L.ZP,{instanceId:c,menuIsOpen:p,...i,allowSelectAll:null!==(t=null==i?void 0:i.allowSelectAll)&&void 0!==t&&t,autoFocus:!0,className:"group-select",closeMenuOnSelect:!1,components:{...eh,...i.components},controlRef:s,filterOption:(e,t)=>{let{data:a}=e,{category:o,label:r,value:{value:n}}=a,i=t.toLowerCase();return!!(-1!==o.toLowerCase().indexOf(i)||r.toLowerCase().includes(i)||n.find(e=>e.label.toLowerCase().includes(i)))},filteredOptions:x,freeSelect:null!==(a=null==i?void 0:i.freeSelect)&&void 0!==a&&a,getOptionValue:e=>e.value,hideSelectedOptions:!1,isClearable:!1,isDisabledBtn:!u.length,isMulti:!0,isOptionSelected:(e,t)=>{var a;return!!e.value.value.map(e=>e.value).includes(null===(a=t[0])||void 0===a?void 0:a.value)},onApply:h,onCancel:v,onMenuClose:()=>{_(!1),M()(u,y)||g(y)},onMenuOpen:()=>{_(!0)},optionsSelected:u,ref:d,setOptionsSelected:g,shouldShowSearch:!0,styles:{...i.styles,menu:e=>({...e,width:"auto",position:"absolute",left:0,top:"auto",borderRadius:10,boxShadow:l.shadows[2]})},value:f})})};var ex=a(30401),eC=a(66984);let eb=e=>{let{children:t,...a}=e;return(0,o.jsx)(g.Z,{className:"wrapper",sx:{"& .default-option":{color:"text.primary",backgroundColor:"white",p:0,minWidth:"auto","&& p":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},children:(0,o.jsx)(ea.c.Option,{className:"default-option",...a,theme:eC.d,children:(0,o.jsx)(g.Z,{className:(0,q.W)({disabled:a.data.isDisabled}),sx:{cursor:"pointer",display:"flex",alignItems:"center",color:"black",p:0,...a.data.isDisabled?{color:"action.disabled"}:{"&:hover:not(:disabled)":{backgroundColor:"background.default"}}},children:t({isSelected:a.isSelected})})})})},ew=e=>{let{isOnlyBtn:t=!0,...a}=e,n=e=>{e.preventDefault(),e.stopPropagation(),a.selectProps.setOptionsSelected&&a.selectProps.setOptionsSelected([a.data])},i=a.selectProps.setExcludingList||(()=>null),d=(e,t)=>{if(t.preventDefault(),t.stopPropagation(),a.data.isDisabled)return;let o=!!a.selectProps.inputValue;e?(i([]),a.selectProps.setOptionsSelected&&a.selectProps.setOptionsSelected(e=>ei()([...e.filter(e=>e.value!==a.data.value)])),o&&i([...a.selectProps.excludingList||[],a.data.value])):(i([]),a.selectProps.setOptionsSelected&&a.selectProps.setOptionsSelected(e=>ei()([...e,a.data])))};return(0,o.jsx)(eb,{...a,children:()=>{let e=a.selectProps.optionsSelected&&!!a.selectProps.optionsSelected.find(e=>e.value===a.data.value)||!1;return(0,o.jsxs)(g.Z,{sx:{"& .only-btn":{display:"none"},"&:hover .only-btn":{display:"flex"},display:"flex",flexGrow:1,justifyContent:"space-between",width:"100%",height:"100%"},children:[(0,o.jsxs)(g.Z,{onClick:t=>{d(e,t)},sx:{display:"flex",alignItems:"center",overflow:"hidden",width:"100%",height:"100%",py:1,px:2},children:[(0,o.jsx)(g.Z,{sx:{"& svg":{fontSize:"16px"},"& span":{paddingTop:0,paddingBottom:0,paddingRight:0,paddingLeft:0},mr:"12px",display:"flex",alignItems:"center"},children:(0,o.jsx)(_,{disabled:a.data.isDisabled,fontSize:"16px",value:a.selectProps.optionsSelected?-1!==a.selectProps.optionsSelected.findIndex(e=>e.value===a.data.value):null})}),a.data.Icon?(0,o.jsx)(g.Z,{sx:{mr:"12px"},children:(0,r.createElement)(a.data.Icon,{sx:{fontSize:"13px"}},null)}):null,(0,o.jsx)(e_,{label:a.data.label,sx:{marginRight:"12px"}})]}),t&&!a.isDisabled?(0,o.jsx)(g.Z,{className:"only-btn",sx:{alignItems:"center"},children:(0,o.jsx)(u.Button,{onClick:n,size:"small",type:"button",variant:"outlined",children:"Only"})}):null]})}})},ej=e=>(0,o.jsx)(eo.Z,{...e,anchorEl:e.anchorEl,modifiers:[{name:"offset",options:{offset:[0,4]}}],open:!0,sx:{zIndex:e=>e.zIndex.modal+1,...e.sx},children:e.children}),eH=e=>(0,o.jsx)(g.Z,{sx:{bottom:0,left:0,top:0,right:0,position:"fixed",zIndex:1},...e}),eI=e=>{let{children:t,placement:a="bottom-start",isOpen:r,anchorEl:n,target:i,onClose:d}=e;return(0,o.jsxs)(g.Z,{sx:{position:"relative"},children:[i,r?(0,o.jsx)(ej,{anchorEl:n,placement:a,children:t}):null,r?(0,o.jsx)(eH,{onClick:d}):null]})},eA=e=>{let{CustomTarget:t,selectProps:a,...r}=e;return t?(0,o.jsx)(t,{selectProps:a,...r}):(0,o.jsx)(O,{...r})},eN=e=>{var t;let{placement:a,components:n,...i}=e,d=(0,r.useRef)(null),[s,l]=(0,r.useState)(!1),[c,p]=(0,r.useState)(null),_=(0,R.Z)(),u=(0,r.useId)(),g=(0,r.useMemo)(()=>i.value&&!ep()(i.value)?i.value.map(e=>{var t;return null===(t=i.options)||void 0===t?void 0:t.find(t=>e===t.value)}).flatMap(e=>e||[]):[],[i.value,i.options]),[y,m]=(0,r.useState)([]),[v,h]=(0,r.useState)([]);(0,r.useEffect)(()=>{g.length>0&&(m(g),h(g))},[g,m,h]);let f=e=>{if(!T()(e)){i.onChange([e.value]);return}i.onChange(e.map(e=>"object"==typeof e?e.value:e))},x=(0,ex.vE)(()=>{var e,t;return(null===(e=i.options)||void 0===e?void 0:e.length)&&(null===(t=i.value)||void 0===t?void 0:t.length)?i.value.flatMap(e=>{var t;return(null===(t=i.options)||void 0===t?void 0:t.find(t=>t.value===e))||[]}):[]},[i.options,i.value]),C=()=>{M()(y,v)||m(v),i.onMenuClose&&i.onMenuClose(),l(!1)},b=()=>{l(!0)},w=(0,r.useCallback)(()=>{i.onCancel&&i.onCancel(),m([]),h([])},[m,i]),j={Option:ew,MenuList:Y,Input:X,...n?{...n}:{},Control:()=>null},H=()=>{var e;m([]),h([]),null===(e=i.onClose)||void 0===e||e.call(i)};return(0,o.jsx)(G,{value:d,children:(0,o.jsx)(eI,{anchorEl:c,isOpen:s,onClose:()=>{l(!1),p(null)},placement:a,target:(0,o.jsx)(eA,{CustomTarget:null===(t=e.components)||void 0===t?void 0:t.Control,"data-test":e["data-test"],noValueText:e.noValueText,onClick:e=>{p(e.currentTarget),l(e=>!e)},onClose:H,options:e.options,placeholder:e.placeholder,selectProps:{"data-test":e["data-test"],onMenuOpen:b,placeholder:e.placeholder},toggleMenu:()=>{e.menuIsOpen?C():b()},values:x}),children:(0,o.jsx)(L.ZP,{autoFocus:!0,closeMenuOnSelect:!1,components:j,"data-test":"multi-select",getOptionValue:e=>e.value,hideSelectedOptions:!1,instanceId:u,isClearable:!1,isLoading:i.isLoading,isMulti:!0,isOptionSelected:(e,t)=>!!t.find(t=>t===e.value),onApply:()=>{h(y),f(y),l(!1)},ref:d,shouldShowSearch:i.shouldShowSearch||!0,styles:{menu:()=>({borderRadius:8,boxShadow:_.shadows[2],border:1,borderColor:"".concat(_.palette.divider," "),width:i.menuListWidth?i.menuListWidth:"auto",background:"#fff"}),...i.styles},...i,isDisabledBtn:!y.length,menuIsOpen:s,onCancel:w,onClose:H,onMenuClose:C,onMenuOpen:b,optionsSelected:y,setOptionsSelected:m,value:x})})})},eO=e=>e.disabled?(0,o.jsx)("svg",{fill:"none",height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("rect",{height:"12",rx:"6",stroke:"#D8D8D8",width:"12",x:"0.5",y:"1"})}):(0,o.jsx)(i.Z,{...e,inheritViewBox:!0,sx:{...e.sx,color:"transparent"},children:(0,o.jsx)("svg",{fill:"none",height:"14",viewBox:"0 0 13 14",width:"13",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("rect",{height:"12",rx:"6",stroke:"#CDE6EE",width:"12",x:"0.5",y:"1"})})}),eS=e=>{let t=(0,r.useMemo)(()=>e.data.Icon?(0,r.createElement)(e.data.Icon):null,[e.data.Icon]),a=e.data.label;return(0,o.jsx)(eb,{...e,children:r=>{let{isSelected:n}=r;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.Z,{sx:{"& svg":{fontSize:"16px"},mr:"12px",display:"flex",alignItems:"center",py:1},children:n?(0,o.jsx)(A,{disabled:e.isDisabled}):(0,o.jsx)(eO,{disabled:e.isDisabled})}),t?(0,o.jsx)(g.Z,{sx:{"& svg":{fontSize:"12px"},mr:"12px",display:"flex",alignItems:"center"},children:t}):null,(0,o.jsx)(e_,{label:e.data.isSelected?"".concat(a," (selected tag)"):a})]})}})},eT=e=>{let{isBottom:t}=e.selectProps,a=(0,R.Z)();return(0,o.jsx)(g.Z,{"data-test":"single-select-menu-wrapper",sx:{position:"relative",zIndex:e=>e.zIndex.modal-1,"& .SingleSelect__menu":{...t?{right:0,bottom:0,top:"auto"}:{top:"100% !important"},position:"absolute",marginTop:2,borderRadius:2,width:"auto",boxShadow:a.shadows[2],border:"1px solid",borderColor:"".concat(a.palette.divider," "),background:"#fff"},"& .SingleSelect__Option":{padding:0,minWidth:"auto"},"& .SingleSelect__container":{position:"static"},"& .SingleSelect__menuList":{overflowX:"hidden"}},children:(0,r.createElement)(ea.c.Menu,e)})},eE=(0,r.forwardRef)((e,t)=>{let{value:a,onChange:n,placeholder:i=null,isDisabled:d,isBottom:s,isCreate:l,onCreate:c,createTitle:p,defaultValue:_,onMenuClose:u,isLoading:g,components:y,menuSide:m="left",shouldShowSearch:v=!0,indicatorColor:h,...f}=e,x=(0,r.useRef)(null);return(0,o.jsx)(G,{value:x,children:(0,o.jsx)(L.ZP,{blurInputOnSelect:!0,captureMenuScroll:!1,className:"single-select",closeMenuOnSelect:!0,components:{Option:eS,Control:E,Menu:eT,MenuList:Y,Input:X,...y?{...y}:{}},createTitle:p,isCreate:l,isDisabled:d,isLoading:g,onChange:e=>{n(e.value)},onCreate:c,onMenuClose:u,placeholder:i,ref:x,styles:{menu:e=>({...e,right:"right"===m?0:"unset"})},value:(()=>{if(f.options)return f.options.find(e=>{var t;return(null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.toString())===(null==a?void 0:a.toString())})})(),...f,isBottom:s,classNamePrefix:"SingleSelect",indicatorColor:h,menuMaxHeight:e.menuMaxHeight,shouldShowSearch:v})})})},54688:function(e,t,a){a.d(t,{TS:function(){return n},CR:function(){return i},qX:function(){return l},k5:function(){return c},jo:function(){return _},bM:function(){return u},QD:function(){return p},yM:function(){return v},nb:function(){return h},tr:function(){return f},HF:function(){return x},iC:function(){return C},h:function(){return A}});var o=a(24004),r=a(7905);let n=e=>(0,o.jsx)(r.Z,{viewBox:"0 0 12 7",...e,children:(0,o.jsx)("svg",{fill:"none",height:"6",viewBox:"0 0 11 6",width:"11",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M10 5.00024L6.29545 1.32571C5.85795 0.891755 5.14205 0.891755 4.70455 1.32571L1 5.00024",stroke:"#818897",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5"})})}),i=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsx)("svg",{fill:"none",height:"7",viewBox:"0 0 12 7",width:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M10.4502 1.55014L6.74565 5.22467C6.30815 5.65863 5.59224 5.65863 5.15474 5.22467L1.4502 1.55014",stroke:"#818897",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5"})})});var d=a(31348),s=a(72063);let l=e=>(0,o.jsx)(d.Z,{sx:{"& svg":{fontSize:12}},...e,className:(0,s.W)(e.className,"caret")}),c=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"26",viewBox:"0 0 26 26",width:"26",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#F6F7FA",height:"26",rx:"13",width:"26"}),(0,o.jsx)("g",{clipPath:"url(#clip0_445_5003)",children:(0,o.jsx)("path",{d:"M19 9H17C17 7.93913 16.5786 6.92172 15.8284 6.17157C15.0783 5.42143 14.0609 5 13 5C11.9391 5 10.9217 5.42143 10.1716 6.17157C9.42143 6.92172 9 7.93913 9 9H7C6.46957 9 5.96086 9.21071 5.58579 9.58579C5.21071 9.96086 5 10.4696 5 11V17.6667C5.00106 18.5504 5.35259 19.3976 5.97748 20.0225C6.60237 20.6474 7.4496 20.9989 8.33333 21H17.6667C18.5504 20.9989 19.3976 20.6474 20.0225 20.0225C20.6474 19.3976 20.9989 18.5504 21 17.6667V11C21 10.4696 20.7893 9.96086 20.4142 9.58579C20.0391 9.21071 19.5304 9 19 9ZM13 6.33333C13.7072 6.33333 14.3855 6.61428 14.8856 7.11438C15.3857 7.61448 15.6667 8.29276 15.6667 9H10.3333C10.3333 8.29276 10.6143 7.61448 11.1144 7.11438C11.6145 6.61428 12.2928 6.33333 13 6.33333ZM19.6667 17.6667C19.6667 18.1971 19.456 18.7058 19.0809 19.0809C18.7058 19.456 18.1971 19.6667 17.6667 19.6667H8.33333C7.8029 19.6667 7.29419 19.456 6.91912 19.0809C6.54405 18.7058 6.33333 18.1971 6.33333 17.6667V11C6.33333 10.8232 6.40357 10.6536 6.5286 10.5286C6.65362 10.4036 6.82319 10.3333 7 10.3333H9V11.6667C9 11.8435 9.07024 12.013 9.19526 12.1381C9.32029 12.2631 9.48986 12.3333 9.66667 12.3333C9.84348 12.3333 10.013 12.2631 10.1381 12.1381C10.2631 12.013 10.3333 11.8435 10.3333 11.6667V10.3333H15.6667V11.6667C15.6667 11.8435 15.7369 12.013 15.8619 12.1381C15.987 12.2631 16.1565 12.3333 16.3333 12.3333C16.5101 12.3333 16.6797 12.2631 16.8047 12.1381C16.9298 12.013 17 11.8435 17 11.6667V10.3333H19C19.1768 10.3333 19.3464 10.4036 19.4714 10.5286C19.5964 10.6536 19.6667 10.8232 19.6667 11V17.6667Z",fill:"#232427"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_445_5003",children:(0,o.jsx)("rect",{fill:"white",height:"16",transform:"translate(5 5)",width:"16"})})})]})}),p=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"26",viewBox:"0 0 26 26",width:"26",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#F6F7FA",height:"26",rx:"13",width:"26"}),(0,o.jsx)("g",{clipPath:"url(#clip0_455_3903)",children:(0,o.jsx)("path",{d:"M21 11C21 10.4696 20.7893 9.96086 20.4142 9.58579C20.0391 9.21071 19.5304 9 19 9H17C17 7.93913 16.5786 6.92172 15.8284 6.17157C15.0783 5.42143 14.0609 5 13 5C11.9391 5 10.9217 5.42143 10.1716 6.17157C9.42143 6.92172 9 7.93913 9 9H7C6.46957 9 5.96086 9.21071 5.58579 9.58579C5.21071 9.96086 5 10.4696 5 11V17.6667C5.00106 18.5504 5.35259 19.3976 5.97748 20.0225C6.60237 20.6474 7.4496 20.9989 8.33333 21H17.6667C18.5504 20.9989 19.3976 20.6474 20.0225 20.0225C20.6474 19.3976 20.9989 18.5504 21 17.6667V11ZM10.3333 9C10.3333 8.29276 10.6143 7.61448 11.1144 7.11438C11.6145 6.61428 12.2928 6.33333 13 6.33333C13.7072 6.33333 14.3855 6.61428 14.8856 7.11438C15.3857 7.61448 15.6667 8.29276 15.6667 9H10.3333Z",fill:"#31343A"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_455_3903",children:(0,o.jsx)("rect",{fill:"white",height:"16",transform:"translate(5 5)",width:"16"})})})]})}),_=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsx)("svg",{fill:"none",height:"18",viewBox:"0 0 20 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M12.6667 1.33333H12V0.666667C12 0.298667 11.702 0 11.3333 0C10.9647 0 10.6667 0.298667 10.6667 0.666667V1.33333H5.33333V0.666667C5.33333 0.298667 5.03533 0 4.66667 0C4.298 0 4 0.298667 4 0.666667V1.33333H3.33333C1.49533 1.33333 0 2.82867 0 4.66667V12.6667C0 14.5047 1.49533 16 3.33333 16H12.6667C14.5047 16 16 14.5047 16 12.6667V4.66667C16 2.82867 14.5047 1.33333 12.6667 1.33333ZM3.33333 2.66667H12.6667C13.7693 2.66667 14.6667 3.564 14.6667 4.66667V5.33333H1.33333V4.66667C1.33333 3.564 2.23067 2.66667 3.33333 2.66667ZM12.6667 14.6667H3.33333C2.23067 14.6667 1.33333 13.7693 1.33333 12.6667V6.66667H14.6667V12.6667C14.6667 13.7693 13.7693 14.6667 12.6667 14.6667ZM11.888 8.768C12.144 9.03267 12.136 9.45533 11.8713 9.71067L8.71133 12.756C8.34267 13.1247 7.84 13.3333 7.306 13.3333C6.772 13.3333 6.26933 13.1253 5.892 12.7473L4.39067 11.3527C4.12133 11.102 4.10533 10.68 4.356 10.4107C4.608 10.1407 5.02933 10.126 5.298 10.376L6.81667 11.7873C7.10533 12.074 7.52533 12.0553 7.776 11.8047L10.9453 8.75C11.2107 8.49467 11.632 8.50267 11.888 8.76733V8.768Z",fill:"black"})})}),u=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M15 5L5 15",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M5 5L15 15",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})]})}),g=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{height:"256",version:"1.1",viewBox:"0 0 256 256",width:"256",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,o.jsx)("defs",{}),(0,o.jsxs)("g",{style:{stroke:"none",strokeWidth:0,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"none",fillRule:"nonzero",opacity:1},transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:[(0,o.jsx)("path",{d:"M 9.721 54.533 c 0 3.437 0.754 6.075 1.74 7.671 c 1.293 2.091 3.221 2.976 5.186 2.976 c 2.535 0 4.854 -0.629 9.324 -6.81 c 3.58 -4.954 7.799 -11.909 10.638 -16.269 l 4.807 -7.386 c 3.339 -5.13 7.205 -10.832 11.637 -14.697 c 3.618 -3.155 7.521 -4.907 11.449 -4.907 c 6.594 0 12.876 3.821 17.683 10.989 C 87.446 33.949 90 43.836 90 54.039 c 0 6.066 -1.196 10.522 -3.23 14.043 c -1.966 3.405 -5.796 6.807 -12.241 6.807 v -9.709 c 5.518 0 6.895 -5.07 6.895 -10.873 c 0 -8.269 -1.928 -17.445 -6.175 -24.002 c -3.014 -4.651 -6.92 -7.493 -11.217 -7.493 c -4.648 0 -8.388 3.505 -12.591 9.756 c -2.235 3.321 -4.529 7.368 -7.105 11.934 l -2.836 5.023 c -5.696 10.1 -7.139 12.4 -9.987 16.197 c -4.992 6.648 -9.255 9.167 -14.866 9.167 c -6.657 0 -10.867 -2.883 -13.474 -7.227 C 1.045 64.123 0 59.478 0 54.186 L 9.721 54.533 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"rgb(0,129,251)",fillRule:"nonzero",opacity:1},transform:"matrix(1 0 0 1 0 0)"}),(0,o.jsxs)("linearGradient",{gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",id:"SVGID_2",x1:"19.5097",x2:"81.4794",y1:"48.549",y2:"45.4192",children:[(0,o.jsx)("stop",{offset:"0%",style:{stopColor:"rgb(0,100,225)",stopOpacity:1}}),(0,o.jsx)("stop",{offset:"40%",style:{stopColor:"rgb(0,100,225)",stopOpacity:1}}),(0,o.jsx)("stop",{offset:"83%",style:{stopColor:"rgb(0,115,238)",stopOpacity:1}}),(0,o.jsx)("stop",{offset:"100%",style:{stopColor:"rgb(0,130,251)",stopOpacity:1}})]}),(0,o.jsx)("path",{d:"M 7.665 26.785 c 4.457 -6.87 10.889 -11.674 18.265 -11.674 c 4.272 0 8.519 1.264 12.954 4.886 c 4.851 3.959 10.022 10.479 16.472 21.223 l 2.313 3.856 c 5.584 9.302 8.76 14.087 10.619 16.344 c 2.391 2.898 4.066 3.762 6.241 3.762 c 5.518 0 6.895 -5.07 6.895 -10.873 L 90 54.039 c 0 6.066 -1.196 10.522 -3.23 14.043 c -1.965 3.405 -5.796 6.807 -12.241 6.807 c -4.006 0 -7.555 -0.87 -11.48 -4.573 c -3.017 -2.842 -6.544 -7.89 -9.258 -12.428 L 45.72 44.405 c -4.05 -6.767 -7.765 -11.812 -9.915 -14.097 c -2.313 -2.457 -5.286 -5.424 -10.031 -5.424 c -3.84 0 -7.101 2.695 -9.831 6.817 L 7.665 26.785 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"url(#SVGID_2)",fillRule:"nonzero",opacity:1},transform:"matrix(1 0 0 1 0 0)"}),(0,o.jsxs)("linearGradient",{gradientTransform:"matrix(1 0 0 -1 0 92)",gradientUnits:"userSpaceOnUse",id:"SVGID_3",x1:"12.9651",x2:"12.9651",y1:"33.3855",y2:"56.2329",children:[(0,o.jsx)("stop",{offset:"0%",style:{stopColor:"rgb(0,130,251)",stopOpacity:1}}),(0,o.jsx)("stop",{offset:"100%",style:{stopColor:"rgb(0,100,224)",stopOpacity:1}})]}),(0,o.jsx)("path",{d:"M 25.774 24.885 c -3.84 0 -7.101 2.695 -9.831 6.817 c -3.859 5.825 -6.222 14.5 -6.222 22.832 c 0 3.437 0.754 6.075 1.74 7.671 l -8.288 5.458 C 1.045 64.123 0 59.478 0 54.186 c 0 -9.624 2.642 -19.655 7.665 -27.401 c 4.457 -6.87 10.889 -11.674 18.265 -11.674 L 25.774 24.885 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"url(#SVGID_3)",fillRule:"nonzero",opacity:1},transform:"matrix(1 0 0 1 0 0)"})]})]})}),y=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"76",viewBox:"0 0 76 76",width:"76",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,o.jsx)("path",{d:"M67.2917 72.1354H8.70833C4.18064 72.1354 0.5 68.4548 0.5 63.9271V11.6771C0.5 7.14939 4.18064 3.46875 8.70833 3.46875H67.2917C71.8194 3.46875 75.5 7.14939 75.5 11.6771V63.9271C75.5 68.4548 71.8194 72.1354 67.2917 72.1354ZM8.70833 7.21875C6.25036 7.21875 4.25 9.21911 4.25 11.6771V63.9271C4.25 66.3851 6.25036 68.3854 8.70833 68.3854H67.2917C69.7496 68.3854 71.75 66.3851 71.75 63.9271V11.6771C71.75 9.21911 69.7496 7.21875 67.2917 7.21875H8.70833Z",fill:"url(#paint0_linear)",stroke:"white"}),(0,o.jsx)("path",{d:"M73.625 18.5H2.375C1.34014 18.5 0.5 17.6599 0.5 16.625C0.5 15.5901 1.34014 14.75 2.375 14.75H73.625C74.6599 14.75 75.5 15.5901 75.5 16.625C75.5 17.6599 74.6599 18.5 73.625 18.5Z",fill:"url(#paint1_linear)",stroke:"white"})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear",x1:"0",x2:"77.0633",y1:"2.96875",y2:"4.63661",children:[(0,o.jsx)("stop",{stopColor:"#C455EB"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#FFB21E"})]}),(0,o.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint1_linear",x1:"0",x2:"70.042",y1:"14.25",y2:"36.4832",children:[(0,o.jsx)("stop",{stopColor:"#C455EB"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#FFB21E"})]}),(0,o.jsx)("clipPath",{id:"clip0",children:(0,o.jsx)("rect",{fill:"white",height:"76",width:"76"})})]})]})}),m=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsx)("svg",{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M2.60766 11.5143L2.60774 11.5143L2.61108 11.506C2.67925 11.3356 2.91114 11.2264 3.11896 11.3095C3.28839 11.3773 3.39727 11.6069 3.31685 11.8138C2.64587 13.4013 2.24806 15.0512 2.12423 16.7613C2.089 17.0028 1.89904 17.1437 1.73122 17.1437H1.73104H1.73087H1.7307H1.73052H1.73035H1.73017H1.73H1.72983H1.72965H1.72948H1.72931H1.72913H1.72896H1.72878H1.72861H1.72844H1.72826H1.72809H1.72792H1.72774H1.72757H1.72739H1.72722H1.72705H1.72687H1.7267H1.72653H1.72635H1.72618H1.72601H1.72583H1.72566H1.72549H1.72531H1.72514H1.72497H1.72479H1.72462H1.72445H1.72427H1.7241H1.72393H1.72376H1.72358H1.72341H1.72324H1.72307H1.72289H1.72272H1.72255H1.72238H1.7222H1.72203H1.72186H1.72169H1.72152H1.72134H1.72117H1.721H1.72083H1.72066H1.72049H1.72032H1.72014H1.71997H1.7198H1.71963H1.71946H1.71929H1.71912H1.71895H1.71878H1.71861H1.71844H1.71827H1.7181H1.71793H1.71776H1.71759H1.71742H1.71725H1.71708H1.71691H1.71674H1.71657H1.7164H1.71623H1.71606H1.71589H1.71572H1.71556H1.71539H1.71522H1.71505H1.71488H1.71472H1.71455H1.71438H1.71421H1.71404H1.71388H1.71371H1.71354H1.71338H1.71321H1.71304H1.71288H1.71271H1.71254H1.71238H1.71221H1.71205H1.71188H1.71172H1.71155H1.71139H1.71122H1.71106H1.71089H1.71073H1.71056H1.7104H1.71023H1.71007H1.70991H1.70974H1.70958H1.70942H1.70925H1.70909H1.70893H1.70877H1.7086H1.70844H1.70828H1.70812H1.70796H1.70779H1.70763H1.70747H1.70731H1.70715H1.70699H1.70683H1.70667H1.70651H1.70635H1.70619H1.70603H1.70587H1.70571H1.70555H1.7054H1.70524H1.70508H1.70492H1.70476H1.70461H1.70445H1.70429H1.70414H1.70398H1.70382H1.70367H1.70351H1.70335H1.7032H1.70304H1.70289H1.70273H1.70258H1.70242H1.70227H1.70212H1.70196H1.70181H1.70166H1.7015H1.70135H1.7012H1.70105H1.70089H1.70074H1.70059H1.70044H1.70029H1.70014H1.69999H1.69984H1.69969H1.69954H1.69939H1.69924H1.69909H1.69894H1.69879H1.69864H1.69849H1.69835H1.6982H1.69805H1.6979H1.69776H1.69761H1.69746H1.69732H1.69717H1.69703H1.69688H1.69674H1.69659H1.69645H1.6963H1.69616H1.69602H1.69587H1.69573H1.69559H1.69545H1.6953H1.69516H1.69502H1.69488H1.69474H1.6946H1.69446H1.69432H1.69418H1.69404H1.6939H1.69376H1.69362H1.69349H1.69335H1.69321H1.69307H1.69294H1.6928H1.69266H1.69253H1.69239H1.69226H1.69212H1.69199H1.69185H1.69172H1.69159H1.69145H1.69132H1.69119H1.69105H1.69092H1.69079H1.69066H1.69053H1.6904H1.69027H1.69014H1.69001H1.68988H1.68975H1.68965C1.48634 17.1253 1.32796 16.9403 1.33942 16.7283C1.48402 14.9131 1.91642 13.156 2.60766 11.5143ZM29.2749 29.3118L29.2749 29.3118L29.2785 29.3082C33.9672 24.6195 35.2542 17.6601 32.5891 11.5945C32.494 11.3766 32.5808 11.1606 32.7825 11.0634C32.9991 10.9718 33.2127 11.0593 33.3089 11.2602C36.1027 17.6322 34.7465 24.9189 29.8193 29.8172L29.8183 29.8183C26.5606 33.076 22.2954 34.7187 18 34.7187C14.3395 34.7187 10.6779 33.5081 7.64991 31.1434L6.84216 30.5126V31.5375V33.4078C6.84216 33.6363 6.68008 33.7984 6.45153 33.7984C6.22299 33.7984 6.06091 33.6363 6.06091 33.4078V29.5484C6.06091 29.3199 6.22299 29.1578 6.45153 29.1578H10.3109C10.5395 29.1578 10.7015 29.3199 10.7015 29.5484C10.7015 29.7769 10.5394 29.939 10.3109 29.939H8.85622H7.34257L8.55839 30.8406C11.2881 32.8649 14.5694 33.9375 18 33.9375C22.2595 33.9375 26.2439 32.2816 29.2749 29.3118ZM7.36478 6.13848L7.36476 6.13846L7.36054 6.14232C7.20985 6.28046 6.98003 6.27292 6.83477 6.12766C6.67692 5.96981 6.67587 5.70506 6.84818 5.5441C12.9006 0.0993669 22.0369 -0.129828 28.3173 4.85412L29.1281 5.49756V4.46246V2.59215C29.1281 2.37893 29.3272 2.18821 29.5478 2.20061C29.7154 2.21168 29.9093 2.39496 29.9093 2.65153V6.45153C29.9093 6.68007 29.7473 6.84215 29.5187 6.84215H25.6593C25.4461 6.84215 25.2553 6.64298 25.2678 6.42233C25.279 6.25469 25.4622 6.0609 25.7187 6.0609H27.1437H28.6574L27.4415 5.15928C24.7119 3.13503 21.4306 2.06246 18 2.06246C14.0463 2.06246 10.3058 3.50378 7.36478 6.13848ZM2.15881 22.6729C2.2265 22.6052 2.31831 22.5671 2.41403 22.5671C2.50975 22.5671 2.60156 22.6052 2.66925 22.6729C2.73694 22.7406 2.77497 22.8324 2.77497 22.9281C2.77497 23.0238 2.73694 23.1156 2.66925 23.1833C2.60157 23.251 2.50976 23.289 2.41403 23.289C2.3183 23.289 2.2265 23.251 2.15881 23.1833C2.09112 23.1156 2.05309 23.0238 2.05309 22.9281C2.05309 22.8324 2.09112 22.7406 2.15881 22.6729Z",fill:"#161616",stroke:"black"})})}),v=()=>(0,o.jsxs)(d.Z,{sx:{position:"relative",display:"inline-block"},children:[(0,o.jsx)(y,{sx:{width:76,height:76}}),(0,o.jsx)(m,{sx:{position:"absolute",top:"26px",left:"20px",fontSize:"35px",animationName:"spin",animationDuration:"2000ms",animationIterationCount:"infinite",animationTimingFunction:"linear","@keyframes spin":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}},viewBox:"0 0 36 36"})]}),h=e=>(0,o.jsx)(r.Z,{...e,children:(0,o.jsx)("path",{d:"M11.6901 11.0599C11.5919 11.0508 11.4741 11.0508 11.3661 11.0599C10.2394 11.0245 9.17175 10.5846 8.38935 9.83328C7.60694 9.08198 7.1712 8.07832 7.1744 7.03483C7.1744 4.80877 9.11811 3.00066 11.533 3.00066C12.1048 2.99111 12.6729 3.08589 13.2051 3.27958C13.7373 3.47327 14.223 3.76207 14.6346 4.12951C15.0461 4.49695 15.3755 4.93582 15.6038 5.42106C15.8321 5.90631 15.955 6.42842 15.9653 6.9576C15.9756 7.48678 15.8732 8.01266 15.6639 8.50521C15.4547 8.99776 15.1426 9.44734 14.7456 9.82828C14.3486 10.2092 13.8745 10.514 13.3502 10.7254C12.8259 10.9367 12.2618 11.0504 11.6901 11.0599ZM6.78173 14.4127C4.40609 15.8846 4.40609 18.2833 6.78173 19.7461C9.48133 21.418 13.9087 21.418 16.6083 19.7461C18.9839 18.2742 18.9839 15.8755 16.6083 14.4127C13.9185 12.7499 9.49115 12.7499 6.78173 14.4127Z",fill:"none",stroke:"#818897",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),f=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M18 12C18 15.312 15.312 18 12 18C8.688 18 6.666 14.664 6.666 14.664M6.666 14.664H9.378M6.666 14.664V17.664M6 12C6 8.688 8.664 6 12 6C16.002 6 18 9.336 18 9.336M18 9.336V6.336M18 9.336H15.336",id:"Vector",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}),x=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("circle",{cx:"7.5",cy:"7.5",fill:"white",r:"7",stroke:"#818897"}),(0,o.jsx)("line",{stroke:"#818897",x1:"4",x2:"11",y1:"7.5",y2:"7.5"})]})}),C=e=>(0,o.jsx)(r.Z,{...e,inheritViewBox:!0,children:(0,o.jsxs)("svg",{fill:"none",height:"26",viewBox:"0 0 26 26",width:"26",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#F6F7FA",height:"26",rx:"13",width:"26"}),(0,o.jsx)("g",{clipPath:"url(#clip0_391_708)",children:(0,o.jsx)("path",{d:"M12.8607 9.94472C11.1566 9.94472 9.7708 11.3305 9.7708 13.0346C9.7708 14.7387 11.1566 16.1245 12.8607 16.1245C14.5648 16.1245 15.9506 14.7387 15.9506 13.0346C15.9506 11.3305 14.5648 9.94472 12.8607 9.94472ZM12.8607 14.8886C11.8379 14.8886 11.0068 14.0574 11.0068 13.0346C11.0068 12.0119 11.8379 11.1807 12.8607 11.1807C13.8835 11.1807 14.7147 12.0119 14.7147 13.0346C14.7147 14.0574 13.8835 14.8886 12.8607 14.8886ZM20.0123 14.3525C19.6577 14.0018 19.4638 13.5337 19.4638 13.0346C19.4638 12.5364 19.6585 12.0683 20.0123 11.7168L20.5422 11.1923C20.7415 10.9945 20.7824 10.6871 20.6426 10.4437L18.9949 7.58936C18.8489 7.33677 18.5446 7.22011 18.2688 7.31048L17.6616 7.50746C17.1665 7.66814 16.6458 7.61716 16.1908 7.3661C15.7359 7.11428 15.4168 6.69791 15.2901 6.19425L15.1125 5.48048C15.0955 5.40323 15.063 5.33139 15.0205 5.26882C14.992 5.22711 14.958 5.18926 14.9201 5.15527C14.8127 5.06025 14.6722 5.00232 14.5177 5H11.2076C11.0524 5.00154 10.9126 5.06025 10.8052 5.15527C10.7673 5.18926 10.7341 5.22634 10.7048 5.26882C10.6623 5.33139 10.6298 5.40323 10.6128 5.48048L10.4352 6.19425C10.3093 6.69868 9.98945 7.11426 9.53445 7.36687C9.08023 7.61792 8.55727 7.6689 8.06366 7.50824L7.4565 7.31125C7.18073 7.22165 6.87636 7.33752 6.73036 7.59013L5.08268 10.4445C4.94286 10.6878 4.98303 10.9953 5.1831 11.193L5.71302 11.7175C6.06759 12.0682 6.26147 12.5364 6.26147 13.0354C6.26147 13.5336 6.06681 14.0018 5.71302 14.3533L5.1831 14.8778C4.9838 15.0755 4.94287 15.383 5.08268 15.6263L6.73036 18.4807C6.87636 18.7325 7.17917 18.8491 7.4565 18.7595L8.06366 18.5626C8.55804 18.4027 9.08023 18.4529 9.53445 18.7039C9.98945 18.9557 10.3085 19.3721 10.4352 19.8758L10.6167 20.6019C10.6854 20.8769 10.9326 21.07 11.2169 21.07H14.5131C14.7966 21.07 15.0438 20.8769 15.1133 20.6019L15.2948 19.8758C15.4207 19.3713 15.7406 18.9558 16.1955 18.7032C16.6505 18.4521 17.172 18.4019 17.6663 18.5618L18.2735 18.7588C18.5485 18.8484 18.8536 18.7325 18.9996 18.4799L20.6473 15.6255C20.7871 15.3822 20.747 15.0747 20.5469 14.877L20.017 14.3525H20.0123ZM19.1425 15.23L19.3333 15.4193L18.1738 17.4269L18.0417 17.3844C17.2314 17.121 16.3376 17.2075 15.5905 17.6208C14.8443 18.034 14.2974 18.7463 14.0904 19.5744L14.0263 19.8324H11.695L11.6308 19.5744C11.4238 18.7463 10.8769 18.034 10.1307 17.6208C9.38373 17.2075 8.48919 17.121 7.67954 17.3844L7.54745 17.4269L6.38796 15.4193L6.57876 15.23C7.16894 14.646 7.49337 13.8658 7.49337 13.0346C7.49337 12.2041 7.16894 11.4239 6.57876 10.8391L6.38796 10.6498L7.54745 8.64223L7.67954 8.68472C8.48988 8.94813 9.3844 8.86239 10.1307 8.44834C10.8769 8.03508 11.4238 7.32285 11.6308 6.49475L11.695 6.23674H14.0263L14.0904 6.49475C14.2974 7.32285 14.8443 8.03508 15.5905 8.44834C16.3367 8.86161 17.2305 8.94735 18.0417 8.68472L18.1738 8.64223L19.3333 10.6498L19.1425 10.8391C18.5523 11.4231 18.2279 12.2033 18.2279 13.0346C18.2279 13.865 18.5523 14.6452 19.1425 15.23Z",fill:"#31343A"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_391_708",children:(0,o.jsx)("rect",{fill:"white",height:"16",transform:"translate(5 5)",width:"16"})})})]})});var b=a(43571),w=a(70795),j=a(2032),H=a(97613);let I={[H.A7.FACEBOOK]:g,[H.A7.YOUTUBE]:j.Z,[H.A7.TWITTER]:w.Z,[H.A7.INSTAGRAM]:b.Z,[H.A7.GOOGLE]:e=>(0,o.jsx)(r.Z,{viewBox:"0 0 50 50",...e,children:(0,o.jsxs)("svg",{fill:"none",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M49.011 25.5749C49.011 23.8755 48.8732 22.1669 48.5793 20.4951H24.9993V30.1218H38.5024C37.9421 33.2266 36.1417 35.9732 33.5053 37.7185V43.9648H41.5613C46.292 39.6108 49.011 33.1807 49.011 25.5749Z",fill:"#4285F4"}),(0,o.jsx)("path",{d:"M24.9993 49.9999C31.7417 49.9999 37.4277 47.7861 41.5705 43.9648L33.5145 37.7185C31.2732 39.2433 28.3797 40.1068 25.0085 40.1068C18.4866 40.1068 12.9567 35.7068 10.9726 29.7911H2.65942V36.2304C6.90326 44.6721 15.5471 49.9999 24.9993 49.9999Z",fill:"#34A853"}),(0,o.jsx)("path",{d:"M10.9634 29.7914C9.91619 26.6866 9.91619 23.3246 10.9634 20.2198V13.7805H2.65941C-0.886307 20.8444 -0.886307 29.1667 2.65941 36.2306L10.9634 29.7914Z",fill:"#FBBC04"}),(0,o.jsx)("path",{d:"M24.9993 9.89479C28.5634 9.83967 32.008 11.1808 34.5892 13.6426L41.7266 6.50523C37.2072 2.26139 31.2089 -0.0718017 24.9993 0.00168466C15.5471 0.00168466 6.90326 5.32945 2.65942 13.7804L10.9634 20.2196C12.9383 14.2948 18.4774 9.89479 24.9993 9.89479Z",fill:"#EA4335"})]})}),[H.A7.IRON_SOURCE]:e=>(0,o.jsx)(r.Z,{viewBox:"0 0 50 50",...e,children:(0,o.jsx)("svg",{fill:"none",height:"16",viewBox:"0 0 50 50",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{clipRule:"evenodd",d:"M25.0032 2.00172e-07C20.0586 -0.000625372 15.2248 1.46503 11.1132 4.21161C7.00161 6.9582 3.7968 10.8623 1.90408 15.4304C0.0113599 19.9984 -0.484267 25.025 0.479878 29.8747C1.44402 34.7244 3.82464 39.1793 7.32066 42.676C10.8167 46.1727 15.2711 48.5541 20.1206 49.5192C24.9701 50.4843 29.9969 49.9896 34.5653 48.0977C39.1336 46.2059 43.0384 43.0018 45.7858 38.8907C48.5331 34.7796 49.9997 29.9462 50 25.0016C50.0004 21.7186 49.3542 18.4677 48.0982 15.4345C46.8422 12.4013 45.001 9.64517 42.6798 7.32354C40.3586 5.00191 37.6029 3.16023 34.5699 1.90365C31.5369 0.647069 28.2861 0.000207865 25.0032 2.00172e-07ZM12.8717 12.8606H19.6989V18.2819L12.8701 18.2724L12.8717 12.8606ZM10.7477 26.5483C11.684 26.243 12.8179 25.9489 12.8195 25.136L12.8274 19.6957L19.6989 19.7068V24.3057C19.6989 26.5799 18.9303 27.8593 17.2492 28.3227C19.0094 29.028 19.691 30.2821 19.6878 32.9675V36.9038L12.8005 36.8484V31.7039C12.8005 30.6775 11.6682 30.551 10.7335 30.2331L10.7477 26.5483ZM30.0259 37.6107C23.8345 37.6012 20.8723 34.2975 20.8787 30.1303V28.8651L27.8166 28.8746V29.4234C27.8166 30.7835 28.5188 31.7181 29.8725 31.7197C31.1156 31.7197 31.726 31.1472 31.7276 30.1778C31.7276 27.4244 21.1206 27.872 21.1317 20.1575C21.1317 15.9982 23.7759 12.3751 30.3359 12.3845C36.2317 12.3925 39.1558 15.7057 39.1495 19.8602V21.2155L32.2147 21.206V20.4295C32.2147 19.3114 31.639 18.1933 30.328 18.1917C29.2842 18.1917 28.6801 18.7706 28.6785 19.702C28.6785 22.7464 39.2744 21.9794 39.2744 29.6907C39.2539 33.8594 36.491 37.6202 30.0228 37.6123L30.0259 37.6107Z",fill:"#0D148C",fillRule:"evenodd"})})}),[H.A7.TIKTOK]:e=>(0,o.jsx)(r.Z,{viewBox:"0 0 45 50",...e,children:(0,o.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 45 50",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M32.6591 18.0487C35.8744 20.3554 39.8133 21.7125 44.0675 21.7125V13.497C43.2624 13.4971 42.4593 13.4129 41.6717 13.2454V19.7122C37.4178 19.7122 33.4794 18.355 30.2632 16.0486V32.8142C30.2632 41.2012 23.4884 47.9997 15.1317 47.9997C12.0136 47.9997 9.11548 47.0537 6.70801 45.4312C9.45574 48.2507 13.2877 49.9998 17.527 49.9998C25.8842 49.9998 32.6594 43.2013 32.6594 34.814V18.0487H32.6591V18.0487ZM35.6146 9.76025C33.9714 7.95865 32.8925 5.63041 32.6591 3.05645V1.99976H30.3886C30.9601 5.27126 32.9094 8.06624 35.6146 9.76025ZM11.9936 38.9953C11.0755 37.7873 10.5794 36.3095 10.5816 34.79C10.5816 30.9541 13.6804 27.8439 17.5034 27.8439C18.2159 27.8437 18.9241 27.9532 19.6031 28.1694V19.7702C18.8096 19.6611 18.0088 19.6147 17.2083 19.6317V26.1692C16.5288 25.953 15.8202 25.8432 15.1076 25.8439C11.2845 25.8439 8.18595 28.9538 8.18595 32.7902C8.18595 35.5028 9.73482 37.8513 11.9936 38.9953Z",fill:"#FF004F"}),(0,o.jsx)("path",{d:"M30.2634 16.0484C33.4795 18.3549 37.4179 19.712 41.6718 19.712V13.2452C39.2973 12.7376 37.1953 11.4924 35.6148 9.76025C32.9094 8.06607 30.9603 5.27109 30.3888 1.99976H24.4251V34.8136C24.4116 38.6391 21.3181 41.7366 17.5033 41.7366C15.2552 41.7366 13.2581 40.6612 11.9933 38.9953C9.73465 37.8513 8.18578 35.5026 8.18578 32.7903C8.18578 28.9543 11.2844 25.8441 15.1074 25.8441C15.8399 25.8441 16.5459 25.9585 17.2081 26.1694V19.6319C8.99824 19.8021 2.39551 26.5342 2.39551 34.8138C2.39551 38.9469 4.03974 42.6937 6.70835 45.4314C9.11582 47.0537 12.0139 47.9999 15.132 47.9999C23.4889 47.9999 30.2635 41.201 30.2635 32.8142V16.0484H30.2634Z",fill:"black"}),(0,o.jsx)("path",{d:"M41.672 13.2454V11.4969C39.5308 11.5001 37.4316 10.8983 35.6149 9.76029C37.2231 11.5272 39.3407 12.7456 41.672 13.2454ZM30.389 1.99997C30.3345 1.68732 30.2926 1.37261 30.2635 1.0567V0H22.0292V32.8142C22.0161 36.6391 18.9228 39.7366 15.1076 39.7366C13.9875 39.7366 12.93 39.4698 11.9934 38.9957C13.2583 40.6614 15.2554 41.7366 17.5034 41.7366C21.3179 41.7366 24.4119 38.6394 24.4252 34.814V1.99997H30.389ZM17.2086 19.6321V17.7706C16.5206 17.6762 15.8269 17.6289 15.1324 17.6292C6.77483 17.6291 0 24.4279 0 32.8142C0 38.072 2.66263 42.7056 6.70869 45.4313C4.04008 42.6938 2.39585 38.9468 2.39585 34.8138C2.39585 26.5344 8.99842 19.8023 17.2086 19.6321Z",fill:"#00F2EA"})]})}),[H.A7.SNAPCHAT]:e=>(0,o.jsx)(r.Z,{viewBox:"0 0 50 50",...e,children:(0,o.jsxs)("svg",{fill:"none",height:"16",viewBox:"0 0 50 50",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M0 10.9863C0 4.91875 4.91875 0 10.9863 0H39.0137C45.0813 0 50 4.91875 50 10.9863V39.0137C50 45.0813 45.0813 50 39.0137 50H10.9863C4.91875 50 0 45.0813 0 39.0137V10.9863Z",fill:"#FFFC00"}),(0,o.jsx)("path",{d:"M40.3885 33.496C34.8347 30.8054 33.9496 26.6511 33.9102 26.343C33.8625 25.9697 33.8084 25.6763 34.2199 25.2966C34.6166 24.9298 36.3769 23.8394 36.8653 23.4983C37.6726 22.9334 38.0281 22.3694 37.766 21.6761C37.5828 21.1965 37.1365 21.0158 36.6665 21.0158C36.5182 21.0163 36.3704 21.0329 36.2257 21.0653C35.3387 21.2579 34.4774 21.7027 33.9789 21.8228C33.919 21.8383 33.8575 21.8466 33.7956 21.8476C33.5299 21.8476 33.4291 21.7293 33.4548 21.4092C33.5171 20.439 33.649 18.5453 33.496 16.7763C33.2861 14.3424 32.5018 13.1365 31.5717 12.0699C31.1218 11.5527 29.0326 9.33069 25.0008 9.33069C20.969 9.33069 18.8825 11.5527 18.4354 12.0635C17.5025 13.13 16.7191 14.336 16.5111 16.7698C16.3581 18.5388 16.4955 20.4316 16.5523 21.4028C16.5706 21.7073 16.4772 21.8412 16.2114 21.8412C16.1496 21.8401 16.0881 21.8318 16.0282 21.8164C15.5306 21.6963 14.6693 21.2515 13.7823 21.0589C13.6376 21.0264 13.4898 21.0098 13.3415 21.0094C12.8696 21.0094 12.4252 21.1928 12.2419 21.6697C11.9799 22.363 12.3336 22.9269 13.1436 23.4919C13.632 23.833 15.3923 24.9225 15.789 25.2902C16.1995 25.6699 16.1464 25.9633 16.0987 26.3366C16.0593 26.6493 15.1733 30.8035 9.62036 33.4896C9.29506 33.6473 8.74161 33.9811 9.71749 34.5204C11.2496 35.3677 12.2694 35.2769 13.0621 35.7877C13.7346 36.2215 13.337 37.1569 13.8263 37.4944C14.4274 37.9098 16.2041 37.465 18.4995 38.2234C20.4238 38.858 21.593 40.6509 25.0054 40.6509C28.4177 40.6509 29.6209 38.8498 31.5112 38.2234C33.802 37.465 35.5824 37.9098 36.1845 37.4944C36.6729 37.1569 36.2761 36.2215 36.9487 35.7877C37.7413 35.2769 38.7602 35.3677 40.2932 34.5204C41.2673 33.9876 40.7138 33.6537 40.3885 33.496Z",fill:"white"}),(0,o.jsx)("path",{d:"M42.8044 33.1797C42.5552 32.5011 42.0805 32.1379 41.5399 31.8371C41.4382 31.7775 41.3447 31.7298 41.265 31.6931C41.1037 31.6097 40.9388 31.529 40.7748 31.4437C39.0896 30.5496 37.7738 29.4216 36.8612 28.0845C36.602 27.7081 36.3772 27.3091 36.1895 26.8923C36.1116 26.6695 36.1153 26.5429 36.1712 26.4274C36.2266 26.3384 36.2999 26.2619 36.3865 26.2027C36.6761 26.0111 36.9748 25.8166 37.1773 25.6855C37.5383 25.4517 37.8242 25.2664 38.0084 25.1353C38.7002 24.6511 39.184 24.1366 39.4864 23.5616C39.6974 23.1643 39.8204 22.7263 39.8471 22.2772C39.8739 21.8281 39.8036 21.3785 39.6413 20.959C39.1831 19.7522 38.0441 19.0029 36.6641 19.0029C36.3731 19.0026 36.0828 19.0334 35.7982 19.0946C35.7222 19.1111 35.6461 19.1286 35.5719 19.1478C35.5847 18.3225 35.5664 17.4513 35.4931 16.5938C35.2329 13.5795 34.1782 11.9994 33.0786 10.7393C32.3744 9.94974 31.545 9.28173 30.6238 8.76216C28.9551 7.80842 27.0629 7.32422 25.0003 7.32422C22.9377 7.32422 21.0546 7.80842 19.3842 8.76216C18.4606 9.28188 17.6296 9.95124 16.9248 10.743C15.8252 12.003 14.7705 13.5859 14.5103 16.5975C14.437 17.4549 14.4186 18.3307 14.4306 19.1515C14.3563 19.1322 14.2812 19.1148 14.2051 19.0983C13.9206 19.0371 13.6303 19.0063 13.3392 19.0066C11.9583 19.0066 10.8175 19.7558 10.3612 20.9627C10.1981 21.3824 10.1272 21.8323 10.1532 22.2818C10.1793 22.7314 10.3018 23.1701 10.5124 23.568C10.8157 24.143 11.2995 24.6575 11.9913 25.1417C12.1746 25.2701 12.4614 25.4553 12.8224 25.6919C13.0176 25.8185 13.3026 26.0037 13.582 26.189C13.6798 26.2522 13.7629 26.3357 13.8258 26.4338C13.8844 26.554 13.8863 26.6833 13.7992 26.9217C13.6141 27.3297 13.393 27.7204 13.1385 28.0891C12.2461 29.3959 10.9687 30.5037 9.33766 31.3905C8.47357 31.849 7.57557 32.1553 7.19622 33.187C6.91032 33.9656 7.09725 34.8515 7.8239 35.598C8.09058 35.8766 8.39989 36.1109 8.74022 36.2922C9.44834 36.6816 10.2013 36.9831 10.9824 37.19C11.1436 37.2316 11.2967 37.3001 11.4351 37.3926C11.6999 37.6246 11.6624 37.974 12.0151 38.4858C12.1922 38.7502 12.4172 38.9792 12.6786 39.1607C13.4189 39.6724 14.251 39.7045 15.1325 39.7385C15.9287 39.7687 16.8313 39.8036 17.8622 40.1438C18.2892 40.285 18.7327 40.5583 19.2467 40.8774C20.481 41.6368 22.1707 42.6758 24.9985 42.6758C27.8262 42.6758 29.5278 41.6313 30.7713 40.8692C31.2817 40.5555 31.7224 40.285 32.1375 40.1475C33.1684 39.8063 34.071 39.7724 34.8672 39.7421C35.7487 39.7082 36.5808 39.6761 37.3211 39.1644C37.6306 38.9484 37.8885 38.6665 38.0762 38.339C38.33 37.9071 38.3236 37.6054 38.5618 37.3945C38.6917 37.3063 38.8354 37.2406 38.987 37.2C39.7788 36.9926 40.542 36.6883 41.2595 36.294C41.6211 36.0999 41.9465 35.8449 42.2216 35.5402L42.2308 35.5292C42.9125 34.7992 43.0839 33.939 42.8044 33.1797ZM40.2909 34.5314C38.7579 35.3788 37.739 35.288 36.9464 35.7988C36.2729 36.2326 36.6715 37.1679 36.1822 37.5054C35.5811 37.9208 33.8043 37.4761 31.5089 38.2345C29.6158 38.8608 28.4081 40.6619 25.0031 40.6619C21.598 40.6619 20.4187 38.8645 18.4944 38.2299C16.2036 37.4715 14.4232 37.9163 13.8212 37.5008C13.3328 37.1634 13.7296 36.228 13.057 35.7942C12.2635 35.2834 11.2445 35.3742 9.71243 34.5314C8.73655 33.9922 9.29001 33.6584 9.6153 33.5006C15.1682 30.81 16.0543 26.6557 16.0937 26.3476C16.1413 25.9744 16.1945 25.6809 15.784 25.3013C15.3872 24.9344 13.6269 23.8441 13.1385 23.5029C12.3304 22.938 11.9748 22.374 12.2369 21.6807C12.4202 21.2011 12.8673 21.0204 13.3365 21.0204C13.4848 21.0209 13.6325 21.0375 13.7772 21.07C14.6642 21.2625 15.5256 21.7073 16.0231 21.8274C16.083 21.8428 16.1445 21.8511 16.2064 21.8522C16.4721 21.8522 16.5656 21.7183 16.5473 21.4139C16.4904 20.4427 16.353 18.5499 16.506 16.7809C16.7159 14.347 17.4993 13.1411 18.4303 12.0746C18.8775 11.5619 20.9786 9.33991 24.9966 9.33991C29.0147 9.33991 31.1213 11.5528 31.5685 12.0636C32.5004 13.1301 33.2848 14.336 33.4928 16.7699C33.6458 18.5389 33.5138 20.4326 33.4515 21.4029C33.4304 21.7229 33.5267 21.8412 33.7924 21.8412C33.8542 21.8402 33.9158 21.8319 33.9757 21.8164C34.4741 21.6963 35.3355 21.2515 36.2225 21.059C36.3672 21.0265 36.5149 21.0099 36.6632 21.0094C37.1351 21.0094 37.5795 21.1928 37.7628 21.6697C38.0249 22.363 37.6712 22.927 36.8621 23.4919C36.3737 23.833 34.6134 24.9225 34.2167 25.2903C33.8052 25.6699 33.8593 25.9634 33.9069 26.3366C33.9463 26.6493 34.8315 30.8036 40.3853 33.4896C40.7134 33.6538 41.2668 33.9876 40.2909 34.5314Z",fill:"black"})]})}),[H.A7.MOLOCO]:e=>(0,o.jsx)(r.Z,{viewBox:"0 0 80 80",...e,children:(0,o.jsx)("svg",{fill:"none",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M38.3 42.075L42.6 30.35H42.675L42.575 41.85C42.575 42.175 42.85 42.45 43.175 42.45H46.05C46.375 42.45 46.65 42.175 46.65 41.85V25.925C46.65 25.6 46.375 25.325 46.05 25.325H41.1C40.85 25.325 40.625 25.475 40.55 25.725L36.95 36.3H36.85L33.1 25.725C33.025 25.5 32.8 25.325 32.55 25.325H27.675C27.35 25.325 27.075 25.6 27.075 25.925V38.425C23.15 38.425 13.275 38.425 13.2 38.425C9.225 38.425 5.975 35.175 5.975 31.2C5.975 27.225 9.225 23.975 13.2 23.975C13.275 23.975 15.625 23.875 15.625 23.875C15.9 23.85 16.1 23.6 16.025 23.325L15.525 21.45C15.3 20.65 15.2 19.8 15.2 18.975C15.2 13.75 19.45 9.5 24.675 9.5C26.95 9.5 29.15 10.325 30.875 11.8C32.575 13.275 33.7 15.3 34.025 17.525L34.275 19.15C34.3 19.4 34.55 19.55 34.775 19.5L36.25 19.2C36.675 19.125 37.1 19.075 37.525 19.1C39.4 19.2 41.375 20.325 41.725 22.4C41.75 22.6 41.95 22.75 42.15 22.75H45.425C45.675 22.75 45.875 22.525 45.85 22.275C45.475 17.525 41.55 15.275 37.85 15.1C37.675 15.1 37.525 14.975 37.45 14.8C36.7 12.475 35.325 10.4 33.45 8.775C31 6.65 27.875 5.5 24.65 5.5C17.225 5.5 11.2 11.525 11.2 18.95C11.2 19.2 11.2 19.475 11.225 19.725C11.225 19.95 11.1 20.125 10.9 20.175C5.775 21.25 2 25.85 2 31.15C2 37.325 7.025 42.35 13.2 42.35C13.3 42.35 23.975 42.35 27.525 42.35C27.575 42.35 27.625 42.375 27.675 42.375H30.375C30.7 42.375 30.975 42.1 30.975 41.775L30.875 30.275H30.95L35.125 42C35.2 42.225 35.425 42.4 35.675 42.4H37.75C38 42.475 38.225 42.325 38.3 42.075Z",fill:"#2C7DF5"})})}),[H.A7.APPLOVIN]:e=>(0,o.jsx)(r.Z,{viewBox:"0 0 80 80",...e,children:(0,o.jsxs)("svg",{height:"70",id:"logosandtypes_com",viewBox:"0 0 160 160",width:"70",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M0,0H150V150H0V0Z",fill:"none"}),(0,o.jsx)("path",{d:"M142.7,106.53c-4.36-4.6-12.22-6.25-18.18-3.56h0L88.19,37.51l-.11-.24c8.13-10.78,.33-26.56-13.3-26.53-13.45-.14-21.39,15.68-13.42,26.36-.17,.27-36.31,65.47-36.5,65.8-10.54-4.58-23.13,3.79-22.87,15.35,0,9.16,7.43,16.59,16.59,16.59,13.66,.14,21.56-16.13,13.12-26.72,22.38-6.04,62.64-6.13,86.06,.08-8.31,10.62-.41,26.78,13.2,26.64,14.75,.04,22.1-18.09,11.73-28.32Zm-124.01,21.58c-5.42,.02-9.83-4.35-9.85-9.77,.5-13.03,18.92-13.07,19.58-.08h.05c.02,5.42-4.35,9.83-9.77,9.85ZM74.78,17.53c5.41,.03,9.78,4.4,9.81,9.81-.51,13.02-19.11,13.01-19.63,0,0-5.42,4.39-9.81,9.81-9.81ZM34.35,100.32l32.38-58.43v-.03c4.65,2.72,11.29,2.75,15.96,.08l32.42,58.38c-24.72-5.42-58.35-5.18-80.76,0Zm96.67,27.79c-5.42,.02-9.83-4.35-9.85-9.77-.02-5.42,4.35-9.83,9.77-9.85,5.4,0,9.8,4.37,9.85,9.77,.02,5.42-4.35,9.83-9.77,9.85Z",fill:"#0599c5"})]})}),[H.A7.KANTAR]:e=>(0,o.jsxs)(r.Z,{viewBox:"0 0 170 170",...e,children:[(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_6566_3935",x1:"51.9446",x2:"51.9446",y1:"129.238",y2:"15.8609",children:[(0,o.jsx)("stop",{stopColor:"#EED86C"}),(0,o.jsx)("stop",{offset:"0.01",stopColor:"#EED86C"}),(0,o.jsx)("stop",{offset:"0.0130526",stopColor:"#EBD469"}),(0,o.jsx)("stop",{offset:"0.0452365",stopColor:"#CDB250"}),(0,o.jsx)("stop",{offset:"0.0779731",stopColor:"#B6973D"}),(0,o.jsx)("stop",{offset:"0.1111",stopColor:"#A6832F"}),(0,o.jsx)("stop",{offset:"0.1448",stopColor:"#9C7827"}),(0,o.jsx)("stop",{offset:"0.18",stopColor:"#997424"}),(0,o.jsx)("stop",{offset:"0.2468",stopColor:"#A5832F"}),(0,o.jsx)("stop",{offset:"0.3745",stopColor:"#C5A94B"}),(0,o.jsx)("stop",{offset:"0.51",stopColor:"#EDD86D"}),(0,o.jsx)("stop",{offset:"0.5833",stopColor:"#E4CC65"}),(0,o.jsx)("stop",{offset:"0.71",stopColor:"#CEAE50"}),(0,o.jsx)("stop",{offset:"0.8293",stopColor:"#B3913C"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#8F6C23"})]})}),(0,o.jsx)("mask",{height:"115",id:"mask0_6566_3935",maskUnits:"userSpaceOnUse",width:"14",x:"45",y:"15",children:(0,o.jsx)("path",{d:"M58.0159 15.8936H45.832V129.293H58.0159V15.8936Z",fill:"white"})}),(0,o.jsx)("g",{mask:"url(#mask0_6566_3935)",children:(0,o.jsx)("path",{d:"M58.0159 15.8936H45.832V129.293H58.0159V15.8936Z",fill:"url(#paint0_linear_6566_3935)"})}),(0,o.jsx)("path",{d:"M123.801 15.8926H99.7376L58.6169 72.5423L99.7376 129.192H123.801L82.6801 72.5423L123.801 15.8926ZM45.8238 15.8926H31V129.292H45.9253V15.8926H45.8238Z",fill:"black"})]})};function A(e){var t;return null!==(t=I[e])&&void 0!==t?t:g}},97613:function(e,t,a){a.d(t,{Yl:function(){return E.Y},A7:function(){return M.A},G7:function(){return P.Roles},hh:function(){return N.hh}}),a(55141);var o,r,n,i,d,s,l,c,p,_,u,g,y,m,v,h,f,x,C=a(64809),b=a(66717);class w extends b.eO{}(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",String)],w.prototype,"creativeId",void 0);class j extends w{}(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",Number)],j.prototype,"accountId",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],j.prototype,"date",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",String)],j.prototype,"campaignName",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],j.prototype,"ad_id",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"cost_original_currency",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"cost_usd",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"clicks",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"impressions",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"data_field_4",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"data_field_5",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],j.prototype,"data_field_6",void 0);class H extends j{}H=(0,C.__decorate)([(0,b.JH)({name:"creative_data_no_breakdown",schema:"reports"})],H);class I extends j{}I=(0,C.__decorate)([(0,b.JH)({name:"creative_data_countries",schema:"reports"})],I);class A extends j{}A=(0,C.__decorate)([(0,b.JH)({name:"creative_data_platforms",schema:"reports"})],A);var N=a(95678);N.hh.AD_GROUPS_TABLE,N.hh.AD_TYPES_TABLE,N.hh.RECOMMENDATIONS_TABLE,N.hh.COUNTRIES_TABLE,N.hh.FEATURE_DRILLDOWN_TABLE,N.hh.PLATFORMS_TABLE,N.hh.COMPETITION_CREATIVES_TABLE,N.hh.COMPETITION_TOP_TAGS_TABLE,N.hh.COMPETITION_FEATURE_DRILLDOWN_TABLE,N.hh.DRILLDOWN_BY_AD_TABLE,N.hh.VIEWERS_OVER_TIME_CHART,N.hh.COUNTRIES_CHART,N.hh.PLATFORMS_CHART,N.hh.HEADLINE_TABLE,N.hh.PRIMARY_TEXT_TABLE,N.hh.CTA_TABLE,N.hh.FATIGUE_CHART_1,N.hh.FATIGUE_CHART_2,N.hh.FATIGUE_CHART_3,N.hh.CREATIVES_TABLE,(o=_||(_={})).FATIGUE="fatigue",o.COPY_DATA="copy_data",o.CREATIVES_INFO="creatives_info",o.CREATIVES_DRILLDOWN="creatives_drilldown",o.COMPETITION_TABLE="competition_table",o.COMPETITION_CREATIVES_TABLE="competition_creatives_table",o.CREATIVE_DATA="creative_data",o.CREATIVES_TABLE="creatives_table",(r=u||(u={})).REPORT="report",r.GROUP="group";var O=a(93656),S=a(71775),T=a(29553),E=a(53280),L=a(6418);class R extends T.g{static async findByAccountId(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"postgres",{getTypeormDataSource:o}=a(20912),r=o(t),n=(await r.getRepository(O.Account).find({where:{id:Array.isArray(e)?(0,b.In)(e):e},relations:["product"]}))[0].product.clientId;return await o("postgres").getRepository(R).findOneOrFail({where:{id:n}})}}(0,C.__decorate)([(0,b.sg)(),(0,L.gN)(),(0,C.__metadata)("design:type",String)],R.prototype,"name",void 0),(0,C.__decorate)([(0,b.IF)("Product",e=>e.client),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],R.prototype,"products",void 0),R=(0,C.__decorate)([(0,b.JH)(),(0,L.LP)()],R);var D=a(67714),M=a(21467),k=a(65515),B=a(45086),V=a(52258);class Z extends b.eO{}(0,C.__decorate)([(0,L.gN)(()=>L.ID),(0,b.f_)(),(0,C.__metadata)("design:type",Number)],Z.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)(),(0,L.gN)(),(0,C.__metadata)("design:type",String)],Z.prototype,"name",void 0),(0,C.__decorate)([(0,b.sg)(),(0,L.gN)(),(0,C.__metadata)("design:type",String)],Z.prototype,"symbol",void 0),(0,C.__decorate)([(0,b.hA)(()=>R,e=>e.products,{eager:!0}),(0,L.gN)(()=>R),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],Z.prototype,"client",void 0),(0,C.__decorate)([(0,b.Q_)(e=>e.client),(0,C.__metadata)("design:type",Number)],Z.prototype,"clientId",void 0),(0,C.__decorate)([(0,b.IF)("Account","product"),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],Z.prototype,"accounts",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",Boolean)],Z.prototype,"isActive",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],Z.prototype,"csm",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",Number)],Z.prototype,"verticalId",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],Z.prototype,"logoUrl",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],Z.prototype,"background",void 0),Z=(0,C.__decorate)([(0,b.JH)(),(0,L.LP)(),(0,V.X)('@key(fields: "id")')],Z);var P=a(97862);class F extends b.eO{}(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",Number)],F.prototype,"userId",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",Number)],F.prototype,"accountId",void 0),F=(0,C.__decorate)([(0,b.JH)()],F),(n=g||(g={})).NETWORK="network",n.ACCOUNT="account";class U extends T.g{}(0,C.__decorate)([(0,b.hA)("Widget",{nullable:!1}),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],U.prototype,"widget",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",Number)],U.prototype,"entityId",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],U.prototype,"entityType",void 0),U=(0,C.__decorate)([(0,b.gm)(["entityType","entityId"]),(0,b.JH)({name:"widgets_entities"})],U);let W=[R,Z,P.User,M.Z,O.Account,N.$L,D.jb,k.Os,E.t,S.Ad,B.M,U,I,H,A,F];a(45667);var G=a(92709),J=a(54824);class z{}function Q(e){class t{}return(0,C.__decorate)([(0,L.gN)(()=>[e]),(0,C.__metadata)("design:type",Array)],t.prototype,"items",void 0),(0,C.__decorate)([(0,L.gN)(()=>L.J7),(0,C.__metadata)("design:type",Number)],t.prototype,"total",void 0),(0,C.__decorate)([(0,L.gN)(),(0,C.__metadata)("design:type",Boolean)],t.prototype,"hasMore",void 0),(0,C.__decorate)([(0,L.gN)(),(0,C.__metadata)("design:type",Number)],t.prototype,"limit",void 0),(0,C.__decorate)([(0,L.gN)(),(0,C.__metadata)("design:type",Number)],t.prototype,"page",void 0),t=(0,C.__decorate)([(0,L.LP)()],t)}(0,C.__decorate)([(0,L.gN)({nullable:!0,defaultValue:0}),(0,G.c1)(0),(0,C.__metadata)("design:type",Number)],z.prototype,"page",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0,defaultValue:50}),(0,G.c1)(1),(0,J.Yo)(100),(0,C.__metadata)("design:type",Number)],z.prototype,"take",void 0),z=(0,C.__decorate)([(0,L.n$)()],z);class Y extends b.eO{}(0,C.__decorate)([(0,L.gN)(()=>L.ID),(0,b.bs)("uuid"),(0,C.__metadata)("design:type",String)],Y.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("int",{array:!0}),(0,C.__metadata)("design:type",Array)],Y.prototype,"accounts",void 0),(0,C.__decorate)([(0,b.sg)(),(0,L.gN)(),(0,C.__metadata)("design:type",String)],Y.prototype,"name",void 0),(0,C.__decorate)([(0,b.sg)({type:"simple-enum",enum:_}),(0,L.gN)(()=>_),(0,C.__metadata)("design:type",void 0===_?Object:_)],Y.prototype,"widget",void 0),(0,C.__decorate)([(0,b.sg)(),(0,L.gN)(),(0,C.__metadata)("design:type",Boolean)],Y.prototype,"isDeleted",void 0),(0,C.__decorate)([(0,b.sg)({type:"simple-json"}),(0,C.__metadata)("design:type",Object)],Y.prototype,"filters",void 0),(0,C.__decorate)([(0,b.sg)({type:"simple-enum",enum:u}),(0,C.__metadata)("design:type",void 0===u?Object:u)],Y.prototype,"type",void 0),Y=(0,C.__decorate)([(0,b.JH)()],Y);var K=a(77580);class X extends b.eO{}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],X.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],X.prototype,"networkId",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],X.prototype,"productId",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],X.prototype,"smartBriefRequestsLimit",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],X.prototype,"videoGenerationRequestsLimit",void 0),(0,C.__decorate)([(0,b.sg)("test"===K.env.ENVIRONMENT?{type:"simple-array",nullable:!0}:{type:"text",nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],X.prototype,"featureNames",void 0),X=(0,C.__decorate)([(0,b.JH)({name:"client_settings"})],X);class $ extends b.eO{}(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],$.prototype,"creativeId",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],$.prototype,"ratio",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],$.prototype,"duration",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],$.prototype,"creativeType",void 0),(0,C.__decorate)([(0,b.sg)("text",{array:!0}),(0,C.__metadata)("design:type",Array)],$.prototype,"concept",void 0),(0,C.__decorate)([(0,L.gN)(()=>L.ID),(0,b.f_)(),(0,C.__metadata)("design:type",String)],$.prototype,"id",void 0),$=(0,C.__decorate)([(0,b.JH)()],$);class q extends ${}(0,C.__decorate)([(0,b.sg)(),(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],q.prototype,"productId",void 0),(0,C.__decorate)([(0,b.sg)(),(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],q.prototype,"networkId",void 0),q=(0,C.__decorate)([(0,b.JH)({name:"competition_metadata"})],q);class ee extends b.eO{}(0,C.__decorate)([(0,b.hA)("Network"),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],ee.prototype,"network",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",Number)],ee.prototype,"networkId",void 0),(0,C.__decorate)([(0,b.hA)("Competitor"),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],ee.prototype,"competitor",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",String)],ee.prototype,"competitorId",void 0),(0,C.__decorate)([(0,b.sg)({primary:!0}),(0,C.__metadata)("design:type",String)],ee.prototype,"country",void 0),ee=(0,C.__decorate)([(0,b.gm)(["network","competitor","country"]),(0,b.JH)({name:"competition_countries"})],ee);var et=a(95705),ea=a(77580);(i=y||(y={})).feature="feature",i.tag="tag",i.creativeId="creativeId",(0,L.Tt)(y,{name:"CompetitionFeaturesFields",description:"Used for the competition features filters"});class eo extends b.eO{}(0,C.__decorate)([(0,L.gN)(()=>L.ID),(0,b.f_)(),(0,C.__metadata)("design:type",String)],eo.prototype,"id",void 0),(0,C.__decorate)([(0,b.hA)("Product"),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],eo.prototype,"product",void 0),(0,C.__decorate)([(0,b.hA)("Network"),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],eo.prototype,"network",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],eo.prototype,"creativeId",void 0),(0,C.__decorate)([(0,b.sg)(),(0,L.gN)(),(0,C.__metadata)("design:type",String)],eo.prototype,"feature",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],eo.prototype,"tag",void 0),(0,C.__decorate)([(0,b.Q_)("product"),(0,C.__metadata)("design:type",Number)],eo.prototype,"productId",void 0),(0,C.__decorate)([(0,b.Q_)("network"),(0,C.__metadata)("design:type",Number)],eo.prototype,"networkId",void 0),(0,C.__decorate)([(0,b.sg)("test"===ea.env.ENVIRONMENT?{type:"simple-array",nullable:!0}:{type:"text",nullable:!0,array:!0}),(0,L.gN)(()=>[[Number]],{nullable:"itemsAndList"}),(0,C.__metadata)("design:type",Object)],eo.prototype,"timeIntervals",void 0),eo=(0,C.__decorate)([(0,L.LP)(),(0,b.gm)(["product","network","creativeId","feature"]),(0,b.JH)({name:"competition_features_tags"})],eo);class er extends Q(eo){}er=(0,C.__decorate)([(0,L.LP)()],er);class en extends eo{}(0,C.__decorate)([(0,et.Yl)(),(0,L.gN)(()=>[String],{nullable:!0}),(0,C.__metadata)("design:type",Array)],en.prototype,"creativeIds",void 0),en=(0,C.__decorate)([(0,L.LP)()],en);class ei extends b.eO{}(0,C.__decorate)([(0,L.gN)(()=>L.ID,{nullable:!0}),(0,b.f_)(),(0,C.__metadata)("design:type",String)],ei.prototype,"id",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,b.sg)(),(0,C.__metadata)("design:type",String)],ei.prototype,"name",void 0),ei=(0,C.__decorate)([(0,L.LP)()],ei);class ed extends ei{}(0,C.__decorate)([(0,L.gN)(()=>[String],{nullable:!0}),(0,C.__metadata)("design:type",Array)],ed.prototype,"countries",void 0),(0,C.__decorate)([(0,b.sg)("text",{array:!0,nullable:!0}),(0,C.__metadata)("design:type",Array)],ed.prototype,"categories",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],ed.prototype,"publisherName",void 0),(0,C.__decorate)([(0,b.sg)("text",{array:!0,nullable:!0}),(0,C.__metadata)("design:type",Array)],ed.prototype,"topCountries",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],ed.prototype,"logoUrl",void 0),ed=(0,C.__decorate)([(0,L.LP)(),(0,b.JH)()],ed);class es extends b.eO{}(0,C.__decorate)([(0,b.hA)("Network",{nullable:!0}),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],es.prototype,"network",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",Number)],es.prototype,"networkId",void 0),(0,C.__decorate)([(0,b.hA)("Product","competitors",{nullable:!0}),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],es.prototype,"product",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",Number)],es.prototype,"productId",void 0),(0,C.__decorate)([(0,b.hA)("Competitor",{nullable:!0}),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],es.prototype,"competitor",void 0),(0,C.__decorate)([(0,b.f_)(),(0,C.__metadata)("design:type",String)],es.prototype,"competitorId",void 0);let el=[es=(0,C.__decorate)([(0,b.gm)(["product","network","competitor"]),(0,b.JH)({name:"competitors_products_networks"})],es),eo,ee,ed];class ec{}(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],ec.prototype,"competitorId",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],ec.prototype,"thumbnailUrl",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],ec.prototype,"previewUrl",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],ec.prototype,"creativeId",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],ec.prototype,"impressionsShare",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],ec.prototype,"age",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],ec.prototype,"format",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],ec.prototype,"length",void 0),ec=(0,C.__decorate)([(0,L.LP)()],ec);class ep{}(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],ep.prototype,"accountId",void 0),(0,C.__decorate)([(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",String)],ep.prototype,"originalAccountId",void 0),(0,C.__decorate)([(0,L.gN)(()=>[ec]),(0,C.__metadata)("design:type",Array)],ep.prototype,"creatives",void 0),(0,C.__decorate)([(0,L.gN)(()=>Date),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],ep.prototype,"startDate",void 0),(0,C.__decorate)([(0,L.gN)(()=>Date),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],ep.prototype,"endDate",void 0),ep=(0,C.__decorate)([(0,V.X)('@key(fields: "accountId,originalAccountId")'),(0,L.LP)()],ep);var e_=a(11714);class eu extends ${}(0,C.__decorate)([(0,b.sg)(),(0,L.gN)({nullable:!0}),(0,C.__metadata)("design:type",Number)],eu.prototype,"accountId",void 0),eu=(0,C.__decorate)([(0,b.JH)({name:"creative_metadata"})],eu);var eg=a(43210),ey=a.n(eg);class em extends b.eO{static async deleteByCondition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{getTypeormDataSource:o}=a(20912),r=o(t);return await r.getRepository(em).delete({accountId:e.accountId,userId:e.userId,widgetId:e.widgetId})}static async findByConditions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{getTypeormDataSource:o}=a(20912),r=o(t);return await r.createQueryBuilder(em,"dm").where(t=>{t.where("dm.user_id = :userId AND dm.account_id IN (:...accountIds) AND dm.widget_id IN (:...widgetIds)",{userId:e[0].userId,accountIds:ey()(e.map(e=>e.accountId)),widgetIds:ey()(e.map(e=>e.widgetId))})}).getMany()}static concatMetricIds(e){let t=[];for(let a of e)t.push(...a.metrics);return ey()(t)}}(0,C.__decorate)([(0,b.hA)("Account",{nullable:!0,createForeignKeyConstraints:!1}),(0,C.__metadata)("design:type",Object)],em.prototype,"account",void 0),(0,C.__decorate)([(0,b.sg)(),(0,b.f_)(),(0,C.__metadata)("design:type",Number)],em.prototype,"accountId",void 0),(0,C.__decorate)([(0,b.hA)("User",{nullable:!0,createForeignKeyConstraints:!1}),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],em.prototype,"user",void 0),(0,C.__decorate)([(0,b.sg)(),(0,b.f_)(),(0,C.__metadata)("design:type",Number)],em.prototype,"userId",void 0),(0,C.__decorate)([(0,b.hA)("Widget",{nullable:!0,createForeignKeyConstraints:!1}),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],em.prototype,"widget",void 0),(0,C.__decorate)([(0,b.sg)(),(0,b.f_)(),(0,C.__metadata)("design:type",Number)],em.prototype,"widgetId",void 0),(0,C.__decorate)([(0,b.sg)("text",{array:!0}),(0,C.__metadata)("design:type",Array)],em.prototype,"metrics",void 0),em=(0,C.__decorate)([(0,b.JH)({name:"default_metrics_2"})],em);class ev extends b.eO{}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],ev.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("text"),(0,C.__metadata)("design:type",String)],ev.prototype,"feature",void 0),(0,C.__decorate)([(0,b.IF)(()=>e_.M,"featureId",{onDelete:"NO ACTION",createForeignKeyConstraints:!1}),(0,b.Q2)([{name:"feature",referencedColumnName:"feature"}]),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],ev.prototype,"creativeFeaturesTags",void 0),ev=(0,C.__decorate)([(0,b.JH)({name:"feature"})],ev);var eh=a(77580);class ef extends b.eO{}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],ef.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("text"),(0,C.__metadata)("design:type",String)],ef.prototype,"category",void 0),(0,C.__decorate)([(0,b.sg)("test"===eh.env.ENVIRONMENT?{type:"simple-array",nullable:!0}:{type:"text",nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],ef.prototype,"features",void 0),ef=(0,C.__decorate)([(0,b.JH)({name:"feature_categories"})],ef);class ex extends b.eO{}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],ex.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],ex.prototype,"productId",void 0),(0,C.__decorate)([(0,b.sg)("text"),(0,C.__metadata)("design:type",String)],ex.prototype,"feature",void 0),ex=(0,C.__decorate)([(0,b.JH)({name:"feature"})],ex);class eC extends b.eO{}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],eC.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("text"),(0,C.__metadata)("design:type",String)],eC.prototype,"tag",void 0),(0,C.__decorate)([(0,b.IF)(()=>e_.M,"tagId",{onDelete:"NO ACTION",createForeignKeyConstraints:!1}),(0,b.Q2)([{name:"tag",referencedColumnName:"tag"}]),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],eC.prototype,"creativeFeaturesTags",void 0),eC=(0,C.__decorate)([(0,b.JH)({name:"tag"})],eC);let eb=[eu,q,em,X,Y,e_.M,ef,ev,eC,ex,...el];var ew=a(77580);class ej extends b.eO{}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],ej.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("test"===ew.env.ENVIRONMENT?{type:"simple-array"}:{array:!0,type:"int"}),(0,C.__metadata)("design:type",Array)],ej.prototype,"accountIds",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"brief_id"}),(0,C.__metadata)("design:type",Number)],ej.prototype,"briefId",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"version_id"}),(0,C.__metadata)("design:type",Number)],ej.prototype,"versionId",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],ej.prototype,"feature",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],ej.prototype,"tag",void 0),(0,C.__decorate)([(0,b.sg)({type:"test"===ew.env.ENVIRONMENT?"real":"float8"}),(0,C.__metadata)("design:type",Number)],ej.prototype,"kpi",void 0),(0,C.__decorate)([(0,b.hA)("SmartBrief","clientFeaturesTags",{onDelete:"NO ACTION",createForeignKeyConstraints:!1}),(0,b.Q2)([{name:"brief_id",referencedColumnName:"briefId"},{name:"version_id",referencedColumnName:"versionId"}]),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],ej.prototype,"smartBrief",void 0),ej=(0,C.__decorate)([(0,b.JH)({name:"brief_client_features_tags"})],ej);class eH extends ej{}(0,C.__decorate)([(0,b.sg)("text",{array:!0}),(0,C.__metadata)("design:type",Array)],eH.prototype,"competitorNames",void 0),eH=(0,C.__decorate)([(0,b.JH)({name:"brief_competition_features_tags"})],eH),(d=m||(m={})).LOW="low",d.MEDIUM="medium",d.HIGH="high",(s=v||(v={})).MINE="mine",s.COMPETITOR="competitor",(l=h||(h={})).UNDO="undo",l.REDO="redo",(c=f||(f={})).SUCCESS="success",c.PENDING="pending",c.ERROR="error",c.EMPTY="empty";let eI={targetAudience:", ",keyElements:", ",modeAndTone:", ",instructions:". ",constraints:". "};function eA(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=arguments.length>2?arguments[2]:void 0,{getTypeormDataSource:r}=a(20912);return"postgres"===(o||r()).options.type?{whereCondition:"array[:...accounts::int]",params:e}:{whereCondition:":accounts",params:t?"[".concat(e,"]"):e.sort((e,t)=>e-t).join(",")}}(p=x||(x={})).TOP_LEFT="top-left",p.TOP_CENTER="top-center",p.TOP_RIGHT="top-right",p.CENTER_LEFT="center-left",p.CENTER_CENTER="center-center",p.CENTER_RIGHT="center-right",p.BOTTOM_LEFT="bottom-left",p.BOTTOM_CENTER="bottom-center",p.BOTTOM_RIGHT="bottom-right",p.NOT_INCLUDED="not-included";class eN extends b.eO{static async saveCollection(e,t,a,o,r){let n=e.sort((e,t)=>e-t),{whereCondition:i,params:d}=eA(n,!0,r),s=await r.createQueryBuilder(eN,"collection").where("account_ids =  ".concat(i," and user_id =:userId"),{accounts:d,userId:t}).getOne();if(s)return s.clientFeaturesTags=a,s.competitorFeaturesTags=o,await r.getRepository(eN).save(s),s;let l=eN.create({userId:t,accountIds:n,clientFeaturesTags:a,competitorFeaturesTags:o});return await r.getRepository(eN).save(l),l}}(0,C.__decorate)([(0,b.bs)(),(0,C.__metadata)("design:type",Number)],eN.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("int",{array:!0}),(0,C.__metadata)("design:type",Array)],eN.prototype,"accountIds",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],eN.prototype,"userId",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],eN.prototype,"clientFeaturesTags",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],eN.prototype,"competitorFeaturesTags",void 0),eN=(0,C.__decorate)([(0,b.JH)()],eN);class eO extends b.eO{}(0,C.__decorate)([(0,b.bs)(),(0,C.__metadata)("design:type",Number)],eO.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)({type:"text"}),(0,C.__metadata)("design:type",String)],eO.prototype,"feature",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0}),(0,C.__metadata)("design:type",String)],eO.prototype,"description",void 0),(0,C.__decorate)([(0,b.sg)({default:!0}),(0,C.__metadata)("design:type",Boolean)],eO.prototype,"isInGptInput",void 0),eO=(0,C.__decorate)([(0,b.JH)({name:"feature_description_mapping"})],eO);var eS=a(77580);class eT extends b.eO{static async getMaxBriefId(e){let{getTypeormDataSource:t}=a(20912),o=t(),{whereCondition:r,params:n}=eA(e.sort((e,t)=>e-t)),i=await o.getRepository(eT).createQueryBuilder("smart_brief").select("MAX(brief_id)","maxBriefId").where("account_ids = ".concat(r),{accounts:n}).getRawOne();return null==i?void 0:i.maxBriefId}static async getMinOrMaxVersionIdPerBrief(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"max",{getTypeormDataSource:r}=a(20912),n=r(),{whereCondition:i,params:d}=eA(e.sort((e,t)=>e-t)),s=await n.getRepository(eT).createQueryBuilder("smart_brief").select("".concat(o,"(version_id)"),"".concat(o,"VersionId")).where("account_ids = ".concat(i," and brief_id= :briefId"),{accounts:d,briefId:t}).getRawOne();return"max"===o?null==s?void 0:s.maxVersionId:null==s?void 0:s.minVersionId}static async getActiveVersionIdsPerBrief(e,t){let{getTypeormDataSource:o}=a(20912),r=o(),{whereCondition:n,params:i}=eA(e.sort((e,t)=>e-t)),d=await r.getRepository(eT).createQueryBuilder("smart_brief").select("array_agg( DISTINCT version_id order by version_id)","versionsIds").where("account_ids = ".concat(n," and brief_id= :briefId and deleted_at is null and not( brief ? 'error')"),{accounts:i,briefId:t}).getRawOne();return null==d?void 0:d.versionsIds}static async findSmartBrief(e){var t;let{accounts:o,briefId:r,versionId:n,isCheckLastVersion:i=!1,isArray:d=!0}=e,{getTypeormDataSource:s}=a(20912),l=s(),{whereCondition:c,params:p}=eA(o.sort((e,t)=>e-t),d),_=await l.createQueryBuilder(eT,"smart_brief").where("account_ids = ".concat(c," and brief_id= :briefId and version_id= :versionId"),{accounts:p,briefId:r,versionId:n}).getOneOrFail();return("string"==typeof _.brief&&_.brief&&(_.brief=JSON.parse(_.brief)),_.imageUrls&&"string"==typeof _.imageUrls[0]&&(_.imageUrls=JSON.parse(_.imageUrls.join(","))),_.screenplay&&"string"==typeof _.screenplay[0]&&(_.screenplay=JSON.parse(_.screenplay.join(","))),null!==(t=_.brief)&&Object.keys(t).forEach(e=>{Object.keys(eI).includes(e)?"string"==typeof t[e]&&(t[e]=t[e].split(eI[e])):"string"!=typeof t[e]&&"tags"!==e&&(t[e]=t[e].join(""))}),i)?{...await l.createQueryBuilder(eT,"smart_brief").select("(CASE\n          WHEN version_id = (\n              SELECT \n                MAX(version_id)\n              FROM  \n               ".concat("postgres"===l.options.type?"entities.":"",'smart_brief smart_brief2\n              WHERE \n                smart_brief.brief_id = smart_brief2.brief_id and smart_brief.account_ids = smart_brief2.account_ids\n          ) THEN 1\n          ELSE 0\n        END) AS "isLastVersion"')).where("account_ids = ".concat(c," and brief_id= :briefId and version_id= :versionId"),{accounts:p,briefId:r,versionId:n}).getRawOne(),smartBrief:_}:_}}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],eT.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"brief_id"}),(0,C.__metadata)("design:type",Number)],eT.prototype,"briefId",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"version_id"}),(0,C.__metadata)("design:type",Number)],eT.prototype,"versionId",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],eT.prototype,"networkId",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],eT.prototype,"name",void 0),(0,C.__decorate)([(0,b.sg)("test"===eS.env.ENVIRONMENT?{type:"simple-array"}:{array:!0,type:"int"}),(0,C.__metadata)("design:type",Array)],eT.prototype,"accountIds",void 0),(0,C.__decorate)([(0,b.sg)({type:"simple-enum",enum:m}),(0,C.__metadata)("design:type",void 0===m?Object:m)],eT.prototype,"creativityLevel",void 0),(0,C.__decorate)([(0,b.sg)("int"),(0,C.__metadata)("design:type",Number)],eT.prototype,"duration",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",Number)],eT.prototype,"finalDuration",void 0),(0,C.__decorate)([(0,b.sg)("text",{nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],eT.prototype,"concept",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],eT.prototype,"targetAudience",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],eT.prototype,"brandGuidelines",void 0),(0,C.__decorate)([(0,b.sg)({nullable:!0}),(0,C.__metadata)("design:type",String)],eT.prototype,"messages",void 0),(0,C.__decorate)([(0,b.sg)({type:"simple-enum",enum:v}),(0,C.__metadata)("design:type",void 0===v?Object:v)],eT.prototype,"prioritize",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],eT.prototype,"createdUser",void 0),(0,C.__decorate)([(0,b.er)(),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],eT.prototype,"createdAt",void 0),(0,C.__decorate)([(0,b.er)({nullable:!0,default:null}),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],eT.prototype,"deletedAt",void 0),(0,C.__decorate)([(0,b.er)(),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],eT.prototype,"updatedAt",void 0),(0,C.__decorate)([(0,b.sg)("test"===eS.env.ENVIRONMENT?{type:"simple-array",nullable:!0}:{type:"text",nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],eT.prototype,"screenplay",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0}),(0,C.__metadata)("design:type",Object)],eT.prototype,"brief",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0}),(0,C.__metadata)("design:type",Object)],eT.prototype,"videoDetails",void 0),(0,C.__decorate)([(0,b.sg)("test"===eS.env.ENVIRONMENT?{type:"simple-array",nullable:!0}:{type:"text",nullable:!0,array:!0}),(0,C.__metadata)("design:type",Array)],eT.prototype,"imageUrls",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0}),(0,C.__metadata)("design:type",String)],eT.prototype,"gptInput",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0}),(0,C.__metadata)("design:type",String)],eT.prototype,"gptOutput",void 0),(0,C.__decorate)([(0,b.IF)(()=>ej,"smartBrief",{onDelete:"NO ACTION",createForeignKeyConstraints:!1}),(0,b.Q2)([{name:"brief_id",referencedColumnName:"briefId"},{name:"version_id",referencedColumnName:"versionId"}]),(0,C.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],eT.prototype,"clientFeaturesTags",void 0),eT=(0,C.__decorate)([(0,b.JH)({name:"smart_brief"})],eT);var eE=a(77580);class eL extends b.eO{static async findSmartBriefVideo(e){let{accounts:t,briefId:o,versionId:r,videoId:n,isArray:i=!0}=e,{getTypeormDataSource:d}=a(20912),s=d(),{whereCondition:l,params:c}=eA(t.sort((e,t)=>e-t),i),p=await s.createQueryBuilder(eL,"smart_brief").where("account_ids = ".concat(l," and brief_id= :briefId and version_id= :versionId and video_id= :videoId"),{accounts:c,briefId:o,versionId:r,videoId:n}).getOneOrFail();return"string"==typeof p.state&&(p.state=JSON.parse(p.state)),p}static async getMaxVideoId(e,t,o){let r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],{getTypeormDataSource:n}=a(20912),i=n(),{whereCondition:d,params:s}=eA(e.sort((e,t)=>e-t)),l=await i.getRepository(eL).createQueryBuilder("smart_brief").select("MAX(video_id)","maxVideoId").where("account_ids = ".concat(d," and brief_id = :briefId and version_id = :versionId ").concat(r?"and state->>'status'!= 'error'":""),{accounts:s,briefId:t,versionId:o}).getRawOne();return(null==l?void 0:l.maxVideoId)?null==l?void 0:l.maxVideoId:0}}(0,C.__decorate)([(0,b.bs)("increment"),(0,C.__metadata)("design:type",Number)],eL.prototype,"id",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"brief_id"}),(0,C.__metadata)("design:type",Number)],eL.prototype,"briefId",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"version_id"}),(0,C.__metadata)("design:type",Number)],eL.prototype,"versionId",void 0),(0,C.__decorate)([(0,b.sg)("int",{name:"video_id"}),(0,C.__metadata)("design:type",Number)],eL.prototype,"videoId",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],eL.prototype,"createdUser",void 0),(0,C.__decorate)([(0,b.sg)("test"===eE.env.ENVIRONMENT?{type:"simple-array"}:{array:!0,type:"int"}),(0,C.__metadata)("design:type",Array)],eL.prototype,"accountIds",void 0),(0,C.__decorate)([(0,b.sg)(),(0,C.__metadata)("design:type",String)],eL.prototype,"videoUrl",void 0),(0,C.__decorate)([(0,b.sg)({type:"text",nullable:!0}),(0,C.__metadata)("design:type",Object)],eL.prototype,"state",void 0),(0,C.__decorate)([(0,b.er)(),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],eL.prototype,"createdAt",void 0),(0,C.__decorate)([(0,b.er)(),(0,C.__metadata)("design:type","undefined"==typeof Date?Object:Date)],eL.prototype,"updatedAt",void 0),eL=(0,C.__decorate)([(0,b.JH)({name:"smart_brief_videos"})],eL),[...W],[...W,...eb]},93656:function(e,t,a){a.r(t),a.d(t,{Account:function(){return _}});var o=a(64809),r=a(78056),n=a(6418),i=a(52258),d=a(66717),s=a(45667),l=a(67714),c=a(21467),p=a(95678);class _ extends d.eO{static async findByOriginalAccountId(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{getTypeormDataSource:o}=a(20912),r=o(t);return await r.getRepository(_).findOne({where:{originalAccountId:e}})}static async findAccountsByIds(e){let{accountIds:t,relations:o=["network","metrics"],connectionName:r="postgres",isSameNetworkAndProduct:n=!0}=e,{getTypeormDataSource:i,CACHE_TIMEOUT:s}=a(20912),l=i(r),c=await l.getRepository(_).find({where:{id:(0,d.In)(t)},cache:s,relations:o});if(n&&!this._validateAccountsNetworkAndProduct(c))throw Error("Accounts don't belong to the same network or product");return c}static _validateAccountsNetworkAndProduct(e){let t=e[0],a=e[1];for(let o=2;o<=e.length;o++){if(t.networkId!==a.networkId||t.productId!==a.productId)return!1;t=a,a=e[o]}return!0}static async findAllRelatedAccountIds(e){let{productId:t,networkId:o,connectionName:r="postgres"}=e,{getTypeormDataSource:n,CACHE_TIMEOUT:i}=a(20912),d=n(r);return(await d.getRepository(_).find({where:{productId:t,networkId:o},cache:i})).map(e=>e.id)}static findCurrency(e){let t=e[0].currency,a="USD"===t?"cost_usd":"cost_original_currency";for(let o of e)t!==o.currency&&(t="USD",a="cost_usd");return a}static getLeadingAndThresholds(e){let t=this._getLeadingMetric(e),{thresholdMetric:a,min:o,spendMetric:r,leadingMetricCalc:n,currencySymbol:i}=this.getThresholdAndSpendMetrics(e,t.calc);return t.calc!==n&&n&&(t.calc=n),{thresholdMetric:a,min:o,spendMetric:r,leadingMetric:t,currencySymbol:i}}static _getLeadingMetric(e){let t=e[0].metrics.find(e=>e.leading);for(let a=1;a<e.length;a++){let o=e[a].metrics.find(e=>e.leading);(t.calc!==o.calc||t.metricId!==o.metricId)&&((t=e[0].metrics.find(e=>"CTR"===e.name)).leading=!0)}return t}static getThresholdAndSpendMetrics(e,t){var a,o;let r=e[0].metrics.find(t=>t.metricId===e[0].metricId),n=e[0].metrics.find(e=>"Spend"===e.name),i=e[0].min,d=e[0].currency,s=null!==(o=null===(a=e.at(0))||void 0===a?void 0:a.currencySymbol)&&void 0!==o?o:"$";for(let a=1;a<e.length;a++){let o=e[a],l=o.metrics.find(e=>e.metricId===o.metricId),c=o.metrics.find(e=>"Spend"===e.name);i=Math.min(i,o.min);let p=e[a].currency;if(r.calc!==l.calc&&n.calc!==c.calc){(r=e[0].metrics.find(e=>"Spend"===e.name)).calc="sum(cost_usd)",i=500,n.calc="sum(cost_usd)",d="USD",s="$",null==t||t.replaceAll("cost_original_currency","cost_usd");break}r.calc!==l.calc&&(r=e[0].metrics.find(e=>"Spend"===e.name),i=500),(n.calc!==c.calc||d!==p)&&(n.calc="sum(cost_usd)",d="USD",s="$",null==t||t.replaceAll("cost_original_currency","cost_usd"),r.calc.replaceAll("cost_original_currency","cost_usd"))}return{thresholdMetric:r,spendMetric:n,min:i,currency:d,currencySymbol:s,leadingMetricCalc:t}}constructor(...e){super(...e),this.creatives=new s.R}}(0,o.__decorate)([(0,d.gm)(),(0,n.gN)(()=>n.ID),(0,r.D)(()=>Number),(0,d.f_)(),(0,o.__metadata)("design:type",Number)],_.prototype,"id",void 0),(0,o.__decorate)([(0,d.r$)("User"),(0,d.It)({name:"user_account"}),(0,n.gN)(()=>{let{User:e}=a(97862);return[e]},{defaultValue:[]}),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"users",void 0),(0,o.__decorate)([(0,n.gN)(),(0,d.sg)(),(0,d.gm)(),(0,o.__metadata)("design:type",String)],_.prototype,"name",void 0),(0,o.__decorate)([(0,r.D)(()=>c.Z),(0,d.hA)("Network"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"network",void 0),(0,o.__decorate)([(0,d.sg)(),(0,o.__metadata)("design:type",Number)],_.prototype,"networkId",void 0),(0,o.__decorate)([(0,n.gN)(),(0,d.sg)(),(0,o.__metadata)("design:type",Number)],_.prototype,"min",void 0),(0,o.__decorate)([(0,n.gN)(),(0,d.sg)(),(0,d.gm)(),(0,o.__metadata)("design:type",String)],_.prototype,"originalAccountId",void 0),(0,o.__decorate)([(0,d.hA)("Product","accounts"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"product",void 0),(0,o.__decorate)([(0,d.sg)(),(0,o.__metadata)("design:type",Number)],_.prototype,"productId",void 0),(0,o.__decorate)([(0,d.IF)("Os","account"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"oss",void 0),(0,o.__decorate)([(0,d.IF)("Breakdown","account"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"breakdowns",void 0),(0,o.__decorate)([(0,d.IF)("Ad","account"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"ads",void 0),(0,o.__decorate)([(0,n.gN)(()=>[l.jb]),(0,d.IF)(()=>l.jb,"account"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],_.prototype,"metrics",void 0),(0,o.__decorate)([(0,n.gN)(()=>s.R),(0,o.__metadata)("design:type",void 0===s.R?Object:s.R)],_.prototype,"creatives",void 0),(0,o.__decorate)([(0,n.gN)(()=>[p.$L]),(0,o.__metadata)("design:type",Array)],_.prototype,"widgets",void 0),(0,o.__decorate)([(0,d.sg)({nullable:!0}),(0,n.gN)(),(0,o.__metadata)("design:type",Boolean)],_.prototype,"isActive",void 0),(0,o.__decorate)([(0,d.sg)({nullable:!0}),(0,n.gN)(),(0,o.__metadata)("design:type",String)],_.prototype,"metricId",void 0),(0,o.__decorate)([(0,r.D)(()=>l.jb),(0,n.gN)(()=>l.jb,{nullable:!0}),(0,o.__metadata)("design:type",void 0===l.jb?Object:l.jb)],_.prototype,"metric",void 0),(0,o.__decorate)([(0,d.sg)({nullable:!0}),(0,n.gN)(),(0,o.__metadata)("design:type",String)],_.prototype,"currency",void 0),(0,o.__decorate)([(0,d.sg)({nullable:!0}),(0,n.gN)(),(0,o.__metadata)("design:type",String)],_.prototype,"currencySymbol",void 0),_=(0,o.__decorate)([(0,i.X)('@key(fields: "id")'),(0,n.LP)("Account"),(0,d.JH)()],_)},71775:function(e,t,a){a.d(t,{Ad:function(){return i}});var o=a(64809),r=a(6418),n=a(66717);class i extends n.eO{}(0,o.__decorate)([(0,r.gN)(),(0,n.f_)(),(0,o.__metadata)("design:type",String)],i.prototype,"id",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],i.prototype,"type",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],i.prototype,"status",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],i.prototype,"name",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],i.prototype,"setName",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],i.prototype,"campaignName",void 0),(0,o.__decorate)([(0,n.sg)(),(0,o.__metadata)("design:type",String)],i.prototype,"creativeId",void 0),(0,o.__decorate)([(0,n.Q_)("account"),(0,o.__metadata)("design:type",Number)],i.prototype,"accountId",void 0),(0,o.__decorate)([(0,n.hA)("Account","ads"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],i.prototype,"account",void 0),(0,o.__decorate)([(0,n.sg)(()=>Date),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],i.prototype,"minDate",void 0),(0,o.__decorate)([(0,n.sg)(()=>Date),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],i.prototype,"maxDate",void 0),i=(0,o.__decorate)([(0,r.LP)(),(0,n.gm)(["account","creativeId","campaignName","setName","name","type","status"]),(0,n.JH)({name:"creative_ads"})],i)},29553:function(e,t,a){a.d(t,{g:function(){return i}});var o=a(64809),r=a(6418),n=a(66717);class i extends n.eO{}(0,o.__decorate)([(0,r.gN)(()=>r.ID),(0,n.f_)(),(0,o.__metadata)("design:type",Number)],i.prototype,"id",void 0),i=(0,o.__decorate)([(0,r.LP)()],i)},53280:function(e,t,a){a.d(t,{Y:function(){return r},t:function(){return s}});var o,r,n=a(64809),i=a(6418),d=a(66717);(o=r||(r={})).NO_BREAKDOWN="no breakdown",o.PLATFORM="platform",o.COUNTRY="country";class s extends d.eO{constructor(...e){super(...e),this.type="no breakdown"}}(0,n.__decorate)([(0,i.gN)(),(0,d.f_)(),(0,n.__metadata)("design:type",String)],s.prototype,"id",void 0),(0,n.__decorate)([(0,i.gN)(),(0,d.sg)(),(0,n.__metadata)("design:type",String)],s.prototype,"value",void 0),(0,n.__decorate)([(0,i.gN)(),(0,d.sg)(),(0,n.__metadata)("design:type",String)],s.prototype,"type",void 0),(0,n.__decorate)([(0,d.hA)("Account","breakdowns"),(0,n.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],s.prototype,"account",void 0),(0,n.__decorate)([(0,d.sg)(),(0,n.__metadata)("design:type",String)],s.prototype,"creativeId",void 0),(0,n.__decorate)([(0,d.sg)(()=>Date),(0,n.__metadata)("design:type","undefined"==typeof Date?Object:Date)],s.prototype,"minDate",void 0),(0,n.__decorate)([(0,d.sg)(()=>Date),(0,n.__metadata)("design:type","undefined"==typeof Date?Object:Date)],s.prototype,"maxDate",void 0),(0,n.__decorate)([(0,d.Q_)("account"),(0,n.__metadata)("design:type",Number)],s.prototype,"accountId",void 0),s=(0,n.__decorate)([(0,i.LP)(),(0,d.gm)(["account","creativeId","type","value"]),(0,d.JH)({name:"creative_breakdowns"})],s)},45667:function(e,t,a){a.d(t,{R:function(){return p}});var o=a(64809),r=a(6418),n=a(52258),i=a(11714),d=a(71775),s=a(53280),l=a(65515),c=a(45086);class p{}(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,o.__metadata)("design:type",String)],p.prototype,"id",void 0),(0,o.__decorate)([(0,r.gN)(),(0,o.__metadata)("design:type",Number)],p.prototype,"accountId",void 0),(0,o.__decorate)([(0,r.gN)(()=>[l.Os]),(0,o.__metadata)("design:type",Array)],p.prototype,"oss",void 0),(0,o.__decorate)([(0,r.gN)(()=>[s.t]),(0,o.__metadata)("design:type",Array)],p.prototype,"breakdowns",void 0),(0,o.__decorate)([(0,r.gN)(()=>[d.Ad]),(0,o.__metadata)("design:type",Array)],p.prototype,"ads",void 0),(0,o.__decorate)([(0,r.gN)(()=>[i.M]),(0,o.__metadata)("design:type",Array)],p.prototype,"features",void 0),(0,o.__decorate)([(0,r.gN)(()=>[c.M]),(0,o.__metadata)("design:type",Array)],p.prototype,"previews",void 0),p=(0,o.__decorate)([(0,n.X)('@key(fields: "id,accountId")'),(0,r.LP)()],p)},67714:function(e,t,a){a.d(t,{jb:function(){return u}});var o,r,n,i,d=a(64809),s=a(76913),l=a(6418),c=a(52258),p=a(66717),_=a(77580);(o=n||(n={})).COUNT="count",o.COMPACT_NUMBER="compact number",o.PERCENTAGE="percentage",o.CURRENCY="currency",o.COMPACT_CURRENCY="compact currency",o.DECIMAL="decimal",(r=i||(i={})).AVG="AVG",r.SUM="SUM";class u extends p.eO{format(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";if("number"!=typeof e)return["","-",""];let a=this.design||"",o=this.precision||0;switch(a.trim()){case"count":return["",Number.parseInt(e.toFixed(0)),""];case"compact number":return this._ccFormat(e,o);case"decimal":return["",Number.parseFloat(e.toFixed(o)),""];case"percentage":return["",Number.parseFloat((100*e).toFixed(o)),"%"];case"currency":return[t,Number.parseFloat(e.toFixed(o)),""];case"compact currency":return this._ccFormat(e,o,t);default:return["",e,""]}}formatValueForFilter(e){let t=this.design||"",a=this.precision||0;if(!e)return 0;switch(t.trim()){case"count":return Number.parseInt(e.toFixed(0));case"compact currency":case"compact number":case"currency":case"decimal":return Number.parseFloat(e.toFixed(a));case"percentage":return Number.parseFloat((100*e).toFixed(a));default:return e}}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#77BDD3";return(0,s.d8)(u,{...e,color:"string"==typeof e.color&&/^#[0-9a-fA-F]{8}$|#[0-9a-fA-F]{6}$|#[0-9a-fA-F]{4}$|#[0-9a-fA-F]{3}$/.exec(e.color)?e.color:t})}_ccFormat(e,t){let a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}];for(a=r.length-1;a>0&&!(e>=r[a].value);a--);return[o,Number.parseFloat((e/r[a].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")),r[a].symbol]}}(0,d.__decorate)([(0,l.gN)(),(0,p.sg)(),(0,d.__metadata)("design:type",String)],u.prototype,"id",void 0),(0,d.__decorate)([(0,p.gm)(),(0,p.sg)(),(0,l.gN)(),(0,d.__metadata)("design:type",String)],u.prototype,"name",void 0),(0,d.__decorate)([(0,p.sg)(),(0,l.gN)(),(0,d.__metadata)("design:type",Boolean)],u.prototype,"leading",void 0),(0,d.__decorate)([(0,p.sg)(),(0,l.gN)(),(0,d.__metadata)("design:type",String)],u.prototype,"design",void 0),(0,d.__decorate)([(0,p.sg)(),(0,l.gN)(),(0,d.__metadata)("design:type",Number)],u.prototype,"precision",void 0),(0,d.__decorate)([(0,p.sg)(),(0,l.gN)({nullable:!0}),(0,d.__metadata)("design:type",String)],u.prototype,"color",void 0),(0,d.__decorate)([(0,p.sg)({type:"test"===_.env.ENVIRONMENT?"text":"character varying"}),(0,l.gN)(()=>String),(0,d.__metadata)("design:type","undefined"==typeof Order?Object:Order)],u.prototype,"order",void 0),(0,d.__decorate)([(0,p.sg)(),(0,l.gN)(),(0,d.__metadata)("design:type",String)],u.prototype,"calc",void 0),(0,d.__decorate)([(0,p.f_)(),(0,l.gN)(),(0,d.__metadata)("design:type",String)],u.prototype,"metricId",void 0),(0,d.__decorate)([(0,p.sg)({default:"SUM",nullable:!1}),(0,l.gN)({nullable:!1}),(0,d.__metadata)("design:type",String)],u.prototype,"totalCalc",void 0),(0,d.__decorate)([(0,p.gm)(),(0,p.hA)("Account","metrics"),(0,d.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],u.prototype,"account",void 0),(0,d.__decorate)([(0,l.gN)(),(0,p.f_)(),(0,d.__metadata)("design:type",Number)],u.prototype,"accountId",void 0),u=(0,d.__decorate)([(0,c.X)('@key(fields: "metricId,accountId")'),(0,l.LP)("Metric"),(0,p.JH)({name:"metric"})],u)},21467:function(e,t,a){a.d(t,{A:function(){return r},Z:function(){return p}});var o,r,n=a(64809),i=a(78056),d=a(6418),s=a(66717),l=a(29553),c=a(95678);(o=r||(r={})).FACEBOOK="Facebook",o.INSTAGRAM="Instagram",o.YOUTUBE="Youtube",o.SNAPCHAT="Snapchat",o.TWITTER="Twitter",o.GOOGLE="Google",o.IRON_SOURCE="IronSource",o.TIKTOK="TikTok",o.MOLOCO="Moloco",o.APPLOVIN="AppLovin",o.KANTAR="Kantar";class p extends l.g{constructor(...e){super(...e),this.logo="Facebook"}}(0,n.__decorate)([(0,s.sg)(),(0,d.gN)(),(0,n.__metadata)("design:type",String)],p.prototype,"logo",void 0),(0,n.__decorate)([(0,s.sg)(),(0,d.gN)(),(0,n.__metadata)("design:type",String)],p.prototype,"name",void 0),(0,n.__decorate)([(0,i.D)(()=>c.$L),(0,n.__metadata)("design:type",Array)],p.prototype,"widgets",void 0),p=(0,n.__decorate)([(0,d.LP)(),(0,s.JH)()],p)},65515:function(e,t,a){a.d(t,{Os:function(){return i}});var o=a(64809),r=a(6418),n=a(66717);class i extends n.eO{}(0,o.__decorate)([(0,r.gN)(),(0,n.f_)(),(0,o.__metadata)("design:type",String)],i.prototype,"id",void 0),(0,o.__decorate)([(0,n.sg)({nullable:!0}),(0,r.gN)({nullable:!0}),(0,o.__metadata)("design:type",String)],i.prototype,"os",void 0),(0,o.__decorate)([(0,n.hA)("Account","oss"),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],i.prototype,"account",void 0),(0,o.__decorate)([(0,n.sg)(),(0,o.__metadata)("design:type",String)],i.prototype,"creativeId",void 0),(0,o.__decorate)([(0,n.Q_)("account"),(0,o.__metadata)("design:type",Number)],i.prototype,"accountId",void 0),(0,o.__decorate)([(0,n.sg)(()=>Date),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],i.prototype,"minDate",void 0),(0,o.__decorate)([(0,n.sg)(()=>Date),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],i.prototype,"maxDate",void 0),i=(0,o.__decorate)([(0,r.LP)(),(0,n.gm)(["account","creativeId"]),(0,n.JH)({name:"creative_os"})],i)},45086:function(e,t,a){a.d(t,{M:function(){return i}});var o=a(64809),r=a(6418),n=a(66717);class i extends n.eO{}(0,o.__decorate)([(0,n.f_)(),(0,o.__metadata)("design:type",String)],i.prototype,"id",void 0),(0,o.__decorate)([(0,n.hA)("Account",{nullable:!0}),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],i.prototype,"account",void 0),(0,o.__decorate)([(0,r.gN)(),(0,n.sg)(),(0,o.__metadata)("design:type",String)],i.prototype,"creativeId",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)(),(0,o.__metadata)("design:type",String)],i.prototype,"thumbnailUrl",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)(),(0,o.__metadata)("design:type",String)],i.prototype,"previewUrl",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,n.sg)({nullable:!0}),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],i.prototype,"date",void 0),i=(0,o.__decorate)([(0,r.LP)(),(0,n.gm)(["account","creativeId"]),(0,n.JH)({name:"creative_preview"})],i)},97862:function(e,t,a){a.r(t),a.d(t,{Roles:function(){return r},User:function(){return p}});var o,r,n=a(64809),i=a(78056),d=a(6418),s=a(52258),l=a(66717),c=a(77580);(o=r||(r={})).USER="user",o.ADMIN="admin",o.TAG_ADMIN="tag-admin",o.TAG_USER="tag-user",o.USER_MANAGER="user-manager",(0,d.Tt)(r,{name:"Roles",description:"Available user roles"});class p extends l.eO{static getDevelopmentUser(){return c.env.DEVELOPMENT_EMAIL||"development@alison.ai"}static async findUserByField(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"postgres",r=arguments.length>3?arguments[3]:void 0,{getTypeormDataSource:n}=a(20912),i=n(o);return await i.getRepository(p).findOneOrFail({where:{[e]:t},relations:["accounts"],order:{id:"asc"},...r})}}(0,n.__decorate)([(0,l.gm)(),(0,d.gN)(()=>d.ID),(0,l.f_)(),(0,l.bs)("increment"),(0,n.__metadata)("design:type",Number)],p.prototype,"id",void 0),(0,n.__decorate)([(0,i.D)(()=>{let{Account:e}=a(93656);return e}),(0,d.gN)(()=>{let{Account:e}=a(93656);return[e]}),(0,l.r$)("Account"),(0,l.It)({name:"user_account"}),(0,n.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],p.prototype,"accounts",void 0),(0,n.__decorate)([(0,l.sg)(),(0,d.gN)(),(0,n.__metadata)("design:type",String)],p.prototype,"role",void 0),(0,n.__decorate)([(0,l.gm)(),(0,l.sg)(),(0,d.gN)(),(0,n.__metadata)("design:type",String)],p.prototype,"email",void 0),(0,n.__decorate)([(0,l.sg)({select:!1}),(0,n.__metadata)("design:type",String)],p.prototype,"password",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0}),(0,d.gN)({nullable:!0}),(0,n.__metadata)("design:type",String)],p.prototype,"firstName",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0}),(0,d.gN)({nullable:!0}),(0,n.__metadata)("design:type",String)],p.prototype,"lastName",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0}),(0,d.gN)({nullable:!0}),(0,n.__metadata)("design:type",Boolean)],p.prototype,"isStatus",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0}),(0,d.gN)({nullable:!0}),(0,n.__metadata)("design:type",Boolean)],p.prototype,"isFutureProductAccess",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0}),(0,d.gN)({nullable:!0}),(0,n.__metadata)("design:type",Boolean)],p.prototype,"isNotification",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0,select:!1}),(0,n.__metadata)("design:type",String)],p.prototype,"token",void 0),(0,n.__decorate)([(0,l.sg)({nullable:!0,select:!1}),(0,n.__metadata)("design:type",String)],p.prototype,"sessionToken",void 0),(0,n.__decorate)([(0,l.er)(),(0,n.__metadata)("design:type","undefined"==typeof Date?Object:Date)],p.prototype,"createdAt",void 0),(0,n.__decorate)([(0,l.er)(),(0,n.__metadata)("design:type","undefined"==typeof Date?Object:Date)],p.prototype,"updatedAt",void 0),p=(0,n.__decorate)([(0,s.X)('@key(fields: "id")'),(0,d.LP)(),(0,l.JH)()],p)},95678:function(e,t,a){a.d(t,{$L:function(){return _},hh:function(){return n}});var o,r,n,i,d=a(64809),s=a(6418),l=a(52258),c=a(66717),p=a(67714);(o=n||(n={})).AD_GROUPS_TABLE="ad groups table",o.AD_TYPES_TABLE="ad types table",o.COMPETITION_CREATIVE_PREVIEW="competition creative preview",o.COMPETITION_CREATIVES_TABLE="competition creatives table",o.COMPETITION_FEATURE_DRILLDOWN_TABLE="competition feature drilldown table",o.COMPETITION_TAGS_TABLE="competition tags table",o.COMPETITION_TOP_TAGS_TABLE="competition top tags table",o.COUNTRIES_CHART="countries chart",o.COUNTRIES_TABLE="countries table",o.CREATIVE_PREVIEW="creative preview",o.CREATIVES_TABLE="creatives table",o.CTA_TABLE="cta table",o.DRILLDOWN_BY_AD_TABLE="drilldown by ad table",o.FATIGUE_CHART_1="fatigue chart 1",o.FATIGUE_CHART_2="fatigue chart 2",o.FATIGUE_CHART_3="fatigue chart 3",o.FEATURE_DRILLDOWN_TABLE="feature drilldown table",o.HEADLINE_TABLE="headline table",o.PLATFORMS_TABLE="platforms table",o.PLATFORMS_CHART="platfroms chart",o.PRIMARY_TEXT_TABLE="primary text table",o.RECOMMENDATIONS_TABLE="recommendations table",o.TAGS_TABLE="tags table",o.VIEWERS_OVER_TIME_CHART="viewers over time chart",(r=i||(i={}))[r.RECOMMENDATIONS_TABLE=1]="RECOMMENDATIONS_TABLE",r[r.FEATURE_DRILLDOWN_TABLE=2]="FEATURE_DRILLDOWN_TABLE",r[r.PLATFORMS_TABLE=3]="PLATFORMS_TABLE",r[r.COUNTRIES_TABLE=4]="COUNTRIES_TABLE",r[r.AD_TYPES_TABLE=5]="AD_TYPES_TABLE",r[r.AD_GROUPS_TABLE=6]="AD_GROUPS_TABLE",r[r.CREATIVES_TABLE=7]="CREATIVES_TABLE",r[r.PLATFORMS_CHART=10]="PLATFORMS_CHART",r[r.COUNTRIES_CHART=11]="COUNTRIES_CHART",r[r.VIEWERS_OVER_TIME_CHART=12]="VIEWERS_OVER_TIME_CHART",r[r.DRILLDOWN_BY_AD_TABLE=13]="DRILLDOWN_BY_AD_TABLE",r[r.FATIGUE_CHART_1=14]="FATIGUE_CHART_1",r[r.FATIGUE_CHART_2=15]="FATIGUE_CHART_2",r[r.FATIGUE_CHART_3=16]="FATIGUE_CHART_3",r[r.PRIMARY_TEXT_TABLE=17]="PRIMARY_TEXT_TABLE",r[r.HEADLINE_TABLE=18]="HEADLINE_TABLE",r[r.CTA_TABLE=19]="CTA_TABLE",r[r.COMPETITION_TOP_TAGS_TABLE=20]="COMPETITION_TOP_TAGS_TABLE",r[r.COMPETITION_FEATURE_DRILLDOWN_TABLE=21]="COMPETITION_FEATURE_DRILLDOWN_TABLE";class _ extends c.eO{}(0,d.__decorate)([(0,c.gm)(),(0,s.gN)(()=>s.ID),(0,c.f_)(),(0,d.__metadata)("design:type",Number)],_.prototype,"id",void 0),(0,d.__decorate)([(0,s.gN)(),(0,c.sg)(),(0,d.__metadata)("design:type",Number)],_.prototype,"min",void 0),(0,d.__decorate)([(0,s.gN)(),(0,c.sg)(),(0,d.__metadata)("design:type",Number)],_.prototype,"max",void 0),(0,d.__decorate)([(0,s.gN)(),(0,c.sg)(),(0,d.__metadata)("design:type",String)],_.prototype,"name",void 0),(0,d.__decorate)([(0,s.gN)(()=>[p.jb],{nullable:!0}),(0,d.__metadata)("design:type",Array)],_.prototype,"selectedMetrics",void 0),(0,d.__decorate)([(0,s.gN)({nullable:!0}),(0,d.__metadata)("design:type",Number)],_.prototype,"accountId",void 0),_=(0,d.__decorate)([(0,l.X)('@key(fields: "id,accountId")'),(0,s.LP)(),(0,c.JH)()],_)},11714:function(e,t,a){a.d(t,{M:function(){return s}});var o=a(64809),r=a(6418),n=a(52258),i=a(66717),d=a(77580);class s extends i.eO{}(0,o.__decorate)([(0,r.gN)(()=>r.ID),(0,i.f_)(),(0,o.__metadata)("design:type",String)],s.prototype,"id",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,i.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],s.prototype,"feature",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,i.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],s.prototype,"tag",void 0),(0,o.__decorate)([(0,i.sg)(()=>Date),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],s.prototype,"minDate",void 0),(0,o.__decorate)([(0,i.sg)(()=>Date),(0,o.__metadata)("design:type","undefined"==typeof Date?Object:Date)],s.prototype,"maxDate",void 0),(0,o.__decorate)([(0,i.sg)("test"===d.env.ENVIRONMENT?{type:"simple-array",nullable:!0}:{type:"text",nullable:!0,array:!0}),(0,r.gN)(()=>[[Number]],{nullable:"itemsAndList"}),(0,o.__metadata)("design:type",Object)],s.prototype,"timeIntervals",void 0),(0,o.__decorate)([(0,i.sg)(),(0,r.gN)({nullable:!0}),(0,o.__metadata)("design:type",Number)],s.prototype,"accountId",void 0),(0,o.__decorate)([(0,r.gN)({nullable:!0}),(0,i.sg)({nullable:!0}),(0,o.__metadata)("design:type",String)],s.prototype,"creativeId",void 0),(0,o.__decorate)([(0,i.hA)("Feature","creativeFeaturesTags",{onDelete:"NO ACTION",createForeignKeyConstraints:!1}),(0,i.Q2)([{name:"feature",referencedColumnName:"feature"}]),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],s.prototype,"features",void 0),(0,o.__decorate)([(0,i.hA)("Tag","creativeFeaturesTags",{onDelete:"NO ACTION",createForeignKeyConstraints:!1}),(0,i.Q2)([{name:"tag",referencedColumnName:"tag"}]),(0,o.__metadata)("design:type","undefined"==typeof Relation?Object:Relation)],s.prototype,"tags",void 0),s=(0,o.__decorate)([(0,n.X)('@key(fields: "creativeId,accountId,feature,tag")'),(0,r.LP)(),(0,i.gm)(["accountId","creativeId","feature"]),(0,i.JH)({name:"creative_features_tags"})],s)},38438:function(e,t,a){a.d(t,{S:function(){return o.S}});var o=a(35797);a(22383)},22383:function(e,t,a){a.r(t),a.d(t,{TrpcProvider:function(){return h}});var o=a(24004),r=a(14978),n=a(50775),i=a(52906),d=a(83500),s=a(95083),l=a(81453),c=a(33756),p=a(23656),_=a(35797),u=a(16119);let g=()=>{let e=(0,d.useQueryClient)(),{mutate:t}=_.S.common.log.useMutation();return(0,r.useEffect)(()=>{let a=e.getQueryCache(),o=a.config.onError;a.config.onError=(e,a)=>{let r="Request Error: ";e instanceof Error&&(r+="".concat(e.message," - ").concat(e.stack)),e instanceof u.ss&&(r+=" - ".concat(JSON.stringify(e.data))),t({severity:"error",msg:r,app:"creative-manager"}),o&&o(e,a)}},[e,t]),null};var y=a(42553);let m=()=>e=>{let{next:t,op:a}=e;return(0,y.LO)(e=>{let o="common/".concat(a.path);return"undefined"!=typeof Cypress&&"true"===Cypress.env("DISABLE_TRPC_URL_RESOLVER")&&(o=a.path),function(e,t){if("undefined"!=typeof Cypress&&"true"===Cypress.env("DISABLE_TRPC_URL_RESOLVER"))return!1;for(let a of t)if(e.startsWith(a))return!0;return!1}(a.path,["briefManager.","version.","collection.","generate."])&&(o="smart-brief/".concat(a.path)),t({...a,path:o}).subscribe({next(t){e.next(t)},error(t){e.error(t)},complete(){e.complete()}})})};a(77580);let v=(e,t)=>e.message===t,h=e=>{let{children:t,cookie:a=""}=e,[u]=(0,r.useState)(()=>new n.S({queryCache:new i.t({onSuccess:(e,t)=>{t.options.onSuccess&&t.options.onSuccess(e)},onError:(e,t)=>{if(t.options.onError&&!t.options.onError(e))return;let a=!1;v(e,"UNAUTHORIZED")&&(c.Z.remove("token"),a=!0),v(e,"FORBIDDEN")&&(c.Z.remove("redirect"),a=!0),a&&(window.location.href="/login")}}),defaultOptions:{queries:{retry:!1},mutations:{retry:!1}}})),[y]=(0,r.useState)(()=>_.S.createClient({links:[m,(0,l.b)({url:"/trpc",transformer:p.ZP,headers:()=>({cookie:a})})]}));return(0,o.jsx)(_.S.Provider,{client:y,queryClient:u,children:(0,o.jsx)(d.QueryClientProvider,{client:u,children:(0,r.createElement)(s.V?s.V:r.Fragment,void 0,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{}),t]}))})})}},35797:function(e,t,a){a.d(t,{S:function(){return o}});let o=(0,a(98484).ec)()},20912:function(e,t,a){a.r(t),a.d(t,{getTypeormDataSource:function(){return r}});var o=a(43528);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return o.Container.get(e)}},66717:function(e,t,a){a.d(t,{IF:function(){return u},In:function(){return r},It:function(){return c},JH:function(){return y},Q2:function(){return l},Q_:function(){return g},bs:function(){return d},eO:function(){return o},er:function(){return i},f_:function(){return s},gm:function(){return m},hA:function(){return _},r$:function(){return p},sg:function(){return n}});class o{static create(e){return{}}}function r(e){return null}function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){}}function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function d(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function p(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function _(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function u(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function g(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function y(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}function m(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}}}]);