<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#if party??> <#-- Main Heading -->

${uiLabelMap.PartyTheProfileOf} <#if person??> ${person.personalTitle!} ${person.firstName!} ${person.middleName!} ${person.lastName!} ${person.suffix!} <#else> "${uiLabelMap.PartyNewUser}"

<#if showOld> ${uiLabelMap.PartyHideOld} <#else> ${uiLabelMap.PartyShowOld} <#if (productStore.enableDigProdUpload)! == "Y"> ${uiLabelMap.EcommerceDigitalProductUpload}

${uiLabelMap.PartyPersonalInformation}

<#if person??>
<#if person.nickname?has_content> <#if person.gender?has_content> <#if person.birthDate??> <#if person.height??> <#if person.weight??> <#if person.mothersMaidenName?has_content> <#if person.maritalStatus?has_content> <#if person.socialSecurityNumber?has_content> <#if person.passportNumber?has_content> <#if person.passportExpireDate??> <#if person.totalYearsWorkExperience??> <#if person.comments?has_content>
${uiLabelMap.PartyName} ${person.personalTitle!} ${person.firstName!} ${person.middleName!} ${person.lastName!} ${person.suffix!}
${uiLabelMap.PartyNickName}${person.nickname}
${uiLabelMap.PartyGender}${person.gender}
${uiLabelMap.PartyBirthDate}${person.birthDate.toString()}
${uiLabelMap.PartyHeight}${person.height}
${uiLabelMap.PartyWeight}${person.weight}
${uiLabelMap.PartyMaidenName}${person.mothersMaidenName}
${uiLabelMap.PartyMaritalStatus}${person.maritalStatus}
${uiLabelMap.PartySocialSecurityNumber}${person.socialSecurityNumber}
${uiLabelMap.PartyPassportNumber}${person.passportNumber}
${uiLabelMap.PartyPassportExpireDate}${person.passportExpireDate.toString()}
${uiLabelMap.PartyYearsWork}${person.totalYearsWorkExperience}
${uiLabelMap.CommonComments}${person.comments}
<#else>
<#-- ============================================================= --> <#if monthsToInclude?? && totalSubRemainingAmount?? && totalOrders??>

${uiLabelMap.EcommerceLoyaltyPoints}

<#-- ============================================================= -->

${uiLabelMap.PartyContactInformation}

<#if partyContactMechValueMaps?has_content> <#list partyContactMechValueMaps as partyContactMechValueMap> <#assign contactMech = partyContactMechValueMap.contactMech! /> <#assign contactMechType = partyContactMechValueMap.contactMechType! /> <#assign partyContactMech = partyContactMechValueMap.partyContactMech! />
${uiLabelMap.PartyContactType} ${uiLabelMap.CommonInformation} ${uiLabelMap.PartySolicitingOk}?
${contactMechType.get("description",locale)}   <#list partyContactMechValueMap.partyContactMechPurposes! as partyContactMechPurpose> <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<#if contactMechPurposeType??> ${contactMechPurposeType.get("description",locale)} <#if contactMechPurposeType.contactMechPurposeTypeId == "SHIPPING_LOCATION" && (profiledefs.defaultShipAddr)?default("") == contactMech.contactMechId> ${uiLabelMap.EcommerceIsDefault} <#elseif contactMechPurposeType.contactMechPurposeTypeId == "SHIPPING_LOCATION">
<#else> ${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}" <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate.toString()})
<#if contactMech.contactMechTypeId! = "POSTAL_ADDRESS"> <#assign postalAddress = partyContactMechValueMap.postalAddress! />
<#if postalAddress??> <#if postalAddress.toName?has_content>${uiLabelMap.CommonTo}: ${postalAddress.toName}
<#if postalAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}
${postalAddress.address1}
<#if postalAddress.address2?has_content>${postalAddress.address2}
${postalAddress.city}<#if partyContactMechValueMap.stateProvinceGeoName?has_content>, ${partyContactMechValueMap.stateProvinceGeoName} ${postalAddress.postalCode!} <#if partyContactMechValueMap.countryGeoName?has_content>
${partyContactMechValueMap.countryGeoName} <#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")> <#assign addr1 = postalAddress.address1! /> <#if (addr1.indexOf(" ") > 0)> <#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) /> <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) /> (${uiLabelMap.CommonLookupWhitepages}) <#else> ${uiLabelMap.PartyPostalInformationNotFound}.
<#elseif contactMech.contactMechTypeId! = "TELECOM_NUMBER"> <#assign telecomNumber = partyContactMechValueMap.telecomNumber!>
<#if telecomNumber??> ${telecomNumber.countryCode!} <#if telecomNumber.areaCode?has_content>${telecomNumber.areaCode}-${telecomNumber.contactNumber!} <#if partyContactMech.extension?has_content>ext ${partyContactMech.extension} <#if (!telecomNumber.countryCode?has_content || telecomNumber.countryCode = "011")> ${uiLabelMap.CommonLookupAnywho} ${uiLabelMap.CommonLookupWhitepages} <#else> ${uiLabelMap.PartyPhoneNumberInfoNotFound}.
<#elseif contactMech.contactMechTypeId! = "EMAIL_ADDRESS"> ${contactMech.infoString} (${uiLabelMap.PartySendEmail}) <#elseif contactMech.contactMechTypeId! = "WEB_ADDRESS">
${contactMech.infoString} <#assign openAddress = contactMech.infoString! /> <#if !openAddress.startsWith("http") && !openAddress.startsWith("HTTP")><#assign openAddress = "http://" + openAddress /> (${uiLabelMap.CommonOpenNewWindow})
<#else> ${contactMech.infoString!}
(${uiLabelMap.CommonUpdated}: ${partyContactMech.fromDate.toString()})
<#if partyContactMech.thruDate??>
${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}
(${partyContactMech.allowSolicitation!})
  ${uiLabelMap.CommonUpdate}
