|  | @@ -350,12 +350,23 @@
 | 
											
												
													
														|  |            </div>
 |  |            </div>
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  |        </q-footer>
 |  |        </q-footer>
 | 
											
												
													
														|  | 
 |  | +      <!-- Messenger Chat Plugin Code -->
 | 
											
												
													
														|  | 
 |  | +      <div id="fb-root"></div>
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      <!-- Your Chat Plugin code -->
 | 
											
												
													
														|  | 
 |  | +      <div id="fb-customer-chat" class="fb-customerchat"></div>
 | 
											
												
													
														|  |      </q-page-container>
 |  |      </q-page-container>
 | 
											
												
													
														|  |    </q-layout>
 |  |    </q-layout>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  | -import { defineComponent, onMounted, ref, getCurrentInstance } from "vue";
 |  | 
 | 
											
												
													
														|  | 
 |  | +import {
 | 
											
												
													
														|  | 
 |  | +  defineComponent,
 | 
											
												
													
														|  | 
 |  | +  onMounted,
 | 
											
												
													
														|  | 
 |  | +  onBeforeMount,
 | 
											
												
													
														|  | 
 |  | +  ref,
 | 
											
												
													
														|  | 
 |  | +  getCurrentInstance,
 | 
											
												
													
														|  | 
 |  | +} from "vue";
 | 
											
												
													
														|  |  import { api } from "boot/axios";
 |  |  import { api } from "boot/axios";
 | 
											
												
													
														|  |  import { useI18n } from "vue-i18n";
 |  |  import { useI18n } from "vue-i18n";
 | 
											
												
													
														|  |  import { useQuasar } from "quasar";
 |  |  import { useQuasar } from "quasar";
 | 
											
										
											
												
													
														|  | @@ -422,8 +433,36 @@ export default defineComponent({
 | 
											
												
													
														|  |            location.reload();
 |  |            location.reload();
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | 
 |  | +    function setupChat() {
 | 
											
												
													
														|  | 
 |  | +      var chatbox = document.getElementById("fb-customer-chat");
 | 
											
												
													
														|  | 
 |  | +      chatbox.setAttribute("page_id", "1534271790187013");
 | 
											
												
													
														|  | 
 |  | +      chatbox.setAttribute("attribution", "biz_inbox");
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +    function initFacebookSDK() {
 | 
											
												
													
														|  | 
 |  | +      window.fbAsyncInit = function () {
 | 
											
												
													
														|  | 
 |  | +        FB.init({
 | 
											
												
													
														|  | 
 |  | +          xfbml: true,
 | 
											
												
													
														|  | 
 |  | +          version: "v17.0",
 | 
											
												
													
														|  | 
 |  | +        });
 | 
											
												
													
														|  | 
 |  | +      };
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      (function (d, s, id) {
 | 
											
												
													
														|  | 
 |  | +        var js,
 | 
											
												
													
														|  | 
 |  | +          fjs = d.getElementsByTagName(s)[0];
 | 
											
												
													
														|  | 
 |  | +        if (d.getElementById(id)) return;
 | 
											
												
													
														|  | 
 |  | +        js = d.createElement(s);
 | 
											
												
													
														|  | 
 |  | +        js.id = id;
 | 
											
												
													
														|  | 
 |  | +        js.src = "https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js";
 | 
											
												
													
														|  | 
 |  | +        fjs.parentNode.insertBefore(js, fjs);
 | 
											
												
													
														|  | 
 |  | +      })(document, "script", "facebook-jssdk");
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      onMounted(() => {
 |  |      onMounted(() => {
 | 
											
												
													
														|  |        whoami();
 |  |        whoami();
 | 
											
												
													
														|  | 
 |  | +      setupChat();
 | 
											
												
													
														|  | 
 |  | +    });
 | 
											
												
													
														|  | 
 |  | +    onBeforeMount(() => {
 | 
											
												
													
														|  | 
 |  | +      initFacebookSDK();
 | 
											
												
													
														|  |      });
 |  |      });
 | 
											
												
													
														|  |      return {
 |  |      return {
 | 
											
												
													
														|  |        setLanguage,
 |  |        setLanguage,
 |