(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~3dbc3e57"],{"0b2e":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"row justify-center"},[t("h1",{staticStyle:{display:"none"}},[e._v("FAQ")]),t("div",{staticClass:"col-12"},[t("q-img",{attrs:{basic:"",height:"250px",width:""+e.$q.screen.width,src:r("81f9")}},[t("div",{staticClass:"row text-center items-center",staticStyle:{width:"100%",height:"100%",background:"transparent"}},[t("div",{staticClass:"col-12 text-black"},[t("h2",{staticClass:"h2-header"},[e._v("FAQ")]),t("h3",{staticClass:"h3-header",staticStyle:{"margin-top":"0px"}},[e._v("How can we help?")])])])])],1),t("div",{staticClass:"col-md-10 col-sm-11 col-xs-11",staticStyle:{padding:"65px 0"}},[t("q-list",e._l(e.faq2,(function(r,a){return t("div",{key:a},[t("q-expansion-item",{attrs:{"content-inset-level":.5,"expand-separator":"",label:r.header}},e._l(r.data,(function(r,a){return t("div",{key:a},[t("q-expansion-item",{attrs:{"content-inset-level":.8,"expand-separator":"",label:r.topic}},e._l(r.data,(function(r,a){return t("div",{key:a},[t("q-expansion-item",{attrs:{"expand-separator":"",label:r.question}},[t("q-card",[t("q-card-section",e._l(r.answer,(function(r,a){return t("div",{key:a},[r.paragraph?t("span",[e._v(e._s(r.paragraph))]):e._e(),t("span",[r.hyperlink?t("a",{attrs:{href:r.link}},[e._v(e._s(r.hyperlink))]):e._e()]),r.preDetail?t("p",{staticClass:"preDetail"},[e._v(" "+e._s(r.preDetail)+" "),r.refData?t("a",{staticClass:"preDetail",attrs:{href:r.refData.url}},[e._v(e._s(r.refData.name))]):e._e()]):e._e(),r.preDetailL2?t("p",{staticClass:"preDetailL2"},[e._v(" "+e._s(r.preDetailL2)+" ")]):e._e(),r.preDetailL3?t("p",{staticClass:"preDetailL3"},[e._v(" "+e._s(r.preDetailL3)+" ")]):e._e(),r.imgUrl?t("div",{staticClass:"content-img"},[t("img",{attrs:{src:r.imgUrl}})]):e._e()])})),0)],1)],1)],1)})),0)],1)})),0)],1)})),0)],1)])},o=[],i=(r("e6e0"),r("3b73")),n=r("f09f"),s=r("a370"),l=r("1c1c"),c={components:{QExpansionItem:i["a"],QList:l["a"],QCard:n["a"],QCardSection:s["a"]},data(){return{faq2:[{header:"Shop Online Account",data:[{topic:"Sign-Up / Registration",data:[{question:"Will my account details on the old website still work on the new one?",answer:[{paragraph:"•\tWe have transferred all member login details from our old website across to the new one. As long as you sign up with the same email address that you used on our previous website, your favorites & order history from our old website will also be available on our new website."},{paragraph:"•\tNote that you can use any password when you sign up for our new website, the key is to use the same email address."}]},{question:"What if I can’t remember my password from the old website?",answer:[{paragraph:"•\tNo problems, simply sign up for a new account using the same email address that you used on our old website and you can set a new password. Your order history and product favorites will be transferred from the old website to the new after approximately 1 hour."},{paragraph:"•\tWe recommend that if you had a lot of history on our old website that you actually sign up at least 1 hour before you plan to start shopping so that you have access to all of your favorites and order history."}]},{question:"What if I am a registered user of the new website and have forgotten my password?",answer:[{paragraph:"Simply enter the email address that you used to register on our website and our system will send you an email with further instructions.",imgUrl:r("76ca")}]},{question:"I am already a member of Vplus – do I need to sign up again?",answer:[{paragraph:"• Yes, at the moment our Vplus and Shop Online services use separate login."},{paragraph:"•\tBut you can link your Vplus account to your shop online account to earn Vplus points online. To do this, you will need to verify your phone number on your profile page – please note that it needs to be the same phone number registered in your Vplus account for this to work:"},{preDetail:"1.\tGo to your profile page"},{preDetail:"2.\tIn the Phone Number section, if it says “Verify to connect Vplus” then you have not yet connected your Vplus account to your profile. To do this, click on the “Verify to connect Vplus” link"},{preDetail:"3.\tThen enter the phone number associated with your Vplus account in the next screen"},{preDetail:"4.\tClick on Verify and as long as the phone number is registered in our Vplus system your Vplus account will be connected. ",imgUrl:r("bcdf")},{imgUrl:r("56d4")},{imgUrl:r("1c7c")}]},{question:"What are my sign up or logging in options?",answer:[{paragraph:"You can choose to sign in with the following social logins:"},{preDetial:"1. Apple"},{preDetial:"2. Facebook"},{preDetial:"3. Google",imgUrl:r("1642")},{paragraph:"Or you can sign up and create a free account with your email or phone number, simply click on the “Sign Up Free” link and then choose your preferred signup option.",imgUrl:r("ff82")},{imgUrl:r("8e29")},{imgUrl:r("bfde")},{paragraph:"After you click on the “Continue” button, you will receive a 6 digit one time password either by email or SMS – depending on your signup type. ",imgUrl:r("2fac")},{imgUrl:r("fd24")},{paragraph:"Enter your code and click continue to complete your registration. You will be taken back to our home page and can now start shopping!",imgUrl:r("48a9")},{paragraph:"Please note that you can return to our home page from any screen by simply clicking on the Villa Market logo in the top left of the screen",imgUrl:r("2847")},{paragraph:"The menu bar at the bottom of each page includes the following buttons:",imgUrl:r("59d5")}]}]},{topic:"Delivery Address",data:[{question:"How do I add a delivery address?",answer:[{paragraph:"•\tTo add a new address, simply follow these steps:"},{paragraph:"•\tClick on the Profile icon",imgUrl:r("078c")},{paragraph:"•\tClick on the “Add” button next to Shipping Address",imgUrl:r("3828")},{paragraph:"•\tPlease complete all fields on the next screen and click next when you are ready to proceed.",imgUrl:r("34ba")},{paragraph:"•\tNote that you can have a different receiver name & phone number for each address in your profile, which is useful if someone else will be receiving the order. "},{paragraph:"•\tOn the next screen, you have a number of options:",preDetail:"- Move the map around until the red marker is as close to your delivery address as possible"},{preDetial:"•\tClick on the “Use My Location” button to use the GPS function of your device to identify your current location. Please note that this is only accurate on mobile devices. "},{preDetial:"•\tWhen you are satisfied with the location of the red marker, please click on “Save Address” to add the address to your address book. ",imgUrl:r("12d1")}]},{question:"How do I know if Villa Market Shop Online can deliver to my address?",answer:[{paragraph:"•\tIf you have entered your address in the “Shipping Address” section on your profile page and then try to checkout, our system will check if we are able to deliver to your address. "},{paragraph:"•\tPlease note that if your address falls outside our same day delivery zone, you will default to our Nation-wide delivery service which takes between 2-5 days for delivery depending upon your location and day on which you order (eg. The weekend). You will see the delivery type on the checkout page, along with the corresponding delivery fee.",imgUrl:r("18fa")},{paragraph:"• Please note that if your address is within our same day delivery area that you can choose between Regular (choose a delivery slot) and Express delivery type if your order is 8 units or less. Express delivery type does not require a delivery slot and your order will be delivered as soon as possible by our team. "}]},{question:"What if I get an error message on the map page?",answer:[{paragraph:"•\tIf you see this error message on the map page – “Permission denied, please check your browser settings” – you can simply click close and continue to search for your location. This means that you have turned off location settings in your browser or on your device",imgUrl:r("75d2")}]}]}]},{header:"How to Shop Online",data:[{topic:"Site Navigation",data:[{question:"What do the icons on the menu bar at the bottom of each page mean?",answer:[{paragraph:"•\tThe menu bar at the bottom of each page includes the following buttons:",imgUrl:r("48a9")},{imgUrl:r("59d5")}]},{question:"How can I return to the home page?",answer:[{paragraph:"•\tPlease note that you can return to our home page from any screen by simply clicking on the Villa Market logo in the top left of the screen",imgUrl:r("2847")}]}]},{topic:"Selecting Products",data:[{question:"How can I see products that I have ordered previously?",answer:[{paragraph:"•\tAny item that you have previously ordered can be found by:"},{preDetail:"- Go to your Profile page"},{preDetail:"- Click on “View” next to Orders History",imgUrl:r("afaa")},{paragraph:"•\tClick on “Reorder’ for the order with the items that you would like to order again.",imgUrl:r("25cd")},{paragraph:"•\tYou can also see items you have ordered in the past under history items. ",imgUrl:r("af52")},{paragraph:"•\tOur system also allows you to save any items as “Favorites” to make it easier for you to shop those items again. To view your Favorite Items, simply click on the View link next to “Favorite Items” on your profile page:",imgUrl:r("886b")},{paragraph:"• To save an item as one of your favorites, just click on the heart icon which can be found in the following locations:"},{preDetail:"-\tItem list in cart"},{preDetail:"-\tProduct page",imgUrl:r("1b18")},{imgUrl:r("5db7")}]},{question:"Are all Villa Market products available online?",answer:[{paragraph:"•\t95% of the products we sell in stores are available to purchase online however this will differ by location and availability of stock in the store your order is picked from. If an item is temporarily unavailable it will be visible on the website and marked as out of stock."},{paragraph:"•\tWe’d love to hear from you if there’s an item missing from our online store. Simply drop us an email at online@villamarket.com or live chat with us on our website, Line official or Facebook. "}]},{question:"How do I leave instructions for my shopper?",answer:[{paragraph:"•\tOur shoppers are trained to always carefully choose the items to make sure you receive the freshest, best quality produce. If you want to leave specific instructions for your shopper, for example, “Not too ripe please.” You can do this on the checkout page where the items you are ordering are listed. ",imgUrl:r("d68f")}]}]},{topic:"Substitutions",data:[{question:"Do you offer a substitution service?",answer:[{paragraph:"•\tYes, if a product you have ordered is not available when we pack your order, you can select this option if you would like your personal shopper to recommend a substitution for you. Our team will contact you with the substitute item details before making any substitutions. ",imgUrl:r("9c67")}]}]},{topic:"Product Search",data:[{question:"How can I search for products?",answer:[{paragraph:"•\tOn the top of every page there is a search box or a magnifying glass if you are on mobile. "},{paragraph:"•\tEnter your search term and our search engine will offer you some suggestions, click on one of the suggestions to perform a search or press enter to search for what you have typed. "},{paragraph:"•\tIf you are on a computer, you can click on “View all” to see a page with all of your search results.",imgUrl:r("d890")}]}]},{topic:"Favorites",data:[{question:"How can I create a list of my favorite items?",answer:[{paragraph:"•\tYou can add an item to your favorites list by clicking the heart icon on the following pages:"},{preDetail:"1 The product detail page"},{preDetail:"2 The item list on your cart page",imgUrl:r("4a99")},{imgUrl:r("108c")}]},{question:"How do I view my favorite items?",answer:[{paragraph:"•\tGo to your profile page and click on the “view” next to Favorite Items",imgUrl:r("d812")}]}]},{topic:"Buy Again",data:[{question:"How can I re-order an item I have bought online before?",answer:[{paragraph:"•\tYou can view your order history and re-order by clicking in any of the following places: https://shop.villamarket.com/profile/historyitems"},{paragraph:"•\tThe “Buy Again” banner on the homepage",imgUrl:r("ae4b")},{paragraph:"•\tThe “Buy Again” icon in the category selection pane",imgUrl:r("1e51")},{paragraph:"•\t“History Items” on your profile page",preDetail:"•\tClick on either your username in the top right corner or the person icon in the blue menu bar at the bottom of the screen to go to your profile page."},{imgUrl:r("4695")},{preDetail:"•\tOnce you are the profile page, scroll down to “History Items” and click on the view button."},{imgUrl:r("e135")},{paragraph:"•\tYou can now see all of the items you have bought from us previously and you can simply add them to your new order.",imgUrl:r("95c1")}]}]},{topic:"Checking Out",data:[{question:"How do I checkout?",answer:[{paragraph:"• Go to your cart by clicking on the cart button at the bottom of the screen",imgUrl:r("5d4e")},{paragraph:"• You can adjust item quantities on this screen."},{paragraph:"• Click on the checkout button when you are ready to finalize your order. "},{paragraph:"• You will have several options for your order:",preDetial:"1. Choose between pick up or delivery:"},{preDetial:"2. Change to pick up by clicking on “switch to self pick up” on the right side of the “deliver to” section"},{paragraph:"•\tChange your delivery address.",imgUrl:r("dd61")},{paragraph:"•\tOur regular delivery service allows you to choose a 1-hour delivery slot from same day to up to 6 days in advance. Please note that our delivery slots close 1.5 hours prior to the start of the delivery slot. For example, the 4:00-5:00pm delivery slot will close at 2:30pm."},{paragraph:"•\tIf you are within our same-day delivery area and have ordered less than 8 units in total, then you can choose “Express Delivery” and your order will be delivered as soon as possible. There is no need for you to choose a delivery slot with this option. This is only available for orders of 8 total units or less. For example, a 12 pack of water = 12 units. It is also not available for deliveries that fall outside our same day delivery area (which will default to “Nation wide” delivery type. Please note that Express delivery orders placed after 7pm will be delivered the following morning. ",imgUrl:r("993b")},{paragraph:"• Please note that if our system identifies your address as outside our same-day delivery area, then only the “Nation wide” option will be available to you. "},{paragraph:"•\tChoose your preferred payment option.",imgUrl:r("4cfc")},{paragraph:"•\tAdd a promotion code (if you have one) and click the “apply” button to apply it to your order."},{paragraph:"•\tAdd a Villa Market gift voucher code (if you have one) – note that this can be purchased from Villa Market and given to your friends as gifts.",imgUrl:r("3180")},{paragraph:"•\tIf you have a Villa Market refund voucher, you can click on “Select voucher” and choose the voucher you would like to use from the list of refund vouchers available on your account. These refund vouchers will be added to your account automatically. Please note that you can use multiple refund vouchers with 1 order. After you have selected the refund vouchers you would like to use with your current order, click on the “confirm” button.)",imgUrl:r("e080")},{imgUrl:r("e698")},{paragraph:"•\tNote that we offer refund vouchers to customers as they are processed faster than the standard bank refund process. You are given the option to choose Villa Market refund vouchers when we confirm the refund amount for your order. You will need to confirm your type of refund required within 8pm the day after we send you your refund details otherwise our system will default to a refund voucher."},{paragraph:"•\tChoose the “Add items” if you would like to add some more products to your order – this will take you back to our online store.",imgUrl:r("8884")},{paragraph:"•\tYou can add a note to your personal shopper for the item you have ordered if you would like. Note that there are sections against each item for comments as well as an overall section for notes for your shopper or delivery rider.",imgUrl:r("590c")},{paragraph:"•\tChoose your preferred delivery date and time from the drop down options. Note that your delivery fee for your current chosen address is also displayed in this section.",imgUrl:r("d496")},{paragraph:"•\t“No plastic bag” – choose this option if you would prefer that we do not pack your order in plastic bags. Our team will use alternatives, including recycled cardboard boxes, to pack your order. "},{paragraph:"•\t“Request tax invoice” – choose this if you require a Tax Invoice. You will be prompted to fill out address and other details. "},{paragraph:"•\t“Request substitutes” – whilst we make every effort to supply your ordered items, out of stocks do occur. You can choose this option if you would like our team to contact you with alternative products. "},{paragraph:"•\t“Chat with us” – click here to open a live chat session with one of our personal shoppers. ",imgUrl:r("f8ea")},{paragraph:"•\tWhen you are ready to proceed to payment you can click on “Place Order”"}]},{question:"Why haven’t I received an order confirmation email?",answer:[{paragraph:"•\tOur system will automatically send you an email confirmation of your order once payment is successful. Occasionally, these emails can end up in your spam / junk folder – please check there."}]},{question:"What are the different types of coupons and vouchers that can be used?",answer:[{paragraph:"•\tThere are 3 different types of coupons / vouchers that can be used on our site:",preDetail:"1.\tPromotion Codes",preDetailL2:"•\tFrom time to time we will have different promotional offers available which may include discounts, free delivery, etc. These promotions will require a code to be entered to apply to your order. "},{preDetailL2:"•\tNote that some coupon codes have conditions attached – which could include:",preDetailL3:"•\tA minimum spend amount (sum of total spend on products minus the total value of items specifically excluded, see next point)."},{preDetailL3:"•\tExclusion of government controlled and promotional items"},{preDetailL3:"•\tPlease refer to the conditions attached to your coupon either on our website or in the email your coupon code was sent with."},{preDetail:"2.\tVilla Market Gift Voucher",preDetailL2:"• We have gift vouchers available which can be purchased from our stores and given to your friends. If you receive one of our gift vouchers, you can enter the code in the “Villa’s Gift Voucher” section to apply the discount to your order. "},{preDetail:"3.\tRefund Voucher",preDetailL2:"• If a refund is required for your order, we offer our customers the choice of a refund voucher in place of standard bank processes as it is much faster. You will be given the choice of a refund voucher when we confirm any refunds to you after your order has been delivered. You will need to confirm your type of refund required within 8pm the day after we send you your refund details otherwise our system will default to a refund voucher. The refund voucher will be added to your shop online account within 2 days of confirmation that your choice is a refund voucher. "},{preDetailL2:"• Click on “Select voucher” in the Refund Voucher section to see your list of available refund vouchers."},{preDetailL2:"• Choose the refund vouchers you would like to use and click on the “confirm” button. Note that you can apply multiple refund vouchers to 1 order. ",imgUrl:r("487d")},{imgUrl:r("2f64")},{paragraph:"•\tThe result of the coupons and vouchers that you have applied will be added to the “Promotional discount” line in your order summary."}]}]},{topic:"Tax Invoice",data:[{question:"Can I get a tax invoice?",answer:[{paragraph:"•\tYes, if you require a tax invoice, please turn this on and choose the address for tax invoice purposes. Once you choose the address to use you will be able to enter your Tax ID in the box provided. ",imgUrl:r("f0fd")}]}]},{topic:"Store Selection",data:[{question:"Can I choose which store I shop from?",answer:[{paragraph:"•\tYes, you can choose any store for pick up orders. "},{paragraph:"•\tFor delivery orders, our system will default to the nearest store to you in order to minimize travel time and maintain product freshness. "},{paragraph:"•\tIf you are in Bangkok, you can choose to shop at our Sukhumvit 33 branch even when it is not your nearest store but please note that delivery fees will be based on distance from our store. "},{paragraph:"•\tSimply click on the store name on the top right of the screen to change store (or the location icon if you are on a mobile).",imgUrl:r("a43e")},{paragraph:"•\tWe recommend that you choose your preferred store before you start shopping as product availability does vary from store to store. "},{paragraph:"•\tOnce you have made your product selections and reviewed your cart, you can click on the “Checkout” button to start the checkout process. "},{paragraph:"•\tOur system will check your chosen store and compare it to your delivery address. If there is a store closer to you it will give you the choice to deliver from your current chosen store (in this example, Sukhumvit 33) or switch to your nearest store (The Circle in our example). Note that delivery fees are calculated based on distance so you will get the lowest delivery fee when you choose to shop at the store closest to you. ",imgUrl:r("021c")}]}]}]},{header:"Delivery",data:[{topic:"Order Tracking",data:[{question:"How do I track my order?",answer:[{paragraph:"•\tTo track your order, simply go to your Profile page, click “view” next to Orders History and select the order you wish to track by clicking on “view detail”",imgUrl:r("d784")},{imgUrl:r("c707")},{paragraph:"The status of your order will change as each step is completed. ",imgUrl:r("cea9")}]}]},{topic:"Delivery Issues",data:[{question:"What if I am not home when delivery is made?",answer:[{paragraph:"•\tOur driver will try to contact you using the contact information you have provided. If we are not able to contact you, our driver will need to return to our base with your order and a redelivery fee will be applied, which will be the amount of your order’s delivery fee. If you have alternative delivery arrangements (eg. leave with front desk) then please advise us prior to delivery."}]},{question:"Why are items missing from my delivery?",answer:[{paragraph:"•\tWhilst we do our best to fulfil every order item, sometimes an item is not available when our shopper goes to prepare and pack your order just prior to delivery."},{paragraph:"•\tYou will receive an email with confirmation of items not available and any substitutions made."},{paragraph:"•\tYou can also check the paper receipt provided with your delivery for confirmation of the items delivered"}]},{question:"How do I check which items should have been delivered with my order?",answer:[{paragraph:"•\tPlease check your paper receipt that came with your order as it will list all of the items that were available for delivery when your order was packed and prepared. If you need another copy of your receipt please let our team know via online@villamarket.com or live chat on our website."}]}]},{topic:"Delivery Fees",data:[{question:"How are delivery fees calculated?",answer:[{paragraph:"•\tDelivery fees are based on distance from our store that will prepare and deliver your order. Our same day delivery fees range from THB 90 – THB 180 depending on the distance to be travelled and the location."},{paragraph:"•\tNationwide delivery fees for up-country orders are also calculated based on distance & location, along with the size of the order. "}]},{question:"Are there any fees when ordering a Villa Market pick up order?",answer:[{paragraph:"•\tNo, we don’t charge you any fees when you pick up an order that you placed online."}]},{question:"What is the minimum order amount?",answer:[{paragraph:"•\tVilla Market Shop Online does not have a minimum order amount."}]}]},{topic:"Delivery Zones",data:[{question:"Can Villa Market deliver up-country?",answer:[{paragraph:"•\tYes, our Nationwide service allows us to deliver anywhere in Thailand in approx. 2-5 days, depending on your location and the day you order (eg. Weekends). Simply enter your address and your shipping fee and delivery type will be displayed on the final checkout page."},{paragraph:"•\tWe can deliver anything available on our website up-country including fresh & frozen items."}]}]},{topic:"Delivery Options",data:[{question:"Can I choose no plastic bags for my order?",answer:[{paragraph:"•\tYes, on the final checkout page, just before pressing “Place order” there is a switch you can turn on to indicate you do not want our team to pack in plastic bags. We will use recycled boxes to transport your groceries. ",imgUrl:r("16ba")}]},{question:"Can I cancel my order after it is confirmed?",answer:[{paragraph:"•\tYes, you may cancel an order up to 40 minutes before your delivery time. For example, if your delivery time is 3:00-4:00pm then you can cancel your order up until 2:20pm."}]},{question:"Do I need to be at home to receive a delivery?",answer:[{paragraph:"•\tWe recommend you are at home, as it’s the most reliable way to receive your order. We appreciate things pop up in life, and for some reason or another you might not be able to be home. When that eventuates, you can organise to have your order left in a safe place, but please notify us of delivery instructions prior to drop off. At this point it becomes your responsibility. If you haven’t left us with delivery instructions, we will contact you on the phone number(s) you’ve supplied us with. If we can’t contact you, your order may be returned to our store and re-delivery charges and the cost of any perishables items (e.g. fresh fruits and vegetables) will apply."}]}]}]},{header:"Pricing, Payment & Refunds",data:[{topic:"Out of Stocks",data:[{question:"What happens if an item is out of stock?",answer:[{paragraph:"•\tIf you have chosen to have substitutes, then our team will do their best to offer you a substitute item if one is available. All substitutions are subject to approval by our customers so that we can make sure you won’t receive an item you don’t want."},{paragraph:"•\tIf you have not chosen to have substitutes then the item will be marked as out of stock and the refund process will be implemented. Please note that if you pay with a credit card then you will only be charged for the value of the items delivered. "}]}]},{topic:"Pricing & Promotions",data:[{question:"Are the prices online the same as in store?",answer:[{paragraph:"•\tYes, when you shop with Villa Market Online you get all the same prices as you would get in store. However, delivery fees may apply."}]},{question:"Will I earn collectable stamps when I shop online?",answer:[{paragraph:"•\tYes, our staff will include your stamps when your order is delivered. If you have a Vplus Wallet then your stamps will be added as digital stamps to your Vplus Wallet application."}]},{question:"How can I see all of the promotions currently available?",answer:[{paragraph:"•\tBy clicking on the “Special Offer” icon on the menu bar, you will see a list of all the different promotions we currently have available:",imgUrl:r("99df")},{imgUrl:r("d9aa")}]},{question:"How do the “Buy 1 Get 1 Free” and “Buy 2 Get 1 Free” promotions work?",answer:[{paragraph:"•\tFor all of these promotion types, the free product will be given to you in the form of a discount applied automatically at check out. You need to add the total number of units to your cart to qualify for the free item discount. For example:",preDetail:"1. Buy 1 Get 1 Free = 2 items in cart"},{preDetail:"2. Buy 2 Get 1 Free = 3 items in cart"},{preDetail:"3. Buy 3 Get 1 Free = 4 items in cart"},{paragraph:"•\tThe discount amount will be calculated automatically for the free item promotions."},{paragraph:"•\tIn this example, we have 2 products in our cart. The first one Is on “Buy 2 Get 1 Free” promotion so we have added 3 units to our cart. The second product is on “Buy 1 Get 1 Free” promotion so we have added 2 units to our cart. The promotional discount has been applied automatically which is THB 25 + THB 35 = THB 60.",imgUrl:r("a257")}]},{question:"Where can I enter my coupon code?",answer:[{paragraph:"•\tOnce you have finished selecting your items, please click on the cart icon. You will have a chance to review your order, once you have done that click on Checkout."},{paragraph:"•\tPlease enter your coupon code into the “Add coupon code” section on the final checkout page and click apply. If your coupon code has been applied successfully then either the promotional discount or total shipping fee values will change, depending on the type of coupon code you are using."},{paragraph:"•\tSome coupon codes have conditions attached – which could include:",preDetail:"1. Minimum spend amount (sum of total spend on products minus the total value of items specifically excluded, see next point)."},{preDetail:"2. Exclusion of government controlled and promotional items."},{paragraph:"•\tPlease refer to the conditions attached to your coupon either on our website or in the email your coupon code was sent with.",imgUrl:r("6605")}]}]},{topic:"Payments & Refunds",data:[{question:"What are your payment options?",answer:[{paragraph:"•\tWe currently accept the following payment methods:",preDetail:"1.\tCredit / Debit Card - Visa, Mastercard & JCB"},{preDetail:"2.\tAmerican Express"},{preDetail:"3.\tUnion Pay"},{preDetail:"4.\tVplus Wallet"},{preDetail:"5.\tThai QR Payment"},{preDetail:"6.\tWeChat"},{preDetail:"7.\tAliPay"}]},{question:"Can I pay Cash on Delivery for my order?",answer:[{paragraph:"•\tAt this stage, we are not able to accept cash on delivery payments."}]},{question:"I don’t want to give my credit card details over the internet, what are my options?",answer:[{paragraph:"•\tThai QR Payment does not require you to give us your card details. When you select this payment method, our system will generate a QR code on the screen which you can scan with your internet banking app on your phone and make payment."}]},{question:"Does Villa Market Shop Online accept overseas credit cards?",answer:[{paragraph:"•\tYes we do. But please note that the time it takes to return refunds to an overseas card is dependent upon your bank’s policy."}]},{question:"Why is the value of my delivery not the same as what I ordered?",answer:[{paragraph:"•\tIt can be less if some of your ordered items were not available."},{paragraph:"•\tIt can be more if you either asked our staff to add some items to your delivery or if the value of your products sold by weight was slightly higher than what you ordered."}]},{question:"How do I get a refund for any items I ordered that were not available when my order was packed & delivered?",answer:[{paragraph:"•\tThe refund process varies based on the payment method you used when placing your order:",preDetail:"•\tVisa Credit, Mastercard Credit, & Amex = an initial “holding” transaction is processed for the value of your order. This is replaced by a final transaction equal to the value of the products available when your delivery was made. This final transaction is processed after 6pm on the day your delivery made and will appear in your online card statement in the following 2-3 days. Please note that for some banks, the final transaction will only appear on your paper or monthly statement, not in your app."},{preDetail:"•\tFor Local Debit = you have the choice of a Villa Market Refund Voucher (sent within 2 business days of confirming your preference) or the normal bank process which can take between 14-45 days depending on your bank."},{preDetail:"•\tFor Other payment methods, we will give you options with your refund confirmation:"},{preDetail:"-\tA coupon code to use next time you shop online with us"},{preDetail:"-\tA  bank transfer via prompt pay"},{preDetail:"-\tNormal bank process (can take up to 14 days for local cards and longer for overseas cards)"},{paragraph:"•\tNote that where a refund option is offered, you have until 8pm the day after the email was sent to confirm your preference, otherwise a Villa Market Refund Voucher will be prepared & added to your shop online account. You will also receive an email with details of your Villa Market Refund Voucher. "}]},{question:"How do I know how much my refund will be?",answer:[{paragraph:"•\tOn the bottom your receipt that came with your order you will see a section where the difference between what you paid online and the final value of the items that were delivered is displayed. If the difference is negative then you are owed a refund, if it is positive then you have added some items to your order and further payment is required. ",imgUrl:r("b59d")},{paragraph:"•\tWe will also send you an email confirming any items that were not available, item substitutions made and your final refund amount. This email will give you options as to how to process your refund if they are available. For example",imgUrl:r("7aac")},{paragraph:"The email confirming your refund will look like this:"}]}]}]},{header:"Vplus Rewards",data:[{topic:"Membership",data:[{question:"How do I become a Vplus member?",answer:[{paragraph:"•\tSimply download our app and register and you will be given a Vplus member code straight away. Download from:",preDetail:"1.",refData:{name:"Google Play",url:"https://play.google.com/store/apps/details?id=com.villa_market_wallet"}},{preDetail:"2.\t",refData:{name:"IOS App Store",url:"https://itunes.apple.com/th/app/vplus-wallet/id1345275014?l=th&mt=8"}}]}]},{topic:"Vplus Points",data:[{question:"How do I earn Vplus points?",answer:[{paragraph:"•\tYou can earn 1 Vplus point for every THB 25 that you spend with Villa Market, either online or instore. Note that promotional items, government-controlled items & alcohol & tobacco items cannot earn points."}]},{question:"What can I do with my Vplus points?",answer:[{paragraph:"Your Vplus points can currently be used to redeem as a discount on your next purchase in store. 800 Vplus points converts to a THB 100 discount. Simply show your member barcode in your Vplus Wallet app to our cashier next time you shop in one of our stores."}]},{question:"Can I earn Vplus points when I shop online?",answer:[{paragraph:"•\tYes, you will earn the same number of Vplus points as when you shop in our stores. To earn points online you need to link your Vplus account to your online Villa Market account. Simply:",preDetail:"1.\tGo to your profile page"},{preDetail:"2.\tIn the Phone Number section, if it says “Verify to connect Vplus” then you have not yet connected your Vplus account to your profile. To do this, click on the “Verify to connect Vplus” link"},{preDetail:"3.\tThen enter the phone number associated with your Vplus account in the next screen"},{preDetail:"4.\tClick on Verify and as long as the phone number is registered in our Vplus system your Vplus account will be connected."},{imgUrl:r("412c")},{imgUrl:r("a90b")},{imgUrl:r("abbd")}]},{question:"Can I use my Vplus points when I shop online?",answer:[{paragraph:"•\tAt this stage, Vplus points are only able to be redeemed as a discount in store but we plan to add the function to use your Vplus points when you shop online in the near future."}]}]},{topic:"Vplus Wallet",data:[{question:"What is the Vplus wallet?",answer:[{paragraph:"•\tThe Vplus Wallet is our digital Vplus card which can also act as a wallet if you would like it to. This allows you to store money in your Vplus wallet and use it to pay when you go shopping with us, both in store and online. It’s a contactless payment method and is the most convenient way to pay for your groceries."}]},{question:"How I pay online with my Vplus Wallet?",answer:[{paragraph:"•\tChoose the Vplus Wallet payment method",imgUrl:r("b57c")},{paragraph:"•\tEnter your Vplus Mobile No. and Vplus Member ID in the form"},{paragraph:"•\tClick on “Place Order”"},{paragraph:"•\tRequest to Pay will be sent to your Vplus Wallet app on your phone”"},{paragraph:"•\tOpen Vplus Wallet app and press Confirm button",imgUrl:r("e1c7")},{paragraph:"•\tEnter your Vplus Wallet pin code to confirm "},{paragraph:"•\tYou will see a “Receipt” on your app when payment is successful. ",imgUrl:r("8a4f")},{paragraph:"•\tA successful order confirmation message will also appear on the screen of Villa Market Shop Online",imgUrl:r("34fe")}]}]}]},{header:"General",data:[{topic:"System Details",data:[{question:"Which browser do you recommend?",answer:[{paragraph:"•\tOur website has been tested and is fully functional on all browsers and operating systems. Please ensure your browser is updated to the latest version to enjoy all of the functions available and to enjoy a smooth experience."}]}]},{topic:"Alcohol Items",data:[{question:"Can I order alcoholic beverages online and have them delivered to my home?",answer:[{paragraph:"•\tUnfortunately, not. In December 2020, the laws in Thailand were changed that prohibit the sale of any alcoholic beverages online. We keep the items on our website so that our customers can see what we have available in our stores."}]}]},{topic:"Browser",data:[{question:"Which browser do you recommend?",answer:[{paragraph:"•\tOur website has been tested and is fully functional on all browsers and operating systems. Please ensure your browser is updated to the latest version to enjoy all of the functions available and to enjoy a smooth experience."}]}]}]}]}},metaInfo(){return{title:"FAQ | Villa Market - Thailand's Original International Supermarket",meta:[{name:"description",content:"Find out our answers to your most frequently asked questions (FAQ) here."},{property:"og:title",content:"FAQ | Villa Market - Thailand's Original International Supermarket"},{property:"og:site_name",content:"Villa Market"},{property:"og:type",content:"website"},{name:"robots",content:"index,follow"}]}}},d=c,u=(r("103d"),r("2877")),h=Object(u["a"])(d,a,o,!1,null,"2c51871c",null);t["default"]=h.exports},"103d":function(e,t,r){"use strict";r("b115")},"108d":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c}));var a=r("9ab4"),o=function(){var e=[],t=[],r=new Set,s=function(e){return e.sort((function(e,t){return i[t.step]-i[e.step]||n[t.priority||"normal"]-n[e.priority||"normal"]}))},l=function(a){var o=!1,i=function(e){return!e.name||e.name!==a||(o=!0,r.delete(a),!1)};return e=e.filter(i),t=t.filter(i),o},c=function(a){var o=!1,i=function(e){return e.middleware!==a||(o=!0,e.name&&r.delete(e.name),!1)};return e=e.filter(i),t=t.filter(i),o},d=function(r){return e.forEach((function(e){r.add(e.middleware,Object(a["__assign"])({},e))})),t.forEach((function(e){r.addRelativeTo(e.middleware,Object(a["__assign"])({},e))})),r},u=function(e){var t=[];return e.before.forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(a["__spread"])(u(e)))})),t.push(e),e.after.reverse().forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(a["__spread"])(u(e)))})),t},h=function(){var r=[],o=[],i={};e.forEach((function(e){var t=Object(a["__assign"])(Object(a["__assign"])({},e),{before:[],after:[]});t.name&&(i[t.name]=t),r.push(t)})),t.forEach((function(e){var t=Object(a["__assign"])(Object(a["__assign"])({},e),{before:[],after:[]});t.name&&(i[t.name]=t),o.push(t)})),o.forEach((function(e){if(e.toMiddleware){var t=i[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));var n=s(r).map(u).reduce((function(e,t){return e.push.apply(e,Object(a["__spread"])(t)),e}),[]);return n.map((function(e){return e.middleware}))},p={add:function(t,o){void 0===o&&(o={});var i=o.name,n=o.override,s=Object(a["__assign"])({step:"initialize",priority:"normal",middleware:t},o);if(i){if(r.has(i)){if(!n)throw new Error("Duplicate middleware name '"+i+"'");var l=e.findIndex((function(e){return e.name===i})),c=e[l];if(c.step!==s.step||c.priority!==s.priority)throw new Error('"'+i+'" middleware with '+c.priority+" priority in "+c.step+" step cannot be overridden by same-name middleware with "+s.priority+" priority in "+s.step+" step.");e.splice(l,1)}r.add(i)}e.push(s)},addRelativeTo:function(e,o){var i=o.name,n=o.override,s=Object(a["__assign"])({middleware:e},o);if(i){if(r.has(i)){if(!n)throw new Error("Duplicate middleware name '"+i+"'");var l=t.findIndex((function(e){return e.name===i})),c=t[l];if(c.toMiddleware!==s.toMiddleware||c.relation!==s.relation)throw new Error('"'+i+'" middleware '+c.relation+' "'+c.toMiddleware+'" middleware cannot be overridden by same-name middleware '+s.relation+' "'+s.toMiddleware+'" middleware.');t.splice(l,1)}r.add(i)}t.push(s)},clone:function(){return d(o())},use:function(e){e.applyToStack(p)},remove:function(e){return"string"===typeof e?l(e):c(e)},removeByTag:function(a){var o=!1,i=function(e){var t=e.tags,i=e.name;return!t||!t.includes(a)||(i&&r.delete(i),o=!0,!1)};return e=e.filter(i),t=t.filter(i),o},concat:function(e){var t=d(o());return t.use(e),t},applyToStack:d,resolve:function(e,t){var r,o;try{for(var i=Object(a["__values"])(h().reverse()),n=i.next();!n.done;n=i.next()){var s=n.value;e=s(e,t)}}catch(l){r={error:l}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return e}};return p},i={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},n={high:3,normal:2,low:1},s=function(){function e(e){this.middlewareStack=o(),this.config=e}return e.prototype.send=function(e,t,r){var a="function"!==typeof t?t:void 0,o="function"===typeof t?t:r,i=e.resolveMiddleware(this.middlewareStack,this.config,a);if(!o)return i(e).then((function(e){return e.output}));i(e).then((function(e){return o(null,e.output)}),(function(e){return o(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),l=function(){function e(){this.middlewareStack=o()}return e}();function c(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}var d=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,Object(a["__spread"])([null],arguments)),r=new t;return Object.setPrototypeOf(r,e.prototype),r};d.prototype=Object.create(String.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(d,String);(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(a["__extends"])(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:new t(e instanceof String||"string"===typeof e?e:JSON.stringify(e))}})(d)},1279:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return i}));var a=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"===typeof t.statusCode&&"object"===typeof t.headers},e}(),o=r("9ab4"),i=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t["query"]&&"object"===typeof t["headers"]},e.prototype.clone=function(){var t=new e(Object(o["__assign"])(Object(o["__assign"])({},this),{headers:Object(o["__assign"])({},this.headers)}));return t.query&&(t.query=n(t.query)),t},e}();function n(e){return Object.keys(e).reduce((function(t,r){var a,i=e[r];return Object(o["__assign"])(Object(o["__assign"])({},t),(a={},a[r]=Array.isArray(i)?Object(o["__spread"])(i):i,a))}),{})}},1665:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("router-link",{attrs:{to:"/recipes/"+e.info.article_id}},[t("div",{staticClass:"article-card col-12 row",on:{click:e.onClickArticleCard}},[t("q-img",{staticStyle:{width:"100%"},attrs:{src:e.info.imageUrl,ratio:1.8}}),t("div",{staticClass:"card-detail col-12"},[t("div",{staticClass:"product-type"},[e._v(e._s(e.articleType))]),t("div",{staticClass:"product-name"},[e._v(e._s(e.articleName))]),t("div",{staticClass:"like-share row justify-end"},[t("q-btn",{attrs:{flat:"",round:"",dense:"",color:"grey-8",icon:"share"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.onSocialShare.apply(null,arguments)}}})],1)])],1),t("q-dialog",{model:{value:e.shareDialog,callback:function(t){e.shareDialog=t},expression:"shareDialog"}},[t("q-card",[t("q-card-section",[t("div",{staticClass:"text-h6"},[e._v("Share")])]),t("q-card-section",[t("div",{staticClass:"row justify-center"},[t("ShareNetwork",{attrs:{network:"facebook",url:"https://shop.villamarket.com/recipes/"+e.info.article_id,title:e.info.article_name_en,description:e.info.description_en}},[t("div",{staticClass:"column items-center"},[t("q-btn",{attrs:{flat:"",round:"",dense:"",color:"grey-8",icon:"img:https://img.icons8.com/color/480/000000/facebook-new.png",size:"40px"},on:{click:function(t){return t.preventDefault(),e.onSocialShare("facebook")}}}),t("p",[e._v("Facebook")])],1)]),t("ShareNetwork",{attrs:{network:"Messenger",url:"https://shop.villamarket.com/recipes/"+e.info.article_id,title:e.info.article_name_en,description:e.info.description_en}},[t("div",{staticClass:"column items-center"},[t("q-btn",{attrs:{flat:"",round:"",dense:"",color:"grey-8",icon:"img:https://img.icons8.com/fluency/480/000000/facebook-messenger--v2.png",size:"40px"},on:{click:function(t){return t.preventDefault(),e.onSocialShare("messenger")}}}),t("p",[e._v("Messenger")])],1)]),t("ShareNetwork",{attrs:{network:"line",url:"https://shop.villamarket.com/recipes/"+e.info.article_id,title:e.info.article_name_en,description:e.info.description_en}},[t("div",{staticClass:"column items-center"},[t("q-btn",{attrs:{flat:"",round:"",dense:"",color:"grey-8",icon:"img:https://img.icons8.com/color/480/000000/line-me.png",size:"40px"},on:{click:function(t){return t.preventDefault(),e.onSocialShare("line")}}}),t("p",[e._v("Line")])],1)])],1)]),t("q-card-actions",{attrs:{align:"right"}},[t("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"","no-caps":"",label:"Cancel",color:"primary"}})],1)],1)],1)],1)},o=[],i=(r("14d9"),r("068f")),n=r("24e8"),s=r("f09f"),l=r("a370"),c=r("4b7e"),d={name:"ArticleCard",props:["info"],components:{QImg:i["a"],QDialog:n["a"],QCard:s["a"],QCardSection:l["a"],QCardActions:c["a"]},data(){return{isFavorite:!1,shareDialog:!1}},computed:{articleName(){return"th"===this.$i18n.locale?[void 0,null,""].indexOf(this.info.article_name_th)>=0?this.info.article_name_en:this.info.article_name_th:this.info.article_name_en},articleType(){return"th"===this.$i18n.locale?[void 0,null,""].indexOf(this.info.artiale_type_th)>=0?this.info.artiale_type_en:this.info.artiale_type_th:this.info.artiale_type_en}},methods:{onFavorite(){this.isFavorite=!this.isFavorite},onSocialShare(e){this.shareDialog=!0,dataLayer&&"string"===typeof e&&dataLayer.push({event:"content",event_action:"click_share-"+e,event_label:"content-"+this.info.article_name_en,content_id:this.info.article_id,content_type:this.info.artiale_type_en,content_date:"None"})},onClickArticleCard(){dataLayer&&dataLayer.push({event:"content",event_action:"click_content_card",event_label:"content-"+this.info.article_name_en,content_id:this.info.article_id,content_type:this.info.artiale_type_en,content_date:"None"})}}},u=d,h=(r("d389"),r("2877")),p=Object(h["a"])(u,a,o,!1,null,"505066a5",null);t["default"]=p.exports},"365f":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l}));var a=r("9ab4"),o=r("1279");function i(e){return e}var n=function(e){return function(t){return function(r){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var i,n,s;return Object(a["__generator"])(this,(function(a){return o["a"].isInstance(r.request)?(i=r.request,n=(e.requestHandler.metadata||{}).handlerProtocol,s=void 0===n?"":n,s.indexOf("h2")>=0&&!i.headers[":authority"]?(delete i.headers["host"],i.headers[":authority"]=""):i.headers["host"]||(i.headers["host"]=i.hostname),[2,t(r)]):[2,t(r)]}))}))}}},s={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},l=function(e){return{applyToStack:function(t){t.add(n(e),s)}}}},"37db":function(e,t,r){"use strict";function a(e){if("string"===typeof e){for(var t=e.length,r=t-1;r>=0;r--){var a=e.charCodeAt(r);a>127&&a<=2047?t++:a>2047&&a<=65535&&(t+=2)}return t}return"number"===typeof e.byteLength?e.byteLength:"number"===typeof e.size?e.size:void 0}r.d(t,"a",(function(){return a}))},"4b75":function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return f}));for(var a={},o=new Array(64),i=0,n="A".charCodeAt(0),s="Z".charCodeAt(0);i+n<=s;i++){var l=String.fromCharCode(i+n);a[l]=i,o[i]=l}for(i=0,n="a".charCodeAt(0),s="z".charCodeAt(0);i+n<=s;i++){l=String.fromCharCode(i+n);var c=i+26;a[l]=c,o[c]=l}for(i=0;i<10;i++){a[i.toString(10)]=i+52;l=i.toString(10),c=i+52;a[l]=c,o[c]=l}a["+"]=62,o[62]="+",a["/"]=63,o[63]="/";var d=6,u=8,h=63;function p(e){var t=e.length/4*3;"=="===e.substr(-2)?t-=2:"="===e.substr(-1)&&t--;for(var r=new ArrayBuffer(t),o=new DataView(r),i=0;i<e.length;i+=4){for(var n=0,s=0,l=i,c=i+3;l<=c;l++)"="!==e[l]?(n|=a[e[l]]<<(c-l)*d,s+=d):n>>=d;var h=i/4*3;n>>=s%u;for(var p=Math.floor(s/u),f=0;f<p;f++){var m=(p-f-1)*u;o.setUint8(h+f,(n&255<<m)>>m)}}return new Uint8Array(r)}function f(e){for(var t="",r=0;r<e.length;r+=3){for(var a=0,i=0,n=r,s=Math.min(r+3,e.length);n<s;n++)a|=e[n]<<(s-n-1)*u,i+=u;var l=Math.ceil(i/d);a<<=l*d-i;for(var c=1;c<=l;c++){var p=(l-c)*d;t+=o[(a&h<<p)>>p]}t+="==".slice(0,4-l)}return t}},"4c04":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var a=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,o)},o=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}},"50c7":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return j})),r.d(t,"c",(function(){return I}));var a=r("9ab4"),o=function(e){return function(t,r){return function(o){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var i;return Object(a["__generator"])(this,(function(n){return(null===(i=null===e||void 0===e?void 0:e.retryStrategy)||void 0===i?void 0:i.mode)&&(r.userAgent=Object(a["__spread"])(r.userAgent||[],[["cfg/retry-mode",e.retryStrategy.mode]])),[2,e.retryStrategy.retry(t,o)]}))}))}}},i={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},n=function(e){return{applyToStack:function(t){t.add(o(e),i)}}},s=r("1279"),l=100,c=2e4,d=500,u=500,h=5,p=10,f=1,m="amz-sdk-invocation-id",y="amz-sdk-request",g=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],v=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],b=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],w=[500,502,503,504],_=function(e){return void 0!==e.$retryable},k=function(e){return g.includes(e.name)},C=function(e){var t,r;return 429===(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||v.includes(e.name)||1==(null===(r=e.$retryable)||void 0===r?void 0:r.throttling)},D=function(e){var t;return b.includes(e.name)||w.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)},x=r("11c1"),q=function(e){var t=e,r=e,a=function(e){return"TimeoutError"===e.name?p:h},o=function(e){return a(e)<=r},i=function(e){if(!o(e))throw new Error("No retry token available");var t=a(e);return r-=t,t},n=function(e){r+=null!==e&&void 0!==e?e:f,r=Math.min(r,t)};return Object.freeze({hasRetryTokens:o,retrieveRetryTokens:i,releaseRetryTokens:n})},S=function(e,t){return Math.floor(Math.min(c,Math.random()*Math.pow(2,t)*e))},O=function(e){return!!e&&(_(e)||k(e)||C(e)||D(e))},j=3,A="standard",P=function(){function e(e,t){var r,a,o;this.maxAttemptsProvider=e,this.mode=A,this.retryDecider=null!==(r=null===t||void 0===t?void 0:t.retryDecider)&&void 0!==r?r:O,this.delayDecider=null!==(a=null===t||void 0===t?void 0:t.delayDecider)&&void 0!==a?a:S,this.retryQuota=null!==(o=null===t||void 0===t?void 0:t.retryQuota)&&void 0!==o?o:q(u)}return e.prototype.shouldRetry=function(e,t,r){return t<r&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAttempts=function(){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var e;return Object(a["__generator"])(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.maxAttemptsProvider()];case 1:return e=t.sent(),[3,3];case 2:return t.sent(),e=j,[3,3];case 3:return[2,e]}}))}))},e.prototype.retry=function(e,t){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var r,o,i,n,c,u,h,p;return Object(a["__generator"])(this,(function(f){switch(f.label){case 0:return o=0,i=0,[4,this.getMaxAttempts()];case 1:n=f.sent(),c=t.request,s["a"].isInstance(c)&&(c.headers[m]=Object(x["v4"])()),u=function(){var u,p,f,m,g;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,5]),s["a"].isInstance(c)&&(c.headers[y]="attempt="+(o+1)+"; max="+n),[4,e(t)];case 1:return u=a.sent(),p=u.response,f=u.output,h.retryQuota.releaseRetryTokens(r),f.$metadata.attempts=o+1,f.$metadata.totalRetryDelay=i,[2,{value:{response:p,output:f}}];case 2:return m=a.sent(),o++,h.shouldRetry(m,o,n)?(r=h.retryQuota.retrieveRetryTokens(m),g=h.delayDecider(C(m)?d:l,o),i+=g,[4,new Promise((function(e){return setTimeout(e,g)}))]):[3,4];case 3:return a.sent(),[2,"continue"];case 4:throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=o,m.$metadata.totalRetryDelay=i,m;case 5:return[2]}}))},h=this,f.label=2;case 2:return[5,u()];case 3:return p=f.sent(),"object"===typeof p?[2,p.value]:[3,2];case 4:return[2]}}))}))},e}(),I=function(e){var t=T(e.maxAttempts);return Object(a["__assign"])(Object(a["__assign"])({},e),{maxAttempts:t,retryStrategy:e.retryStrategy||new P(t)})},T=function(e){if(void 0===e&&(e=j),"number"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}},"5d63":function(e,t,r){"use strict";r.r(t),r.d(t,"fromUtf8",(function(){return s})),r.d(t,"toUtf8",(function(){return l}));var a=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var o=e.charCodeAt(r);if(o<128)t.push(o);else if(o<2048)t.push(o>>6|192,63&o|128);else if(r+1<e.length&&55296===(64512&o)&&56320===(64512&e.charCodeAt(r+1))){var i=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r));t.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(o>>12|224,o>>6&63|128,63&o|128)}return Uint8Array.from(t)},o=function(e){for(var t="",r=0,a=e.length;r<a;r++){var o=e[r];if(o<128)t+=String.fromCharCode(o);else if(192<=o&&o<224){var i=e[++r];t+=String.fromCharCode((31&o)<<6|63&i)}else if(240<=o&&o<365){var n=[o,e[++r],e[++r],e[++r]],s="%"+n.map((function(e){return e.toString(16)})).join("%");t+=decodeURIComponent(s)}else t+=String.fromCharCode((15&o)<<12|(63&e[++r])<<6|63&e[++r])}return t};function i(e){return(new TextEncoder).encode(e)}function n(e){return new TextDecoder("utf-8").decode(e)}var s=function(e){return"function"===typeof TextEncoder?i(e):a(e)},l=function(e){return"function"===typeof TextDecoder?n(e):o(e)}},"62e8":function(e,t,r){"use strict";r.r(t),r.d(t,"locateWindow",(function(){return o}));const a={};function o(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:a}},7807:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var a=r("9ab4"),o=function(e){function t(t,r){void 0===r&&(r=!0);var a=e.call(this,t)||this;return a.tryNextLink=r,a}return Object(a["__extends"])(t,e),t}(Error)},"7c18":function(e,t,r){},"84ae":function(e,t,r){},"928f":function(e,t,r){"use strict";r.d(t,"a",(function(){return z}));var a=r("9ab4"),o=r("ed9f"),i="X-Amz-Algorithm",n="X-Amz-Credential",s="X-Amz-Date",l="X-Amz-SignedHeaders",c="X-Amz-Expires",d="X-Amz-Signature",u="X-Amz-Security-Token",h="authorization",p=s.toLowerCase(),f="date",m=[h,p,f],y=d.toLowerCase(),g="x-amz-content-sha256",v=u.toLowerCase(),b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},w=/^proxy-/,_=/^sec-/,k="AWS4-HMAC-SHA256",C="AWS4-HMAC-SHA256-PAYLOAD",D="UNSIGNED-PAYLOAD",x=50,q="aws4_request",S=604800,O={},j=[];function A(e,t,r){return e+"/"+t+"/"+r+"/"+q}var P=function(e,t,r,i,n){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var s,l,c,d,u,h,p,f,m;return Object(a["__generator"])(this,(function(y){switch(y.label){case 0:return[4,I(e,t.secretAccessKey,t.accessKeyId)];case 1:if(s=y.sent(),l=r+":"+i+":"+n+":"+Object(o["a"])(s)+":"+t.sessionToken,l in O)return[2,O[l]];j.push(l);while(j.length>x)delete O[j.shift()];c="AWS4"+t.secretAccessKey,y.label=2;case 2:y.trys.push([2,7,8,9]),d=Object(a["__values"])([r,i,n,q]),u=d.next(),y.label=3;case 3:return u.done?[3,6]:(h=u.value,[4,I(e,c,h)]);case 4:c=y.sent(),y.label=5;case 5:return u=d.next(),[3,3];case 6:return[3,9];case 7:return p=y.sent(),f={error:p},[3,9];case 8:try{u&&!u.done&&(m=d.return)&&m.call(d)}finally{if(f)throw f.error}return[7];case 9:return[2,O[l]=c]}}))}))};function I(e,t,r){var a=new e(t);return a.update(r),a.digest()}function T(e,t,r){var o,i,n=e.headers,s={};try{for(var l=Object(a["__values"])(Object.keys(n).sort()),c=l.next();!c.done;c=l.next()){var d=c.value,u=d.toLowerCase();(u in b||(null===t||void 0===t?void 0:t.has(u))||w.test(u)||_.test(u))&&(!r||r&&!r.has(u))||(s[u]=n[d].trim().replace(/\s+/g," "))}}catch(h){o={error:h}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return s}var L=r("4c04");function E(e){var t,r,o=e.query,i=void 0===o?{}:o,n=[],s={},l=function(e){if(e.toLowerCase()===y)return"continue";n.push(e);var t=i[e];"string"===typeof t?s[e]=Object(L["a"])(e)+"="+Object(L["a"])(t):Array.isArray(t)&&(s[e]=t.slice(0).sort().reduce((function(t,r){return t.concat([Object(L["a"])(e)+"="+Object(L["a"])(r)])}),[]).join("&"))};try{for(var c=Object(a["__values"])(Object.keys(i).sort()),d=c.next();!d.done;d=c.next()){var u=d.value;l(u)}}catch(h){t={error:h}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return n.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}var U=r("1833");function $(e,t){var r=e.headers,i=e.body;return Object(a["__awaiter"])(this,void 0,void 0,(function(){var e,n,s,l,c,d,u;return Object(a["__generator"])(this,(function(h){switch(h.label){case 0:try{for(e=Object(a["__values"])(Object.keys(r)),n=e.next();!n.done;n=e.next())if(s=n.value,s.toLowerCase()===g)return[2,r[s]]}catch(p){d={error:p}}finally{try{n&&!n.done&&(u=e.return)&&u.call(e)}finally{if(d)throw d.error}}return void 0!=i?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"===typeof i||ArrayBuffer.isView(i)||Object(U["a"])(i)?(l=new t,l.update(i),c=o["a"],[4,l.digest()]):[3,3];case 2:return[2,c.apply(void 0,[h.sent()])];case 3:return[2,D]}}))}))}function V(e,t){var r,o;e=e.toLowerCase();try{for(var i=Object(a["__values"])(Object.keys(t)),n=i.next();!n.done;n=i.next()){var s=n.value;if(e===s.toLowerCase())return!0}}catch(l){r={error:l}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return!1}function N(e){var t=e.headers,r=e.query,o=Object(a["__rest"])(e,["headers","query"]);return Object(a["__assign"])(Object(a["__assign"])({},o),{headers:Object(a["__assign"])({},t),query:r?R(r):void 0})}function R(e){return Object.keys(e).reduce((function(t,r){var o,i=e[r];return Object(a["__assign"])(Object(a["__assign"])({},t),(o={},o[r]=Array.isArray(i)?Object(a["__spread"])(i):i,o))}),{})}function M(e,t){var r,o,i;void 0===t&&(t={});var n="function"===typeof e.clone?e.clone():N(e),s=n.headers,l=n.query,c=void 0===l?{}:l;try{for(var d=Object(a["__values"])(Object.keys(s)),u=d.next();!u.done;u=d.next()){var h=u.value,p=h.toLowerCase();"x-amz-"!==p.substr(0,6)||(null===(i=t.unhoistableHeaders)||void 0===i?void 0:i.has(p))||(c[h]=s[h],delete s[h])}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}return Object(a["__assign"])(Object(a["__assign"])({},e),{headers:s,query:c})}function F(e){var t,r;e="function"===typeof e.clone?e.clone():N(e);try{for(var o=Object(a["__values"])(Object.keys(e.headers)),i=o.next();!i.done;i=o.next()){var n=i.value;m.indexOf(n.toLowerCase())>-1&&delete e.headers[n]}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e}function H(e){return W(e).toISOString().replace(/\.\d{3}Z$/,"Z")}function W(e){return"number"===typeof e?new Date(1e3*e):"string"===typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e}var z=function(){function e(e){var t=e.applyChecksum,r=e.credentials,a=e.region,o=e.service,i=e.sha256,n=e.uriEscapePath,s=void 0===n||n;this.service=o,this.sha256=i,this.uriEscapePath=s,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=Y(a),this.credentialProvider=G(r)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(a["__awaiter"])(this,void 0,void 0,(function(){var r,o,h,p,f,m,y,g,v,b,w,_,C,D,x,q,O,j,P,I,L,E,U,V;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return r=t.signingDate,o=void 0===r?new Date:r,h=t.expiresIn,p=void 0===h?3600:h,f=t.unsignableHeaders,m=t.unhoistableHeaders,y=t.signableHeaders,g=t.signingRegion,v=t.signingService,[4,this.credentialProvider()];case 1:return b=a.sent(),null===g||void 0===g?[3,2]:(_=g,[3,4]);case 2:return[4,this.regionProvider()];case 3:_=a.sent(),a.label=4;case 4:return w=_,C=Q(o),D=C.longDate,x=C.shortDate,p>S?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(q=A(x,w,null!==v&&void 0!==v?v:this.service),O=M(F(e),{unhoistableHeaders:m}),b.sessionToken&&(O.query[u]=b.sessionToken),O.query[i]=k,O.query[n]=b.accessKeyId+"/"+q,O.query[s]=D,O.query[c]=p.toString(10),j=T(O,f,y),O.query[l]=B(j),P=O.query,I=d,L=this.getSignature,E=[D,q,this.getSigningKey(b,w,x,v)],U=this.createCanonicalRequest,V=[O,j],[4,$(e,this.sha256)]);case 5:return[4,L.apply(this,E.concat([U.apply(this,V.concat([a.sent()]))]))];case 6:return P[I]=a.sent(),[2,O]}}))}))},e.prototype.sign=function(e,t){return Object(a["__awaiter"])(this,void 0,void 0,(function(){return Object(a["__generator"])(this,(function(r){return"string"===typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var r=e.headers,i=e.payload,n=t.signingDate,s=void 0===n?new Date:n,l=t.priorSignature,c=t.signingRegion,d=t.signingService;return Object(a["__awaiter"])(this,void 0,void 0,(function(){var e,t,n,u,h,p,f,m,y,g,v;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return null===c||void 0===c?[3,1]:(t=c,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=a.sent(),a.label=3;case 3:return e=t,n=Q(s),u=n.shortDate,h=n.longDate,p=A(u,e,null!==d&&void 0!==d?d:this.service),[4,$({headers:{},body:i},this.sha256)];case 4:return f=a.sent(),m=new this.sha256,m.update(r),g=o["a"],[4,m.digest()];case 5:return y=g.apply(void 0,[a.sent()]),v=[C,h,p,l,y,f].join("\n"),[2,this.signString(v,{signingDate:s,signingRegion:e,signingService:d})]}}))}))},e.prototype.signString=function(e,t){var r=void 0===t?{}:t,i=r.signingDate,n=void 0===i?new Date:i,s=r.signingRegion,l=r.signingService;return Object(a["__awaiter"])(this,void 0,void 0,(function(){var t,r,i,c,d,u,h,p;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return[4,this.credentialProvider()];case 1:return t=a.sent(),null===s||void 0===s?[3,2]:(i=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:i=a.sent(),a.label=4;case 4:return r=i,c=Q(n).shortDate,h=(u=this.sha256).bind,[4,this.getSigningKey(t,r,c,l)];case 5:return d=new(h.apply(u,[void 0,a.sent()])),d.update(e),p=o["a"],[4,d.digest()];case 6:return[2,p.apply(void 0,[a.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var r=void 0===t?{}:t,o=r.signingDate,i=void 0===o?new Date:o,n=r.signableHeaders,s=r.unsignableHeaders,l=r.signingRegion,c=r.signingService;return Object(a["__awaiter"])(this,void 0,void 0,(function(){var t,r,o,d,u,f,m,y,b,w,_;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return[4,this.credentialProvider()];case 1:return t=a.sent(),null===l||void 0===l?[3,2]:(o=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:o=a.sent(),a.label=4;case 4:return r=o,d=F(e),u=Q(i),f=u.longDate,m=u.shortDate,y=A(m,r,null!==c&&void 0!==c?c:this.service),d.headers[p]=f,t.sessionToken&&(d.headers[v]=t.sessionToken),[4,$(d,this.sha256)];case 5:return b=a.sent(),!V(g,d.headers)&&this.applyChecksum&&(d.headers[g]=b),w=T(d,s,n),[4,this.getSignature(f,y,this.getSigningKey(t,r,m,c),this.createCanonicalRequest(d,w,b))];case 6:return _=a.sent(),d.headers[h]=k+" Credential="+t.accessKeyId+"/"+y+", SignedHeaders="+B(w)+", Signature="+_,[2,d]}}))}))},e.prototype.createCanonicalRequest=function(e,t,r){var a=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+E(e)+"\n"+a.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+a.join(";")+"\n"+r},e.prototype.createStringToSign=function(e,t,r){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var i,n;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return i=new this.sha256,i.update(r),[4,i.digest()];case 1:return n=a.sent(),[2,k+"\n"+e+"\n"+t+"\n"+Object(o["a"])(n)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;if(this.uriEscapePath){var r=encodeURIComponent(t.replace(/^\//,""));return"/"+r.replace(/%2F/g,"/")}return t},e.prototype.getSignature=function(e,t,r,i){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var n,s,l,c,d;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return[4,this.createStringToSign(e,t,i)];case 1:return n=a.sent(),c=(l=this.sha256).bind,[4,r];case 2:return s=new(c.apply(l,[void 0,a.sent()])),s.update(n),d=o["a"],[4,s.digest()];case 3:return[2,d.apply(void 0,[a.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,r,a){return P(this.sha256,e,r,t,a||this.service)},e}(),Q=function(e){var t=H(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},B=function(e){return Object.keys(e).sort().join(";")},Y=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e},G=function(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}},"954d":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"row justify-center"},[e.$q.screen.lt.sm?t("TitleBar",{attrs:{"center-slot":"Add new address"}}):e._e(),e.$q.screen.gt.xs?t("TileBar",{attrs:{optionButton:"Back"},on:{"on-button":function(t){return e.$router.go(-1)}}}):e._e(),1===e.step?t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row form-detail first-step"},[t("div",{staticClass:"text-h6 col-grow text-center text-primary"},[e._v(" Add Address ")]),t("q-form",{ref:"myForm",staticClass:"text-primary row"},[t("q-input",{ref:"name",staticClass:"col-12",attrs:{dense:"",label:"Place Name *","lazy-rules":"","stack-label":"",placeholder:"e.g. Home, Office",rules:[e=>e&&e.length>0||"Please type your place name"]},model:{value:e.address.name,callback:function(t){e.$set(e.address,"name",t)},expression:"address.name"}}),t("q-input",{ref:"name",staticClass:"col-12",attrs:{dense:"",label:"Receiver's first name *","lazy-rules":"",rules:[e=>e&&e.length>0||"Please type your first name"]},model:{value:e.address.firstname,callback:function(t){e.$set(e.address,"firstname",t)},expression:"address.firstname"}}),t("q-input",{ref:"name",staticClass:"col-12",attrs:{dense:"",label:"Receiver's last name *","lazy-rules":"",rules:[e=>e&&e.length>0||"Please type your last name"]},model:{value:e.address.lastname,callback:function(t){e.$set(e.address,"lastname",t)},expression:"address.lastname"}}),t("q-input",{staticClass:"col-12",staticStyle:{display:"none"},attrs:{dense:"",type:"email",label:"Email *"},model:{value:e.address.email,callback:function(t){e.$set(e.address,"email",t)},expression:"address.email"}}),t("VuePhoneNumberInput",{ref:"PhoneNumberInput",staticClass:"q-mx-sm",staticStyle:{"margin-bottom":"20px"},attrs:{"default-country-code":"TH","preferred-countries":["TH","US","GB"],error:e.phoneDummyError},on:{update:e.onUpdatePhone},model:{value:e.phoneDummy,callback:function(t){e.phoneDummy=t},expression:"phoneDummy"}}),t("div",{staticClass:"col-12 row q-gutter-md"},[t("q-input",{staticClass:"col-xs-12 col-sm-3 col-md-3",attrs:{dense:"",autocomplete:"new-password",label:"Address no. *",rules:[e=>e&&e.length>0||"Please enter address number"]},model:{value:e.formData.addressNo,callback:function(t){e.$set(e.formData,"addressNo",t)},expression:"formData.addressNo"}}),t("q-input",{staticClass:"col-xs-12 col-sm-2 col-md-2",attrs:{dense:"",autocomplete:"new-password",label:"Moo"},model:{value:e.formData.moo,callback:function(t){e.$set(e.formData,"moo",t)},expression:"formData.moo"}})],1),t("q-input",{staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Village/building"},model:{value:e.formData.village,callback:function(t){e.$set(e.formData,"village",t)},expression:"formData.village"}}),t("q-input",{staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Soi"},model:{value:e.formData.soi,callback:function(t){e.$set(e.formData,"soi",t)},expression:"formData.soi"}}),t("q-input",{staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Street"},model:{value:e.formData.street,callback:function(t){e.$set(e.formData,"street",t)},expression:"formData.street"}}),t("q-input",{ref:"PostalCode",staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Postal Code *","stack-label":"",placeholder:"e.g. 10600",error:e.provinceList.length<=0,"error-message":"Please input postcode"},model:{value:e.address.postcode,callback:function(t){e.$set(e.address,"postcode",t)},expression:"address.postcode"}}),t("q-select",{staticClass:"col-12",attrs:{dense:"",disable:e.provinceList.length<=0,options:e.provinceList,label:"Province *",rules:[e=>e&&e.length>0||"Please enter province details"]},model:{value:e.address.province,callback:function(t){e.$set(e.address,"province",t)},expression:"address.province"}}),t("q-select",{staticClass:"col-12",attrs:{dense:"",disable:e.districtList.length<=0,options:e.districtList,label:"District *",rules:[e=>e&&e.length>0||"Please enter district details"]},model:{value:e.address.district,callback:function(t){e.$set(e.address,"district",t)},expression:"address.district"}}),t("q-select",{staticClass:"col-12",attrs:{dense:"",disable:e.subDistrictList.length<=0,options:e.subDistrictList,label:"Subdistrict *",rules:[e=>e&&e.length>0||"Please enter sub district details"]},model:{value:e.address.subDistrict,callback:function(t){e.$set(e.address,"subDistrict",t)},expression:"address.subDistrict"}})],1),t("div",{staticClass:"row col-12 justify-end",staticStyle:{"padding-top":"2em"}},[t("q-btn",{attrs:{outline:"",rounded:"",color:"white","text-color":"primary",loading:e.loadingNext},on:{click:function(t){return e.onNextStep(2)}}},[e._v(" NEXT ")])],1)],1):e._e(),2===e.step?t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row map-detail secound-step"},[e.predictList?t("div",{staticClass:"predic-list col-12"},[t("div",{staticClass:"col-12 text-center",staticStyle:{padding:"1em"}},[e._v(" We found following possible coordinate according to your address. Please choose the nearest one or adjust marker in the map. ")]),t("q-list",e._l(e.predictList,(function(r,a){return t("q-item",{key:a,attrs:{clickable:"",active:a==e.predictIdxSelected},on:{click:function(t){e.predictIdxSelected=a}}},[t("q-item-section",[e._v(e._s(r.description))])],1)})),1)],1):e._e(),t("div",{ref:"dummymap"}),e.mapCenter?t("div",{staticClass:"col-12 map"},[t("GmapMap",{ref:"map",staticStyle:{width:"100%",height:"100%"},attrs:{center:e.mapCenter,zoom:15,"map-type-id":"roadmap",options:{zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,disableDefaultUi:!0,clickableIcons:!1}},on:{center_changed:e.updateCenter,idle:e.sync,dragstart:function(t){e.draging=!0},dragend:function(t){e.draging=!1}}}),t("i",{staticClass:"fixed-marker fas fa-map-marker-alt",attrs:{"aria-hidden":"true"}})],1):t("div",{staticClass:"map-loading"},[t("q-inner-loading",{staticStyle:{margin:"auto"},attrs:{showing:!0}},[t("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),t("div",{staticClass:"row col-12 row justify-between text-center",staticStyle:{padding:"2em .5em"}},[t("div",{staticClass:"col-12",staticStyle:{"padding-bottom":"1em"}},[e._v(" For speed of delivery , please move the coordinate as close as your location as possible ")]),t("q-btn",{attrs:{size:e.isMobile?"sm":"md","no-wrap":"",outline:"",rounded:"",color:"white","text-color":"grey-10"},on:{click:e.setDefaultStep}},[e._v(" << BACK TO EDIT ADDRESS ")]),t("q-btn",{attrs:{size:e.isMobile?"sm":"md","no-wrap":"",outline:"",rounded:"",color:"white","text-color":"primary"},on:{click:e.onSave}},[e._v(" SAVE AND CONTINUE >> ")])],1)]):e._e(),3===e.step?t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row form-detail first-step"},[t("div",{staticClass:"text-h6 col-grow text-center text-primary"},[e._v(" Add Address ")]),t("q-form",{ref:"myForm",staticClass:"text-primary row"},[t("q-input",{ref:"name",staticClass:"col-12",attrs:{dense:"",label:"Place Name *","lazy-rules":"","stack-label":"",placeholder:"e.g. Home, Office",rules:[e=>e&&e.length>0||"Please type your place name"]},model:{value:e.address.name,callback:function(t){e.$set(e.address,"name",t)},expression:"address.name"}}),t("q-input",{ref:"name",staticClass:"col-12",attrs:{dense:"",label:"Receiver's first name *","lazy-rules":"",rules:[e=>e&&e.length>0||"Please type your first name"]},model:{value:e.address.firstname,callback:function(t){e.$set(e.address,"firstname",t)},expression:"address.firstname"}}),t("q-input",{ref:"name",staticClass:"col-12",attrs:{dense:"",label:"Receiver's last name *","lazy-rules":"",rules:[e=>e&&e.length>0||"Please type your last name"]},model:{value:e.address.lastname,callback:function(t){e.$set(e.address,"lastname",t)},expression:"address.lastname"}}),t("q-input",{staticClass:"col-12",staticStyle:{display:"none"},attrs:{dense:"",type:"email",label:"Email *"},model:{value:e.address.email,callback:function(t){e.$set(e.address,"email",t)},expression:"address.email"}}),t("VuePhoneNumberInput",{ref:"PhoneNumberInput",staticClass:"q-mx-sm",staticStyle:{"margin-bottom":"20px"},attrs:{"default-country-code":"TH","preferred-countries":["TH","US","GB"],error:e.phoneDummyError},on:{update:e.onUpdatePhone},model:{value:e.phoneDummy,callback:function(t){e.phoneDummy=t},expression:"phoneDummy"}}),t("div",{staticClass:"col-12 row q-gutter-md"},[t("q-input",{staticClass:"col-xs-12 col-sm-3 col-md-3",attrs:{dense:"",autocomplete:"new-password",label:"Address no. *",rules:[e=>e&&e.length>0||"Please enter address number"]},model:{value:e.formData.addressNo,callback:function(t){e.$set(e.formData,"addressNo",t)},expression:"formData.addressNo"}}),t("q-input",{staticClass:"col-xs-12 col-sm-2 col-md-2",attrs:{dense:"",autocomplete:"new-password",label:"Moo"},model:{value:e.formData.moo,callback:function(t){e.$set(e.formData,"moo",t)},expression:"formData.moo"}})],1),t("q-input",{staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Village/building"},model:{value:e.formData.village,callback:function(t){e.$set(e.formData,"village",t)},expression:"formData.village"}}),t("q-input",{staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Soi"},model:{value:e.formData.soi,callback:function(t){e.$set(e.formData,"soi",t)},expression:"formData.soi"}}),t("q-input",{staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Street"},model:{value:e.formData.street,callback:function(t){e.$set(e.formData,"street",t)},expression:"formData.street"}}),t("q-input",{ref:"PostalCode",staticClass:"col-12",attrs:{dense:"",autocomplete:"new-password",label:"Postal Code *","stack-label":"",placeholder:"e.g. 10600",rules:[e=>e&&5===e.length||"Please correct postcode"],"error-message":"Please input postcode"},model:{value:e.address.postcode,callback:function(t){e.$set(e.address,"postcode",t)},expression:"address.postcode"}}),t("q-input",{ref:"address",staticClass:"col-12",attrs:{dense:"",label:"Province *","stack-label":"",rules:[e=>!!e||"Field is required"]},model:{value:e.address.province,callback:function(t){e.$set(e.address,"province",t)},expression:"address.province"}}),t("q-input",{ref:"address",staticClass:"col-12",attrs:{dense:"",label:"District *","stack-label":"",rules:[e=>!!e||"Field is required"]},model:{value:e.address.district,callback:function(t){e.$set(e.address,"district",t)},expression:"address.district"}}),t("q-input",{ref:"address",staticClass:"col-12",attrs:{dense:"",label:"Sub district *","stack-label":"",rules:[e=>!!e||"Field is required"]},model:{value:e.address.subDistrict,callback:function(t){e.$set(e.address,"subDistrict",t)},expression:"address.subDistrict"}})],1),t("div",{staticClass:"row col-12 justify-end",staticStyle:{"padding-top":"2em"}},[t("q-btn",{attrs:{outline:"",rounded:"",color:"white","text-color":"primary",loading:e.loadingNext},on:{click:e.onSaveMapAddress}},[e._v(" SAVE ADDRESS ")])],1)],1):e._e(),t("q-dialog",{attrs:{persistent:""},model:{value:e.dialogError.show,callback:function(t){e.$set(e.dialogError,"show",t)},expression:"dialogError.show"}},[t("DialogAlert",{attrs:{message:e.dialogError.message,"right-btn":e.dialogError.rightBtn,"mid-btn":e.dialogError.midBtn,"left-btn":e.dialogError.leftBtn},on:{leftClick:e.dialogError.leftClickCallback,midClick:e.dialogError.midClickCallback,rightClick:e.dialogError.rightClickCallback}})],1)],1)},o=[],i=(r("ddb0"),r("7bec")),n=r.n(i),s=(r("4413"),r("8a12"),r("24e8")),l=r("0d59"),c=r("27f9"),d=r("0378"),u=r("429b"),h=r("7460"),p=r("74f7"),f=r("eb85"),m=r("1c1c"),y=r("4074"),g=r("66e5"),v=r("0967"),b=r("2f62"),w=r("2ba5"),_=r("2b0e"),k=r("755e"),C=r("58a7"),D=r("b012"),x=r("bf2e");const q={QDialog:s["a"],QSpinner:l["a"],QInput:c["a"],QForm:d["a"],QTabs:u["a"],QTab:h["a"],QInnerLoading:p["a"],QSeparator:f["a"],QList:m["a"],QItemSection:y["a"],QItem:g["a"]};_["default"].use(k,{load:{key:C["a"],libraries:"places"}});var S={name:"addAddressV2",components:{...q,VuePhoneNumberInput:n.a,TitleBar:()=>r.e("signin~31ecd969").then(r.bind(null,"1e1d")),TileBar:()=>r.e("chunk-vendors~cfbf0a2e").then(r.bind(null,"7112")),DialogAlert:()=>Promise.resolve().then(r.bind(null,"bb5b"))},mixins:[w["a"]],data(){return{step:null,address:{name:null,firstname:null,lastname:null,address:null,subDistrict:null,district:null,province:null,postcode:null,email:null,phone:null},draging:!1,loadingGeocode:!1,loadingNext:!1,allowConfirm:!1,mapCenter:null,keyword:null,reportedMapCenter:{lat:13.736717,lng:100.523186},dialogError:{show:!1,message:"",leftBtn:null,midBtn:null,rightBtn:null,leftClickCallback:()=>{},midClickCallback:()=>{},rightClickCallback:()=>{}},allowAotocomplete:!0,predictList:null,saveLoading:!1,phoneDummy:void 0,phoneDummyError:!1,subDistrictList:[],districtList:[],provinceList:[],queryStage:0,formData:{addressNo:null,moo:null,village:null,soi:null,street:null},predictIdxSelected:null,gmapPostalCode:null,geocodeResult:null}},computed:{...Object(b["b"])("user",["shippingAddressList"]),isMobile(){return v["b"].is.mobile}},watch:{address:{immediate:!0,handler(e){1===this.step&&(null!==this.address.postcode&&(5===this.address.postcode.length?this.allowAotocomplete&&(this.autoCompleteWithPostcode(),this.allowAotocomplete=!1):this.allowAotocomplete=!0),this.getDistrictList(),this.provinceList&&this.provinceList.sort(),this.districtList&&this.districtList.sort(),this.subDistrictList&&this.subDistrictList.sort())},deep:!0},predictList:{handler(e){e&&e.length>0&&(this.predictIdxSelected=0)}},predictIdxSelected:{handler(e){this.predictList&&(this.gmapPostalCode=null,this.onChooseAddress(this.predictList[e]))}}},created(){this.setDefaultStep(),this.$gmapApiPromiseLazy().then(()=>{this.loaded=!0}),this.loadUser().then(()=>{this.autoFill()})},methods:{setDefaultStep(){this.step=1},setAddress(){const e=this.formData.addressNo.trim();if(this.address.address=e,this.formData.moo){const e=this.formData.moo.trim();this.address.address=`${this.address.address} moo ${e}`}if(this.formData.village){const e=this.formData.village.trim();this.address.address=`${this.address.address} ${e}`}if(this.formData.soi){const e=this.formData.soi.trim();this.address.address=`${this.address.address} ${e}`}if(this.formData.street){const e=this.formData.street.trim();this.address.address=`${this.address.address} ${e}`}},onGetCurrentLocation(){window.navigator.geolocation.getCurrentPosition(e=>{if(e&&e.coords&&(null!=e.coords.longitude||void 0!=e.coords.longitude)&&(null!=e.coords.latitude||void 0!=e.coords.latitude)){const t=new google.maps.LatLng(e.coords.latitude,e.coords.longitude);this.updateCenterWithSync(t)}},e=>{if(e)switch(e.code){case 1:this.dialogError={show:!0,rightBtn:"Close",message:"We cannot detect your location.\nPermission denied, please check your browser settings.",rightClickCallback:()=>{this.dialogError.show=!1},leftClickCallback:()=>{},midClickCallback:()=>{}};break;default:this.dialogError={show:!0,rightBtn:"Close",message:"We cannot detect your location.",rightClickCallback:()=>{this.dialogError.show=!1},leftClickCallback:()=>{},midClickCallback:()=>{}};break}this.setKeyword(),this.onQuery(this.keyword)})},async updateCenter(e){this.reportedMapCenter={lat:e.lat(),lng:e.lng()}},async updateCenterWithSync(e){this.reportedMapCenter={lat:e.lat(),lng:e.lng()},this.sync(),this.loadingGeocode=!0},autoFill(){const e=this.$store.getters["user/user"];e.firstName?this.address.firstname=e.firstName:e.name&&(this.address.firstname=e.name.split(" ")[0]),e.lastName?this.address.lastname=e.lastName:e.name&&(this.address.lastname=e.name.split(" ")[1]||"-"),e.email&&(this.address.email=e.email),e.phone_number&&(this.address.phone=e.phone_number,this.phoneDummy=e.phone_number)},validateAddress(){return 0!==this.address.name.length&&(0!==this.address.firstname.length&&(0!==this.address.lastname.length&&(0!==this.address.address.length&&(0!==this.address.subDistrict.length&&(0!==this.address.district.length&&(0!==this.address.province.length&&!(this.address.postcode.length<5)))))))},async onSaveMapAddress(){if(this.setAddress(),this.validateAddress()){const t=[...this.shippingAddressList,this.address];try{this.saveLoading=!0,await this.$store.dispatch("user/AddAddress",t)}catch(e){}finally{this.saveLoading=!1}this.$router.go(-1)}},async onSave(){if(this.address)if(this.address.location)if(null!=this.gmapPostalCode)if(this.gmapPostalCode==this.address.postcode){const t=[...this.shippingAddressList,this.address];try{this.saveLoading=!0,await this.$store.dispatch("user/AddAddress",t)}catch(e){}finally{this.saveLoading=!1}this.dialog=!1,this.$router.go(-1)}else this.dialogError={show:!0,leftBtn:"Use marker location",midBtn:"Adjust marker again",rightBtn:"Edit address",message:"Postal code incorrect, please go back to edit your postal code or or adjust marker in the map.",rightClickCallback:()=>{this.dialogError.show=!1,this.step=1},midClickCallback:()=>{this.dialogError.show=!1},leftClickCallback:()=>{this.step=3,this.dialogError.show=!1;const e={street:null,subDistrict:null,district:null,province:null};this.geocodeResult.address_components.forEach(t=>{t.types.findIndex(e=>"route"===e)>=0&&null===e.street&&(e.street=t.long_name),t.types.findIndex(e=>"sublocality_level_2"===e)>=0&&null===e.subDistrict&&(e.subDistrict=t.long_name),t.types.findIndex(e=>"sublocality_level_1"===e)>=0&&null===e.district&&(e.district=t.long_name),t.types.findIndex(e=>"administrative_area_level_1"===e)>=0&&null===e.province&&(e.province=t.long_name)}),this.formData={...this.formData,...e},this.address.postcode=this.gmapPostalCode,e.subDistrict&&e.district&&e.province&&(this.address.subDistrict=e.subDistrict,this.address.district=e.district,this.address.province=e.province)}};else{const t=[...this.shippingAddressList,this.address];try{this.saveLoading=!0,await this.$store.dispatch("user/AddAddress",t)}catch(e){}finally{this.saveLoading=!1}this.dialog=!1,this.$router.go(-1)}else this.dialogError={show:!0,rightBtn:"Close",message:"Address incorrect or incomplete, please go back to edit your address",rightClickCallback:()=>{this.dialogError.show=!1},leftClickCallback:()=>{},midClickCallback:()=>{}}},onUpdatePhone(e){this.address.phone=e.formattedNumber,e.isValid&&(this.phoneDummyError=!1)},async onNextStep(e){const t=this.$refs["PhoneNumberInput"].isValid;if(!t)return void(this.phoneDummyError=!0);const r=await this.$refs.myForm.validate();r&&(this.setAddress(),this.step=e,this.loadingNext=!0,this.isMobile?(await this.onGetCurrentLocation(),this.loadingNext=!1):(this.setKeyword(),await this.onQuery(this.keyword),this.loadingNext=!1))},async onQuery(e){if(null===e)return;if(void 0===e)return;if(""===e)return;this.predictList=null,this.mapCenter=null,this.address.location=null,this.predictIdxSelected=null;let t=0;while(null===this.predictList&&t<7){0!==t&&(e=e.substr(e.indexOf(" ")),e=e.trim()),t++,5===t?e=`${this.address.subDistrict}, ${this.address.district}, ${this.address.province}, ${this.address.postcode}`:6===t&&(e=`${this.address.district}, ${this.address.province}, ${this.address.postcode}`);const a=()=>new Promise((t,r)=>{const a=new google.maps.places.AutocompleteService;a.getQueryPredictions({input:e,location:new google.maps.LatLng(13.736717,100.523186),radius:55e4},(e,a)=>{if(e)return e.forEach(e=>{}),this.predictList=e,void t();r()})});try{await a()}catch(r){}}this.predictList||(this.dialogError={show:!0,rightBtn:"Close",message:"Address incorrect or incomplete, please go back to edit your address",rightClickCallback:()=>{this.dialogError.show=!1},leftClickCallback:()=>{},midClickCallback:()=>{}})},async onChooseAddress(e){const t=new google.maps.places.PlacesService(this.$refs.dummymap),r={placeId:e.place_id,fields:["address_components","geometry","formatted_address"]};await t.getDetails(r,(e,t)=>{this.address.location={lat:e.geometry.location.lat(),lng:e.geometry.location.lng()},this.reportedMapCenter={lat:e.geometry.location.lat(),lng:e.geometry.location.lng()},this.sync(),this.formatedAddress=e.formatted_address,this.allowConfirm=!0})},getGmapPostalCode:Object(D["debounce"])((async function(e){const t=new google.maps.Geocoder,r={location:e};try{await t.geocode(r,(e,t)=>{try{this.geocodeResult=e[0],this.gmapPostalCode=e[0].address_components.find(e=>"postal_code"==e.types[0]).long_name}catch(r){this.gmapPostalCode=null}})}catch(a){}}),300),async autoCompleteWithPostcode(){const e=x.filter(e=>e.PostCodeMain===this.address.postcode);0!==e.length&&(this.address.province=e[0].ProvinceEng,this.address.district=e[0].DistrictEng,this.address.subDistrict=e[0].TambonEng,this.getProvinceList())},async getsubDistrictList(){if(this.address.district){let e=this.address.district.split(".");e=e[e.length-1],this.subDistrictList=x.filter(t=>t.DistrictEng===e)}this.subDistrictList=this.subDistrictList.map(e=>e.TambonEng),this.subDistrictList=[...new Set(this.subDistrictList)]},getDistrictList(){if(this.address.province){let e=this.address.province.split(".");e=e[e.length-1],this.districtList=x.filter(t=>t.ProvinceEng===e)}this.districtList=this.districtList.map(e=>e.DistrictEng),this.districtList=[...new Set(this.districtList)],this.getsubDistrictList()},async getProvinceList(){this.provinceList=x.map(e=>e.ProvinceEng),this.provinceList=[...new Set(this.provinceList)]},setKeyword(){this.keyword="",this.formData.village?this.keyword=`${this.formData.addressNo} ${this.formData.village} ${this.address.province} ${this.address.postcode} `:this.formData.soi?this.keyword=`${this.formData.addressNo} ${this.formData.soi} ${this.address.province} ${this.address.postcode}`:this.formData.street?this.keyword=`${this.formData.addressNo} ${this.formData.street} ${this.address.province} ${this.address.postcode}`:(this.keyword=""+this.formData.addressNo,this.formData.street&&(this.keyword=`${this.keyword}, ${this.formData.street}`),this.address.subDistrict&&(this.keyword=`${this.keyword}, ${this.address.subDistrict}`),this.address.district&&(this.keyword=`${this.keyword}, ${this.address.district}`),this.address.province&&(this.keyword=`${this.keyword}, ${this.address.province}`),this.address.postcode&&(this.keyword=`${this.keyword}, ${this.address.postcode}`)),this.keyword=this.keyword.trim()},sync(){this.mapCenter=this.reportedMapCenter,this.address={...this.address,location:{lat:this.reportedMapCenter.lat,lng:this.reportedMapCenter.lng}},this.getGmapPostalCode(this.reportedMapCenter)}}},O=S,j=(r("c2da"),r("2877")),A=Object(j["a"])(O,a,o,!1,null,"5cbe01a2",null);t["default"]=A.exports},9622:function(e,t,r){},"991b":function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var a=r("9ab4"),o=function(e,t){return function(r,o){return function(o){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var i,n;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return[4,r(o)];case 1:return i=a.sent().response,[4,t(i,e)];case 2:return n=a.sent(),[2,{response:i,output:n}]}}))}))}}},i=function(e,t){return function(r,o){return function(o){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var i;return Object(a["__generator"])(this,(function(n){switch(n.label){case 0:return[4,t(o.input,e)];case 1:return i=n.sent(),[2,r(Object(a["__assign"])(Object(a["__assign"])({},o),{request:i}))]}}))}))}}},n={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},s={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function l(e,t,r){return{applyToStack:function(a){a.add(o(e,r),n),a.add(i(e,t),s)}}}},"9dac":function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var a=r("9ab4"),o=r("1279"),i="content-length";function n(e){var t=this;return function(r){return function(n){return Object(a["__awaiter"])(t,void 0,void 0,(function(){var t,s,l,c,d;return Object(a["__generator"])(this,(function(u){return t=n.request,o["a"].isInstance(t)&&(s=t.body,l=t.headers,s&&-1===Object.keys(l).map((function(e){return e.toLowerCase()})).indexOf(i)&&(c=e(s),void 0!==c&&(t.headers=Object(a["__assign"])(Object(a["__assign"])({},t.headers),(d={},d[i]=String(c),d))))),[2,r(Object(a["__assign"])(Object(a["__assign"])({},n),{request:t}))]}))}))}}}var s={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},l=function(e){return{applyToStack:function(t){t.add(n(e.bodyLengthChecker),s)}}}},a9cb:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return h}));var a=r("9ab4"),o=r("928f");function i(e){var t,r=this,i=e.credentials||e.credentialDefaultProvider(e),s=n(i),l=e.signingEscapePath,c=void 0===l||l,d=e.systemClockOffset,u=void 0===d?e.systemClockOffset||0:d,h=e.sha256;return t=e.signer?n(e.signer):function(){return n(e.region)().then((function(t){return Object(a["__awaiter"])(r,void 0,void 0,(function(){return Object(a["__generator"])(this,(function(r){switch(r.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[r.sent()||{},t]]}}))}))})).then((function(t){var r=Object(a["__read"])(t,2),i=r[0],n=r[1],l=i.signingRegion,d=i.signingService;return e.signingRegion=e.signingRegion||l||n,e.signingName=e.signingName||d||e.serviceId,new o["a"]({credentials:s,region:e.signingRegion,service:e.signingName,sha256:h,uriEscapePath:c})}))},Object(a["__assign"])(Object(a["__assign"])({},e),{systemClockOffset:u,signingEscapePath:c,credentials:s,signer:t})}function n(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var s=r("1279"),l=function(e,t){return Math.abs(c(t).getTime()-e)>=3e5},c=function(e){return new Date(Date.now()+e)};function d(e){return function(t,r){return function(o){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var i,n,c,d,u,h,p,f,m;return Object(a["__generator"])(this,(function(y){switch(y.label){case 0:return s["a"].isInstance(o.request)?"function"!==typeof e.signer?[3,2]:[4,e.signer()]:[2,t(o)];case 1:return n=y.sent(),[3,3];case 2:n=e.signer,y.label=3;case 3:return i=n,d=t,u=[Object(a["__assign"])({},o)],m={},[4,i.sign(o.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:r["signing_region"],signingService:r["signing_service"]})];case 4:return[4,d.apply(void 0,[a["__assign"].apply(void 0,u.concat([(m.request=y.sent(),m)]))])];case 5:return c=y.sent(),h=c.response.headers,p=h&&(h.date||h.Date),p&&(f=Date.parse(p),l(f,e.systemClockOffset)&&(e.systemClockOffset=f-Date.now())),[2,c]}}))}))}}}var u={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},h=function(e){return{applyToStack:function(t){t.addRelativeTo(d(e),u)}}}},b115:function(e,t,r){},b60a:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("form",{ref:"formRef",staticStyle:{display:"none"},attrs:{method:"post",action:"https://t.2c2p.com/RedirectV3/payment"}},[t("input",{attrs:{type:"hidden",name:"version"},domProps:{value:e.version}}),t("input",{attrs:{type:"hidden",name:"merchant_id"},domProps:{value:e.merchant_id}}),t("input",{attrs:{type:"hidden",name:"currency"},domProps:{value:e.currency}}),t("input",{attrs:{type:"hidden",name:"user_defined_1"},domProps:{value:e.user_defined_1}}),t("input",{attrs:{type:"hidden",name:"user_defined_2"},domProps:{value:e.user_defined_2}}),t("input",{attrs:{type:"hidden",name:"request_3ds"},domProps:{value:e.request_3ds}}),t("input",{attrs:{type:"hidden",name:"enable_store_card"},domProps:{value:e.enable_store_card}}),e.stored_card_unique_id?t("input",{attrs:{type:"hidden",name:"stored_card_unique_id"},domProps:{value:e.stored_card_unique_id}}):e._e(),t("input",{attrs:{type:"hidden",name:"hash_value"},domProps:{value:e.hash_value}}),e._v(" PRODUCT INFO : "),t("input",{attrs:{type:"hidden",name:"payment_description"},domProps:{value:e.payment_description}}),t("br"),e._v(" ORDER NO : "),t("input",{attrs:{type:"hidden",name:"order_id"},domProps:{value:e.order_id}}),t("br"),e._v(" AMOUNT: "),t("input",{attrs:{type:"hidden",name:"amount"},domProps:{value:e.amount}}),t("br")])])},o=[],i={name:"CreditCardFormV2",data(){return{amount:null,currency:null,hash_value:null,merchant_id:null,order_id:null,payment_description:null,request_3ds:null,enable_store_card:null,stored_card_unique_id:null,result_url_2:null,user_defined_1:null,user_defined_2:null,version:null}},methods:{setInfo(e){this.amount=e.amount,this.currency=e.currency,this.hash_value=e.hash_value,this.merchant_id=e.merchant_id,this.order_id=e.order_id,this.payment_description=e.payment_description,this.request_3ds=e.request_3ds,this.enable_store_card=e.enable_store_card,this.stored_card_unique_id=e.stored_card_unique_id,this.result_url_2=e.result_url_2,this.user_defined_1=e.user_defined_1,this.user_defined_2=e.user_defined_2,this.version=e.version},submit(){this.$nextTick(()=>{this.$refs.formRef.submit()})}}},n=i,s=r("2877"),l=Object(s["a"])(n,a,o,!1,null,null,null);t["default"]=l.exports},bdc3:function(e,t,r){"use strict";r("fd5a")},c14f:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r("9ab4"),o=r("337f"),i=r.n(o),n=function(e){var t=e.serviceId,r=e.clientVersion;return function(){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var e,o,n,s,l,c,d,u,h;return Object(a["__generator"])(this,(function(a){return e=(null===(n=null===window||void 0===window?void 0:window.navigator)||void 0===n?void 0:n.userAgent)?i.a.parse(window.navigator.userAgent):void 0,o=[["aws-sdk-js",r],["os/"+((null===(s=null===e||void 0===e?void 0:e.os)||void 0===s?void 0:s.name)||"other"),null===(l=null===e||void 0===e?void 0:e.os)||void 0===l?void 0:l.version],["lang/js"],["md/browser",(null!==(d=null===(c=null===e||void 0===e?void 0:e.browser)||void 0===c?void 0:c.name)&&void 0!==d?d:"unknown")+"_"+(null!==(h=null===(u=null===e||void 0===e?void 0:e.browser)||void 0===u?void 0:u.version)&&void 0!==h?h:"unknown")]],t&&o.push(["api/"+t,r]),[2,o]}))}))}}},c2da:function(e,t,r){"use strict";r("7c18")},d389:function(e,t,r){"use strict";r("84ae")},da3e:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var a=r("9ab4");function o(e){var t,r,o={};if(e=e.replace(/^\?/,""),e)try{for(var i=Object(a["__values"])(e.split("&")),n=i.next();!n.done;n=i.next()){var s=n.value,l=Object(a["__read"])(s.split("="),2),c=l[0],d=l[1],u=void 0===d?null:d;c=decodeURIComponent(c),u&&(u=decodeURIComponent(u)),c in o?Array.isArray(o[c])?o[c].push(u):o[c]=[o[c],u]:o[c]=u}}catch(h){t={error:h}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}var i=function(e){var t,r=new URL(e),a=r.hostname,i=r.pathname,n=r.port,s=r.protocol,l=r.search;return l&&(t=o(l)),{hostname:a,port:n?parseInt(n):void 0,protocol:s,path:i,query:t}}},da66:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("router-link",{staticClass:"row",staticStyle:{"text-decoration":"none"},attrs:{to:{name:"SingleProduct",params:{id:e.info.cprcode,index:e.index,source:e.source}}}},[t("div",{staticClass:"card-product row full-width",on:{click:e.onClickProductCard}},[t("div",{staticClass:"col-4 flex items-start q-pa-xs"},[t("q-img",{staticClass:"img",attrs:{basic:"","placeholder-src":r("cbd0"),height:"90px",contain:"",src:e.imageSrc},on:{error:function(t){return e.retryImageSrc(e.info.cprcode,e.info.pr_use_original_img)}}})],1),t("div",{staticClass:"col-8 column detail",style:`\n        ${e.showShadow?"box-shadow: -2.8px 0px 2.2px rgba(245, 245, 255, 1);":""}\n          padding:10px 0\n      `},[t("div",[t("div",{staticClass:"brand"},[e._v(e._s(e.formatedName))]),t("div",{staticClass:"row q-gutter-xs q-mr-sm"},["PREORDER_RELATIVE"===e.preorder.type?t("q-badge",{attrs:{outline:"",color:"lime-10"}},[e._v(e._s(e.preorder.relativeDay)+" day advance order")]):e._e(),"PREORDER_FIXED"===e.preorder.type?t("q-badge",{attrs:{outline:"",color:"lime-10"}},[e._v("Start Delivery from "+e._s(e.displayDeliveryDate))]):e._e()],1)]),e.two4discount?t("div",[t("q-badge",{attrs:{outline:"",color:"red-10"}},[e._v(" Buy 2 save ฿ "+e._s(e.two4discount)+" ")])],1):e._e(),e.isShopAtStore?t("div",{staticClass:"row q-mb-xs q-mr-sm"},[t("div",{staticClass:"row items-baseline self-end"},[t("div",[t("span",{staticClass:"special-price",staticStyle:{color:"#575757"}},[t("span",{staticClass:"b-sign"},[e._v("฿")]),e._v(" "+e._s(e.$priceFormat(e.info.price))+" ")]),e.info.lastPrice?t("span",{staticClass:"special-price",staticStyle:{color:"#979797","text-decoration":"line-through"}},[t("span",{staticClass:"b-sign"},[e._v("฿")]),e._v(" "+e._s(e.$priceFormat(e.info.lastPrice))+" ")]):e._e(),e.info.lastPrice?t("span",{staticClass:"discount-price"},[e._v("-"+e._s(e.calculateDiscount)+"%")]):e._e(),e.info.unit?t("span",{staticClass:"unit-price"},[e._v(" /"+e._s(e.info.unit)+" ")]):e._e()])]),t("div",{staticClass:"col-grow"}),t("q-btn",{attrs:{rounded:"",color:"dark",size:"7px","aria-label":"add to cart"}},[t("div",{staticClass:"row items-center no-wrap"},[t("q-icon",{attrs:{left:"",name:"shopping_cart"}}),t("div",{staticClass:"text-center"},[e._v("Store"),t("br"),e._v("Only")])],1)])],1):e.info.pre_type||e.info.stock>0?t("div",{staticClass:"row q-mb-xs q-mr-sm"},[t("div",{staticClass:"row items-baseline self-end"},[t("div",[t("span",{staticClass:"special-price"},[t("span",{staticClass:"b-sign"},[e._v("฿")]),e._v(" "+e._s(e.$priceFormat(e.info.price))+" "),t("span",{staticClass:"q-pr-sm",staticStyle:{"font-size":"14px"}},[e._v("/"+e._s(e.info.hema_sizedesc)+" ")])]),e.info.lastPrice?t("span",{staticClass:"special-price",staticStyle:{color:"#575757","text-decoration":"line-through"}},[t("span",{staticClass:"b-sign"},[e._v("฿")]),e._v(" "+e._s(e.$priceFormat(e.info.lastPrice))+" ")]):e._e(),e.info.lastPrice?t("span",{staticClass:"discount-price"},[e._v("-"+e._s(e.calculateDiscount)+"%")]):e._e(),e.info.unit?t("span",{staticClass:"unit-price"},[e._v("/"+e._s(e.info.unit))]):e._e()])]),t("div",{staticClass:"col-grow text-right"},[e.atToCard<=0?t("div",[t("q-btn",{attrs:{round:"",color:"primary",size:"10px",icon:"shopping_cart","aria-label":"add to cart"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.onAtToCard(e.info)}}})],1):t("div",{staticStyle:{display:"flex","justify-content":"flex-end","align-items":"center"}},[t("div",[t("q-btn",{attrs:{round:"",dense:"",color:"primary",size:"10px","aria-label":"remove from cart"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.subtract(e.info)}}},[t("i",{staticClass:"fas fa-minus"})])],1),t("p",{staticClass:"special-price",staticStyle:{padding:"0 10px",margin:"0px"}},[e._v(" "+e._s(e.atToCard)+" ")]),t("div",[t("q-btn",{attrs:{round:"",dense:"",color:"primary",size:"10px",icon:"add","aria-label":"add to cart"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.onAtToCard(e.info)}}})],1)])])]):e.info.stock<=0||void 0===e.info.stock?t("div",{staticClass:"row q-mb-xs q-mr-sm justify-end"},[t("div",{staticClass:"row items-baseline self-end"},[t("div",[t("span",{staticClass:"special-price",staticStyle:{color:"#575757"}},[t("span",{staticClass:"b-sign"},[e._v("฿")]),e._v(" "+e._s(e.$priceFormat(e.info.price))+" "),t("span",{staticClass:"q-pr-sm",staticStyle:{"font-size":"14px"}},[e._v("/"+e._s(e.info.hema_sizedesc)+" ")])]),e.info.lastPrice?t("span",{staticClass:"special-price",staticStyle:{color:"#979797","text-decoration":"line-through"}},[t("span",{staticClass:"b-sign"},[e._v("฿")]),e._v(" "+e._s(e.$priceFormat(e.info.lastPrice))+" ")]):e._e(),e.info.lastPrice?t("span",{staticClass:"discount-price"},[e._v("-"+e._s(e.calculateDiscount)+"%")]):e._e(),e.info.unit?t("span",{staticClass:"unit-price"},[e._v(" /"+e._s(e.info.unit)+" ")]):e._e()])]),t("div",{staticClass:"col-grow"}),t("q-btn",{attrs:{rounded:"",color:"dark",size:"7px","aria-label":"add to cart"}},[t("div",{staticClass:"row items-center no-wrap"},[t("q-icon",{attrs:{left:"",name:"shopping_cart"}}),t("div",{staticClass:"text-center"},[e._v("out of"),t("br"),e._v("stock")])],1)])],1):e._e()]),e.badge.left?t("q-img",{staticClass:"overlay",attrs:{basic:"",src:""+e.badge.left}}):e._e(),e.badge.right?t("q-img",{staticClass:"overlay-right",attrs:{basic:"",src:""+e.badge.right}}):e._e()],1)])},o=[],i=(r("14d9"),r("013f")),n=r("07f7"),s=r("0454"),l=r("256a"),c=r("2544"),d=r("d62e"),u=r("58a8"),h=r("d1ae"),p=r("bd6e"),f={name:"ProductCardH",props:{info:Object,index:Number,source:{type:String,required:!0}},components:{QBadge:u["a"]},mixins:[n["a"],s["a"],l["a"],c["a"],d["a"],h["a"]],data(){return{loading:!1,showShadow:!1,atToCard:0}},computed:{badge(){return this.info.badge||{}},two4discount(){return this.info.two4discount},formatedName(){return`${this.info.hema_brand_en} ${this.info.hema_name_en}`}},watch:{"info.cprcode":{handler:function(e){this.initializeImageSrc(e,this.info.pr_use_original_img)}}},mounted(){this.showShadow=!1,this.initializeImageSrc(this.info.cprcode,this.info.pr_use_original_img)},methods:{onClickProductCard(){if(this.$emit("click-card"),dataLayer){var e;const t=Object(p["b"])({...this.info,quantity:this.atToCard},null!==(e=this.index)&&void 0!==e?e:0,this.source);dataLayer.push({event:"select_item",ecommerce:{items:[t]}})}},$priceFormat(e){return Object(i["a"])(e)},async subtract(e){try{const{message:r}=await this.$store.dispatch("cart/Decrement",e);if("SUCCESS"===r&&(this.atToCard-=1,dataLayer)){var t;const e=Object(p["b"])({...this.info,quantity:1},null!==(t=this.index)&&void 0!==t?t:0,this.source);dataLayer.push({event:"remove_from_cart",ecommerce:{items:[e]}})}}catch(r){}},onAtToCard(e){this.AddToCart(e,e=>{if(!e&&(this.atToCard+=1,this.$gtag&&this.$gtag.event("add_to_cart",{currency:"THB",items:[{id:this.info.cprcode,name:this.info.hema_name_en}],value:this.atToCard}),window.fbq&&window.fbq("trackCustom","add_to_cart",{currency:"THB",items:[{id:this.info.cprcode,name:this.info.hema_name_en}],value:this.atToCard}),dataLayer)){var t;const e=Object(p["b"])({...this.info,quantity:1},null!==(t=this.index)&&void 0!==t?t:0,this.source);dataLayer.push({event:"add_to_cart",ecommerce:{items:[e]}})}this.$emit("add-to-cart")})}}},m=f,y=(r("bdc3"),r("f7ff"),r("2877")),g=Object(y["a"])(m,a,o,!1,null,"4813a30e",null);t["default"]=g.exports},ded1:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var a=r("9ab4"),o=r("4c04");function i(e){var t,r,i=[];try{for(var n=Object(a["__values"])(Object.keys(e).sort()),s=n.next();!s.done;s=n.next()){var l=s.value,c=e[l];if(l=Object(o["a"])(l),Array.isArray(c))for(var d=0,u=c.length;d<u;d++)i.push(l+"="+Object(o["a"])(c[d]));else{var h=l;(c||"string"===typeof c)&&(h+="="+Object(o["a"])(c)),i.push(h)}}}catch(p){t={error:p}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return i.join("&")}},ed9f:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));for(var a={},o={},i=0;i<256;i++){var n=i.toString(16).toLowerCase();1===n.length&&(n="0"+n),a[i]=n,o[n]=i}function s(e){for(var t="",r=0;r<e.byteLength;r++)t+=a[e[r]];return t}},f3b6:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return p}));var a=r("9ab4");function o(e){return Object(a["__assign"])(Object(a["__assign"])({},e),{customUserAgent:"string"===typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent})}var i=r("1279"),n="user-agent",s="x-amz-user-agent",l=" ",c=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,d=function(e){return function(t,r){return function(o){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var c,d,h,p,f,m,y,g;return Object(a["__generator"])(this,(function(v){switch(v.label){case 0:return c=o.request,i["a"].isInstance(c)?(d=c.headers,h=(null===(y=null===r||void 0===r?void 0:r.userAgent)||void 0===y?void 0:y.map(u))||[],[4,e.defaultUserAgentProvider()]):[2,t(o)];case 1:return p=v.sent().map(u),f=(null===(g=null===e||void 0===e?void 0:e.customUserAgent)||void 0===g?void 0:g.map(u))||[],d[s]=Object(a["__spread"])(p,h,f).join(l),m=Object(a["__spread"])(p.filter((function(e){return e.startsWith("aws-sdk-")})),f).join(l),"browser"!==e.runtime&&m&&(d[n]=d[n]?d[n]+" "+m:m),[2,t(Object(a["__assign"])(Object(a["__assign"])({},o),{request:c}))]}}))}))}}},u=function(e){var t=Object(a["__read"])(e,2),r=t[0],o=t[1],i=r.indexOf("/"),n=r.substring(0,i),s=r.substring(i+1);return"api"===n&&(s=s.toLowerCase()),[n,s,o].filter((function(e){return e&&e.length>0})).map((function(e){return null===e||void 0===e?void 0:e.replace(c,"_")})).join("/")},h={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},p=function(e){return{applyToStack:function(t){t.add(d(e),h)}}}},f7ff:function(e,t,r){"use strict";r("9622")},fa24:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("q-dialog",{attrs:{persistent:""},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("q-card",[t("q-card-section",[t("div",{staticClass:"text-h6 text-primary"},[e._v(" Sorry, these items are not available now. ")])]),e.missingProductList.length>0?t("q-card-section",{staticClass:"scroll",staticStyle:{"max-height":"50vh"}},[t("q-list",{attrs:{dense:""}},e._l(e.missingProductList,(function(r,a){return t("q-item",{key:a},[t("q-item-section",[t("div",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(r.productName)+" ")])])],1)})),1)],1):e._e(),t("q-separator"),t("q-card-actions",{attrs:{align:"right"}},[t("q-btn",{attrs:{"no-wrap":"","no-caps":"",flat:"",label:"Refresh",color:"primary"},on:{click:e.onRefresh}})],1)],1)],1)},o=[],i=r("429b"),n=r("7460"),s=r("27f9"),l=r("1c1c"),c=r("66e5"),d=r("4074"),u=r("0170"),h=r("3786"),p=r("eb85"),f=r("cb32"),m=r("8f8e"),y=r("74f7"),g=r("0d59"),v=r("24e8"),b=r("f09f"),w=r("a370"),_=r("4b7e"),k=r("d847"),C=r("05c0"),D=r("2c91");const x={QTabs:i["a"],QTab:n["a"],QInput:s["a"],QList:l["a"],QItem:c["a"],QItemSection:d["a"],QItemLabel:u["a"],QRadio:h["a"],QSeparator:p["a"],QAvatar:f["a"],QCheckbox:m["a"],QInnerLoading:y["a"],QSpinner:g["a"],QDialog:v["a"],QCard:b["a"],QCardSection:w["a"],QCardActions:_["a"],QBar:k["a"],QTooltip:C["a"],QSpace:D["a"]};var q={name:"OutOfStockDialog",components:{...x},props:{show:{type:Boolean,required:!0},missingProductList:{type:Array,default:function(){return[]}},onRefresh:{type:Function}}},S=q,O=r("2877"),j=Object(O["a"])(S,a,o,!1,null,null,null);t["default"]=j.exports},fad4:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r("9ab4"),o=function(){return function(e,t){return function(r){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var o,i,n,s,l,c,d,u,h;return Object(a["__generator"])(this,(function(p){switch(p.label){case 0:return o=t.clientName,i=t.commandName,n=t.inputFilterSensitiveLog,s=t.logger,l=t.outputFilterSensitiveLog,[4,e(r)];case 1:return c=p.sent(),s?("function"===typeof s.info&&(d=c.output,u=d.$metadata,h=Object(a["__rest"])(d,["$metadata"]),s.info({clientName:o,commandName:i,input:n(r.input),output:l(h),metadata:u})),[2,c]):[2,c]}}))}))}}},i={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},n=function(e){return{applyToStack:function(e){e.add(o(),i)}}}},fd5a:function(e,t,r){}}]);