<#else>
<#-- ============================================================= -->

${uiLabelMap.AccountingPaymentMethodInformation}

<#if paymentMethodValueMaps?has_content> <#list paymentMethodValueMaps as paymentMethodValueMap> <#assign paymentMethod = paymentMethodValueMap.paymentMethod! /> <#assign creditCard = paymentMethodValueMap.creditCard! /> <#assign giftCard = paymentMethodValueMap.giftCard! /> <#assign eftAccount = paymentMethodValueMap.eftAccount! /> <#if paymentMethod.paymentMethodTypeId! == "CREDIT_CARD"> <#elseif paymentMethod.paymentMethodTypeId! == "GIFT_CARD"> <#if giftCard?has_content && giftCard.cardNumber?has_content> <#assign giftCardNumber = "" /> <#assign pcardNumber = giftCard.cardNumber /> <#if pcardNumber?has_content> <#assign psize = pcardNumber?length - 4 /> <#if (0 < psize)> <#list 0 .. psize-1 as foo> <#assign giftCardNumber = giftCardNumber + "*" /> <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3] /> <#else> <#assign giftCardNumber = pcardNumber /> <#elseif paymentMethod.paymentMethodTypeId! == "EFT_ACCOUNT">
${uiLabelMap.AccountingCreditCard}: <#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard}  <#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard}  ${creditCard.firstNameOnCard}  <#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard}  ${creditCard.lastNameOnCard} <#if creditCard.suffixOnCard?has_content> ${creditCard.suffixOnCard}  ${Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)} <#if paymentMethod.description?has_content>(${paymentMethod.description}) <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate.toString()}) <#if paymentMethod.thruDate??>(${uiLabelMap.CommonDelete}: ${paymentMethod.thruDate.toString()})
  ${uiLabelMap.CommonUpdate}
${uiLabelMap.AccountingGiftCard}: ${giftCardNumber} <#if paymentMethod.description?has_content>(${paymentMethod.description}) <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate.toString()}) <#if paymentMethod.thruDate??>(${uiLabelMap.CommonDelete}: ${paymentMethod.thruDate.toString()})
  ${uiLabelMap.CommonUpdate}
${uiLabelMap.AccountingEFTAccount}: ${eftAccount.nameOnAccount!} - <#if eftAccount.bankName?has_content>${uiLabelMap.AccountingBank}: ${eftAccount.bankName} <#if eftAccount.accountNumber?has_content>${uiLabelMap.AccountingAccount} #: ${eftAccount.accountNumber} <#if paymentMethod.description?has_content>(${paymentMethod.description}) <#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate.toString()}) <#if paymentMethod.thruDate??>(${uiLabelMap.CommonDelete}: ${paymentMethod.thruDate.toString()})
  ${uiLabelMap.CommonUpdate} ${uiLabelMap.CommonExpire} <#if (profiledefs.defaultPayMeth)?default("") == paymentMethod.paymentMethodId> ${uiLabelMap.EcommerceIsDefault} <#else>
<#else> ${uiLabelMap.AccountingNoPaymentMethodInformation}.
<#-- ============================================================= -->

