@rocket.chat/livechat 1.10.0 → 1.12.0
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/CHANGELOG.md +14 -0
- package/build/62.chunk.0e20e.js +25 -0
- package/build/62.chunk.0e20e.js.map +1 -0
- package/build/63.chunk.541a7.js +2 -0
- package/build/63.chunk.541a7.js.map +1 -0
- package/build/{bundle.a45af.js → bundle.f28df.js} +2 -2
- package/build/{bundle.a45af.js.map → bundle.f28df.js.map} +1 -1
- package/build/{i18n.af.chunk.7772d.js → i18n.af.chunk.aa09d.js} +2 -2
- package/build/{i18n.af.chunk.7772d.js.map → i18n.af.chunk.aa09d.js.map} +1 -1
- package/build/{i18n.ar.chunk.0106d.js → i18n.ar.chunk.bd26e.js} +2 -2
- package/build/{i18n.ar.chunk.0106d.js.map → i18n.ar.chunk.bd26e.js.map} +1 -1
- package/build/{i18n.az.chunk.c33a0.js → i18n.az.chunk.f87f8.js} +2 -2
- package/build/{i18n.az.chunk.c33a0.js.map → i18n.az.chunk.f87f8.js.map} +1 -1
- package/build/{i18n.be_BY.chunk.877bb.js → i18n.be_BY.chunk.b0156.js} +2 -2
- package/build/{i18n.be_BY.chunk.877bb.js.map → i18n.be_BY.chunk.b0156.js.map} +1 -1
- package/build/{i18n.bg.chunk.89fb9.js → i18n.bg.chunk.88e1a.js} +2 -2
- package/build/{i18n.bg.chunk.89fb9.js.map → i18n.bg.chunk.88e1a.js.map} +1 -1
- package/build/{i18n.bs.chunk.73133.js → i18n.bs.chunk.ef698.js} +2 -2
- package/build/i18n.bs.chunk.ef698.js.map +1 -0
- package/build/{i18n.ca.chunk.3dee8.js → i18n.ca.chunk.dd769.js} +2 -2
- package/build/i18n.ca.chunk.dd769.js.map +1 -0
- package/build/{i18n.cs.chunk.fcdb4.js → i18n.cs.chunk.75c37.js} +2 -2
- package/build/i18n.cs.chunk.75c37.js.map +1 -0
- package/build/{i18n.cy.chunk.2dcc5.js → i18n.cy.chunk.24ba1.js} +2 -2
- package/build/i18n.cy.chunk.24ba1.js.map +1 -0
- package/build/{i18n.da.chunk.d08bf.js → i18n.da.chunk.e85c1.js} +2 -2
- package/build/i18n.da.chunk.e85c1.js.map +1 -0
- package/build/{i18n.de.chunk.2ef93.js → i18n.de.chunk.59e3a.js} +2 -2
- package/build/i18n.de.chunk.59e3a.js.map +1 -0
- package/build/{i18n.de_AT.chunk.067ff.js → i18n.de_AT.chunk.ee5a5.js} +2 -2
- package/build/i18n.de_AT.chunk.ee5a5.js.map +1 -0
- package/build/{i18n.de_IN.chunk.304b5.js → i18n.de_IN.chunk.a6b69.js} +2 -2
- package/build/i18n.de_IN.chunk.a6b69.js.map +1 -0
- package/build/{i18n.default.chunk.98dad.js → i18n.default.chunk.95cdb.js} +2 -2
- package/build/i18n.default.chunk.95cdb.js.map +1 -0
- package/build/{i18n.el.chunk.c8172.js → i18n.el.chunk.a738e.js} +2 -2
- package/build/i18n.el.chunk.a738e.js.map +1 -0
- package/build/{i18n.en.chunk.995d4.js → i18n.en.chunk.c2c5d.js} +2 -2
- package/build/i18n.en.chunk.c2c5d.js.map +1 -0
- package/build/{i18n.eo.chunk.818a8.js → i18n.eo.chunk.42f15.js} +2 -2
- package/build/i18n.eo.chunk.42f15.js.map +1 -0
- package/build/{i18n.es.chunk.16301.js → i18n.es.chunk.bb686.js} +2 -2
- package/build/i18n.es.chunk.bb686.js.map +1 -0
- package/build/{i18n.et.chunk.ac72e.js → i18n.et.chunk.81530.js} +2 -2
- package/build/i18n.et.chunk.81530.js.map +1 -0
- package/build/{i18n.eu.chunk.cd16f.js → i18n.eu.chunk.fbb17.js} +2 -2
- package/build/i18n.eu.chunk.fbb17.js.map +1 -0
- package/build/i18n.fa.chunk.4ad50.js +2 -0
- package/build/i18n.fa.chunk.4ad50.js.map +1 -0
- package/build/{i18n.fi.chunk.5329d.js → i18n.fi.chunk.1e1d4.js} +2 -2
- package/build/i18n.fi.chunk.1e1d4.js.map +1 -0
- package/build/{i18n.fr.chunk.28c54.js → i18n.fr.chunk.d3b99.js} +2 -2
- package/build/i18n.fr.chunk.d3b99.js.map +1 -0
- package/build/{i18n.he.chunk.a4ca5.js → i18n.he.chunk.b02b9.js} +2 -2
- package/build/i18n.he.chunk.b02b9.js.map +1 -0
- package/build/{i18n.hr.chunk.cfcd4.js → i18n.hr.chunk.ec7c3.js} +2 -2
- package/build/i18n.hr.chunk.ec7c3.js.map +1 -0
- package/build/{i18n.hu.chunk.f208e.js → i18n.hu.chunk.f61b3.js} +2 -2
- package/build/i18n.hu.chunk.f61b3.js.map +1 -0
- package/build/{i18n.id.chunk.e320b.js → i18n.id.chunk.08258.js} +2 -2
- package/build/i18n.id.chunk.08258.js.map +1 -0
- package/build/{i18n.it.chunk.e6d0b.js → i18n.it.chunk.28db4.js} +2 -2
- package/build/i18n.it.chunk.28db4.js.map +1 -0
- package/build/{i18n.ja.chunk.d708f.js → i18n.ja.chunk.357b9.js} +2 -2
- package/build/i18n.ja.chunk.357b9.js.map +1 -0
- package/build/{i18n.km.chunk.5de7c.js → i18n.km.chunk.ef6ac.js} +2 -2
- package/build/i18n.km.chunk.ef6ac.js.map +1 -0
- package/build/{i18n.ko.chunk.89d07.js → i18n.ko.chunk.4b18b.js} +2 -2
- package/build/i18n.ko.chunk.4b18b.js.map +1 -0
- package/build/{i18n.ku.chunk.a8396.js → i18n.ku.chunk.e1143.js} +2 -2
- package/build/i18n.ku.chunk.e1143.js.map +1 -0
- package/build/{i18n.lo.chunk.f33ce.js → i18n.lo.chunk.eef40.js} +2 -2
- package/build/i18n.lo.chunk.eef40.js.map +1 -0
- package/build/{i18n.lt.chunk.900fe.js → i18n.lt.chunk.6d9e9.js} +2 -2
- package/build/i18n.lt.chunk.6d9e9.js.map +1 -0
- package/build/{i18n.lv.chunk.2c165.js → i18n.lv.chunk.41de8.js} +2 -2
- package/build/i18n.lv.chunk.41de8.js.map +1 -0
- package/build/{i18n.mn.chunk.54976.js → i18n.mn.chunk.02189.js} +2 -2
- package/build/i18n.mn.chunk.02189.js.map +1 -0
- package/build/{i18n.ms_MY.chunk.b9bd0.js → i18n.ms_MY.chunk.529dd.js} +2 -2
- package/build/i18n.ms_MY.chunk.529dd.js.map +1 -0
- package/build/{i18n.nl.chunk.08b8a.js → i18n.nl.chunk.b4efd.js} +2 -2
- package/build/i18n.nl.chunk.b4efd.js.map +1 -0
- package/build/{i18n.no.chunk.c5a9c.js → i18n.no.chunk.f0677.js} +2 -2
- package/build/i18n.no.chunk.f0677.js.map +1 -0
- package/build/{i18n.pl.chunk.271d6.js → i18n.pl.chunk.554b7.js} +2 -2
- package/build/i18n.pl.chunk.554b7.js.map +1 -0
- package/build/{i18n.pt.chunk.d9513.js → i18n.pt.chunk.59e1e.js} +2 -2
- package/build/i18n.pt.chunk.59e1e.js.map +1 -0
- package/build/{i18n.pt_BR.chunk.ad58b.js → i18n.pt_BR.chunk.d9303.js} +2 -2
- package/build/i18n.pt_BR.chunk.d9303.js.map +1 -0
- package/build/{i18n.ro.chunk.bb75e.js → i18n.ro.chunk.7ab22.js} +2 -2
- package/build/i18n.ro.chunk.7ab22.js.map +1 -0
- package/build/{i18n.ru.chunk.2d410.js → i18n.ru.chunk.40164.js} +2 -2
- package/build/i18n.ru.chunk.40164.js.map +1 -0
- package/build/{i18n.sk_SK.chunk.a2f21.js → i18n.sk_SK.chunk.a4455.js} +2 -2
- package/build/i18n.sk_SK.chunk.a4455.js.map +1 -0
- package/build/{i18n.sl_SI.chunk.c60e3.js → i18n.sl_SI.chunk.6b729.js} +2 -2
- package/build/i18n.sl_SI.chunk.6b729.js.map +1 -0
- package/build/{i18n.sq.chunk.4608f.js → i18n.sq.chunk.af4db.js} +2 -2
- package/build/i18n.sq.chunk.af4db.js.map +1 -0
- package/build/{i18n.sr.chunk.c1172.js → i18n.sr.chunk.e5992.js} +2 -2
- package/build/i18n.sr.chunk.e5992.js.map +1 -0
- package/build/{i18n.sv.chunk.924f0.js → i18n.sv.chunk.763a0.js} +2 -2
- package/build/i18n.sv.chunk.763a0.js.map +1 -0
- package/build/{i18n.ta_IN.chunk.af935.js → i18n.ta_IN.chunk.4be8a.js} +2 -2
- package/build/i18n.ta_IN.chunk.4be8a.js.map +1 -0
- package/build/{i18n.th_TH.chunk.cae59.js → i18n.th_TH.chunk.0ffb3.js} +2 -2
- package/build/i18n.th_TH.chunk.0ffb3.js.map +1 -0
- package/build/{i18n.tr.chunk.5c2db.js → i18n.tr.chunk.019b0.js} +2 -2
- package/build/i18n.tr.chunk.019b0.js.map +1 -0
- package/build/{i18n.ug.chunk.399fb.js → i18n.ug.chunk.de9a2.js} +2 -2
- package/build/i18n.ug.chunk.de9a2.js.map +1 -0
- package/build/{i18n.uk.chunk.c0636.js → i18n.uk.chunk.49ef5.js} +2 -2
- package/build/i18n.uk.chunk.49ef5.js.map +1 -0
- package/build/{i18n.vi_VN.chunk.a304b.js → i18n.vi_VN.chunk.79ec1.js} +2 -2
- package/build/i18n.vi_VN.chunk.79ec1.js.map +1 -0
- package/build/{i18n.zh.chunk.fe62a.js → i18n.zh.chunk.685a0.js} +2 -2
- package/build/i18n.zh.chunk.685a0.js.map +1 -0
- package/build/{i18n.zh_HK.chunk.54702.js → i18n.zh_HK.chunk.c8047.js} +2 -2
- package/build/i18n.zh_HK.chunk.c8047.js.map +1 -0
- package/build/{i18n.zh_TW.chunk.44797.js → i18n.zh_TW.chunk.f064c.js} +2 -2
- package/build/i18n.zh_TW.chunk.f064c.js.map +1 -0
- package/build/index.html +1 -1
- package/build/rocketchat-livechat.min.js +1 -1
- package/build/rocketchat-livechat.min.js.map +1 -1
- package/build/{vendors~bundle.chunk.6bc83.js → vendors~bundle.chunk.d6e62.js} +2 -2
- package/build/vendors~bundle.chunk.d6e62.js.map +1 -0
- package/build/widget-demo.html +9 -0
- package/package.json +2 -2
- package/build/62.chunk.427f9.js +0 -12
- package/build/62.chunk.427f9.js.map +0 -1
- package/build/63.chunk.ab528.js +0 -2
- package/build/63.chunk.ab528.js.map +0 -1
- package/build/i18n.bs.chunk.73133.js.map +0 -1
- package/build/i18n.ca.chunk.3dee8.js.map +0 -1
- package/build/i18n.cs.chunk.fcdb4.js.map +0 -1
- package/build/i18n.cy.chunk.2dcc5.js.map +0 -1
- package/build/i18n.da.chunk.d08bf.js.map +0 -1
- package/build/i18n.de.chunk.2ef93.js.map +0 -1
- package/build/i18n.de_AT.chunk.067ff.js.map +0 -1
- package/build/i18n.de_IN.chunk.304b5.js.map +0 -1
- package/build/i18n.default.chunk.98dad.js.map +0 -1
- package/build/i18n.el.chunk.c8172.js.map +0 -1
- package/build/i18n.en.chunk.995d4.js.map +0 -1
- package/build/i18n.eo.chunk.818a8.js.map +0 -1
- package/build/i18n.es.chunk.16301.js.map +0 -1
- package/build/i18n.et.chunk.ac72e.js.map +0 -1
- package/build/i18n.eu.chunk.cd16f.js.map +0 -1
- package/build/i18n.fa.chunk.7ea64.js +0 -2
- package/build/i18n.fa.chunk.7ea64.js.map +0 -1
- package/build/i18n.fi.chunk.5329d.js.map +0 -1
- package/build/i18n.fr.chunk.28c54.js.map +0 -1
- package/build/i18n.he.chunk.a4ca5.js.map +0 -1
- package/build/i18n.hr.chunk.cfcd4.js.map +0 -1
- package/build/i18n.hu.chunk.f208e.js.map +0 -1
- package/build/i18n.id.chunk.e320b.js.map +0 -1
- package/build/i18n.it.chunk.e6d0b.js.map +0 -1
- package/build/i18n.ja.chunk.d708f.js.map +0 -1
- package/build/i18n.km.chunk.5de7c.js.map +0 -1
- package/build/i18n.ko.chunk.89d07.js.map +0 -1
- package/build/i18n.ku.chunk.a8396.js.map +0 -1
- package/build/i18n.lo.chunk.f33ce.js.map +0 -1
- package/build/i18n.lt.chunk.900fe.js.map +0 -1
- package/build/i18n.lv.chunk.2c165.js.map +0 -1
- package/build/i18n.mn.chunk.54976.js.map +0 -1
- package/build/i18n.ms_MY.chunk.b9bd0.js.map +0 -1
- package/build/i18n.nl.chunk.08b8a.js.map +0 -1
- package/build/i18n.no.chunk.c5a9c.js.map +0 -1
- package/build/i18n.pl.chunk.271d6.js.map +0 -1
- package/build/i18n.pt.chunk.d9513.js.map +0 -1
- package/build/i18n.pt_BR.chunk.ad58b.js.map +0 -1
- package/build/i18n.ro.chunk.bb75e.js.map +0 -1
- package/build/i18n.ru.chunk.2d410.js.map +0 -1
- package/build/i18n.sk_SK.chunk.a2f21.js.map +0 -1
- package/build/i18n.sl_SI.chunk.c60e3.js.map +0 -1
- package/build/i18n.sq.chunk.4608f.js.map +0 -1
- package/build/i18n.sr.chunk.c1172.js.map +0 -1
- package/build/i18n.sv.chunk.924f0.js.map +0 -1
- package/build/i18n.ta_IN.chunk.af935.js.map +0 -1
- package/build/i18n.th_TH.chunk.cae59.js.map +0 -1
- package/build/i18n.tr.chunk.5c2db.js.map +0 -1
- package/build/i18n.ug.chunk.399fb.js.map +0 -1
- package/build/i18n.uk.chunk.c0636.js.map +0 -1
- package/build/i18n.vi_VN.chunk.a304b.js.map +0 -1
- package/build/i18n.zh.chunk.fe62a.js.map +0 -1
- package/build/i18n.zh_HK.chunk.54702.js.map +0 -1
- package/build/i18n.zh_TW.chunk.44797.js.map +0 -1
- package/build/vendors~bundle.chunk.6bc83.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{
|
|
2
|
-
//# sourceMappingURL=i18n.ta_IN.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1476:function(e){e.exports=JSON.parse('{"ta_IN":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"ரத்து","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"உரையாடலை முடித்தேன்","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"திணைக்களம் மாறியது","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"இல்லை","ok_c47544a2":"OK","options_3ab0ea65":"விருப்பங்கள்","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"அனுப்பு","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"பயனர் சேர்ந்தார்","user_left_58ed9c36":"பயனர் இடது","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"இப்போது நாங்கள் ஆன்லைனில் இல்லை. தயவுசெய்து, ஒரு செய்தியை விடு.","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"ஆமாம்","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.ta_IN.chunk.4be8a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.ta_IN.chunk.4be8a.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{
|
|
2
|
-
//# sourceMappingURL=i18n.th_TH.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{1477:function(e){e.exports=JSON.parse('{"th_TH":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"ยกเลิก","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"สนทนาเสร็จแล้ว","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"แผนกเปลี่ยนแล้ว","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"ไม่","ok_c47544a2":"OK","options_3ab0ea65":"ตัวเลือก","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"ส่ง","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"ผู้ใช้เข้าร่วม","user_left_58ed9c36":"เหลือผู้ใช้แล้ว","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"เรายังไม่ออนไลน์ในขณะนี้ กรุณาฝากข้อความไว้","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"ใช่","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.th_TH.chunk.0ffb3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.th_TH.chunk.0ffb3.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{
|
|
2
|
-
//# sourceMappingURL=i18n.tr.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{1478:function(e){e.exports=JSON.parse('{"tr":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Departmanı değiştirmek istediğinden emin misin?","cancel_caeb1e68":"Vazgeç","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"Konuşma bitti","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"Bölüm değiştirildi","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"Hayır","ok_c47544a2":"OK","options_3ab0ea65":"Seçenekler","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"Gönder","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"Kullanıcı katıldı","user_left_58ed9c36":"Kullanıcı ayrıldı","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"Şu anda çevrimiçi değiliz. Lütfen mesaj bırakın.","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"Evet","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.tr.chunk.019b0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.tr.chunk.019b0.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{
|
|
2
|
-
//# sourceMappingURL=i18n.ug.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1479:function(e){e.exports=JSON.parse('{"ug":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"Cancel","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"سۆھبەتلىشىش ئاخىرلاشتى","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"Department switched","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"No","ok_c47544a2":"OK","options_3ab0ea65":"Options","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"يوللاش","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"ئەزا ئاللىبۇرۇن قېتىلدى","user_left_58ed9c36":"ئەزا ئاللىبۇرۇن ئايرىلدى","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"We are not online right now. Please, leave a message.","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"Yes","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.ug.chunk.de9a2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.ug.chunk.de9a2.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{
|
|
2
|
-
//# sourceMappingURL=i18n.uk.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{1480:function(e){e.exports=JSON.parse('{"uk":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"Скасувати","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"Розмову закінчено","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"Відділ змінено","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"Ні","ok_c47544a2":"OK","options_3ab0ea65":"Параметри","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"Надіслати","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"Користувач приєднався","user_left_58ed9c36":"Користувач вийшов","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"Ми зараз не в мережі. Будь ласка, залиште повідомлення.","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"Так","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.uk.chunk.49ef5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.uk.chunk.49ef5.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{
|
|
2
|
-
//# sourceMappingURL=i18n.vi_VN.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{1481:function(e){e.exports=JSON.parse('{"vi_VN":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"hủy bỏ","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"Trò chuyện kết thúc","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"Sở chuyển","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"Không","ok_c47544a2":"OK","options_3ab0ea65":"Tùy chọn","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"Gửi","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"Người dùng tham gia","user_left_58ed9c36":"Người dùng còn lại","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"Chúng tôi không trực tuyến ngay bây giờ. Xin vui lòng, để lại tin nhắn.","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"Vâng","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.vi_VN.chunk.79ec1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.vi_VN.chunk.79ec1.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{
|
|
2
|
-
//# sourceMappingURL=i18n.zh.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{1482:function(e){e.exports=JSON.parse('{"zh":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"您确定要离开聊天吗?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"您确定要删除所有个人资料吗?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"你确定要切换部门吗?","cancel_caeb1e68":"取消","change_department_1d671538":"变更部门","change_department_523a16e8":"变更部门","chat_finished_effbd589":"聊天结束","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"选择部门...","choose_a_department_fe9755fd":"选择部门","choose_an_option_26ac97d2":"请选择...","conversation_finished_6a0f2811":"会话已结束","count_new_messages_since_since_47c9d2a0":{"one":"有一个来自 %{since} 的新信息 ","other":"%{count} 个来自 %{since} 的新信息"},"department_switched_cff305cf":"部门切换","departments_3826b025":"部门","disable_notifications_dd6a3180":"关闭通知","dismiss_this_alert_ea9b3104":"取消此提醒","drop_here_to_upload_a_file_e5f4dd60":"拽文件到这里上传","email_22a7d52d":"电子邮件","enable_notifications_a3daf4b1":"开启通知","error_closing_chat_4c5e29d7":"关闭聊天窗口错误.","error_removing_user_data_ce507478":"移除用户资料错误.","error_starting_a_new_conversation_reason_a1b491a1":"开始新对话时错误: %{reason}","expand_chat_a0045dbd":"展开聊天窗口","field_required_fc5c6b05":"此字段必填","file_exceeds_allowed_size_of_size_bd65c389":"文件大小超过允许的限制 %{size}.","fileupload_error_9eedee68":"文件上传错误","finish_this_chat_87b79542":"结束聊天","forget_remove_my_data_e1d68cdd":"移除我的资料","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"前往 **选项 → 移除我的资料** 请求立即删除您的数据.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} 更多","i_agree_df2ecbd4":"我同意","i_need_help_with_61054e21":"我需要帮助...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"如有其他疑问,请按下面的按钮开始新的聊天.","insert_your_field_here_d631e875":"请在此输入 %{field} ...","invalid_email_e82f3682":"无效的电子邮件","invalid_value_12ca12c2":"无效的内容","leave_a_message_5b581048":"留言","livechat_connected_afee1c5b":"聊天已连线","livechat_is_not_connected_b40328ca":"聊天未连线","media_types_not_accepted_4e25676a":"不允许的挡案类型","message_5c38209d":"信息","messages_64e7435f":"Messages","minimize_chat_804b3135":"最小化聊天窗口","name_1aed4a1b":"名字","need_help_803a61":"需要帮忙吗?","new_chat_f525c39e":"开启新聊天","no_available_agents_to_transfer_3ae30cec":"目前没有其他客服在线上,请稍等","no_e16d9132":"否","ok_c47544a2":"好","options_3ab0ea65":"选项","please_tell_us_some_information_to_start_the_chat_ac135cbb":"请输入信息来开启聊天","please_wait_for_the_next_available_agent_b2a49c4c":"请稍等其他客服..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"恢复聊天","room_name_changed_9c42350a":"聊天房间名称改变","send_e3bd0ed0":"发送","sound_is_off_a743f419":"声音关闭","sound_is_on_98a9ec58":"声音开启","start_chat_8606d464":"开始聊天","thanks_for_talking_with_us_719cce22":"谢谢与我们联系","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"您的个人数据的由 [Company Name] 使用, 注册办公室位于 [Company Address]. 要开始聊天,您同意应按照通用数据保护条例(GDPR)处理和传输您的个人数据.","type_your_message_here_6a05bd0f":"请在此输入您的信息","unread_messages_5e18e7b7":"未读信息","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"用户已加入","user_left_58ed9c36":"用户已离开","user_removed_by_e990f856":"用户已被移除","waiting_queue_800061da":"等待中","we_are_not_online_right_now_please_leave_a_message_57df1966":"我们现在不在线。请留言。","welcome_dd4e7151":"欢迎","write_your_message_6eee0188":"请输入您的信息...","yes_dde87d5":"是","you_browser_doesn_t_support_audio_element_3391386f":"您的浏览器不支援音频","you_browser_doesn_t_support_video_element_e9cbd81e":"您的浏览器不支援视频","your_spot_is_spot_a35cd288":"您的等待位置是 #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"您的等待位置是 #%{spot} (预估等待时间: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.zh.chunk.685a0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.zh.chunk.685a0.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{
|
|
2
|
-
//# sourceMappingURL=i18n.zh_HK.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{1483:function(e){e.exports=JSON.parse('{"zh_HK":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"取消","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"對話已結束","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"部门切换","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"否","ok_c47544a2":"OK","options_3ab0ea65":"選項","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"傳送","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"用户加入","user_left_58ed9c36":"用户离开了","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"我们现在不在线。请留言。","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"对","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.zh_HK.chunk.c8047.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.zh_HK.chunk.c8047.js","sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{
|
|
2
|
-
//# sourceMappingURL=i18n.zh_TW.chunk.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{1484:function(e){e.exports=JSON.parse('{"zh_TW":{"are_you_sure_you_want_to_finish_this_chat_1db5c13b":"Are you sure you want to finish this chat?","are_you_sure_you_want_to_remove_all_of_your_person_426720f1":"Are you sure you want to remove all of your personal data?","are_you_sure_you_want_to_switch_the_department_d50a0b08":"Are you sure you want to switch the department?","cancel_caeb1e68":"取消","change_department_1d671538":"Change department","change_department_523a16e8":"Change Department","chat_finished_effbd589":"Chat Finished","chat_now_3d7f6769":"Chat now","chat_started_3b1db6d6":"Chat started","choose_a_department_b106da55":"Choose a department...","choose_a_department_fe9755fd":"Choose a department","choose_an_option_26ac97d2":"Choose an option...","conversation_finished_6a0f2811":"對話已結束","count_new_messages_since_since_47c9d2a0":{"one":"One new message since %{since}","other":"%{count} new messages since %{since}"},"department_switched_cff305cf":"部門已更換","departments_3826b025":"Departments","disable_notifications_dd6a3180":"Disable notifications","dismiss_this_alert_ea9b3104":"Dismiss this alert","drop_here_to_upload_a_file_e5f4dd60":"Drop here to upload a file","email_22a7d52d":"Email","enable_notifications_a3daf4b1":"Enable notifications","error_closing_chat_4c5e29d7":"Error closing chat.","error_removing_user_data_ce507478":"Error removing user data.","error_starting_a_new_conversation_reason_a1b491a1":"Error starting a new conversation: %{reason}","expand_chat_a0045dbd":"Expand chat","field_required_fc5c6b05":"Field required","file_exceeds_allowed_size_of_size_bd65c389":"File exceeds allowed size of %{size}.","fileupload_error_9eedee68":"FileUpload Error","finish_this_chat_87b79542":"Finish this chat","forget_remove_my_data_e1d68cdd":"Forget/Remove my data","from_returned_the_chat_to_the_queue_3edcd32":"%{from} returned the chat to the queue","from_transferred_the_chat_to_the_department_to_752ab298":"%{from} transferred the chat to the department %{to}","from_transferred_the_chat_to_to_15bdcb11":"%{from} transferred the chat to %{to}","gdpr_8b366c2b":"GDPR","go_to_menu_options_forget_remove_my_personal_data__99c40934":"Go to **menu options → Forget/Remove my personal data** to request the immediate removal of your data.","hiddenelementscount_more_c017d614":"+ %{hiddenElementsCount} more","i_agree_df2ecbd4":"I Agree","i_need_help_with_61054e21":"I need help with...","if_you_have_any_other_questions_just_press_the_but_ceaadfa0":"If you have any other questions, just press the button below to start a new chat.","insert_your_field_here_d631e875":"Insert your %{field} here...","invalid_email_e82f3682":"Invalid email","invalid_value_12ca12c2":"Invalid value","leave_a_message_5b581048":"Leave a message","livechat_connected_afee1c5b":"Livechat connected.","livechat_is_not_connected_b40328ca":"Livechat is not connected.","media_types_not_accepted_4e25676a":"Media Types Not Accepted.","message_5c38209d":"Message","messages_64e7435f":"Messages","minimize_chat_804b3135":"Minimize chat","name_1aed4a1b":"Name","need_help_803a61":"Need help?","new_chat_f525c39e":"New Chat","no_available_agents_to_transfer_3ae30cec":"No available agents to transfer","no_e16d9132":"否","ok_c47544a2":"OK","options_3ab0ea65":"選項","please_tell_us_some_information_to_start_the_chat_ac135cbb":"Please, tell us some information to start the chat","please_wait_for_the_next_available_agent_b2a49c4c":"Please, wait for the next available agent..","powered_by_rocket_chat_4d7c2ab4":"Powered by Rocket.Chat","restore_chat_3bfecf2b":"Restore chat","room_name_changed_9c42350a":"Room name changed","send_e3bd0ed0":"傳送","sound_is_off_a743f419":"Sound is off","sound_is_on_98a9ec58":"Sound is on","start_chat_8606d464":"Start chat","thanks_for_talking_with_us_719cce22":"Thanks for talking with us","the_chat_was_moved_back_to_queue_cefbade6":"The chat was moved back to queue","the_chat_was_transferred_to_another_agent_b375bdac":"The chat was transferred to another agent","the_controller_of_your_personal_data_is_company_na_c82f5567":"The controller of your personal data is [Company Name], with registered office at [Company Address]. To start the chat you agree that your personal data shall be processed and trasmitted in accordance with the General Data Protection Regulation (GDPR).","type_your_message_here_6a05bd0f":"Type your message here","unread_messages_5e18e7b7":"unread messages","user_added_by_525b6b11":"User added by","user_joined_407ba0d":"使用者已加入","user_left_58ed9c36":"使用者已離開","user_removed_by_e990f856":"User removed by","waiting_queue_800061da":"Waiting queue...","we_are_not_online_right_now_please_leave_a_message_57df1966":"我們現在不在線。請留言。","welcome_dd4e7151":"Welcome","write_your_message_6eee0188":"Write your message...","yes_dde87d5":"是","you_browser_doesn_t_support_audio_element_3391386f":"You browser doesn\'t support audio element","you_browser_doesn_t_support_video_element_e9cbd81e":"You browser doesn\'t support video element","your_spot_is_spot_a35cd288":"Your spot is #%{spot}","your_spot_is_spot_estimated_wait_time_estimatedwai_d0ff46e0":"Your spot is #%{spot} (Estimated wait time: %{estimatedWaitTime})"}}')}}]);
|
|
2
|
+
//# sourceMappingURL=i18n.zh_TW.chunk.f064c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n.zh_TW.chunk.f064c.js","sourceRoot":""}
|
package/build/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><meta charset="utf-8"><title>Rocket.Chat.Livechat</title><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><script src="livechat/0.chunk.85c58.js"></script><script src="livechat/polyfills.db442.js"></script><script src="livechat/vendors~bundle.chunk.
|
|
1
|
+
<!doctype html><html><head><meta charset="utf-8"><title>Rocket.Chat.Livechat</title><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><script src="livechat/0.chunk.85c58.js"></script><script src="livechat/polyfills.db442.js"></script><script src="livechat/vendors~bundle.chunk.d6e62.js"></script><script src="livechat/bundle.f28df.js"></script></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="livechat/",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"validCallbacks",(function(){return g}));function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function
|
|
1
|
+
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="livechat/",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"validCallbacks",(function(){return g}));function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(){};window.RocketChat=window.RocketChat||{_:[]};var r,u,s,l,d,f={},m=[],p=!1,h=!1,g=["chat-maximized","chat-minimized","chat-started","chat-ended","pre-chat-form-submit","offline-form-submit","show-widget","hide-widget","assign-agent","agent-status-change","queue-position-change","no-agent-online"],y={all:d=d||new Map,on:function(t,e){var n=d.get(t);n&&n.push(e)||d.set(t,[e])},off:function(t,e){var n=d.get(t);n&&n.splice(n.indexOf(e)>>>0,1)},emit:function(t,e){(d.get(t)||[]).slice().map((function(t){t(e)})),(d.get("*")||[]).slice().map((function(n){n(t,e)}))}};function w(t,e){return-1!==g.indexOf(t)&&y.on(t,e)}function v(t,e){void 0!==e?y.emit(t,e):y.emit(t)}function b(t,e){if(!p)return m.push([t,e]);var n={src:"rocketchat",fn:t,args:e};u.contentWindow.postMessage(n,"*")}var k=function(t){h&&t?(s=document.documentElement.scrollTop,document.body.classList.add("rc-livechat-mobile-full-screen")):(document.body.classList.remove("rc-livechat-mobile-full-screen"),h&&(document.documentElement.scrollTop=s)),t?(r.style.left=h?"0":"auto",r.style.height=h?"100%":"".concat(16+l+16+54,"px"),r.style.width=h?"100%":"".concat(397,"px")):(r.style.left="auto",r.style.width="".concat(86,"px"),r.style.height="".concat(86,"px"))},C=function(){"opened"!==r.dataset.state&&(l=525,k(!0),r.dataset.state="opened",u.focus(),v("chat-maximized"))};function x(){"closed"!==r.dataset.state&&(k(!1),r.dataset.state="closed",v("chat-minimized"))}var S={popup:null,ready:function(){p=!0,m.length>0&&(m.forEach((function(t){b.apply(this,t)})),m=[])},minimizeWindow:function(){x()},restoreWindow:function(){S.popup&&!0!==S.popup.closed&&(S.popup.close(),S.popup=null),C()},openPopout:function(){x(),S.popup=window.open("".concat(f.url).concat(f.url.lastIndexOf("?")>-1?"&":"?","mode=popout"),"livechat-popout","width=".concat(365,", height=").concat(l,", toolbars=no")),S.popup.focus()},openWidget:function(){C()},resizeWidget:function(t){!function(t){l=t,k(!0),r.dataset.state="triggered"}(t)},removeWidget:function(){document.body.removeChild(r)},callback:function(t,e){v(t,e)},showWidget:function(){u.style.display="initial",v("show-widget")},hideWidget:function(){u.style.display="none",v("hide-widget")},resetDocumentStyle:function(){document.body.classList.remove("rc-livechat-mobile-full-screen")},setFullScreenDocumentMobile:function(){h&&document.body.classList.add("rc-livechat-mobile-full-screen")}};function O(t){b("pageVisited",{change:t,location:JSON.parse(JSON.stringify(document.location)),title:document.title})}function W(t,e,n){void 0===n&&(n=!0),b("setCustomField",[t,e,n])}function z(t){b("setTheme",t)}function E(t){b("setDepartment",t)}function A(t){b("setBusinessUnit",t)}function R(t){b("setGuestToken",t)}function j(t){b("setGuestName",t)}function M(t){b("setGuestEmail",t)}function T(t){b("registerGuest",t)}function P(t){b("setAgent",t)}function _(t){b("setLanguage",t)}var G={href:null,title:null},L=function(t){t&&(f.url=t,function(t){(r=document.createElement("div")).className="rocketchat-widget",r.style.position="fixed",r.style.width="".concat(86,"px"),r.style.height="".concat(86,"px"),r.style.maxHeight="100vh",r.style.bottom="0",r.style.right="0",r.style.zIndex="12345",r.dataset.state="closed";var e=document.createElement("div");e.className="rocketchat-container",e.style.width="100%",e.style.height="100%",(u=document.createElement("iframe")).id="rocketchat-iframe",u.allowTransparency="true",u.src=t,u.style.width="100%",u.style.height="100%",u.style.border="none",u.style.backgroundColor="transparent",e.appendChild(u),r.appendChild(e),document.body.appendChild(r);var n=function(t){var e=t.matches;r&&(h=e,k("opened"===r.dataset.state),b("setExpanded",h))},o=window.matchMedia("screen and (max-device-width: 480px)");o.addListener(n),n(o)}(t),window.addEventListener("message",(function(t){if("object"===c(t.data)&&void 0!==t.data.src&&"rocketchat"===t.data.src&&void 0!==S[t.data.fn]&&"function"==typeof S[t.data.fn]){var e=[].concat(t.data.args||[]);a.apply(void 0,["api.".concat(t.data.fn)].concat(o(e))),S[t.data.fn].apply(null,e)}}),!1),setInterval((function(){document.location.href!==G.href&&(O("url"),G.href=document.location.href),document.title!==G.title&&(O("title"),G.title=document.title)}),800))};void 0!==window.initRocket&&(console.warn("initRocket is now deprecated. Please update the livechat code."),L(window.initRocket[0])),void 0!==window.RocketChat.url&&L(window.RocketChat.url);var F=window.RocketChat._;window.RocketChat._.push=function(t){t.call(window.RocketChat.livechat)},window.RocketChat=window.RocketChat._.push,window.RocketChat.livechat={pageVisited:O,setCustomField:W,initialize:function(t){for(var e in t)if(t.hasOwnProperty(e))switch(e){case"customField":var n=t[e];W(n.key,n.value,n.overwrite);continue;case"setCustomFields":if(!Array.isArray(t[e])){console.log("Error: Invalid parameters. Value must be an array of objects");continue}t[e].forEach((function(t){W(t.key,t.value,t.overwrite)}));continue;case"theme":z(t[e]);continue;case"department":E(t[e]);continue;case"businessUnit":A(t[e]);continue;case"guestToken":R(t[e]);continue;case"guestName":j(t[e]);continue;case"guestEmail":M(t[e]);continue;case"registerGuest":T(t[e]);continue;case"language":_(t[e]);continue;case"agent":P(t[e]);continue;default:continue}},setTheme:z,setDepartment:E,clearDepartment:function(){b("clearDepartment")},setGuestToken:R,setGuestName:j,setGuestEmail:M,setAgent:P,registerGuest:T,setLanguage:_,showWidget:function(){b("showWidget")},hideWidget:function(){b("hideWidget")},maximizeWidget:function(){b("maximizeWidget")},minimizeWidget:function(){b("minimizeWidget")},setBusinessUnit:A,clearBusinessUnit:function(){b("clearBusinessUnit")},onChatMaximized:function(t){w("chat-maximized",t)},onChatMinimized:function(t){w("chat-minimized",t)},onChatStarted:function(t){w("chat-started",t)},onChatEnded:function(t){w("chat-ended",t)},onPrechatFormSubmit:function(t){w("pre-chat-form-submit",t)},onOfflineFormSubmit:function(t){w("offline-form-submit",t)},onWidgetShown:function(t){w("show-widget",t)},onWidgetHidden:function(t){w("hide-widget",t)},onAssignAgent:function(t){w("assign-agent",t)},onAgentStatusChange:function(t){w("agent-status-change",t)},onQueuePositionChange:function(t){w("queue-position-change",t)},onServiceOffline:function(t){w("no-agent-online",t)}},F.forEach((function(t){t.call(window.RocketChat.livechat)}))}]);
|
|
2
2
|
//# sourceMappingURL=rocketchat-livechat.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/widget.js","webpack:///../src/index.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","log","window","RocketChat","_","widget","iframe","scrollPosition","widget_height","all","config","hookQueue","ready","smallScreen","validCallbacks","callbacks","Map","on","type","handler","handlers","push","set","off","splice","indexOf","emit","evt","slice","map","registerCallback","eventName","fn","emitCallback","data","callHook","action","params","src","args","contentWindow","postMessage","updateWidgetStyle","isOpened","document","documentElement","scrollTop","body","classList","add","remove","style","left","height","width","WIDGET_MARGIN","openWidget","dataset","state","focus","closeWidget","api","popup","length","forEach","hookParams","apply","this","minimizeWindow","restoreWindow","closed","close","openPopout","open","url","lastIndexOf","resizeWidget","removeWidget","removeChild","callback","showWidget","display","hideWidget","resetDocumentStyle","setFullScreenDocumentMobile","pageVisited","change","location","JSON","parse","stringify","title","setCustomField","overwrite","setTheme","theme","setDepartment","department","setGuestToken","token","setGuestName","setGuestEmail","email","registerGuest","guest","setAgent","agent","setLanguage","language","currentPage","href","init","createElement","className","position","maxHeight","bottom","right","zIndex","container","id","allowTransparency","border","backgroundColor","appendChild","handleMediaQueryTest","matches","mediaQueryList","matchMedia","addListener","createWidget","addEventListener","msg","undefined","concat","setInterval","initRocket","console","warn","queue","livechat","initialize","method","Array","isArray","clearDepartment","maximizeWidget","minimizeWidget","onChatMaximized","onChatMinimized","onChatStarted","onChatEnded","onPrechatFormSubmit","onOfflineFormSubmit","onWidgetShown","onWidgetHidden","onAssignAgent","onAgentStatusChange","onQueuePositionChange","onServiceOffline"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,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GAAMF,EAAiB,sBAAuBE,IAClE0H,cA1B4B,SA0Bd1H,GAAMF,EAAiB,cAAeE,IACpD2H,eA3B4B,SA2Bb3H,GAAMF,EAAiB,cAAeE,IACrD4H,cA5B4B,SA4Bd5H,GAAMF,EAAiB,eAAgBE,IACrD6H,oBA7B4B,SA6BR7H,GAAMF,EAAiB,sBAAuBE,IAClE8H,sBA9B4B,SA8BN9H,GAAMF,EAAiB,wBAAyBE,IACtE+H,iBA/B4B,SA+BX/H,GAAMF,EAAiB,kBAAmBE,KAI5D2G,EAAM3E,SAAQ,SAAC1F,GACdA,EAAEF,KAAK8B,OAAOC,WAAWyI","file":"rocketchat-livechat.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"livechat/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import mitt from 'mitt';\n\n\nconst log = process.env.NODE_ENV === 'development'\n\t? (...args) => window.console.log('%cwidget%c', 'color: red', 'color: initial', ...args)\n\t: () => {};\n\n\nconst WIDGET_OPEN_WIDTH = 365;\nconst WIDGET_OPEN_HEIGHT = 525;\nconst WIDGET_MINIMIZED_WIDTH = 54;\nconst WIDGET_MINIMIZED_HEIGHT = 54;\nconst WIDGET_MARGIN = 16;\n\n\nwindow.RocketChat = window.RocketChat || { _: [] };\nconst config = {};\nlet widget;\nlet iframe;\nlet hookQueue = [];\nlet ready = false;\nlet smallScreen = false;\nlet scrollPosition;\nlet widget_height;\n\nexport const validCallbacks = [\n\t'chat-maximized',\n\t'chat-minimized',\n\t'chat-started',\n\t'chat-ended',\n\t'pre-chat-form-submit',\n\t'offline-form-submit',\n\t'show-widget',\n\t'hide-widget',\n\t'assign-agent',\n\t'agent-status-change',\n\t'queue-position-change',\n\t'no-agent-online',\n];\n\nconst callbacks = mitt();\n\nfunction registerCallback(eventName, fn) {\n\tif (validCallbacks.indexOf(eventName) === -1) {\n\t\treturn false;\n\t}\n\n\treturn callbacks.on(eventName, fn);\n}\n\nfunction emitCallback(eventName, data) {\n\tif (typeof data !== 'undefined') {\n\t\tcallbacks.emit(eventName, data);\n\t} else {\n\t\tcallbacks.emit(eventName);\n\t}\n}\n\n// hooks\nfunction callHook(action, params) {\n\tif (!ready) {\n\t\treturn hookQueue.push([action, params]);\n\t}\n\tconst data = {\n\t\tsrc: 'rocketchat',\n\t\tfn: action,\n\t\targs: params,\n\t};\n\tiframe.contentWindow.postMessage(data, '*');\n}\n\nconst updateWidgetStyle = (isOpened) => {\n\tif (smallScreen && isOpened) {\n\t\tscrollPosition = document.documentElement.scrollTop;\n\t\tdocument.body.classList.add('rc-livechat-mobile-full-screen');\n\t} else {\n\t\tdocument.body.classList.remove('rc-livechat-mobile-full-screen');\n\t\tif (smallScreen) {\n\t\t\tdocument.documentElement.scrollTop = scrollPosition;\n\t\t}\n\t}\n\n\tif (isOpened) {\n\t\twidget.style.left = smallScreen ? '0' : 'auto';\n\n\t\t/**\n\t\t * If we use widget.style.height = smallScreen ? '100vh' : ...\n\t\t * In above case some browser's viewport height is not rendered correctly\n\t\t * so, as 100vh will resolve to 100% of the current viewport height,\n\t\t * so fixed it to 100% avoiding problem for some browsers. Similar resolution\n\t\t * for widget.style.width\n\t\t */\n\n\t\twidget.style.height = smallScreen ? '100%' : `${ WIDGET_MARGIN + widget_height + WIDGET_MARGIN + WIDGET_MINIMIZED_HEIGHT }px`;\n\t\twidget.style.width = smallScreen ? '100%' : `${ WIDGET_MARGIN + WIDGET_OPEN_WIDTH + WIDGET_MARGIN }px`;\n\t} else {\n\t\twidget.style.left = 'auto';\n\t\twidget.style.width = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_WIDTH + WIDGET_MARGIN }px`;\n\t\twidget.style.height = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_HEIGHT + WIDGET_MARGIN }px`;\n\t}\n};\n\nconst createWidget = (url) => {\n\twidget = document.createElement('div');\n\twidget.className = 'rocketchat-widget';\n\twidget.style.position = 'fixed';\n\twidget.style.width = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_WIDTH + WIDGET_MARGIN }px`;\n\twidget.style.height = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_HEIGHT + WIDGET_MARGIN }px`;\n\twidget.style.maxHeight = '100vh';\n\twidget.style.bottom = '0';\n\twidget.style.right = '0';\n\twidget.style.zIndex = '12345';\n\twidget.dataset.state = 'closed';\n\n\tconst container = document.createElement('div');\n\tcontainer.className = 'rocketchat-container';\n\tcontainer.style.width = '100%';\n\tcontainer.style.height = '100%';\n\n\tiframe = document.createElement('iframe');\n\tiframe.id = 'rocketchat-iframe';\n\tiframe.allowTransparency = 'true';\n\tiframe.src = url;\n\tiframe.style.width = '100%';\n\tiframe.style.height = '100%';\n\tiframe.style.border = 'none';\n\tiframe.style.backgroundColor = 'transparent';\n\n\tcontainer.appendChild(iframe);\n\twidget.appendChild(container);\n\tdocument.body.appendChild(widget);\n\n\tconst handleMediaQueryTest = ({ matches }) => {\n\t\tif (!widget) {\n\t\t\treturn;\n\t\t}\n\n\t\tsmallScreen = matches;\n\t\tupdateWidgetStyle(widget.dataset.state === 'opened');\n\t\tcallHook('setExpanded', smallScreen);\n\t};\n\n\tconst mediaQueryList = window.matchMedia('screen and (max-device-width: 480px)');\n\tmediaQueryList.addListener(handleMediaQueryTest);\n\thandleMediaQueryTest(mediaQueryList);\n};\n\nconst openWidget = () => {\n\tif (widget.dataset.state === 'opened') {\n\t\treturn;\n\t}\n\n\twidget_height = WIDGET_OPEN_HEIGHT;\n\tupdateWidgetStyle(true);\n\twidget.dataset.state = 'opened';\n\tiframe.focus();\n\temitCallback('chat-maximized');\n};\n\nconst resizeWidget = (height) => {\n\twidget_height = height;\n\tupdateWidgetStyle(true);\n\twidget.dataset.state = 'triggered';\n};\n\nfunction closeWidget() {\n\tif (widget.dataset.state === 'closed') {\n\t\treturn;\n\t}\n\n\tupdateWidgetStyle(false);\n\twidget.dataset.state = 'closed';\n\temitCallback('chat-minimized');\n}\n\nconst api = {\n\tpopup: null,\n\n\tready() {\n\t\tready = true;\n\t\tif (hookQueue.length > 0) {\n\t\t\thookQueue.forEach(function(hookParams) {\n\t\t\t\tcallHook.apply(this, hookParams);\n\t\t\t});\n\t\t\thookQueue = [];\n\t\t}\n\t},\n\n\tminimizeWindow() {\n\t\tcloseWidget();\n\t},\n\n\trestoreWindow() {\n\t\tif (api.popup && api.popup.closed !== true) {\n\t\t\tapi.popup.close();\n\t\t\tapi.popup = null;\n\t\t}\n\t\topenWidget();\n\t},\n\n\topenPopout() {\n\t\tcloseWidget();\n\t\tapi.popup = window.open(`${ config.url }${ config.url.lastIndexOf('?') > -1 ? '&' : '?' }mode=popout`,\n\t\t\t'livechat-popout', `width=${ WIDGET_OPEN_WIDTH }, height=${ widget_height }, toolbars=no`);\n\t\tapi.popup.focus();\n\t},\n\n\topenWidget() {\n\t\topenWidget();\n\t},\n\n\tresizeWidget(height) {\n\t\tresizeWidget(height);\n\t},\n\n\tremoveWidget() {\n\t\tdocument.body.removeChild(widget);\n\t},\n\n\tcallback(eventName, data) {\n\t\temitCallback(eventName, data);\n\t},\n\n\tshowWidget() {\n\t\tiframe.style.display = 'initial';\n\t\temitCallback('show-widget');\n\t},\n\n\thideWidget() {\n\t\tiframe.style.display = 'none';\n\t\temitCallback('hide-widget');\n\t},\n\n\tresetDocumentStyle() {\n\t\tdocument.body.classList.remove('rc-livechat-mobile-full-screen');\n\t},\n\n\tsetFullScreenDocumentMobile() {\n\t\tsmallScreen && document.body.classList.add('rc-livechat-mobile-full-screen');\n\t},\n};\n\nfunction pageVisited(change) {\n\tcallHook('pageVisited', {\n\t\tchange,\n\t\tlocation: JSON.parse(JSON.stringify(document.location)),\n\t\ttitle: document.title,\n\t});\n}\n\nfunction setCustomField(key, value, overwrite) {\n\tif (typeof overwrite === 'undefined') {\n\t\toverwrite = true;\n\t}\n\tcallHook('setCustomField', [key, value, overwrite]);\n}\n\nfunction setTheme(theme) {\n\tcallHook('setTheme', theme);\n}\n\nfunction setDepartment(department) {\n\tcallHook('setDepartment', department);\n}\n\nfunction setGuestToken(token) {\n\tcallHook('setGuestToken', token);\n}\n\nfunction setGuestName(name) {\n\tcallHook('setGuestName', name);\n}\n\nfunction setGuestEmail(email) {\n\tcallHook('setGuestEmail', email);\n}\n\nfunction registerGuest(guest) {\n\tcallHook('registerGuest', guest);\n}\n\nfunction clearDepartment() {\n\tcallHook('clearDepartment');\n}\n\nfunction setAgent(agent) {\n\tcallHook('setAgent', agent);\n}\n\nfunction setLanguage(language) {\n\tcallHook('setLanguage', language);\n}\n\nfunction showWidget() {\n\tcallHook('showWidget');\n}\n\nfunction hideWidget() {\n\tcallHook('hideWidget');\n}\n\nfunction maximizeWidget() {\n\tcallHook('maximizeWidget');\n}\n\nfunction minimizeWidget() {\n\tcallHook('minimizeWidget');\n}\n\nfunction initialize(params) {\n\tfor (const method in params) {\n\t\tif (!params.hasOwnProperty(method)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tswitch (method) {\n\t\t\tcase 'customField':\n\t\t\t\tconst { key, value, overwrite } = params[method];\n\t\t\t\tsetCustomField(key, value, overwrite);\n\t\t\t\tcontinue;\n\t\t\tcase 'setCustomFields':\n\t\t\t\tif (!Array.isArray(params[method])) {\n\t\t\t\t\tconsole.log('Error: Invalid parameters. Value must be an array of objects');\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tparams[method].forEach((data) => {\n\t\t\t\t\tconst { key, value, overwrite } = data;\n\t\t\t\t\tsetCustomField(key, value, overwrite);\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\tcase 'theme':\n\t\t\t\tsetTheme(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'department':\n\t\t\t\tsetDepartment(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'guestToken':\n\t\t\t\tsetGuestToken(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'guestName':\n\t\t\t\tsetGuestName(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'guestEmail':\n\t\t\t\tsetGuestEmail(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'registerGuest':\n\t\t\t\tregisterGuest(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'language':\n\t\t\t\tsetLanguage(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'agent':\n\t\t\t\tsetAgent(params[method]);\n\t\t\t\tcontinue;\n\t\t\tdefault:\n\t\t\t\tcontinue;\n\t\t}\n\t}\n}\n\nconst currentPage = {\n\thref: null,\n\ttitle: null,\n};\n\nconst attachMessageListener = () => {\n\twindow.addEventListener('message', (msg) => {\n\t\tif (typeof msg.data === 'object' && msg.data.src !== undefined && msg.data.src === 'rocketchat') {\n\t\t\tif (api[msg.data.fn] !== undefined && typeof api[msg.data.fn] === 'function') {\n\t\t\t\tconst args = [].concat(msg.data.args || []);\n\t\t\t\tlog(`api.${ msg.data.fn }`, ...args);\n\t\t\t\tapi[msg.data.fn].apply(null, args);\n\t\t\t}\n\t\t}\n\t}, false);\n};\n\nconst trackNavigation = () => {\n\tsetInterval(() => {\n\t\tif (document.location.href !== currentPage.href) {\n\t\t\tpageVisited('url');\n\t\t\tcurrentPage.href = document.location.href;\n\t\t}\n\n\t\tif (document.title !== currentPage.title) {\n\t\t\tpageVisited('title');\n\t\t\tcurrentPage.title = document.title;\n\t\t}\n\t}, 800);\n};\n\nconst init = (url) => {\n\tif (!url) {\n\t\treturn;\n\t}\n\n\tconfig.url = url;\n\n\tcreateWidget(url);\n\tattachMessageListener();\n\ttrackNavigation();\n};\n\nif (typeof window.initRocket !== 'undefined') {\n\tconsole.warn('initRocket is now deprecated. Please update the livechat code.');\n\tinit(window.initRocket[0]);\n}\n\nif (typeof window.RocketChat.url !== 'undefined') {\n\tinit(window.RocketChat.url);\n}\n\nconst queue = window.RocketChat._;\n\nwindow.RocketChat._.push = function(c) {\n\tc.call(window.RocketChat.livechat);\n};\nwindow.RocketChat = window.RocketChat._.push;\n\n// exports\nwindow.RocketChat.livechat = {\n\t// methods\n\tpageVisited,\n\tsetCustomField,\n\tinitialize,\n\tsetTheme,\n\tsetDepartment,\n\tclearDepartment,\n\tsetGuestToken,\n\tsetGuestName,\n\tsetGuestEmail,\n\tsetAgent,\n\tregisterGuest,\n\tsetLanguage,\n\tshowWidget,\n\thideWidget,\n\tmaximizeWidget,\n\tminimizeWidget,\n\n\t// callbacks\n\tonChatMaximized(fn) { registerCallback('chat-maximized', fn); },\n\tonChatMinimized(fn) { registerCallback('chat-minimized', fn); },\n\tonChatStarted(fn) { registerCallback('chat-started', fn); },\n\tonChatEnded(fn) { registerCallback('chat-ended', fn); },\n\tonPrechatFormSubmit(fn) { registerCallback('pre-chat-form-submit', fn); },\n\tonOfflineFormSubmit(fn) { registerCallback('offline-form-submit', fn); },\n\tonWidgetShown(fn) { registerCallback('show-widget', fn); },\n\tonWidgetHidden(fn) { registerCallback('hide-widget', fn); },\n\tonAssignAgent(fn) { registerCallback('assign-agent', fn); },\n\tonAgentStatusChange(fn) { registerCallback('agent-status-change', fn); },\n\tonQueuePositionChange(fn) { registerCallback('queue-position-change', fn); },\n\tonServiceOffline(fn) { registerCallback('no-agent-online', fn); },\n};\n\n// proccess queue\nqueue.forEach((c) => {\n\tc.call(window.RocketChat.livechat);\n});\n","export type EventType = string | symbol;\n\n// An event handler can take an optional event argument\n// and should not return a value\nexport type Handler<T = any> = (event?: T) => void;\nexport type WildcardHandler = (type: EventType, event?: any) => void;\n\n// An array of all currently registered event handlers for a type\nexport type EventHandlerList = Array<Handler>;\nexport type WildCardEventHandlerList = Array<WildcardHandler>;\n\n// A map of event types and their corresponding event handlers.\nexport type EventHandlerMap = Map<EventType, EventHandlerList | WildCardEventHandlerList>;\n\nexport interface Emitter {\n\tall: EventHandlerMap;\n\n\ton<T = any>(type: EventType, handler: Handler<T>): void;\n\ton(type: '*', handler: WildcardHandler): void;\n\n\toff<T = any>(type: EventType, handler: Handler<T>): void;\n\toff(type: '*', handler: WildcardHandler): void;\n\n\temit<T = any>(type: EventType, event?: T): void;\n\temit(type: '*', event?: any): void;\n}\n\n/**\n * Mitt: Tiny (~200b) functional event emitter / pubsub.\n * @name mitt\n * @returns {Mitt}\n */\nexport default function mitt(all?: EventHandlerMap): Emitter {\n\tall = all || new Map();\n\n\treturn {\n\n\t\t/**\n\t\t * A Map of event names to registered handler functions.\n\t\t */\n\t\tall,\n\n\t\t/**\n\t\t * Register an event handler for the given type.\n\t\t * @param {string|symbol} type Type of event to listen for, or `\"*\"` for all events\n\t\t * @param {Function} handler Function to call in response to given event\n\t\t * @memberOf mitt\n\t\t */\n\t\ton<T = any>(type: EventType, handler: Handler<T>) {\n\t\t\tconst handlers = all.get(type);\n\t\t\tconst added = handlers && handlers.push(handler);\n\t\t\tif (!added) {\n\t\t\t\tall.set(type, [handler]);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Remove an event handler for the given type.\n\t\t * @param {string|symbol} type Type of event to unregister `handler` from, or `\"*\"`\n\t\t * @param {Function} handler Handler function to remove\n\t\t * @memberOf mitt\n\t\t */\n\t\toff<T = any>(type: EventType, handler: Handler<T>) {\n\t\t\tconst handlers = all.get(type);\n\t\t\tif (handlers) {\n\t\t\t\thandlers.splice(handlers.indexOf(handler) >>> 0, 1);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Invoke all handlers for the given type.\n\t\t * If present, `\"*\"` handlers are invoked after type-matched handlers.\n\t\t *\n\t\t * Note: Manually firing \"*\" handlers is not supported.\n\t\t *\n\t\t * @param {string|symbol} type The event type to invoke\n\t\t * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler\n\t\t * @memberOf mitt\n\t\t */\n\t\temit<T = any>(type: EventType, evt: T) {\n\t\t\t((all.get(type) || []) as EventHandlerList).slice().map((handler) => { handler(evt); });\n\t\t\t((all.get('*') || []) as WildCardEventHandlerList).slice().map((handler) => { handler(type, evt); });\n\t\t}\n\t};\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/widget.js","webpack:///../src/index.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","log","window","RocketChat","_","widget","iframe","scrollPosition","widget_height","all","config","hookQueue","ready","smallScreen","validCallbacks","callbacks","Map","on","type","handler","handlers","push","set","off","splice","indexOf","emit","evt","slice","map","registerCallback","eventName","fn","emitCallback","data","callHook","action","params","src","args","contentWindow","postMessage","updateWidgetStyle","isOpened","document","documentElement","scrollTop","body","classList","add","remove","style","left","height","width","WIDGET_MARGIN","openWidget","dataset","state","focus","closeWidget","api","popup","length","forEach","hookParams","apply","this","minimizeWindow","restoreWindow","closed","close","openPopout","open","url","lastIndexOf","resizeWidget","removeWidget","removeChild","callback","showWidget","display","hideWidget","resetDocumentStyle","setFullScreenDocumentMobile","pageVisited","change","location","JSON","parse","stringify","title","setCustomField","overwrite","setTheme","theme","setDepartment","department","setBusinessUnit","businessUnit","setGuestToken","token","setGuestName","setGuestEmail","email","registerGuest","guest","setAgent","agent","setLanguage","language","currentPage","href","init","createElement","className","position","maxHeight","bottom","right","zIndex","container","id","allowTransparency","border","backgroundColor","appendChild","handleMediaQueryTest","matches","mediaQueryList","matchMedia","addListener","createWidget","addEventListener","msg","undefined","concat","setInterval","initRocket","console","warn","queue","livechat","initialize","method","Array","isArray","clearDepartment","maximizeWidget","minimizeWidget","clearBusinessUnit","onChatMaximized","onChatMinimized","onChatStarted","onChatEnded","onPrechatFormSubmit","onOfflineFormSubmit","onWidgetShown","onWidgetHidden","onAssignAgent","onAgentStatusChange","onQueuePositionChange","onServiceOffline"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,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jC4B,SAiCXlI,GAAMF,EAAiB,kBAAmBE,KAI5D6G,EAAM7E,SAAQ,SAAC1F,GACdA,EAAEF,KAAK8B,OAAOC,WAAW2I","file":"rocketchat-livechat.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"livechat/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import mitt from 'mitt';\n\n\nconst log = process.env.NODE_ENV === 'development'\n\t? (...args) => window.console.log('%cwidget%c', 'color: red', 'color: initial', ...args)\n\t: () => {};\n\n\nconst WIDGET_OPEN_WIDTH = 365;\nconst WIDGET_OPEN_HEIGHT = 525;\nconst WIDGET_MINIMIZED_WIDTH = 54;\nconst WIDGET_MINIMIZED_HEIGHT = 54;\nconst WIDGET_MARGIN = 16;\n\n\nwindow.RocketChat = window.RocketChat || { _: [] };\nconst config = {};\nlet widget;\nlet iframe;\nlet hookQueue = [];\nlet ready = false;\nlet smallScreen = false;\nlet scrollPosition;\nlet widget_height;\n\nexport const validCallbacks = [\n\t'chat-maximized',\n\t'chat-minimized',\n\t'chat-started',\n\t'chat-ended',\n\t'pre-chat-form-submit',\n\t'offline-form-submit',\n\t'show-widget',\n\t'hide-widget',\n\t'assign-agent',\n\t'agent-status-change',\n\t'queue-position-change',\n\t'no-agent-online',\n];\n\nconst callbacks = mitt();\n\nfunction registerCallback(eventName, fn) {\n\tif (validCallbacks.indexOf(eventName) === -1) {\n\t\treturn false;\n\t}\n\n\treturn callbacks.on(eventName, fn);\n}\n\nfunction emitCallback(eventName, data) {\n\tif (typeof data !== 'undefined') {\n\t\tcallbacks.emit(eventName, data);\n\t} else {\n\t\tcallbacks.emit(eventName);\n\t}\n}\n\n// hooks\nfunction callHook(action, params) {\n\tif (!ready) {\n\t\treturn hookQueue.push([action, params]);\n\t}\n\tconst data = {\n\t\tsrc: 'rocketchat',\n\t\tfn: action,\n\t\targs: params,\n\t};\n\tiframe.contentWindow.postMessage(data, '*');\n}\n\nconst updateWidgetStyle = (isOpened) => {\n\tif (smallScreen && isOpened) {\n\t\tscrollPosition = document.documentElement.scrollTop;\n\t\tdocument.body.classList.add('rc-livechat-mobile-full-screen');\n\t} else {\n\t\tdocument.body.classList.remove('rc-livechat-mobile-full-screen');\n\t\tif (smallScreen) {\n\t\t\tdocument.documentElement.scrollTop = scrollPosition;\n\t\t}\n\t}\n\n\tif (isOpened) {\n\t\twidget.style.left = smallScreen ? '0' : 'auto';\n\n\t\t/**\n\t\t * If we use widget.style.height = smallScreen ? '100vh' : ...\n\t\t * In above case some browser's viewport height is not rendered correctly\n\t\t * so, as 100vh will resolve to 100% of the current viewport height,\n\t\t * so fixed it to 100% avoiding problem for some browsers. Similar resolution\n\t\t * for widget.style.width\n\t\t */\n\n\t\twidget.style.height = smallScreen ? '100%' : `${ WIDGET_MARGIN + widget_height + WIDGET_MARGIN + WIDGET_MINIMIZED_HEIGHT }px`;\n\t\twidget.style.width = smallScreen ? '100%' : `${ WIDGET_MARGIN + WIDGET_OPEN_WIDTH + WIDGET_MARGIN }px`;\n\t} else {\n\t\twidget.style.left = 'auto';\n\t\twidget.style.width = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_WIDTH + WIDGET_MARGIN }px`;\n\t\twidget.style.height = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_HEIGHT + WIDGET_MARGIN }px`;\n\t}\n};\n\nconst createWidget = (url) => {\n\twidget = document.createElement('div');\n\twidget.className = 'rocketchat-widget';\n\twidget.style.position = 'fixed';\n\twidget.style.width = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_WIDTH + WIDGET_MARGIN }px`;\n\twidget.style.height = `${ WIDGET_MARGIN + WIDGET_MINIMIZED_HEIGHT + WIDGET_MARGIN }px`;\n\twidget.style.maxHeight = '100vh';\n\twidget.style.bottom = '0';\n\twidget.style.right = '0';\n\twidget.style.zIndex = '12345';\n\twidget.dataset.state = 'closed';\n\n\tconst container = document.createElement('div');\n\tcontainer.className = 'rocketchat-container';\n\tcontainer.style.width = '100%';\n\tcontainer.style.height = '100%';\n\n\tiframe = document.createElement('iframe');\n\tiframe.id = 'rocketchat-iframe';\n\tiframe.allowTransparency = 'true';\n\tiframe.src = url;\n\tiframe.style.width = '100%';\n\tiframe.style.height = '100%';\n\tiframe.style.border = 'none';\n\tiframe.style.backgroundColor = 'transparent';\n\n\tcontainer.appendChild(iframe);\n\twidget.appendChild(container);\n\tdocument.body.appendChild(widget);\n\n\tconst handleMediaQueryTest = ({ matches }) => {\n\t\tif (!widget) {\n\t\t\treturn;\n\t\t}\n\n\t\tsmallScreen = matches;\n\t\tupdateWidgetStyle(widget.dataset.state === 'opened');\n\t\tcallHook('setExpanded', smallScreen);\n\t};\n\n\tconst mediaQueryList = window.matchMedia('screen and (max-device-width: 480px)');\n\tmediaQueryList.addListener(handleMediaQueryTest);\n\thandleMediaQueryTest(mediaQueryList);\n};\n\nconst openWidget = () => {\n\tif (widget.dataset.state === 'opened') {\n\t\treturn;\n\t}\n\n\twidget_height = WIDGET_OPEN_HEIGHT;\n\tupdateWidgetStyle(true);\n\twidget.dataset.state = 'opened';\n\tiframe.focus();\n\temitCallback('chat-maximized');\n};\n\nconst resizeWidget = (height) => {\n\twidget_height = height;\n\tupdateWidgetStyle(true);\n\twidget.dataset.state = 'triggered';\n};\n\nfunction closeWidget() {\n\tif (widget.dataset.state === 'closed') {\n\t\treturn;\n\t}\n\n\tupdateWidgetStyle(false);\n\twidget.dataset.state = 'closed';\n\temitCallback('chat-minimized');\n}\n\nconst api = {\n\tpopup: null,\n\n\tready() {\n\t\tready = true;\n\t\tif (hookQueue.length > 0) {\n\t\t\thookQueue.forEach(function(hookParams) {\n\t\t\t\tcallHook.apply(this, hookParams);\n\t\t\t});\n\t\t\thookQueue = [];\n\t\t}\n\t},\n\n\tminimizeWindow() {\n\t\tcloseWidget();\n\t},\n\n\trestoreWindow() {\n\t\tif (api.popup && api.popup.closed !== true) {\n\t\t\tapi.popup.close();\n\t\t\tapi.popup = null;\n\t\t}\n\t\topenWidget();\n\t},\n\n\topenPopout() {\n\t\tcloseWidget();\n\t\tapi.popup = window.open(`${ config.url }${ config.url.lastIndexOf('?') > -1 ? '&' : '?' }mode=popout`,\n\t\t\t'livechat-popout', `width=${ WIDGET_OPEN_WIDTH }, height=${ widget_height }, toolbars=no`);\n\t\tapi.popup.focus();\n\t},\n\n\topenWidget() {\n\t\topenWidget();\n\t},\n\n\tresizeWidget(height) {\n\t\tresizeWidget(height);\n\t},\n\n\tremoveWidget() {\n\t\tdocument.body.removeChild(widget);\n\t},\n\n\tcallback(eventName, data) {\n\t\temitCallback(eventName, data);\n\t},\n\n\tshowWidget() {\n\t\tiframe.style.display = 'initial';\n\t\temitCallback('show-widget');\n\t},\n\n\thideWidget() {\n\t\tiframe.style.display = 'none';\n\t\temitCallback('hide-widget');\n\t},\n\n\tresetDocumentStyle() {\n\t\tdocument.body.classList.remove('rc-livechat-mobile-full-screen');\n\t},\n\n\tsetFullScreenDocumentMobile() {\n\t\tsmallScreen && document.body.classList.add('rc-livechat-mobile-full-screen');\n\t},\n};\n\nfunction pageVisited(change) {\n\tcallHook('pageVisited', {\n\t\tchange,\n\t\tlocation: JSON.parse(JSON.stringify(document.location)),\n\t\ttitle: document.title,\n\t});\n}\n\nfunction setCustomField(key, value, overwrite) {\n\tif (typeof overwrite === 'undefined') {\n\t\toverwrite = true;\n\t}\n\tcallHook('setCustomField', [key, value, overwrite]);\n}\n\nfunction setTheme(theme) {\n\tcallHook('setTheme', theme);\n}\n\nfunction setDepartment(department) {\n\tcallHook('setDepartment', department);\n}\n\nfunction setBusinessUnit(businessUnit) {\n\tcallHook('setBusinessUnit', businessUnit);\n}\n\nfunction clearBusinessUnit() {\n\tcallHook('clearBusinessUnit');\n}\n\nfunction setGuestToken(token) {\n\tcallHook('setGuestToken', token);\n}\n\nfunction setGuestName(name) {\n\tcallHook('setGuestName', name);\n}\n\nfunction setGuestEmail(email) {\n\tcallHook('setGuestEmail', email);\n}\n\nfunction registerGuest(guest) {\n\tcallHook('registerGuest', guest);\n}\n\nfunction clearDepartment() {\n\tcallHook('clearDepartment');\n}\n\nfunction setAgent(agent) {\n\tcallHook('setAgent', agent);\n}\n\nfunction setLanguage(language) {\n\tcallHook('setLanguage', language);\n}\n\nfunction showWidget() {\n\tcallHook('showWidget');\n}\n\nfunction hideWidget() {\n\tcallHook('hideWidget');\n}\n\nfunction maximizeWidget() {\n\tcallHook('maximizeWidget');\n}\n\nfunction minimizeWidget() {\n\tcallHook('minimizeWidget');\n}\n\nfunction initialize(params) {\n\tfor (const method in params) {\n\t\tif (!params.hasOwnProperty(method)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tswitch (method) {\n\t\t\tcase 'customField':\n\t\t\t\tconst { key, value, overwrite } = params[method];\n\t\t\t\tsetCustomField(key, value, overwrite);\n\t\t\t\tcontinue;\n\t\t\tcase 'setCustomFields':\n\t\t\t\tif (!Array.isArray(params[method])) {\n\t\t\t\t\tconsole.log('Error: Invalid parameters. Value must be an array of objects');\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tparams[method].forEach((data) => {\n\t\t\t\t\tconst { key, value, overwrite } = data;\n\t\t\t\t\tsetCustomField(key, value, overwrite);\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\tcase 'theme':\n\t\t\t\tsetTheme(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'department':\n\t\t\t\tsetDepartment(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'businessUnit': {\n\t\t\t\tsetBusinessUnit(params[method]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcase 'guestToken':\n\t\t\t\tsetGuestToken(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'guestName':\n\t\t\t\tsetGuestName(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'guestEmail':\n\t\t\t\tsetGuestEmail(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'registerGuest':\n\t\t\t\tregisterGuest(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'language':\n\t\t\t\tsetLanguage(params[method]);\n\t\t\t\tcontinue;\n\t\t\tcase 'agent':\n\t\t\t\tsetAgent(params[method]);\n\t\t\t\tcontinue;\n\t\t\tdefault:\n\t\t\t\tcontinue;\n\t\t}\n\t}\n}\n\nconst currentPage = {\n\thref: null,\n\ttitle: null,\n};\n\nconst attachMessageListener = () => {\n\twindow.addEventListener('message', (msg) => {\n\t\tif (typeof msg.data === 'object' && msg.data.src !== undefined && msg.data.src === 'rocketchat') {\n\t\t\tif (api[msg.data.fn] !== undefined && typeof api[msg.data.fn] === 'function') {\n\t\t\t\tconst args = [].concat(msg.data.args || []);\n\t\t\t\tlog(`api.${ msg.data.fn }`, ...args);\n\t\t\t\tapi[msg.data.fn].apply(null, args);\n\t\t\t}\n\t\t}\n\t}, false);\n};\n\nconst trackNavigation = () => {\n\tsetInterval(() => {\n\t\tif (document.location.href !== currentPage.href) {\n\t\t\tpageVisited('url');\n\t\t\tcurrentPage.href = document.location.href;\n\t\t}\n\n\t\tif (document.title !== currentPage.title) {\n\t\t\tpageVisited('title');\n\t\t\tcurrentPage.title = document.title;\n\t\t}\n\t}, 800);\n};\n\nconst init = (url) => {\n\tif (!url) {\n\t\treturn;\n\t}\n\n\tconfig.url = url;\n\n\tcreateWidget(url);\n\tattachMessageListener();\n\ttrackNavigation();\n};\n\nif (typeof window.initRocket !== 'undefined') {\n\tconsole.warn('initRocket is now deprecated. Please update the livechat code.');\n\tinit(window.initRocket[0]);\n}\n\nif (typeof window.RocketChat.url !== 'undefined') {\n\tinit(window.RocketChat.url);\n}\n\nconst queue = window.RocketChat._;\n\nwindow.RocketChat._.push = function(c) {\n\tc.call(window.RocketChat.livechat);\n};\nwindow.RocketChat = window.RocketChat._.push;\n\n// exports\nwindow.RocketChat.livechat = {\n\t// methods\n\tpageVisited,\n\tsetCustomField,\n\tinitialize,\n\tsetTheme,\n\tsetDepartment,\n\tclearDepartment,\n\tsetGuestToken,\n\tsetGuestName,\n\tsetGuestEmail,\n\tsetAgent,\n\tregisterGuest,\n\tsetLanguage,\n\tshowWidget,\n\thideWidget,\n\tmaximizeWidget,\n\tminimizeWidget,\n\tsetBusinessUnit,\n\tclearBusinessUnit,\n\n\t// callbacks\n\tonChatMaximized(fn) { registerCallback('chat-maximized', fn); },\n\tonChatMinimized(fn) { registerCallback('chat-minimized', fn); },\n\tonChatStarted(fn) { registerCallback('chat-started', fn); },\n\tonChatEnded(fn) { registerCallback('chat-ended', fn); },\n\tonPrechatFormSubmit(fn) { registerCallback('pre-chat-form-submit', fn); },\n\tonOfflineFormSubmit(fn) { registerCallback('offline-form-submit', fn); },\n\tonWidgetShown(fn) { registerCallback('show-widget', fn); },\n\tonWidgetHidden(fn) { registerCallback('hide-widget', fn); },\n\tonAssignAgent(fn) { registerCallback('assign-agent', fn); },\n\tonAgentStatusChange(fn) { registerCallback('agent-status-change', fn); },\n\tonQueuePositionChange(fn) { registerCallback('queue-position-change', fn); },\n\tonServiceOffline(fn) { registerCallback('no-agent-online', fn); },\n};\n\n// proccess queue\nqueue.forEach((c) => {\n\tc.call(window.RocketChat.livechat);\n});\n","export type EventType = string | symbol;\n\n// An event handler can take an optional event argument\n// and should not return a value\nexport type Handler<T = any> = (event?: T) => void;\nexport type WildcardHandler = (type: EventType, event?: any) => void;\n\n// An array of all currently registered event handlers for a type\nexport type EventHandlerList = Array<Handler>;\nexport type WildCardEventHandlerList = Array<WildcardHandler>;\n\n// A map of event types and their corresponding event handlers.\nexport type EventHandlerMap = Map<EventType, EventHandlerList | WildCardEventHandlerList>;\n\nexport interface Emitter {\n\tall: EventHandlerMap;\n\n\ton<T = any>(type: EventType, handler: Handler<T>): void;\n\ton(type: '*', handler: WildcardHandler): void;\n\n\toff<T = any>(type: EventType, handler: Handler<T>): void;\n\toff(type: '*', handler: WildcardHandler): void;\n\n\temit<T = any>(type: EventType, event?: T): void;\n\temit(type: '*', event?: any): void;\n}\n\n/**\n * Mitt: Tiny (~200b) functional event emitter / pubsub.\n * @name mitt\n * @returns {Mitt}\n */\nexport default function mitt(all?: EventHandlerMap): Emitter {\n\tall = all || new Map();\n\n\treturn {\n\n\t\t/**\n\t\t * A Map of event names to registered handler functions.\n\t\t */\n\t\tall,\n\n\t\t/**\n\t\t * Register an event handler for the given type.\n\t\t * @param {string|symbol} type Type of event to listen for, or `\"*\"` for all events\n\t\t * @param {Function} handler Function to call in response to given event\n\t\t * @memberOf mitt\n\t\t */\n\t\ton<T = any>(type: EventType, handler: Handler<T>) {\n\t\t\tconst handlers = all.get(type);\n\t\t\tconst added = handlers && handlers.push(handler);\n\t\t\tif (!added) {\n\t\t\t\tall.set(type, [handler]);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Remove an event handler for the given type.\n\t\t * @param {string|symbol} type Type of event to unregister `handler` from, or `\"*\"`\n\t\t * @param {Function} handler Handler function to remove\n\t\t * @memberOf mitt\n\t\t */\n\t\toff<T = any>(type: EventType, handler: Handler<T>) {\n\t\t\tconst handlers = all.get(type);\n\t\t\tif (handlers) {\n\t\t\t\thandlers.splice(handlers.indexOf(handler) >>> 0, 1);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Invoke all handlers for the given type.\n\t\t * If present, `\"*\"` handlers are invoked after type-matched handlers.\n\t\t *\n\t\t * Note: Manually firing \"*\" handlers is not supported.\n\t\t *\n\t\t * @param {string|symbol} type The event type to invoke\n\t\t * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler\n\t\t * @memberOf mitt\n\t\t */\n\t\temit<T = any>(type: EventType, evt: T) {\n\t\t\t((all.get(type) || []) as EventHandlerList).slice().map((handler) => { handler(evt); });\n\t\t\t((all.get('*') || []) as WildCardEventHandlerList).slice().map((handler) => { handler(type, evt); });\n\t\t}\n\t};\n}\n"],"sourceRoot":""}
|