{# ========== EMPLOYEE SCHEDULE PANEL (Right Sidebar) ========== #} {# Show for supported scheduling providers (BuyerKiosk native or WhenIWork) #} {% if store.schedulingProvider in ['buyerkiosk', 'wheniwork'] or store.wiwEnable %} {% include 'workspace/partials/schedule-panel/schedule-panel.html' %} {% include 'workspace/partials/schedule-panel/quick-action-modal.html' %} {% include 'workspace/partials/schedule-panel/schedule-modal.html' %} {% endif %} {# ========== CLOSE LAYOUT WRAPPERS ========== #} {# /.workspace-body #} {# /.workspace-layout #} {# Modal container for dynamic modals #} {# ========== JAVASCRIPT LIBRARIES ========== #} {# Core Libraries (jQuery, Bootstrap, Popper) are loaded in workspace-head.html via vendor bundle #} {# Real-time Communication #} {# UI Libraries #} {# Fabric.js for Whiteboard Canvas #} {# Date/Time Libraries #} {# DataTables (for print log and completed buys) #} {# Form Libraries #} {# Utilities #} {# Templating #} {# TOAST UI Editor for Support Portal (Suggest Edit feature) #} {# KaTeX for LaTeX math rendering in support articles #} {# ========== WORKSPACE MODULES ========== #} {# Common utilities (loaded first) #} {# Shared modules #} {# Queue modules #} {# Print Log module #} {# Completed Buys module #} {# Workbook modules - loaded by workspace.html and workbook.html with cache busting #} {# Event Awareness - Shows active promotional events #} {# ========== EMPLOYEE SCHEDULE PANEL MODULES ========== #} {# Only loaded when panel element exists (WhenIWork enabled) #} {# Note: workbook/ably-sync.js is loaded by the parent template (workspace.html or workbook.html) #} {# to avoid duplicate class declaration errors. Only schedule-ably-sync.js is loaded here. #} {# Schedule Panel Ably Sync - Bridges workbook events to schedule panel #} {# ========== TWO-WAY SMS CHAT MODULES ========== #} {# SMS Error Mapper - shared utility for friendly error labels (loaded before chat modules) #} {% if embedded_chat_enabled|default(false) %} {# Embedded Chat Panel mode (Spec 030) - new panel components #} {% else %} {# Legacy Chat Overlay mode - original overlay components #} {% endif %} {# Shared chat modules (used by both modes) #} {# ========== FIVESTARS LOYALTY MODULES ========== #} {% if fiveStarsEnabled|default(false) %} {% endif %} {# Main workspace entry point #} {# ========== VITE BUNDLED SCRIPTS ========== #} {# Scripts load at end of body to ensure legacy scripts run first #} {{ vite_scripts('hello') }} {{ vite_scripts('syncfusion') }} {# ========== TWO-WAY SMS CHAT INITIALIZATION ========== #} {% if embedded_chat_enabled|default(false) %} {# Embedded Chat Panel (Spec 030) - HTML structure + initialization #} {% include 'workspace/partials/chat/chat-panel.html' %} {% include 'workspace/partials/chat/chat-panel-init.html' %} {% else %} {# Legacy Chat Overlay - Handlebars templates + overlay initialization #} {% include 'workspace/partials/chat-panel-content.html' %} {% endif %} {# ========== WORKSPACE SIDEBAR & NAVIGATION ========== #} {# ========== REAMAZE CHAT WIDGET ========== #}