1"use strict";(self.rspackChunk=self.rspackChunk||[]).push([[3261],{2006:function(e,t,n){n.r(t),n.d(t,{Broadcasts:function(){return rn},FiltersContainer:function(){return rc}});var r,o,i,a,s,l,c,u,d,p,h,f,x,m,g,b,y,j,v,w,S,D,E,C,$,M,O,A,k,T,F,z,B,P,Y,I,N,W,L,_,R,G,U,q,H,Z,V,K,Q,X,J,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ep,eh,ef,ex,em,eg,eb,ey,ej,ev,ew=n(74848),eS=n(96540),eD=n(8814),eE=n(2543),eC=n.n(eE),e$=n(46460),eM=n(40062),eO=n(31219),eA=n(84122),ek=n(79396),eT=n(79536),eF=n(23165),ez=n(25014),eB=n(65596),eP=n(94463),eY=n(67177),eI=n(26164),eN=n(6419),eW=n(9772),eL=n(73683),e_=n(44412),eR=n(87876),eG=n(69073),eU=n(81849),eq=n(96865),eH=n(13322),eZ=n(65181),eV=n(77515),eK=n(63770),eQ=n(94198),eX=n(76772),eJ=n(29515),e0=n(18003);function e1(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var e2=e=>{var t=e.setShowStatusLegend,n=eS.useRef(),r=(0,e0.k)(e=>e<600,500);(0,eJ.Ls)(n,t);var o=[{name:"Draft",color:"".concat(eK.T.draftGray),description:"A rough draft of your broadcast."},{name:"Scheduled",color:"".concat(eK.T.statusDotScheduled),description:"This broadcast will automatically begin at the scheduled date and time. You can still make edits or reschedule for a different date."},{name:"Processing",color:"".concat(eK.T.gold),description:"Contacts are currently uploading: once fully uploaded, messages will be sent out."},{name:"In Queue",color:"".concat(eK.T.statusDotInQueue),description:"This broadcast will send once the current in-progress broadcast is completed."},{name:"In Progress",color:"".concat(eK.T.progressBlue),description:"Messages are being sent out and are sent out one at a time. Only one broadcast can be in progress at once, per inbox."},{name:"Completed",color:"".concat(eK.T.statusDotCompleted),description:"All messages have been sent out."},{name:"Failed",color:"".concat(eK.T.red),description:"Broadcast messages failed to send."}].map(e=>(0,ew.jsxs)(e5,{$isMobile:r,children:[(0,ew.jsxs)(e6,{children:[(0,ew.jsx)(eX.m,{$color:e.color}),(0,ew.jsx)(eV.EY,{fontWeight:"800",fontSize:"12px !important",children:e.name.toUpperCase()})]}),(0,ew.jsx)(e4,{children:(0,ew.jsx)(eV.EY,{fontSize:"12px !important",children:e.description})})]}));return(0,ew.jsxs)(e3,{$isMobile:r,ref:n,children:[(0,ew.jsx)(eV.EY,{fontSize:"12px !important",fontWeight:"800",margin:"0px 0px 10px 0px",padding:"20px 0px 0px 0px",children:"STATUSES"}),o]})},e5=(0,e$.default)(eQ.aZ)(s||(s=e1(["\n padding: 10px 0px;\n border-top: 1px solid rgba(192, 179, 165, 0.25);\n height: ",";\n"])),e=>e.$isMobile?"auto":"65px"),e3=(0,e$.default)(eQ.I1)(l||(l=e1(["\n position: absolute;\n white-space: normal;\n right: 0;\n top: 50px;\n bottom: 0;\n padding: 10px 25px;\n width: 475px;\n min-width: 475px;\n height: fit-content;\n border-radius: 10px;\n z-index: 1;\n background: white;\n box-shadow: 0px 1px 3px 0px rgba(19, 10, 46, 0.13);\n box-shadow: 0px 3px 14px 0px rgba(19, 10, 46, 0.03);\n box-shadow: 0px 8px 32px 0px rgba(19, 10, 46, 0.07);\n box-shadow: 0px 30px 84px 0px rgba(19, 10, 46, 0.08);\n text-transform: none;\n color: black;\n\n ","\n"])),e=>e.$isMobile&&"\n left: 0;\n right: 0;\n top: 110px;\n width: 97%;\n min-width: 97%;\n margin: 0 auto;\n "),e4=e$.default.div(c||(c=e1(["\n padding-left: 20px;\n ","\n"])),e=>e.$isMobile&&"\n padding-left: 0;\n "),e6=(0,e$.default)(eQ.M8)(u||(u=e1(["\n min-width: 150px;\n align-items: center;\n ","\n"])),e=>e.$isMobile&&"\n min-width: 130px;\n "),e7=n(55724),e8=n(39748),e9=n(14813);function te(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tn=e=>{var t,n=e.handleLearnMoreClick,r=(0,e0.k)(e=>e<600,500),o=(0,eS.useContext)(ek.G1).category,i=(function(e){if(Array.isArray(e))return e}(t=(0,e8.XW)(o))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{o=(t=t.call(e)).next,!1;for(;!(s=(n=o.call(t)).done)&&(a.push(n.value),1!==a.length);s=!0);}catch(e){l=!0,r=e}
1finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(t)||function(e){if(e){if("string"==typeof e)return tt(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tt(e,1)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],a="draft"===o,s="lite-plan-4"===(0,eS.useContext)(e9.P).plan;return(0,ew.jsx)(to,{$draft:a,children:(0,ew.jsxs)(tr,{$isMobile:r,children:[(0,ew.jsx)("img",{className:a?"":"mw-130",src:e7,alt:"welcome"}),a&&(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsxs)(ti,{$isMobile:r,children:[(0,ew.jsx)("p",{className:"fsz-24 bold-900",children:"Welcome to Broadcasts"}),s&&(0,ew.jsx)("span",{children:"LITE"})]}),(0,ew.jsx)("p",{className:"fsz-14 my-10 center mw-380",children:s?"Send one-on-one direct messages to a group of contacts. With the Lite plan, your inbox has a limit of sending to 100 contacts per broadcast.":"Send one-on-one direct messages to a group of contacts."})]}),!a&&(0,ew.jsx)(ew.Fragment,{children:(0,ew.jsxs)("p",{className:"fsz-14 my-10 center",children:["No ",i," Broadcasts"]})}),(0,ew.jsx)(ek.Eb,{path:"broadcast_v2/new",children:(0,ew.jsx)("span",{style:{cursor:"pointer"},className:"button bright-green fit-content fsz-16 mb-10 bold-600",children:"Create Broadcast"})}),a&&(0,ew.jsx)("button",{type:"button",className:"button pale-green fit-content px-45 bold-600",style:{fontSize:"16px",background:eK.T.mint},onClick:n,children:"Learn More"})]})})},tr=(0,e$.default)(eQ.zl)(d||(d=te(["\n padding: 50px;\n"]))),to=(0,e$.default)(eQ.so)(p||(p=te(["\n height: 100%;\n width: 100%;\n justify-content: center;\n background: ",";\n align-items: ",";\n"])),eK.T.sand,e=>e.$draft?"center":"baseline"),ti=(0,e$.default)(eQ.so)(h||(h=te(["\n align-items: center;\n ","\n span {\n background: ",";\n color: ",";\n font-size: 13px;\n font-weight: 800 !important;\n width: 48px;\n height: 22px;\n padding: 3px 10x;\n border-radius: 30px;\n text-align: center;\n line-height: 22px;\n margin-left: 7px;\n }\n"])),e=>e.$isMobile&&"\n flex-direction: column;\n ",eK.T.oliveGreen,eK.T.white),ta=n(70074),ts=n(22241),tl=n(77973),tc=n(40687),tu=n(83211),td=n(49274);function tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var tf=(0,e$.default)(eQ.Zl)(f||(f=th(["\n position: absolute;\n bottom: 0;\n top: 0;\n left: 0;\n right: 0;\n background: ",";\n width: 100%;\n z-index: 1000;\n"])),e=>{var t=e.$background;return void 0===t?"hsla(0, 0%, 0%, 0.65)":t}),tx=(0,e$.default)(eQ.zl)(x||(x=th(["\n border-radius: 16px;\n background-color: #FFFFFF;\n padding: 20px;\n width: ",";\n height: ",";\n ","\n"])),e=>e.$isMobile?"90%":"562px",e=>e.$isMobile?"90%":"449px",e=>e.$isMobile&&"\n justify-content: flex-start;\n "),tm=e$.default.div(m||(m=th(["\n padding: ",";\n background: rgba(251, 248, 243, 1);\n border: 1px solid rgba(224, 198, 183, 1);\n border-radius: 10px;\n width: 522px;\n height: ",";\n overflow: scroll;\n margin: 0px 0px 10px;\n"])),e=>e.$isMobile?"15px":"20px",e=>e.$isMobile?"75%":"247px"),tg=(0,e$.default)(eQ.Zl)(g||(g=th(["\n border: 2px solid ",";\n border-radius: 10px;\n min-width: 15px;\n height: 15px;\n font-weight: 800;\n margin-right: 10px;\n"])),eK.T.red),tb=e$.default.hr(b||(b=th(["\n border: 1px solid "," !important;\n width: 8px;\n border-radius: 10px;\n"])),eK.T.red),ty=(0,e$.default)(eQ.aZ)(y||(y=th(["\n margin-bottom: 5px;\n"]))),tj=["Tobacco (prohibited on Toll Free, allowed on Short Code and Long Code numbers as long as proper age gating procedures are in place)","Firearms and Alcohol (allowed on Toll Free, Short Code, and Long Code numbers as long as proper age gating procedures are in place)","Hate speech, Harassment, Exploitative or Abusive messaging, or any Communications originating from a hate group","High-risk Financial Services (ie. Student loans, Cryptocurrency, Third-party loans, Debt Collection or Forgiveness Programs, Credit Repair Programs, etc.)","Federally Illegal Substances: Cannabis/CBD (including Vaping or infused products), Prescription Drugs","Malicious content (ie. Malware, Viruses)","Third-party Lead Generation Services","Pyramid Schemes and Gambling","Sexual Harassment or Soliciting Sex Acts"],tv=()=>{var e=(0,e0.k)(e=>e<600,500);return(0,ew.jsxs)(tw,{children:[(0,ew.jsx)(eV.EY,{fontSize:e?"16px !important":"14px !important",fontWeight:"800",margin:"0px 0px 5px !important",children:"Prohibited Categories"}),tj.map(e=>(0,ew.jsxs)(ty,{children:[(0,ew.jsx)(tg,{children:(0,ew.jsx)(tb,{})}),(0,ew.jsx)(eV.EY,{fontSize:"13px !important",fontWeight:"800",children:e})]},td.c()))]})},tw=e$.default.div(j||(j=th(["\n margin-bottom: 10px;\n"]))),tS=e$.default.img(v||(v=th(["\n width: 50px;\n"]))),tD=[{title:"Consent",bullets:["Prior to sending the first message, you must obtain agreement from your audience to communicate with them - this is referred to as consent.","You need to keep a record of the consent to receive messages (ie. a copy of the document or form that your audience signed, or a t
1imestamp of when they completed a sign-up flow).","Consent applies only between you and your audience - you cannot send messages on behalf of other brands or companies you may have.","Consent is given if your audience messages you - the inbound message constitutes as consent and proof of consent.","Consent cannot be bought, sold, or exchanged (ie. you cannot obtain consent by purchasing a phone list from a third-party)."]},{title:"Opt-Out",bullets:["Your audience must have the ability to revoke consent at any time by replying with an opt-out keyword. You may deliver one final message to confirm that the opt-out has been processed, but any subsequent messages are not allowed."]},{title:"MMS",bullets:["Avochato will attempt to deliver each broadcast's message and MMS attachments separately.","Do not include critical or sensitive information in your MMS attachment.","Not all cellular networks support MMS broadcasting equally, so delivery of attachments is not guaranteed.","Avochato is not liable for the delivery of any MMS attachments.","Avochato cannot guarantee delivery of MMS attachments to all audience members - this is dependent on their provider.","Your audience may receive the SMS but not the MMS attachment, or they may see delays in receiving the MMS attachment.","Avochato cannot guarantee the order in which your MMS attachment and SMS will be received - this is due to carrier variance and network limitations."]}].map(e=>{var t=e.title,n=e.bullets;return(0,ew.jsxs)(tw,{children:[(0,ew.jsx)(eV.EY,{fontSize:"14px !important",fontWeight:"800",margin:"0px 0px 5px !important",children:t}),(0,ew.jsx)(eV.hU,{fontSize:"13px !important",fontWeight:"500",padding:"5px 0 0 15px !important",children:(0,ew.jsx)("ul",{children:n.map(e=>(0,ew.jsx)("span",{children:(0,ew.jsx)("li",{style:{listStyle:"outside"},children:e})},td.c()))})})]},td.c())}),tE=()=>{var e,t=(0,eD.wA)(),n=(0,eS.useContext)(ek.D0).subdomain,r=(0,eS.useContext)(tl.tY).userId,o=(0,tc.z)().navigate,i=(0,e0.k)(e=>e<600,500),a=function(e){if(Array.isArray(e))return e}(e=(0,eS.useState)(!1))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{o=(t=t.call(e)).next,!1;for(;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return tp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tp(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=a[0],l=a[1];return(0,ew.jsx)(tf,{children:(0,ew.jsxs)(tx,{$isMobile:i,children:[(0,ew.jsx)(tS,{src:"https://assets.avochato.com/assets/favicon-256-c559d43ca09866bf7c0c7b91b1acaf829cf744c697b90bee18adc0edb440e46f.ico",alt:"logo"}),(0,ew.jsx)(eV.EY,{fontSize:"18px !important",fontWeight:"800",textAlign:"center",children:"Broadcasting Usage Reminder"}),(0,ew.jsx)(eV.EY,{fontSize:"12px !important",color:"".concat(eK.T.secondaryGray),margin:i?"0 20px 15px 20px !important":"0px 0px 10px !important",textAlign:i?"center":"left",children:"Read and Scroll down to accept Broadcasting Usage Reminder"}),(0,ew.jsxs)(tm,{$isMobile:i,onScroll:e=>{var t=e.target.scrollHeight-e.target.scrollTop<=e.target.clientHeight+30;(0,tu.sg)({callback:()=>l(t)})},children:[tD,(0,ew.jsx)(tv,{})]}),(0,ew.jsxs)(tC,{className:"avo-ui-3",children:[(0,ew.jsx)("button",{type:"button",className:"button pale-green md mr-10",onClick:()=>{o({path:"".concat(window.location.origin,"/accounts/").concat(n,"/inbox"),params:{}})},children:"Cancel"}),(0,ew.jsx)("button",{type:"button",className:"button bright-green md ".concat(i&&"btn-wide"),onClick:()=>t((0,eN.Ki)(r)),disabled:!s,children:"I agree"})]})]})})},tC=(0,e$.default)(eQ.lB)(w||(w=th(["\n width: 100%;\n"]))),t$=n(35032),tM=n(13338),tO=n(6066),tA=n(39378),tk=n(88941),tT=n(43881),tF=n(7106),tz=n(72500),tB=n(41954),tP=n(9862);function tY(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tN(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tW=e=>{var t=e.setShowFilters,n=e.timeInterval,r=e.setTimeInterval,o=(0,eD.wA)(),i=(0,eS.useContext)(ek.G1),a=i.from,s=i.to,l=(0,eS.useContext)(e9.P).createdAt,c=tI((0,eS.useState)(Number(a)),2),u=c[0],d=c[1],p=tI((0,eS.useState)(Number(s)),2),h=p[0],f=p[1],x=eS.useRef(),m=(0,eD.d4)(tP.uq),g=(0,e0.k)(e=>e<600,500),b=(0,eS.useContext)(ek.G1).order;(0,eJ.Ls)(x,t);var y=(0,ew.jsxs)(eV.EY,{className:"width-100 flex",children:[(0,ew.jsx)(tV,{children:eP.E$.human[b]?eP.E$.human[b].value:"Newest"}),(0,ew.jsx)(tM.A,{width:"20px",height:"18px",className:"m-auto"})]}),j=eP.E$.mapValues(e=>(0,ew.jsx)("button",{type:"button",onClick:n=>{n.stopPropagation(),o((0,eT.updateParams)({order:e})),t(!1)},children:eP.E$.human[e].optionValue},e)),v=e8.AX.map(e=>{var t=e.label,o=e.name;return(0,ew.jsxs)(tU,{$isMobile:g,htmlFor:o,children:[(0,ew.jsx)(tK,{id:o,type:"radio",name:o,checked:n===o,onChange:e=>{var t,n,o;return r(e),n=(t=tI((0,tB.PO)(e,m,l),2))[0],o=t[1],void(d(n),f(o))}}),t]},"label-".concat(o))});return(0,ew.jsx)(tL,{$isMobile:g,children:(0,ew.jsxs)(tG,{$isMobile:g,ref:x,children:[(0,ew.jsxs)(tR,{$isMobile:g,children:[(0,ew.jsx)(eV.EY,{color:g?eK.T.black:eK.T.secondaryGray,fontWeight:900,fontSize:g?"16px !important":"10px !important",textTransform:g?"":"uppercase",letterSpacing:g?"":"2px !important",margin:g?"auto !important":"5px 0 5px 0 !important",children:g?"Filter":"View Broadcasts From:"}),g?(0,ew.jsx)(tH,{onClick:()=>t(!1),src:tk,alt:"close button"}):(0,ew.jsx)(tA.A,{onClick:()=>t(!1),style:{cursor:"pointer"},width:"15px",height:"15px"})]}),g&&(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(tZ,{$isMobile:g,children:"SORT:"}),(0,ew.jsx)(tO.ms,{wrapper:y,width:"100%",fullWidth:!0,buttonWidth:"100%",wrapperClassName:"select-btn",topOffset:"60px",children:j}),(0,ew.jsx)(tZ,{$isMobile:g,children:"VIEW BROADCASTS FROM:"})]}),(0,ew.jsx)("div",{className:"my-15",children:v}),(0,ew.jsxs)("div",{className:g?"mt-25":"my-10 m-auto justify-center",children:[(0,ew.jsx)(tZ,{$isMobile:g,children:"Activity Date From:"}),(0,ew.jsxs)(tq,{children:[(0,ew.jsx)("div",{className:"from mb-10",children:(0,ew.jsx)(tz.B,{type:"datetime-local",name:"from",placeholder:"from",value:(0,tB.wT)((0,tB.bA)(new Date((0,tB.YS)(u)))),onChange:e=>{console.log(e),d((0,tB.X4)(e)),r(null)}})}),(0,ew.jsx)(tZ,{$isMobile:g,children:"To:"}),(0,ew.jsx)("div",{className:"to",children:(0,ew.jsx)(tz.B,{type:"datetime-local",name:"to",placeholder:"to",value:(0,tB.wT)((0,tB.bA)(new Date((0,tB.YS)(h)))),onChange:e=>{f((0,tB.X4)(e)),r(null)}})})]})]}),(0,ew.jsxs)(t_,{$isMobile:g,children:[(0,ew.jsx)(tF.$,{theme:"secondary",type:"button",width:g?"50%":"auto",size:g?"medium":"small",fontSize:g?"16px":"13px",fontWeight:800,onClick:()=>{o((0,eT.updateParams)({from:null,to:null})),r(null)},style:{marginRight:"10px"},children:"Reset"}),(0,ew.jsx)(tF.$,{theme:"primary",type:"button",width:g?"50%":"auto",size:g?"medium":"small",fontSize:g?"16px":"13px",fontWeight:800,onClick:()=>{o((0,eT.updateParams)({from:String(u),to:String(h)})),t(!1)},disabled:u===Number(a)&&h===Number(s),children:"Apply"})]})]})})},tL=(0,e$.default)(eQ.Zl)(S||(S=tY(["\n ","\n"])),e=>e.$isMobile&&"\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 100%;\n background: rgb(0 0 0 / 75%);\n z-index: 2;\n "),t_=(0,e$.default)(eQ.Zl)(D||(D=tY(["\n margin: 20px 0px;\n ",";\n padding-bottom: 20px;\n"])),e=>e.$isMobile?"justify-content: space-between":""),tR=(0,e$.default)(eQ.Y6)(E||(E=tY(["\n ","\n"])),e=>e.$isMobile?"\n flex-direction: row-reverse;\n padding: 10px 0 25px 0;\n ":""),tG=e$.default.div(C||(C=tY(["\n position: absolute;\n top: 30px;\n left: 0;\n min-width: 320px;\n font-size: 13px!important;\n background: #fff!important;\n z-index: 1000;\n border-radius: 16px;\n box-shadow: 0px 2px 6px rgb(0 0 0 / 25%);\n padding: 15px;\n background: #676767;\n overflow: hidden;\n ","\n"])),e=>e.$isMobile?"\n right: 0;\n bottom: 0;\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n overflow: scroll;\n\n animation: slider .5s forwards;\n animation-timing-function: ease-out;\n @keyframes slider {\n from {top: 100%}\n to {top: 25%}\n }\n ":""),tU=e$.default.label($||($=tY(["\n position: relative;\n display: flex !important;\n align-items: center;\n font-size: 13px !important;\n font-weight: 500 !important;\n margin-bottom: 10px !important;\n ","\n width: fit-content;\n"])),e=>e.$isMobile?"\n font-size: 16px !important;\n font-weight: 800 !important;\n margin-bottom: 14px !important;\n ":""),tq=(0,e$.default)(eQ.so)(M||(M=tY(["\n flex-direction: column;\n"]))),tH=e$.default.img(O||(O=tY(["\n position: absolute;\n left: 20px;\n width: 18px;\n cursor: pointer;
1\n"]))),tZ=e$.default.text(A||(A=tY(["\n color: ",";\n padding: 3px;\n text-transform: uppercase;\n font-size: 10px !important;\n letter-spacing: .2em;\n font-weight: 800 !important;\n ","\n"])),eK.T.secondaryGray,e=>e.$isMobile?"\n font-size: 12px !important;\n ":""),tV=(0,e$.default)(eQ.Y6)(k||(k=tY(["\n font-weight: 800 !important;\n width: 100%;\n"]))),tK=(0,e$.default)(tT.sx)(T||(T=tY(["\n margin-right: 24px;\n"]))),tQ=n(99776),tX=n(85842);function tJ(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function t0(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return t1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t1(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var t2=()=>
1{var e=t0((0,eS.useState)("30-days"),2),t=e[0],n=e[1],r=t0((0,eS.useState)(!1),2),o=r[0],i=r[1],a=(0,eS.useContext)(ek.G1).order,s=(0,e0.k)(e=>e<600,500),l=null!==t,c=(0,eS.useContext)(ek.G1),u=c.from,d=c.to,p=new Date((0,tB.YS)(Number(u))).toLocaleDateString("en-US",{month:"short",day:"numeric"}),h=new Date((0,tB.YS)(Number(d))).toLocaleDateString("en-US",{month:"short",day:"numeric"}),f=(0,eD.wA)(),x=eP.E$.mapValues(e=>(0,ew.jsx)("button",{type:"button",onClick:()=>{f((0,eT.updateParams)({order:e}))},children:eP.E$.human[e].optionValue},e)),m=(0,ew.jsxs)(t3,{children:[(0,ew.jsx)("img",{src:tQ,alt:"filter"}),(0,ew.jsx)(eV.EY,{children:eP.E$.human[a]?eP.E$.human[a].value:"Recent"}),"Â ",(0,ew.jsx)(tM.A,{width:"14px",height:"12px"})]});return(0,ew.jsx)(ew.Fragment,{children:(0,ew.jsxs)(eQ.aZ,{style:{marginLeft:"10px"},children:[!s&&(0,ew.jsx)(tO.ms,{wrapper:m,children:x}),(0,ew.jsxs)(t5,{children:[(0,ew.jsxs)(t3,{className:l&&"filterActive",onClick:()=>i(!0),children:[(0,ew.jsx)("img",{src:tX,alt:"filter"}),!s&&(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsxs)(t4,{children:[p,"Â - Â ",h]}),"Â ",(0,ew.jsx)(tM.A,{width:"14px",height:"12px"})]})]}),o&&!s&&(0,ew.jsx)(tW,{setTimeInterval:n,timeInterval:t,setShowFilters:i})]}),o&&s&&(0,ew.jsx)(tW,{setTimeInterval:n,timeInterval:t,setShowFilters:i})]})})},t5=(0,e$.default)(eQ.Zl)(F||(F=tJ(["\n position: relative;\n"]))),t3=(0,e$.default)(eQ.aZ)(z||(z=tJ(["\n font-size: 13px !important;\n font-weight: 300 !important;\n\n color: ",";\n padding: 5px 8px;\n border-radius: 30px;\n cursor: pointer;\n img {\n width: 18px;\n min-width: 18px;\n }\n svg {\n width: 14px;\n min-width: 14px;\n }\n p {\n margin-left: 6px;\n @media screen and (max-width: 1070px) {\n display: none;\n }\n }\n &:hover {\n background: ",";\n }\n"])),eK.T.black,eK.T.hoverTan),t4=(0,e$.default)(eV.EY)(B||(B=tJ(["\n white-space: nowrap;\n margin-left: 6px;\n color: ",";\n @media screen and (max-width: 1070px) {\n display: none;\n }\n"])),eK.T.black),t6=n(36956),t7=n(65903),t8=n(67969),t9=n(55018),ne=n(29509),nt=n(8916),nn=n(12447),nr=n(12006),no=n(50532),ni=n(60840),na=n(29301),ns=(0,e$.default)(na.Sc)(P||(r=["\n position: absolute;\n width: 20px;\n height: 20px;\n left: 22px;\n top: ","\n ","\n"],o||(o=r.slice(0)),P=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))),e=>e.$isHeader?"0px;":"20px;",e=>e.$isMobile&&"\n left: 0px;\n top: 0px;\n "),nl=n(83660);function nc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nu=e=>{var t=e.onPress,n=e=>{e.stopPropagation(),t()};return(0,ew.jsx)(nd,{role:"button",tabIndex:0,onKeyPress:n,onClick:n,children:(0,ew.jsx)("span",{children:(0,ew.jsx)(np,{src:nl,alt:"info"})})})},nd=e$.default.span(Y||(Y=nc(["\n cursor: pointer;\n font-size: 12px;\n color: #DD7019;\n"]))),np=e$.default.img(I||(I=nc(["\n vertical-align: top;\n"]))),nh=n(30829);function nf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function nx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ng=e=>{var t,n=e.id,r=e.selected,o=e.onPress,i=e.onCheckboxChange,a=e.onAction,s=e.showStatusLegend,l=e.setShowStatusLegend,c=(0,eS.useContext)(ek.D0).subdomain,u=(0,eD.d4)(eC().partial(eq.mw,c))||{},d=(0,eD.d4)((0,eU._c)(n)),p=(0,nn.V)(),h=null==u?void 0:u[d.assign_to_user_id],f="in-progress"===d.status,x="draft"===d.status,m="queued"===d.status,g="completed"===d.status,b="failed"===d.status,y="scheduled"===d.status,j=null!=(t=(0,eD.d4)(eI.Qp))?t:ne.Ti,v=(0,eD.d4)(eI.Qr)||(0,ne.WC)(j),w=(0,ne.TG)((0,ne.yP)(d.message||"").messages,j),S=(0,eS.useRef)(null),D=nx((0,eS.use
1State)(!1),2),E=D[0],C=D[1];(0,eJ.Mk)(S,C);var $=(0,e0.k)(e=>e<600,500),M=(e,t)=>{t.stopPropagation(),i(e)},O=nx((0,e8.XW)(d.status),2),A=O[0],k=O[1],T=((e,t,n)=>{var r=(0,eS.useContext)(ek.D0).subdomain,o=(0,tc.z)().navigate,i=["Edit",()=>o({path:"/accounts/".concat(r,"/broadcast_v2/").concat(e.id),params:{}})],a=["Edit",()=>n(nt.N.MOVE_TO_DRAFTS)],s=["Delete",()=>n(nt.N.DELETE)],l=["Abort",()=>n(nt.N.ABORT)],c=["Retry",()=>n(nt.N.RESEND_TO_ALL)],u=["View Broadcast Results",i[1]],d=["Duplicate Broadcast",c[1]];switch(e.status){case"draft":return[i,s];case"scheduled":return[a,s];case"queued":case"in-progress":return[["Review Broadcast",t],l];case"completed":return[u,d];case"failed":return[c,u]}})(d,o,a).map(e=>{var t=nx(e,2),n=t[0],r=t[1];return(0,ew.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),r()},children:n},"".concat(d.id,"-").concat(n,"-option"))});return(0,ew.jsxs)(nv,{$isMobile:$,$isSelected:r,$isInProgress:f,$isQueued:m,$isCompleted:g,$isFailed:b,$isScheduled:y,onClick:e=>{"checkbox"!==e.target.type&&o(e)},children:[x&&!$&&(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsx)(ns,{checked:r,onChange:M})}),(0,ew.jsxs)(nb,{$isMobile:$,children:[x&&$&&(0,ew.jsx)(ns,{$isMobile:$,checked:r,onChange:M}),(0,ew.jsx)(nw,{$isMobile:$,$isDraft:x,children:p(d.name)})]}),(0,ew.jsxs)(nb,{$isMobile:$,style:{minWidth:"300px",overflow:w?"visible":"hidden"},children:[w&&(0,ew.jsxs)(nD,{ref:S,children:[(0,ew.jsx)(t8.A,{stroke:eK.T.red,size:20,strokeWidth:2}),E&&(0,ew.jsx)(nE,{children:(0,ew.jsx)(nr.w,{direction:"bottom",children:v})})]}),(0,ew.jsxs)(nS,{$isMobile:$,$isDraft:x,children:[(0,ew.jsx)("span",{children:d.media_url&&(0,ew.jsx)(t9.A,{stroke:eK.T.grey})}),p(d.message)]})]}),(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsx)(nC,{$isMobile:$,$isDraft:x,children:h?(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(nh.e,{src:null==h?void 0:h.image_url,ai:!!(null==h?void 0:h.avobot_id),size:"24px",lineHeight:"1.7"}),(0,ew.jsx)(eV.EY,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:1.7,children:"".concat($?"Assigned to: "
1:"").concat(null==h?void 0:h.name)})]}):(0,ew.jsxs)(eV.EY,{style:{opacity:.2},color:eK.T.textGrey,children:[$?"Assigned to: ":"","No one"]})})}),(0,ew.jsx)(nb,{$isMobile:$,children:"number"==typeof d.audience?(0,ew.jsxs)(eV.EY,{color:eK.T.secondaryGray,className:$&&x?"ml-35":"",children:[d.audience," ",$&&"Contacts"]}):(0,ew.jsx)(eZ.w,{size:"sm",center:!0})}),!$&&(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsx)(eQ.I1,{children:(0,ew.jsxs)(eQ.aZ,{children:[(0,ew.jsx)(eX.m,{$color:k}),(0,ew.jsx)(eV.EY,{fontWeight:"900",fontSize:"12px !important",children:A.toUpperCase()})]})})}),(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsxs)(eQ.I1,{children:[$&&(0,ew.jsxs)(eV.EY,{color:eK.T.secondaryGray,fontSize:"12px !important",className:"opacity-50 ".concat(x?"ml-35":""),children:["Created By ",d.user.name,", ",new Date(1e3*d.updated_at).toLocaleString("en-US",tB.i$)]}),!$&&(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(eV.EY,{color:eK.T.secondaryGray,fontSize:"12px !important",children:new Date(1e3*d.updated_at).toLocaleString("en-US",tB.i$)}),(0,ew.jsx)(eV.EY,{color:eK.T.secondaryGray,fontSize:"12px !important",fontWeight:"800",style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:d.user.name})]})]})}),(f||m||g||b||y)&&(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsx)(eV.EY,{color:eK.T.secondaryGray,fontSize:"12px !important",children:"".concat($?"Scheduled: ":"").concat(new Date(1e3*d.scheduled_for).toLocaleString("en-US",tB.i$))})}),$&&b&&(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsx)(eV.EY,{color:eK.T.red,fontSize:"12px !important",fontWeight:"800",children:"Failed To Send"})}),f&&(0,ew.jsxs)(nb,{$isMobile:$,id:"delivery-status-".concat(n),children:[$&&(0,ew.jsxs)(eQ.Zl,{children:[s&&(0,ew.jsx)(e2,{setShowStatusLegend:l}),(0,ew.jsx)(eX.m,{$color:k}),(0,ew.jsxs)(eV.EY,{fontWeight:"900",fontSize:"12px !important",whiteSpace:"nowrap",children:[A.toUpperCase(),$&&(0,ew.jsxs)(ew.Fragment,{children:[" ",(0,ew.jsx)(nu,{onPress:()=>l(!0)})]})]})]}),(0,ew.jsx)(ni.z,{backgroundColor:eK.T.progressGray,barColor:eK.T.progressBlue,percentage:d.audience?Math.floor(d.attempted/d.audience*100):null,width:$?"170px":"150px"})]}),!$&&g&&(0,ew.jsx)(nb,{$isMobile:$,children:(0,ew.jsx)(eV.EY,{color:eK.T.secondaryGray,fontSize:"12px !important",children:new Date(1e3*d.completed_at).toLocaleString("en-US",tB.i$)})}),$&&(0,ew.jsx)(nb,{$isMobile:$,className:"".concat(x&&"ml-35"),children:(0,ew.jsx)(ek.Eb,{path:"broadcast_v2/".concat(n),children:(0,ew.jsxs)("span",{children:[x&&(0,ew.jsx)(eV.EY,{color:eK.T.linkBlue,fontSize:"13px !important",children:"Edit Draft"}),g&&(0,ew.jsx)(eV.EY,{color:eK.T.linkBlue,fontSize:"13px !important",children:"View Results"})]})})}),(0,ew.jsx)(nb,{$isMobile:$,style:$?{position:"absolute",right:15,overflow:"inherit"}:{overflow:"inherit"},children:(0,ew.jsx)(no.o,{options:T})})]},"broadcast-".concat(n))},nb=e$.default.div(N||(N=nf(["\n position: relative;\n display: flex;\n align-items: center;\n ",";\n overflow: ",";\n text-overflow: ellipsis;\n white-space: nowrap;\n"])),e=>e.$isMobile?"padding: 2px 0px 0px 0px":"padding: 10px",e=>e.$overflow||"hidden"),ny=e$.default.div(W||(W=nf(["\n cursor: pointer;\n display: grid;\n border-bottom: 1px solid ",";\n\n ","\n ","\n"])),eK.T.greyer,e=>{if(e.$isMobile)return"\n display: flex;\n flex-direction: column;\n "},e=>{var t=e.$isMobile,n=e.$isInProgress,r=e.$isQueued,o=e.$isCompleted,i=e.$isFailed,a=e.$isScheduled,s="[name] 200px [message] auto [assign-to] 175px [audience] 100px [status] 150px [edited-by] 200px";return o?"\n grid-template-columns: ".concat(s," [start-time] 150px [completed-time] 150px [overflow] 100px;\n "):n?"\n grid-template-columns: ".concat(s," [start-time] 150px [delivery-status] 150px [overflow] 100px;\n "):r?"\n grid-template-columns: ".concat(s," [next-attempt] 120px [overflow] 100px;\n "):i||a?"\n grid-template-columns: ".concat(s," [scheduled-for] 200px [overflow] 100px;\n "):(s=t?"[name] 200px [message] auto [assign-to] 175px [audience] 100px [edited-by] 200px":"[toggle] 50px ".concat(s),"\n grid-template-columns: ".concat(s," [overflow] 100px;\n "))}),nj=(0,e$.default)(ny)(L||(L=nf(["\n position: relative;\n font-size: 10px;\n color: ",";\n text-transform: uppercase;\n letter-spacing: 2px;\n min-height: 50px;\n background: white;\n align-items: center;\n"])),eK.T.steel),nv=(0,e$.default)(ny)(_||(_=nf(["\n font-size: 14px;\n cursor: pointer;\n line-height: normal;\n background: ",";\n &:hover {\n background: ",";\n }\n ","\n ","\n"])),e=>e.$isSelected?eK.T.highlightOrange:eK.T.sand,eK.T.highlightOrange,e=>e.$isMobile&&"\n position: relative;\n padding: 15px 20px;\n ",e=>e.$isInProgress&&"\n background: ".concat(eK.T.lightMint,";\n ")),nw=e$.default.p(R||(R=nf(["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n font-size: 14px !important;\n font-weight: 900 !important;\n ","\n"])),e=>{var t=e.$isMobile,n=e.$isDraft;return t&&n&&"\n padding-top: 2px !important;\n margin-left: 35px !important;\n "}),nS=e$.default.p(G||(G=nf(["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n font-size: 14px !important;\n font-weight: 300 !important;\n ","\n svg {\n max-width: 17px;\n vertical-align: middle;\n padding-right: 5px;\n }\n"])),e=>{var t=e.$isMobile,n=e.$isDraft;return t&&n&&"\n padding-top: 3px !important;\n margin-left: 35px !important;\n "}),nD=e$.default.span(U||(U=nf(["\n position: relative;\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n margin-right: 6px !important;\n cursor: default;
1\n"]))),nE=e$.default.div(q||(q=nf(["\n position: absolute;\n top: 100%;\n left: 0;\n pointer-events: none;\n z-index: 1001;\n"]))),nC=(0,e$.default)(eQ.aZ)(H||(H=nf(["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n\n ","\n"])),e=>{var t=e.$isMobile,n=e.$isDraft;return t&&n&&"\n margin-left: 35px !important;\n "}),n$=n(82876),nM=n(34322),nO=n(65042);function nA(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nk=()=>{var e=(0,eD.wA)(),t=(0,e0.k)(e=>e<600,500);return(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(eV.EY,{color:t?eK.T.black:eK.T.darkGreen,fontSize:t?"16px !important":"24px !important",textAlign:t?"center":"left",fontWeight:900,margin:"0px 0px 20px !important",children:"About Broadcasts"}),(0,ew.jsx)(nT,{src:e7,alt:"welcome",$isMobile:t}),(0,ew.jsxs)(nF,{children:[(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"What is a Broadcast?"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"A broadcast lets you send a personalized message to your target audience and will appear as one-on-one direct messages on your audience's devices (as opposed to one large group thread). You can schedule a broadcast to be sent on a later date or sent right away."})]}),(0,ew.jsxs)(nF,{children:[(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"What are the benefits of Broadcasting?"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"Broadcasting allows you to save time by sending a personalized message â whether that be general notifications, alerts, promotions, or marketing campaigns â to your target audience, as opposed to messaging each of your contacts separately. You are able to specify your exact target audience and track who is engaging after your broadcast is sent."})]}),(0,ew.jsxs)(nF,{children:[(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Want to learn more about Broadcasts?"}),(0,ew.jsxs)(eV.EY,{fontSize:"14px",children:["Check out our ",(0,ew.jsx)(nO.D,{onClick:()=>e((0,eT.open)({path:"https://help.avochato.com/broadcasting/learn-more-about-broadcasts",params:{}})),children:"Help Center "}),"for more information on Broadcasting."]})]})]})},nT=e$.default.img(Z||(Z=nA(["\n width: ",";\n ","\n margin-bottom: 20px;\n"])),e=>e.$isMobile?"100px":"200px",e=>e.$isMobile&&"\n margin: 20px auto;\n "),nF=e$.default.div(V||(V=nA(["\n margin-bottom: 20px;\n"]))),nz=n.p+"static/how_to_step1-50b5682f54be54ba.png",nB=n.p+"static/how_to_step2-278b81c3aeacdc45.png",nP=n.p+"static/how_to_step3-830e31fe3ffd686e.png";function nY(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nI=()=>{var e=(0,e0.k)(e=>e<600,500);return(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(eV.EY,{color:e?eK.T.black:eK.T.darkGreen,fontSize:e?"16px !important":"24px !important",textAlign:e?"center":"left",fontWeight:900,children:"How to Create a Broadcast"}),(0,ew.jsx)(eV.EY,{color:eK.T.black,fontSize:e?"12px !important":"16px !important",textAlign:e?"center":"left",margin:"0px 0px 20px !important",children:"Three simple steps to sending a Broadcast"}),(0,ew.jsxs)(nW,{$isMobile:e,children:[(0,ew.jsx)(nN,{src:nz,alt:"",$isMobile:e}),(0,ew.jsxs)(nL,{$isMobile:e,children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,children:"STEP 1:"}),(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Draft a Message and Schedule Your Broadcast"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"Create a message and add attachments, personalizations, surveys, and more. Schedule your broadcast to either send right away or on a later date and time."})]})]}),(0,ew.jsxs)(nW,{$isMobile:e,children:[(0,ew.jsx)(nN,{src:nB,alt:"",$isMobile:e}),(0,ew.jsxs)(nL,{$isMobile:e,children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,children:"STEP 2:"}),(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Choose Your Audience"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"Curate your target audience using tags, fields, phone numbers, and more. *Note:* contacts who have opted out will not receive your broadcast."})]})]}),(0,ew.jsxs)(nW,{$isMobile:e,children:[(0,ew.jsx)(nN,{src:nP,alt:"",$isMobile:e}),(0,ew.jsxs)(nL,{$isMobile:e,children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,children:"STEP 3:"}),(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Confirm and Send"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"Review your message, attachments, scheduling, and estimated costs before confirming your broadcast to be sent out."})]})]})]})},nN=e$.default.img(K||(K=nY(["\n width: ",";\n ","\n"])),e=>e.$isMobile?"100%":"200px",e=>e.$isMobile&&"\n margin: 20px auto;\n "),nW=(0,e$.default)(eQ.so)(Q||(Q=nY(["\n ","\n align-items: flex-start;\n margin-bottom: 20px;\n"])),e=>e.$isMobile&&"\n flex-direction: column-reverse;\n "),nL=(0,e$.default)(eQ.I1)(X||(X=nY(["\n margin-left: ",";\n"])),e=>e.$isMobile?"0":"20px"),n_=()=>{var e=(0,e0.k)(e=>e<600,500),t=[{header:"CUSTOMER SUPPORT",body:"Hello $first_name, thanks for reaching out to [insert company name]'s support team. We're diving into your issue and we'll follow up with a resolution by the top of the hour. Thanks for your patience!"},{header:"SALES",body:"Hello $full_name, [insert company name]'s annual sale is only 2 days away! Set your alarms for 12:00 PM for special early access for our text club members!"},{header:"OPERATIONS",body:"Hello $first_name! Time-sensitive Benefit Enrollments for [company name]. You must enroll in benefits or waive c
1overage for the upcoming coverage period before deadline. Deadline is Oct. 1."},{header:"MARKETING",body:"Welcome to Rosie's Furniture Store! Thanks for signing up to be a member. Text âSALEâ to see our latest promotional offers and get 15% off your next order."}].map(t=>(0,ew.jsxs)("div",{children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,margin:"0px 0px 5px !important",fontSize:e?"12px !important":"14px",children:t.header}),(0,ew.jsxs)(nR,{children:[(0,ew.jsx)(eV.EY,{color:eK.T.seaGreen,fontSize:"10px !important",fontWeight:900,letterSpacing:"2px !important",margin:"0px 0px 5px !important",children:"MESSAGE"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:t.body})]})]},td.c()));return(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(eV.EY,{color:e?eK.T.black:eK.T.darkGreen,fontSize:e?"16px !important":"24px !important",textAlign:e?"center":"left",fontWeight:900,margin:"0px 0px 20px !important",children:"Example Broadcasts"}),t]})},nR=(0,e$.default)(eQ.I1)(J||(i=["\n background: #FBF8F3;\n border: 1px solid #DDDDDD;\n border-radius: 10px;\n margin-bottom: 20px;\n padding: 20px;\n"],a||(a=i.slice(0)),J=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(a)}})))),nG=n.p+"static/learn_more_tip_1-661f730c9bb3858d.svg",nU=n.p+"static/learn_more_tip_2-4a5c7666e0d64d49.svg",nq=n.p+"static/learn_more_tip_3-8e2859cf7cfc0ee3.svg";function nH(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nZ=()=>{var e=(0,e0.k)(e=>e<600,500);return(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(eV.EY,{color:e?eK.T.black:eK.T.darkGreen,fontSize:e?"16px !important":"24px !important",textAlign:e?"center":"left",fontWeight:900,margin:"0px 0px 20px !important",children:"Tips and Tricks"}),(0,ew.jsxs)(nK,{$isMobile:e,children:[(0,ew.jsx)(nV,{src:nG,alt:"",$isMobile:e}),(0,ew.jsxs)(nQ,{$isMobile:e,children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,children:"TIP #1"}),(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Personalize Your Message"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"Use a friendly emoji, include info stored from custom fields (such as first names or previous survey results), add attachments, and more: people love messages that resonate, and it helps build trust between them and your brand. Adding first name can lead to a 29% increase in response rate!"})]})]}),(0,ew.jsxs)(nK,{$isMobile:e,children:[(0,ew.jsx)(nV,{src:nU,alt:"",$isMobile:e}),(0,ew.jsxs)(nQ,{$isMobile:e,children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,children:"TIP #2"}),(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Add a Survey"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"Need to collect information from your target audience? Send a survey as a broadcast message! Simply select âInsert Surveyâ and choose the survey you want to add. It will send the first survey question, and your audience can respond."})]})]}),(0,ew.jsxs)(nK,{$isMobile:e,children:[(0,ew.jsx)(nV,{src:nq,alt:"",$isMobile:e}),(0,ew.jsxs)(nQ,{$isMobile:e,children:[(0,ew.jsx)(eV.EY,{color:eK.T.burntOrange,fontWeight:900,children:"TIP #3"}),(0,ew.jsx)(eV.EY,{fontSize:"16px !important",fontWeight:900,children:"Engage with Your Audience"}),(0,ew.jsx)(eV.EY,{fontSize:"14px",children:"After sending a broadcast, each message will contain a link leading to that broadcastâs related metrics. From there, you can recreate your broadcast to further engage with your audience. Customers appreciate the back and forth, especially if they have questions."})]})]})]})},nV=e$.default.img(ee||(ee=nH(["\n width: ",";\n ","\n"])),e=>e.$isMobile?"100%":"200px",e=>e.$isMobile&&"\n margin: 20px auto;\n"),nK=(0,e$.default)(eQ.so)(et||(et=nH(["\n ","\n align-items: flex-start;\n margin-bottom: 20px;\n"])),e=>e.$isMobile&&"\n flex-direction: column-reverse;\n "),nQ=(0,e$.default)(eQ.I1)(en||(en=nH(["\nmargin-left: ",";\n"])),e=>e.$isMobile?"0":"20px"),nX=n(50462),nJ=n(32812),n0=n(30140),n1=n(65718),n2=n.p+"static/agent-icon-0232836c240e5b86.svg";function n5(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n3=e=>{var t=e.text,n=(0,e0.k)(e=>e<600,500);return(0,ew.jsx)(n6,{$isMobile:n,children:(0,ew.jsxs)(n4,{children:[(0,ew.jsx)("img",{src:n2,alt:"filter"}),(0,ew.jsx)(eV.EY,{whiteSpace:"nowrap",children:t||"All Agents"}),"Â ",(0,ew.jsx)(tM.A,{width:"14px",height:"12px"})]})})},n4=e$.default.div(er||(er=n5(["\n font-weight: 300!important;\n font-size: 13px !important;\n color: ",";\n align-items: center;\n display: flex;\n cursor: pointer;\n p {\n margin-left: 6px;\n @media screen and (max-width: 1070px) {\n display: none;\n }\n }\n\n img {\n width: 18px;\n min-width: 18px;\n }\n"])),eK.T.black),n6=e$.default.button(eo||(eo=n5(["\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n border-radius: 30px;\n padding: 5px 8px;\n min-width: 50px;\n cursor: pointer;\n background: none;\n p {\n color: ",";\n }\n &:hover {\n background: ",";\n }\n ","\n"])),eK.T.black,eK.T.hoverTan,e=>e.$isMobile?"width: 50px;":null);function n7(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?n8(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rn=()=>{var e,t=(0,eS.useContext)(ek.G1),n=t.page,r=t.category,o=t.order,i=t.from,a=t.to,s=t.query,l=t.agent,c=t.agentName,u=(0,eS.useContext)(tl.tY).userId,d=(0,e0.k)(e=>e<600,500),p=(0,eD.wA)(),h=(0,eD.d4)(eI.xq),f=re((0,eS.useState)(null),2),x=f[0],m=f[1],g=re((0,eS.useState)({}),2),b=g[0],y=g[1],j=re((0,eS.useState)(!1),2),v=j[0],w=j[1],S=re((0,eS.useState)(!1),2),D=S[0],E=S[1],C=re((0,eS.useState)(null),2),$=C[0],M=C[1],O=re((0,eS.useState)(s||""),2),A=O[0],k=O[1],T=re((0,eS.useState)(""),2),F=T[0],z=T[1],B=re((0,eS.useState)(!0),2),P=B[0],Y=B[1],I=re((0,eS.useState)(h?null:1),2),N=I[0],W=I[1],L=re((0,eS.useState)(!1),2),_=L[0],R=L[1],G=re((0,eS.useState)(window.innerWidth-(window.innerWidth<975?0:247)),2),U=G[0],q=G[1],H=re((0,eS.useState)(null),2),Z=H[0],V=H[1],K=(0,eS.useContext)(ek.D0).subdomain,Q=(0,eD.d4)(eU.$y),X=(0,eD.d4)(eU.Ay),J=(0,eD.d4)(eU.TX),ee=(0,eD.d4)(eU.iq),et=(0,eD.d4)(eU.Yq),en=(0,eD.d4)(eU.dK),er=(0,eD.d4)(eU.MI),eo=(0,eD.d4)(eU.e$),ei=(0,eD.d4)(eU.JK),ea=(0,eD.d4)(eU.Uk),es=(0,eD.d4)(eU.eK),el=(0,eD.d4)(eU.XZ),ec=(0,eD.d4)(eU.p$),eu=(0,eD.d4)(eU.Si),ed=(0,eD.d4)(eU.s5),ep=(0,t7.Sz)(o),eh=(0,t7.Sz)(s),ef=(0,t7.Sz)(i),ex=(0,t7.Sz)(a),em=(0,t7.Sz)(l),eg=(0,t7.Sz)(c),eb=(0,eD.d4)(eI.XK),ey=Q===eM.ActionStatus.BUSY,ej="draft"===r,ev="in-progress"===r,eE="queued"===r,e$="completed"===r,eO="failed"===r,eA="scheduled"===r,eV=(0,eS.useContext)(e9.P).plan,eX=eS.useRef(!1),e1=(0,eS.useContext)(e9.P),e5=(0,eS.useContext)(tl.tY),e3=e5.admin,e4=e5.canManage,e6=e3||e4(K),e7=(0,eD.d4)(eI.z2),e8=(0,eD.d4)(eC().partial(eq.mw,K))||{},te=eC().debounce(()=>{var e=document.getElementsByClassName("ui-column-1")[0].classList.contains("compact"),t=window.innerWidth<975;q(window.innerWidth-247*!t+(!t&&e?123.34:0))},200);(0,eS.useEffect)(()=>{te();for(var e=document.getElementsByClassName("compact-toggle"),t=0;t<e.length;t++)e[t].addEventListener("click",te);return window.addEventListener("resize",te),()=>{for(var t=0;t<e.length;t++)e[t].removeEventListener("click",te);window.removeEventListener("resize",te)}},[]),(0,eS.useEffect)(()=>{document.title="Broadcasts | ".concat(e1.name),eX.current=!0;var e=r||"draft",t=n&&Number(n)>1?Number(n):1,s=re((0,tB.PO)("30-days"),2),u=s[0],d=s[1],h=i||u,f=a||d;p((0,eT.updateParams)({category:e,page:String(t),order:o||eP.E$.MOST_RECENT_ACTIVITY,query:A,from:String(h),to:String(f),agent:l,agentName:c}
1)),p((0,eY.jU)({subdomain:K}))},[]),(0,nX.O)({pageName:"React Broadcast - Broadcasts Index"}),(0,eS.useEffect)(()=>{p((0,eB.J$)(K))},[K]),(0,eJ.J)(()=>(0,tu.sg)({callback:()=>p((0,eT.updateParams)({query:A,agent:l}))}),[A]);var tt=re((e=>{switch(e){case"draft":return[J,ei];case"scheduled":return[ee,ea];case"queued":return[et,es];case"in-progress":return[en,el];case"completed":return[er,eu];case"failed":return[eo,ed];default:return[[],null]}})(r),2),tr=tt[0],to=tt[1];(0,eJ.J)(()=>{y({}),w(!1);var e=ep===o,t=eh===s,u=ef===i,d=ex===a,h=to===tr.length,f=n&&Number(n)>1?Number(n):1,x=!!tr[(f-1)*X],m=l===em,g=c===eg;e&&t&&u&&d&&x&&h&&m&&g||p((0,ez.Bt)({subdomain:K,limit:X,category:r,page:f,from:i,to:a,order:o,query:s,prevQuery:eh,prevOrder:ep,agent:l,agentName:c}))},[K,n,r,i,a,s,o,eh,ep,l,c]),(0,eS.useEffect)(()=>{void 0!==i&&p((0,ez.oC)({subdomain:K,from:i,to:a,query:s,agent:l}))},[K,i,a,s,l]);var ti=(e,t,n,r)=>{p((0,eT.updateParams)({page:"".concat(e),category:t,agent:n,agentName:r}))},tc=X>to?0:(Number(n)-1)*X,tp=tc+X>to?to:tc+X,th=tp-tc,tf=tr.slice(tc,tp),tx=tf.length>0&&(0,ew.jsxs)(ry,{$isMobile:d,children:[!d&&(0,ew.jsxs)(nj,{$isMobile:d,$isInProgress:ev,$isQueued:eE,$isCompleted:e$,$isFailed:eO,$isScheduled:eA,children:[ej&&(0,ew.jsx)(nb,{$isMobile:d,children:(0,ew.jsx)(ns,{$isHeader:!0,checked:Object.values(b).every(e=>!0===e)&&Object.values(b).length===th,onChange:e=>(e=>{for(var t={},n=tc;n<tp;n+=1)t[J[n]]=e;y(t)})(e)})}),(0,ew.jsx)(nb,{$isMobile:d,children:"Name"}),(0,ew.jsx)(nb,{style:{minWidth:"300px"},children:"Message"}),(0,ew.jsx)(nb,{$isMobile:d,children:"Auto-Assigned To"}),(0,ew.jsx)(nb,{$isMobile:d,children:"Audience"}),(0,ew.jsxs)(nb,{$isMobile:d,$overflow:"inherit",children:[_&&(0,ew.jsx)(e2,{setShowStatusLegend:R}),(0,ew.jsxs)(eQ.aZ,{children:["Status ",(0,ew.jsx)(nu,{onPress:()=>R(!0)})]})]}),(0,ew.jsx)(nb,{$isMobile:d,children:"Edited By"}),(ev||eE||e$||eO||eA)&&(0,ew.jsx)(nb,{$isMobile:d,children:eA?"Scheduled For":eE?"Next Attempt":"Start Time"}),ev&&(0,ew.jsx)(nb,{$isMobile:d,children:"Delivery Status"}),e$&&(0,ew.jsx)(nb,{$isMobile:d,children:"Completed"})]}),tf.map(e=>(0,ew.jsx)(ng,{id:e,selected:!!b[e],onPress:t=>{t.metaKey||t.ctrlKey?p((0,eT.open)({path:"/accounts/".concat(K,"/broadcast_v2/").concat(e),params:{}})):(M(e),Y(!0))},onAction:t=>{V(e),z(t)},onCheckboxChange:t=>{y(n=>{var r=n9({},n);return eC().set(r,e,t),r})},showStatusLegend:_,setShowStatusLegend:R},e))]}),tm=(Number(n)-1)*X+1,tg=to&&tm<=to?tm:0,tb=to?Math.min(to,X*Number(n)):0,ty=to||0,tj=()=>y({}),tv=[["About Broadcasts",()=>W(1)],["How to Create a Broadcast",()=>W(2)],["Examples",()=>W(3)],["Tips and Tricks",()=>W(4)]].map(e=>{var t=re(e,2),n=t[0],r=t[1];return(0,ew.jsx)("button",{type:"button",onClick:r,children:n},td.c())}),tw=[{id:1,name:"About Broadcasts",component:(0,ew.jsx)(nk,{})},{id:2,name:"How to Create a Broadcast",component:(0,ew.jsx)(nI,{})},{id:3,name:"Examples",component:(0,ew.jsx)(n_,{})},{id:4,name:"Tips and Tricks",component:(0,ew.jsx)(nZ,{})}],tS=[];return(tS=Object.values(e8).sort((e,t)=>(null!=t&&!!t.avobot_id)-(null!=e&&!!e.avobot_id)||e.name.localeCompare(t.name)).map(e=>n9({callback:()=>ti(1,r,e.id,e.name)},e))).unshift({name:"No Assignment",callback:()=>ti(1,r,null,null)}),(0,ew.jsxs)(ew.Fragment,{children:[!eb&&(0,ew.jsx)(tE,{}),(0,ew.jsxs)(ro,{className:"avo-ui-3",$width:U,children:[Object.values(b).some(e=>!0===e)&&(0,ew.jsx)(t$.B,{count:Object.keys(b).filter(e=>b[e]).length.toString(),handleDismiss:tj,handleBulkAction:()=>E(!0)}),null!==N&&(0,ew.jsx)(ts.t,{handleClose:()=>{W(null),p((0,eN.Bg)(u,{isBroadcastLearnMoreComplete:!0,stepName:""})),tj()},setLearnMoreStep:W,learnMoreStep:N,navOptions:tw}),(0,ew.jsx)(ta.c,{setActionId:V,actionId:Z,setActionType:z,actionType:F,onConfirm:(e,t)=>{e===nt.N.DELETE&&$===t&&M(null)}}),$&&P&&(0,ew.jsx)(eH.M,{isPane:!0,broadcastId:$,setIsShowPane:Y,onAction:e=>{V($),z(e)}}),D&&(0,ew.jsx)(n$.u,{handleClose:()=>E(!1),handleConfirm:()=>{p((0,ez.Of)({subdomain:K,broadcastIds:Object.keys(b).filter(e=>!0===b[e]),draftsOrder:J})),tj(),E(!1)},height:"auto",header:"Bulk Delete Broadcasts",question:"Are you sure you want to delete these Broadcasts?",content:"This cannot be undone.",confirmText:"Delete",successComponent:(0,ew.jsx)("img",{src:nM,alt:"trash"}),successMessage:"Broadcasts were successfully deleted.",failureMessage:"Failed to destroy broadcasts, contact Avochato support for help."}),(0,ew.jsxs)(rs,{$isMobile:d,children:[(0,ew.jsxs)(eQ.Y6,{children:[(0,ew.jsxs)(rp,{$isMobile:d,children:[(0,ew.jsx)(eQ.Y6,{children:(0,ew.jsxs)(ra,{$isMobile:d,children:[(0,ew.jsxs)(rd,{$isMobile:d,children:[(0,ew.jsx)(ru,{$isMobile:d,children:"Broadcasts"}),"lite-plan-4"===eV&&(0,ew.jsx)("span",{children:"LITE"})]}),d&&(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)("img",{onKeyPress:()=>W(0),onClick:()=>W(0),src:e_,alt:"lightbulb",style:{width:"100px"}}),(0,ew.jsx)(ek.Eb,{path:"broadcast_v2/new",children:(0,ew.jsx)("span",{className:"mx-15 pt-10",children:(0,ew.jsx)(rx,{src:eR,alt:"plus sign"})})})]}
1),!d&&(0,ew.jsx)("p",{children:"Send messages and announcements to a larger group of users at once."})]})}),(0,ew.jsxs)(rc,{$isMobile:d,children:[(0,ew.jsx)(t6.pd,{search:!0,name:"search",placeholder:"Search Broadcasts",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",onChange:e=>k(e.currentTarget.value),clearQuery:()=>k(""),value:A,width:d?"100%":"245px",placeholderColor:eK.T.inactiveGray,small:!0,border:"none",style:d?{}:{marginRight:"0px"},iconColor:eK.T.secondaryGray,background:"#F4F4F4",isMobile:d}),(0,ew.jsx)(t2,{}),!d&&(!e7||e6)&&(0,ew.jsxs)(nJ.R,{matchTriggerWidth:!1,trigger:(0,ew.jsx)(n3,{text:(null==(e=null==e8?void 0:e8[l])?void 0:e.name)||""}),style:{position:"inherit"},fullWidth:!1,children:[(0,ew.jsx)(n0.D,{query:x,setQuery:m}),(0,ew.jsx)(rb,{children:tS.filter(e=>!x||e.name.toLowerCase().includes(x.toLowerCase())).map(e=>(0,ew.jsx)(n1.r,{data:e},e.name))})]})]})]}),!d&&(0,ew.jsxs)(eQ.I1,{children:[(0,ew.jsx)(ek.Eb,{path:"broadcast_v2/new",children:(0,ew.jsx)("span",{className:"button bright-green fit-content fsz-16 mb-10",children:"Create Broadcast"})}),(0,ew.jsx)(eG.F,{options:tv})]})]}),(0,ew.jsxs)(rl,{children:[d&&(0,ew.jsx)(rm,{src:eW,alt:"left gradient"}),(0,ew.jsx)(eF.fc,{setPane:e=>{e!==r&&(w(!0),ti(1,e))},pane:r,headerData:[{key:"draft",name:"Drafts",count:ei},{key:"scheduled",name:"Scheduled",count:ea},{key:"queued",name:"Queued",count:es},{key:"in-progress",name:"In-Progress",count:el},{key:"completed",name:"Completed",count:eu},{key:"failed",name:"Failed",count:ed}],displayCount:!0,isBroadcast:!0}),d&&(0,ew.jsx)(rg,{src:eL,alt:"right gradient"}),(0,ew.jsxs)(ri,{$isMobile:d,children:[(0,ew.jsx)(rh,{size:16,onClick:()=>{1>=Number(n)||ti(Number(n)-1,r)}}),(0,ew.jsx)("p",{className:"fsz-12 bold-900 letter-space-2 ".concat(d?"mx-10":""),children:"".concat(tg," - ").concat(tb," OF ").concat(ty)}),(0,ew.jsx)(rf,{size:16,onClick:()=>{X*Number(n)>=to||ti(Number(n)+1,r)}})]})]}),!d&&(0,ew.jsx)("hr",{})]}),(0,ew.jsxs)(rr,{$isMobile:d,$isLoading:ey,children:[!ey&&!v&&tx,Q&&!ey&&r&&n&&!v?!eX.current||ec&&tr.length?null:(0,ew.jsx)(tn,{handleLearnMoreClick:()=>W(1)}):(0,ew.jsx)(eZ.w,{center:!0})]})]})]})},rr=e$.default.div(ei||(ei=n7(["\n height: 100%;\n overflow: scroll;\n\n ","\n ","\n"])),e=>e.$isMobile&&"\n border-top: 1px solid ".concat(eK.T.greyer,";\n "),e=>e.$isLoading&&"\n display: flex;\n justify-content: center;
1\n align-items: center;\n "),ro=e$.default.div(ea||(ea=n7(["\n height: 100%;\n background: ",";\n display: inline-flex;\n flex-direction: column;\n width: ","px;\n"])),eK.T.sand,e=>e.$width),ri=(0,e$.default)(eQ.Zl)(es||(es=n7(["\n margin-bottom: 10px;\n ","\n"])),e=>e.$isMobile&&"\n background: white;\n box-shadow: 0px 4px 6px rgb(215 210 200 / 60%);\n padding: 15px;\n width: 200px;\n z-index: 1;\n border-radius: 30px;\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n justify-content: space-between;\n "),ra=(0,e$.default)(eQ.so)(el||(el=n7(["\n flex-direction: column;\n ","\n"])),e=>e.$isMobile&&"\n justify-content: space-between;\n flex-direction: row;\n width: 100%;\n margin: auto;\n "),rs=e$.default.div(ec||(ec=n7(["\n background: ",";\n padding: ","\n"])),eK.T.white,e=>!e.$isMobile&&"25px 25px 0px 25px;"),rl=(0,e$.default)(eQ.Y6)(eu||(eu=n7(["\n align-items: flex-end;\n -ms-overflow-style: none;\n scrollbar-width: none;\n overflow-y: scroll;\n ::-webkit-scrollbar {\n display: none;\n }\n"]))),rc=(0,e$.default)(eQ.aZ)(ed||(ed=n7(["\n padding: 10px 0px;\n ","\n"])),e=>e.$isMobile&&"justify-content: space-between;"),ru=e$.default.div(ep||(ep=n7(["\n font-size: 24px;\n font-weight: 800 !important;\n ","\n"])),e=>e.$isMobile&&"\n font-size: 18px;\n padding-top: 10px;\n padding-bottom: 7px;\n "),rd=(0,e$.default)(eQ.so)(eh||(eh=n7(["\n align-items: center;\n span {\n background: ",";\n color: ",";\n font-size: 13px;\n font-weight: 800 !important;\n width: 48px;\n height: 22px;\n padding: 3px 10x;\n border-radius: 30px;\n text-align: center;\n line-height: 22px;\n margin-left: 8px;\n }\n ","\n"])),eK.T.oliveGreen,eK.T.white,e=>e.$isMobile&&"\n width: 100%;\n "),rp=(0,e$.default)(eQ.I1)(ef||(ef=n7(["\n ","\n width: 100%;\n"])),e=>e.$isMobile?"padding: 15px 15px 0px 15px;":""),rh=(0,e$.default)(eO.A)(ex||(ex=n7(["\n cursor: pointer;\n margin: ",";\n"])),e=>e.$margin||"0px"),rf=(0,e$.default)(eA.A)(em||(em=n7(["\n cursor: pointer;\n margin: ",";\n"])),e=>e.$margin||"0px"),rx=e$.default.img(eg||(eg=n7(["\n width: 30px;\n"]))),rm=e$.default.img(eb||(eb=n7(["\n position: absolute;\n"]))),rg=e$.default.img(ey||(ey=n7(["\n position: absolute;\n right: 0;\n"]))),rb=e$.default.div(ej||(ej=n7(["\n overflow: scroll;\n max-height: 250px;\n"]))),ry=e$.default.div(ev||(ev=n7(["\n width: 100%;\n\n ","\n"])),e=>!e.$isMobile&&"\n display: grid;\n grid-template-rows: 50px repeat(auto-fill, 60px);\n ")},70848:function(e,t,n){var r=n(96540),o=n(2543),i=n.n(o),a=n(34005),s=n.n(a),l=n(20060);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=/(?:\uD83C[\uDDE6-\uDDFF])(?:\uD83C[\uDDE6-\uDDFF])|(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:(?
1:\uD83C[\uDFFB-\uDFFF])|\uFE0F)?(?:\u200D(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:(?:\uD83C[\uDFFB-\uDFFF])|\uFE0F)?)*/g;function d(e){if(!e)return e;var t,n=[],o=0,i=0,a=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return c(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,void 0)}}(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(e.matchAll(u));try{for(a.s();!(t=a.n()).done;){var s=t.value,l=s.index;l>o&&n.push(e.slice(o,l)),n.push(r.createElement("span",{key:i++,className:"emoji"},s[0])),o=l+s[0].length}}catch(e){a.e(e)}finally{a.f()}return 0===n.length?e:(o<e.length&&n.push(e.slice(o)),n)}Object.assign(String.prototype,{titleize:function(){return i().startCase(i().toLower(this))},toReactHtml:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.linkify,n=e.highlight,r=s()(this,{whiteList:{mark:[],b:[],i:[]}});if(n){var o="<mark>",a="</mark>";Array.from(this.matchAll(RegExp(i().escapeRegExp(n),"ig"))).map(e=>e.index).forEach((e,t)=>{var i=e+t*(o.length+a.length);r=""+r.substring(0,i)+o+r.substring(i,i+n.length)+a+r.substring(i+n.length)})}return t&&(r=(0,l.A)(r,{validate:{url:e=>/^https?:\/\/([^"'\[\]\{\};<>]|&)*$/.test(e)},rel:"noopener noreferrer",target:"_blank"})),{__html:r=r.replace(u,e=>'<span class="emoji">'.concat(e,"</span>"))}},hashCode:function(){return this.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0)}}),n.d(t,{u:function(){return d}})},13338:function(e,t,n){var r=n(96540),o=n(5556),i=n.n(o);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,o=e.size,i=void 0===o?24:o,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("polyline",{points:"6 9 12 15 18 9"}))});s.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},s.displayName="ChevronDown",t.A=s},7836:function(e,t,n){var r=n(96540),o=n(5556),i=n.n(o);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,o=e.size,i=void 0===o?24:o,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("circle",{cx:"12",cy:"12",r:"1"}),r.createElement("circle",{cx:"12",cy:"5",r:"1"}),r.createElement("circle",{cx:"12",cy:"19",r:"1"}))});
1s.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},s.displayName="MoreVertical",t.A=s},94520:function(e,t,n){var r=n(96540),o=n(5556),i=n.n(o);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,o=e.size,i=void 0===o?24:o,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("circle",{cx:"11",cy:"11",r:"8"}),r.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});s.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},s.displayName="Search",t.A=s},74671:function(e,t,n){var r=n(96540),o=n(5556),i=n.n(o);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.forwardRef)(function(e,t){var n=e.color,o=e.size,i=void 0===o?24:o,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return r.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("circle",{cx:"12",cy:"12",r:"10"}),r.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),r.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15"}))});s.propTypes={color:i().string,size:i().oneOfType([i().string,i().number])},s.displayName="XCircle",t.A=s},9772:function(e,t,n){e.exports=n.p+"static/gradient_left-b7e1c0708e2a1a6c.svg"},73683:function(e,t,n){e.exports=n.p+"static/gradient_right-a0254006bdaefa2c.svg"},83660:function(e,t,n){e.exports=n.p+"static/i_info-0db4477a647622ba.svg"}}]); 2//# sourceMappingURL=3261-581532f1ea57f6a5.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.