${uiLabelMap.CommonUsername} & ${uiLabelMap.CommonPassword}

${uiLabelMap.CommonUsername}   ${userLogin.userLoginId}
<#-- ============================================================= -->

${uiLabelMap.EcommerceDefaultShipmentMethod}

<#if profiledefs?has_content && profiledefs.defaultShipAddr?has_content && carrierShipMethods?has_content> <#list carrierShipMethods as shipMeth> <#assign shippingMethod = shipMeth.shipmentMethodTypeId + "@" + shipMeth.partyId /> <#else>
 
<#if shipMeth.partyId != "_NA_">${shipMeth.partyId!} ${shipMeth.get("description",locale)!}
checked="checked" />
${uiLabelMap.EcommerceDefaultShipmentMethodMsg}
<#-- ============================================================= -->

${uiLabelMap.EcommerceFileManager}

<#if partyContent?has_content> <#list partyContent as contentRole> <#assign content = contentRole.getRelatedOne("Content", false) /> <#assign contentType = content.getRelatedOne("ContentType", true) /> <#assign mimeType = content.getRelatedOne("MimeType", true)! /> <#assign status = content.getRelatedOne("StatusItem", true) /> <#else>
${content.contentId} ${content.contentName!} ${(contentType.get("description",locale))!} ${(mimeType.description)!} ${(status.get("description",locale))!} ${contentRole.fromDate!}
${uiLabelMap.CommonView} ${uiLabelMap.CommonRemove}
${uiLabelMap.EcommerceNoFiles}
 
<#-- ============================================================= -->

${uiLabelMap.PartyContactLists}

<#-- --> <#list contactListPartyList as contactListParty> <#assign contactList = contactListParty.getRelatedOne("ContactList", false)! /> <#assign statusItem = contactListParty.getRelatedOne("StatusItem", true)! /> <#assign emailAddress = contactListParty.getRelatedOne("PreferredContactMech", true)! /> <#-- <#assign contactListType = contactList.getRelatedOne("ContactListType", true)/> --> <#-- -->
${uiLabelMap.EcommerceListName}${uiLabelMap.OrderListType}${uiLabelMap.CommonFromDate} ${uiLabelMap.CommonThruDate} ${uiLabelMap.CommonStatus} ${uiLabelMap.CommonEmail}    
${contactList.contactListName!}<#if contactList.description?has_content> - ${contactList.description}
${contactListType.get("description",locale)!}
${contactListParty.fromDate!} ${contactListParty.thruDate!} ${(statusItem.get("description",locale))!} ${emailAddress.infoString!}   <#if (contactListParty.statusId! == "CLPT_ACCEPTED")>
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
<#elseif (contactListParty.statusId! == "CLPT_PENDING")>
<#elseif (contactListParty.statusId! == "CLPT_REJECTED")>
${uiLabelMap.EcommerceNewListSubscription}:
<#-- ============================================================= --> <#if surveys?has_content>

${uiLabelMap.EcommerceSurveys}

<#list surveys as surveyAppl> <#assign survey = surveyAppl.getRelatedOne("Survey", false) /> <#if (responses == 0 || survey.allowMultiple?default("N") == "Y")> <#assign surveyLabel = uiLabelMap.EcommerceTakeSurvey /> <#if (responses > 0 && survey.allowUpdate?default("N") == "Y")> <#assign surveyLabel = uiLabelMap.EcommerceUpdateSurvey /> <#else>  
 
${survey.surveyName!} - ${survey.description!}
  <#assign responses = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].checkSurveyResponse(request, survey.surveyId)?default(0)> <#if (responses < 1)>${uiLabelMap.EcommerceNotCompleted}<#else>${uiLabelMap.EcommerceCompleted} ${surveyLabel}
<#-- ============================================================= --> <#-- only 5 messages will show; edit the ViewProfile.groovy to change this number --> ${screens.render("component://ecommerce/widget/CustomerScreens.xml#messagelist-include")} ${screens.render("component://ecommerce/widget/CustomerScreens.xml#FinAccountList-include")} <#-- Serialized Inventory Summary --> ${screens.render('component://ecommerce/widget/CustomerScreens.xml#SerializedInventorySummary')} <#-- Subscription Summary --> ${screens.render('component://ecommerce/widget/CustomerScreens.xml#SubscriptionSummary')} <#-- Reviews --> ${screens.render('component://ecommerce/widget/CustomerScreens.xml#showProductReviews')} <#else>

${uiLabelMap.PartyNoPartyForCurrentUserName}: ${userLogin.userLoginId}