Consumer Support (PC-cillin)
スタンダードサポートサービス
契約確認/AC発行
プレミアムサポートサービス
プレミアムサポートセンター
お問い合わせフォーム
Please
log in to initiate the conversation.
Trend Companion(Preview)
×
Welcome to the future of Business Support! I'm Trend Companion, your
AI assistant ready to streamline your experience.
Log in for your personalized support!
Chat with Trend Companion for quick answers, or submit a case for
detailed troubleshooting.
Log in to chat with Trend Companion now
`;
return cardMarkup;
}
const generateLocationMarkup = (location) => {
const {
Enterprise_DaysofWeek,
Enterprise_Exc_DaysofWeek,
Enterprise_Time,
Enterprise_Phone,
SmallMediumBusiness_DaysofWeek,
SmallMediumBusiness_Exc_DaysofWeek,
SmallMediumBusiness_Time,
SmallMediumBusiness_Phone,
Tippingpoint_DaysofWeek,
Tippingpoint_Exc_DaysofWeek,
Tippingpoint_Time,
Tippingpoint_Phone,
Business_Sale_DaysofWeek,
Business_Sale_Exc_DaysofWeek,
Business_Sale_Time,
Business_Sale_Phone,
For_Partners_DaysofWeek,
For_Partners_Exc_DaysofWeek,
For_Partners_Time,
For_Partners_Phone,
SMB_US_DaysofWeek,
SMB_US_Exc_DaysofWeek,
SMB_US_Time,
SMB_US_Phone,
Customer_Support_PC_DaysofWeek,
Customer_Support_PC_Exc_DaysofWeek,
Customer_Support_PC_Time,
Customer_Support_PC_Phone,
} = location?.details;
let markup = '';
let cardInfo = {
title: '',
daysOfWeek: '',
excDaysOfWeek: '',
time: '',
phone: ''
};
if (hasValidValue(Enterprise_Phone)) {
cardInfo = {
...cardInfo,
title: 'Enterprise',
daysOfWeek: Enterprise_DaysofWeek,
excDaysOfWeek: Enterprise_Exc_DaysofWeek,
time: Enterprise_Time,
phone: Enterprise_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
if (hasValidValue(SmallMediumBusiness_Phone)) {
cardInfo = {
...cardInfo,
title: 'Small & Medium Business',
daysOfWeek: SmallMediumBusiness_DaysofWeek,
excDaysOfWeek: SmallMediumBusiness_Exc_DaysofWeek,
time: SmallMediumBusiness_Time,
phone: SmallMediumBusiness_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
if (hasValidValue(SMB_US_Phone)) {
cardInfo = {
...cardInfo,
title: 'SMB Customer Service and Sales',
daysOfWeek: SMB_US_DaysofWeek,
excDaysOfWeek: SMB_US_Exc_DaysofWeek,
time: SMB_US_Time,
phone: SMB_US_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
if (hasValidValue(Business_Sale_Phone)) {
cardInfo = {
...cardInfo,
title: 'Business Sales',
daysOfWeek: Business_Sale_DaysofWeek,
excDaysOfWeek: Business_Sale_Exc_DaysofWeek,
time: Business_Sale_Time,
phone: Business_Sale_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
if (hasValidValue(For_Partners_Phone)) {
cardInfo = {
...cardInfo,
title: 'For partner',
daysOfWeek: For_Partners_DaysofWeek,
excDaysOfWeek: For_Partners_Exc_DaysofWeek,
time: For_Partners_Time,
phone: For_Partners_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
if (hasValidValue(Customer_Support_PC_Phone)) {
cardInfo = {
...cardInfo,
title: 'Consumer Support (PC-cillin)',
daysOfWeek: Customer_Support_PC_DaysofWeek,
excDaysOfWeek: Customer_Support_PC_Exc_DaysofWeek,
time: Customer_Support_PC_Time,
phone: Customer_Support_PC_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
if (hasValidValue(Tippingpoint_Phone)) {
cardInfo = {
...cardInfo,
title: 'TippingPoint',
daysOfWeek: Tippingpoint_DaysofWeek,
excDaysOfWeek: Tippingpoint_Exc_DaysofWeek,
time: Tippingpoint_Time,
phone: Tippingpoint_Phone
}
markup += generateSupportCardMarkup(cardInfo);
}
return markup;
};
const renderContactSupportData = (selectedLocation) => {
const contactSupportMarkup = generateLocationMarkup(selectedLocation);
supportContainerElement.innerHTML = '';
supportContainerElement.insertAdjacentHTML('afterbegin', contactSupportMarkup);
contactSupportState.value = selectedLocation.name;
}
const removeSpecialLocationsVisibility = () => {
supportContainerTWElement.classList.add('none');
supportContainerCNElement.classList.add('none');
supportContainerJPElement.classList.add('none');
}
const handleContactSupportDropdownClick = (selectedItem) => {
const { value } = selectedItem;
if (contactSupportState.value === value) return;
const selectedLocation = contactSupportState.dropdownList.find(location => location.value === value);
// If selected location is Taiwan, China, or Japan
if (selectedLocation && specialLocations.includes(selectedLocation?.name)) {
removeSpecialLocationsVisibility();
supportContainerElement.classList.add('none');
supportContainerElement.innerHTML = '';
contactSupportState.value = value;
if (selectedLocation.name === 'Taiwan')
supportContainerTWElement.classList.remove('none');
if (selectedLocation.name === 'China')
supportContainerCNElement.classList.remove('none');
if (selectedLocation.name === 'Japan')
supportContainerJPElement.classList.remove('none');
return
}
// If selected location is one of the other locations
if (selectedLocation) {
supportContainerElement.classList.remove('none');
removeSpecialLocationsVisibility();
renderContactSupportData(selectedLocation);
}
}
const convertDataToDropdownList = () => {
const newLocationData = contactLocations?.map((location) => {
return {
...location,
label: location.name,
value: location.name
}
})
return newLocationData;
}
async function contactSupportInit() {
contactLocations = await Ajax('/contact_locations.json');
// Fetch all location data and store it
contactSupportState.dropdownList = convertDataToDropdownList();
const contactSupportDropdownElement = getElement('.select-location');
dropdownInstance = new Dropdown(contactSupportState, contactSupportDropdownElement, handleContactSupportDropdownClick, true);
// Render default location data
const selectedLocation = contactSupportState.dropdownList.find(location => location.value === 'United States');
if (selectedLocation) {
dropdownInstance?.setDefaultValue('United States');
supportContainerElement.classList.remove('none');
renderContactSupportData(selectedLocation);
}
const loader = getElement('.contact-support-loader');
loader.classList.add('none');
}
contactSupportInit();
document.title=`Contact Support | Trend Micro Business Support`;
$("head").append('
');
$("head").append(`
`);
$("head").append('
');
$("head").append(`
`);