@bikdotai/bik-component-library 0.0.839-beta.7 → 0.0.839
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js +1 -1
- package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
- package/dist/cjs/components/button/themes.js +11 -11
- package/dist/cjs/components/button/themes.js.map +1 -1
- package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
- package/dist/cjs/components/dropdown-button/DropdownButton.js.map +1 -1
- package/dist/cjs/icons/Media/Visual/FormkitNeutral.js +2 -0
- package/dist/cjs/icons/Media/Visual/FormkitNeutral.js.map +1 -0
- package/dist/cjs/icons/Media/Visual/FormkitSad.js +2 -0
- package/dist/cjs/icons/Media/Visual/FormkitSad.js.map +1 -0
- package/dist/cjs/icons/index.js +1 -1
- package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js +66 -61
- package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
- package/dist/esm/components/button/themes.d.ts +1 -0
- package/dist/esm/components/button/themes.js +61 -51
- package/dist/esm/components/button/themes.js.map +1 -1
- package/dist/esm/components/dropdown-button/DropdownButton.js +13 -13
- package/dist/esm/components/dropdown-button/DropdownButton.js.map +1 -1
- package/dist/esm/icons/Media/Visual/FormkitNeutral.js +58 -0
- package/dist/esm/icons/Media/Visual/FormkitNeutral.js.map +1 -0
- package/dist/esm/icons/Media/Visual/FormkitSad.js +61 -0
- package/dist/esm/icons/Media/Visual/FormkitSad.js.map +1 -0
- package/dist/esm/icons/Media/Visual/index.d.ts +2 -0
- package/dist/esm/icons/index.d.ts +25 -25
- package/dist/esm/icons/index.js +420 -416
- package/dist/esm/icons/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/icons/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Actions/Common actions/Activate.js"),r=require("./Informational/eCommerce/AddLabel.js"),t=require("./Informational/Location/Address.js"),u=require("./BIK AI specific/AiEmoji.js"),o=require("./BIK AI specific/AiIcon.js"),a=require("./BIK AI specific/AiRobot.js"),n=require("./Informational/General/AlertTriangle.js"),i=require("./Informational/Store related/AllProduct.js"),l=require("./Informational/Files and folders/Archive1.js"),s=require("./Arrows/Normal arrows/ArrowDown.js"),c=require("./Arrows/Normal arrows/ArrowDownLeft.js"),d=require("./Arrows/Normal arrows/ArrowDownRight.js"),f=require("./Arrows/Normal arrows/ArrowLeft.js"),q=require("./Actions/Navigation/ArrowRedo.js"),h=require("./Arrows/Normal arrows/ArrowRight.js"),p=require("./Arrows/Special/ArrowSwitch.js"),m=require("./Actions/Navigation/ArrowUndo.js"),C=require("./Arrows/Normal arrows/ArrowUp.js"),g=require("./Arrows/Normal arrows/ArrowUpLeft.js"),k=require("./Arrows/Normal arrows/ArrowUpRight.js"),S=require("./Informational/Finance/Bank.js"),M=require("./Media/Others/BarcodeScan.js"),b=require("./Informational/Common UI/Bell.js"),A=require("./Informational/Common UI/BellSync.js"),T=require("./Social/Social/BigCommerce.js"),w=require("./Social/Channels/Bigcommerce.js"),F=require("./Informational/General/BookOpenText.js"),P=require("./Legacy - Bikayi specific/Categories/Box.js"),I=require("./Legacy - Bikayi specific/Categories/Box2.js"),R=require("./Informational/Common UI/Bulb.js"),y=require("./Legacy - Bikayi specific/Services/Businesscard.js"),L=require("./Informational/Date and time/Calendar.js"),V=require("./Informational/Date and time/CalendarAdd.js"),v=require("./Informational/Date and time/CalendarCheck.js"),D=require("./Media/Visual/Camera.js"),x=require("./Media/Visual/CameraAdd.js"),U=require("./Arrows/Carat/CaratDown.js"),E=require("./Arrows/Carat/CaratLeft.js"),B=require("./Arrows/Carat/CaratRight.js"),W=require("./Arrows/Carat/CaratUp.js"),H=require("./Informational/Finance/CashOnDelivery.js"),O=require("./Informational/Finance/ChartLine.js"),G=require("./Informational/Communication/Chat.js"),N=require("./Informational/Communication/ChatCheck.js"),$=require("./Informational/Communication/ChatQuestion.js"),z=require("./Informational/Communication/ChatStar.js"),j=require("./Informational/Identity/Chatbot.js"),J=require("./Informational/General/Check.js"),Q=require("./Informational/General/CheckDouble.js"),K=require("./Actions/Formatting/CheckboxIcon.js"),Y=require("./Arrows/Double chevron/ChevronDoubleDown.js"),Z=require("./Arrows/Double chevron/ChevronDoubleLeft.js"),X=require("./Arrows/Double chevron/ChevronDoubleRight.js"),_=require("./Arrows/Double chevron/ChevronDoubleUp.js"),ee=require("./Arrows/Chevron/ChevronDown.js"),re=require("./Arrows/Chevron/ChevronLeft.js"),te=require("./Arrows/Chevron/ChevronRight.js"),ue=require("./Arrows/Chevron/ChevronUp.js"),oe=require("./Informational/eCommerce/Click.js"),ae=require("./Informational/Store related/Clipboard.js"),ne=require("./Informational/Customer intent/ClipboardCheck.js"),ie=require("./Informational/Store related/ClipboardCheck.js"),le=require("./Informational/Date and time/Clock.js"),se=require("./Informational/General/CloseTicket1.js"),ce=require("./Actions/Common actions/Code.js"),de=require("./Informational/Identity/Contacts.js"),fe=require("./Actions/Formatting/Copy.js"),qe=require("./Informational/Finance/CreditCard.js"),he=require("./Media/Visual/Crop.js"),pe=require("./Actions/Common actions/Cross.js"),me=require("./Legacy - Bikayi specific/Services/Customdomain.js"),Ce=require("./Informational/Store related/CustomerReport.js"),ge=require("./Actions/Common actions/Deactivate.js"),ke=require("./Actions/Formatting/DecreaseIndent.js"),Se=require("./Actions/Common actions/Delete.js"),Me=require("./Media/Devices/Desktop.js"),be=require("./Media/Others/Download.js"),Ae=require("./Actions/Formatting/Dropdown.js"),Te=require("./Actions/Common actions/Edit.js"),we=require("./Informational/Communication/Email.js"),Fe=require("./Social/Channels/Email.js"),Pe=require("./Social/Channels/EmailMarketing.js"),Ie=require("./Social/Social/EmailMarketing.js"),Re=require("./Social/Channels/EmailMarketingV2.js"),ye=require("./Social/Channels/EmailV2.js"),Le=require("./Media/Others/EmojiSmile.js"),Ve=require("./Informational/General/Error.js"),ve=require("./Informational/Files and folders/Excel.js"),De=require("./BIK AI specific/Expand.js"),xe=require("./Informational/Customer intent/Experimental.js"),Ue=require("./Toggles/General/Eye.js"),Ee=require("./Toggles/General/EyeClosed.js"),Be=require("./Toggles/General/EyeOff.js"),We=require("./Social/Channels/Facebook.js"),He=require("./Social/Social/Facebook.js"),Oe=require("./Social/Channels/FacebookComment.js"),Ge=require("./Social/Channels/FacebookCommentV2.js"),Ne=require("./Social/Channels/FacebookV2.js"),$e=require("./Informational/General/FailDoc.js"),ze=require("./Informational/Files and folders/File.js"),je=require("./Informational/Files and folders/FileCsv.js"),Je=require("./Informational/Files and folders/FilePage.js"),Qe=require("./Informational/Files and folders/FilePdf.js"),Ke=require("./Informational/eCommerce/Filter.js"),Ye=require("./Media/Visual/FlashOff.js"),Ze=require("./Media/Visual/FlashOn.js"),Xe=require("./Informational/Files and folders/Folder.js"),_e=require("./Media/Visual/FormkitHappy.js"),er=require("./Informational/Common UI/Forms.js"),rr=require("./Actions/Common actions/Forward.js"),tr=require("./Media/Visual/Frame26086263.js"),ur=require("./BIK AI specific/Frame27389.js"),or=require("./BIK AI specific/Frame27597.js"),ar=require("./BIK AI specific/Frame27598.js"),nr=require("./BIK AI specific/Frame27599.js"),ir=require("./Actions/Common actions/Fullscreen.js"),lr=require("./BIK AI specific/GeminiSparkle.js"),sr=require("./Informational/eCommerce/Gift1.js"),cr=require("./Informational/eCommerce/GiftMinus.js"),dr=require("./Informational/eCommerce/GiftPlus.js"),fr=require("./Social/Channels/GmailV2.js"),qr=require("./Social/Social/Google.js"),hr=require("./Social/Social/Gorgias.js"),pr=require("./Informational/Identity/Group.js"),mr=require("./Informational/Finance/Growth.js"),Cr=require("./Actions/Selection/HandleDrag.js"),gr=require("./Informational/Store related/Head112.js"),kr=require("./Toggles/General/HeartEmpty.js"),Sr=require("./Toggles/General/HeartFilled.js"),Mr=require("./Informational/Customer intent/Help.js"),br=require("./Informational/General/Help.js"),Ar=require("./Informational/Date and time/HourGlass.js"),Tr=require("./Informational/General/HourglassFilled.js"),wr=require("./Informational/General/IcList.js"),Fr=require("./Media/Visual/IconTrailing.js"),Pr=require("./Informational/Identity/IdCard.js"),Ir=require("./Media/Visual/Image.js"),Rr=require("./Media/Visual/ImageAdd.js"),yr=require("./Media/Visual/Images.js"),Lr=require("./Actions/Formatting/IncreaseIndent.js"),Vr=require("./Informational/General/Info.js"),vr=require("./Social/Channels/Instagram.js"),Dr=require("./Social/Social/Instagram.js"),xr=require("./Social/Channels/InstagramCommentV2.js"),Ur=require("./Social/Channels/InstagramIcon.js"),Er=require("./Social/Channels/InstagramV2.js"),Br=require("./Informational/Store related/InventoryReport.js"),Wr=require("./Legacy - Bikayi specific/Navigation/Journeys.js"),Hr=require("./Social/Social/Kustomer.js"),Or=require("./Informational/Location/LanguageChange.js"),Gr=require("./Informational/Store related/LegalBalance.js"),Nr=require("./Actions/Common actions/LinkSimpleHorizontal.js"),$r=require("./Informational/Communication/LiveChat.js"),zr=require("./Toggles/General/Lock.js"),jr=require("./Actions/Navigation/LogIn.js"),Jr=require("./Actions/Navigation/LogOut.js"),Qr=require("./Legacy - Bikayi specific/Services/LoudSpeaker.js"),Kr=require("./BIK AI specific/ManifestSparkle.js"),Yr=require("./Informational/Location/MapPin.js"),Zr=require("./Legacy - Bikayi specific/Services/Marketing.js"),Xr=require("./Media/Visual/Maximize.js"),_r=require("./Informational/Files and folders/MediaMessage.js"),et=require("./Informational/Common UI/MenuHamburger.js"),rt=require("./Informational/General/Merge.js"),tt=require("./Informational/Common UI/MessageSearch.js"),ut=require("./Social/Channels/Messenger.js"),ot=require("./Social/Social/Messenger.js"),at=require("./Social/Channels/MessengerV2.js"),nt=require("./Media/Audio/Microphone.js"),it=require("./Actions/Common actions/Minus.js"),lt=require("./Informational/Finance/Money1.js"),st=require("./Social/Channels/MonoFacebook.js"),ct=require("./Social/Channels/MonoFacebookComment.js"),dt=require("./Social/Channels/MonoInstagram.js"),ft=require("./Social/Channels/MonoInstagramComment.js"),qt=require("./Social/Channels/MonoMail.js"),ht=require("./Social/Channels/MonoMessenger.js"),pt=require("./Social/Channels/MonoPhone.js"),mt=require("./Social/Channels/MonoTasks.js"),Ct=require("./Social/Channels/MonoWhatsapp.js"),gt=require("./Informational/Common UI/MoreHorizontal.js"),kt=require("./Informational/Common UI/MoreVertical.js"),St=require("./Informational/Files and folders/Move.js"),Mt=require("./Actions/Formatting/MultiLine.js"),bt=require("./Actions/Formatting/MultiSelect.js"),At=require("./Informational/General/NewTicket.js"),Tt=require("./Informational/Finance/NoCredits.js"),wt=require("./Actions/Formatting/Number.js"),Ft=require("./Actions/Formatting/NumberList.js"),Pt=require("./Actions/Navigation/OpenNewWindow.js"),It=require("./Informational/Files and folders/OrderHistory.js"),Rt=require("./Informational/Store related/OrderReport.js"),yt=require("./Media/Others/Paperclip.js"),Lt=require("./Media/Audio/Pause.js"),Vt=require("./Legacy - Bikayi specific/Services/PaymentLink.js"),vt=require("./Informational/Store related/PaymentReport.js"),Dt=require("./Informational/Customer intent/Percent.js"),xt=require("./Informational/Finance/Percent.js"),Ut=require("./Informational/Identity/Person.js"),Et=require("./Informational/Communication/Phone.js"),Bt=require("./Social/Channels/PhoneV2.js"),Wt=require("./Informational/Common UI/Placeholder.js"),Ht=require("./Legacy - Bikayi specific/Plans/PlanUltimate.js"),Ot=require("./Media/Audio/Play.js"),Gt=require("./Actions/Common actions/Plus.js"),Nt=require("./BIK AI specific/PricePlease.js"),$t=require("./Informational/Files and folders/PrivateNote.js"),zt=require("./Actions/Common actions/ProductTour.js"),jt=require("./Informational/eCommerce/Promocode.js"),Jt=require("./Informational/Customer intent/Purchase.js"),Qt=require("./Actions/Formatting/Quotes.js"),Kt=require("./Social/Social/Rcs.js"),Yt=require("./Social/Channels/RcsV2.js"),Zt=require("./Informational/eCommerce/Receipt.js"),Xt=require("./Actions/Navigation/Refresh.js"),_t=require("./Actions/Common actions/RestApi.js"),eu=require("./Actions/Navigation/Rewind.js"),ru=require("./Informational/Identity/Robot.js"),tu=require("./Media/Visual/RotateAnticlockwise.js"),uu=require("./Media/Visual/RotateClockwise.js"),ou=require("./Informational/General/RoundCheck.js"),au=require("./Informational/Finance/Rupee.js"),nu=require("./Actions/Common actions/Save.js"),iu=require("./Informational/Common UI/Search.js"),lu=require("./Actions/Common actions/Send.js"),su=require("./Actions/Common actions/SendAirplane.js"),cu=require("./Informational/Customer intent/Services.js"),du=require("./Legacy - Bikayi specific/Navigation/Services.js"),fu=require("./Informational/Common UI/Settings.js"),qu=require("./BIK AI specific/Shape.js"),hu=require("./Actions/Common actions/ShareAndroid.js"),pu=require("./Informational/eCommerce/ShieldCheck.js"),mu=require("./Social/Channels/ShopifyBrand.js"),Cu=require("./Social/Social/ShopifyDefault.js"),gu=require("./Informational/eCommerce/ShoppingBag.js"),ku=require("./Informational/eCommerce/ShoppingBasket.js"),Su=require("./Informational/Customer intent/ShoppingCart.js"),Mu=require("./Informational/eCommerce/ShoppingCart.js"),bu=require("./Actions/Common actions/Shortcut.js"),Au=require("./BIK AI specific/Shorter.js"),Tu=require("./Actions/Selection/SingleChoice.js"),wu=require("./Informational/Customer intent/SingleChoice.js"),Fu=require("./Social/Social/SlackIcon.js"),Pu=require("./Informational/General/Slash.js"),Iu=require("./Media/Audio/Sleep.js"),Ru=require("./Media/Devices/Smartphone.js"),yu=require("./Social/Channels/SmsV2.js"),Lu=require("./BIK AI specific/Sparkling2Line.js"),Vu=require("./Toggles/General/StarEmpty.js"),vu=require("./Toggles/General/StarFilled.js"),Du=require("./Toggles/General/StarHalf.js"),xu=require("./Informational/Store related/Store.js"),Uu=require("./Informational/Store related/StoreSync.js"),Eu=require("./Actions/Formatting/Subscript.js"),Bu=require("./Actions/Formatting/Superscript.js"),Wu=require("./Actions/Navigation/Sync.js"),Hu=require("./Informational/Finance/TablerTicket.js"),Ou=require("./Actions/Common actions/Task.js"),Gu=require("./Social/Channels/TaskV2.js"),Nu=require("./Social/Channels/Tasks.js"),$u=require("./Actions/Formatting/Text.js"),zu=require("./Actions/Formatting/TextAlignCenter.js"),ju=require("./Actions/Formatting/TextAlignLeft.js"),Ju=require("./Actions/Formatting/TextAlignRight.js"),Qu=require("./Actions/Formatting/TextBold.js"),Ku=require("./Actions/Formatting/TextItalics.js"),Yu=require("./Actions/Formatting/TextJustify.js"),Zu=require("./Informational/Files and folders/TextMessage.js"),Xu=require("./Actions/Formatting/TextStrikethrough.js"),_u=require("./Actions/Formatting/TextUnderline.js"),eo=require("./Actions/Formatting/Textbox.js"),ro=require("./Legacy - Bikayi specific/Services/Theme.js"),to=require("./Informational/Store related/TicketForm.js"),uo=require("./Informational/General/TicketV2.js"),oo=require("./Informational/Common UI/Training.js"),ao=require("./Informational/Location/Truck.js"),no=require("./Social/Social/Twitter.js"),io=require("./Informational/Files and folders/Unarchive.js"),lo=require("./Informational/Identity/Union.js"),so=require("./Informational/Identity/Union1.js"),co=require("./Toggles/General/Unlock.js"),fo=require("./Informational/Customer intent/Unsatisfactory.js"),qo=require("./Media/Others/Upload.js"),ho=require("./Informational/Identity/User.js"),po=require("./Informational/Identity/UserMinus1.js"),mo=require("./Informational/Identity/UserPlus.js"),Co=require("./Informational/Customer intent/UserSound.js"),go=require("./Media/Visual/VideoCamcorder.js"),ko=require("./Media/Visual/VideoFilm.js"),So=require("./Media/Audio/VolumeMute.js"),Mo=require("./Media/Audio/VolumeOneline.js"),bo=require("./Media/Audio/VolumeTwoline.js"),Ao=require("./Informational/Finance/Wallet.js"),To=require("./BIK AI specific/WandSparkles.js"),wo=require("./Social/Channels/WebPush.js"),Fo=require("./BIK AI specific/Webhook.js"),Po=require("./Social/Channels/WebpushV2.js"),Io=require("./Social/Social/Website.js"),Ro=require("./Social/Channels/WhatsApp.js"),yo=require("./Social/Channels/WhatsAppCallV2.js"),Lo=require("./Social/Channels/WhatsAppV2.js"),Vo=require("./Actions/Navigation/Whatsapp.js"),vo=require("./Social/Social/Whatsapp.js"),Do=require("./Social/Social/WooCommerce.js"),xo=require("./Informational/Date and time/WorkingHours.js"),Uo=require("./BIK AI specific/Write.js"),Eo=require("./Social/Social/Youtube.js"),Bo=require("./Social/Social/Zendesk.js");exports.Activate=e.default;exports.AddLabel=r.default;exports.Address=t.default;exports.AiEmoji=u.default;exports.AiIcon=o.default;exports.AiRobot=a.default;exports.AlertTriangle=n.default;exports.AllProduct=i.default;exports.Archive1=l.default;exports.ArrowDown=s.default;exports.ArrowDownLeft=c.default;exports.ArrowDownRight=d.default;exports.ArrowLeft=f.default;exports.ArrowRedo=q.default;exports.ArrowRight=h.default;exports.ArrowSwitch=p.default;exports.ArrowUndo=m.default;exports.ArrowUp=C.default;exports.ArrowUpLeft=g.default;exports.ArrowUpRight=k.default;exports.Bank=S.default;exports.BarcodeScan=M.default;exports.Bell=b.default;exports.BellSync=A.default;exports.BigCommerce=T.default;exports.Bigcommerce=w.default;exports.BookOpenText=F.default;exports.Box=P.default;exports.Box2=I.default;exports.Bulb=R.default;exports.Businesscard=y.default;exports.Calendar=L.default;exports.CalendarAdd=V.default;exports.CalendarCheck=v.default;exports.Camera=D.default;exports.CameraAdd=x.default;exports.CaratDown=U.default;exports.CaratLeft=E.default;exports.CaratRight=B.default;exports.CaratUp=W.default;exports.CashOnDelivery=H.default;exports.ChartLine=O.default;exports.Chat=G.default;exports.ChatCheck=N.default;exports.ChatQuestion=$.default;exports.ChatStar=z.default;exports.Chatbot=j.default;exports.Check=J.default;exports.CheckDouble=Q.default;exports.CheckboxIcon=K.default;exports.ChevronDoubleDown=Y.default;exports.ChevronDoubleLeft=Z.default;exports.ChevronDoubleRight=X.default;exports.ChevronDoubleUp=_.default;exports.ChevronDown=ee.default;exports.ChevronLeft=re.default;exports.ChevronRight=te.default;exports.ChevronUp=ue.default;exports.Click=oe.default;exports.Clipboard=ae.default;exports.ClipboardCheck=ne.default;exports.ClipboardCheck2=ie.default;exports.Clock=le.default;exports.CloseTicket1=se.default;exports.Code=ce.default;exports.Contacts=de.default;exports.Copy=fe.default;exports.CreditCard=qe.default;exports.Crop=he.default;exports.Cross=pe.default;exports.Customdomain=me.default;exports.CustomerReport=Ce.default;exports.Deactivate=ge.default;exports.DecreaseIndent=ke.default;exports.Delete=Se.default;exports.Desktop=Me.default;exports.Download=be.default;exports.Dropdown=Ae.default;exports.Edit=Te.default;exports.Email=we.default;exports.Email2=Fe.default;exports.EmailMarketing=Pe.default;exports.EmailMarketing2=Ie.default;exports.EmailMarketingV2=Re.default;exports.EmailV2=ye.default;exports.EmojiSmile=Le.default;exports.Error=Ve.default;exports.Excel=ve.default;exports.Expand=De.default;exports.Experimental=xe.default;exports.Eye=Ue.default;exports.EyeClosed=Ee.default;exports.EyeOff=Be.default;exports.Facebook=We.default;exports.Facebook2=He.default;exports.FacebookComment=Oe.default;exports.FacebookCommentV2=Ge.default;exports.FacebookV2=Ne.default;exports.FailDoc=$e.default;exports.File=ze.default;exports.FileCsv=je.default;exports.FilePage=Je.default;exports.FilePdf=Qe.default;exports.Filter=Ke.default;exports.FlashOff=Ye.default;exports.FlashOn=Ze.default;exports.Folder=Xe.default;exports.FormkitHappy=_e.default;exports.Forms=er.default;exports.Forward=rr.default;exports.Frame26086263=tr.default;exports.Frame27389=ur.default;exports.Frame27597=or.default;exports.Frame27598=ar.default;exports.Frame27599=nr.default;exports.Fullscreen=ir.default;exports.GeminiSparkle=lr.default;exports.Gift1=sr.default;exports.GiftMinus=cr.default;exports.GiftPlus=dr.default;exports.GmailV2=fr.default;exports.Google=qr.default;exports.Gorgias=hr.default;exports.Group=pr.default;exports.Growth=mr.default;exports.HandleDrag=Cr.default;exports.Head112=gr.default;exports.HeartEmpty=kr.default;exports.HeartFilled=Sr.default;exports.Help=Mr.default;exports.Help2=br.default;exports.HourGlass=Ar.default;exports.HourglassFilled=Tr.default;exports.IcList=wr.default;exports.IconTrailing=Fr.default;exports.IdCard=Pr.default;exports.Image=Ir.default;exports.ImageAdd=Rr.default;exports.Images=yr.default;exports.IncreaseIndent=Lr.default;exports.Info=Vr.default;exports.Instagram=vr.default;exports.Instagram2=Dr.default;exports.InstagramCommentV2=xr.default;exports.InstagramIcon=Ur.default;exports.InstagramV2=Er.default;exports.InventoryReport=Br.default;exports.Journeys=Wr.default;exports.Kustomer=Hr.default;exports.LanguageChange=Or.default;exports.LegalBalance=Gr.default;exports.LinkSimpleHorizontal=Nr.default;exports.LiveChat=$r.default;exports.Lock=zr.default;exports.LogIn=jr.default;exports.LogOut=Jr.default;exports.LoudSpeaker=Qr.default;exports.ManifestSparkle=Kr.default;exports.MapPin=Yr.default;exports.Marketing=Zr.default;exports.Maximize=Xr.default;exports.MediaMessage=_r.default;exports.MenuHamburger=et.default;exports.Merge=rt.default;exports.MessageSearch=tt.default;exports.Messenger=ut.default;exports.Messenger2=ot.default;exports.MessengerV2=at.default;exports.Microphone=nt.default;exports.Minus=it.default;exports.Money1=lt.default;exports.MonoFacebook=st.default;exports.MonoFacebookComment=ct.default;exports.MonoInstagram=dt.default;exports.MonoInstagramComment=ft.default;exports.MonoMail=qt.default;exports.MonoMessenger=ht.default;exports.MonoPhone=pt.default;exports.MonoTasks=mt.default;exports.MonoWhatsapp=Ct.default;exports.MoreHorizontal=gt.default;exports.MoreVertical=kt.default;exports.Move=St.default;exports.MultiLine=Mt.default;exports.MultiSelect=bt.default;exports.NewTicket=At.default;exports.NoCredits=Tt.default;exports.Number=wt.default;exports.NumberList=Ft.default;exports.OpenNewWindow=Pt.default;exports.OrderHistory=It.default;exports.OrderReport=Rt.default;exports.Paperclip=yt.default;exports.Pause=Lt.default;exports.PaymentLink=Vt.default;exports.PaymentReport=vt.default;exports.Percent=Dt.default;exports.Percent2=xt.default;exports.Person=Ut.default;exports.Phone=Et.default;exports.PhoneV2=Bt.default;exports.Placeholder=Wt.default;exports.PlanUltimate=Ht.default;exports.Play=Ot.default;exports.Plus=Gt.default;exports.PricePlease=Nt.default;exports.PrivateNote=$t.default;exports.ProductTour=zt.default;exports.Promocode=jt.default;exports.Purchase=Jt.default;exports.Quotes=Qt.default;exports.Rcs=Kt.default;exports.RcsV2=Yt.default;exports.Receipt=Zt.default;exports.Refresh=Xt.default;exports.RestApi=_t.default;exports.Rewind=eu.default;exports.Robot=ru.default;exports.RotateAnticlockwise=tu.default;exports.RotateClockwise=uu.default;exports.RoundCheck=ou.default;exports.Rupee=au.default;exports.Save=nu.default;exports.Search=iu.default;exports.Send=lu.default;exports.SendAirplane=su.default;exports.Services=cu.default;exports.Services2=du.default;exports.Settings=fu.default;exports.Shape=qu.default;exports.ShareAndroid=hu.default;exports.ShieldCheck=pu.default;exports.ShopifyBrand=mu.default;exports.ShopifyDefault=Cu.default;exports.ShoppingBag=gu.default;exports.ShoppingBasket=ku.default;exports.ShoppingCart=Su.default;exports.ShoppingCart2=Mu.default;exports.Shortcut=bu.default;exports.Shorter=Au.default;exports.SingleChoice=Tu.default;exports.SingleChoice2=wu.default;exports.SlackIcon=Fu.default;exports.Slash=Pu.default;exports.Sleep=Iu.default;exports.Smartphone=Ru.default;exports.SmsV2=yu.default;exports.Sparkling2Line=Lu.default;exports.StarEmpty=Vu.default;exports.StarFilled=vu.default;exports.StarHalf=Du.default;exports.Store=xu.default;exports.StoreSync=Uu.default;exports.Subscript=Eu.default;exports.Superscript=Bu.default;exports.Sync=Wu.default;exports.TablerTicket=Hu.default;exports.Task=Ou.default;exports.TaskV2=Gu.default;exports.Tasks=Nu.default;exports.Text=$u.default;exports.TextAlignCenter=zu.default;exports.TextAlignLeft=ju.default;exports.TextAlignRight=Ju.default;exports.TextBold=Qu.default;exports.TextItalics=Ku.default;exports.TextJustify=Yu.default;exports.TextMessage=Zu.default;exports.TextStrikethrough=Xu.default;exports.TextUnderline=_u.default;exports.Textbox=eo.default;exports.Theme=ro.default;exports.TicketForm=to.default;exports.TicketV2=uo.default;exports.Training=oo.default;exports.Truck=ao.default;exports.Twitter=no.default;exports.Unarchive=io.default;exports.Union=lo.default;exports.Union1=so.default;exports.Unlock=co.default;exports.Unsatisfactory=fo.default;exports.Upload=qo.default;exports.User=ho.default;exports.UserMinus1=po.default;exports.UserPlus=mo.default;exports.UserSound=Co.default;exports.VideoCamcorder=go.default;exports.VideoFilm=ko.default;exports.VolumeMute=So.default;exports.VolumeOneline=Mo.default;exports.VolumeTwoline=bo.default;exports.Wallet=Ao.default;exports.WandSparkles=To.default;exports.WebPush=wo.default;exports.Webhook=Fo.default;exports.WebpushV2=Po.default;exports.Website=Io.default;exports.WhatsApp=Ro.default;exports.WhatsAppCallV2=yo.default;exports.WhatsAppV2=Lo.default;exports.Whatsapp=Vo.default;exports.Whatsapp2=vo.default;exports.WooCommerce=Do.default;exports.WorkingHours=xo.default;exports.Write=Uo.default;exports.Youtube=Eo.default;exports.Zendesk=Bo.default;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Actions/Common actions/Activate.js"),r=require("./Informational/eCommerce/AddLabel.js"),t=require("./Informational/Location/Address.js"),u=require("./BIK AI specific/AiEmoji.js"),o=require("./BIK AI specific/AiIcon.js"),a=require("./BIK AI specific/AiRobot.js"),n=require("./Informational/General/AlertTriangle.js"),i=require("./Informational/Store related/AllProduct.js"),l=require("./Informational/Files and folders/Archive1.js"),s=require("./Arrows/Normal arrows/ArrowDown.js"),c=require("./Arrows/Normal arrows/ArrowDownLeft.js"),d=require("./Arrows/Normal arrows/ArrowDownRight.js"),f=require("./Arrows/Normal arrows/ArrowLeft.js"),q=require("./Actions/Navigation/ArrowRedo.js"),h=require("./Arrows/Normal arrows/ArrowRight.js"),m=require("./Arrows/Special/ArrowSwitch.js"),p=require("./Actions/Navigation/ArrowUndo.js"),C=require("./Arrows/Normal arrows/ArrowUp.js"),g=require("./Arrows/Normal arrows/ArrowUpLeft.js"),k=require("./Arrows/Normal arrows/ArrowUpRight.js"),S=require("./Informational/Finance/Bank.js"),M=require("./Media/Others/BarcodeScan.js"),b=require("./Informational/Common UI/Bell.js"),A=require("./Informational/Common UI/BellSync.js"),F=require("./Social/Social/BigCommerce.js"),T=require("./Social/Channels/Bigcommerce.js"),w=require("./Informational/General/BookOpenText.js"),P=require("./Legacy - Bikayi specific/Categories/Box.js"),I=require("./Legacy - Bikayi specific/Categories/Box2.js"),R=require("./Informational/Common UI/Bulb.js"),y=require("./Legacy - Bikayi specific/Services/Businesscard.js"),L=require("./Informational/Date and time/Calendar.js"),V=require("./Informational/Date and time/CalendarAdd.js"),v=require("./Informational/Date and time/CalendarCheck.js"),D=require("./Media/Visual/Camera.js"),x=require("./Media/Visual/CameraAdd.js"),U=require("./Arrows/Carat/CaratDown.js"),E=require("./Arrows/Carat/CaratLeft.js"),B=require("./Arrows/Carat/CaratRight.js"),W=require("./Arrows/Carat/CaratUp.js"),H=require("./Informational/Finance/CashOnDelivery.js"),O=require("./Informational/Finance/ChartLine.js"),G=require("./Informational/Communication/Chat.js"),N=require("./Informational/Communication/ChatCheck.js"),$=require("./Informational/Communication/ChatQuestion.js"),z=require("./Informational/Communication/ChatStar.js"),j=require("./Informational/Identity/Chatbot.js"),J=require("./Informational/General/Check.js"),Q=require("./Informational/General/CheckDouble.js"),K=require("./Actions/Formatting/CheckboxIcon.js"),Y=require("./Arrows/Double chevron/ChevronDoubleDown.js"),Z=require("./Arrows/Double chevron/ChevronDoubleLeft.js"),X=require("./Arrows/Double chevron/ChevronDoubleRight.js"),_=require("./Arrows/Double chevron/ChevronDoubleUp.js"),ee=require("./Arrows/Chevron/ChevronDown.js"),re=require("./Arrows/Chevron/ChevronLeft.js"),te=require("./Arrows/Chevron/ChevronRight.js"),ue=require("./Arrows/Chevron/ChevronUp.js"),oe=require("./Informational/eCommerce/Click.js"),ae=require("./Informational/Store related/Clipboard.js"),ne=require("./Informational/Customer intent/ClipboardCheck.js"),ie=require("./Informational/Store related/ClipboardCheck.js"),le=require("./Informational/Date and time/Clock.js"),se=require("./Informational/General/CloseTicket1.js"),ce=require("./Actions/Common actions/Code.js"),de=require("./Informational/Identity/Contacts.js"),fe=require("./Actions/Formatting/Copy.js"),qe=require("./Informational/Finance/CreditCard.js"),he=require("./Media/Visual/Crop.js"),me=require("./Actions/Common actions/Cross.js"),pe=require("./Legacy - Bikayi specific/Services/Customdomain.js"),Ce=require("./Informational/Store related/CustomerReport.js"),ge=require("./Actions/Common actions/Deactivate.js"),ke=require("./Actions/Formatting/DecreaseIndent.js"),Se=require("./Actions/Common actions/Delete.js"),Me=require("./Media/Devices/Desktop.js"),be=require("./Media/Others/Download.js"),Ae=require("./Actions/Formatting/Dropdown.js"),Fe=require("./Actions/Common actions/Edit.js"),Te=require("./Informational/Communication/Email.js"),we=require("./Social/Channels/Email.js"),Pe=require("./Social/Channels/EmailMarketing.js"),Ie=require("./Social/Social/EmailMarketing.js"),Re=require("./Social/Channels/EmailMarketingV2.js"),ye=require("./Social/Channels/EmailV2.js"),Le=require("./Media/Others/EmojiSmile.js"),Ve=require("./Informational/General/Error.js"),ve=require("./Informational/Files and folders/Excel.js"),De=require("./BIK AI specific/Expand.js"),xe=require("./Informational/Customer intent/Experimental.js"),Ue=require("./Toggles/General/Eye.js"),Ee=require("./Toggles/General/EyeClosed.js"),Be=require("./Toggles/General/EyeOff.js"),We=require("./Social/Channels/Facebook.js"),He=require("./Social/Social/Facebook.js"),Oe=require("./Social/Channels/FacebookComment.js"),Ge=require("./Social/Channels/FacebookCommentV2.js"),Ne=require("./Social/Channels/FacebookV2.js"),$e=require("./Informational/General/FailDoc.js"),ze=require("./Informational/Files and folders/File.js"),je=require("./Informational/Files and folders/FileCsv.js"),Je=require("./Informational/Files and folders/FilePage.js"),Qe=require("./Informational/Files and folders/FilePdf.js"),Ke=require("./Informational/eCommerce/Filter.js"),Ye=require("./Media/Visual/FlashOff.js"),Ze=require("./Media/Visual/FlashOn.js"),Xe=require("./Informational/Files and folders/Folder.js"),_e=require("./Media/Visual/FormkitHappy.js"),er=require("./Media/Visual/FormkitNeutral.js"),rr=require("./Media/Visual/FormkitSad.js"),tr=require("./Informational/Common UI/Forms.js"),ur=require("./Actions/Common actions/Forward.js"),or=require("./Media/Visual/Frame26086263.js"),ar=require("./BIK AI specific/Frame27389.js"),nr=require("./BIK AI specific/Frame27597.js"),ir=require("./BIK AI specific/Frame27598.js"),lr=require("./BIK AI specific/Frame27599.js"),sr=require("./Actions/Common actions/Fullscreen.js"),cr=require("./BIK AI specific/GeminiSparkle.js"),dr=require("./Informational/eCommerce/Gift1.js"),fr=require("./Informational/eCommerce/GiftMinus.js"),qr=require("./Informational/eCommerce/GiftPlus.js"),hr=require("./Social/Channels/GmailV2.js"),mr=require("./Social/Social/Google.js"),pr=require("./Social/Social/Gorgias.js"),Cr=require("./Informational/Identity/Group.js"),gr=require("./Informational/Finance/Growth.js"),kr=require("./Actions/Selection/HandleDrag.js"),Sr=require("./Informational/Store related/Head112.js"),Mr=require("./Toggles/General/HeartEmpty.js"),br=require("./Toggles/General/HeartFilled.js"),Ar=require("./Informational/Customer intent/Help.js"),Fr=require("./Informational/General/Help.js"),Tr=require("./Informational/Date and time/HourGlass.js"),wr=require("./Informational/General/HourglassFilled.js"),Pr=require("./Informational/General/IcList.js"),Ir=require("./Media/Visual/IconTrailing.js"),Rr=require("./Informational/Identity/IdCard.js"),yr=require("./Media/Visual/Image.js"),Lr=require("./Media/Visual/ImageAdd.js"),Vr=require("./Media/Visual/Images.js"),vr=require("./Actions/Formatting/IncreaseIndent.js"),Dr=require("./Informational/General/Info.js"),xr=require("./Social/Channels/Instagram.js"),Ur=require("./Social/Social/Instagram.js"),Er=require("./Social/Channels/InstagramCommentV2.js"),Br=require("./Social/Channels/InstagramIcon.js"),Wr=require("./Social/Channels/InstagramV2.js"),Hr=require("./Informational/Store related/InventoryReport.js"),Or=require("./Legacy - Bikayi specific/Navigation/Journeys.js"),Gr=require("./Social/Social/Kustomer.js"),Nr=require("./Informational/Location/LanguageChange.js"),$r=require("./Informational/Store related/LegalBalance.js"),zr=require("./Actions/Common actions/LinkSimpleHorizontal.js"),jr=require("./Informational/Communication/LiveChat.js"),Jr=require("./Toggles/General/Lock.js"),Qr=require("./Actions/Navigation/LogIn.js"),Kr=require("./Actions/Navigation/LogOut.js"),Yr=require("./Legacy - Bikayi specific/Services/LoudSpeaker.js"),Zr=require("./BIK AI specific/ManifestSparkle.js"),Xr=require("./Informational/Location/MapPin.js"),_r=require("./Legacy - Bikayi specific/Services/Marketing.js"),et=require("./Media/Visual/Maximize.js"),rt=require("./Informational/Files and folders/MediaMessage.js"),tt=require("./Informational/Common UI/MenuHamburger.js"),ut=require("./Informational/General/Merge.js"),ot=require("./Informational/Common UI/MessageSearch.js"),at=require("./Social/Channels/Messenger.js"),nt=require("./Social/Social/Messenger.js"),it=require("./Social/Channels/MessengerV2.js"),lt=require("./Media/Audio/Microphone.js"),st=require("./Actions/Common actions/Minus.js"),ct=require("./Informational/Finance/Money1.js"),dt=require("./Social/Channels/MonoFacebook.js"),ft=require("./Social/Channels/MonoFacebookComment.js"),qt=require("./Social/Channels/MonoInstagram.js"),ht=require("./Social/Channels/MonoInstagramComment.js"),mt=require("./Social/Channels/MonoMail.js"),pt=require("./Social/Channels/MonoMessenger.js"),Ct=require("./Social/Channels/MonoPhone.js"),gt=require("./Social/Channels/MonoTasks.js"),kt=require("./Social/Channels/MonoWhatsapp.js"),St=require("./Informational/Common UI/MoreHorizontal.js"),Mt=require("./Informational/Common UI/MoreVertical.js"),bt=require("./Informational/Files and folders/Move.js"),At=require("./Actions/Formatting/MultiLine.js"),Ft=require("./Actions/Formatting/MultiSelect.js"),Tt=require("./Informational/General/NewTicket.js"),wt=require("./Informational/Finance/NoCredits.js"),Pt=require("./Actions/Formatting/Number.js"),It=require("./Actions/Formatting/NumberList.js"),Rt=require("./Actions/Navigation/OpenNewWindow.js"),yt=require("./Informational/Files and folders/OrderHistory.js"),Lt=require("./Informational/Store related/OrderReport.js"),Vt=require("./Media/Others/Paperclip.js"),vt=require("./Media/Audio/Pause.js"),Dt=require("./Legacy - Bikayi specific/Services/PaymentLink.js"),xt=require("./Informational/Store related/PaymentReport.js"),Ut=require("./Informational/Customer intent/Percent.js"),Et=require("./Informational/Finance/Percent.js"),Bt=require("./Informational/Identity/Person.js"),Wt=require("./Informational/Communication/Phone.js"),Ht=require("./Social/Channels/PhoneV2.js"),Ot=require("./Informational/Common UI/Placeholder.js"),Gt=require("./Legacy - Bikayi specific/Plans/PlanUltimate.js"),Nt=require("./Media/Audio/Play.js"),$t=require("./Actions/Common actions/Plus.js"),zt=require("./BIK AI specific/PricePlease.js"),jt=require("./Informational/Files and folders/PrivateNote.js"),Jt=require("./Actions/Common actions/ProductTour.js"),Qt=require("./Informational/eCommerce/Promocode.js"),Kt=require("./Informational/Customer intent/Purchase.js"),Yt=require("./Actions/Formatting/Quotes.js"),Zt=require("./Social/Social/Rcs.js"),Xt=require("./Social/Channels/RcsV2.js"),_t=require("./Informational/eCommerce/Receipt.js"),eu=require("./Actions/Navigation/Refresh.js"),ru=require("./Actions/Common actions/RestApi.js"),tu=require("./Actions/Navigation/Rewind.js"),uu=require("./Informational/Identity/Robot.js"),ou=require("./Media/Visual/RotateAnticlockwise.js"),au=require("./Media/Visual/RotateClockwise.js"),nu=require("./Informational/General/RoundCheck.js"),iu=require("./Informational/Finance/Rupee.js"),lu=require("./Actions/Common actions/Save.js"),su=require("./Informational/Common UI/Search.js"),cu=require("./Actions/Common actions/Send.js"),du=require("./Actions/Common actions/SendAirplane.js"),fu=require("./Informational/Customer intent/Services.js"),qu=require("./Legacy - Bikayi specific/Navigation/Services.js"),hu=require("./Informational/Common UI/Settings.js"),mu=require("./BIK AI specific/Shape.js"),pu=require("./Actions/Common actions/ShareAndroid.js"),Cu=require("./Informational/eCommerce/ShieldCheck.js"),gu=require("./Social/Channels/ShopifyBrand.js"),ku=require("./Social/Social/ShopifyDefault.js"),Su=require("./Informational/eCommerce/ShoppingBag.js"),Mu=require("./Informational/eCommerce/ShoppingBasket.js"),bu=require("./Informational/Customer intent/ShoppingCart.js"),Au=require("./Informational/eCommerce/ShoppingCart.js"),Fu=require("./Actions/Common actions/Shortcut.js"),Tu=require("./BIK AI specific/Shorter.js"),wu=require("./Actions/Selection/SingleChoice.js"),Pu=require("./Informational/Customer intent/SingleChoice.js"),Iu=require("./Social/Social/SlackIcon.js"),Ru=require("./Informational/General/Slash.js"),yu=require("./Media/Audio/Sleep.js"),Lu=require("./Media/Devices/Smartphone.js"),Vu=require("./Social/Channels/SmsV2.js"),vu=require("./BIK AI specific/Sparkling2Line.js"),Du=require("./Toggles/General/StarEmpty.js"),xu=require("./Toggles/General/StarFilled.js"),Uu=require("./Toggles/General/StarHalf.js"),Eu=require("./Informational/Store related/Store.js"),Bu=require("./Informational/Store related/StoreSync.js"),Wu=require("./Actions/Formatting/Subscript.js"),Hu=require("./Actions/Formatting/Superscript.js"),Ou=require("./Actions/Navigation/Sync.js"),Gu=require("./Informational/Finance/TablerTicket.js"),Nu=require("./Actions/Common actions/Task.js"),$u=require("./Social/Channels/TaskV2.js"),zu=require("./Social/Channels/Tasks.js"),ju=require("./Actions/Formatting/Text.js"),Ju=require("./Actions/Formatting/TextAlignCenter.js"),Qu=require("./Actions/Formatting/TextAlignLeft.js"),Ku=require("./Actions/Formatting/TextAlignRight.js"),Yu=require("./Actions/Formatting/TextBold.js"),Zu=require("./Actions/Formatting/TextItalics.js"),Xu=require("./Actions/Formatting/TextJustify.js"),_u=require("./Informational/Files and folders/TextMessage.js"),eo=require("./Actions/Formatting/TextStrikethrough.js"),ro=require("./Actions/Formatting/TextUnderline.js"),to=require("./Actions/Formatting/Textbox.js"),uo=require("./Legacy - Bikayi specific/Services/Theme.js"),oo=require("./Informational/Store related/TicketForm.js"),ao=require("./Informational/General/TicketV2.js"),no=require("./Informational/Common UI/Training.js"),io=require("./Informational/Location/Truck.js"),lo=require("./Social/Social/Twitter.js"),so=require("./Informational/Files and folders/Unarchive.js"),co=require("./Informational/Identity/Union.js"),fo=require("./Informational/Identity/Union1.js"),qo=require("./Toggles/General/Unlock.js"),ho=require("./Informational/Customer intent/Unsatisfactory.js"),mo=require("./Media/Others/Upload.js"),po=require("./Informational/Identity/User.js"),Co=require("./Informational/Identity/UserMinus1.js"),go=require("./Informational/Identity/UserPlus.js"),ko=require("./Informational/Customer intent/UserSound.js"),So=require("./Media/Visual/VideoCamcorder.js"),Mo=require("./Media/Visual/VideoFilm.js"),bo=require("./Media/Audio/VolumeMute.js"),Ao=require("./Media/Audio/VolumeOneline.js"),Fo=require("./Media/Audio/VolumeTwoline.js"),To=require("./Informational/Finance/Wallet.js"),wo=require("./BIK AI specific/WandSparkles.js"),Po=require("./Social/Channels/WebPush.js"),Io=require("./BIK AI specific/Webhook.js"),Ro=require("./Social/Channels/WebpushV2.js"),yo=require("./Social/Social/Website.js"),Lo=require("./Social/Channels/WhatsApp.js"),Vo=require("./Social/Channels/WhatsAppCallV2.js"),vo=require("./Social/Channels/WhatsAppV2.js"),Do=require("./Actions/Navigation/Whatsapp.js"),xo=require("./Social/Social/Whatsapp.js"),Uo=require("./Social/Social/WooCommerce.js"),Eo=require("./Informational/Date and time/WorkingHours.js"),Bo=require("./BIK AI specific/Write.js"),Wo=require("./Social/Social/Youtube.js"),Ho=require("./Social/Social/Zendesk.js");exports.Activate=e.default;exports.AddLabel=r.default;exports.Address=t.default;exports.AiEmoji=u.default;exports.AiIcon=o.default;exports.AiRobot=a.default;exports.AlertTriangle=n.default;exports.AllProduct=i.default;exports.Archive1=l.default;exports.ArrowDown=s.default;exports.ArrowDownLeft=c.default;exports.ArrowDownRight=d.default;exports.ArrowLeft=f.default;exports.ArrowRedo=q.default;exports.ArrowRight=h.default;exports.ArrowSwitch=m.default;exports.ArrowUndo=p.default;exports.ArrowUp=C.default;exports.ArrowUpLeft=g.default;exports.ArrowUpRight=k.default;exports.Bank=S.default;exports.BarcodeScan=M.default;exports.Bell=b.default;exports.BellSync=A.default;exports.BigCommerce=F.default;exports.Bigcommerce=T.default;exports.BookOpenText=w.default;exports.Box=P.default;exports.Box2=I.default;exports.Bulb=R.default;exports.Businesscard=y.default;exports.Calendar=L.default;exports.CalendarAdd=V.default;exports.CalendarCheck=v.default;exports.Camera=D.default;exports.CameraAdd=x.default;exports.CaratDown=U.default;exports.CaratLeft=E.default;exports.CaratRight=B.default;exports.CaratUp=W.default;exports.CashOnDelivery=H.default;exports.ChartLine=O.default;exports.Chat=G.default;exports.ChatCheck=N.default;exports.ChatQuestion=$.default;exports.ChatStar=z.default;exports.Chatbot=j.default;exports.Check=J.default;exports.CheckDouble=Q.default;exports.CheckboxIcon=K.default;exports.ChevronDoubleDown=Y.default;exports.ChevronDoubleLeft=Z.default;exports.ChevronDoubleRight=X.default;exports.ChevronDoubleUp=_.default;exports.ChevronDown=ee.default;exports.ChevronLeft=re.default;exports.ChevronRight=te.default;exports.ChevronUp=ue.default;exports.Click=oe.default;exports.Clipboard=ae.default;exports.ClipboardCheck=ne.default;exports.ClipboardCheck2=ie.default;exports.Clock=le.default;exports.CloseTicket1=se.default;exports.Code=ce.default;exports.Contacts=de.default;exports.Copy=fe.default;exports.CreditCard=qe.default;exports.Crop=he.default;exports.Cross=me.default;exports.Customdomain=pe.default;exports.CustomerReport=Ce.default;exports.Deactivate=ge.default;exports.DecreaseIndent=ke.default;exports.Delete=Se.default;exports.Desktop=Me.default;exports.Download=be.default;exports.Dropdown=Ae.default;exports.Edit=Fe.default;exports.Email=Te.default;exports.Email2=we.default;exports.EmailMarketing=Pe.default;exports.EmailMarketing2=Ie.default;exports.EmailMarketingV2=Re.default;exports.EmailV2=ye.default;exports.EmojiSmile=Le.default;exports.Error=Ve.default;exports.Excel=ve.default;exports.Expand=De.default;exports.Experimental=xe.default;exports.Eye=Ue.default;exports.EyeClosed=Ee.default;exports.EyeOff=Be.default;exports.Facebook=We.default;exports.Facebook2=He.default;exports.FacebookComment=Oe.default;exports.FacebookCommentV2=Ge.default;exports.FacebookV2=Ne.default;exports.FailDoc=$e.default;exports.File=ze.default;exports.FileCsv=je.default;exports.FilePage=Je.default;exports.FilePdf=Qe.default;exports.Filter=Ke.default;exports.FlashOff=Ye.default;exports.FlashOn=Ze.default;exports.Folder=Xe.default;exports.FormkitHappy=_e.default;exports.FormkitNeutral=er.default;exports.FormkitSad=rr.default;exports.Forms=tr.default;exports.Forward=ur.default;exports.Frame26086263=or.default;exports.Frame27389=ar.default;exports.Frame27597=nr.default;exports.Frame27598=ir.default;exports.Frame27599=lr.default;exports.Fullscreen=sr.default;exports.GeminiSparkle=cr.default;exports.Gift1=dr.default;exports.GiftMinus=fr.default;exports.GiftPlus=qr.default;exports.GmailV2=hr.default;exports.Google=mr.default;exports.Gorgias=pr.default;exports.Group=Cr.default;exports.Growth=gr.default;exports.HandleDrag=kr.default;exports.Head112=Sr.default;exports.HeartEmpty=Mr.default;exports.HeartFilled=br.default;exports.Help=Ar.default;exports.Help2=Fr.default;exports.HourGlass=Tr.default;exports.HourglassFilled=wr.default;exports.IcList=Pr.default;exports.IconTrailing=Ir.default;exports.IdCard=Rr.default;exports.Image=yr.default;exports.ImageAdd=Lr.default;exports.Images=Vr.default;exports.IncreaseIndent=vr.default;exports.Info=Dr.default;exports.Instagram=xr.default;exports.Instagram2=Ur.default;exports.InstagramCommentV2=Er.default;exports.InstagramIcon=Br.default;exports.InstagramV2=Wr.default;exports.InventoryReport=Hr.default;exports.Journeys=Or.default;exports.Kustomer=Gr.default;exports.LanguageChange=Nr.default;exports.LegalBalance=$r.default;exports.LinkSimpleHorizontal=zr.default;exports.LiveChat=jr.default;exports.Lock=Jr.default;exports.LogIn=Qr.default;exports.LogOut=Kr.default;exports.LoudSpeaker=Yr.default;exports.ManifestSparkle=Zr.default;exports.MapPin=Xr.default;exports.Marketing=_r.default;exports.Maximize=et.default;exports.MediaMessage=rt.default;exports.MenuHamburger=tt.default;exports.Merge=ut.default;exports.MessageSearch=ot.default;exports.Messenger=at.default;exports.Messenger2=nt.default;exports.MessengerV2=it.default;exports.Microphone=lt.default;exports.Minus=st.default;exports.Money1=ct.default;exports.MonoFacebook=dt.default;exports.MonoFacebookComment=ft.default;exports.MonoInstagram=qt.default;exports.MonoInstagramComment=ht.default;exports.MonoMail=mt.default;exports.MonoMessenger=pt.default;exports.MonoPhone=Ct.default;exports.MonoTasks=gt.default;exports.MonoWhatsapp=kt.default;exports.MoreHorizontal=St.default;exports.MoreVertical=Mt.default;exports.Move=bt.default;exports.MultiLine=At.default;exports.MultiSelect=Ft.default;exports.NewTicket=Tt.default;exports.NoCredits=wt.default;exports.Number=Pt.default;exports.NumberList=It.default;exports.OpenNewWindow=Rt.default;exports.OrderHistory=yt.default;exports.OrderReport=Lt.default;exports.Paperclip=Vt.default;exports.Pause=vt.default;exports.PaymentLink=Dt.default;exports.PaymentReport=xt.default;exports.Percent=Ut.default;exports.Percent2=Et.default;exports.Person=Bt.default;exports.Phone=Wt.default;exports.PhoneV2=Ht.default;exports.Placeholder=Ot.default;exports.PlanUltimate=Gt.default;exports.Play=Nt.default;exports.Plus=$t.default;exports.PricePlease=zt.default;exports.PrivateNote=jt.default;exports.ProductTour=Jt.default;exports.Promocode=Qt.default;exports.Purchase=Kt.default;exports.Quotes=Yt.default;exports.Rcs=Zt.default;exports.RcsV2=Xt.default;exports.Receipt=_t.default;exports.Refresh=eu.default;exports.RestApi=ru.default;exports.Rewind=tu.default;exports.Robot=uu.default;exports.RotateAnticlockwise=ou.default;exports.RotateClockwise=au.default;exports.RoundCheck=nu.default;exports.Rupee=iu.default;exports.Save=lu.default;exports.Search=su.default;exports.Send=cu.default;exports.SendAirplane=du.default;exports.Services=fu.default;exports.Services2=qu.default;exports.Settings=hu.default;exports.Shape=mu.default;exports.ShareAndroid=pu.default;exports.ShieldCheck=Cu.default;exports.ShopifyBrand=gu.default;exports.ShopifyDefault=ku.default;exports.ShoppingBag=Su.default;exports.ShoppingBasket=Mu.default;exports.ShoppingCart=bu.default;exports.ShoppingCart2=Au.default;exports.Shortcut=Fu.default;exports.Shorter=Tu.default;exports.SingleChoice=wu.default;exports.SingleChoice2=Pu.default;exports.SlackIcon=Iu.default;exports.Slash=Ru.default;exports.Sleep=yu.default;exports.Smartphone=Lu.default;exports.SmsV2=Vu.default;exports.Sparkling2Line=vu.default;exports.StarEmpty=Du.default;exports.StarFilled=xu.default;exports.StarHalf=Uu.default;exports.Store=Eu.default;exports.StoreSync=Bu.default;exports.Subscript=Wu.default;exports.Superscript=Hu.default;exports.Sync=Ou.default;exports.TablerTicket=Gu.default;exports.Task=Nu.default;exports.TaskV2=$u.default;exports.Tasks=zu.default;exports.Text=ju.default;exports.TextAlignCenter=Ju.default;exports.TextAlignLeft=Qu.default;exports.TextAlignRight=Ku.default;exports.TextBold=Yu.default;exports.TextItalics=Zu.default;exports.TextJustify=Xu.default;exports.TextMessage=_u.default;exports.TextStrikethrough=eo.default;exports.TextUnderline=ro.default;exports.Textbox=to.default;exports.Theme=uo.default;exports.TicketForm=oo.default;exports.TicketV2=ao.default;exports.Training=no.default;exports.Truck=io.default;exports.Twitter=lo.default;exports.Unarchive=so.default;exports.Union=co.default;exports.Union1=fo.default;exports.Unlock=qo.default;exports.Unsatisfactory=ho.default;exports.Upload=mo.default;exports.User=po.default;exports.UserMinus1=Co.default;exports.UserPlus=go.default;exports.UserSound=ko.default;exports.VideoCamcorder=So.default;exports.VideoFilm=Mo.default;exports.VolumeMute=bo.default;exports.VolumeOneline=Ao.default;exports.VolumeTwoline=Fo.default;exports.Wallet=To.default;exports.WandSparkles=wo.default;exports.WebPush=Po.default;exports.Webhook=Io.default;exports.WebpushV2=Ro.default;exports.Website=yo.default;exports.WhatsApp=Lo.default;exports.WhatsAppCallV2=Vo.default;exports.WhatsAppV2=vo.default;exports.Whatsapp=Do.default;exports.Whatsapp2=xo.default;exports.WooCommerce=Uo.default;exports.WorkingHours=Eo.default;exports.Write=Bo.default;exports.Youtube=Wo.default;exports.Zendesk=Ho.default;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import oe, { forwardRef as
|
|
1
|
+
import { jsx as n, Fragment as X, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import oe, { forwardRef as ne, useRef as D, useState as q, useMemo as U, useImperativeHandle as se, useCallback as I, useEffect as ie } from "react";
|
|
3
3
|
import { COLORS as M } from "../../../constants/Theme.js";
|
|
4
4
|
import { useWindowSize as le } from "../../../hooks/useWindowSize.js";
|
|
5
5
|
import { BodySecondary as ae } from "../../TypographyStyle.js";
|
|
@@ -10,17 +10,17 @@ import { useScrollToBottom as ue, useInitialMountScroll as he, useScrollCleanup
|
|
|
10
10
|
import { MESSAGE_CHANNELS as Y } from "./types.js";
|
|
11
11
|
import { TOP_THRESHOLD as Se, normalizeRef as xe, isSameDay as be, Constants as P } from "./utils.js";
|
|
12
12
|
import { Button as Te } from "../../button/Button.js";
|
|
13
|
-
const G = 204, Ae = ({ text: R, isExpanded: h, onToggle:
|
|
14
|
-
const i = D(null), [
|
|
13
|
+
const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: s }) => {
|
|
14
|
+
const i = D(null), [x, b] = q(!1);
|
|
15
15
|
return ie(() => {
|
|
16
16
|
const g = i.current;
|
|
17
17
|
if (g) {
|
|
18
18
|
g.style.maxHeight = "none";
|
|
19
19
|
const $ = g.scrollHeight > G;
|
|
20
|
-
g.style.maxHeight = h ? "none" : `${G}px`,
|
|
20
|
+
g.style.maxHeight = h ? "none" : `${G}px`, b($);
|
|
21
21
|
}
|
|
22
22
|
}, [R, h]), /* @__PURE__ */ k(X, { children: [
|
|
23
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ n(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
ref: i,
|
|
@@ -28,25 +28,25 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
28
28
|
maxHeight: h ? "none" : G,
|
|
29
29
|
overflow: "hidden"
|
|
30
30
|
},
|
|
31
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ n(ae, { children: R })
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
|
|
34
|
+
x && /* @__PURE__ */ n(
|
|
35
35
|
Te,
|
|
36
36
|
{
|
|
37
37
|
buttonType: "text",
|
|
38
38
|
size: "xs",
|
|
39
39
|
buttonText: h ? "Show less" : "Read more",
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: s
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
43
|
] });
|
|
44
44
|
}, Me = (R, h) => {
|
|
45
45
|
const {
|
|
46
|
-
messages:
|
|
46
|
+
messages: s = [],
|
|
47
47
|
user: i,
|
|
48
|
-
renderBubble:
|
|
49
|
-
renderAvatar:
|
|
48
|
+
renderBubble: x,
|
|
49
|
+
renderAvatar: b,
|
|
50
50
|
renderDay: g,
|
|
51
51
|
renderLoading: $,
|
|
52
52
|
renderChatEmpty: N,
|
|
@@ -59,9 +59,9 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
59
59
|
topThreshold: J = Se,
|
|
60
60
|
appType: c = u.Bik,
|
|
61
61
|
maxHeight: O,
|
|
62
|
-
isActivityMessage:
|
|
62
|
+
isActivityMessage: T,
|
|
63
63
|
...F
|
|
64
|
-
} = R || {},
|
|
64
|
+
} = R || {}, S = le(), K = D(null), p = xe(
|
|
65
65
|
w.ref || h,
|
|
66
66
|
K
|
|
67
67
|
), m = D({
|
|
@@ -70,18 +70,18 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
70
70
|
isLoadingOldMessages: !1,
|
|
71
71
|
isAtBottom: !0,
|
|
72
72
|
hasTriggeredEndReached: !1,
|
|
73
|
-
lastMessagesLength:
|
|
73
|
+
lastMessagesLength: s?.length ?? 0,
|
|
74
74
|
previousScrollHeight: 0,
|
|
75
75
|
previousScrollTop: 0,
|
|
76
76
|
scrollTimeout: null
|
|
77
|
-
}), [V, Q] = q(/* @__PURE__ */ new Set()), d = U(() => !
|
|
77
|
+
}), [V, Q] = q(/* @__PURE__ */ new Set()), d = U(() => !s || s.length === 0 ? [] : [...s].reverse(), [s]), Z = U(() => {
|
|
78
78
|
const e = [];
|
|
79
79
|
return d.forEach((o, r) => {
|
|
80
80
|
const t = d[r - 1];
|
|
81
81
|
r === 0 || !be(o, t) ? e.push({ createdAt: o.createdAt, indices: [r] }) : e[e.length - 1].indices.push(r);
|
|
82
82
|
}), e;
|
|
83
83
|
}, [d]), E = ue(p, m);
|
|
84
|
-
|
|
84
|
+
se(h, () => p.current), he(
|
|
85
85
|
p,
|
|
86
86
|
m,
|
|
87
87
|
d.length,
|
|
@@ -89,10 +89,10 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
89
89
|
), ge(m), pe(p, m, d.length), me(
|
|
90
90
|
p,
|
|
91
91
|
m,
|
|
92
|
-
|
|
92
|
+
s.length,
|
|
93
93
|
E
|
|
94
94
|
), ye(
|
|
95
|
-
|
|
95
|
+
s?.[0],
|
|
96
96
|
m,
|
|
97
97
|
E,
|
|
98
98
|
L
|
|
@@ -102,15 +102,20 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
102
102
|
w.onEndReached,
|
|
103
103
|
w.onScroll,
|
|
104
104
|
J
|
|
105
|
-
),
|
|
105
|
+
), f = I(
|
|
106
106
|
(e) => !!(e && i && e.user?._id === i._id),
|
|
107
107
|
[i]
|
|
108
108
|
), W = I(
|
|
109
|
-
(e, o) => C ? _ ? !0 : !o || (
|
|
110
|
-
[
|
|
109
|
+
(e, o) => C ? _ || f(e) ? !0 : !o || (T ? T(e) : !1) || (T ? T(o) : !1) || o.user._id !== e.user._id : !1,
|
|
110
|
+
[
|
|
111
|
+
C,
|
|
112
|
+
_,
|
|
113
|
+
T,
|
|
114
|
+
f
|
|
115
|
+
]
|
|
111
116
|
), te = I(
|
|
112
117
|
(e, o, r) => {
|
|
113
|
-
const t =
|
|
118
|
+
const t = f(e) ? "right" : "left", a = o?.user?._id !== e?.user?._id, y = r?.user?._id !== e?.user?._id, A = {
|
|
114
119
|
currentMessage: e,
|
|
115
120
|
previousMessage: o,
|
|
116
121
|
nextMessage: r,
|
|
@@ -118,10 +123,10 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
118
123
|
user: i,
|
|
119
124
|
...F
|
|
120
125
|
};
|
|
121
|
-
if (
|
|
122
|
-
return
|
|
123
|
-
const
|
|
124
|
-
return /* @__PURE__ */
|
|
126
|
+
if (x)
|
|
127
|
+
return x(A);
|
|
128
|
+
const l = e._id, B = V.has(l);
|
|
129
|
+
return /* @__PURE__ */ n(
|
|
125
130
|
"div",
|
|
126
131
|
{
|
|
127
132
|
style: {
|
|
@@ -129,39 +134,39 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
129
134
|
width: "fit-content",
|
|
130
135
|
...c === u.Manifest ? { minWidth: "130px" } : {},
|
|
131
136
|
padding: "8px 12px",
|
|
132
|
-
borderTopLeftRadius: t === "left" ?
|
|
133
|
-
borderTopRightRadius:
|
|
134
|
-
borderBottomLeftRadius: t === "left" ?
|
|
135
|
-
borderBottomRightRadius:
|
|
137
|
+
borderTopLeftRadius: t === "left" ? a ? 12 : 2 : 12,
|
|
138
|
+
borderTopRightRadius: 12,
|
|
139
|
+
borderBottomLeftRadius: t === "left" ? y ? 12 : 2 : 12,
|
|
140
|
+
borderBottomRightRadius: 12,
|
|
136
141
|
border: t === "left" && c === u.Manifest ? "1px solid rgb(224, 224, 224)" : "none",
|
|
137
142
|
backgroundColor: t === "right" ? c === u.Manifest ? M.background.brandTint : M.background.brandLight : c === u.Manifest ? M.background.pureWhite : M.background.inactive,
|
|
138
143
|
color: M.content.primary,
|
|
139
144
|
wordBreak: "break-word"
|
|
140
145
|
},
|
|
141
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ n(
|
|
142
147
|
Ae,
|
|
143
148
|
{
|
|
144
149
|
text: e.text ?? "",
|
|
145
150
|
isExpanded: B,
|
|
146
151
|
onToggle: () => Q((H) => {
|
|
147
|
-
const
|
|
148
|
-
return B ?
|
|
152
|
+
const v = new Set(H);
|
|
153
|
+
return B ? v.delete(l) : v.add(l), v;
|
|
149
154
|
})
|
|
150
155
|
}
|
|
151
156
|
)
|
|
152
157
|
}
|
|
153
158
|
);
|
|
154
159
|
},
|
|
155
|
-
[
|
|
160
|
+
[f, i, x, F, V]
|
|
156
161
|
), j = I(
|
|
157
162
|
(e, o, r) => {
|
|
158
163
|
if (!W(e, o)) return null;
|
|
159
|
-
const
|
|
160
|
-
return
|
|
164
|
+
const a = f(e) ? "right" : "left";
|
|
165
|
+
return b ? b({
|
|
161
166
|
currentMessage: e,
|
|
162
167
|
previousMessage: o,
|
|
163
168
|
nextMessage: r,
|
|
164
|
-
position:
|
|
169
|
+
position: a,
|
|
165
170
|
user: i,
|
|
166
171
|
renderAvatarOnTop: z,
|
|
167
172
|
showUserAvatar: C,
|
|
@@ -170,15 +175,15 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
170
175
|
},
|
|
171
176
|
[
|
|
172
177
|
W,
|
|
173
|
-
|
|
178
|
+
f,
|
|
174
179
|
i,
|
|
175
180
|
z,
|
|
176
181
|
C,
|
|
177
182
|
_,
|
|
178
|
-
|
|
183
|
+
b
|
|
179
184
|
]
|
|
180
185
|
);
|
|
181
|
-
return !
|
|
186
|
+
return !s || s.length === 0 ? N ? /* @__PURE__ */ n(X, { children: N() }) : null : /* @__PURE__ */ k(
|
|
182
187
|
"div",
|
|
183
188
|
{
|
|
184
189
|
ref: p,
|
|
@@ -193,8 +198,8 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
193
198
|
},
|
|
194
199
|
onScroll: ee,
|
|
195
200
|
children: [
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ n("div", { style: { flex: "1 0 auto" } }),
|
|
202
|
+
/* @__PURE__ */ n(
|
|
198
203
|
"div",
|
|
199
204
|
{
|
|
200
205
|
style: {
|
|
@@ -203,7 +208,7 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
203
208
|
flex: "0 0 auto"
|
|
204
209
|
},
|
|
205
210
|
children: Z.map((e, o) => /* @__PURE__ */ k("div", { children: [
|
|
206
|
-
g ? /* @__PURE__ */
|
|
211
|
+
g ? /* @__PURE__ */ n("div", { style: { position: "sticky", top: 0, zIndex: 2 }, children: g({ createdAt: e.createdAt }) }) : /* @__PURE__ */ n(
|
|
207
212
|
ce,
|
|
208
213
|
{
|
|
209
214
|
createdAt: e.createdAt,
|
|
@@ -212,29 +217,29 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
212
217
|
}
|
|
213
218
|
),
|
|
214
219
|
e.indices.map((r) => {
|
|
215
|
-
const t = d[r],
|
|
216
|
-
return /* @__PURE__ */
|
|
220
|
+
const t = d[r], a = t?.channelId === Y.SMTP || t?.channelName === Y.SMTP, y = a ? "left" : f(t) ? "right" : "left", A = d[r - 1], l = d[r + 1], B = de(t, y), H = fe(t), v = t.category === P.ChatActivity.Category.ACTIVITY && t.activityType === P.ChatActivity.Type.PRIVATE_NOTE, re = t.category === P.ChatActivity.Category.ACTIVITY && !v;
|
|
221
|
+
return /* @__PURE__ */ n(
|
|
217
222
|
oe.Fragment,
|
|
218
223
|
{
|
|
219
224
|
children: /* @__PURE__ */ k(
|
|
220
225
|
"div",
|
|
221
226
|
{
|
|
222
227
|
style: {
|
|
223
|
-
...
|
|
228
|
+
...S ? { margin: "0 4px" } : {},
|
|
224
229
|
...H ? {} : { display: "flex", alignItems: "flex-start" },
|
|
225
|
-
...c !== u.Manifest ? !
|
|
226
|
-
...
|
|
227
|
-
...
|
|
230
|
+
...c !== u.Manifest ? !S && y === "right" ? { marginLeft: 8 } : { marginRight: 8 } : {},
|
|
231
|
+
...a && !v && S ? { marginLeft: 8, marginRight: 8 } : {},
|
|
232
|
+
...a && v ? { marginRight: 16 } : {},
|
|
228
233
|
justifyContent: B,
|
|
229
|
-
marginBottom:
|
|
234
|
+
marginBottom: a ? (
|
|
230
235
|
// SMTP: flat 24px between mails, no same/different-user split.
|
|
231
|
-
|
|
232
|
-
) :
|
|
236
|
+
l ? 24 : 0
|
|
237
|
+
) : l ? l?.user?._id === t?.user?._id ? f(t) ? 20 : 4 : 20 : 0,
|
|
233
238
|
// Activity cards: no left/bottom margin.
|
|
234
239
|
...re ? { marginLeft: 0, marginBottom: 0 } : {}
|
|
235
240
|
},
|
|
236
241
|
children: [
|
|
237
|
-
!
|
|
242
|
+
!S && y === "left" && /* @__PURE__ */ n(
|
|
238
243
|
"div",
|
|
239
244
|
{
|
|
240
245
|
style: {
|
|
@@ -245,23 +250,23 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
245
250
|
children: j(
|
|
246
251
|
t,
|
|
247
252
|
A,
|
|
248
|
-
|
|
253
|
+
l
|
|
249
254
|
)
|
|
250
255
|
}
|
|
251
256
|
),
|
|
252
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ n(
|
|
253
258
|
"div",
|
|
254
259
|
{
|
|
255
260
|
id: `message-bubble-${t._id ?? `${r}-${L?.() ?? "id"}`}`,
|
|
256
|
-
style: c === u.Manifest ? { width: "100%" } :
|
|
261
|
+
style: c === u.Manifest ? { width: "100%" } : S || a ? { display: "flex", flexGrow: 1, width: "100%" } : {},
|
|
257
262
|
children: te(
|
|
258
263
|
t,
|
|
259
264
|
A,
|
|
260
|
-
|
|
265
|
+
l
|
|
261
266
|
)
|
|
262
267
|
}
|
|
263
268
|
),
|
|
264
|
-
!
|
|
269
|
+
!S && y === "right" && /* @__PURE__ */ n(
|
|
265
270
|
"div",
|
|
266
271
|
{
|
|
267
272
|
style: {
|
|
@@ -273,7 +278,7 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
273
278
|
children: j(
|
|
274
279
|
t,
|
|
275
280
|
A,
|
|
276
|
-
|
|
281
|
+
l
|
|
277
282
|
)
|
|
278
283
|
}
|
|
279
284
|
)
|
|
@@ -290,7 +295,7 @@ const G = 204, Ae = ({ text: R, isExpanded: h, onToggle: n }) => {
|
|
|
290
295
|
]
|
|
291
296
|
}
|
|
292
297
|
);
|
|
293
|
-
}, De =
|
|
298
|
+
}, De = ne(
|
|
294
299
|
Me
|
|
295
300
|
);
|
|
296
301
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiftedChat.js","sources":["../../../../../src/components/BikGiftedChat/GiftedChat/GiftedChat.tsx"],"sourcesContent":["import React, {\n\tforwardRef,\n\tuseCallback,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from 'react';\nimport { COLORS } from '../../../constants/Theme';\nimport { useWindowSize } from '../../../hooks/useWindowSize';\nimport { Button } from '../../button';\nimport { BodySecondary } from '../../TypographyStyle';\nimport { BubbleProps, GiftedChatAppType } from '../Bubble/types';\nimport { IMessage } from '../types';\nimport { Day } from './Day';\nimport { getMessagePlacement, shouldCenterAlign } from './messageHelpers';\nimport {\n\tuseAutoScrollOnNewMessages,\n\tuseInitialMountScroll,\n\tuseResizeObserverForFirstMessage,\n\tuseRestoreScrollPosition,\n\tuseScrollCleanup,\n\tuseScrollHandler,\n\tuseScrollToBottom,\n} from './scrollHooks';\nimport { AvatarProps, GiftedChatProps, MESSAGE_CHANNELS } from './types';\nimport { isSameDay, normalizeRef } from './utils';\nimport { Constants, TOP_THRESHOLD } from './utils';\n\nconst COLLAPSED_MAX_HEIGHT = 204;\n\nconst CollapsibleBubbleText: React.FC<{\n\ttext: string;\n\tisExpanded: boolean;\n\tonToggle: () => void;\n}> = ({ text, isExpanded, onToggle }) => {\n\tconst textRef = useRef<HTMLDivElement>(null);\n\tconst [isOverflowing, setIsOverflowing] = useState(false);\n\n\tuseEffect(() => {\n\t\tconst el = textRef.current;\n\t\tif (el) {\n\t\t\t// Temporarily remove max-height to measure true scroll height\n\t\t\tel.style.maxHeight = 'none';\n\t\t\tconst overflows = el.scrollHeight > COLLAPSED_MAX_HEIGHT;\n\t\t\tel.style.maxHeight = isExpanded ? 'none' : `${COLLAPSED_MAX_HEIGHT}px`;\n\t\t\tsetIsOverflowing(overflows);\n\t\t}\n\t}, [text, isExpanded]);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={textRef}\n\t\t\t\tstyle={{\n\t\t\t\t\tmaxHeight: isExpanded ? 'none' : COLLAPSED_MAX_HEIGHT,\n\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<BodySecondary>{text}</BodySecondary>\n\t\t\t</div>\n\t\t\t{isOverflowing && (\n\t\t\t\t<Button\n\t\t\t\t\tbuttonType=\"text\"\n\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\tbuttonText={isExpanded ? 'Show less' : 'Read more'}\n\t\t\t\t\tonClick={onToggle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nconst GiftedChatInner = (\n\tprops: Omit<GiftedChatProps<IMessage>, 'ref'>,\n\tforwardedRef: React.Ref<HTMLDivElement>,\n) => {\n\tconst {\n\t\tmessages = [],\n\t\tuser,\n\t\trenderBubble,\n\t\trenderAvatar,\n\t\trenderDay,\n\t\trenderLoading,\n\t\trenderChatEmpty,\n\t\tlistViewProps = {},\n\t\trenderAvatarOnTop = false,\n\t\tshowUserAvatar = false,\n\t\tshowAvatarForEveryMessage = false,\n\t\tinverted = false,\n\t\tmessageIdGenerator,\n\t\ttopThreshold = TOP_THRESHOLD,\n\t\tappType = GiftedChatAppType.Bik,\n\t\tmaxHeight,\n\t\tisActivityMessage,\n\t\t...extraProps\n\t} = props || {};\n\n\tconst isMobile = useWindowSize();\n\n\tconst internalScrollRef = useRef<HTMLDivElement | null>(null);\n\tconst scrollRef = normalizeRef(\n\t\tlistViewProps.ref || forwardedRef,\n\t\tinternalScrollRef,\n\t);\n\n\tconst scrollState = useRef({\n\t\tisInitialMount: true,\n\t\tisUserScrolling: false,\n\t\tisLoadingOldMessages: false,\n\t\tisAtBottom: true,\n\t\thasTriggeredEndReached: false,\n\t\tlastMessagesLength: messages?.length ?? 0,\n\t\tpreviousScrollHeight: 0,\n\t\tpreviousScrollTop: 0,\n\t\tscrollTimeout: null,\n\t});\n\n\tconst [expandedMessages, setExpandedMessages] = useState<\n\t\tSet<string | number>\n\t>(new Set());\n\n\t// Reverse messages so newest appears last in DOM (natural reading order)\n\tconst reversedMessages = useMemo(() => {\n\t\tif (!messages || messages.length === 0) return [] as IMessage[];\n\t\treturn [...messages].reverse() as IMessage[];\n\t}, [messages]);\n\n\t// Group consecutive same-day messages so each day separator can stick\n\t// within its own section and get pushed out by the next day's separator.\n\tconst dayGroups = useMemo(() => {\n\t\tconst groups: { createdAt: IMessage['createdAt']; indices: number[] }[] =\n\t\t\t[];\n\t\treversedMessages.forEach((message, index) => {\n\t\t\tconst previousMessage = reversedMessages[index - 1];\n\t\t\tif (index === 0 || !isSameDay(message, previousMessage)) {\n\t\t\t\tgroups.push({ createdAt: message.createdAt, indices: [index] });\n\t\t\t} else {\n\t\t\t\tgroups[groups.length - 1].indices.push(index);\n\t\t\t}\n\t\t});\n\t\treturn groups;\n\t}, [reversedMessages]);\n\n\tconst scrollToBottom = useScrollToBottom(scrollRef, scrollState);\n\n\tuseImperativeHandle(forwardedRef, () => scrollRef.current!);\n\n\tuseInitialMountScroll(\n\t\tscrollRef,\n\t\tscrollState,\n\t\treversedMessages.length,\n\t\tscrollToBottom,\n\t);\n\n\tuseScrollCleanup(scrollState);\n\n\tuseRestoreScrollPosition(scrollRef, scrollState, reversedMessages.length);\n\n\tuseAutoScrollOnNewMessages(\n\t\tscrollRef,\n\t\tscrollState,\n\t\tmessages.length,\n\t\tscrollToBottom,\n\t);\n\n\tuseResizeObserverForFirstMessage(\n\t\tmessages?.[0],\n\t\tscrollState,\n\t\tscrollToBottom,\n\t\tmessageIdGenerator,\n\t);\n\n\tconst handleScroll = useScrollHandler(\n\t\tscrollState,\n\t\tlistViewProps.onEndReached,\n\t\tlistViewProps.onScroll,\n\t\ttopThreshold,\n\t);\n\n\t// Check if a message belongs to the current user\n\tconst isUserMessage = useCallback(\n\t\t(message: IMessage) => {\n\t\t\treturn Boolean(message && user && message.user?._id === user._id);\n\t\t},\n\t\t[user],\n\t);\n\n\t// Determine if avatar should be shown for this message\n\tconst shouldShowAvatar = useCallback(\n\t\t(message: IMessage, previousMessage?: IMessage) => {\n\t\t\tif (!showUserAvatar) return false;\n\t\t\tif (showAvatarForEveryMessage) return true;\n\n\t\t\t// Show avatar on the first message in a consecutive sender stack,\n\t\t\t// or when an activity interrupts the stack, or when the current message itself is an activity\n\t\t\treturn (\n\t\t\t\t!previousMessage ||\n\t\t\t\t(isActivityMessage ? isActivityMessage(message) : false) ||\n\t\t\t\t(isActivityMessage ? isActivityMessage(previousMessage) : false) ||\n\t\t\t\tpreviousMessage.user._id !== message.user._id\n\t\t\t);\n\t\t},\n\t\t[showUserAvatar, showAvatarForEveryMessage, isActivityMessage],\n\t);\n\n\t// Render a message bubble (or call custom renderBubble)\n\tconst renderMessageBubble = useCallback(\n\t\t(message: IMessage, previousMessage?: IMessage, nextMessage?: IMessage) => {\n\t\t\tconst position = isUserMessage(message) ? 'right' : 'left';\n\t\t\tconst isTopOfStack = previousMessage?.user?._id !== message?.user?._id;\n\t\t\tconst isBottomOfStack = nextMessage?.user?._id !== message?.user?._id;\n\n\t\t\tconst bubbleProps: BubbleProps<IMessage> = {\n\t\t\t\tcurrentMessage: message,\n\t\t\t\tpreviousMessage,\n\t\t\t\tnextMessage,\n\t\t\t\tposition,\n\t\t\t\tuser,\n\t\t\t\t...extraProps,\n\t\t\t};\n\n\t\t\t// Use custom render function if provided\n\t\t\tif (renderBubble) {\n\t\t\t\treturn renderBubble(bubbleProps);\n\t\t\t}\n\n\t\t\t// Default bubble rendering\n\t\t\tconst messageId = message._id;\n\t\t\tconst isExpanded = expandedMessages.has(messageId);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tmaxWidth: appType === GiftedChatAppType.Manifest ? '50%' : '70%',\n\t\t\t\t\t\twidth: 'fit-content',\n\t\t\t\t\t\t...(appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t? { minWidth: '130px' }\n\t\t\t\t\t\t\t: {}),\n\t\t\t\t\t\tpadding: '8px 12px',\n\t\t\t\t\t\tborderTopLeftRadius:\n\t\t\t\t\t\t\tposition === 'left' ? (isTopOfStack ? 12 : 2) : 12,\n\t\t\t\t\t\tborderTopRightRadius:\n\t\t\t\t\t\t\tposition === 'right' ? (isTopOfStack ? 12 : 2) : 12,\n\t\t\t\t\t\tborderBottomLeftRadius:\n\t\t\t\t\t\t\tposition === 'left' ? (isBottomOfStack ? 12 : 2) : 12,\n\t\t\t\t\t\tborderBottomRightRadius:\n\t\t\t\t\t\t\tposition === 'right' ? (isBottomOfStack ? 12 : 2) : 12,\n\t\t\t\t\t\tborder:\n\t\t\t\t\t\t\tposition === 'left' && appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t? '1px solid rgb(224, 224, 224)'\n\t\t\t\t\t\t\t\t: 'none',\n\t\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\t\tposition === 'right'\n\t\t\t\t\t\t\t\t? appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t\t? COLORS.background.brandTint\n\t\t\t\t\t\t\t\t\t: COLORS.background.brandLight\n\t\t\t\t\t\t\t\t: appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t? COLORS.background.pureWhite\n\t\t\t\t\t\t\t\t: COLORS.background.inactive,\n\t\t\t\t\t\tcolor: COLORS.content.primary,\n\t\t\t\t\t\twordBreak: 'break-word',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<CollapsibleBubbleText\n\t\t\t\t\t\ttext={message.text ?? ''}\n\t\t\t\t\t\tisExpanded={isExpanded}\n\t\t\t\t\t\tonToggle={() =>\n\t\t\t\t\t\t\tsetExpandedMessages((prev) => {\n\t\t\t\t\t\t\t\tconst next = new Set(prev);\n\t\t\t\t\t\t\t\tif (isExpanded) next.delete(messageId);\n\t\t\t\t\t\t\t\telse next.add(messageId);\n\t\t\t\t\t\t\t\treturn next;\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\t[isUserMessage, user, renderBubble, extraProps, expandedMessages],\n\t);\n\n\t// Render a message avatar (or call custom renderAvatar)\n\tconst renderMessageAvatar = useCallback(\n\t\t(message: IMessage, previousMessage?: IMessage, nextMessage?: IMessage) => {\n\t\t\tconst shouldShow = shouldShowAvatar(message, previousMessage);\n\n\t\t\tif (!shouldShow) return null;\n\n\t\t\tconst position = isUserMessage(message) ? 'right' : 'left';\n\n\t\t\tconst avatarProps: AvatarProps<IMessage> = {\n\t\t\t\tcurrentMessage: message,\n\t\t\t\tpreviousMessage,\n\t\t\t\tnextMessage,\n\t\t\t\tposition,\n\t\t\t\tuser,\n\t\t\t\trenderAvatarOnTop,\n\t\t\t\tshowUserAvatar,\n\t\t\t\tshowAvatarForEveryMessage,\n\t\t\t};\n\n\t\t\treturn renderAvatar ? renderAvatar(avatarProps) : null;\n\t\t},\n\t\t[\n\t\t\tshouldShowAvatar,\n\t\t\tisUserMessage,\n\t\t\tuser,\n\t\t\trenderAvatarOnTop,\n\t\t\tshowUserAvatar,\n\t\t\tshowAvatarForEveryMessage,\n\t\t\trenderAvatar,\n\t\t],\n\t);\n\n\t// Render: Empty State\n\tif (!messages || messages.length === 0) {\n\t\treturn renderChatEmpty ? <>{renderChatEmpty()}</> : null;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tref={scrollRef as React.RefObject<HTMLDivElement>}\n\t\t\tstyle={{\n\t\t\t\tflex: 1,\n\t\t\t\toverflowY: 'auto',\n\t\t\t\toverflowX: 'hidden',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\t...(maxHeight ? { maxHeight, height: maxHeight } : {}),\n\t\t\t\t...listViewProps.style,\n\t\t\t}}\n\t\t\tonScroll={handleScroll}\n\t\t>\n\t\t\t{/* Spacer to push messages to bottom (newest appears last in DOM) */}\n\t\t\t<div style={{ flex: '1 0 auto' }} />\n\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\tflex: '0 0 auto',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{dayGroups.map((group, groupIndex) => (\n\t\t\t\t\t<div key={`day-group-${groupIndex}`}>\n\t\t\t\t\t\t{/* Day separator — sticks to top while this day scrolls past */}\n\t\t\t\t\t\t{renderDay ? (\n\t\t\t\t\t\t\t<div style={{ position: 'sticky', top: 0, zIndex: 2 }}>\n\t\t\t\t\t\t\t\t{renderDay({ createdAt: group.createdAt })}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Day\n\t\t\t\t\t\t\t\tcreatedAt={group.createdAt}\n\t\t\t\t\t\t\t\tappType={appType}\n\t\t\t\t\t\t\t\tscrollRootRef={scrollRef}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{group.indices.map((index) => {\n\t\t\t\t\t\t\tconst message = reversedMessages[index];\n\t\t\t\t\t\t\tconst isSmtp =\n\t\t\t\t\t\t\t\tmessage?.['channelId'] === MESSAGE_CHANNELS.SMTP ||\n\t\t\t\t\t\t\t\tmessage?.['channelName'] === MESSAGE_CHANNELS.SMTP;\n\t\t\t\t\t\t\tconst position = isSmtp\n\t\t\t\t\t\t\t\t? 'left'\n\t\t\t\t\t\t\t\t: isUserMessage(message)\n\t\t\t\t\t\t\t\t? 'right'\n\t\t\t\t\t\t\t\t: 'left';\n\t\t\t\t\t\t\tconst previousMessage = reversedMessages[index - 1];\n\t\t\t\t\t\t\tconst nextMessage = reversedMessages[index + 1];\n\t\t\t\t\t\t\tconst placement = getMessagePlacement(message, position);\n\t\t\t\t\t\t\tconst isCentered = shouldCenterAlign(message);\n\t\t\t\t\t\t\t// Check if message is a private note\n\t\t\t\t\t\t\tconst isPrivateNote =\n\t\t\t\t\t\t\t\tmessage['category'] ===\n\t\t\t\t\t\t\t\t\tConstants.ChatActivity.Category.ACTIVITY &&\n\t\t\t\t\t\t\t\tmessage['activityType'] ===\n\t\t\t\t\t\t\t\t\tConstants.ChatActivity.Type.PRIVATE_NOTE;\n\t\t\t\t\t\t\tconst isActivity =\n\t\t\t\t\t\t\t\tmessage['category'] ===\n\t\t\t\t\t\t\t\t\tConstants.ChatActivity.Category.ACTIVITY && !isPrivateNote;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<React.Fragment\n\t\t\t\t\t\t\t\t\tkey={\n\t\t\t\t\t\t\t\t\t\tmessage._id ?? `${index}-${messageIdGenerator?.() ?? 'id'}`\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{/* Message container */}\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t...(isMobile ? { margin: '0 4px' } : {}),\n\t\t\t\t\t\t\t\t\t\t\t...(isCentered\n\t\t\t\t\t\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t\t\t\t\t\t: { display: 'flex', alignItems: 'flex-start' }),\n\t\t\t\t\t\t\t\t\t\t\t...(appType !== GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t\t\t\t\t? !isMobile && position === 'right'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? { marginLeft: 8 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t: { marginRight: 8 }\n\t\t\t\t\t\t\t\t\t\t\t\t: {}),\n\t\t\t\t\t\t\t\t\t\t\t...(isSmtp && !isPrivateNote && isMobile\n\t\t\t\t\t\t\t\t\t\t\t\t? { marginLeft: 8, marginRight: 8 }\n\t\t\t\t\t\t\t\t\t\t\t\t: {}),\n\t\t\t\t\t\t\t\t\t\t\t...(isSmtp && isPrivateNote ? { marginRight: 16 } : {}),\n\t\t\t\t\t\t\t\t\t\t\tjustifyContent: placement,\n\t\t\t\t\t\t\t\t\t\t\tmarginBottom: isSmtp\n\t\t\t\t\t\t\t\t\t\t\t\t? // SMTP: flat 24px between mails, no same/different-user split.\n\t\t\t\t\t\t\t\t\t\t\t\t nextMessage\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 24\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 0\n\t\t\t\t\t\t\t\t\t\t\t\t: nextMessage\n\t\t\t\t\t\t\t\t\t\t\t\t? nextMessage?.user?._id === message?.user?._id\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 4\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 20\n\t\t\t\t\t\t\t\t\t\t\t\t: 0,\n\t\t\t\t\t\t\t\t\t\t\t// Activity cards: no left/bottom margin.\n\t\t\t\t\t\t\t\t\t\t\t...(isActivity ? { marginLeft: 0, marginBottom: 0 } : {}),\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{/* Left avatar or placeholder (for mobile, avatar is hidden) */}\n\t\t\t\t\t\t\t\t\t\t{!isMobile && position === 'left' && (\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmarginRight: '4px',\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '24px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{renderMessageAvatar(\n\t\t\t\t\t\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tpreviousMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnextMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t\t\t{/* Message bubble */}\n\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\tid={`message-bubble-${\n\t\t\t\t\t\t\t\t\t\t\t\tmessage._id ??\n\t\t\t\t\t\t\t\t\t\t\t\t`${index}-${messageIdGenerator?.() ?? 'id'}`\n\t\t\t\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\t\t\t\tstyle={\n\t\t\t\t\t\t\t\t\t\t\t\tappType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t\t\t\t\t\t? { width: '100%' }\n\t\t\t\t\t\t\t\t\t\t\t\t\t: isMobile || isSmtp\n\t\t\t\t\t\t\t\t\t\t\t\t\t? { display: 'flex', flexGrow: 1, width: '100%' }\n\t\t\t\t\t\t\t\t\t\t\t\t\t: {}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{renderMessageBubble(\n\t\t\t\t\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\t\t\t\t\tpreviousMessage,\n\t\t\t\t\t\t\t\t\t\t\t\tnextMessage,\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t{/* Right avatar or placeholder (for mobile, avatar is hidden) */}\n\t\t\t\t\t\t\t\t\t\t{!isMobile && position === 'right' && (\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmarginLeft: '4px',\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '24px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\talignSelf: 'flex-start',\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{renderMessageAvatar(\n\t\t\t\t\t\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tpreviousMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnextMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default forwardRef<HTMLDivElement, GiftedChatProps<IMessage>>(\n\tGiftedChatInner,\n);\n"],"names":["COLLAPSED_MAX_HEIGHT","CollapsibleBubbleText","text","isExpanded","onToggle","textRef","useRef","isOverflowing","setIsOverflowing","useState","useEffect","el","overflows","jsxs","Fragment","jsx","BodySecondary","Button","GiftedChatInner","props","forwardedRef","messages","user","renderBubble","renderAvatar","renderDay","renderLoading","renderChatEmpty","listViewProps","renderAvatarOnTop","showUserAvatar","showAvatarForEveryMessage","inverted","messageIdGenerator","topThreshold","TOP_THRESHOLD","appType","GiftedChatAppType","maxHeight","isActivityMessage","extraProps","isMobile","useWindowSize","internalScrollRef","scrollRef","normalizeRef","scrollState","expandedMessages","setExpandedMessages","reversedMessages","useMemo","dayGroups","groups","message","index","previousMessage","isSameDay","scrollToBottom","useScrollToBottom","useImperativeHandle","useInitialMountScroll","useScrollCleanup","useRestoreScrollPosition","useAutoScrollOnNewMessages","useResizeObserverForFirstMessage","handleScroll","useScrollHandler","isUserMessage","useCallback","shouldShowAvatar","renderMessageBubble","nextMessage","position","isTopOfStack","isBottomOfStack","bubbleProps","messageId","COLORS","prev","next","renderMessageAvatar","group","groupIndex","Day","isSmtp","MESSAGE_CHANNELS","placement","getMessagePlacement","isCentered","shouldCenterAlign","isPrivateNote","Constants","isActivity","React","GiftedChat","forwardRef"],"mappings":";;;;;;;;;;;;AA8BA,MAAMA,IAAuB,KAEvBC,KAID,CAAC,EAAE,MAAAC,GAAM,YAAAC,GAAY,UAAAC,QAAe;AACxC,QAAMC,IAAUC,EAAuB,IAAI,GACrC,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK;AAExD,SAAAC,GAAU,MAAM;AACf,UAAMC,IAAKN,EAAQ;AACnB,QAAIM,GAAI;AAEP,MAAAA,EAAG,MAAM,YAAY;AACrB,YAAMC,IAAYD,EAAG,eAAeX;AACpC,MAAAW,EAAG,MAAM,YAAYR,IAAa,SAAS,GAAGH,CAAoB,MAClEQ,EAAiBI,CAAS;AAAA,IAC3B;AAAA,EACD,GAAG,CAACV,GAAMC,CAAU,CAAC,GAGpB,gBAAAU,EAAAC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,KAAKV;AAAA,QACL,OAAO;AAAA,UACN,WAAWF,IAAa,SAASH;AAAA,UACjC,UAAU;AAAA,QAAA;AAAA,QAGX,UAAA,gBAAAe,EAACC,MAAe,UAAAd,EAAA,CAAK;AAAA,MAAA;AAAA,IAAA;AAAA,IAErBK,KACA,gBAAAQ;AAAA,MAACE;AAAA,MAAA;AAAA,QACA,YAAW;AAAA,QACX,MAAK;AAAA,QACL,YAAYd,IAAa,cAAc;AAAA,QACvC,SAASC;AAAA,MAAA;AAAA,IAAA;AAAA,EACV,GAEF;AAEF,GAEMc,KAAkB,CACvBC,GACAC,MACI;AACJ,QAAM;AAAA,IACL,UAAAC,IAAW,CAAA;AAAA,IACX,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,cA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AAAA,0BAAA;AAAA,wBACD;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAEF;AAAA,kBAzFClB,EAAQ,OAAO,GAAGC,CAAK,IAAIrB,IAAA,KAA0B,IAAI;AAAA,gBAAA;AAAA,cA4F7D,CAAC;AAAA,YAAA,EAAA,GAnIQ,aAAaiD,CAAU,EAoIjC,CACA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGH,GAEAY,KAAeC;AAAA,EACd7E;AACD;"}
|
|
1
|
+
{"version":3,"file":"GiftedChat.js","sources":["../../../../../src/components/BikGiftedChat/GiftedChat/GiftedChat.tsx"],"sourcesContent":["import React, {\n\tforwardRef,\n\tuseCallback,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from 'react';\nimport { COLORS } from '../../../constants/Theme';\nimport { useWindowSize } from '../../../hooks/useWindowSize';\nimport { Button } from '../../button';\nimport { BodySecondary } from '../../TypographyStyle';\nimport { BubbleProps, GiftedChatAppType } from '../Bubble/types';\nimport { IMessage } from '../types';\nimport { Day } from './Day';\nimport { getMessagePlacement, shouldCenterAlign } from './messageHelpers';\nimport {\n\tuseAutoScrollOnNewMessages,\n\tuseInitialMountScroll,\n\tuseResizeObserverForFirstMessage,\n\tuseRestoreScrollPosition,\n\tuseScrollCleanup,\n\tuseScrollHandler,\n\tuseScrollToBottom,\n} from './scrollHooks';\nimport { AvatarProps, GiftedChatProps, MESSAGE_CHANNELS } from './types';\nimport { isSameDay, normalizeRef } from './utils';\nimport { Constants, TOP_THRESHOLD } from './utils';\n\nconst COLLAPSED_MAX_HEIGHT = 204;\n\nconst CollapsibleBubbleText: React.FC<{\n\ttext: string;\n\tisExpanded: boolean;\n\tonToggle: () => void;\n}> = ({ text, isExpanded, onToggle }) => {\n\tconst textRef = useRef<HTMLDivElement>(null);\n\tconst [isOverflowing, setIsOverflowing] = useState(false);\n\n\tuseEffect(() => {\n\t\tconst el = textRef.current;\n\t\tif (el) {\n\t\t\t// Temporarily remove max-height to measure true scroll height\n\t\t\tel.style.maxHeight = 'none';\n\t\t\tconst overflows = el.scrollHeight > COLLAPSED_MAX_HEIGHT;\n\t\t\tel.style.maxHeight = isExpanded ? 'none' : `${COLLAPSED_MAX_HEIGHT}px`;\n\t\t\tsetIsOverflowing(overflows);\n\t\t}\n\t}, [text, isExpanded]);\n\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tref={textRef}\n\t\t\t\tstyle={{\n\t\t\t\t\tmaxHeight: isExpanded ? 'none' : COLLAPSED_MAX_HEIGHT,\n\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<BodySecondary>{text}</BodySecondary>\n\t\t\t</div>\n\t\t\t{isOverflowing && (\n\t\t\t\t<Button\n\t\t\t\t\tbuttonType=\"text\"\n\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\tbuttonText={isExpanded ? 'Show less' : 'Read more'}\n\t\t\t\t\tonClick={onToggle}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nconst GiftedChatInner = (\n\tprops: Omit<GiftedChatProps<IMessage>, 'ref'>,\n\tforwardedRef: React.Ref<HTMLDivElement>,\n) => {\n\tconst {\n\t\tmessages = [],\n\t\tuser,\n\t\trenderBubble,\n\t\trenderAvatar,\n\t\trenderDay,\n\t\trenderLoading,\n\t\trenderChatEmpty,\n\t\tlistViewProps = {},\n\t\trenderAvatarOnTop = false,\n\t\tshowUserAvatar = false,\n\t\tshowAvatarForEveryMessage = false,\n\t\tinverted = false,\n\t\tmessageIdGenerator,\n\t\ttopThreshold = TOP_THRESHOLD,\n\t\tappType = GiftedChatAppType.Bik,\n\t\tmaxHeight,\n\t\tisActivityMessage,\n\t\t...extraProps\n\t} = props || {};\n\n\tconst isMobile = useWindowSize();\n\n\tconst internalScrollRef = useRef<HTMLDivElement | null>(null);\n\tconst scrollRef = normalizeRef(\n\t\tlistViewProps.ref || forwardedRef,\n\t\tinternalScrollRef,\n\t);\n\n\tconst scrollState = useRef({\n\t\tisInitialMount: true,\n\t\tisUserScrolling: false,\n\t\tisLoadingOldMessages: false,\n\t\tisAtBottom: true,\n\t\thasTriggeredEndReached: false,\n\t\tlastMessagesLength: messages?.length ?? 0,\n\t\tpreviousScrollHeight: 0,\n\t\tpreviousScrollTop: 0,\n\t\tscrollTimeout: null,\n\t});\n\n\tconst [expandedMessages, setExpandedMessages] = useState<\n\t\tSet<string | number>\n\t>(new Set());\n\n\t// Reverse messages so newest appears last in DOM (natural reading order)\n\tconst reversedMessages = useMemo(() => {\n\t\tif (!messages || messages.length === 0) return [] as IMessage[];\n\t\treturn [...messages].reverse() as IMessage[];\n\t}, [messages]);\n\n\t// Group consecutive same-day messages so each day separator can stick\n\t// within its own section and get pushed out by the next day's separator.\n\tconst dayGroups = useMemo(() => {\n\t\tconst groups: { createdAt: IMessage['createdAt']; indices: number[] }[] =\n\t\t\t[];\n\t\treversedMessages.forEach((message, index) => {\n\t\t\tconst previousMessage = reversedMessages[index - 1];\n\t\t\tif (index === 0 || !isSameDay(message, previousMessage)) {\n\t\t\t\tgroups.push({ createdAt: message.createdAt, indices: [index] });\n\t\t\t} else {\n\t\t\t\tgroups[groups.length - 1].indices.push(index);\n\t\t\t}\n\t\t});\n\t\treturn groups;\n\t}, [reversedMessages]);\n\n\tconst scrollToBottom = useScrollToBottom(scrollRef, scrollState);\n\n\tuseImperativeHandle(forwardedRef, () => scrollRef.current!);\n\n\tuseInitialMountScroll(\n\t\tscrollRef,\n\t\tscrollState,\n\t\treversedMessages.length,\n\t\tscrollToBottom,\n\t);\n\n\tuseScrollCleanup(scrollState);\n\n\tuseRestoreScrollPosition(scrollRef, scrollState, reversedMessages.length);\n\n\tuseAutoScrollOnNewMessages(\n\t\tscrollRef,\n\t\tscrollState,\n\t\tmessages.length,\n\t\tscrollToBottom,\n\t);\n\n\tuseResizeObserverForFirstMessage(\n\t\tmessages?.[0],\n\t\tscrollState,\n\t\tscrollToBottom,\n\t\tmessageIdGenerator,\n\t);\n\n\tconst handleScroll = useScrollHandler(\n\t\tscrollState,\n\t\tlistViewProps.onEndReached,\n\t\tlistViewProps.onScroll,\n\t\ttopThreshold,\n\t);\n\n\t// Check if a message belongs to the current user\n\tconst isUserMessage = useCallback(\n\t\t(message: IMessage) => {\n\t\t\treturn Boolean(message && user && message.user?._id === user._id);\n\t\t},\n\t\t[user],\n\t);\n\n\t// Determine if avatar should be shown for this message\n\tconst shouldShowAvatar = useCallback(\n\t\t(message: IMessage, previousMessage?: IMessage) => {\n\t\t\tif (!showUserAvatar) return false;\n\t\t\tif (showAvatarForEveryMessage) return true;\n\n\t\t\tif (isUserMessage(message)) return true;\n\n\t\t\t// Show avatar on the first message in a consecutive sender stack,\n\t\t\t// or when an activity interrupts the stack, or when the current message itself is an activity\n\t\t\treturn (\n\t\t\t\t!previousMessage ||\n\t\t\t\t(isActivityMessage ? isActivityMessage(message) : false) ||\n\t\t\t\t(isActivityMessage ? isActivityMessage(previousMessage) : false) ||\n\t\t\t\tpreviousMessage.user._id !== message.user._id\n\t\t\t);\n\t\t},\n\t\t[\n\t\t\tshowUserAvatar,\n\t\t\tshowAvatarForEveryMessage,\n\t\t\tisActivityMessage,\n\t\t\tisUserMessage,\n\t\t],\n\t);\n\n\t// Render a message bubble (or call custom renderBubble)\n\tconst renderMessageBubble = useCallback(\n\t\t(message: IMessage, previousMessage?: IMessage, nextMessage?: IMessage) => {\n\t\t\tconst position = isUserMessage(message) ? 'right' : 'left';\n\t\t\tconst isTopOfStack = previousMessage?.user?._id !== message?.user?._id;\n\t\t\tconst isBottomOfStack = nextMessage?.user?._id !== message?.user?._id;\n\n\t\t\tconst bubbleProps: BubbleProps<IMessage> = {\n\t\t\t\tcurrentMessage: message,\n\t\t\t\tpreviousMessage,\n\t\t\t\tnextMessage,\n\t\t\t\tposition,\n\t\t\t\tuser,\n\t\t\t\t...extraProps,\n\t\t\t};\n\n\t\t\t// Use custom render function if provided\n\t\t\tif (renderBubble) {\n\t\t\t\treturn renderBubble(bubbleProps);\n\t\t\t}\n\n\t\t\t// Default bubble rendering\n\t\t\tconst messageId = message._id;\n\t\t\tconst isExpanded = expandedMessages.has(messageId);\n\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tmaxWidth: appType === GiftedChatAppType.Manifest ? '50%' : '70%',\n\t\t\t\t\t\twidth: 'fit-content',\n\t\t\t\t\t\t...(appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t? { minWidth: '130px' }\n\t\t\t\t\t\t\t: {}),\n\t\t\t\t\t\tpadding: '8px 12px',\n\t\t\t\t\t\tborderTopLeftRadius:\n\t\t\t\t\t\t\tposition === 'left' ? (isTopOfStack ? 12 : 2) : 12,\n\t\t\t\t\t\tborderTopRightRadius: 12,\n\t\t\t\t\t\tborderBottomLeftRadius:\n\t\t\t\t\t\t\tposition === 'left' ? (isBottomOfStack ? 12 : 2) : 12,\n\t\t\t\t\t\tborderBottomRightRadius: 12,\n\t\t\t\t\t\tborder:\n\t\t\t\t\t\t\tposition === 'left' && appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t? '1px solid rgb(224, 224, 224)'\n\t\t\t\t\t\t\t\t: 'none',\n\t\t\t\t\t\tbackgroundColor:\n\t\t\t\t\t\t\tposition === 'right'\n\t\t\t\t\t\t\t\t? appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t\t? COLORS.background.brandTint\n\t\t\t\t\t\t\t\t\t: COLORS.background.brandLight\n\t\t\t\t\t\t\t\t: appType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t? COLORS.background.pureWhite\n\t\t\t\t\t\t\t\t: COLORS.background.inactive,\n\t\t\t\t\t\tcolor: COLORS.content.primary,\n\t\t\t\t\t\twordBreak: 'break-word',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<CollapsibleBubbleText\n\t\t\t\t\t\ttext={message.text ?? ''}\n\t\t\t\t\t\tisExpanded={isExpanded}\n\t\t\t\t\t\tonToggle={() =>\n\t\t\t\t\t\t\tsetExpandedMessages((prev) => {\n\t\t\t\t\t\t\t\tconst next = new Set(prev);\n\t\t\t\t\t\t\t\tif (isExpanded) next.delete(messageId);\n\t\t\t\t\t\t\t\telse next.add(messageId);\n\t\t\t\t\t\t\t\treturn next;\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t\t[isUserMessage, user, renderBubble, extraProps, expandedMessages],\n\t);\n\n\t// Render a message avatar (or call custom renderAvatar)\n\tconst renderMessageAvatar = useCallback(\n\t\t(message: IMessage, previousMessage?: IMessage, nextMessage?: IMessage) => {\n\t\t\tconst shouldShow = shouldShowAvatar(message, previousMessage);\n\n\t\t\tif (!shouldShow) return null;\n\n\t\t\tconst position = isUserMessage(message) ? 'right' : 'left';\n\n\t\t\tconst avatarProps: AvatarProps<IMessage> = {\n\t\t\t\tcurrentMessage: message,\n\t\t\t\tpreviousMessage,\n\t\t\t\tnextMessage,\n\t\t\t\tposition,\n\t\t\t\tuser,\n\t\t\t\trenderAvatarOnTop,\n\t\t\t\tshowUserAvatar,\n\t\t\t\tshowAvatarForEveryMessage,\n\t\t\t};\n\n\t\t\treturn renderAvatar ? renderAvatar(avatarProps) : null;\n\t\t},\n\t\t[\n\t\t\tshouldShowAvatar,\n\t\t\tisUserMessage,\n\t\t\tuser,\n\t\t\trenderAvatarOnTop,\n\t\t\tshowUserAvatar,\n\t\t\tshowAvatarForEveryMessage,\n\t\t\trenderAvatar,\n\t\t],\n\t);\n\n\t// Render: Empty State\n\tif (!messages || messages.length === 0) {\n\t\treturn renderChatEmpty ? <>{renderChatEmpty()}</> : null;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tref={scrollRef as React.RefObject<HTMLDivElement>}\n\t\t\tstyle={{\n\t\t\t\tflex: 1,\n\t\t\t\toverflowY: 'auto',\n\t\t\t\toverflowX: 'hidden',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\t...(maxHeight ? { maxHeight, height: maxHeight } : {}),\n\t\t\t\t...listViewProps.style,\n\t\t\t}}\n\t\t\tonScroll={handleScroll}\n\t\t>\n\t\t\t{/* Spacer to push messages to bottom (newest appears last in DOM) */}\n\t\t\t<div style={{ flex: '1 0 auto' }} />\n\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\tflex: '0 0 auto',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{dayGroups.map((group, groupIndex) => (\n\t\t\t\t\t<div key={`day-group-${groupIndex}`}>\n\t\t\t\t\t\t{/* Day separator — sticks to top while this day scrolls past */}\n\t\t\t\t\t\t{renderDay ? (\n\t\t\t\t\t\t\t<div style={{ position: 'sticky', top: 0, zIndex: 2 }}>\n\t\t\t\t\t\t\t\t{renderDay({ createdAt: group.createdAt })}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Day\n\t\t\t\t\t\t\t\tcreatedAt={group.createdAt}\n\t\t\t\t\t\t\t\tappType={appType}\n\t\t\t\t\t\t\t\tscrollRootRef={scrollRef}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{group.indices.map((index) => {\n\t\t\t\t\t\t\tconst message = reversedMessages[index];\n\t\t\t\t\t\t\tconst isSmtp =\n\t\t\t\t\t\t\t\tmessage?.['channelId'] === MESSAGE_CHANNELS.SMTP ||\n\t\t\t\t\t\t\t\tmessage?.['channelName'] === MESSAGE_CHANNELS.SMTP;\n\t\t\t\t\t\t\tconst position = isSmtp\n\t\t\t\t\t\t\t\t? 'left'\n\t\t\t\t\t\t\t\t: isUserMessage(message)\n\t\t\t\t\t\t\t\t? 'right'\n\t\t\t\t\t\t\t\t: 'left';\n\t\t\t\t\t\t\tconst previousMessage = reversedMessages[index - 1];\n\t\t\t\t\t\t\tconst nextMessage = reversedMessages[index + 1];\n\t\t\t\t\t\t\tconst placement = getMessagePlacement(message, position);\n\t\t\t\t\t\t\tconst isCentered = shouldCenterAlign(message);\n\t\t\t\t\t\t\t// Check if message is a private note\n\t\t\t\t\t\t\tconst isPrivateNote =\n\t\t\t\t\t\t\t\tmessage['category'] ===\n\t\t\t\t\t\t\t\t\tConstants.ChatActivity.Category.ACTIVITY &&\n\t\t\t\t\t\t\t\tmessage['activityType'] ===\n\t\t\t\t\t\t\t\t\tConstants.ChatActivity.Type.PRIVATE_NOTE;\n\t\t\t\t\t\t\tconst isActivity =\n\t\t\t\t\t\t\t\tmessage['category'] ===\n\t\t\t\t\t\t\t\t\tConstants.ChatActivity.Category.ACTIVITY && !isPrivateNote;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<React.Fragment\n\t\t\t\t\t\t\t\t\tkey={\n\t\t\t\t\t\t\t\t\t\tmessage._id ?? `${index}-${messageIdGenerator?.() ?? 'id'}`\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{/* Message container */}\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t...(isMobile ? { margin: '0 4px' } : {}),\n\t\t\t\t\t\t\t\t\t\t\t...(isCentered\n\t\t\t\t\t\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t\t\t\t\t\t: { display: 'flex', alignItems: 'flex-start' }),\n\t\t\t\t\t\t\t\t\t\t\t...(appType !== GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t\t\t\t\t? !isMobile && position === 'right'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? { marginLeft: 8 }\n\t\t\t\t\t\t\t\t\t\t\t\t\t: { marginRight: 8 }\n\t\t\t\t\t\t\t\t\t\t\t\t: {}),\n\t\t\t\t\t\t\t\t\t\t\t...(isSmtp && !isPrivateNote && isMobile\n\t\t\t\t\t\t\t\t\t\t\t\t? { marginLeft: 8, marginRight: 8 }\n\t\t\t\t\t\t\t\t\t\t\t\t: {}),\n\t\t\t\t\t\t\t\t\t\t\t...(isSmtp && isPrivateNote ? { marginRight: 16 } : {}),\n\t\t\t\t\t\t\t\t\t\t\tjustifyContent: placement,\n\t\t\t\t\t\t\t\t\t\t\tmarginBottom: isSmtp\n\t\t\t\t\t\t\t\t\t\t\t\t? // SMTP: flat 24px between mails, no same/different-user split.\n\t\t\t\t\t\t\t\t\t\t\t\t nextMessage\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 24\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 0\n\t\t\t\t\t\t\t\t\t\t\t\t: nextMessage\n\t\t\t\t\t\t\t\t\t\t\t\t? nextMessage?.user?._id === message?.user?._id\n\t\t\t\t\t\t\t\t\t\t\t\t\t? isUserMessage(message)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 20\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 4\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 20\n\t\t\t\t\t\t\t\t\t\t\t\t: 0,\n\t\t\t\t\t\t\t\t\t\t\t// Activity cards: no left/bottom margin.\n\t\t\t\t\t\t\t\t\t\t\t...(isActivity ? { marginLeft: 0, marginBottom: 0 } : {}),\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{/* Left avatar or placeholder (for mobile, avatar is hidden) */}\n\t\t\t\t\t\t\t\t\t\t{!isMobile && position === 'left' && (\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmarginRight: '4px',\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '24px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{renderMessageAvatar(\n\t\t\t\t\t\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tpreviousMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnextMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t\t\t{/* Message bubble */}\n\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\tid={`message-bubble-${\n\t\t\t\t\t\t\t\t\t\t\t\tmessage._id ??\n\t\t\t\t\t\t\t\t\t\t\t\t`${index}-${messageIdGenerator?.() ?? 'id'}`\n\t\t\t\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\t\t\t\tstyle={\n\t\t\t\t\t\t\t\t\t\t\t\tappType === GiftedChatAppType.Manifest\n\t\t\t\t\t\t\t\t\t\t\t\t\t? { width: '100%' }\n\t\t\t\t\t\t\t\t\t\t\t\t\t: isMobile || isSmtp\n\t\t\t\t\t\t\t\t\t\t\t\t\t? { display: 'flex', flexGrow: 1, width: '100%' }\n\t\t\t\t\t\t\t\t\t\t\t\t\t: {}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{renderMessageBubble(\n\t\t\t\t\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\t\t\t\t\tpreviousMessage,\n\t\t\t\t\t\t\t\t\t\t\t\tnextMessage,\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t{/* Right avatar or placeholder (for mobile, avatar is hidden) */}\n\t\t\t\t\t\t\t\t\t\t{!isMobile && position === 'right' && (\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmarginLeft: '4px',\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '24px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\talignSelf: 'flex-start',\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{renderMessageAvatar(\n\t\t\t\t\t\t\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tpreviousMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnextMessage,\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t))}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default forwardRef<HTMLDivElement, GiftedChatProps<IMessage>>(\n\tGiftedChatInner,\n);\n"],"names":["COLLAPSED_MAX_HEIGHT","CollapsibleBubbleText","text","isExpanded","onToggle","textRef","useRef","isOverflowing","setIsOverflowing","useState","useEffect","el","overflows","jsxs","Fragment","jsx","BodySecondary","Button","GiftedChatInner","props","forwardedRef","messages","user","renderBubble","renderAvatar","renderDay","renderLoading","renderChatEmpty","listViewProps","renderAvatarOnTop","showUserAvatar","showAvatarForEveryMessage","inverted","messageIdGenerator","topThreshold","TOP_THRESHOLD","appType","GiftedChatAppType","maxHeight","isActivityMessage","extraProps","isMobile","useWindowSize","internalScrollRef","scrollRef","normalizeRef","scrollState","expandedMessages","setExpandedMessages","reversedMessages","useMemo","dayGroups","groups","message","index","previousMessage","isSameDay","scrollToBottom","useScrollToBottom","useImperativeHandle","useInitialMountScroll","useScrollCleanup","useRestoreScrollPosition","useAutoScrollOnNewMessages","useResizeObserverForFirstMessage","handleScroll","useScrollHandler","isUserMessage","useCallback","shouldShowAvatar","renderMessageBubble","nextMessage","position","isTopOfStack","isBottomOfStack","bubbleProps","messageId","COLORS","prev","next","renderMessageAvatar","group","groupIndex","Day","isSmtp","MESSAGE_CHANNELS","placement","getMessagePlacement","isCentered","shouldCenterAlign","isPrivateNote","Constants","isActivity","React","GiftedChat","forwardRef"],"mappings":";;;;;;;;;;;;AA8BA,MAAMA,IAAuB,KAEvBC,KAID,CAAC,EAAE,MAAAC,GAAM,YAAAC,GAAY,UAAAC,QAAe;AACxC,QAAMC,IAAUC,EAAuB,IAAI,GACrC,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK;AAExD,SAAAC,GAAU,MAAM;AACf,UAAMC,IAAKN,EAAQ;AACnB,QAAIM,GAAI;AAEP,MAAAA,EAAG,MAAM,YAAY;AACrB,YAAMC,IAAYD,EAAG,eAAeX;AACpC,MAAAW,EAAG,MAAM,YAAYR,IAAa,SAAS,GAAGH,CAAoB,MAClEQ,EAAiBI,CAAS;AAAA,IAC3B;AAAA,EACD,GAAG,CAACV,GAAMC,CAAU,CAAC,GAGpB,gBAAAU,EAAAC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,KAAKV;AAAA,QACL,OAAO;AAAA,UACN,WAAWF,IAAa,SAASH;AAAA,UACjC,UAAU;AAAA,QAAA;AAAA,QAGX,UAAA,gBAAAe,EAACC,MAAe,UAAAd,EAAA,CAAK;AAAA,MAAA;AAAA,IAAA;AAAA,IAErBK,KACA,gBAAAQ;AAAA,MAACE;AAAA,MAAA;AAAA,QACA,YAAW;AAAA,QACX,MAAK;AAAA,QACL,YAAYd,IAAa,cAAc;AAAA,QACvC,SAASC;AAAA,MAAA;AAAA,IAAA;AAAA,EACV,GA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OAAO;AAAA,gCACP,YAAY;AAAA,gCACZ,WAAW;AAAA,8BAAA;AAAA,8BAGX,UAAAiE;AAAA,gCACA3B;AAAA,gCACAE;AAAA,gCACAgB;AAAA,8BAAA;AAAA,4BACD;AAAA,0BAAA;AAAA,wBACD;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAEF;AAAA,kBA3FClB,EAAQ,OAAO,GAAGC,CAAK,IAAIrB,IAAA,KAA0B,IAAI;AAAA,gBAAA;AAAA,cA8F7D,CAAC;AAAA,YAAA,EAAA,GArIQ,aAAaiD,CAAU,EAsIjC,CACA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGH,GAEAY,KAAeC;AAAA,EACd7E;AACD;"}
|
|
@@ -8,6 +8,7 @@ export declare const GetButtonTextComponent: (size: Size, type: Type, disabled?:
|
|
|
8
8
|
color?: string | undefined;
|
|
9
9
|
}, never>;
|
|
10
10
|
export declare const getBorderColor: (type: Type, inverse?: boolean, error?: boolean) => string;
|
|
11
|
+
export declare const strokeStyle: (size: Size, color: string, width?: number) => string;
|
|
11
12
|
export declare const getBorder: (version: '1.0' | '2.0' | '3.0', type: Type, size: Size, inverse?: boolean, error?: boolean) => string;
|
|
12
13
|
export declare const getLinearGradientValue: (size: Size) => string;
|
|
13
14
|
/**
|