PageSourceSearch

https://my.haupcar.com/static/js/9.ad8dd450.chunk.js

js haupcar.com collected 2026-10-01 11:43:40 UTC 196,181 bytes, 2 lines download raw bytes

1(this["webpackJsonpvehicle-submission-web"]=this["webpackJsonpvehicle-submission-web"]||[]).push([[9],{327:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i={EN:{brandChoice:{title:"Add a new car",desc:"Choose your vehicle brand to continue.",teslaTitle:"Tesla",teslaDesc:"Connect your Tesla account and let HAUP retrieve your car information automatically.",othersTitle:"Others",othersDesc:"Enter your car details manually through the standard submission process.",next:"Next"},overview:{title:"Share your car in 3 simple main steps to be listed on platform",step1Label:"1. Connect your Tesla",step1Desc:"Connect your Tesla to securely sync your vehicle information with HAUP.",step2Label:"2. Add your car location",step2Desc:"Let renters know where to pick up your car to improve visibility and makes booking easier.",step3Label:"3. Set your rental service and pricing",step3Desc:"Decide how much you want to earn and HAUP will help you estimate your income.",additionalTitle:"Additional steps to start earnings",additionalStep1:"4. Upload clear photos of the car",additionalStep2:"5. Upload documents",skipButton:"Can skip for now",getStarted:"Get Started"},connect:{heading:"Connect your Tesla",subheading:"Securely connect your Tesla to HAUP and we'll automatically retrieve your vehicle information.",secureNote:"Your Tesla information is securely transferred to HAUP.",connectBtn:"Connect Tesla",connectingBtn:"Redirecting to Tesla...",retrieveTitle:"What HAUP can retrieve",retrieveItems:["Model & variant","Vehicle year","VIN","Mileage","Specifications"],errorTitle:"Couldn't connect your Tesla",errorDesc:"The Tesla connection was cancelled or failed. You can try again.",errorRetry:"Try again"},syncing:{stepIndicator:"STEP 1 OF 5",title:"Your Tesla information",connectingTitle:"Connecting to your Tesla...",connectingDesc:"We're securely retrieving your vehicle information.",takesAFewSeconds:"This takes a few seconds...",itemConnected:"Tesla connected",itemRetrieving:"Retrieving vehicle information",itemPreparing:"Preparing your submission"},loading:{title:"Retrieving your vehicles",desc:"We're securely loading the cars on your Tesla account."},pick:{title:"We found {count} Teslas",desc:"Which vehicle would you like to list on HAUP?",continueBtn:"Continue",ownerBadge:"Owner",stateOnline:"Online",stateOffline:"Offline",stateAsleep:"Asleep",noName:"Unnamed Tesla"},empty:{title:"We couldn't find a Tesla you own",desc:"Make sure you signed in with the Tesla account that owns the car, and that you shared the vehicle during sign-in.",retryBtn:"Try a different Tesla account",manualBtn:"Enter my car details manually"},confirm:{stepIndicator:"STEP 1 OF 5",title:"Your Tesla information",foundTitle:"We found your Tesla",syncedPill:"Synced from Tesla",foundDesc:"Confirm the vehicle you'd like to list.",selectedVehicle:"Selected vehicle",specModel:"Model",specVariation:"Variation",specYear:"Year",specVin:"VIN",specMileage:"Mileage",specExteriorColor:"Exterior color",specInteriorColor:"Interior color",kmUnit:"km",detailsSectionTitle:"Vehicle registration",plateLabel:"License plate",provinceLabel:"Province",confirmBtn:"Yes, this is my vehicle and continue",offlinePill:"Partly synced",offlineNote:"This car is offline, so we couldn't read its mileage and colour. Please enter the mileage below \u2014 you can update the rest later.",mileageLabel:"Mileage (km)"},sell:{question:"Do you want to sell your Tesla?",helper:"Set your expected selling price and we'll use it to understand your preferences.",yes:"Yes",no:"No",sellingPriceLabel:"Selling price",thb:"THB",useSuggestedPrice:"Use HAUP suggested price",setPriceTitle:"Set the selling price",setPriceHelper:"Set your expected selling price and we'll use it to understand your preferences.",netPriceNote:"The price you set here reflects your net selling price after service fees. So, it can be different with the price shown to buyers on HAUP platform.",serviceInvoicesTitle:"Service invoices",uploadCta:"Upload or take a photo",invoicesRequired:"Please upload at least one service invoice."},sellFinish:{image:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/4DpAS3fs2CyFYpmP56de8hnx1WVRizshhkJkf1JAwe2x6NCA1RXgXFkPShBdYtGAB1zhbKUeVJJNK6mzFMwYRUgu.png",title:"Your Tesla is submitted for sale",subtitle:"Our team will review your details and service invoices, then publish your listing on the HAUP Tesla Marketplace. We'll be in touch soon."},finishChecklistFirst:"Connect your Tesla"},TH:{brandChoice:{title:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e23\u0e16\u0e04\u0e31\u0e19\u0e43\u0e2b\u0e21\u0e48",desc:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e22\u0e35\u0e48\u0e2b\u0e49\u0e2d\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d",teslaTitle:"Tesla",teslaDesc:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e1a\u0e31\u0e0d\u0e0a\u0e35 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13 \u0e41\u0e25\u0e49\u0e27\u0e43\u0e2b\u0e49 HAUP \u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34",othersTitle:"\u0e22\u0e35\u0e48\u0e2b\u0e49\u0e2d\u0e2d\u0e37\u0e48\u0e19",othersDesc:"\u0e01\u0e23\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e14\u0e49\u0e27\u0e22\u0e15\u0e19\u0e40\u0e2d\u0e07\u0e1c\u0e48\u0e32\u0e19\u0e02\u0e3
11\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e23\u0e16\u0e41\u0e1a\u0e1a\u0e21\u0e32\u0e15\u0e23\u0e10\u0e32\u0e19",next:"\u0e16\u0e31\u0e14\u0e44\u0e1b"},overview:{title:"\u0e41\u0e0a\u0e23\u0e4c\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e43\u0e19 3 \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e2b\u0e25\u0e31\u0e01\u0e07\u0e48\u0e32\u0e22 \u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e25\u0e07\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e1a\u0e19\u0e41\u0e1e\u0e25\u0e15\u0e1f\u0e2d\u0e23\u0e4c\u0e21",step1Label:"1. \u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",step1Desc:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e0b\u0e34\u0e07\u0e04\u0e4c\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16\u0e01\u0e31\u0e1a HAUP \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22",step2Label:"2. \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e08\u0e2d\u0e14\u0e23\u0e16",step2Desc:"\u0e43\u0e2b\u0e49\u0e1c\u0e39\u0e49\u0e40\u0e0a\u0e48\u0e32\u0e23\u0e39\u0e49\u0e27\u0e48\u0e32\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e21\u0e2d\u0e07\u0e40\u0e2b\u0e47\u0e19\u0e41\u0e25\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e08\u0e2d\u0e07\u0e07\u0e48\u0e32\u0e22\u0e02\u0e36\u0e49\u0e19",step3Label:"3. \u
10e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e48\u0e32\u0e41\u0e25\u0e30\u0e23\u0e32\u0e04\u0e32",step3Desc:"\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e23\u0e32\u0e22\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e41\u0e25\u0e49\u0e27 HAUP \u0e08\u0e30\u0e0a\u0e48\u0e27\u0e22\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e23\u0e32\u0e22\u0e44\u0e14\u0e49\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",additionalTitle:"\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e34\u0e48\u0e21\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e23\u0e32\u0e22\u0e44\u0e14\u0e49",additionalStep1:"4. \u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e23\u0e39\u0e1b\u0e23\u0e16\u0e17\u0e35\u0e48\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19",additionalStep2:"5. \u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e40\u0e2d\u0e01\u0e2a\u0e32\u0e23",skipButton:"\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e01\u0e48\u0e2d\u0e19\u0e44\u0e14\u0e49",getStarted:"\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19"},connect:{heading:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",subheading:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e01\u0e31\u0e1a HAUP \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 \u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e08\u0e30\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34",secureNote:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 HAUP \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22",connectBtn:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla",connectingBtn:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e1e\u0e32\u0e44\u0e1b\u0e22\u0e31\u0e07 Tesla...",retrieveTitle:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48 HAUP \u0e14\u0e36\u0e07\u0e44\u0e14\u0e49",retrieveItems:["\u0e23\u0e38\u0e48\u0e19\u0e41\u0e25\u0e30\u0e23\u0e38\u0e48\u0e19\u0e22\u0e48\u0e2d\u0e22","\u0e1b\u0e35\u0e23\u0e16","\u0e40\u0e25\u0e02\u0e15\u0e31\u0e27\u0e16\u0e31\u0e07 (VIN)","\u0e40\u0e25\u0e02\u0e44\u0e21\u0e25\u0e4c","\u0e2a\u0e40\u0e1b\u0e04\u0e23\u0e16"],errorTitle:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e44\u0e21\u0e48\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08",errorDesc:"\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e16\u0e39\u0e01\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01\u0e2b\u0e23\u0e37\u0e2d\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14 \u0e04\u0e38\u0e13\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",errorRetry:"\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48"},syncing:{stepIndicator:"\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 1 \u0e08\u0e32\u0e01 5",title:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",connectingTitle:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13...",connectingDesc:"\u0e40\u0e23\u0e32\u0e01\u0e33\u0e25\u0e31\u0e07\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22",takesAFewSeconds:"\u0e43\u0e0a\u0e49\u0e40\u0e27\u0e25\u0e32\u0e2a\u0e31\u0e01\u0e04\u0e23\u0e39\u0e48...",itemConnected:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e41\u0e25\u0e49\u0e27",itemRetrieving:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16",itemPreparing:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13"},loading:{title:"\u0e01\u0e33\u0e25\u0e31\u0e07\u0e14\u0e36\u0e07\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",desc:"\u0e40\u0e23\u0e32\u0e01\u0e33\u0e25\u0e31\u0e07\u0e42\u0e2b\u0e25\u0e14\u0e23\u0e16\u0e43\u0e19\u0e1a\u0e31\u0e0d\u0e0a\u0e35 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22"},pick:{title:"\u0e40\u0e23\u0e32\u0e1e\u0e1a Tesla {count} \u0e04\u0e31\u0e19",desc:"\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e25\u0e07\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e23\u0e16\u0e04\u0e31\u0e19\u0e44\u0e2b\u0e19\u0e1a\u0e19 HAUP?",continueBtn:"\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d",ownerBadge:"\u0e40\u0e08\u0e49\u0e32\u0e02\u0e2d\u0e07",stateOnline:"\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c",stateOffline:"\u0e2d\u0e2d\u0e1f\u0e44\u0e25\u0e19\u0e4c",stateAsleep:"\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\u0e1e\u0e31\u0e01",noName:"Tesla \u0e44\u0e21\u0e48\u0e21\u0e35\u0e0a\u0e37\u0e48\u0e2d"},empty:{title:"\u0e44\u0e21\u0e48\u0e1e\u0e1a Tesla \u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e08\u0e49\u0e32\u0e02\u0e2d\u0e07",desc:"\u0e42\u0e1b\u0e23\u0e14\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e04\u0e38\u0e13\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e1a\u0e31\u0e0d\u0e0a\u0e35 Tesla \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e08\u0e49\u0e32\u0e02\u0e2d\u0e07\u0e23\u0e16 \u0e41\u0e25\u0e30\u0e44\u0e14\u0e49\u0e41\u0e0a\u0e23\u0e4c\u0e23\u0e16\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a",retryBtn:"\u0e25\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e1a\u0e31\u0e0d\u0e0a\u0e35 Tesla \u0e2d\u0e37\u0e48\u0e19",manualBtn:"\u0e01\u0e23\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e16\u0e14\u0e49\u0e27\u0e22\u0e15\u0e19\u0e40\u0e2d\u0e07"}
1,confirm:{stepIndicator:"\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 1 \u0e08\u0e32\u0e01 5",title:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",foundTitle:"\u0e40\u0e23\u0e32\u0e1e\u0e1a Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",syncedPill:"\u0e0b\u0e34\u0e07\u0e04\u0e4c\u0e08\u0e32\u0e01 Tesla",foundDesc:"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e23\u0e16\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e25\u0e07\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28",selectedVehicle:"\u0e23\u0e16\u0e17\u0e35\u0e48\u0e40\u0e25\u0e37\u0e2d\u0e01",specModel:"\u0e23\u0e38\u0e48\u0e19",specVariation:"\u0e23\u0e38\u0e48\u0e19\u0e22\u0e48\u0e2d\u0e22",specYear:"\u0e1b\u0e35",specVin:"\u0e40\u0e25\u0e02\u0e15\u0e31\u0e27\u0e16\u0e31\u0e07 (VIN)",specMileage:"\u0e40\u0e25\u0e02\u0e44\u0e21\u0e25\u0e4c",specExteriorColor:"\u0e2a\u0e35\u0e20\u0e32\u0e22\u0e19\u0e2d\u0e01",specInteriorColor:"\u0e2a\u0e35\u0e20\u0e32\u0e22\u0e43\u0e19",kmUnit:"\u0e01\u0e21.",detailsSectionTitle:"\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19\u0e23\u0e16",plateLabel:"\u0e1b\u0e49\u0e32\u0e22\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19",provinceLabel:"\u0e08\u0e31\u0e07\u0e2b\u0e27\u0e31\u0e14",confirmBtn:"\u0e43\u0e0a\u0e48 \u0e19\u0e35\u0e48\u0e04\u0e37\u0e2d\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e09\u0e31\u0e19 \u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d",offlinePill:"\u0e0b\u0e34\u0e07\u0e04\u0e4c\u0e1a\u0e32\u0e07\u0e2a\u0e48\u0e27\u0e19",offlineNote:"\u0e23\u0e16\u0e04\u0e31\u0e19\u0e19\u0e35\u0e49\u0e2d\u0e2d\u0e1f\u0e44\u0e25\u0e19\u0e4c\u0e2d\u0e22\u0e39\u0e48 \u0e40\u0e23\u0e32\u0e08\u0e36\u0e07\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2d\u0e48\u0e32\u0e19\u0e40\u0e25\u0e02\u0e44\u0e21\u0e25\u0e4c\u0e41\u0e25\u0e30\u0e2a\u0e35\u0e44\u0e14\u0e49 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e01\u0e23\u0e2d\u0e01\u0e40\u0e25\u0e02\u0e44\u0e21\u0e25\u0e4c\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07 \u0e2a\u0e48\u0e27\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2d\u0e37\u0e48\u0e19\u0e41\u0e01\u0e49\u0e44\u0e02\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07\u0e44\u0e14\u0e49",mileageLabel:"\u0e40\u0e25\u0e02\u0e44\u0e21\u0e25\u0e4c (\u0e01\u0e21.)"},sell:{question:"\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e02\u0e32\u0e22 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48?",helper:"\u0e23\u0e30\u0e1a\u0e38\u0e23\u0e32\u0e04\u0e32\u0e02\u0e32\u0e22\u0e17\u0e35\u0e48\u0e04\u0e32\u0e14\u0e2b\u0e27\u0e31\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",yes:"\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23",no:"\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23",sellingPriceLabel:"\u0e23\u0e32\u0e04\u0e32\u0e02\u0e32\u0e22",thb:"\u0e1a\u0e32\u0e17",useSuggestedPrice:"\u0e43\u0e0a\u0e49\u0e23\u0e32\u0e04\u0e32\u0e17\u0e35\u0e48 HAUP \u0e41\u0e19\u0e30\u0e19\u0e33",setPriceTitle:"\u0e15\u0e31\u0e49\u0e07\u0e23\u0e32\u0e04\u0e32\u0e02\u0e32\u0e22",setPriceHelper:"\u0e23\u0e30\u0e1a\u0e38\u0e23\u0e32\u0e04\u0e32\u0e02\u0e32\u0e22\u0e17\u0e35\u0e48\u0e04\u0e32\u0e14\u0e2b\u0e27\u0e31\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13",netPriceNote:"\u0e23\u0e32\u0e04\u0e32\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e15\u0e31\u0e49\u0e07\u0e44\u0e27\u0e49\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d\u0e23\u0e32\u0e04\u0e32\u0e02\u0e32\u0e22\u0e2a\u0e38\u0e17\u0e18\u0e34\u0e2b\u0e25\u0e31\u0e07\u0e2b\u0e31\u0e01\u0e04\u0e48\u0e32\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e25\u0e49\u0e27 \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e2d\u0e32\u0e08\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e08\u0e32\u0e01\u0e23\u0e32\u0e04\u0e32\u0e17\u0e35\u0e48\u0e41\u0e2a\u0e14\u0e07\u0e43\u0e2b\u0e49\u0e1c\u0e39\u0e49\u0e0b\u0e37\u0e49\u0e2d\u0e40\u0e2b\u0e47\u0e19\u0e1a\u0e19\u0e41\u0e1e\u0e25\u0e15\u0e1f\u0e2d\u0e23\u0e4c\u0e21 HAUP",serviceInvoicesTitle:"\u0e43\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e2b\u0e19\u0e35\u0e49\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23",uploadCta:"\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e16\u0e48\u0e32\u0e22\u0e23\u0e39\u0e1b",invoicesRequired:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e43\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e2b\u0e19\u0e35\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e49\u0e2d\u0e22 1 \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"},sellFinish:{image:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/4DpAS3fs2CyFYpmP56de8hnx1WVRizshhkJkf1JAwe2x6NCA1RXgXFkPShBdYtGAB1zhbKUeVJJNK6mzFMwYRUgu.png",title:"\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e02\u0e32\u0e22\u0e41\u0e25\u0e49\u0e27",subtitle:"\u0e17\u0e35\u0e21\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e08\u0e30\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e25\u0e30\u0e43\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e2b\u0e19\u0e35\u0e49\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13 \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e40\u0e1c\u0e22\u0e41\u0e1e\u0e23\u0e48\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e02\u0e32\u0e22\u0e1a\u0e19 HAUP Tesla Marketplace \u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e08\u0e30\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e01\u0e25\u0e31\u0e1a\u0e42\u0e14\u0e22\u0e40\u0e23\u0e47\u0e27"},finishChecklistFirst:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d Tesla \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13"}};function r(e){return i[e]}},331:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(2),r=n(3),o=n(0),s=n(1),c=function(e){var t,n=e.imgSrc,c=e.ratio,a=e.imgStyle,l=e.loading,d=void 0!==l&&l,p=Object(r.a)(c,2),u=p[0],x=p[1],h=Object(o.useRef)(null),b=Object(o.useState)(),f=Object(r.a)(b,2),g=f[0],j=f[1];return Object(o.useEffect)((function(){var e;if(null!==h&&void 0!==h&&null!==(e=h.current)&&void 0!==e&&e.offsetWidth&&c){var t,n=(null===h||void 0===h||null===(t=h.current)||void 0===t?void 0:t.offsetWidth)/u*x;j(n)}else setTimeout((function(){var e;if(null!==h&&void 0!==h&&null!==(e=h.current)&&void 0!==e&&e.offsetWidth&&c){var t,n=(null===h||void 0===h||null===(t=h.current)||void 0===t?void 0:t.offsetWidth)/u*x;j(n)}}),200)}),[null===h||void 0===h||null===(t=h.current)||void 0===t?void 0:t.offsetWidth,c]),Object(s.jsx)("div",{ref:h,style:{width:"100%"},children:d?Object(s.jsx)("div",{className:"image-placeholder-shimmer",style:{width:"100%",height:g,borderRadius:null===a||void 0===a?void 0:a.borderRadius}}):Object(s.jsx)("img",{src:n,width:"100%",style:Object(i.a)({height:g,objectFit:"cover",maxWidth:"100vw",maxHeight:"100vh"},a)})})}},336:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p}));var i=n(6),r=n(8),o=n(20),s=n.n(o),c=n(28),a=n(30),l=c.a.restful,d=function(){var e=Object(r.a)(Object(i.a)().mark((function e(t){var n,r,o;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(a.g)(),r={project:"haup-stable"}
1,n&&(r.Authorization=n),e.next=5,s.a.get("".concat(l.URL,"/car-submit/").concat(t),{headers:r});case 5:if((o=e.sent).data.success){e.next=8;break}return e.abrupt("return",null);case 8:return e.abrupt("return",o.data.data);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=Object(r.a)(Object(i.a)().mark((function e(){var t,n;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(a.g)(),e.next=3,s.a.get("".concat(l.URL,"/car-submit"),{headers:{Authorization:t,project:"haup-stable"}});case 3:return n=e.sent,e.abrupt("return",n.data.data);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},337:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c}));var i=n(28);function r(e){if(!e)return!1;var t=new Date(e).getTime(),n=new Date(i.a.feature.PRO_FLOW_DEPLOYMENT_DATE).getTime();return!isNaN(t)&&!isNaN(n)&&t<n}function o(e,t){return!r(e)&&"yes"===t}function s(e){return"TESLA"===e}function c(e,t){return s(e)&&!0===t}},338:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return v})),n.d(t,"a",(function(){return C}));var i=n(6),r=n(2),o=n(3),s=n(8),c=n(101),a=n(339),l={brandLogo:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2QdbuxALBAcBs29nJkEJb8BCmRFq1W1QXE6uy4kgjEVUedJgQJVmvzaQJcwPJCgGgXVwaEqrcn81irc5d81DYtXe.png",haupLogo:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1jfo38hBm4jviNagG5Pev2uWTNcFAC6kWbx6kKWxzE6NrpN4sTd7bsK86Qdhi8qfTszrQoY9bAfGGQhTJHzAuzC5.png",teslaRed:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/5LFJjq2svMhuAGC8GeBE4vHZ3WH7efX8mkE61B2fMPdTetPeeKhCmXzE8EATcnyTTyuu2orD3HqDJfHfqxzBLeyQ.png",teslaBlack:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1ttp5NZ7F26XtMH7Fd2E186RkSR5YvTVDUuqee8KcFc4tRwAf7px4xSqeb9tNwzJt8MpZQyahFwRiacRzvp9Vn7x.png",step1Welcome:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/4DpAS3fs2CyFYpmP56de8hnx1WVRizshhkJkf1JAwe2x6NCA1RXgXFkPShBdYtGAB1zhbKUeVJJNK6mzFMwYRUgu.png",step2:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/63UoWcecpFRq5TC26yq4KHMqMzuypJpQ9Loqph8NqYkc16HcNyfSwecdbLiHtgv6zUu7h37Eekunb6LLA4zniepR.png",step3:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/4dJCwNnYfiuXMmEk73uV76ceS8hgRnC16gGMgmsDNWyUCFJnDY7fUjFPELG5Q1y1Una7KMnk6xiiC
1Fp2wBXJn8tf.png"},d="TESLA",p="BLACK",u=function(e){return(e||"").toLowerCase().replace(/[\s_-]+/g,"")},x=function(e){return u(e).includes("tesla")},h={MODEL_3:function(e){return u(e).includes("model3")},MODEL_Y:function(e){return u(e).includes("modely")},MODEL_S:function(e){return u(e).includes("models")},MODEL_X:function(e){return u(e).includes("modelx")}},b={MODEL_3:"Model 3",MODEL_Y:"Model Y",MODEL_S:"Model S",MODEL_X:"Model X"};function f(e){if(e&&!(e.length<4)){var t=e[3].toUpperCase();return"3"===t?"MODEL_3":"S"===t?"MODEL_S":"X"===t?"MODEL_X":"Y"===t?"MODEL_Y":void 0}}var g={A:2010,B:2011,C:2012,D:2013,E:2014,F:2015,G:2016,H:2017,J:2018,K:2019,L:2020,M:2021,N:2022,P:2023,R:2024,S:2025,T:2026,V:2027,W:2028,X:2029,Y:2030};function j(e){if(e&&!(e.length<10))return g[e[9].toUpperCase()]}function m(e){return e?e.length<=4?e:"****".concat(e.slice(-4)):"\u2014"}function y(e,t){var n,i,r,o,s,c,d=null!==(n=t.vehicle_config)&&void 0!==n?n:{},p=t.vin||e.vin||"",x=d.car_type?function(e){var t=u(e);return"modely"===t?"MODEL_Y":"models"===t?"MODEL_S":"modelx"===t?"MODEL_X":"MODEL_3"}(d.car_type):null!==(i=f(p))&&void 0!==i?i:"MODEL_3",h=null!==(r=null===(o=t.vehicle_state)||void 0===o?void 0:o.odometer)&&void 0!==r?r:0,g=(d.exterior_color||"").replace(/([a-z])([A-Z])/g,"$1 $2")||"Unknown";return{vehicleId:Object(a.e)(e),vin:p,vinMasked:m(p),family:x,modelLabel:b[x],variationLabel:d.trim_badging?d.trim_badging.toUpperCase():b[x],year:null!==(s=j(p))&&void 0!==s?s:(new Date).getFullYear(),mileageKm:Math.round(1.609344*h),exteriorColor:g,exterior
1ColorKeyHint:d.exterior_color||"",displayName:e.display_name,heroImage:(c=d.exterior_color,u(c).includes("red")?l.teslaRed:l.teslaBlack)}}function O(e){var t,n,i=e.vin||"",r=null!==(t=f(i))&&void 0!==t?t:"MODEL_3";return{vehicleId:Object(a.e)(e),vin:i,vinMasked:m(i),family:r,modelLabel:b[r],variationLabel:b[r],year:null!==(n=j(i))&&void 0!==n?n:(new Date).getFullYear(),mileageKm:0,exteriorColor:"",exteriorColorKeyHint:"",displayName:e.display_name,heroImage:l.teslaBlack,partialSync:!0}}function v(){return k.apply(this,arguments)}function k(){return k=Object(s.a)(Object(i.a)().mark((function e(){var t,n,s,a,l,b,f,g,j,m,y,O,v,k,C,S=arguments;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=S.length>0&&void 0!==S[0]?S[0]:"MODEL_3",n=S.length>1?S[1]:void 0,s={brandKey:d,modelKey:t,subModel:"",engineType:"BEV",seat:"5",colorKey:p},e.prev=3,e.next=6,Promise.all([Object(c.a)(),Object(c.b)()]);case 6:return a=e.sent,l=Object(o.a)(a,2),b=l[0],f=l[1],g=b.find((function(e){return x(e.key)||x(e.description_en)||x(e.description_th)})),j=(null===g||void 0===g?void 0:g.key)||d,m=u(n),y=m&&f.find((function(e){return u(e.key).includes(m)||m.includes(u(e.key))}))||f.find((function(e){return u(e.key).includes("black")})),O=(null===y||void 0===y?void 0:y.key)||p,v=h[t],e.next=18,Object(c.d)(j);case 18:if(k=e.sent,C=k.find((function(e){return v(e.key)}))||k.find((function(e){return v(e.description_en)}))||k.find((function(e){return v(e.description_th)}))){e.next=22;break}return e.abrupt("return",Object(r.a)(Object(r.a)({},s),{},{brandKey:j,colorKey:O}));case 22:return e.abrupt("return",{brandKey:j,modelKey:C.key,subModel:C.sub_model||"",engineType:C.enginetype||"BEV",seat:C.seat||"5",colorKey:O});case 25:return e.prev=25,e.t0=e.catch(3),console.error("Failed to resolve Tesla master model, using fallback keys",e.t0),e.abrupt("return",s);case 29:case"end":return e.stop()}}),e,null,[[3,25]])}))),k.apply(this,arguments)}var C={transmissionType:"AUTO",keyType:"PUSH"}},339:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g}));var i=n(2),r=n(6),o=n(8),s=n(20),c=n.n(s),a=n(28).a.restful,l=function(e){return e.id_s||String(e.id)},d=function(e){return{headers:{Authorization:e.userToken}}};function p(e,t){return u.apply(this,arguments)}function u(){return u=Object(o.a)(Object(r.a)().mark((function e(t,n){var i,o,s=arguments;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],e.next=3,c.a.post("".concat(a.URL,"/submission/v2/tesla/session"),{returnUri:n,forceLogin:i},d(t));case 3:return o=e.sent,e.abrupt("return",o.data);case 5:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function x(e,t){return h.apply(this,arguments)}function h(){return(h=Object(o.a)(Object(r.a)().mark((function e(t,n){var i,o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.a.post("".concat(a.URL,"/submission/v2/tesla/vehicles"),{teslaSessionId:n},d(t));case 2:return s=e.sent,e.abrupt("return",null!==(i=null===(o=s.data)||void 0===o?void 0:o.response)&&void 0!==i?i:[]);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e,t,n){return f.apply(this,arguments)}function f(){return(f=Object(o.a)(Object(r.a)().mark((function e(t,n,i){var o,s,l,p;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.a.post("".concat(a.URL,"/submission/v2/tesla/vehicle-data"),{teslaSessionId:n,vehicleId:i},d(t));case 2:if(p=e.sent,null===(o=p.data)||void 0===o||!o.unavailable){e.next=5;break}return e.abrupt("return",{unavailable:!0});case 5:return e.abrupt("return",null!==(s=null===(l=p.data)||void 0===l?void 0:l.response)&&void 0!==s?s:{});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e,t,n){return j.apply(this,arguments)}function j(){return(j=Object(o.a)(Object(r.a)().mark((function e(t,n,o){var s,l,p;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.a.post("".concat(a.URL,"/submission/v2/tesla/vehicle-image"),{model:n,color:o}
1,Object(i.a)(Object(i.a)({},d(t)),{},{timeout:45e3}));case 2:return p=e.sent,e.abrupt("return",null!==(s=null===(l=p.data)||void 0===l?void 0:l.imageUrl)&&void 0!==s?s:null);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},342:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return j})),n.d(t,"c",(function(){return y})),n.d(t,"h",(function(){return v})),n.d(t,"g",(function(){return C}));var i=n(6),r=n(8),o=n(20),s=n.n(o),c=n(28),a=c.a.restful,l=c.a.payment;function d(e,t){return p.apply(this,arguments)}function p(){return(p=Object(r.a)(Object(i.a)().mark((function e(t,n){var r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.post("".concat(a.URL,"/submission-payment/create"),n||{},{headers:{Authorization:t.userToken}});case 2:return r=e.sent,e.abrupt("return",r.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e){return x.apply(this,arguments)}function x(){return(x=Object(r.a)(Object(i.a)().mark((function e(t){var n,r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("".concat(a.URL,"/submission-payment/entitlement"),{headers:{Authorization:t.userToken}});case 2:return r=e.sent,e.abrupt("return",(null===(n=r.data)||void 0===n?void 0:n.data)||{has_unclaimed_deposit:!1,payment_link:null});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return b.apply(this,arguments)}function b(){return(b=Object(r.a)(Object(i.a)().mark((function e(t){var n,r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("".concat(a.URL,"/submission-payment/detail/").concat(t));case 2:return r=e.sent,e.abrupt("return",(null===(n=r.data)||void 0===n?void 0:n.data)||null);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return g.apply(this,arguments)}function g(){return(g=Object(r.a)(Object(i.a)().mark((function e(t){var n;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.post("".concat(a.URL,"/submission-payment/initiate"),t);case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return m.apply(this,arguments)}function m(){return(m=Object(r.a)(Object(i.a)().mark((function e(t){var n,r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("".concat(a.URL,"/submission-payment/status/").concat(t));case 2:return r=e.sent,e.abrupt("return",(null===(n=r.data)||void 0===n?void 0:n.data)||null);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return O.apply(this,arguments)}function O(){return(O=Object(r.a)(Object(i.a)().mark((function e(t){var n,r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.post("".concat(a.URL,"/submission-payment/device-token"),{},{headers:{Authorization:t.userToken}});case 2:if((n=e.sent).data.result&&n.data.data){e.next=5;break}throw new Error((null===(r=n.data.error)||void 0===r?void 0:r.message)||"Failed to prepare payment device");case 5:return e.abrupt("return",{userId:n.data.data.user_id,devicetoken:n.data.data.devicetoken});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return k.apply(this,arguments)}function k(){return(k=Object(r.a)(Object(i.a)().mark((function e(t){var n,r,o;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.OMISE_PUBLIC_KEY){e.next=2;break}throw new Error("Payment is not configured (missing Omise key)");case 2:return e.next=4,s.a.post("https://vault.omise.co/tokens",{card:{name:t.cardHolder,number:t.cardNumber.replace(/\s+/g,""),expiration_month:t.expirationMonth,expiration_year:t.expirationYear,security_code:t.cvv}},{headers:{Authorization:"Basic ".concat(l.OMISE_PUBLIC_KEY),"Content-Type":"application/json"}});case 4:if(r=e.sent,o=null===(n=r.data)||void 0===n?void 0:n.id){e.next=8;break}throw new Error("Failed to register card");case 8:return e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,t){return S.apply(this,arguments)}function S(){return(S=Object(r.a)(Object(i.a)().mark((function e(t,n){var r,o,c,a;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.WS_API_URL){e.next=2;break}
1throw new Error("Payment is not configured (missing WS API URL)");case 2:return e.next=4,s.a.post("".concat(l.WS_API_URL,"/mobile/registpayment_omise"),{devicetype:"WEBSITE",devicetoken:t,version:"3.9.0",lang:"en",profile:"production",omisetoken:n,defaultpayment:!1,require3ds:!1,url_charge_return:""});case 4:if(o=e.sent,(c=o.data)&&"ERROR"!==c.result&&"INVALIDPAYMENT"!==c.result){e.next=8;break}throw new Error((null===c||void 0===c?void 0:c.message)||"Failed to save card");case 8:if(a=null===c||void 0===c||null===(r=c.payment)||void 0===r?void 0:r.paymentno){e.next=11;break}throw new Error("Payment number not found in response");case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},361:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(2),r=n(191),o=n(167),s=n(89),c=n(178),a=n(96),l=n(1),d=function(e){return Object(l.jsxs)("header",{className:"pad-content",style:{backgroundColor:e.backgroundColor||a.a.haupBlue,position:"sticky",top:"0",zIndex:99,color:e.color||"white",borderBottom:"1px solid rgb(230, 230, 230)"},children:[Object(l.jsxs)(o.a,{wrap:!1,children:[Object(l.jsx)(s.a,{flex:"120px",children:e.onBack&&Object(l.jsx)("div",{onClick:e.onBack,children:e.backButtonIcon?e.backButtonIcon:Object(l.jsx)(r.a,Object(i.a)({},e.backButtonProps))})}),Object(l.jsx)(s.a,{flex:e.title||e.subTitle?"auto":"0",children:Object(l.jsxs)("div",{style:{textAlign:"center"},children:[e.title&&Object(l.jsx)(c.a.Title,{level:1,style:{color:e.color||"white",textAlign:e.align||"center",width:"100%",fontSize:e.fontSize||"large",margin:"0px"},children:e.title}),e.subTitle&&Object(l.jsx)(c.a.Title,{level:2,style:{color:e.color||"white",textAlign:e.align||"center",width:"100%",fontSize:e.fontSize||"small",margin:"0px",fontWeight:300},children:e.subTitle})]})}),Object(l.jsx)(s.a,{flex:"auto",style:{textAlign:"right"},children:e.extra&&e.extra})]}),e.footer&&Object(l.jsx)(o.a,{children:Object(l.jsx)(s.a,{span:24,children:e.footer})})]})}},669:function(e,t,n){"use strict";n.r(t);var i=n(52),r=n(6),o=n(8),s=n(3),c=n(307),a=n(163),l=n(121),d=n(66),p=n(672),u=n(59),x=n(670),h=n(683),b=n(286),f=n(65),g=n(294),j=n(341),m=n(0),y=n(37),O=n(80),v=n(28),k=n(96),C=n(30),S=n(104),w=n(127),P=n(336),E=n(179),A=n(29),R=n(87),T=n(361),B=n(90),I=n(136),_=n(342),L=n(137),F=n(111),z=n(1),D=function(e){var t=e.open,n=e.onContinue,i=Object(I.a)().tr.listing.proIntro.payment;return Object(L.a)("Deposit Already Paid Modal Opened",t),Object(z.jsxs)(g.a,{open:t,footer:null,closable:!1,maskClosable:!1,width:490,bodyStyle:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden"},style:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},zIndex:1100,children:[Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"40px 24px 24px",textAlign:"center"},children:[Object(z.jsx)("div",{style:{width:"96px",height:"96px",borderRadius:"50%",backgroundColor:"#E8F6EC",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},children:Object(z.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",backgroundColor:"#2E9E4A",display:"flex",alignItems:"center",justifyContent:"center"},children:Object(z.jsx)(F.a,{style:{color:"#fff",fontSize:"26px"}})})}),Object(z.jsx)("h2",{style:{fontSize:"20px",fontWeight:700,color:"#212427",marginBottom:"8px"},children:i.alreadyPaidTitle}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"0"},children:i.alreadyPaidDesc})]}),Object(z.jsx)("div",{style:{padding:"16px 24px 24px",backgroundColor:"white"},children:Object(z.jsx)(f.a,{block:!0,type:"primary",shape:"round",style:{height:"48px",backgroundColor:"#0048B3",borderColor:"#0048B3"},onClick:function(){A.a.track("Deposit Already Paid Continue Click"),n()},children:i.alreadyPaidContinue})})]})},W=n(310),M=function(e){var t=e.onClick,n=e.top,i=void 0===n?"-8px":n,r=e.left,o=void 0===r?"-8px":r,s=e.zIndex,c={position:"absolute",top:i,left:o,width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:void 0===s?2:s};return Object(z.jsx)("div",{onClick:t,style:c,children:Object(z.jsx)(W.a,{style:{color:"#666",fontSize:"16px"}})})},N=n(167),H=n(89),U=n(178),Y=n(224),V=n(83),K=n.n(V),G=n(331),q=function(e){var t,n,i,r=e.activity,o=e.disabled,s=void 0!==o&&o,c=Object(I.a)().tr,a=Object(y.h)(),l=function(){var e;return(null===(e=r.progress)||void 0===e?void 0:e.completion_percentage)||0},d=function(){var e=l(),t=0;return e>=20&&(t=1),e>=40&&(t=2),e>=60&&(t=3),e>=80&&(t=4),e>
1=100&&(t=5),{currentStep:t,totalSteps:5}},p=!s&&"completed"!==r.submission_status;return Object(z.jsx)("div",{className:"".concat(p&&"pointer"),onClick:function(){if(!s&&(A.a.track("Activity Item Click",{Page:"Activity List Page",ActivityId:r.id,ActivityName:r.name}),"completed"!==r.submission_status)){var e=l(),t="/expert-submission/step1?draft_id=".concat(r.id);e>=20&&e<40?t="/expert-submission/step2?draft_id=".concat(r.id):e>=40&&e<60?t="/expert-submission/step3?draft_id=".concat(r.id):e>=60&&e<80?t="/expert-submission/step4?draft_id=".concat(r.id):e>=80&&e<100&&(t="/expert-submission/step5?draft_id=".concat(r.id)),a.push(t)}},style:{backgroundColor:"#F4F5F9",borderRadius:"8px",padding:"10px 0",margin:"8px 0",border:"1px solid #F0F0F0"},children:Object(z.jsxs)(N.a,{gutter:16,wrap:!1,align:"top",style:{marginBottom:"16px",paddingLeft:"16px",paddingRight:"16px"},children:[Object(z.jsx)(H.a,{flex:"120px",children:Object(z.jsx)("div",{style:{width:"100%"},children:Object(z.jsx)(G.a,{ratio:[4,3],imgSrc:(null===(t=r.gallery)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.url)||"https://placehold.co/600x400?text=No+Photo",imgStyle:{borderRadius:"12px",backgroundColor:"#F5F5F5"}})})}),Object(z.jsx)(H.a,{flex:"auto",children:Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[Object(z.jsxs)("div",{style:{flex:1,paddingRight:"12px"},children:[Object(z.jsx)(U.a.Text,{style:{color:"#1A1A1A",fontSize:"14px",fontWeight:"500",lineHeight:"1.3",display:"block",marginBottom:"4px"},children:r.name}),Object(z.jsx)(Y.a,{style:{backgroundColor:function(e){switch(e){case"draft":return"#FFF4CB";case"completed":return"#E6F3FF";case"pending":return"#F0F0F0";case"action_required":return"rgb(202 11 0 / 75%)";default:return"#f0f0f0"}}(r.submission_status),color:function(e){switch(e){case"draft":return"#856A00";case"completed":return"#0048B3";case"pending":default:return"#666";case"action_required":return"#fff"}}(r.submission_status),border:"none",borderRadius:"4px",fontSize:"12px",margin:0},children:function(e){switch(e){case"draft":return c.listing.statusIncomplete;case"completed":return c.listing.statusSubmitted;case"pending":return c.listing.statusPending;case"action_required":return c.listing.statusActionRequired;default:return c.listing.statusUnknown}}(r.submission_status)})]}),Object(z.jsxs)("div",{style:{position:"relative",width:"56px",height:"56px",flexShrink:0},children:[Object(z.jsx)("svg",{width:"56",height:"56",style:{position:"absolute"},children:Object(z.jsx)("circle",{cx:"28",cy:"28",r:"23",fill:"none",stroke:"#F0F0F0",strokeWidth:"3"})}),Object(z.jsx)("svg",{width:"56",height:"56",style:{position:"absolute",transform:"rotate(-90deg)"},children:Object(z.jsx)("circle",{cx:"28",cy:"28",r:"23",fill:"none",stroke:"#00CCCC",strokeWidth:"3",strokeDasharray:"".concat(2*Math.PI*23),strokeDashoffset:"".concat(2*Math.PI*23*(1-l()/100)),strokeLinecap:"round"})}),Object(z.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#8E8E93",fontSize:"12px",fontWeight:"600",textAlign:"center",lineHeight:"1"},children:[d().currentStep,"/",d().totalSteps]})]})]}),Object(z.jsxs)(U.a.Text,{style:{color:"#8E8E93",fontSize:"14px",fontWeight:"400",marginTop:6},children:[c.listing.lastEdited," ",Object(z.jsx)("span",{children:(i=r.updated_at,K()(i).format("D MMM, HH:mm"))})]})]})})]})})},X=function(e){var t,n=e.carSubmit,i=Object(y.h)(),r=Object(I.a)().tr,o=function(){if("ACCEPTED"===n.status){var e=new URLSearchParams;e.set("brand",n.brand),e.set("model",n.model),i.push("/submission/new/info?".concat(e.toString()))}else"PENDING"===n.status&&i.push("/share-car/".concat(n.id,"/status"))},s=n.carImages&&n.carImages.length>0?n.carImages[0]:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1xsX21t3HdV592Q4KBms7M7dpRWdN9U37CRoLnsdtT4kaqWBpGvo8Ft5bFxAk7yGmQtaHhj1GTE7sPJn8mq6VNck.png",c="".concat(n.brand," ").concat(n.model," ").concat(n.year);return Object(z.jsxs)("div",{className:"".concat(("ACCEPTED"===n.status||"PENDING"===n.status)&&"pointer"),onClick:o,style:{backgroundColor:"#F4F5F9",borderRadius:"8px",padding:"10px 0",margin:"8px 0",border:"1px solid #F0F0F0",cursor:"ACCEPTED"===n.status||"PENDING"===n.status?"pointer":"default"},children:[Object(z.jsxs)(N.a,{gutter:16,wrap:!1,align:"top",style:{marginBottom:"16
1px",paddingLeft:"16px",paddingRight:"16px"},children:[Object(z.jsx)(H.a,{flex:"120px",children:Object(z.jsx)("div",{style:{width:"100%"},children:Object(z.jsx)(G.a,{ratio:[4,3],imgSrc:s,imgStyle:{borderRadius:"12px",backgroundColor:"#F5F5F5"}})})}),Object(z.jsx)(H.a,{flex:"auto",children:Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[Object(z.jsx)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:Object(z.jsxs)("div",{style:{flex:1,paddingRight:"12px"},children:[Object(z.jsx)(U.a.Text,{style:{color:"#1A1A1A",fontSize:"14px",fontWeight:"500",lineHeight:"1.3",display:"block",marginBottom:"4px"},children:c}),Object(z.jsx)(Y.a,{style:{backgroundColor:function(){switch(n.status){case"ACCEPTED":return"#EFFFEB";case"REJECTED":return"#FFE5E5";default:return"#FFF4CB"}}(),color:function(){switch(n.status){case"ACCEPTED":return"#29A016";case"REJECTED":return"#D32F2F";default:return"#B8860B"}}(),border:"none",borderRadius:"4px",fontSize:"12px",margin:0},children:function(){switch(n.status){case"ACCEPTED":return r.listing.carSubmitAccepted;case"REJECTED":return r.listing.carSubmitRejected;default:return r.listing.carSubmitPending}}()})]})}),Object(z.jsxs)(U.a.Text,{style:{color:"#8E8E93",fontSize:"14px",fontWeight:"400",marginTop:6},children:[r.listing.carSubmitSentOn," ",Object(z.jsx)("span",{children:(t=n.createdAt,K()(t).format("D MMM, HH:mm"))})]})]})})]}),Object(z.jsx)("div",{style:{height:"1px",backgroundColor:"#EDE
1FF4",margin:"6px 8px 8px 8px"}}),Object(z.jsx)("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",marginLeft:15},children:"ACCEPTED"===n.status&&Object(z.jsx)(f.a,{type:"primary",onClick:o,style:{backgroundColor:"#0048B3",borderColor:"#0048B3",borderRadius:"8px",height:"32px",padding:"0 12px",fontSize:"12px",fontWeight:"500",boxShadow:"none"},children:r.listing.carSubmitContinue})})]})},J="https://ts-upload.sgp1.digitaloceanspaces.com/cms/2cDUqxvqboUCXVfejT3CDocqci5ee9hXDPEhS1gk8Vt8mC3ah1yXnhm7GV7mcFGRBNfq6uYKnJ4i62u981RUngeN.png",Q="https://ts-upload.sgp1.digitaloceanspaces.com/cms/3iXTmZXJqgqaz1eZ1bKXAQqV4cdMEJccobqq4QZ5RMS4or5XuXk1HN456xGp4sdfTcWbHPMpBDadrV3USgmpz3mf.png",Z="https://ts-upload.sgp1.digitaloceanspaces.com/cms/4TUUKynWAEp1RuPmHSqPauuVRJpGKJdDjcumcW2zyN3a5rwTC1fwS4QctbsnAbqj5c42DkHnWn7ifytzpdW217dz.png",$="https://ts-upload.sgp1.digitaloceanspaces.com/cms/4VFdvQMTxxoga6eL5vCwaTDXcpA9GJphPvmE4MEZshmmGuFe98hPXVDga33qWhHBr1mj6aRKU743Aa4uzfZm5BQY.png",ee="https://ts-upload.sgp1.digitaloceanspaces.com/cms/4MAREuDaqxNw25N4Zbvr7VniU4arj7CrTaB4YAbw9Uywh61fZ2rug3orscJcKDTjFdV4W4CUJkCKYd8x42ykg6E4.png",te=["https://ts-upload.sgp1.digitaloceanspaces.com/cms/5weTQNTRk9M5UN5zzCafMTRpj1hhNJJk8DmFs9GUDnytEQQM7bkiEx8hGSKnVTvJb2dQgazEiYZ59pKh9HNLp5sn.png","https://ts-upload.sgp1.digitaloceanspaces.com/cms/2UCBUDkPfoHWrhhJxWmB3J6dgYm5bUjk2SW2spJVKXA3MPYNkmb5D2wYKivZT1URZkNxs8ERkSkPSYwQGryVNS8B.png","https://ts-upload.sgp1.digitaloceanspaces.com/cms/48kJVdWEgXLHQkX2a97Qr94sh4LKtCVw8y7BHXyCjRrExP5hhW8BHLgDsXZVtMxLC6QVBzHUo5LDUgHc1MGm8RCr.png","https://ts-upload.sgp1.digitaloceanspaces.com/cms/5fMnew4LMjZoga6KXZpEUMTwNCkjqTTVtszu43D7WPVREqgmMSfC1Peyb55TDRLDBpDnFpf7LznKVwaeJCPfMhUP.png","https://ts-upload.sgp1.digitaloceanspaces.com/cms/53PugEXobWcqHMgAxNHAkgrnKPLbUF3mAkiijj2QNi7F43cZiZ44AejfE2d7DSWA72B9LX49Rapd8kPBsG9C2bxk.png"];var ne=function(e){var t=e.open,n=e.onBack,i=e.onPayContinue,r=e.embedded,o=e.loading,s=void 0!==o&&o,c=Object(I.a)().tr.listing.proIntro.iotDevice;Object(L.a)("Iot Device Modal Opened",t);var a,l=function(){s||(A.a.track("Iot Device Go Back Click"),n())},p=Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(M,{onClick:l,top:"16px",left:"16px"}),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"32px 24px 24px"},children:[Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:700,color:"#212427",marginBottom:"8px"},children:c.title}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"20px"},children:c.subtitle}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",backgroundColor:"#F4F6F8",borderRadius:"12px",padding:"16px",marginBottom:"24px"},children:[Object(z.jsx)("img",{src:J,alt:"HAUP IoT GPS",style:{width:"64px",height:"64px",objectFit:"contain",flexShrink:0}}),Object(z.jsxs)("div",{children:[Object(z.jsx)("h3",{style:{fontSize:"15px",fontWeight:700,color:"#212427",margin:"0 0 4px"},children:c.deviceTitle}),Object(z.jsx)("p",{style:{fontSize:"13px",color:"#666",lineHeight:"1.5",margin:0},children:c.deviceDesc})]})]}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",marginBottom:"14px"},children:c.compatibleTitle}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"20px"},children:[Object(z.jsx)("img",{src:Q,alt:"BMW",style:{height:"28px",objectFit:"contain"}}),Object(z.jsx)("img",{src:Z,alt:"BYD",style:{height:"20px",objectFit:"contain"}}),Object(z.jsx)("img",{src:$,alt:"Toyota",style:{height:"26px",objectFit:"contain"}}),Object(z.jsx)("img",{src:ee,alt:"MG",style:{height:"26px",objectFit:"contain"}}),Object(z.jsx)("div",{style:{backgroundColor:"#E9F1FF",color:"#0048B3",fontSize:"13px",fontWeight:600,padding:"6px 12px",borderRadius:"8px",whiteSpace:"nowrap"},children:c.moreLabel})]}),Object(z.jsx)("div",{style:{borderTop:"1px solid #EEF0F3",marginBottom:"20px"}}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",marginBottom:"16px"},children:c.whyTitle}),c.features.map((function(e,t){return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:"12px",marginBottom:"18px"},children:[Object(z.jsx)("img",{src:te[t],alt:e.title,style:{width:"22px",height:"22px",objectFit:"contain",marginTop:"1px"}}),Object(z.jsxs)("div",{children:[Object(z.jsx)("p",{style:{margin:0,fontSize:"14.5px",fontWeight:600,color:"#212427"},children:e.title}),Object(z.jsx)("p",{style:{margin:"2px 0 0",fontSize:"13px",color:"#8C97A7",lineHeight:"1.4"},children:e.desc})]})]},t)})),Object(z.jsxs)("div",{style:{backgroundColor:"#F6F7F9",borderRadius:"16px",padding:"20px",marginTop:"8px",marginBottom:"20px"},children:[Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"18px"},children:[Object(z.jsx)("span",{style:{fontSize:"14px",color:"#212427"},children:c.installationFeeLabel}),Object(z.jsxs)("span",{style:{fontSize:"16px",fontWeight:700,color:"#212427"},children:[c.installationFeeValue," ",Object(z.jsx)("span",{style:{fontSize:"12.5px",fontWeight:400,color:"#8C97A7"},children:c.installationFeeNote})]})]}),Object(z.jsxs)("div",{style:{display:"flex",gap:"16px",alignItems:"flex-start"},children:[Object(z.jsxs)("div",{style:{backgroundColor:"#E9F1FF",borderRadius:"14px",padding:"16px 18px",minWidth:"116px",flexShrink:0},children:[Object(z.jsx)("p",{style:{margin:"0 0 6px",fontSize:"13px",color:"#4A5568"},children:c.dueTodayLabel}),Object(z.jsx)("p",{style:{margin:0,fontSize:"20px",fontWeight:700,color:"#0048B3"},children:c.dueTodayValue}),Object(z.jsx)("p",{style:{margin:"4px 0 0",fontSize:"11.5px",color:"#8C97A7"},children:c.dueTodayNote})]}),Object(z.jsx)("p",{style:{margin:0,fontSize:"14px",color:"#4A5568",lineHeight:"1.6"},children:(a=c.installmentText,a.split("*").map((function(e,t){return t%2===1?Object(z.jsx)("span",{style:{color:"#0048B3",fontWeight:700},children:e},t):Object(z.jsx)(m.Fragment,{children:e},t)})))})]})]})]}),Object(z.jsxs)("div",{style:{flexShrink:0,padding:"16px 24px 24px",borderTop:"1px solid #EEF0F3",backgroundColor:"#fff"},children:[Object(z.jsxs)("div",{onClick:function(){s||(A.a.track("Iot Device Pay Continue Click"),null===i||void 0===i||i())},style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",cursor:s?"default":"pointer",opacity:s?.8:1,fontSize:"16px",fontWeight:500,marginBottom:"16px"},children:[s&&Object(z.jsx)(d.a,{spin:!0}),c.payBtn]}),Object(z.jsx)("div",{onClick:l,style:{textAlign:"center",color:"#8C97A7",fontSize:"14px",cursor:"pointer"},children:c.goBackBtn})]})]});return r?p:Object(z.jsx)(g.a,{open:t,onCancel:l,maskClosable:!1,footer:null,closable:!1,width:490,bodyStyle:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden",position:"relative"},style:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},children:p})},ie=n(159),re=function(e){var t=e.text;return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px",marginBottom:"8px"},children:[Object(z.jsx)("div",{style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:"#212427",marginTop:"8px",flexShrink:0}}),Object(z.jsx)("p",{style:{margin:0,fontSize:"14px",color:"#212427",lineHeight:"1.5"},children:t})]})},oe=function(e){var t=e.open,n=e.onBack,i=e.screenHeight,r=void 0===i?window.innerHeight:i,o=Object(I.a)().tr.listing.proIntro.netRevenue;Object(L.a)("Net Revenue Modal Opened",t);var s=function(){A.a.track("Net Revenue Modal Back Click"),n()};return Object(z.jsx)(g.a,{open:t,onCancel:s,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"32px 24px 24px",borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"".concat(r,"px"),overflowY:"auto"},style:{borderRadius:"8px",top:0,height:"".concat(r,"px")},children:Object(z.jsxs)("div",{style:{position:"relative"},children:[Object(z.jsx)(M,{onClick:s}),Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:700,color:"#212427",marginBottom:"16px"},children:o.title}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#212427",lineHeight:"1.6",marginBottom:"24px"},children:o.description}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",marginBottom:"10px"},children:o.exampleLabel}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#212427",marginBottom:"12px"},children:o.exampleIntro}),Object(z.jsx)(re,{text:o.bullet1}),Object(z.jsx)(re,{text:o.bullet2}),Object(z.jsx)(re,{text:o.bullet3}),Object(z.jsxs)("div",{style:{display:"flex",gap:"10px",backgroundColor:"#F4F6F8",borderRadius:"10px",padding:"14px 16px",marginTop:"16px"},children:[Object(z.jsx)(ie.a,{style:{color:"#8C97A7",fontSize:"15px",marginTop:"2px"}}),Object(z.jsx)("p",{style:{margin:0,fontSize:"13px",color:"#4A5568",lineHeight:"1.5"},children:o.noteText})]})]})})},se=n(692),ce=n(74),ae=n(166),le=n(299),de=n(296),pe=n(292),ue=function(e){var t=e.open,n=Object(I.a)().tr.listing.proIntro.payment;return Object(L.a)("Payment Processing Modal Opened",t),Object(z.jsx)(g.a,{open:t,footer
1:null,closable:!1,centered:!0,maskClosable:!1,width:360,bodyStyle:{padding:"32px 24px",borderRadius:"12px",fontFamily:"Poppins, sans-serif"},style:{borderRadius:"12px"},zIndex:1200,children:Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"},children:[Object(z.jsx)(pe.a,{size:"large"}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:600,color:"#212427",margin:"16px 0 4px"},children:n.processingModalTitle}),Object(z.jsx)("p",{style:{fontSize:"13.5px",color:"#8C97A7",margin:0},children:n.processingModalDesc})]})})},xe=n(228),he=function(e){var t=e.open,n=e.referenceId,i=e.onContinue,r=Object(I.a)().tr.paymentCallback;Object(L.a)("Payment Success Modal Opened",t,{referenceId:n});return Object(z.jsxs)(g.a,{open:t,footer:null,closable:!1,maskClosable:!1,width:490,bodyStyle:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden"},style:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},zIndex:1100,children:[Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"40px 24px 24px",textAlign:"center"},children:[Object(z.jsx)("div",{style:{width:"96px",height:"96px",borderRadius:"50%",backgroundColor:"#E8F6EC",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},children:Object(z.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",backgroundColor:"#2E9E4A",display:"flex",alignItems:"center",justifyContent:"center"},children:Object(z.jsx)(F.a,{style:{color:"#fff",fontSize:"26px"}})})}),Object(z.jsx)("h2",{style:{fontSize:"20px",fontWeight:700,color:"#212427",marginBottom:"8px"},children:r.successTitle}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"16px"},children:r.successDesc}),n&&Object(z.jsxs)("div",{onClick:function(){n&&(A.a.track("Payment Success Copy Ref Id Click",{referenceId:n}),navigator.clipboard.writeText(String(n)).then((function(){return ae.b.success("Copied")})).catch((function(){})))},style:{display:"inline-flex",alignItems:"center",gap:"8px",backgroundColor:"#F4F6F8",borderRadius:"20px",padding:"8px 14px",marginBottom:"24px",cursor:"pointer"},children:[Object(z.jsxs)("span",{style:{fontSize:"12px",color:"#8C97A7"},children:[r.refIdLabel,":"]}),Object(z.jsx)("span",{style:{fontSize:"12.5px",fontWeight:600,color:"#212427",fontFamily:"monospace"},children:n}),Object(z.jsx)(xe.a,{style:{fontSize:"12px",color:"#8C97A7"}})]}),Object(z.jsxs)("div",{style:{backgroundColor:"#F4F6F8",borderRadius:"12px",padding:"18px 20px",textAlign:"left"},children:[Object(z.jsx)("p",{style:{fontSize:"14px",fontWeight:700,color:"#212427",margin:"0 0 14px"},children:r.whatsNextLabel}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"10px"},children:[Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[Object(z.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",backgroundColor:"#212427",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)(F.a,{style:{color:"#fff",fontSize:"11px"}})}),Object(z.jsx)("div",{style:{width:"2px",flex:1,minHeight:"18px",borderLeft:"2px dotted #C7CDD6"}})]}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#212427",margin:"2px 0 14px"},children:r.step1})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"10px"},children:[Object(z.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",backgroundColor:"#212427",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)(F.a,{style:{color:"#fff",fontSize:"11px"}})}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#212427",margin:"2px 0 0"},children:r.step2})]})]})]}),Object(z.jsx)("div",{style:{flexShrink:0,padding:"16px 24px 24px",borderTop:"1px solid #EEF0F3",backgroundColor:"#fff"},children:Object(z.jsx)("div",{onClick:function(){A.a.track("Payment Success Continue Click"),i()},style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"16px",fontWeight:500},children:r.continueBtn})})]})},be=function(e){var t=e.open,n=e.qrCodeUrl,i=e.methodLabel,r=e.onClose,o=Object(I.a)().tr.listing.proIntro.payment,c=Object(m.useState)(!1),a=Object(s.a)(c,2),l=a[0],p=a[1];Object(L.a)("Qr Payment Modal Opened",t,{method:i});var x=function(){A.a.track("Qr Payment Modal Close Icon Click",{method:i}),r()};return Object(z.jsx)(g.a,{open:t,onCancel:x,maskClosable:!1,footer:null,centered:!0,closable:!1,width:420,bodyStyle:{padding:"28px 24px 24px",borderRadius:"12px",fontFamily:"Poppins, sans-serif"},style:{borderRadius:"12px"},zIndex:1100,children:Object(z.jsxs)("div",{style:{position:"relative",textAlign:"center"},children:[Object(z.jsx)("div",{onClick:x,style:{position:"absolute",top:"-12px",right:"-8px",width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:Object(z.jsx)(u.a,{style:{color:"#666",fontSize:"16px"}})}),Object(z.jsx)("h2",{style:{fontSize:"18px",fontWeight:700,color:"#212427",marginBottom:"8px"},children:o.qrModalTitle.replace("{method}",i)}),Object(z.jsx)("p",{style:{fontSize:"13.5px",color:"#666",lineHeight:"1.5",marginBottom:"20px"},children:o.qrModalSubtitle}),Object(z.jsx)("div",{style:{width:"100%",maxWidth:"260px",margin:"0 auto 20px",backgroundColor:"#fff",border:"2px s
1olid #E4E7EC",borderRadius:"12px",padding:"16px"},children:n?l?Object(z.jsx)("iframe",{src:n,title:"QR Payment",style:{width:"100%",height:"260px",border:"none",borderRadius:"8px"}}):Object(z.jsx)("img",{src:n,alt:"QR Code",style:{width:"100%",height:"auto"},onError:function(){return p(!0)}}):Object(z.jsx)("div",{style:{width:"100%",height:"240px",display:"flex",alignItems:"center",justifyContent:"center"},children:Object(z.jsx)(pe.a,{size:"large"})})}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",color:"#0048B3",fontSize:"13.5px",marginBottom:"16px"},children:[Object(z.jsx)(pe.a,{indicator:Object(z.jsx)(d.a,{style:{fontSize:"16px"},spin:!0})}),Object(z.jsx)("span",{children:o.qrWaitingText})]}),Object(z.jsx)("p",{style:{fontSize:"12px",color:"#8C97A7",fontWeight:700,margin:0},children:o.qrNote})]})})},fe={CARD:.03,SCB_PROMPTPAY:.015,ALIPAY:.03,WECHATPAY:.015,PROMPTPAY:.015},ge={CARD:"CARD",SCB_PROMPTPAY:"SCB_PROMPTPAY",ALIPAY:"ALIPAY",WECHATPAY:"WECHAT",PROMPTPAY:"PROMPTPAY"},je="haup_submission_payment_pending_",me=function(e,t){try{localStorage.setItem("".concat(je).concat(e),t)}catch(n){return}},ye=function(e){try{localStorage.removeItem("".concat(je).concat(e))}catch(t){return}},Oe={calendar:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2yD5NUWSDFF5oaoBLhoyqHrBM9f56gCkvMTVBbA498LmzWmSh8qhTv1avS2hoTD2deTJ9C3Tp4mNESnGdnWaX3Pa.png",mastercard:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2bmYSTPH8YcPh6XPywQAsLkVVqNcvzPMgRneVeJTwSA8r532HYuGdLGL5WDKnGZeayA1v4FP7v2eEGXhmG4qAWqE.png",jcb:"https://staging-ts-upload.sgp1.digitaloceanspaces.com/cms/4XodF2DUnQfTDGs7vwXcRecuiV6X4zjBiLVLgX4k2uwDjXvUUEZNsvPmuGHDBkMaSeXZNuyhiXp4QFdQd2beijCd.png",visa:"https://staging-ts-upload.sgp1.digitaloceanspaces.com/cms/5wckNbkCJ1ZYpGKFmkjDtDSMJKyV3MhhLe7q9m1RUM8uJEA7EK6HsqAPhQtyXkWNCvEBaTWfPiWSjLfBtCMiTYiU.png",promptpay:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1Y3qZEBeAepMPvsKn7WkQhL2KUZ3Q8h4znarkp9wMDR7uXxMTke4ufFcQaopWdoWj4SUBm5UjFR61CR9o3L3oAn9.png",alipay:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/21gEt2KnKDPEKfVscoq47gdBWHnvUqJkEKg1mhirsRZqHVaj5eRYnDbssvU82frLuoh81KevkmCYJEdKxGRNxhf7.png",wechatpay:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1yb5cesVVuQZ15NcaLpfSFcJyzZH7TxVSRhNq426KbKM3XJk2HXXqxWyXuQXDpFLwrUeaZJ41cTgEp2Kiaeu3qG4.png"},ve=function(e){return e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},ke=function(e){var t=e.selected;return Object(z.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",border:"2px solid ".concat(t?"#0048B3":"#D6DAE0"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:t&&Object(z.jsx)("div",{style:{width:"11px",height:"11px",borderRadius:"50%",backgroundColor:"#0048B3"}})})},Ce=function(e){var t,n,i,c,a,l=e.open,p=e.onBack,u=e.onPaySubmit,x=e.installationDeposit,h=void 0===x?99:x,b=e.embedded,f=e.prepare,j=void 0!==f&&f,y=e.onPrepared,O=e.onPrepareFailed,v=Object(I.a)().tr,k=Object(C.k)(),S=v.listing.proIntro.payment,w=function(){A.a.track("Payment Go Back Click"),p()},P=Object(m.useState)("CARD"),E=Object(s.a)(P,2),R=E[0],T=E[1],B=ce.a.useForm(),F=Object(s.a)(B,1)[0],D=Object(m.useRef)(null),W=Object(m.useRef)(null),N=Object(m.useRef)(!0),H=Object(m.useState)(null),U=Object(s.a)(H,2),Y=U[0],V=U[1],K=Object(m.useState)(null),G=Object(s.a)(K,2),q=G[0],X=G[1],J=Object(m.useState)(!1),Q=Object(s.a)(J,2),Z=Q[0],$=Q[1],ee=Object(m.useState)(null),te=Object(s.a)(ee,2),ne=te[0],ie=te[1],re=Object(m.useState)(!1),oe=Object(s.a)(re,2),pe=oe[0],xe=oe[1],Ce=Object(m.useRef)(null),Se=Object(m.useRef)(null);Object(L.a)("Payment Modal Opened",l);var we=ge[R],Pe=null!==(t=null===q||void 0===q?void 0:q.amount)&&void 0!==t?t:h,Ee=null===q||void 0===q||null===(n=q.fee_preview)||void 0===n?void 0:n[we],Ae=null!==(i=null===Ee||void 0===Ee?void 0:Ee.processing_fee)&&void 0!==i?i:Pe*fe[R],Re=null!==(c=null===Ee||void 0===Ee?void 0:Ee.total)&&void 0!==c?c:Pe+Ae,Te=function(){Ce.current&&(clearInterval(Ce.current),Ce.current=null)};Object(m.useEffect)((function(){var e;if(l||(Te(),$(!1),ie(null),xe(!1),j))if(!Y&&null!==k&&void 0!==k&&null!==(e=k.userLoggedIn)&&void 0!==e&&e.userToken){var t=k.userLoggedIn.userId,n=function(){Object(_.a)(k.userLoggedIn).then(function(){var e=Object(o.a)(Object(r.a)().mark((function e(n){var i,o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.result&&null!==(i=n.data)&&void 0!==i&&i.payment_link){e.next=2;break}throw new Error((null===(o=n.error)||void 0===o?void 0:o.message)||"Failed to prepare payment");case 2:return V(n.data.payment_link),me(t,n.data.payment_link),e.next=6,Object(_.b)(n.data.payment_link);case 6:(s=e.sent)&&X(s),null===y||void 0===y||y();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t,n,i;ae.b.error((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n||null===(i=n.error)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||"Failed to prepare payment"),null===O||void 0===O||O()}))},i=function(e){try{return localStorage.getItem("".concat(je).concat(e))}catch(t){return null}}(t);i?Object(_.e)(i).then(function(){var e=Object(o.a)(Object(r.a)().mark((function e(o){var s,c;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!==o&&void 0!==o&&o.is_completed||"CHARGED"===(null===o||void 0===o?void 0:o.charge_state))){e.next=10;break}return ye(t),V(i),e.next=5,Object(_.b)(i);case 5:return(s=e.sent)&&X(s),null===y||void 0===y||y(),Be(),e.abrupt("return");case 10:if("ERROR"!==(null===o||void 0===o?void 0:o.charge_state)&&"REVERSED"!==(null===o||void 0===o?void 0:o.charge_state)){e.next=14;break}return ye(t),n(),e.abrupt("return");case 14:return V(i),e.next=17,Object(_.b)(i);case 17:(c=e.sent)&&X(c),null===y||void 0===y||y();case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){V(i),null===y||void 0===y||y()})):n()}else null===y||void 0===y||y()}),[l,j]),Object(m.useEffect)((function(){return function(){return Te()}}),[]),Object(m.useEffect)((function(){if(!N.current){var e=requestAnimationFrame((function(){var e,t;"CARD"===R?null===(e=W.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"}):null===(t=D.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest"})}));return function(){return cancelAnimationFrame(e)}}N.current=!1}),[R]);var Be=function(){var e;Te(),$(!1),ie(null),xe(!0),null!==k&&void 0!==k&&null!==(e=k.userLoggedIn)&&void 0!==e&&e.userId&&ye(k.userLoggedIn.userId),A.a.track("Payment Success",{method:R,amount:Re})},Ie=function(e){Te(),Ce.current=setInterval(Object(o.a)(Object(r.a)().mark((function t(){var n,i;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(_.e)(e);case 3:if(n=t.sent){t.next=6;break}return t.abrupt("return");case 6:n.is_completed||"CHARGED"===n.charge_state?Be():"ERROR"!==n.charge_state&&"REVERSED"!==n.charge_state||(Te(),$(!1),ie(null),null!==k&&void 0!==k&&null!==(i=k.userLoggedIn)&&void 0!==i&&i.userId&&ye(k.userLoggedIn.userId),ae.b.error("Payment failed. Please try again.")),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error("Error checking payment status:",t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])}))),5e3)};Object(m.useEffect)((function(){if(ne&&Y){var e=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_.e)(Y);case 3:(null!==(t=e.sent)&&void 0!==t&&t.is_completed||"CHARGED"===(null===t||void 0===t?void 0:t.charge_state))&&Be(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error checking payment status:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),t=function(){"visible"===document.visibilityState&&e()};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",t),function(){window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",t)}}}),[ne,Y]);var _e=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t,n,i,o,s,c,a,l,d,p,u,x,h,b,f,g;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Z){e.next=2;break}return e.abrupt("return");case 2:if(A.a.track("Payment Pay Button Click",{method:R,amount:Re}),Y&&null!==k&&void 0!==k&&null!==(t=k.userLoggedIn)&&void 0!==t&&t.userToken){e.next=6;break}return ae.b.error("Payment is not ready yet. Please try again."),e.abrupt("return");case 6:if("CARD"!==R){e.next=16;break}return e.prev=7,e.next=10,F.validateFields();case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(7),null===(n=W.current)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"}),e.abrupt("return");case 16:return $(!0),e.prev=17,e.prev=18,e.next=21,Object(_.e)(Y);case 21:if(!(null!==(o=e.sent)&&void 0!==o&&o.is_completed||"CHARGED"===(null===o||void 0===o?void 0:o.charge_state))){e.next=25;break}return Be(),e.abrupt("return");case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(18),console.error("Error checking existing payment status:",e.t1);case 30:if(Se.current){e.next=34;break}return e.next=33,Object(_.c)(k.userLoggedIn);case 33:Se.current=e.sent;case 34:if(s=Se.current,c=0,"CARD"!==R){e.next=44;break}return a=F.getFieldsValue(),e.next=40,Object(_.h)({cardNumber:a.cardNumber,cardHolder:
1a.cardHolder,expirationMonth:a.expirationDate.format("MM"),expirationYear:a.expirationDate.format("YYYY"),cvv:a.cvv});case 40:return l=e.sent,e.next=43,Object(_.g)(s.devicetoken,l);case 43:c=e.sent;case 44:return e.next=46,Object(_.f)({payment_link:Y,payment_method:we,payment_no:c,user_id:s.userId,origin:window.location.origin});case 46:if((d=e.sent).result){e.next=49;break}throw new Error((null===(p=d.error)||void 0===p?void 0:p.message)||"Payment processing failed");case 49:null!==(i=d.data)&&void 0!==i&&i.requires_redirect&&d.data.payment_url?"SCB_PROMPTPAY"===R||"PROMPTPAY"===R?(ie(d.data.payment_url),Ie(Y)):window.location.href=d.data.payment_url:Be(),e.next=58;break;case 52:e.prev=52,e.t2=e.catch(17),$(!1),g=(null===e.t2||void 0===e.t2||null===(u=e.t2.response)||void 0===u||null===(x=u.data)||void 0===x||null===(h=x.error)||void 0===h?void 0:h.message)||(null===e.t2||void 0===e.t2||null===(b=e.t2.response)||void 0===b||null===(f=b.data)||void 0===f?void 0:f.message)||(null===e.t2||void 0===e.t2?void 0:e.t2.message)||"Payment processing failed",A.a.track("Payment Failed",{method:R,error:g}),ae.b.error(g);case 58:case"end":return e.stop()}}),e,null,[[7,12],[17,52],[18,27]])})));return function(){return e.apply(this,arguments)}}(),Le=[{key:"CARD",label:S.cardLabel},{key:"SCB_PROMPTPAY",label:S.scbPromptPayLabel,badge:Object(z.jsx)("span",{style:{backgroundColor:"#4E2A84",color:"#fff",fontSize:"10px",fontWeight:800,padding:"3px 8px",borderRadius:"5px",letterSpacing:"0.3px"},children:"SCB"})},{key:"ALIPAY",label:S.alipayLabel,icon:Object(z.jsx)("img",{src:Oe.alipay,alt:"Alipay",style:{width:"24px",height:"24px",objectFit:"contain"}})},{key:"WECHATPAY",label:S.wechatPayLabel,icon:Object(z.jsx)("img",{src:Oe.wechatpay,alt:"WeChat Pay",style:{width:"24px",height:"24px",objectFit:"contain"}})},{key:"PROMPTPAY",label:S.qrPromptPayLabel,icon:Object(z.jsx)("img",{src:Oe.promptpay,alt:"PromptPay",style:{width:"24px",height:"24px",objectFit:"contain"}})}],Fe=(null===(a=Le.find((function(e){return e.key===R})))||void 0===a?void 0:a.label)||"",ze=Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(M,{onClick:w,top:"16px",left:"16px"}),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"32px 24px 24px"},children:[Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:700,color:"#212427",marginBottom:"8px"},children:S.title}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"20px"},children:S.subtitle}),Object(z.jsxs)("div",{style:{display:"flex",gap:"10px",backgroundColor:"#F4F6F8",borderRadius:"10px",padding:"14px 16px",marginBottom:"24px"},children:[Object(z.jsx)(se.a,{style:{color:"#212427",fontSize:"16px",marginTop:"2px"}}),Object(z.jsx)("p",{style:{margin:0,fontSize:"13px",color:"#4A5568",lineHeight:"1.5"},children:S.infoNote})]}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",marginBottom:"12px"},children:S.paymentDetailsLabel}),Object(z.jsxs)("div",{style:{backgroundColor:"#F6F7F9",borderRadius:"12px",padding:"16px",marginBottom:"28px"},children:[Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[Object(z.jsx)("span",{style:{fontSize:"14px",color:"#212427"},children:S.depositLabel}),Object(z.jsxs)("span",{style:{fontSize:"14px",color:"#212427"},children:["THB ",ve(Pe)]})]}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[Object(z.jsxs)("div",{children:[Object(z.jsx)("p",{style:{margin:0,fontSize:"14px",color:"#212427"},children:S.processingFeeLabel}),Object(z.jsx)("p",{style:{margin:"2px 0 0",fontSize:"12px",color:"#8C97A7"},children:S.processingFeeNote.replace("{percent}",String(Pe>0?Math.round(Ae/Pe*1e3)/10:100*fe[R]))})]}),Object(z.jsxs)("span",{style:{fontSize:"14px",color:"#212427"},children:["THB ",ve(Ae)]})]}),Object(z.jsxs)("div",{style:{borderTop:"1px solid #E4E7EC",marginTop:"14px",paddingTop:"14px",display:"flex",justifyContent:"space-between"},children:[Object(z.jsx)("span",{style:{fontSize:"15px",fontWeight:700,color:"#212427"},children:S.totalLabel}),Object(z.jsxs)("span",{style:{fontSize:"15px",fontWeight:700,color:"#0048B3"},children:["THB ",ve(Re)]})]})]}),Object(z.jsxs)("div",{ref:D,style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"18px"},children:[Object(z.jsx)("div",{style:{width:"4px",height:"18px",backgroundColor:"#0048B3",borderRadius:"2px"}}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",margin:0},children:S.selectMethodLabel})]}),Object(z.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"18px",marginBottom:"24px"},children:Le.map((function(e){var t=R===e.key;return Object(z.jsxs)("div",{children:[Object(z.jsxs)("div",{onClick:function(){A.a.track("Payment Method Select",{method:e.key}),T(e.key)},style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[Object(z.jsx)(ke,{selected:t}),e.badge,e.icon,Object(z.jsx)("span",{style:{fontSize:"15.5px",color:"#212427"},children:e.label})]}),t&&"CARD"===e.key&&Object(z.jsx)("div",{style:{display:"flex",gap:"8px",marginTop:"10px",marginLeft:"34px"},children:[Oe.mastercard,Oe.jcb,Oe.visa].map((function(e,t){return Object(z.jsx)("div",{style:{width:"52px",height:"36px",border:"1px solid #E4E7EC",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"},children:Object(z.jsx)("img",{src:e,alt:"card brand",style:{height:"18px",objectFit:"contain"}})},t)}))})]},e.key)}))}),"CARD"===R&&Object(z.jsx)("div",{ref:W,children:Object(z.jsxs)(ce.a,{form:F,layout:"vertical",style:{marginBottom:"8px"},children:[Object(z.jsx)(ce.a.Item,{name:"cardNumber",label:S.cardNumberLabel,rules:[{required:!0,message:""},{pattern:/^[\d\s]{13,19}$/,message:""}],getValueFromEvent:function(e){return function(e){for(var t=e.replace(/\s/g,""),n="",i=0;i<t.length;i++)i>0&&i%4===0&&(n+=" "),n+=t[i];return n}(e.target.value)},children:Object(z.jsx)(le.a,{placeholder:S.cardNumberPlaceholder,maxLength:19,style:{height:"44px",borderRadius:"8px"}})}),Object(z.jsx)(ce.a.Item,{name:"cardHolder",label:S.cardHolderLabel,rules:[{required:!0,message:""}],children:Object(z.jsx)(le.a,{placeholder:S.cardHolderPlaceholder,style:{height:"44px",borderRadius:"8px",textTransform:"uppercase"},onChange:function(e){e.target.value=e.target.value.toUpperCase()}})}),Object(z.jsxs)("div",{style:{display:"flex",gap:"16px"},children:[Object(z.jsx)(ce.a.Item,{name:"expirationDate",label:S.expiryLabel,rules:[{required:!0,message:""}],style:{flex:1},children:Object(z.jsx)(de.a,{format:"MM/YY",picker:"month",placeholder:"MM/YY",style:{height:"44px",borderRadius:"8px",width:"100%"},suffixIcon:Object(z.jsx)("img",{src:Oe.calendar,alt:"",style:{width:"16px",height:"16px"}})})}),Object(z.jsx)(ce.a.Item,{name:"cvv",label:S.cvvLabel,rules:[{required:!0,message:""},{pattern:/^[0-9]{3,4}$/,message:""}],style:{flex:1},children:Object(z.jsx)(le.a,{placeholder:"123",maxLength:4,type:"password",style:{height:"44px",borderRadius:"8px"}})})]})]})})]}),Object(z.jsxs)("div",{style:{flexShrink:0,padding:"16px 24px 24px",borderTop:"1px solid #EEF0F3",backgroundColor:"#fff"},children:[Object(z.jsxs)("div",{onClick:_e,style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",cursor:Z?"not-allowed":"pointer",opacity:Z?.7:1,fontSize:"16px",fontWeight:500,marginBottom:"16
1px"},children:[Z&&Object(z.jsx)(d.a,{spin:!0}),Z?S.processingBtn:"".concat(S.payBtnPrefix," ").concat(ve(Re)," ").concat(S.payBtnSuffix)]}),Object(z.jsx)("div",{onClick:w,style:{textAlign:"center",color:"#8C97A7",fontSize:"14px",cursor:"pointer"},children:S.goBackBtn})]})]}),De=Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(be,{open:!!ne,qrCodeUrl:ne||"",methodLabel:Fe,onClose:function(){Te(),$(!1),ie(null)}}),Object(z.jsx)(he,{open:pe,referenceId:null===q||void 0===q?void 0:q.id,onContinue:function(){xe(!1),null===u||void 0===u||u(R)}}),Object(z.jsx)(ue,{open:Z&&!ne&&!pe})]});return b?Object(z.jsxs)(z.Fragment,{children:[ze,De]}):Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(g.a,{open:l,onCancel:w,maskClosable:!1,footer:null,closable:!1,width:490,bodyStyle:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden",position:"relative"},style:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},children:ze}),De]})},Se=n(184),we="#041F3E";var Pe=function(e){var t=e.open,n=e.onBack,i=e.plan,r=e.onLearnMoreLink,o=e.screenHeight,s=void 0===o?window.innerHeight:o,c=Object(I.a)().tr.listing.proIntro.planDetails,a="pro"===i?c.pro:c.starter,l="pro"===i;Object(L.a)("Plan Details Modal Opened",t,{plan:i});var d=function(){A.a.track("Plan Details Modal Back Click",{plan:i}),n()};return Object(z.jsx)(g.a,{open:t,onCancel:d,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"32px 24px 24px",borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"".concat(s,"px"),overflowY:"auto"},style:{borderRadius:"8px",top:0,height:"".concat(s,"px")},children:Object(z.jsxs)("div",{style:{position:"relative",display:"flex",flexDirection:"column",flex:1},children:[Object(z.jsx)(M,{onClick:d}),Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:700,color:"#212427",marginBottom:"16px"},children:a.title}),Object(z.jsx)("div",{style:{backgroundColor:"#F4F6F8",borderRadius:"12px",padding:"20px",marginBottom:"20px"},children:a.bullets.map((function(e,t){return Object(z.jsxs)(m.Fragment,{children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"10px",marginBottom:"16px"},children:[Object(z.jsx)("div",{style:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:"#212427",marginTop:"8px",flexShrink:0}}),Object(z.jsx)("p",{style:{margin:0,fontSize:"15px",color:"#212427",lineHeight:"1.5"},children:(n=e,n.split("*").map((function(e,t){return t%2===1?Object(z.jsx)("span",{style:{color:"#0048B3"},children:e},t):Object(z.jsx)(m.Fragment,{children:e},t)})))})]}),t===a.linkAfterIndex&&Object(z.jsxs)("div",{onClick:function(){A.a.track("Plan Details Learn More Link Click",{plan:i}),null===r||void 0===r||r()},style:{display:"inline-flex",alignItems:"center",gap:"4px",color:"#0048B3",fontSize:"14px",fontWeight:600,cursor:"pointer",marginLeft:"16px",marginBottom:"16px"},children:[a.linkLabel,Object(z.jsx)(Se.a,{style:{fontSize:"11px"}})]})]},t);var n}))}),Object(z.jsxs)("div",{style:{display:"flex",borderRadius:"12px",overflow:"hidden",border:"1px solid #E4E7EC",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1.3},children:[Object(z.jsx)("div",{style:{height:"52px",display:"flex",alignItems:"center",padding:"0 12px"},children:Object(z.jsx)("span",{style:{fontSize:"11px",fontWeight:600,color:"#8C97A7",letterSpacing:"0.4px",textTransform:"uppercase"},children:c.featureListLabel})}),c.featureRows.map((function(e,t){return Object(z.jsx)("div",{style:{minHeight:"64px",display:"flex",alignItems:"center",padding:"10px 12px",borderTop:"1px solid #EEF0F3",fontSize:"13px",color:"#212427"},children:e.label},t)}))]}),Object(z.jsxs)("div",{style:{flex:1,backgroundColor:l?void 0:we},children:[Object(z.jsx)("div",{style:{height:"52px",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 8px"},children:Object(z.jsx)("span",{style:{fontSize:"11px",fontWeight:700,letterSpacing:"0.4px",color:l?"#8C97A7":"#fff"},children:c.starterColLabel})}),c.featureRows.map((function(e,t){return Object(z.jsx)("div",{style:{minHeight:"64px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"10px 8px",borderTop:l?"1px solid #EEF0F3":"1px solid rgba(255,255,255,0.12)",fontSize:"13px",color:l?"#212427":"#fff"},children:e.starter},t)}))]}),Object(z.jsxs)("div",{style:{flex:1,backgroundColor:l?we:void 0},children:[Object(z.jsx)("div",{style:{height:"52px",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 8px"},children:Object(z.jsx)("span",{style:{fontSize:"11px",fontWeight:700,letterSpacing:"0.4px",color:l?"#fff":"#8C97A7"},children:c.proColLabel})}),c.featureRows.map((function(e,t){return Object(z.jsx)("div",{style:{minHeight:"64px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"10px 8px",borderTop:l?"1px solid rgba(255,255,255,0.12)":"1px solid #EEF0F3",fontSize:"13px",color:l?"#fff":"#212427"},children:e.pro},t)}))]})]}),Object(z.jsx)("div",{onClick:function(){A.a.track("Plan Details Back Button Click",{plan:i}),n()},style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"16px",fontWeight:500,marginTop:"auto"},children:c.backBtn})]})})},Ee=n(135),Ae=n(693),Re=n(295),Te=n(101);function Be(e,t){var n=Math.round(t/100*30);return{utilisationPct:t,days:n,income:Math.round(e*n)}}var Ie=function(e){var t=e.open,n=e.onBack,i=e.onContinueWithPro,c=e.screenHeight,a=void 0===c?window.innerHeight:c,l=Object(I.a)(),d=l.tr,p=l.lang,u=Object(C.k)(),x=d.listing.proIntro.earningsCalculator,h=Object(m.useState)([]),b=Object(s.a)(h,2),j=b[0],y=b[1],O=Object(m.useState)([]),v=Object(s.a)(O,2),k=v[0],S=v[1],w=Object(m.useState)(),P=Object(s.a)(w,2),R=P[0],T=P[1],B=Object(m.useState)(),_=Object(s.a)(B,2),F=_[0],D=_[1],W=Object(m.useState)(),N=Object(s.a)(W,2),H=N[0],U=N[1],Y=Object(m.useState)(!1),V=Object(s.a)(Y,2),K=V[0],G=V[1],q=Object(m.useState)(!1),X=Object(s.a)(q,2),J=X[0],Q=X[1],Z=Object(m.useState)(!1),$=Object(s.a)(Z,2),ee=$[0],te=$[1],ne=Object(m.useState)(null),re=Object(s.a)(ne,2),oe=re[0],se=re[1],ce=Object(m.useState)(null),ae=Object(s.a)(ce,2),le=ae[0],de=ae[1],ue=function(){for(var e=(new Date).getFullYear(),t=e-10,n=[],i=e;i>=t;i--)n.push({label:String(i),value:String(i)});return n}();Object(L.a)("Earnings Calculator Modal Opened",t),Object(m.useEffect)((function(){t&&(G(!0),Object(Te.a)().then(y).catch((function(){return y([])})).finally((function(){return G(!1)})))}),[t]),Object(m.useEffect)((function(){R?(Q(!0),Object(Te.d)(R).then(S).catch((function(){return S([])})).finally((function(){return Q(!1)}))):S([])}),[R]),Object(m.useEffect)((function(){t||(T(void 0),D(void 0),U(void 0),se(null),de(null))}),[t]);var xe=function(){A.a.track("Earnings Calculator Modal Back Click"),n()},he=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t,n,i,o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R&&F&&H){e.next=2;break}return e.abrupt("return");case 2:return A.a.track("Earnings Calculator Calculate Click",{brand:R,model:F.key,year:H}),te(!0),de(null),se(null),e.prev=6,e.next=9,Object(E.g)(u.userLoggedIn,R,F.key,F.sub_model,H);case 9:if(t=e.sent,n=t.dailyRateNormal||0,i=t.monthlyRate||0,!(n<=0)){e.next=14;break}throw new Error("Pricing not available");case 14:se({dailyRate:n,monthlyRate:i,starter:Be(n,50),pro:Be(n,80)}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(6),de((null===e.t0||void 0===e.t0||null===(o=e.t0.response)||void 0===o||null===(s=o.data)||void 0===s?void 0:s.message)||x.notFoundError);case 20:return e.prev=20,te(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[6,17,20,23]])})));return function(){return e.apply(this,arguments)}}();return Object(z.jsxs)(g.a,{open:t,onCancel:xe,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,zIndex:1050,bodyStyle:{padding:"56px 28px 28px",borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"".concat(a,"px"),overflowY:"auto",position:"relative"},style:{borderRadius:"8px",top:0,height:"".concat(a,"px")},children:[Object(z.jsx)("style",{children:"\n  .earnings-calculator-select .ant-select-selector {\n    border-radius: 8px !important;\n    min-height: 40px !important;\n    display: flex !important;
1\n    align-items: center !important;\n  }\n"}),Object(z.jsx)(M,{onClick:xe,top:"16px",left:"16px"}),Object(z.jsx)("h2",{style:{fontSize:"18px",fontWeight:600,color:"#212427",marginBottom:"8px"},children:x.modalTitle}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"20px"},children:x.modalSubtitle}),Object(z.jsxs)("div",{style:{marginBottom:"16px"},children:[Object(z.jsx)("div",{style:{fontSize:"13px",color:"#212427",marginBottom:"6px"},children:x.brandLabel}),Object(z.jsx)(Re.a,{style:{width:"100%"},className:"earnings-calculator-select",placeholder:x.brandPlaceholder,value:R,onChange:function(e){T(e),D(void 0),se(null),de(null)},showSearch:!0,optionFilterProp:"label",loading:K,notFoundContent:K?Object(z.jsx)(pe.a,{size:"small"}):void 0,options:j.map((function(e){return{label:"EN"===p?e.description_en:e.description_th,value:e.key}}))})]}),Object(z.jsxs)("div",{style:{marginBottom:"16px"},children:[Object(z.jsx)("div",{style:{fontSize:"13px",color:"#212427",marginBottom:"6px"},children:x.modelLabel}),Object(z.jsx)(Re.a,{style:{width:"100%"},className:"earnings-calculator-select",placeholder:x.modelPlaceholder,value:F?String(k.indexOf(F)):void 0,onChange:function(e){D(k[Number(e)]),se(null),de(null)},disabled:!R,showSearch:!0,optionFilterProp:"label",loading:J,notFoundContent:J?Object(z.jsx)(pe.a,{size:"small"}):void 0,options:k.map((function(e,t){return{label:"EN"===p?e.description_en:e.description_th,value:String(t)}}))})]}),Object(z.jsxs)("div",{style:{marginBottom:"20px"},children:[Object(z.jsx)("div",{style:{fontSize:"13px",color:"#212427",marginBottom:"6px"},children:x.yearLabel}),Object(z.jsx)(Re.a,{style:{width:"100%"},className:"earnings-calculator-select",placeholder:x.yearPlaceholder,value:H,onChange:function(e){U(e),se(null),de(null)},options:ue})]}),Object(z.jsx)(f.a,{type:"primary",block:!0,size:"large",shape:"round",loading:ee,disabled:!R||!F||!H,onClick:he,style:{backgroundColor:"#0048B3",borderColor:"#0048B3",height:"48px"},children:x.calculateBtn}),le&&Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px",backgroundColor:"#FFF1F0",border:"1px solid #FFCCC7",borderRadius:"10px",padding:"12px",marginTop:"16px"},children:[Object(z.jsx)(Ee.a,{style:{color:"#CF1322",fontSize:"14px",marginTop:"1px"}}),Object(z.jsx)("div",{style:{fontSize:"13px",color:"#CF1322",lineHeight:"1.5"},children:le})]}),oe&&Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)("div",{style:{borderTop:"1px solid #EEF0F3",margin:"24px 0 16px"}}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:600,color:"#212427",marginBottom:"4px"},children:x.resultsTitle}),Object(z.jsx)("p",{style:{fontSize:"12.5px",color:"#8C97A7",lineHeight:"1.5",marginBottom:"16px"},children:x.resultsSubtitle}),Object(z.jsxs)("div",{style:{display:"flex",gap:"10px",marginBottom:"12px"},children:[Object(z.jsxs)("div",{style:{flex:1,backgroundColor:"#F4F5F9",borderRadius:"10px",padding:"14px"},children:[Object(z.jsx)("div",{style:{fontSize:"13px",fontWeight:600,color:"#212427"},children:x.perDayRateLabel}),Object(z.jsxs)("div",{style:{fontSize:"18px",fontWeight:700,color:"#212427",margin:"2px 0"},children:["THB ",oe.dailyRate.toLocaleString()]}),Object(z.jsx)("div",{style:{fontSize:"11px",color:"#8C97A7"},children:x.perDayRateNote})]}),Object(z.jsxs)("div",{style:{flex:1,backgroundColor:"#F4F5F9",borderRadius:"10px",padding:"14px"},children:[Object(z.jsx)("div",{style:{fontSize:"13px",fontWeight:600,color:"#212427"},children:x.perMonthRateLabel}),Object(z.jsxs)("div",{style:{fontSize:"18px",fontWeight:700,color:"#212427",margin:"2px 0"},children:["THB ",oe.monthlyRate.toLocaleString()]}),Object(z.jsx)("div",{style:{fontSize:"11px",color:"#8C97A7"},children:x.perMonthRateNote})]})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"8px",backgroundColor:"#F4F5F9",borderRadius:"10px",padding:"12px",marginBottom:"16px"},children:[Object(z.jsx)(ie.a,{style:{color:"#8C97A7",fontSize:"14px",marginTop:"1px"}}),Object(z.jsx)("div",{style:{fontSize:"11.5px",color:"#667085",lineHeight:"1.5"},children:x.standardPricingNote})]}),Object(z.jsxs)("div",{style:{backgroundColor:"#F4F5F9",borderRadius:"10px",padding:"14px",marginBottom:"12px"},children:[Object(z.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#212427",marginBottom:"10px"},children:x.starterLabel}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"13px",color:"#212427",marginBottom:"6px"},children:[Object(z.jsx)("span",{children:x.utilisationRateLabel}),Object(z.jsxs)("span",{children:[oe.starter.utilisationPct,"%"]})]}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"13px",color:"#212427",marginBottom:"6px"},children:[Object(z.jsx)("span",{children:x.estRentalDaysLabel}),Object(z.jsx)("span",{children:oe.starter.days})]}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"13px",color:"#212427"},children:[Object(z.jsx)("span",{children:x.estIncomeLabel}),Object(z.jsxs)("span",{style:{fontSize:"15px",fontWeight:700}
1,children:["THB ",oe.starter.income.toLocaleString()]})]}),Object(z.jsxs)("div",{style:{borderTop:"1px solid #E4E7EC",paddingTop:"8px",marginTop:"10px",fontSize:"11px",color:"#8C97A7"},children:[x.listedOnlyOnLabel,Object(z.jsx)("div",{style:{fontWeight:600,color:"#212427",marginTop:"2px"},children:"HAUP"})]})]}),Object(z.jsxs)("div",{style:{backgroundColor:"#EAF1FF",border:"1px solid #C7DBFF",borderRadius:"10px",padding:"14px",marginBottom:"12px"},children:[Object(z.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#0048B3",marginBottom:"10px"},children:x.proLabel}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"13px",color:"#0048B3",marginBottom:"6px"},children:[Object(z.jsx)("span",{children:x.utilisationRateLabel}),Object(z.jsxs)("span",{children:[oe.pro.utilisationPct,"%"]})]}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"13px",color:"#0048B3",marginBottom:"6px"},children:[Object(z.jsx)("span",{children:x.estRentalDaysLabel}),Object(z.jsx)("span",{children:oe.pro.days})]}),Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"13px",color:"#0048B3"},children:[Object(z.jsx)("span",{children:x.estIncomeLabel}),Object(z.jsxs)("span",{style:{fontSize:"15px",fontWeight:700},children:["THB ",oe.pro.income.toLocaleString()]})]}),Object(z.jsxs)("div",{style:{borderTop:"1px solid #C7DBFF",paddingTop:"8px",marginTop:"10px",fontSize:"11px",color:"#0048B3"},children:[x.listedOnLabel,Object(z.jsx)("div",{style:{fontWeight:600,color:"#0048B3",marginTop:"2px"},children:"Trip.com \xb7 Klook"})]})]}),Object(z.jsxs)("div",{style:{backgroundColor:"#EAF1FF",borderRadius:"10px",padding:"12px",marginBottom:"12px",display:"flex",alignItems:"flex-start",gap:"8px"},children:[Object(z.jsx)(Ae.a,{style:{color:"#0048B3",fontSize:"16px",marginTop:"2px"}}),Object(z.jsxs)("div",{children:[Object(z.jsx)("div",{style:{fontSize:"13.5px",fontWeight:600,color:"#212427"},children:x.proUtilisationBannerTitle}),Object(z.jsx)("div",{style:{fontSize:"11.5px",color:"#8C97A7"},children:x.proUtilisationBannerSubtitle})]})]}),Object(z.jsx)("p",{style:{fontSize:"11px",color:"#8C97A7",lineHeight:"1.5",marginBottom:"16px"},children:x.disclaimer}),Object(z.jsx)(f.a,{type:"primary",block:!0,size:"large",shape:"round",onClick:function(){A.a.track("Earnings Calculator Continue With Pro Click"),null===i||void 0===i||i()},style:{backgroundColor:"#0048B3",borderColor:"#0048B3",height:"48px",marginBottom:"12px"},children:x.continueWithProBtn}),Object(z.jsx)("div",{onClick:xe,style:{textAlign:"center",color:"#8C97A7",fontSize:"14px",cursor:"pointer"},children:x.backToOverviewBtn})]})]})},_e=n(694),Le=n(302),Fe=n(303);function ze(e){return e.split("*").map((function(e,t){return t%2===1?Object(z.jsx)("strong",{style:{color:"#0048B3",fontWeight:600},children:e},t):Object(z.jsx)(m.Fragment,{children:e},t)}))}var De,We=function(e){var t=e.text;return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"10px",marginBottom:"14px"},children:[Object(z.jsx)("div",{style:{width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#0048B3",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:"2px"},children:Object(z.jsx)(F.a,{style:{color:"#fff",fontSize:"10px"}})}),Object(z.jsx)("p",{style:{margin:0,fontSize:"14px",color:"#333",lineHeight:"1.5"},children:ze(t)})]})},Me=function(e){var t=e.text;return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"10px",marginBottom:"14px"},children:[Object(z.jsx)("div",{style:{width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#D6DAE0",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:"2px"},children:Object(z.jsx)(F.a,{style:{color:"#fff",fontSize:"10px"}})}),Object(z.jsx)("p",{style:{margin:0,fontSize:"14px",color:"#8C97A7",lineHeight:"1.5"},children:t})]})},Ne=function(e){var t=e.label,n=e.onClick;return Object(z.jsxs)("div",{onClick:n,style:{display:"inline-flex",alignItems:"center",gap:"4px",color:"#0048B3",fontSize:"14px",fontWeight:500,cursor:"pointer"},children:[t,Object(z.jsx)(Se.a,{style:{fontSize:"11px"}})]})}
1,He=function(e){var t=e.activeTab,n=e.onChange,i=e.proLabel,r=e.starterLabel,o=function(e){return{flex:1,textAlign:"center",padding:"12px 0",borderRadius:"10px",fontSize:"15px",fontWeight:600,cursor:"pointer",backgroundColor:t===e?"#fff":"transparent",color:t===e?"#0048B3":"#8C97A7",boxShadow:t===e?"0 1px 4px rgba(0,0,0,0.1)":"none",transition:"background-color 0.15s ease, color 0.15s ease"}};return Object(z.jsxs)("div",{style:{display:"flex",backgroundColor:"#F0F1F4",borderRadius:"14px",padding:"4px",marginBottom:"20px"},children:[Object(z.jsx)("div",{onClick:function(){return n("pro")},style:o("pro"),children:i}),Object(z.jsx)("div",{onClick:function(){return n("starter")},style:o("starter"),children:r})]})},Ue=function(e){var t=e.icon,n=e.backgroundColor;return Object(z.jsx)("div",{style:{width:"36px",height:"36px",borderRadius:"10px",backgroundColor:n,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:t})},Ye=function(){return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"14px",marginLeft:"28px",marginTop:"2px",marginBottom:"14px"},children:[Object(z.jsxs)("span",{style:{fontWeight:700,fontSize:"14px",color:"#0064D2"},children:["Trip",Object(z.jsx)("span",{style:{color:"#00A19C"},children:".com"})]}),Object(z.jsx)("span",{style:{fontWeight:700,fontSize:"14px",color:"#FF5B00"},children:"Klook"})]})},Ve=function(e){var t=e.title,n=e.subtitle,i=e.onClick;return Object(z.jsxs)("div",{onClick:i,style:{display:"flex",alignItems:"center",gap:"12px",backgroundColor:"#E9FBFB",border:"1px solid #C9F2F2",borderRadius:"12px",padding:"14px 16px",marginBottom:"16px",cursor:"pointer"},children:[Object(z.jsx)("div",{style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)(_e.a,{style:{color:"#00A9A5",fontSize:"16px"}})}),Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#212427"},children:t}),Object(z.jsx)("div",{style:{fontSize:"12.5px",color:"#667085"},children:n})]}),Object(z.jsx)(Se.a,{style:{color:"#00A9A5",fontSize:"14px",flexShrink:0}})]})},Ke=function(e){var t=e.title.split(", ");return Object(z.jsx)("div",{style:{flex:1,backgroundColor:"#EAF1FF",border:"1px solid #C7DBFF",borderRadius:"10px",padding:"12px",textAlign:"center"},children:t.map((function(e,t){return Object(z.jsx)("div",{style:{fontSize:"14px",fontWeight:700,color:"#0048B3",lineHeight:1.4},children:e},t)}))})},Ge=function(e){var t=e.open,n=e.embedded,i=e.loading,r=void 0!==i&&i,o=e.onBack,c=e.onInterestedInPro,a=e.onNotInterested,l=e.onLearnMorePro,p=e.onLearnMoreStarter,u=e.onLearnMoreRevenuePlans,x=e.onOpenEarningsCalculator,h=Object(I.a)().tr,b=h.listing.proIntro,f=h.listing.proIntro.revenuePlans,j=Object(m.useState)("pro"),y=Object(s.a)(j,2),O=y[0],v=y[1];Object(L.a)("Pro Intro Modal Opened",t),Object(m.useEffect)((function(){t&&v("pro")}),[t]);var k=function(){r||(A.a.track("Pro Intro Modal Back Click"),o())},C=Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(M,{onClick:k,top:"16px",left:"16px"}),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"56px 24px 24px"},children:[Object(z.jsx)("h2",{style:{fontSize:"20px",fontWeight:600,color:"#212427",marginBottom:"8px"},children:b.title}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"20px"},children:b.subtitle}),Object(z.jsx)(Ve,{title:b.earningsCalculator.entryTitle,subtitle:b.earningsCalculator.entrySubtitle,onClick:function(){A.a.track("Pro Intro Calculate Earnings Click"),null===x||void 0===x||x()}}),Object(z.jsx)(He,{activeTab:O,onChange:function(e){A.a.track("Pro Intro Tab Click",{tab:e}),v(e)},proLabel:b.earningsCalculator.proLabel,starterLabel:b.earningsCalculator.starterLabel}),"pro"===O?Object(z.jsxs)("div",{style:{border:"1.5px solid #0048B3",borderRadius:"12px",padding:"20px",marginBottom:"24px",backgroundColor:"#F5F9FF"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16
1px"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[Object(z.jsx)(Ue,{backgroundColor:"#fff",icon:Object(z.jsx)(Le.a,{style:{color:"#0048B3",fontSize:"16px"}})}),Object(z.jsx)("span",{style:{fontSize:"18px",fontWeight:700,color:"#212427"},children:b.proLabel})]}),Object(z.jsx)("span",{style:{background:"linear-gradient(135deg, #F6B94D, #E8871E)",color:"#fff",fontSize:"12px",fontWeight:600,padding:"5px 12px",borderRadius:"12px"},children:b.proBadge})]}),Object(z.jsx)(We,{text:b.proBullet1}),Object(z.jsx)(Ye,{}),Object(z.jsx)(We,{text:b.proBullet2}),Object(z.jsx)(We,{text:b.proBullet3}),Object(z.jsx)(We,{text:b.proBullet4}),Object(z.jsx)(We,{text:b.proBullet5}),Object(z.jsx)("div",{style:{marginBottom:"12px"},children:Object(z.jsx)(Ne,{label:b.learnMoreRevenuePlans,onClick:function(){A.a.track("Pro Intro Learn More Revenue Plans Click"),null===u||void 0===u||u()}})}),Object(z.jsxs)("div",{style:{display:"flex",gap:"10px",marginBottom:"14px"},children:[Object(z.jsx)(Ke,{title:f.plan5545Title}),Object(z.jsx)(Ke,{title:f.plan5050Title})]}),Object(z.jsx)("div",{style:{backgroundColor:"#FFF8E8",border:"1px solid #F5E2B8",borderRadius:"8px",padding:"10px 12px",fontSize:"12.5px",color:"#8A6D1D",lineHeight:"1.4",marginBottom:"14px"},children:b.proNote}),Object(z.jsx)(Ne,{label:b.learnMorePro,onClick:function(){A.a.track("Pro Intro Learn More Pro Click"),null===l||void 0===l||l()}})]}):Object(z.jsxs)("div",{style:{border:"1px solid #E4E7EC",borderRadius:"12px",padding:"20px",marginBottom:"24px",backgroundColor:"#fff"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"16px"},children:[Object(z.jsx)(Ue,{backgroundColor:"#F4F5F9",icon:Object(z.jsx)(Fe.a,{style:{color:"#212427",fontSize:"16px"}})}),Object(z.jsx)("span",{style:{fontSize:"18px",fontWeight:700,color:"#212427"},children:b.starterLabel})]}),Object(z.jsx)(Me,{text:b.starterBullet1}),Object(z.jsx)(Me,{text:b.starterBullet2}),Object(z.jsx)(Me,{text:b.starterBullet3}),Object(z.jsx)(Me,{text:b.starterBullet4}),Object(z.jsx)(Me,{text:b.starterBullet5}),Object(z.jsx)(Ne,{label:b.learnMoreStarter,onClick:function(){A.a.track("Pro Intro Learn More Starter Click"),null===p||void 0===p||p()}})]})]}),Object(z.jsx)("div",{style:{flexShrink:0,padding:"16px 24px 24px",borderTop:"1px solid #EEF0F3",backgroundColor:"#fff"},children:Object(z.jsxs)("div",{onClick:function(){r||("pro"===O?(A.a.track("Pro Intro Interested In Pro Click"),null===c||void 0===c||c()):(A.a.track("Pro Intro Not Interested Click"),null===a||void 0===a||a()))},style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",cursor:r?"default":"pointer",opacity:r?.8:1,fontSize:"16px",fontWeight:500},children:[r&&Object(z.jsx)(d.a,{spin:!0}),"pro"===O?b.continueWithProBtn:b.continueWithStarterBtn]})})]});return n?C:Object(z.jsx)(g.a,{open:t,onCancel:k,maskClosable:!1,footer:null,closable:!1,width:490,bodyStyle:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden",position:"relative"},style:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},children:C})},qe=function(e){var t=e.checked;return Object(z.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t?"#0048B3":"#EEF0F3",margin:"0 auto"},children:Object(z.jsx)(F.a,{style:{color:t?"#fff":"#C7CDD6",fontSize:"11px"}})})},Xe=function(e){var t=e.open,n=e.onBack,i=e.screenHeight,r=void 0===i?window.innerHeight:i,o=Object(I.a)().tr.listing.proIntro.revenuePlans;Object(L.a)("Revenue Plans Modal Opened",t);var s=function(){A.a.track("Revenue Plans Modal Back Click"),n()};return Object(z.jsx)(g.a,{open:t,onCancel:s,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"32px 24px 24px",borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"".concat(r,"px"),overflowY:"auto"},style:{borderRadius:"8px",top:0,height:"".concat(r,"px")},children:Object(z.jsxs)("div",{style:{position:"relative"},children:[Object(z.jsx)(M,{onClick:s}),Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:700,color:"#212427",marginBottom:"12px"},children:o.title}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"24px"},children:o.subtitle}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",marginBottom:"4px"},children:o.plan5545Title}),Object(z.jsx)("h4",{style:{fontSize:"15px",fontWeight:600,color:"#212427",marginBottom:"6px"},children:o.plan5545Subtitle}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"20px"},children:o.plan5545Desc}),Object(z.jsx)("h3",{style:{fontSize:"16px",fontWeight:700,color:"#212427",marginBottom:"4px"},children:o.plan5050Title}),Object(z.jsx)("h4",{style:{fontSize:"15px",fontWeight:600,color:"#212427",marginBottom:"6px"},children:o.plan5050Subtitle}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"24px"},children:o.plan5050Desc}),Object(z.jsxs)("div",{style:{border:"1px solid #E4E7EC",borderRadius:"12px",overflow:"hidden",marginBottom:"16
1px"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:"12px 16px",backgroundColor:"#F4F6F8"},children:[Object(z.jsx)("span",{style:{flex:1.4,fontSize:"11px",fontWeight:600,color:"#8C97A7",letterSpacing:"0.4px",textTransform:"uppercase"},children:o.featuresLabel}),Object(z.jsx)("span",{style:{flex:1,textAlign:"center",fontSize:"13px",fontWeight:600,color:"#0048B3"},children:o.col5050Label}),Object(z.jsx)("span",{style:{flex:1,textAlign:"center",fontSize:"13px",fontWeight:600,color:"#8C97A7"},children:o.col5545Label})]}),o.rows.map((function(e,t){return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:"14px 16px",borderTop:"1px solid #EEF0F3"},children:[Object(z.jsx)("span",{style:{flex:1.4,fontSize:"13.5px",color:"#4A5568"},children:e.label}),Object(z.jsx)("span",{style:{flex:1,textAlign:"center"},children:e.col1Text?Object(z.jsx)("span",{style:{fontSize:"13.5px",fontWeight:500,color:"#0048B3"},children:e.col1Text}):Object(z.jsx)(qe,{checked:e.col1Check})}),Object(z.jsx)("span",{style:{flex:1,textAlign:"center"},children:e.col2Text?Object(z.jsx)("span",{style:{fontSize:"13.5px",fontWeight:500,color:"#8C97A7"},children:e.col2Text}):Object(z.jsx)(qe,{checked:e.col2Check})})]},t)}))]})]})})},Je=n(338),Qe=n(327),Ze=function(e){var t=e.selected,n=e.onClick,i=e.icon,r=e.title,o=e.desc;return Object(z.jsx)("div",{onClick:n,style:{border:"2px solid ".concat(t?"#0048B3":"#E4E7EC"),borderRadius:"12px",padding:"20px",marginBottom:"16px",cursor:"pointer",backgroundColor:t?"#EEF4FF":"#fff",boxShadow:t?"0 0 0 4px rgba(0, 72, 179, 0.12)":"none",transition:"all 0.15s ease"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("img",{src:i,alt:r,style:{width:"56px",height:"56px",objectFit:"contain",flexShrink:0}}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:600,marginBottom:"4px",color:t?"#0048B3":"#333"},children:r}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:1.4},children:o})]}),Object(z.jsx)("span",{style:{width:"22px",height:"22px",borderRadius:"50%",flexShrink:0,border:"2px solid ".concat(t?"#0048B3":"#C7CDD6"),backgroundColor:t?"#0048B3":"#fff",display:"flex",alignItems:"center",justifyContent:"center"},children:t&&Object(z.jsx)("span",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"#fff"}})})]})})},$e=function(e){var t=e.open,n=e.onBack,i=e.onSelect,r=e.screenHeight,o=e.embedded,c=Object(I.a)().lang,a=Object(Qe.a)(c).brandChoice,l=Object(m.useState)("others"),d=Object(s.a)(l,2),p=d[0],u=d[1],x=Object(m.useState)(!1),h=Object(s.a)(x,2),b=h[0],j=h[1],y=Object(m.useRef)();Object(m.useEffect)((function(){t&&(u("others"),j(!1))}),[t]),Object(m.useEffect)((function(){return function(){return clearTimeout(y.current)}}),[]);var O=function(){b||n()},v=Object(z.jsx)(z.Fragment,{children:Object(z.jsxs)("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column"},children:[Object(z.jsx)(M,{onClick:O}),Object(z.jsxs)("div",{style:{flex:1,minHeight:0,overflowY:"auto",display:"flex",flexDirection:"column",justifyContent:"center"},children:[Object(z.jsx)("h2",{style:{fontSize:"24px",fontWeight:600,marginBottom:"12px",color:"#333"},children:a.title}),Object(z.jsx)("p",{style:{fontSize:"16px",color:"#666",marginBottom:"28px",lineHeight:1.5},children:a.desc}),Object(z.jsx)(Ze,{selected:"others"===p,onClick:function(){return!b&&u("others")},icon:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2dFCWYSfuvNtCu8VRjH36VbpZWxNvQ46PYVNw1jzW869phPnovv4xXTEuXhdwCLoLBMyjQ9FY4BTZrp8WEmre5Mk.png",title:a.othersTitle,desc:a.othersDesc}),Object(z.jsx)(Ze,{selected:"tesla"===p,onClick:function(){return!b&&u("tesla")},icon:Je.b.step1Welcome,title:a.teslaTitle,desc:a.teslaDesc})]}),Object(z.jsx)(f.a,{type:"primary",shape:"round",block:!0,size:"large",style:{flexShrink:0,marginTop:"16px",height:"48px",backgroundColor:"#0048B3",borderColor:"#0048B3",fontSize:"16px",fontWeight:500},loading:b,onClick:function(){b||(j(!0),y.current=setTimeout((function(){return i(p)}),350))},children:a.next})]})});return o?v:Object(z.jsx)(g.a,{open:t,onCancel:O,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"40px 32px",borderRadius:"8px",height:"".concat(r,"px"),display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif"},style:{borderRadius:"8px",top:0,height:"".concat(r,"px")},children:v})},et=function(e){var t=e.checked,n=e.highlighted;return Object(z.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t&&n?"#0048B3":t?"#EEF0F3":"transparent",margin:"0 auto"},children:t&&Object(z.jsx)(F.a,{style:{color:n?"#fff":"#C7CDD6",fontSize:"11px"}})})},tt=function(e){var t=e.open,n=e.embedded,i=e.loading,r=void 0!==i&&i,o=e.onBack,s=e.onSwitchToPro,c=e.onContinueStarter,a=Object(I.a)().tr.listing.proIntro.takeALook;Object(L.a)("Take A Look Modal Opened",t);var l=function(){r||(A.a.track("Take A Look Modal Back Click"),o())},p=Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(M,{onClick:l,top:"16px",left:"16px"}
1),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"56px 24px 24px"},children:[Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:700,color:"#212427",marginBottom:"12px"},children:a.title}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.5",marginBottom:"24px"},children:a.subtitle}),Object(z.jsxs)("div",{style:{border:"1px solid #E4E7EC",borderRadius:"12px",overflow:"hidden",marginBottom:"20px"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:"12px 16px",backgroundColor:"#F4F6F8"},children:[Object(z.jsx)("span",{style:{flex:1.6,fontSize:"11px",fontWeight:600,color:"#8C97A7",letterSpacing:"0.4px",textTransform:"uppercase"},children:a.featureLabel}),Object(z.jsx)("span",{style:{flex:1,textAlign:"center",fontSize:"12px",fontWeight:700,letterSpacing:"0.4px",color:"#0048B3"},children:a.proLabel}),Object(z.jsx)("span",{style:{flex:1,textAlign:"center",fontSize:"12px",fontWeight:700,letterSpacing:"0.4px",color:"#8C97A7"},children:a.starterLabel})]}),a.rows.map((function(e,t){return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:"14px 16px",borderTop:"1px solid #EEF0F3"},children:[Object(z.jsx)("span",{style:{flex:1.6,fontSize:"13.5px",color:"#4A5568"},children:e.label}),Object(z.jsx)("span",{style:{flex:1},children:Object(z.jsx)(et,{checked:e.proCheck,highlighted:!0})}),Object(z.jsx)("span",{style:{flex:1},children:Object(z.jsx)(et,{checked:e.starterCheck})})]},t)}))]}),Object(z.jsx)("p",{style:{fontSize:"13.5px",color:"#8C97A7",lineHeight:"1.6",marginBottom:"24px"},children:a.note})]}),Object(z.jsxs)("div",{style:{flexShrink:0,padding:"16px 24px 24px",borderTop:"1px solid #EEF0F3",backgroundColor:"#fff"},children:[Object(z.jsxs)("div",{onClick:function(){r||(A.a.track("Take A Look Switch To Pro Click"),null===s||void 0===s||s())},style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",cursor:r?"default":"pointer",opacity:r?.8:1,fontSize:"16px",fontWeight:500,marginBottom:"16px"},children:[r&&Object(z.jsx)(d.a,{spin:!0}),a.switchToProBtn]}),Object(z.jsx)("div",{onClick:function(){r||(A.a.track("Take A Look Continue Starter Click"),null===c||void 0===c||c())},style:{textAlign:"center",color:"#8C97A7",fontSize:"14px",cursor:"pointer"},children:a.continueStarterBtn})]})]});return n?p:Object(z.jsx)(g.a,{open:t,onCancel:l,maskClosable:!1,footer:null,closable:!1,width:490,bodyStyle:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden",position:"relative"},style:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},children:p})},nt="\n  @keyframes modalStepInForward {\n    from { opacity: 0; transform: translateX(24px); }\n    to { opacity: 1; transform: none; }\n  }\n  @keyframes modalStepInBack {\n    from { opacity: 0; transform: translateX(-24px); }\n    to { opacity: 1; transform: none; }\n  }\n  .modal-steps {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    flex: 1;\n    min-height: 0;\n    height: 100%;\n  }\n  .modal-step {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    flex: 1;\n    min-height: 0;\n    height: 100%;\n  }\n  .modal-step-hidden { display: none; }\n  .modal-step-forward { animation: modalStepInForward ".concat(240,"ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }\n  .modal-step-back { animation: modalStepInBack ").concat(240,"ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }\n  @media (prefers-reduced-motion: reduce) {\n    .modal-step-forward, .modal-step-back { animation: none; }\n  }\n"),it=function(e){var t=e.open,n=e.active,i=e.busy,r=void 0!==i&&i,o=e.steps,c=Object(m.useRef)(null),a=Object(m.useRef)(null),l=Object(m.useState)(!1),d=Object(s.a)(l,2),p=d[0],u=d[1];t?c.current!==n&&(a.current=null===c.current?null:n>c.current?"forward":"back",c.current=n):(c.current=null,a.current=null);var x=Object(m.useRef)(!0);Object(m.useEffect)((function(){if(t){if(!x.current){u(!0);var e=setTimeout((function(){return u(!1)}),240);return function(){return clearTimeout(e)}}x.current=!1}else x.current=!0}),[n,t]);var h=r||p||!t;return Object(z.jsxs)("div",{className:"modal-steps",style:h?{pointerEvents:"none"}:void 0,children:[Object(z.jsx)("style",{children:nt}),o.map((function(e,t){return Object(z.jsx)("div",{className:"modal-step".concat(t!==n?" modal-step-hidden":a.current?" modal-step-".concat(a.current):""),"aria-hidden":t
1!==n,children:e},t)}))]})},rt=function(e){var t,n=e.property,i=e.disabled,r=void 0!==i&&i,o=Object(I.a)().tr,s=(Object(y.h)(),function(){var e=n.completed_steps.length;return{currentStep:!n.completed_steps.includes(4)&&n.progress.step_4_completed?e+1:e,totalSteps:4}}),c=!r&&"published"!==n.submission_status;return Object(z.jsxs)("div",{className:"".concat(c&&"pointer"),onClick:function(){if(!r&&"published"!==n.submission_status){A.a.track("Property Item Click",{Page:"Property List Page",PropertyId:n.id,PropertyName:n.name});var e=n.progress.next_required_step;null===e&&(e=(n.progress.step_4_completed,4)),0===e&&(e=1);var t="/property-submission/step".concat(e,"?draft_id=").concat(n.id);window.location.href=t}},style:{backgroundColor:"#F4F5F9",borderRadius:"8px",padding:"10px 0",margin:"8px 0",border:"1px solid #F0F0F0"},children:[Object(z.jsxs)(N.a,{gutter:16,wrap:!1,align:"top",style:{marginBottom:"16px",paddingLeft:"16px",paddingRight:"16px"},children:[Object(z.jsx)(H.a,{flex:"120px",children:Object(z.jsx)("div",{style:{width:"100%"},children:Object(z.jsx)(G.a,{ratio:[4,3],imgSrc:n.thumbnail||"https://placehold.co/600x400?text=No+Photo",imgStyle:{borderRadius:"12px",backgroundColor:"#F5F5F5"}})})}),Object(z.jsx)(H.a,{flex:"auto",children:Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[Object(z.jsxs)("div",{style:{flex:1,paddingRight:"12px"},children:[Object(z.jsx)(U.a.Text,{style:{color:"#1A1A1A",fontSize:"14px",fontWeight:"500",lineHeight:"1.3",display:"block",marginBottom:"4px"},children:n.name||"Untitled Property"}),Object(z.jsx)(Y.a,{style:{backgroundColor:function(e){switch(e){case"draft":return"#FFF4CB";case"published":return"#E6F3FF";case"pending":return"#F0F0F0";case"action_required":return"rgb(202 11 0 / 75%)";default:return"#f0f0f0"}}(n.submission_status),color:function(e){switch(e){case"draft":return"#856A00";case"published":return"#0048B3";case"pending":default:return"#666";case"action_required":return"#fff"}}(n.submission_status),border:"none",borderRadius:"4px",fontSize:"12px",margin:0},children:function(e){switch(e){case"draft":return o.listing.statusIncomplete;case"published":return o.listing.statusPublished;case"pending":return o.listing.statusPending;case"action_required":return o.listing.statusActionRequired;default:return o.listing.statusUnknown}}(n.submission_status)})]}),Object(z.jsxs)("div",{style:{position:"relative",width:"56px",height:"56px",flexShrink:0},children:[Object(z.jsx)("svg",{width:"56",height:"56",style:{position:"absolute"},children:Object(z.jsx)("circle",{cx:"28",cy:"28",r:"23",fill:"none",stroke:"#F0F0F0",strokeWidth:"3"})}),Object(z.jsx)("svg",{width:"56",height:"56",style:{position:"absolute",transform:"rotate(-90deg)"},children:Object(z.jsx)("circle",{cx:"28",cy:"28",r:"23",fill:"none",stroke:"#B3AB97",strokeWidth:"3",strokeDasharray:"".concat(2*Math.PI*23),strokeDashoffset:"".concat(2*Math.PI*23*(1-function(){var e=n.completed_steps.length;return(!n.completed_steps.includes(4)&&n.progress.step_4_completed?e+1:e)/4*100}()/100)),strokeLinecap:"round"})}),Object(z.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#8E8E93",fontSize:"12px",fontWeight:"600",textAlign:"center",lineHeight:"1"},children:[s().currentStep,"/",s().totalSteps]})]})]}),Object(z.jsxs)(U.a.Text,{style:{color:"#8E8E93",fontSize:"14px",fontWeight:"400",marginTop:6},children:[o.listing.lastEdited," ",Object(z.jsx)("span",{children:(t=n.updated_at,K()(t).format("D MMM, HH:mm"))})]})]})})]}),"published"===n.submission_status&&3===s().currentStep&&Object(z.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"8px"},children:Object(z.jsx)("button",{onClick:function(e){e.stopPropagation(),A.a.track("Property Continue Click",{Page:"Property List Page",PropertyId:n.id,PropertyName:n.name});var t="/property-submission/step4?draft_id=".concat(n.id,"&continue=true");window.location.href=t},style:{width:"auto",minWidth:"120px",height:"36px",backgroundColor:"#4C4848",color:"#fff",border:"none",borderRadius:"6px",fontSize:"14px",fontWeight:"500",cursor:"pointer",fontFamily:"Poppins, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 16px"},children:o.listing.uploadDocuments})})]})},ot=n(2),st=n(123),ct=n.p+"static/media/left.f8fe8040.jpg",at=n(337),lt=n(316);!function(e){e.PROGRESS_SUMMARY="/summary",e.PARTNER_INFO="/partner_info",e.TERMS="/service_terms",e.PRIVACY="/privacy_policy",e.VEHICLE_INFO="/vehicle_info",e.VEHICLE_PHOTO="/vehicle_photo",e.SERVICE_TYPE="/service_type",e.PACKAGE_TYPE="/packages",e.INSURANCE_INFO="/insurance",e.PARKING_INFO="/parking",e.PARTNER_CONTRACT_TIME="/partner_contract",e.PARTNER_PAYMENT="/partner_payment"}(De||(De={}));var dt="/submission/:id",pt=["incomplete","action_required"],ut="WELCOME_MODAL_SESSION_KEY",xt="WELCOME_MODAL_EARN_SESSION_KEY",ht="WELCOME_MODAL_PARKING_SESSION_KEY",bt=function(e){var t,n=e.vehicle,i=e.disabled,r=void 0!==i&&i,o=e.isWebView,s=void 0!==o&&o,c=e.generatedImageUrl,a=e.isGeneratedImageLoading,l=void 0!==a&&a,d=Object(I.a)().tr,p=Object(lt.b)();Object(lt.a)(p);if(!n._id)throw new Error("Missing vehicle._id !");var u,x=Object(y.h)(),h=n.frontURL||n.leftURL||n.rightURL||n.backURL||null,b=!h&&l&&null==c,g=Object(at.b)(n.createdAt,n.requestPro),j=n.stepProgress||[],m=g&&j.length>=3?[j[0],j[1],j[j.length-1]]:j,O=m.reduce((function(e,t){return t>=100?e+1:e}),0),v=function(e,t){var n,i=(g?["info","earn","appointment"]:["info","parking","earn","photo","document"])[t-1];return i?"/submission/".concat(e,"/").concat(i):(n=e,Object(y.f)(dt+De.PROGRESS_SUMMARY,{id:n}))},k=function(){if(!r&&(sessionStorage.removeItem(ut),sessionStorage.removeItem(ht),sessionStorage.removeItem(xt),sessionStorage.removeItem("SHOW_SPECIAL_MODAL"),pt.includes(n.status||""))){var e=function(){if(0===m.length)return 1;for(var e=0;e<m.length;e++)if(m[e]<100)return e+1;return m.length}(),t=v(n._id||"",e),i="completed"===n.status?"true":"false",o=Object(ot.a)(Object(ot.a)({},p),{},{after_submitted:i}),s=Object(lt.a)(o);switch(e){case 1:break;case 2:sessionStorage.setItem(ut,"true");break;case 3:sessionStorage.setItem(ut,"true"),sessionStorage.setItem(ht,"true");break;default:sessionStorage.setItem(ut,"true"),sessionStorage.setItem(ht,"true"),sessionStorage.setItem(xt,"true")}x.replace({pathname:t,search:s}
1)}};return Object(z.jsxs)("div",{className:"".concat(!r&&"pointer"),onClick:k,style:{backgroundColor:"#F4F5F9",borderRadius:"8px",padding:"10px 0",margin:"8px 0",border:"1px solid #F0F0F0"},children:[Object(z.jsxs)(N.a,{gutter:16,wrap:!1,align:"top",style:{marginBottom:"16px",paddingLeft:"16px",paddingRight:"16px"},children:[Object(z.jsx)(H.a,{flex:"120px",children:Object(z.jsx)("div",{style:{width:"100%"},children:Object(z.jsx)(G.a,{ratio:[4,3],imgSrc:h||c||ct,imgStyle:{borderRadius:"12px",backgroundColor:"#F5F5F5"},loading:b})})}),Object(z.jsx)(H.a,{flex:"auto",children:Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[Object(z.jsxs)("div",{style:{flex:1,paddingRight:"12px"},children:[Object(z.jsxs)(U.a.Text,{style:{color:"#1A1A1A",fontSize:"14px",fontWeight:"500",lineHeight:"1.3",display:"block",marginBottom:"4px"},children:[null===n||void 0===n?void 0:n.vehicleBrand," ",null===n||void 0===n?void 0:n.vehicleModel," ",null===n||void 0===n?void 0:n.vehicleYear]}),Object(z.jsx)(Y.a,{style:{backgroundColor:function(){switch(n.status){case"incomplete":return"rgb(153 153 153 / 75%)";case"action_required":return"rgb(202 11 0 / 75%)";case"pending":return"#FFF4CB";case"submitted":case"completed":return"#E3F2FD";case"verified":return"#E0F7FA";default:return"#F5F5F5"}}(),color:function(){switch(n.status){case"incomplete":case"action_required":return"#fff";case"pending":return"#B8860B";case"submitted":case"completed":return"#1976D2";case"verified":return"#00796B";default:return"#666"}}(),border:"none",borderRadius:"4px",fontSize:"12px",margin:0},children:function(){switch(n.status){case"incomplete":return d.listing.statusIncomplete;case"action_required":return d.listing.statusActionRequired;case"pending":return d.listing.statusPending;case"submitted":return d.listing.statusSubmitted;case"completed":return d.listing.statusCompleted;case"verified":return d.listing.statusVerified;default:return d.listing.statusUnknown}}()})]}),n.stepProgress&&(null===(t=n.stepProgress)||void 0===t?void 0:t.length)>0&&Object(z.jsxs)("div",{style:{position:"relative",width:"50px",height:"50px",flexShrink:0},children:[Object(z.jsx)("svg",{width:"50",height:"50",style:{position:"absolute"},children:Object(z.jsx)("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#F0F0F0",strokeWidth:"3"})}),Object(z.jsx)("svg",{width:"50",height:"50",style:{position:"absolute",transform:"rotate(-90deg)"},children:Object(z.jsx)("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#00CCCC",strokeWidth:"3",strokeDasharray:"".concat(2*Math.PI*20),strokeDashoffset:"".concat(2*Math.PI*20*(1-O/m.length)),strokeLinecap:"round"})}),Object(z.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#8E8E93",fontSize:"12px",fontWeight:"600",textAlign:"center",lineHeight:"1"},children:[O,"/",m.length]})]})]}),Object(z.jsxs)(U.a.Text,{style:{color:"#8E8E93",fontSize:"14px",fontWeight:"400",marginTop:6},children:[d.listing.lastEdited," ",Object(z.jsx)("span",{children:(u=n.updatedAt||"",K()(u).format("D MMM, HH:mm"))})]})]})})]}),Object(z.jsx)("div",{style:{height:"1px",backgroundColor:"#EDE
1FF4",margin:"6px 8px 8px 8px"}}),Object(z.jsxs)("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap",marginLeft:15},children:[(pt.includes(n.status||"")||"completed"===n.status&&!function(){var e=g?3:5;return m.length===e&&m.every((function(e){return e>=100}))}())&&Object(z.jsx)(f.a,{type:"primary",onClick:pt.includes(n.status||"")?k:function(e){if(e.stopPropagation(),A.a.track("Continue Button Click",{Page:"Listing Page"}),n._id&&n.stepProgress){var t=function(e){var t=Object(ot.a)(Object(ot.a)({},p),{},{after_submitted:"true"},void 0!==n.vehicleId&&{vehicleid:n.vehicleId});x.push({pathname:"/submission/".concat(n._id,"/").concat(e),search:Object(lt.a)(t)})};g?t(function(){var e;return!!n.frontSideURL&&!!n.backSideURL&&!!n.frontURL&&!!n.leftURL&&!!n.rightURL&&!!n.backURL&&!(null===(e=n.cabinURLs)||void 0===e||!e.length)}()?"document":"photo"):n.stepProgress[2]>=100&&n.stepProgress[3]<100?t("photo"):n.stepProgress[3]>=100&&t("document")}},style:{backgroundColor:"#0048B3",borderColor:"#0048B3",borderRadius:"8px",height:"32px",padding:"0 12px",fontSize:"12px",fontWeight:"500",boxShadow:"none"},children:d.listing.continueBtn}),"completed"===n.status&&n.vehicleId&&!g&&Object(z.jsx)(f.a,{onClick:function(e){if(e.stopPropagation(),A.a.track("Manage Vehicle Button Click",{Page:"Listing Page",VehicleId:n.vehicleId}),n.vehicleId){var t=(o=n.vehicleId,"https://app.haupcar.com/app/my-vehicle/".concat(o)),i=navigator.userAgent.toLowerCase();if(i.includes("android")){var r="intent://".concat(t.replace(/^https?:\/\//,""),"#Intent;scheme=https;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;end");window.location.href=r}else i.includes("iphone")||i.includes("ipad")?window.location.href=t:window.open(t,"_blank","noopener,noreferrer")}var o},style:{backgroundColor:"transparent",borderColor:"#0048B3",borderRadius:"8px",height:"32px",padding:"0 12px",fontSize:"12px",fontWeight:"500",color:"#0048B3"},children:d.listing.manageBtn}),"completed"===n.status&&n.vehicleId&&!g&&Object(z.jsxs)(f.a,{onClick:function(e){if(e.stopPropagation(),A.a.track("View Vehicle Button Click",{Page:"Listing Page",VehicleId:n.vehicleId}),n.vehicleId){var t=function(e){var t=window.location.host;return"".concat("my.staging.k8s.haupcar.com"===t?"https://reserve.staging.k8s.haupcar.com":"https://reserve.haupcar.com","/en/product/").concat(e)}(n.vehicleId);s?window.location.href=t:window.open(t,"_blank")}},style:{backgroundColor:"transparent",borderColor:"#0048B3",borderRadius:"8px",height:"32px",padding:"0 10px",fontSize:"12px",fontWeight:"500",color:"#0048B3",display:"flex",alignItems:"center",gap:"4px"},children:[Object(z.jsx)(st.a,{}),d.listing.viewBtn]})]})]})},ft=n(49),gt=function(e){var t,n,i,r,o,c=e.record,a=(e.isWebView,Object(y.h)()),l=Object(ft.a)().t,d=c.data||{},p=Object(m.useState)(!1),u=Object(s.a)(p,2),x=u[0],h=u[1],b=function(){var e,t,n,i=d.step3;return!(null===i||void 0===i||null===(e=i.services)||void 0===e||!e.length)&&((!i.services.includes("round-trip")||(null===(t=i.roundTrip)||void 0===t?void 0:t.length)>0)&&(!i.services.includes("one-way")||(null===(n=i.oneWay)||void 0===n?void 0:n.length)>0))}(),g=[!!d.branchName,!!((null===(t=d.step2)||void 0===t||null===(n=t.cars)||void 0===n?void 0:n.length)>0),b,!(null===(i=d.step4)||void 0===i||!i.description),!!(d.step5&&Object.keys((null===(r=d.step5)||void 0===r?void 0:r.cars)||{}).length>0)],j=g.filter(Boolean).length,O=g.findIndex((function(e){return!e})),v=O>=0?O+1:5,k=5===j,C="published"===c.status,S=(null===(o=d.step2)||void 0===o?void 0:o.cars)||[],w=2*Math.PI*20,P=w*(1-j/5),E=C?{backgroundColor:"#E8F5E9",color:"#2E7D32"}:k?{backgroundColor:"#E3F2FD",color:"#1976D2"}:{backgroundColor:"#FEF3C7",color:"#92400E"},A=C?l.listing.item.published:k?l.listing.item.completed:l.listing.item.incomplete;return Object(z.jsxs)("div",{style:{backgroundColor:"#F4F5F9",borderRadius:"12px",padding:"16px",marginBottom:"20px",position:"relative"},children:[Object(z.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"4px"},children:[Object(z.jsxs)("div",{style:{flex:1,paddingRight:"12px"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginBottom:"4px"},children:[Object(z.jsx)("span",{style:{fontSize:"15px",fontWeight:"700",color:"#1A1A1A"},children:d.branchName||l.listing.item.fallbackName}),Object(z.jsx)(Y.a,{style:Object(ot.a)(Object(ot.a)({},E),{},{border:"none",borderRadius:"6px",fontSize:"12px",fontWeight:"500",margin:0,padding:"1px 8px"}),children:A})]}),c.updated_at&&Object(z.jsx)("span",{style:{fontSize:"13px",color:"#8E8E93"},children:l.listing.item.lastEdited(K()(c.updated_at).format("D MMM, HH:mm"))})]}),Object(z.jsxs)("div",{style:{position:"relative",width:"52px",height:"52px",flexShrink:0},children:[Object(z.jsx)("svg",{width:"52",height:"52",style:{position:"absolute"},children:Object(z.jsx)("circle",{cx:"26",cy:"26",r:"21",fill:"none",stroke:"#E8F8F8",strokeWidth:"3.5"})}),Object(z.jsx)("svg",{width:"52",height:"52",style:{position:"absolute",transform:"rotate(-90deg)"},children:Object(z.jsx)("circle",{cx:"26",cy:"26",r:"21",fill:"none",stroke:"#00CCCC",strokeWidth:"3.5",strokeDasharray:"".concat(w),strokeDashoffset:"".concat(P),strokeLinecap:"round"})}),Object(z.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"12px",fontWeight:"700",color:"#1A1A1A",textAlign:"center",lineHeight:"1"},children:[j,"/",5]})]})]}),S.length>0&&Object(z.jsxs)("div",{style:{marginTop:"10px"},children:[Object(z.jsxs)("button",{onClick:function(){return h((function(e){return!e}))},style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",alignItems:"center",gap:"4px",fontSize:"13px",fontWeight:"600",color:"#0048B3"},children:[l.listing.item.viewCars,Object(z.jsx)("span",{style:{fontSize:"11px",transition:"transform 0.2s",display:"inline-block",transform:x?"rotate(180deg)":"rotate(0deg)"},children:"\u2227"})]}),x&&Object(z.jsxs)("div",{style:{marginTop:"10px",backgroundColor:"#F9FAFB",borderRadius:"10px",padding:"12px 14px"},children:[Object(z.jsx)("p",{style:{fontSize:"13px",fontWeight:"600",color:"#1A1A1A",margin:"0 0 8px"},children:l.listing.item.carsInBranch}),Object(z.jsx)("ul",{style:{margin:0,paddingLeft:"18px"},children:S.map((function(e,t){return Object(z.jsxs)("li",{style:{fontSize:"13px",color:"#333",marginBottom:"4px"},children:[e.quantity,"x ",e.carType,e.carBrand||e.model?" - ".concat([e.carBrand,e.model].filter(
1Boolean).join(" ")," ").concat(l.listing.item.similarModels):""]},t)}))})]})]}),Object(z.jsx)("div",{style:{height:"1px",backgroundColor:"#EDEFF4",margin:"12px 0 10px"}}),Object(z.jsx)("div",{style:{display:"flex",gap:"12px"},children:Object(z.jsx)(f.a,{type:"primary",onClick:C?void 0:function(){a.push("/car-with-driver-submission/step".concat(v,"?draftId=").concat(c.id))},disabled:C,style:{backgroundColor:C?"#D6DAE0":"#0048B3",borderColor:C?"#D6DAE0":"#0048B3",borderRadius:"8px",height:"32px",padding:"0 12px",fontSize:"12px",fontWeight:"500",boxShadow:"none",color:C?"#8E8E93":"#fff",cursor:C?"not-allowed":"pointer"},children:l.listing.item.continue})})]})},jt=n(21),mt={1:{title:"Share your experience",description:"Tell us how long you\u2019ve been doing this activity and which languages you offer it in",icon:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/5q5terdjCC6k2ZZzz5YNDQxhEhH3gJMvetFw9bjXNbFyuMwoJXQKSNjv7aFM525sFcTL7pFYiiLnUd8ErpPXhP8a.png",alt:"Step 1 Icon"})},2:{title:"Highlight 
1key activity info",description:"Provide essential details about your activity to help travelers understand what to expect",icon:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/33fhHtRiB6XErmS58g4yD12U7RQDdbNuGHikSSmX14xkjcWHKJf4gC6Kj7Phf8NLqGeuLPU4WcaFohrrp3QXGjpn.png",alt:"Step 2 Icon"})},3:{title:"Add activity overview",description:"Give a brief summary of your activity to introduce what makes it unique and exciting for travelers",icon:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/29jfbMh9YgbDuaXDonSQpuQALcEA3E5L1V1vjAQz52aXGfMru5woFS9A9YdmWP1ffg2ryQBnm4H1Ydkn2AgN74gV.png",alt:"Step 3 Icon"})},4:{title:"Create packages",description:"Set up different options for your activity, so guests can choose what suits them best if applicable",icon:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/3YerBQjj9DBYk33aYXh5ubdZv4sYC1JNonq19z1yfH7N2fKNgxnwQP9LuChaDon2wmMPZaRektz7m9AMhpyd1XJ6.png",alt:"Step 4 Icon"})},5:{title:"Manage booking preferences",description:"Customize how travelers can book and manage their reservations by setting up your preferences",icon:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/3uvbzh8nGWfVjf2HMUm4b8o69iaS3ydUfvQaCvdC8k5obRe7SCkXgKsvKubSVNMSrdg7vE5nGd6j2r26oSLmWYuo.png",alt:"Step 5 Icon"})}},yt=function(){return Object(z.jsxs)("div",{className:"pad-content",children:[Object(z.jsx)(x.a,{active:!0}),Object(z.jsx)(x.a,{active:!0}),Object(z.jsx)(x.a,{active:!0})]})},Ot=["submissions","carWithDriver","activities","property"],vt=function(e){var t=e.activeTab,n=e.onTabChange,i=Object(I.a)().tr,r=Object(ft.a)().t,o=function(e){A.a.track("Listing Tab Click",{tab:e}),n(e);var t="";"activities"===e?t="#activities":"property"===e?t="#property":"carWithDriver"===e&&(t="#carWithDriver"),window.history.pushState(null,"","/submission".concat(t))};return Object(z.jsxs)("div",{style:{display:"flex",backgroundColor:"#f5f5f5",borderRadius:"24px",padding:"4px",margin:"0 16px",fontFamily:"Poppins, sans-serif",overflowX:"auto",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:[Object(z.jsx)("div",{onClick:function(){return o("submissions")},style:{flex:1,textAlign:"center",padding:"8px 12px",borderRadius:"20px",backgroundColor:"submissions"===t?"#fff":"transparent",color:"submissions"===t?k.a.haupBlue:"#8c8c8c",fontWeight:"submissions"===t?"600":"400",cursor:"pointer",transition:"all 0.3s ease",boxShadow:"submissions"===t?"0 2px 4px rgba(0,0,0,0.1)":"none"},children:i.listing.tabVehicles}),Object(z.jsx)("div",{onClick:function(){return o("carWithDriver")},style:{flex:1,textAlign:"center",padding:"8px 12px",borderRadius:"20px",backgroundColor:"carWithDriver"===t?"#fff":"transparent",color:"carWithDriver"===t?k.a.haupBlue:"#8c8c8c",fontWeight:"carWithDriver"===t?"600":"400",cursor:"pointer",transition:"all 0.3s ease",boxShadow:"carWithDriver"===t?"0 2px 4px rgba(0,0,0,0.1)":"none"},children:r.listing.tab}),Object(z.jsx)("div",{onClick:function(){return o("activities")},style:{flex:1,textAlign:"center",padding:"8px 12px",borderRadius:"20px",backgroundColor:"activities"===t?"#fff":"transparent",color:"activities"===t?k.a.haupBlue:"#8c8c8c",fontWeight:"activities"===t?"600":"400",cursor:"pointer",transition:"all 0.3s ease",boxShadow:"activities"===t?"0 2px 4px rgba(0,0,0,0.1)":"none"},children:i.listing.tabActivities}),Object(z.jsx)("div",{onClick:function(){return o("property")},style:{flex:1,textAlign:"center",padding:"8px 12px",borderRadius:"20px",backgroundColor:"property"===t?"#fff":"transparent",color:"property"===t?k.a.haupBlue:"#8c8c8c",fontWeight:"property"===t?"600":"400",cursor:"pointer",transition:"all 0.3s ease",boxShadow:"property"===t?"0 2px 4px rgba(0,0,0,0.1)":"none"},children:i.listing.tabProperty})]})},kt=function(e){var t=e.onNext;return Object(z.jsxs)("div",{style:{padding:"20px",fontFamily:"Poppins, sans-serif",display:"flex",flexDirection:"column",height:"100%"},children:[Object(z.jsx)("h2",{style:{fontSize:"20px",fontWeight:"600",marginBottom:"20px",textAlign:"center"},children:"Introduce yourself in 5 quick steps before submitting activity you offer"}),Object(z.jsx)("div",{style:{flex:1,overflowY:"auto"},children:Object.values(mt).map((function(e,t){return Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"20px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"bold"},children:e.title}),Object(z.jsx)("p",{style:{margin:0,color:"#666"},children:e.description})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:e.icon.props.src,alt:e.icon.props.alt,style:{width:"100%",height:"auto"}})})]},t)}))}),Object(z.jsx)("button",{onClick:t,style:{width:"100%",marginTop:"20px",height:"48px",padding:"0 20px",backgroundColor:k.a.haupBlue,color:"#fff",border:"none",borderRadius:"25px",fontSize:"16px",fontWeight:"500",cursor:"pointer",fontFamily:"Poppins, sans-serif"},children:"Next"})]})},Ct=function(e){var t=e.onNext,i=Object(C.k)(),c=Object(ft.a)().t,a=Object(m.useState)(""),l=Object(s.a)(a,2),d=l[0],p=l[1],u=Object(m.useState)(""),x=Object(s.a)(u,2),h=x[0],b=x[1],f=Object(m.useState)(""),g=Object(s.a)(f,2),j=g[0],y=g[1],O=Object(m.useState)(!1),v=Object(s.a)(O,2),k=v[0],S=v[1],w=function(){var e=Object(o.a)(Object(r.a)().mark((function e(t){var o,s,c,a,l,d;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null===(o=t.target.files)||void 0===o?void 0:o[0]){e.
1next=3;break}return e.abrupt("return");case 3:return S(!0),e.prev=4,e.next=7,Promise.resolve().then(n.bind(null,110));case 7:return a=e.sent,l=a.uploadPhotoFile,e.next=11,l(s,null===(c=i.userLoggedIn)||void 0===c?void 0:c.userToken);case 11:(d=e.sent)&&y(d),e.next=17;break;case 15:e.prev=15,e.t0=e.catch(4);case 17:return e.prev=17,S(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[4,15,17,20]])})));return function(t){return e.apply(this,arguments)}}(),P=""!==d.trim()&&""!==h.trim()&&""!==j,E={width:"100%",padding:"12px 16px",border:"1px solid #D6DAE0",borderRadius:"8px",fontSize:"14px",fontFamily:"Poppins, sans-serif",outline:"none",boxSizing:"border-box"};return Object(z.jsxs)("div",{style:{padding:"20px",fontFamily:"Poppins, sans-serif",display:"flex",flexDirection:"column",height:"100%"},children:[Object(z.jsx)("h2",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"20px"},children:c.listing.company.title}),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:"20px"},children:[Object(z.jsxs)("div",{children:[Object(z.jsxs)("label",{style:{fontSize:"14px",fontWeight:"500",display:"block",marginBottom:"8px"},children:[c.listing.company.name,Object(z.jsx)(jt.d,{})]}),Object(z.jsx)("input",{style:E,placeholder:c.listing.company.namePlaceholder,value:d,onChange:function(e){return p(e.target.value)}})]}),Object(z.jsxs)("div",{children:[Object(z.jsxs)("label",{style:{fontSize:"14px",fontWeight:"500",display:"block",marginBottom:"8px"},children:[c.listing.company.vatId,Object(z.jsx)(jt.d,{})]}),Object(z.jsx)("input",{style:E,placeholder:c.listing.company.vatIdPlaceholder,value:h,onChange:function(e){return b(e.target.value)}})]}),Object(z.jsxs)("div",{children:[Object(z.jsxs)("label",{style:{fontSize:"14px",fontWeight:"500",display:"block",marginBottom:"8px"},children:[c.listing.company.logo,Object(z.jsx)(jt.d,{})]}),Object(z.jsxs)("label",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",border:"1.5px dashed #D6DAE0",borderRadius:"12px",padding:"24px",cursor:"pointer",backgroundColor:"#FAFAFA"},children:[j?Object(z.jsx)("img",{src:j,alt:"logo",style:{width:"80px",height:"80px",objectFit:"contain",borderRadius:"8px"}}):Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)("span",{style:{fontSize:"24px"},children:"\ud83d\uddbc+"}),Object(z.jsx)("span",{style:{fontSize:"13px",color:"#667085"},children:k?c.common.uploading:c.common.uploadOrTakePhoto})]}),Object(z.jsx)("input",{type:"file",accept:"image/*",style:{display:"none"},onChange:w,disabled:k})]})]})]}),Object(z.jsx)("div",{style:{marginTop:"20px"},children:Object(z.jsx)("button",{onClick:function(){P&&t({companyName:d,vatId:h,companyLogoUrl:j})},disabled:!P,style:{width:"100%",height:"48px",backgroundColor:P?"#0048B3":"#D6DAE0",color:P?"#fff":"#A0A6B1",border:"none",borderRadius:"25px",fontSize:"15px",fontWeight:"500",cursor:P?"pointer":"not-allowed",fontFamily:"Poppins, sans-serif"},children:c.listing.company.next})})]})},St=function(e){var t=e.onNext,n=Object(ft.a)().t;return Object(z.jsxs)("div",{style:{padding:"20px",fontFamily:"Poppins, sans-serif",display:"flex",flexDirection:"column",height:"100%"},children:[Object(z.jsx)("h2",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"20px",textAlign:"left"},children:n.listing.intro.title}),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:n.listing.intro.steps[0].title}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:n.listing.intro.steps[0].desc})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1wUHWsjmb4czNtCjFv7e7u4zDXT8xJJQX7xgnzyhNgyf7Kh1em9kXH32ngaoawWEZoVwLscjHKXAbzQmnvJ5t1rF.png",alt:n.listing.intro.steps[0].title,style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:n.listing.intro.steps[1].title}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:n.listing.intro.steps[1].desc})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/22wiRRREws9WUrf19SKchfsSFehgFXqbxs2DhMP6yWUxiyK47DheRZHSusmBqPFEhf2E5euPrTh1fJh2kuQszdMz.png",alt:n.listing.intro.steps[1].title,style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:n.listing.intro.steps[2].title}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:n.listing.intro.steps[2].desc})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/62Kf2uaATnFP5ShqUCjrotSTgTtaFvaTBiZXCNziGtRQdUWyxj8ZMm6FqaJKmabKcWfZVYuvmLnxP8HMqgWSczhK.png",alt:n.listing.intro.steps[2].title,style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:n.listing.intro.steps[3].title}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:n.listing.intro.steps[3].desc})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2d9Zo6LrzbbaErgcePwbBFUcUPK9BbzTSVAMZzgGCi4GSMGXFNwmwan34RQHX1QsBzsJYiLm5azksvrvZHDvxSNj.png",alt:n.listing.intro.steps[3].title,style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{backgroundColor:"#F4F5F9",borderRadius:"12px",padding:"16px",marginBottom:"20px",position:"relative"},children:[Object(z.jsx)("div",{style:{position:"absolute",top:"16px",right:"16px",backgroundColor:"#4C4848",color:"white",padding:"6px 12px",borderRadius:"6px",fontSize:"12px",fontFamily:"Poppins, sans-serif"},children:n.listing.intro.skippable}),Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"16px",fontSize:"14px"},children:n.listing.intro.extraTitle}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[Object(z.jsx)("div",{style:{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/3HXxGXbyeasfDnr3ewK3Pv4mtpeg4Dr6bzyryscaxQ63ztw7LZfzNbdgJbyNZZxQwXyvmLtpt5yChUNWye89oJqw.png",alt:"check",style:{width:"20px",height:"20px"}})}),Object(z.jsx)("span",{style:{fontSize:"12px",color:"#212427"},children:n.listing.intro.uploadDocs})]})]})]}),Object(z.jsx)("button",{onClick:t,style:{width:"100%",marginTop:"20px",height:"48px",padding:"0 20px",backgroundColor:"#0048B3",color:"#fff",border:"none",borderRadius:"25px",fontSize:"16px",fontWeight:"500",cursor:"pointer",fontFamily:"Poppins, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:n.listing.intro.start})]})},wt=function(e){var t=e.onNext;return Object(z.jsxs)("div",{style:{padding:"20px",fontFamily:"Poppins, sans-serif",display:"flex",flexDirection:"column",height:"100%"},children:[Object(z.jsx)("h2",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"20px",textAlign:"left"},children:"Share your condo in 3 simple main steps to be listed on platform"}),Object(z.jsxs)("div",{style:{flex:1,overflowY:"auto"},children:[Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:"1. Tell us about your property"}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:"Basic details like location, amities, size so guests know what you're offering"})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/3b15TjMmNfKf37L5fYwdCEtsiF8MfL8rLyyipL1az6rMyQeuzKGfPu2Bfqpx4kojn37DNicngoASoEesMNLhZFsd.png",alt:"Tell us about your property",style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:"2. Make your property stand out"}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:"Let guests know photos that make the listing appealing and attract bookings"})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/4FdeKwB5vo8PmCGFdjfkb7aNvFD6rJhS7ycmQ42DCmR53Gr5A8a3SxrWbgn7RpCtgsyqF8qpkciuvKKkXwNJKtcx.png",alt:"Make your property stand out",style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"16px",marginBottom:"24px"},children:[Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"8px",fontSize:"16px"},children:"3. Set your price and earnings"}),Object(z.jsx)("p",{style:{margin:0,color:"#667085",fontSize:"14px",lineHeight:"1.4"},children:"Decide how much you want to earn and HAUP will help you estimate your income."})]}),Object(z.jsx)("div",{style:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2TES6FCgAJshCDraMmhbiS2x2wKDEy5RQuAHNoVKgvmDF3BcLEgxym1Bb5d7MX2yRJHMYTCnWSCjY27BJb7LwGyP.png",alt:"Set your price and earnings",style:{width:"60px",height:"auto"}})})]}),Object(z.jsxs)("div",{style:{backgroundColor:"#F4F5F9",borderRadius:"12px",padding:"16px",marginBottom:"20px",position:"relative"},children:[Object(z.jsx)("div",{style:{position:"absolute",top:"16px",right:"16px",backgroundColor:"#4C4848",color:"white",padding:"6px 12px",borderRadius:"6px",fontSize:"12px",fontFamily:"Poppins, sans-serif"},children:"Can skip for now"}),Object(z.jsx)("h4",{style:{margin:0,fontWeight:"600",marginBottom:"16px",fontSize:"14px"},children:"Additional steps"}),Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[Object(z.jsx)("div",{style:{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/3HXxGXbyeasfDnr3ewK3Pv4mtpeg4Dr6bzyryscaxQ63ztw7LZfzNbdgJbyNZZxQwXyvmLtpt5yChUNWye89oJqw.png",alt:"Check icon",style:{width:"20px",height:"20px"}})}),Object(z.jsx)("span",{style:{fontSize:"12px",color:"#212427"},children:"Upload documents"})]})]})]}),Object(z.jsx)("button",{onClick:t,style:{width:"100%",marginTop:"20px",height:"48px",padding:"0 20px",backgroundColor:"#4C4848",color:"#fff",border:"none",borderRadius:"25px",fontSize:"16px",fontWeight:"500",cursor:"pointer",fontFamily:"Poppins, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:"Get Started \u2192"})]})};t.default=function(e){var t=e.records,n=void 0===t?[]:t,x=e.onAddVehicleClick,F=e.onRefresh,W=e.hidden,N=e.loading,H=Object(m.useState)(!1),U=Object(s.a)(H,2),Y=U[0],V=U[1],K=Object(m.useState)(!1),G=Object(s.a)(K,2),J=G[0],Q=G[1],Z=Object(m.useState)(!1),$=Object(s.a)(Z,2),ee=$[0],te=$[1],ie=Object(m.useState)(!1),re=Object(s.a)(ie,2),se=re[0],ce=re[1],ae=Object(m.useState)(null),le=Object(s.a)(ae,2),de=le[0],pe=le[1],ue=Object(m.useState)(!1),xe=Object(s.a)(ue,2),he=xe[0],be=xe[1],fe=Object(m.useState)(!1),ge=Object(s.a)(fe,2),je=ge[0],me=ge[1],ye=Object(m.useState)(!1),Oe=Object(s.a)(ye,2),ve=Oe[0],ke=Oe[1],Se=Object(m.useState)("proIntro"),we=Object(s.a)(Se,2),Ee=we[0],Ae=we[1],Re=Object(m.useState)(!1),Te=Object(s.a)(Re,2),Be=Te[0],_e=Te[1],Le=Object(m.useState)(!1),Fe=Object(s.a)(Le,2),ze=Fe[0],De=Fe[1],We=Object(m.useState)(!1),Me=Object(s.a)(We,2),Ne=Me[0],He=Me[1],Ue=Object(m.useState)(!1),Ye=Object(s.a)(Ue,2),Ve=Ye[0],Ke=Ye[1],qe=Object(m.useState)(!1),Je=Object(s.a)(qe,2),Qe=Je[0],Ze=Je[1],et=Object(m.useState)(!1),nt=Object(s.a)(et,2),ot=nt[0],st=nt[1],ct=Object(m.useState)(!1),at=Object(s.a)(ct,2),lt=
1at[0],dt=at[1],pt=Object(m.useState)(!1),ut=Object(s.a)(pt,2),xt=ut[0],ht=ut[1],jt=Object(m.useState)(!1),mt=Object(s.a)(jt,2),Pt=mt[0],Et=mt[1],At=Object(m.useState)(!1),Rt=Object(s.a)(At,2),Tt=Rt[0],Bt=Rt[1],It=Object(m.useState)(!1),_t=Object(s.a)(It,2),Lt=_t[0],Ft=_t[1],zt=Object(m.useState)(!1),Dt=Object(s.a)(zt,2),Wt=Dt[0],Mt=Dt[1],Nt=Object(m.useState)(!1),Ht=Object(s.a)(Nt,2),Ut=Ht[0],Yt=Ht[1],Vt=Object(m.useState)(!1),Kt=Object(s.a)(Vt,2),Gt=Kt[0],qt=Kt[1],Xt=Object(m.useState)(window.innerHeight),Jt=Object(s.a)(Xt,2),Qt=Jt[0],Zt=Jt[1],$t=Object(m.useState)(window.innerWidth),en=Object(s.a)($t,2),tn=(en[0],en[1]),nn=Object(m.useState)(!1),rn=Object(s.a)(nn,2),on=rn[0],sn=rn[1],cn=Object(m.useState)([]),an=Object(s.a)(cn,2),ln=an[0],dn=an[1],pn=Object(m.useState)(!1),un=Object(s.a)(pn,2),xn=un[0],hn=un[1],bn=Object(m.useState)([]),fn=Object(s.a)(bn,2),gn=fn[0],jn=fn[1],mn=Object(m.useState)(!1),yn=Object(s.a)(mn,2),On=yn[0],vn=yn[1],kn=Object(m.useState)([]),Cn=Object(s.a)(kn,2),Sn=Cn[0],wn=Cn[1],Pn=Object(m.useState)(!1),En=Object(s.a)(Pn,2),An=En[0],Rn=En[1],Tn=Object(m.useState)([]),Bn=Object(s.a)(Tn,2),In=Bn[0],_n=Bn[1],Ln=Object(m.useState)(!1),Fn=Object(s.a)(Ln,2),zn=Fn[0],Dn=Fn[1];Object(L.a)("Listing Type Modal Opened",ot),Object(L.a)("Activity Intro Modal Opened",lt),Object(L.a)("Vehicle Type Modal Opened",xt),Object(L.a)("Property Intro Modal Opened",Tt),Object(L.a)("Line Login Modal Opened",Ut);var Wn=Object(I.a)(),Mn=Wn.tr,Nn=Wn.lang,Hn=Wn.setLang,Un=Object(ft.a)().t,Yn=Object(y.h)(),Vn=Object(y.i)(),Kn=Object(C.k)(),Gn=Object(m.useState)({}),qn=Object(s.a)(Gn,2),Xn=qn[0],Jn=qn[1],Qn=Object(m.useState)(!1),Zn=Object(s.a)(Qn,2),$n=Zn[0],ei=Zn[1];Object(m.useEffect)((function(){var e=n.filter((function(e){return e._id})).filter((function(e){return!e.frontURL&&!e.leftURL&&!e.rightURL&&!e.backURL})).map((function(e){return{id:e._id,vehicleId:e.vehicleId,vehicleBrand:e.vehicleBrand,vehicleModel:e.vehicleModel,subModel:e.subModel}})).filter((function(e){return e.vehicleId||e.vehicleBrand&&e.vehicleModel})).map((function(e){return{id:e.id,vehicleId:e.vehicleId,brand:e.vehicleBrand,model:e.vehicleModel,subModel:e.subModel}}));if(!e.length)return Jn({}),void ei(!1);var t=!1;return ei(!0),Object(E.c)(Kn.userLoggedIn,e).then((function(e){t||Jn(e)})).finally((function(){t||ei(!1)})),function(){t=!0}}),[n,Kn.userLoggedIn]);var ti=Object(m.useState)(window.location.hash.slice(1)||"submissions"),ni=Object(s.a)(ti,2),ii=ni[0],ri=ni[1],oi=Object(m.useState)(1),si=Object(s.a)(oi,2),ci=si[0],ai=si[1],li=Object(m.useRef)(ii);Object(m.useEffect)((function(){li.current=ii}),[ii]);var di=function(e){ai(Ot.indexOf(e)>=Ot.indexOf(li.current)?1:-1),ri(e)},pi=Object(m.useState)(0),ui=Object(s.a)(pi,2),xi=ui[0],hi=ui[1],bi=Object(m.useRef)(null),fi=Object(m.useMemo)((function(){var e,t={incomplete:[],completed:[],completedAndPublish:[],pending:[],unqualified:[],actionRequired:[]},r=Object(i.a)(n);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.status){if(["incomplete"].includes(o.status)){t.incomplete.push(o);continue}if(["pending"].includes(o.status)){t.pending.push(o);continue}if(["completed"].includes(o.status)){if(o.vehicleId){t.completedAndPublish.push(o);continue}t.completed.push(o);continue}if(["unqualified"].includes(o.status)){t.unqualified.push(o);continue}if(["action_required"].includes(o.status)){t.actionRequired.push(o);continue}}}}catch(s){r.e(s)}finally{r.f()}return t}),[n]),gi=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t,n,i,o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!On){e.next=2;break}return e.abrupt("return");case 2:if(vn(!0),n="https://prod.k8s.haupcar.com/ts-restful-api",i=null===(t=Kn.userLoggedIn)||void 0===t?void 0:t.userToken,n&&i){e.next=9;break}return console.error("API URL or User Token is missing."),vn(!1),e.abrupt("return");case 9:return e.prev=9,e.next=12,fetch("".concat(n,"/property/list?status=all"),{headers:{"Content-Type":"application/json",Authorization:"".concat(i),project:"haup-stable"}});case 12:if((o=e.sent).ok){e.next=15;break}throw new Error("Failed to fetch property records");case 15:return e.next=17,o.json();case 17:s=e.sent,jn(s.data||[]),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(9),console.error("Failed to fetch property records:",e.t0),jn([]);case 25:return e.prev=25,vn(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[9,21,25,28]])})));return function(){return e.apply(this,arguments)}}(),ji=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t,n,i,o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!zn){e.next=2;break}return e.abrupt("return");case 2:if(Dn(!0),n="https://prod.k8s.haupcar.com/ts-restful-api",i=null===(t=Kn.userLoggedIn)||void 0===t?void 0:t.userToken,n&&i){e.
1next=9;break}return console.error("API URL or User Token is missing."),Dn(!1),e.abrupt("return");case 9:return e.prev=9,e.next=12,fetch("".concat(n,"/car-with-driver/submission"),{headers:{"Content-Type":"application/json",Authorization:"".concat(i),project:"haup-stable"}});case 12:if((o=e.sent).ok){e.next=15;break}throw new Error("Failed to fetch car with driver records");case 15:return e.next=17,o.json();case 17:s=e.sent,_n(s.data||[]),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(9),console.error("Failed to fetch car with driver records:",e.t0),_n([]);case 25:return e.prev=25,Dn(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[9,21,25,28]])})));return function(){return e.apply(this,arguments)}}(),mi=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!An){e.next=2;break}return e.abrupt("return");case 2:return Rn(!0),e.prev=3,e.next=6,Object(P.b)();case 6:t=e.sent,wn(t||[]),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Failed to fetch car submits:",e.t0),wn([]);case 14:return e.prev=14,Rn(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[3,10,14,17]])})));return function(){return e.apply(this,arguments)}}(),yi=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t,n,i,o,s;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!xn){e.next=2;break}return e.abrupt("return");case 2:if(hn(!0),n="https://prod.k8s.haupcar.com/ts-restful-api",i=null===(t=Kn.userLoggedIn)||void 0===t?void 0:t.userToken,n&&i){e.next=9;break}return console.error("API URL or User Token is missing."),hn(!1),e.abrupt("return");case 9:return e.prev=9,e.next=12,fetch("".concat(n,"/activity/expert-submissions"),{headers:{"Content-Type":"application/json",Authorization:"".concat(i),project:"haup-stable"}});case 12:if((o=e.sent).ok){e.next=15;break}throw new Error("Failed to fetch activity records");case 15:return e.next=17,o.json();case 17:s=e.sent,dn(s.data||[]),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(9),console.error("Failed to fetch activity records:",e.t0),dn([]);case 25:return e.prev=25,hn(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[9,21,25,28]])})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){"submissions"===ii?mi():"activities"===ii?yi():"property"===ii?gi():"carWithDriver"===ii&&ji()}),[ii]),Object(m.useEffect)((function(){var e=function(){var e=window.location.hash.slice(1);di("activities"===e?"activities":"property"===e?"property":"carWithDriver"===e?"carWithDriver":"submissions")};return e(),window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}}),[]),Object(m.useEffect)((function(){var e=new URLSearchParams(Vn.search).get("token");e&&!Kn.userLoggedIn&&Object(S.b)(e).then(function(){var e=Object(o.a)(Object(r.a)().mark((function e(t){var n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.userData,!(i=t.accessToken)){e.next=8;break}return e.next=4,Object(C.i)(n);case 4:return e.next=6,Object(C.j)(i);case 6:return e.next=8,Object(C.c)();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error("Token login failed:",e)}))}),[Vn.search,Kn.userLoggedIn]),Object(m.useEffect)((function(){var e=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t,n,i;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(C.f)();case 3:if(t=e.sent,!(n=null===t||void 0===t?void 0:t.line_user_id)){e.next=10;break}return e.next=8,Object(w.b)(n);case 8:i=e.sent,sn(i.hasAddedLine);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.error("Failed to check Line status:",e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}();e()}),[]);var Oi=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){var t;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Gt){e.next=2;break}return e.abrupt("return");case 2:return A.a.track("Add Vehicle Button Click"),qt(!0),e.prev=4,e.next=7,Object(C.f)();case 7:if(null===(t=e.sent)||void 0===t||!t.userid){e.next=23;break}return e.prev=9,e.next=12,Object(w.a)(t.userid);case 12:if(e.sent.hasLineLinked){e.next=16;break}return Yt(!0),e.abrupt("return");case 16:e.next=23;break;case 18:return e.prev=18,e.t0=e.catch(9),console.error("Error checking LINE status:",e.t0),Yt(!0),e.abrupt("return");case 23:st(!0);case 24:return e.prev=24,qt(!1),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[4,,24,27],[9,18]])})));return function(){return e.apply(this,arguments)}}(),vi=function(){A.a.track("Listing Type Modal Back Click"),st(!1)},ki=function(){Q(!1),te(!0)};Object(m.useEffect)((function(){var e=!1;return Object(_.d)(Kn.userLoggedIn).then((function(t){e||Ke(!!t.has_unclaimed_deposit)})).catch((function(){e||Ke(!1)})),function(){e=!0}}),[Kn.userLoggedIn]);var Ci=Object(m.useRef)(!1),Si=Object(m.useState)(!1),wi=Object(s.a)(Si,2),Pi=wi[0],Ei=wi[1],Ai=function(){var e=Object(o.a)(Object(r.a)().mark((function e(t,n){return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ci.current){e.next=2;break}return e.abrupt("return");case 2:return Ci.current=!0,Ei(!0),e.prev=4,e.prev=5,e.next=8,Object(_.d)(Kn.userLoggedIn);case 8:if(!e.sent.has_unclaimed_deposit){e.next=13;break}return null===n||void 0===n||n(),He(!0),e.abrupt("return");case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),console.error("Failed to check deposit entitlement:",e.t0);case 18:null===n||void 0===n||n(),Ae(t),ke(!0);
1case 21:return e.prev=21,Ci.current=!1,Ei(!1),e.finish(21);case 25:case"end":return e.stop()}}),e,null,[[4,,21,25],[5,15]])})));return function(t,n){return e.apply(this,arguments)}}(),Ri=function(){ke(!1),"takeALook"===Ee?_e(!0):Q(!0)},Ti=Object(m.useRef)(!1),Bi=Object(m.useState)(!1),Ii=Object(s.a)(Bi,2),_i=Ii[0],Li=Ii[1],Fi=function(){De(!1),ke(!0)},zi=function(){_e(!1),Q(!0)},Di=function(){A.a.track("Activity Intro Modal Back Click"),dt(!1),st(!0)},Wi=function(){A.a.track("Vehicle Type Modal Back Click"),ht(!1),st(!0)},Mi=function(){A.a.track("Property Intro Modal Back Click"),Bt(!1),st(!0)},Ni=function(e){if(A.a.track("Vehicle Type Select Click",{isRentalBusiness:e}),Et(e),sessionStorage.setItem("IS_RENTAL_BUSINESS",JSON.stringify(e)),Qe)return Ze(!1),void Ai("proIntro",(function(){return ht(!1)}));ht(!1),te(!0)},Hi=function(){A.a.track("Vehicle Brand Choice Modal Back Click"),te(!1),ht(!0)},Ui=[ot,xt,ee,J,Be,ve,ze],Yi=Ui.some(Boolean),Vi=Object(m.useRef)(0);Yi&&(Vi.current=Ui.lastIndexOf(!0));var Ki=Vi.current,Gi=Ki<=2,qi={padding:"40px 32px",borderRadius:"8px",height:"".concat(Qt,"px"),display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif"},Xi={borderRadius:"8px",top:0,height:"".concat(Qt,"px")},Ji=[vi,Wi,Hi,ki,zi,Ri,Fi],Qi=function(){sessionStorage.setItem("SHOW_SPECIAL_ITEM","true"),sessionStorage.removeItem("WELCOME_MODAL_SESSION_KEY"),sessionStorage.removeItem("WELCOME_MODAL_PARKING_SESSION_KEY"),sessionStorage.removeItem("WELCOME_MODAL_EARN_SESSION_KEY"),sessionStorage.removeItem("WELCOME_MODAL_APPOINTMENT_SESSION_KEY")},Zi=function(e){Qi(),sessionStorage.setItem("IS_RENTAL_BUSINESS",JSON.stringify(Pt)),sessionStorage.setItem("REQUEST_PRO",JSON.stringify(e)),sessionStorage.removeItem("SUBMISSION_SOURCE"),x&&x()},$i=function(){Qi(),sessionStorage.setItem("IS_RENTAL_BUSINESS",JSON.stringify(Pt)),sessionStorage.setItem("REQUEST_PRO",JSON.stringify(!1)),sessionStorage.setItem("SUBMISSION_SOURCE","tesla"),x&&x()},er=function(){st(!1),Mt(!0)},tr=function(){Ft(!1)};Object(m.useEffect)((function(){var e=function(){Zt(window.innerHeight),tn(window.innerWidth)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(m.useEffect)((function(){A.a.track("Page View",{"Page Name":"Add Listing Page"});var e=Kn.userLoggedIn,t=function(){var t=window.location.pathname;if(("/submission"===t||"/submission/"===t)&&window.location.search)try{var n=new URLSearchParams(window.location.search);if(n.has("token")){n.delete("token");var i=n.toString();window.history.replaceState({},document.title,"/submission".concat(i?"?".concat(i):"").concat(window.location.hash))}}catch(r){console.error(r)}A.a.identify(e.userId),Object(C.b)().then((function(e){e&&V(!0)})).catch((function(e){console.log(e)}))};return t(),window.addEventListener("focus",t),function(){window.removeEventListener("focus",t)}}),[]);var nr=function(){var e=Object(o.a)(Object(r.a)().mark((function e(){return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("activities"!==ii){e.next=5;break}return e.next=3,yi();case 3:case 8:e.next=12;break;case 5:if("property"!==ii){e.next=10;break}return e.next=8,gi();case 10:return e.next=12,Promise.all([null===F||void 0===F?void 0:F(),mi()]);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)("style",{children:"\n          @keyframes tabPanelSlideInRight {\n            from { opacity: 0; transform: translateX(24px); }\n            to { opacity: 1; transform: translateX(0); }\n          }\n\n          @keyframes tabPanelSlideInLeft {\n            from { opacity: 0; transform: translateX(-24px); }\n            to { opacity: 1; transform: translateX(0); }\n          }\n        "}),Object(z.jsx)(T.a,{onBack:function(){return null},backButtonIcon:Object(z.jsx)(R.a,{style:{margin:"15px 0",maxWidth:"100px"}}),backgroundColor:"#fff",extra:Object(z.jsxs)("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",flexWrap:"nowrap"},children:[Object(z.jsx)(h.a,{menu:{items:[{key:"EN",label:"English"},{key:"TH",label:"Thai"}],onClick:function(e){var t=e.key;t!==Nn&&(A.a.track("Language Select Click",{language:t}),Hn(t))},selectedKeys:[Nn]},trigger:["click"],children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",backgroundColor:"#fff",border:"1px solid #D6DAE0",borderRadius:"100px",color:"#0048B3",fontSize:"13px",fontWeight:"500",cursor:"pointer",whiteSpace:"nowrap"},children:[Object(z.jsx)(c.a,{}
1),Object(z.jsx)("span",{children:Nn}),Object(z.jsx)(a.a,{style:{fontSize:"10px"}})]})}),Object(z.jsx)("div",{onClick:function(){A.a.track("Line Chat Header Button Click");var e=on?"false":"true",t="https://line.me/R/ti/p/".concat("@haup.partner","?openQrModal=").concat(e);window.open(t,"_blank","noopener,noreferrer")},style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 10px",backgroundColor:"#fff",border:"1px solid #D6DAE0",borderRadius:"100px",cursor:"pointer",flexShrink:0},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#fff"},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/17UmBKpMFpFyWcD2bkWqogewV3BahiXQ2ekiwzJvUDgA1gee6K3mQDaGMQGULEVoHJYpSTrPb57KaszybWfA6Loo.png",alt:"LINE",style:{height:"20px",width:"20px"}})}),!Y&&Object(z.jsx)(O.b,{to:"/logout",style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",backgroundColor:"#fff",border:"1px solid #D6DAE0",borderRadius:"100px",textDecoration:"none",transition:"background-color 0.2s",color:k.a.haupBlue,fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#fff"},children:"Logout"})]})}),Object(z.jsx)(j.e,{onRefresh:nr,pullingText:Mn.listing.pullToRefresh,canReleaseText:Mn.listing.releaseToRefresh,refreshingText:Mn.listing.refreshing,completeText:Mn.listing.refreshComplete,children:Object(z.jsxs)("div",{style:{paddingBottom:"100px",fontFamily:"Poppins, sans-serif",minHeight:"100vh"},children:[Object(z.jsx)("div",{className:"pad-content",style:{paddingLeft:"16px",paddingRight:"16px"},children:Object(z.jsx)(B.b,{style:{color:k.a.haupBlue,marginBottom:"10px"},children:Mn.listing.pageTitle})}),Object(z.jsx)(vt,{activeTab:ii,onTabChange:di}),Object(z.jsx)("div",{style:{padding:"0 16px",marginBottom:"16px",marginTop:"16px"},children:Object(z.jsxs)("div",{style:{position:"relative"},children:[Object(z.jsxs)("div",{ref:bi,onScroll:function(e){var t=e.currentTarget,n=t.scrollLeft,i=t.offsetWidth,r=Math.round(n/i);hi(r)},style:{display:"flex",overflowX:"scroll",scrollSnapType:"x mandatory",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none",scrollBehavior:"smooth"},children:[Object(z.jsx)("style",{children:'\n                  div[style*="scroll-snap-type: x mandatory"]::-webkit-scrollbar {\n                    display: none;\n                  }\n                '}),["https://ts-upload.sgp1.digitaloceanspaces.com/cms/3R7GKMNsmSeSFDaZqLMe1RCL9mUCJ66sUSu29vqLmRwatT7VQAqkarZd39Ft7BoE3VA37wbSsAgtuW7vnYW2wp1n.jpg","https://ts-upload.sgp1.digitaloceanspaces.com/cms/32QVRjqPBq7XUTZK1JN767W4gLgP8gha6J1UggzZAh8CJE4PwMVH51D3RMjPZp7GZgJGThuw1qursNu6gCyYqdF4.jpg","https://ts-upload.sgp1.digitaloceanspaces.com/cms/1DYmLgSoTzdR5k8BSZBM6x6ACp46aNY5Fm8ZsZBsfeWpYTbZufStW3EVnpQdR2N9J4fySLusfbBK6NkwzNzPWxBE.jpg"].map((function(e,t){return Object(z.jsx)("div",{style:{minWidth:"100%",scrollSnapAlign:"center",scrollSnapStop:"always",padding:"0 4px"},children:Object(z.jsx)("img",{src:e,alt:"Promotional banner ".concat(t+1),style:{width:"100%",display:"block",borderRadius:"12px",userSelect:"none",pointerEvents:"none"}})},t)}))]}),Object(z.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:"8px",marginTop:"12px"},children:[0,1,2].map((function(e){return Object(z.jsx)("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:xi===e?k.a.haupBlue:"#D9D9D9",cursor:"pointer",transition:"background-color 0.3s ease"},onClick:function(){A.a.track("Banner Dot Click",{index:e}),bi.current&&bi.current.scrollTo({left:e*bi.current.offsetWidth,behavior:"smooth"})}},e)}))})]})}),"submissions"===ii&&Object(z.jsx)("div",{className:"pad-content",style:{paddingTop:"10px",paddingLeft:"16px",paddingRight:"16px",overflowY:"visible",animation:"".concat(1===ci?"tabPanelSlideInRight":"tabPanelSlideInLeft"," 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both")},hidden:W,children:Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:N&&!An?Object(z.jsx)(yt,{}
1):Object(z.jsxs)(z.Fragment,{children:[Ve&&Object(z.jsxs)("div",{style:{display:"flex",gap:"12px",alignItems:"flex-start",backgroundColor:"#E9FBFB",border:"1px solid #00CCCC",borderRadius:"12px",padding:"16px",marginBottom:"16px"},children:[Object(z.jsx)(l.a,{style:{color:"#00CCCC",fontSize:"18px",marginTop:"2px"}}),Object(z.jsxs)("div",{style:{flex:1},children:[Object(z.jsx)("div",{style:{fontSize:"15px",fontWeight:600,color:"#212427",marginBottom:"4px"},children:Mn.listing.proIntro.payment.depositBannerTitle}),Object(z.jsx)("div",{style:{fontSize:"13.5px",color:"#4A5568",lineHeight:1.5,marginBottom:"12px"},children:Mn.listing.proIntro.payment.depositBannerDesc}),Object(z.jsx)(f.a,{type:"primary",shape:"round",style:{height:"40px",backgroundColor:"#0048B3",borderColor:"#0048B3"},onClick:function(){A.a.track("Deposit Banner Cta Click"),Ze(!0),ht(!0)},children:Mn.listing.proIntro.payment.depositBannerCta})]})]}),0!==n.length||0!==Sn.length||N||An?Object(z.jsxs)(z.Fragment,{children:[fi.actionRequired.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionActionRequired}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:fi.actionRequired.map((function(e,t){if(!e._id)throw new Error("Missing record _id !");return Object(z.jsx)(bt,{vehicle:e,isWebView:Y,generatedImageUrl:Xn[e._id],isGeneratedImageLoading:$n},"a"+t)}))})]}),fi.incomplete.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionIncomplete}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:fi.incomplete.map((function(e,t){if(!e._id)throw new Error("Missing record _id !");return Object(z.jsx)(bt,{vehicle:e,isWebView:Y,generatedImageUrl:Xn[e._id],isGeneratedImageLoading:$n},"b"+t)}))})]}),fi.pending.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionPending}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:fi.pending.map((function(e,t){if(!e._id)throw new Error("Missing record _id !");return Object(z.jsx)("div",{children:Object(z.jsx)(bt,{disabled:!0,vehicle:e,generatedImageUrl:Xn[e._id],isGeneratedImageLoading:$n},"c"+t)},"pending-"+e._id)}))})]}),fi.completed.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionCompleted}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:fi.completed.map((function(e,t){if(!e._id)throw new Error("Missing record _id !");return Object(z.jsx)("div",{children:Object(z.jsx)(bt,{disabled:!0,vehicle:e,generatedImageUrl:Xn[e._id],isGeneratedImageLoading:$n},"d"+t)},"completed-"+e._id)}))})]}),fi.completedAndPublish.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionPublished}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:fi.completedAndPublish.map((function(e,t){if(!e._id)throw new Error("Missing record _id !");return Object(z.jsx)("div",{children:Object(z.jsx)(bt,{disabled:!0,vehicle:e,generatedImageUrl:Xn[e._id],isGeneratedImageLoading:$n},"e"+t)},"publish-"+e._id)}))})]}),Sn.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionCarSubmits}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:Sn.map((function(e){return Object(z.jsx)(X,{carSubmit:e},e.id)}))})]}),fi.unqualified.length>0&&Object(z.jsxs)("div",{children:[Object(z.jsx)(B.b,{style:{marginBottom:"1rem"},children:Mn.listing.sectionUnqualified}),Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:fi.unqualified.map((function(e,t){if(!e._id)throw new Error("Missing record _id !");return Object(z.jsx)("div",{children:Object(z.jsx)(bt,{disabled:!0,vehicle:e,generatedImageUrl:Xn[e._id],isGeneratedImageLoading:$n},"f"+t)},"unqualified-"+e._id)}))})]})]}):Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"20px 5px",textAlign:"center",fontFamily:"Poppins, sans-serif"},children:[Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/3XZvQhPHofPuprFsEwqE1xvysWtZ6eM8ZZZMdAYVppAJXoR2ickKiEXC1bfGZ1RqG9VBaNTAcaTiUrcrmC7Li7gV.png",alt:"No cars listed",style:{width:"200px",height:"auto",marginBottom:"24px"}}),Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:"600",color:"#333",marginBottom:"12px",lineHeight:"1.2"},children:Mn.listing.emptyTitle}),Object(z.jsx)("p",{style:{fontSize:"16px",color:"#666",lineHeight:"1.5",maxWidth:"320px",margin:0},children:Mn.listing.emptyDesc})]})]})})}),"activities"===ii&&Object(z.jsx)("div",{className:"pad-content",style:{paddingTop:"10px",paddingLeft:"16px",paddingRight:"16px",overflowY:"visible",animation:"".concat(1===ci?"tabPanelSlideInRight":"tabPanelSlideInLeft"," 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both")},children:Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:xn?Object(z.jsx)(yt,{}):Object(z.jsx)(z.Fragment,{children:ln.length>0?ln.map((function(e,t){return Object(z.jsx)(q,{activity:e,isWebView:Y},e.id)})):Object(z.jsx)("div",{style:{textAlign:"center",padding:"50px"},children:Object(z.jsx)("p",{style:{color:"#8c8c8c"},children:Mn.listing.noData})})})})}),"property"===ii&&Object(z.jsx)("div",{className:"pad-content",style:{paddingTop:"10px",paddingLeft:"16px",paddingRight:"16px",overflowY:"visible",animation:"".concat(1===ci?"tabPanelSlideInRight":"tabPanelSlideInLeft"," 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both")},children:Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:On?Object(z.jsx)(yt,{}):Object(z.jsx)(z.Fragment,{children:gn.length>0?gn.map((function(e,t){return Object(z.jsx)(rt,{property:e,isWebView:Y},e.id)})):Object(z.jsx)("div",{style:{textAlign:"center",padding:"50px"},children:Object(z.jsx)("p",{style:{color:"#8c8c8c"},children:Mn.listing.noData})})})})}),"carWithDriver"===ii&&Object(z.jsx)("div",{className:"pad-content",style:{paddingTop:"10px",paddingLeft:"16px",paddingRight:"16px",overflowY:"visible",animation:"".concat(1===ci?"tabPanelSlideInRight":"tabPanelSlideInLeft"," 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both")},children:Object(z.jsx)(b.b,{direction:"vertical",style:{width:"100%",minHeight:"fit-content"},children:zn?Object(z.jsx)(yt,{}):Object(z.jsx)(z.Fragment,{children:In.length>0?In.map((function(e){return Object(z.jsx)(gt,{record:e,isWebView:Y},e.id)})):Object(z.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"20px 5px",textAlign:"center",fontFamily:"Poppins, sans-serif"},children:[Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/23BbAzoY2H2NG7HXHbqgm5TnQqk9XVFjh5WXHSFarpk8vJKx63FMs8o1m7HHvVVs3C4MszcdudFywLQPZDae3je5.png",alt:"No car with driver listed",style:{width:"200px",height:"auto",marginBottom:"24px"}}),Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:"600",color:"#333",marginBottom:"12px",lineHeight:"1.2"},children:Un.listing.emptyTitle}),Object(z.jsx)("p",{style:{fontSize:"16px",color:"#666",lineHeight:"1.5",maxWidth:"320px",margin:0},children:Un.listing.emptyDesc})]})})})})]})}),Object(z.jsx)("div",{style:{position:"fixed",bottom:"20px",left:"50%",transform:"translateX(-50%)",zIndex:1e3},children:Object(z.jsxs)("div",{onClick:"carWithDriver"===ii?er:Oi,style:{backgroundColor:"#0048B3",color:"#fff",borderRadius:"25px",padding:"0 20px",height:"48px",display:"flex",alignItems:"center",gap:"8px",cursor:Gt?"not-allowed":"pointer",opacity:Gt?.75:1,boxShadow:"0 4px 12px rgba(0, 72, 179, 0.3)",border:"none",fontSize:"16px",fontWeight:"500",whiteSpace:"nowrap",fontFamily:"Poppins, sans-serif"},children:[Gt?Object(z.jsx)(d.a,{style:{fontSize:"20px",color:"#fff"},spin:!0}):Object(z.jsx)(p.a,{style:{fontSize:"20px",color:"#fff"}}),Mn.listing.registerBtn]})}),Object(z.jsx)(g.a,{open:Yi,onCancel:function(){Ci.current||Ti.current||Ji[Ki]()},maskClosable:!1,footer:null,closable:!1,width:490,centered:Gi,bodyStyle:Gi?qi:{padding:0,borderRadius:"8px",display:"flex",flexDirection:"column",fontFamily:"Poppins, sans-serif",height:"100dvh",overflow:"hidden",position:"relative"},style:Gi?Xi:{borderRadius:"8px",top:0,margin:"0 auto",padding:0,maxWidth:"100vw",height:"100dvh"},children:Object(z.jsx)(it,{open:Yi,active:Ki,busy:Pi||_i,steps:[Object(z.jsxs)("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column"},children:[Object(z.jsx)(M,{onClick:vi}),Object(z.jsxs)("div",{style:{textAlign:"center",flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[Object(z.jsx)("h2",{style:{fontSize:"24px",fontWeight:"600",marginBottom:"16
1px",color:"#333"},children:Mn.listing.addModalTitle}),Object(z.jsx)("p",{style:{fontSize:"16px",color:"#666",marginBottom:"40px",lineHeight:"1.5"},children:Mn.listing.addModalDesc}),Object(z.jsx)("div",{onClick:function(){A.a.track("Listing Type Vehicle Select Click"),st(!1),ht(!0)},style:{border:"1px solid #d9d9d9",borderRadius:"12px",padding:"24px",marginBottom:"20px",cursor:"pointer",backgroundColor:"#fff"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/1u45PbeGQYHuJgcBBB8Q2Bx94bsUNCJ33B8PLAcUKpF8jcwwbjGiP2DGMLhW6dSCeihPewNTBHZJsGGzLGZCiy1J.png",alt:"Vehicle",style:{width:"60px"}})}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"4px",color:"#333"},children:Mn.listing.vehicleOption}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:"1.4"},children:Mn.listing.vehicleOptionDesc})]})]})}),Object(z.jsx)("div",{onClick:er,style:{border:"1px solid #d9d9d9",borderRadius:"12px",padding:"24px",marginBottom:"20px",cursor:"pointer",backgroundColor:"#fff"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/23BbAzoY2H2NG7HXHbqgm5TnQqk9XVFjh5WXHSFarpk8vJKx63FMs8o1m7HHvVVs3C4MszcdudFywLQPZDae3je5.png",alt:"Car with driver",style:{width:"60px"}})}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"4px",color:"#333"},children:Un.listing.optionTitle}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:"1.4"},children:Un.listing.optionDesc})]})]})}),Object(z.jsx)("div",{onClick:function(){A.a.track("Listing Type Activity Select Click"),st(!1),dt(!0)},style:{border:"1px solid #d9d9d9",borderRadius:"12px",padding:"24px",marginBottom:"20px",cursor:"pointer",backgroundColor:"#fff"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/5bBfxYSnZevvRrSro1jtdP52fnriQm5ywotHNQv2WjoAG3hSj79piFLaDhn8SNSuHW1iBpf6R54vzYZjVDhhnmSt.png",alt:"Activity",style:{width:"60px"}})}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"4px",color:"#333"},children:Mn.listing.activityOption}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:"1.4"},children:Mn.listing.activityOptionDesc})]})]})}),Object(z.jsx)("div",{onClick:function(){A.a.track("Listing Type Property Select Click"),st(!1),Bt(!0)},style:{border:"1px solid #d9d9d9",borderRadius:"12px",padding:"24px",cursor:"pointer",backgroundColor:"#fff"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2s2TiSGtsxBGNmsxsoV71TSa5XvCawR9Pm84Hzz4vktpVm1fd16tXtMLEkh3naAqhbtUwth9Qt3E9XdXfiaKNxEv.png",alt:"Property",style:{width:"60px"}})}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"4px",color:"#333"},children:Mn.listing.propertyOption}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:"1.4"},children:Mn.listing.propertyOptionDesc})]})]})})]})]}),Object(z.jsxs)("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column"},children:[Object(z.jsx)(M,{onClick:Wi}),Object(z.jsxs)("div",{style:{textAlign:"center",flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[Object(z.jsx)("h2",{style:{fontSize:"24px",fontWeight:"600",marginBottom:"16
1px",color:"#333"},children:Mn.listing.vehicleTypeTitle}),Object(z.jsx)("p",{style:{fontSize:"16px",color:"#666",marginBottom:"40px",lineHeight:"1.5"},children:Mn.listing.vehicleTypeDesc}),Object(z.jsx)("div",{onClick:function(){return Ni(!1)},style:{border:"1px solid #d9d9d9",borderRadius:"12px",padding:"24px",marginBottom:"20px",cursor:"pointer",backgroundColor:"#fff",transition:"all 0.2s ease"},onMouseEnter:function(e){e.currentTarget.style.borderColor="#0048B3",e.currentTarget.style.backgroundColor="#f8fbff"},onMouseLeave:function(e){e.currentTarget.style.borderColor="#d9d9d9",e.currentTarget.style.backgroundColor="#fff"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2dFCWYSfuvNtCu8VRjH36VbpZWxNvQ46PYVNw1jzW869phPnovv4xXTEuXhdwCLoLBMyjQ9FY4BTZrp8WEmre5Mk.png",alt:"Car Owner",style:{width:"60px",height:"60px",objectFit:"contain"}})}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"4px",color:"#333"},children:Mn.listing.individualOwner}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:"1.4"},children:Mn.listing.individualOwnerDesc})]}),Pi&&!1===Pt&&Object(z.jsx)(d.a,{spin:!0,style:{fontSize:"20px",color:"#0048B3"}})]})}),Object(z.jsx)("div",{onClick:function(){return Ni(!0)},style:{border:"1px solid #d9d9d9",borderRadius:"12px",padding:"24px",cursor:"pointer",backgroundColor:"#fff",transition:"all 0.2s ease"},onMouseEnter:function(e){e.currentTarget.style.borderColor="#0048B3",e.currentTarget.style.backgroundColor="#f8fbff"},onMouseLeave:function(e){e.currentTarget.style.borderColor="#d9d9d9",e.currentTarget.style.backgroundColor="#fff"},children:Object(z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Object(z.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/63whHrxWV8UnnbseyR9U4z6Saooi1rzwYiU1xnhc33tBYxN6GQ3VoBg8iMnfVKQ2t9YabjgccMBhL5jfEPUfvTVm.png",alt:"Rental Business",style:{width:"60px",height:"60px",objectFit:"contain"}})}),Object(z.jsxs)("div",{style:{textAlign:"left",flex:1},children:[Object(z.jsx)("h3",{style:{fontSize:"18px",fontWeight:"600",marginBottom:"4px",color:"#333"},children:Mn.listing.rentalBusiness}),Object(z.jsx)("p",{style:{fontSize:"14px",color:"#666",margin:0,lineHeight:"1.4"},children:Mn.listing.rentalBusinessDesc})]}),Pi&&!0===Pt&&Object(z.jsx)(d.a,{spin:!0,style:{fontSize:"20px",color:"#0048B3"}})]})})]})]}),Object(z.jsx)($e,{embedded:!0,open:ee,onBack:Hi,onSelect:function(e){A.a.track("Vehicle Brand Choice Select Click",{choice:e}),te(!1),"tesla"===e?$i():Q(!0)},screenHeight:Qt}),Object(z.jsx)(Ge,{embedded:!0,loading:Pi,open:J,onBack:ki,onInterestedInPro:function(){Ai("proIntro",(function(){return Q(!1)}))},onNotInterested:function(){Q(!1),_e(!0)},onLearnMorePro:function(){pe("pro")},onLearnMoreStarter:function(){pe("starter")},onLearnMoreRevenuePlans:function(){return be(!0)},onOpenEarningsCalculator:function(){ce(!0)}}),Object(z.jsx)(tt,{embedded:!0,loading:Pi,open:Be,onBack:zi,onSwitchToPro:function(){Ai("takeALook",(function(){return _e(!1)}))},onContinueStarter:function(){_e(!1),Zi(!1)}}),Object(z.jsx)(ne,{embedded:!0,loading:_i,open:ve,onBack:Ri,onPayContinue:function(){Ti.current||(Ti.current=!0,Li(!0))}}),Object(z.jsx)(Ce,{embedded:!0,open:ze,onBack:Fi,onPaySubmit:function(){De(!1),Zi(!0)},prepare:_i,onPrepared:function(){Ti.current&&(Ti.current=!1,Li(!1),ke(!1),De(!0))},onPrepareFailed:function(){Ti.current=!1,Li(!1)}})]})}),Object(z.jsx)(Ie,{open:se,onBack:function(){ce(!1)},onContinueWithPro:function(){ce(!1),Ai("proIntro",(function(){return Q(!1)}))},screenHeight:Qt}),Object(z.jsx)(Pe,{open:null!==de,onBack:function(){pe(null)},plan:de||"pro",onLearnMoreLink:function(){"pro"===de?be(!0):"starter"===de&&me(!0)},screenHeight:Qt}
1),Object(z.jsx)(Xe,{open:he,onBack:function(){be(!1)},screenHeight:Qt}),Object(z.jsx)(oe,{open:je,onBack:function(){me(!1)},screenHeight:Qt}),Object(z.jsx)(D,{open:Ne,onContinue:function(){He(!1),Zi(!0)}}),Object(z.jsx)(g.a,{open:lt,onCancel:Di,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"20px",borderRadius:"8px",fontFamily:"Poppins, sans-serif",height:"".concat(Qt,"px"),display:"flex",flexDirection:"column"},style:{borderRadius:"8px",top:0,height:"".concat(Qt,"px")},children:Object(z.jsxs)("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column"},children:[Object(z.jsx)(M,{onClick:Di,top:"0px"}),Object(z.jsx)(kt,{onNext:function(){A.a.track("Activity Intro Next Click");var e=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SERVICE_NAME:"vehicle-submission",REACT_APP_TS_AUTHENTICATION_URL:"https://prod.k8s.haupcar.com/ts-authentication",REACT_APP_AUTH_PROJECT:"vehicle-submission",REACT_APP_TS_UPLOAD_URL:"https://prod.k8s.haupcar.com/ts-upload",REACT_APP_TS_RESTFUL_API_URL:"https://prod.k8s.haupcar.com/ts-restful-api",REACT_APP_SUBMISSION_PROJECT:"vehicle-submission-web",REACT_APP_SOCIAL_GOOGLE_APP_ID:"365533302916-gmlfli46ls2j4573nokn66ricuof3ktq.apps.googleusercontent.com",REACT_APP_SOCIAL_FACEBOOK_APP_ID:"162092385880570",REACT_APP_GOOGLE_API_KEY:"AIzaSyCH8B6-hvbKVH8zZ3NDAH67RaYn0Wleryo",REACT_APP_LINE_LOGIN_CLIENT_ID:"2006403116",REACT_APP_LINE_LOGIN_CALLBACK_URL:"https://my.haupcar.com/auth/line/callback",REACT_APP_APPLE_LOGIN_CLIENT_ID:"my.haupcar.com",REACT_APP_APPLE_LOGIN_CALLBACK_URL:"https://prod.k8s.haupcar.com/ts-authentication/social-login/apple/web",REACT_APP_PUBLIC_API_WS:"https://ws.haupcar.com",REACT_APP_MIX_PANEL_TOKEN:"7751ef338beb302707c03dddcb51a1fa",REACT_APP_PRO_FLOW_DEPLOYMENT_DATE:"2026-08-03T10:00:00+07:00"}).REACT_APP_STORAGE_PREFIX||"haup-submission",t="".concat(e,"_temp_id"),n=sessionStorage.getItem(t);if(n){var i="".concat(e,"_tutorialShown_").concat(n);sessionStorage.removeItem(i)}sessionStorage.removeItem("".concat(e,"_stepProgress")),sessionStorage.removeItem(t),dt(!1),Yn.push("/expert-submission/step1")}})]})}),Object(z.jsx)(g.a,{open:Tt,onCancel:Mi,maskClosable:!1,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"20px",borderRadius:"8px",fontFamily:"Poppins, sans-serif",height:"".concat(Qt,"px"),display:"flex",flexDirection:"column"},style:{borderRadius:"8px",top:0,height:"".concat(Qt,"px")},children:Object(z.jsxs)("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column"},children:[Object(z.jsx)(M,{onClick:Mi,top:"0px"}),Object(z.jsx)(wt,{onNext:function(){A.a.track("Property Intro Next Click");var e="".concat(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SERVICE_NAME:"vehicle-submission",REACT_APP_TS_AUTHENTICATION_URL:"https://prod.k8s.haupcar.com/ts-authentication",REACT_APP_AUTH_PROJECT:"vehicle-submission",REACT_APP_TS_UPLOAD_URL:"https://prod.k8s.haupcar.com/ts-upload",REACT_APP_TS_RESTFUL_API_URL:"https://prod.k8s.haupcar.com/ts-restful-api",REACT_APP_SUBMISSION_PROJECT:"vehicle-submission-web",REACT_APP_SOCIAL_GOOGLE_APP_ID:"365533302916-gmlfli46ls2j4573nokn66ricuof3ktq.apps.googleusercontent.com",REACT_APP_SOCIAL_FACEBOOK_APP_ID:"162092385880570",REACT_APP_GOOGLE_API_KEY:"AIzaSyCH8B6-hvbKVH8zZ3NDAH67RaYn0Wleryo",REACT_APP_LINE_LOGIN_CLIENT_ID:"2006403116",REACT_APP_LINE_LOGIN_CALLBACK_URL:"https://my.haupcar.com/auth/line/callback",REACT_APP_APPLE_LOGIN_CLIENT_ID:"my.haupcar.com",REACT_APP_APPLE_LOGIN_CALLBACK_URL:"https://prod.k8s.haupcar.com/ts-authentication/social-login/apple/web",REACT_APP_PUBLIC_API_WS:"https://ws.haupcar.com",REACT_APP_MIX_PANEL_TOKEN:"7751ef338beb302707c03dddcb51a1fa",REACT_APP_PRO_FLOW_DEPLOYMENT_DATE:"2026-08-03T10:00:00+07:00"}).REACT_APP_STORAGE_PREFIX||"haup-submission","_property_temp_id"),t=sessionStorage.getItem(e);if(t){var n="".concat(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SERVICE_NAME:"vehicle-submission",REACT_APP_TS_AUTHENTICATION_URL:"https://prod.k8s.haupcar.com/ts-authentication",REACT_APP_AUTH_PROJECT:"vehicle-submission",REACT_APP_TS_UPLOAD_URL:"https://prod.k8s.haupcar.com/ts-upload",REACT_APP_TS_RESTFUL_API_URL:"https://prod.k8s.haupcar.com/ts-restful-api",REACT_APP_SUBMISSION_PROJECT:"vehicle-submission-web",REACT_APP_SOCIAL_GOOGLE_APP_ID:"365533302916-gmlfli46ls2j4573nokn66ricuof3ktq.apps.googleusercontent.com",REACT_APP_SOCIAL_FACEBOOK_APP_ID:"162092385880570",REACT_APP_GOOGLE_API_KEY:"AIzaSyCH8B6-hvbKVH8zZ3NDAH67RaYn0Wleryo",REACT_APP_LINE_LOGIN_CLIENT_ID:"2006403116",REACT_APP_LINE_LOGIN_CALLBACK_URL:"https://my.haupcar.com/auth/line/callback",REACT_APP_APPLE_LOGIN_CLIENT_ID:"my.haupcar.com",REACT_APP_APPLE_LOGIN_CALLBACK_URL:"https://prod.k8s.haupcar.com/ts-authentication/social-login/apple/web",REACT_APP_PUBLIC_API_WS:"https://ws.haupcar.com",REACT_APP_MIX_PANEL_TOKEN:"7751ef338beb302707c03dddcb51a1fa",REACT_APP_PRO_FLOW_DEPLOYMENT_DATE:"2026-08-03T10:00:00+07:00"}).REACT_APP_STORAGE_PREFIX||"haup-submission","_property_tutorialShown_").concat(t);sessionStorage.removeItem(n)}sessionStorage.removeItem(e),Bt(!1),Yn.push("/property-submission/step1")}})]})}),Object(z.jsx)(g.a,{open:Lt,onCancel:tr,footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"20px",borderRadius:"8px",fontFamily:"Poppins, sans-serif",height:"".concat(Qt,"px"),display:"flex",flexDirection:"column"},style:{borderRadius:"8px",top:0,height:"".concat(Qt,"px")},children:Object(z.jsxs)("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column"},children:[Object(z.jsx)("div",{onClick:tr,style:{position:"absolute",top:"0px",right:"-8px",width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1},children:Object(z.jsx)(u.a,{style:{color:"#666",fontSize:"16px"}})}),Object(z.jsx)(St,{onNext:function(){Ft(!1),Yn.push("/car-with-driver-submission/step1")}})]})}),Object(z.jsx)(g.a,{open:Wt,onCancel:function(){return Mt(!1)},footer:null,centered:!0,closable:!1,width:490,bodyStyle:{padding:"0",borderRadius:"8px",fontFamily:"Poppins, sans-serif",height:"580px",display:"flex",flexDirection:"column"},children:Object(z.jsx)(Ct,{onNext:function(e){sessionStorage.setItem("cwd_company_info",JSON.stringify(e)),Mt(!1),Ft(!0)}})}),Object(z.jsx)(g.a,{open:Ut,onCancel:function(){A.a.track("Line Login Modal Close Icon Click"),Yt(!1)},maskClosable:!1,footer:null,centered:!0,closable:!1,width:400,bodyStyle:{padding:"32px",borderRadius:"16px",fontFamily:"Poppins, sans-serif"},children:Object(z.jsxs)("div",{style:{textAlign:"center"},children:[Object(z.jsx)("div",{onClick:function(){A.a.track("Line Login Modal Close Icon Click"),Yt(!1)},style:{position:"absolute",top:"16px",right:"16px",width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:Object(z.jsx)(u.a,{style:{color:"#666",fontSize:"16px"}})}),Object(z.jsx)("div",{style:{marginBottom:"24px"},children:Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2bkc38bGtiA2rbdewHrR2GHa9xbQwoBg6VDWPAFxyUUpFVxVTy8UHWjt96chwgs5AM1sZ29qG6u8aAeVo4DxUu9z.png",alt:"LINE",style:{width:"80px",height:"80px"}})}),Object(z.jsx)("h2",{style:{fontSize:"22px",fontWeight:"600",marginBottom:"12px",color:"#333"},children:Mn.listing.lineConnectTitle}),Object(z.jsx)("p",{style:{fontSize:"15px",color:"#666",marginBottom:"24px",lineHeight:"1.6"},children:Mn.listing.lineConnectDesc}),Object(z.jsxs)("button",{onClick:Object(o.a)(Object(r.a)().mark((function e(){var t,n,i,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A.a.track("Line Login Connect Click"),localStorage.setItem("postLoginRedirect","/submission".concat(window.location.search)),e.next=4,Object(C.f)();case 4:null!==(t=e.sent)&&void 0!==t&&t.userid&&localStorage.setItem("lineLinkUserId",t.userid.toString()),n=Math.random().toString(36).substring(2,15),i=Math.random().toString(36).substring(2,15)+Date.now(),o="https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id=".concat(v.a.social.LINE_LOGIN_ID,"&redirect_uri=").concat(encodeURIComponent(v.a.social.LINE_CALLBACK_URL),"&state=").concat(n,"&scope=profile openid email&nonce=").concat(i,"&bot_prompt=aggressive"),window.location.href=o;case 10:case"end":return e.stop()}}),e)}))),style:{width:"100%",height:"56px",backgroundColor:"#06C755",border:"none",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:500,color:"#FFFFFF",cursor:"pointer",boxShadow:"0 4px 12px rgba(6, 199, 85, 0.25)"},children:[Object(z.jsx)("img",{src:"https://ts-upload.sgp1.digitaloceanspaces.com/cms/2bkc38bGtiA2rbdewHrR2GHa9xbQwoBg6VDWPAFxyUUpFVxVTy8UHWjt96chwgs5AM1sZ29qG6u8aAeVo4DxUu9z.png",alt:"LINE",style:{width:"28px",height:"28px"}}),Object(z.jsx)("span",{children:Mn.listing.lineConnectBtn})]})]})})]})}}}]);
2//# sourceMappingURL=9.ad8dd450.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.