1import{n as v,J as b,v as y,H as x,a as w,C as k,E as g}from"./index-CxHn0Gru.js";import{o as L}from"./otpService-B7MBMrj0.js";import{V as P,P as _}from"./app-Xa5R5W_8.js";import{R as $}from"./ReviewsIconWhite-RfOG0J4f.js";import{A as V,D as E,T as M,P as H}from"./PasswordField-BxHaMMPD.js";import{E as A,S as B,M as F,A as S}from"./ErrorMessage-ZEY5WdPu.js";import{Z as R}from"./ZendropLogo-D9X4NHpm.js";import{Z as I}from"./ZendropLogoWhite-0zzgD76V.js";import{A as Z}from"./AppPasswordField-DGVN9s-i.js";import{A as D}from"./AppInput-BpHdZqM-.js";import{A as q}from"./AppButton-DgRW-j5-.js";import{V as z}from"./index-DdKzxePc.js";import{i as G}from"./mini-app-onboarding-BdYrPMNN.js";import{b as T}from"./index-DK8ess0x.js";import{u as C}from"./util-BKLjsQa7.js";import{B as Y}from"./popover-BzVLPSVt.js";import{p as N}from"./parsePhoneNumber-ZxPOqrGk.js";import{b as U,d as W}from"./miniAppFeatureFlags-BsHPVrP1.js";import"./guest-Cpv2d7G8.js";import"./roles-BxC5uA8g.js";import"./feature-DoFjsSct.js";import"./TooltipCommon-DqYZGIK-.js";import"./HasParentTargetMixin-Dquecb9q.js";import"./bootstrap-CE9PbH8-.js";/* empty css *//* empty css *//* empty css */import"./useI18n-BOl0gMk-.js";import"./PopoverCommon-kEK2Qou3.js";import"./sidebar-Btyhxr_K.js";import"./all-countries-D8i9wQSI.js";const O={};var J=function(){var e=this,t=e._self._c;return t("div",{staticClass:"review-icons"},[t("a",{attrs:{href:"https://apps.shopify.com/zendrop",rel:"noopener",target:"_blank","data-element":"reviews-shopify-link"}},[t("svg",{attrs:{fill:"none",height:"20",viewBox:"0 0 21 24",width:"17",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.4235 3.4975L16.2625 4.334C16.2625 4.334 18.0975 4.471 18.184 4.478C18.2356 4.48242 18.2843 4.50404 18.3222 4.53939C18.3601 4.57475 18.385 4.62179 18.393 4.673C18.4095 4.794 21 22.396 21 22.396L14.6435 23.7775L15.4235 3.4975ZM14.4485 2.8305C14.4079 2.83573 14.3678 2.84409 14.3285 2.8555L13.6145 3.0765C13.1885 1.845 12.437 0.7135 11.1155 0.7135C11.079 0.7135 11.0405 0.7145 11.0035 0.717C10.627 0.2175 10.1615 0 9.7595 0C6.6795 0 5.2075 3.87 4.7465 5.836C3.5495 6.2085 2.6995 6.473 2.5915 6.5075C1.9225 6.7185 1.9015 6.7395 1.814 7.372C1.748 7.851 0 21.4355 0 21.4355L13.62 24L13.6345 23.997L14.4485 2.8305ZM10.9025 3.786L10.902 3.9205L8.521 4.661C8.9795 2.884 9.8385 2.025 10.59 1.701C10.7785 2.178 10.9025 2.8625 10.9025 3.786ZM9.674 0.83C9.808 0.83 9.9415 0.876 10.07 0.9645C9.0825 1.431 8.025 2.607 7.578 4.9545L5.6965 5.5405C6.2195 3.7495 7.462 0.8305 9.674 0.8305V0.83ZM10.205 11.2965C10.205 11.2965 9.408 10.869 8.431 10.869C6.998 10.869 6.926 11.7725 6.926 12C6.926 13.243 10.148 13.719 10.148 16.629C10.148 18.918 8.703 20.3925 6.7545 20.3925C4.4165 20.3925 3.221 18.93 3.221 18.93L3.847 16.8515C3.847 16.8515 5.0765 17.912 6.1135 17.912C6.7905 17.912 7.0665 17.376 7.0665 16.9845C7.0665 15.3635 4.4225 15.291 4.4225 12.6275C4.4225 10.387 6.0235 8.2175 9.255 8.2175C10.5 8.2175 11.115 8.5765 11.115 8.5765L10.205 11.2965ZM11.7095 3.669L11.71 3.419C11.71 2.654 11.604 2.038 11.435 1.5495C12.116 1.635 12.57 2.4145 12.8615 3.3105L11.7095 3.669Z",fill:"#2E2F39"}})])]),t("a",{attrs:{href:"https://www.wix.com/app-market/zendrop-ai-dropshipping-pod",rel:"noopener",target:"_blank","data-element":"reviews-wix-link"}},[t("svg",{attrs:{fill:"none",height:"12",viewBox:"0 0 41 16",width:"31",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.1422 2.62507C25.1442 2.62711 25.1464 2.6289 25.1482 2.63118C25.1644 2.6534 25.2005 12.9765 25.1378 13.8441C25.0978 14.4008 25.0141 14.9695 24.5678 15.3537C23.9611 15.8761 23.1274 15.9534 22.3613 15.897L22.3401 15.8918C22.2996 15.831 22.3183 13.818 22.3183 13.6176L22.3177 9.03415L22.3173 6.42344C22.3173 5.95988 22.3118 5.49965 22.3247 5.03481C22.3403 4.46453 22.6065 4.2059 23.085 3.93869C23.5022 3.70577 23.935 3.53992 24.3456 3.30006C24.6415 3.12762 24.9052 2.86866 25.1422 2.62507Z",fill:"#2E2F39"}}),t("path",{attrs:{d:"M24.6951 0.0281686C24.7722 0.0170541 25.0899 0.0122424 25.1832 0.00904969C25.2192 1.32957 24.9674 2.07642 23.7117 2.66617C23.3087 2.8554 22.9838 2.96795 22.6119 3.223
166C22.5788 3.24205 22.3676 3.4158 22.325 3.45001C22.308 2.64662 22.3766 1.29028 22.942 0.677896C23.413 0.16781 24.0465 0.0631852 24.6951 0.0281686Z",fill:"#2E2F39"}}),t("path",{attrs:{d:"M0 0H0.808979C1.7676 0.199999 2.4773 0.329664 3.08917 1.26112C3.22621 1.46979 3.33728 1.69443 3.41994 1.93005C3.53337 2.26167 3.63459 2.69863 3.72421 3.04265L4.20765 4.89987L5.74721 10.8082L7.00401 5.71276C7.2532 4.69997 7.46678 3.59356 7.86653 2.63202C8.09576 2.0807 8.46912 1.44899 8.99411 1.15032C9.74905 0.736704 10.6109 0.600399 11.4464 0.832459C12.2528 1.05647 12.6249 1.352 13.0364 2.05135C13.5491 2.92275 13.7349 3.84415 13.9867 4.80752L15.0432 8.8545L15.3673 10.0951C15.42 10.2964 15.4968 10.6263 15.5675 10.8124C15.6914 10.2097 15.913 9.44162 16.071 8.83559L17.0076 5.24078L17.5763 3.05157C17.6991 2.57865 17.7987 2.10047 17.9872 1.64901C18.357 0.762873 19.1872 0.244441 20.1044 0.0777135C20.2335 0.0542306 20.4247 0.03321 20.5438 0H21.1911C21.2537 0.0242378 21.2633 0.0150726 21.2896 0.0609794C21.2049 0.445249 21.0822 0.873359 20.9811 1.25635L20.4407 3.30438L18.8067 9.50526L17.6645 13.8441L17.305 15.2101C17.2516 15.4131 17.1715 15.7557 17.1047 15.9428C15.6767 16.0355 14.3029 15.8101 13.6813 14.3231C13.307 13.4273 13.0991 12.4823 12.8613 11.5437L11.6858 6.78917C11.5034 6.05383 11.325 5.3222 11.1325 4.58797C11.04 4.23515 10.6495 3.82516 10.3897 4.21053C10.1139 4.61965 9.97455 5.46669 9.85027 5.9747L8.57937 11.103C8.40854 11.7803 8.23814 12.4575 8.06169 13.1348C7.90305 13.7436 7.69599 14.4298 7.31372 14.9387C7.00688 15.3472 6.49057 15.6443 6.01509 15.8141C5.81231 15.8857 5.53448 15.9238 5.31653 15.9383C4.96012 15.9621 4.5704 15.9772 4.21391 15.9359L0.956583 3.6386L0.268582 1.04253C0.230569 0.898975 0.0379316 0.139019 0 0.0762021V0Z",fill:"#2E2F39"}}),t("path",{attrs:{d:"M27.2148 0.0000343C27.7898 0.0000343 28.042 0.0000343 28.042 0.0000343C28.617 0.112397 29.1425 0.142274 29.6652 0.453751C30.4742 0.935828 31.6479 2.75969 32.2171 3.59841L33.4261 5.38061C33.939 6.12982 34.354 5.19723 34.6533 4.75578L35.8668 2.96862C36.4514 2.11033 37.1705 0.904644 38.1116 0.387369C38.4141 0.221077 38.8351 0.118915 39.1787 0.0656898C39.291 0.048305 39.5098 0.0255212 39.6089 0.0000343H40.4339C40.5064 0.0219735 40.9016 0.0651804 40.9998 0.0769819C40.1991 1.23652 39.4045 2.4426 38.6153 3.61269L35.6464 8.02073C35.8362 8.273 36.0688 8.64449 36.252 8.91777L37.4154 10.6539L40.9458 15.9265C40.4443 15.9776 39.9388 15.9756 39.4377 15.9204C38.6432 15.828 37.9387 15.6113 37.3647 15.0231C36.6632 14.3042 36.1309 13.5052 35.5704 12.6798L34.6318 11.2998C34.4577 11.0427 34.2905 10.7784 34.1075 10.528C34.0036 10.3856 33.7924 10.2596 33.6261 10.3736C33.5524 10.4239 33.4897 10.4789 33.4335 10.5496C33.2171 10.8396 33.0139 11.1516 32.8113 11.4513L31.7452 13.0241C31.2375 13.7724 30.6838 14.6186 29.9889 15.2093C29.0998 15.9647 27.6468 16.0236 26.5397 15.9255L31.8349 8.00322L26.6593 0.0816628C26.8394 0.0455517 27.025 0.0399032 27.2148 0.0000343Z",fill:"#2E2F39"}})])]),t("a",{attrs:{href:"https://www.trustpilot.com/review/zendrop.com",rel:"noopener",target:"_blank","data-element":"reviews-trustpilot-link"}},[t("svg",{attrs:{fill:"none",height:"20",viewBox:"0 0 77 20",width:"77",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M20.3409 6.74194H28.132V8.24023H25.1354V16.331H23.3375V8.24023H20.3409V6.74194ZM27.6825 9.28903H29.1808V10.6375C29.1808 10.4877 29.3306 10.3378 29.4804 10.0382C29.6302 9.73851 29.7801 9.73851 29.9299 9.58868C30.0797 9.43885 30.3794 9.28903 30.5292 9.28903C30.679 9.1392 30.9787 9.1392 31.2783 9.1392C31.4282 9.1392 31.578 9.1392 31.578 9.1392H31.7278V10.6375C31.578 10.6375 31.578 10.6375 31.4282 10.6375C31.2783 10.6375 31.2783 10.6375 31.1285 10.6375C30.8289 10.6375 30.679 10.6375 30.3794 10.7873C30.0797 10.9371 29.9299 11.087 29.7801 11.2368C29.6302 11.3866 29.4804 11.6863 29.3306 11.9859C29.1808 12.2856 29.1808 12.5853 29.1808 13.0347V16.331H27.6825V9.28903ZM38.7697 16.331H37.2714V15.432C37.1216 15.7316 36.822 16.0313 36.3725 16.331C36.0728 16.4808 35.6233 16.6306 35.1738 16.6306C34.2749 16.6306 33.6756 16.4808 33.2261 15.8815C32.7766 15.2822 32.6268 14.6828 32.6268 13.7839V9.43885H34.1251V13.6341C34.1251 14.2334 34.2749 14.6829 34.4247 14.9825C34.7244 15.2822 35.024 15.432 35.4735 15.432C35.7732 15.432 36.0728 15.432 36.2226 15.2822C36.3725 15.1323 36.6721 14.9825 36.6721 14.8327C36.822 14.6829 36.9718 14.533 36.9718 14.2334C36.9718 13.9337 37.1216 13.7839 37.1216 13.4842V9.43885H38.6199V16.331H38.7697ZM41.3168 14.0835C41.3168 14.533 41.4666 14.8327 41.7663 14.9825C42.0659 15.1323 42.3656 15.2822 42.815 15.2822C42.9649 15.2822 43.1147 15.2822 43.2645 15.2822C43.4144 15.2822 43.5642 15.2822 43.714 15.1323C43.8638 15.1323 44.0137 14.9825 44.1635 14.8327C44.3133 14.6829 44.3133 14.533 44.3133 14.3832C44.3133 14.2334 44.1635 14.0835 44.1635 13.9337C44.0137 13.7839 43.8638 13.7839 43.714 13.6341C43.5642 13.6341 43.2645 13.4842 42.9649 13.4842C42.6652 13.4842 42.3656 13.3344 42.2157 13.3344C41.9161 13.3344 41.6164 13.1846 41.4666 13.0347C41.3168 12.8849 41.0171 12.8849 40.7175 12.7351C40.5676 12.5853 40.268 12.4354 40.268 12.1358C40.1182 11.8361 40.1182 11.5365 40.1182 11.2368C40.1182 10.7873 40.268 10.4877 40.4178
110.3378C40.5676 10.188 40.8673 9.88834 41.1669 9.73851C41.4666 9.58868 41.7663 9.43885 42.0659 9.43885C42.3656 9.43885 42.815 9.28903 43.1147 9.28903C43.4144 9.28903 43.8638 9.28903 44.1635 9.43885C44.4631 9.43885 44.7628 9.58868 45.0625 9.73851C45.3621 9.88834 45.5119 10.188 45.6618 10.3378C45.8116 10.6375 45.9614 10.9371 45.9614 11.3866H44.3133C44.3133 11.087 44.0137 10.7873 43.8638 10.6375C43.4144 10.4877 43.1147 10.3378 42.815 10.3378C42.6652 10.3378 42.5154 10.3378 42.3656 10.3378C42.2157 10.3378 42.0659 10.3378 41.9161 10.4877C41.7663 10.4877 41.6164 10.6375 41.6164 10.6375C41.4666 10.7873 41.4666 10.7873 41.4666 10.9371C41.4666 11.087 41.4666 11.2368 41.6164 11.3866C41.7663 11.5365 41.9161 11.5365 42.0659 11.6863C42.2157 11.6863 42.5154 11.8361 42.815 11.8361C43.1147 11.8361 43.4144 11.9859 43.714 11.9859C44.0137 11.9859 44.3133 12.1358 44.4631 12.2856C44.7628 12.4354 44.9126 12.4354 45.2123 12.5853C45.5119 12.7351 45.6618 12.8849 45.6618 13.1846C45.8116 13.4842 45.8116 13.6341 45.8116 14.0835C45.8116 14.533 45.6618 14.8327 45.5119 15.1323C45.3621 15.432 45.0625 15.5818 44.7628 15.8815C44.613 16.1811 44.3133 16.331 44.0137 16.331C43.714 16.331 43.2645 16.4808 42.9649 16.4808C42.5154 16.4808 42.0659 16.4808 41.7663 16.331C41.4666 16.1811 41.0171 16.0313 40.8673 15.8815C40.5676 15.7317 40.4178 15.432 40.268 15.1323C39.9683 14.8327 39.8185 14.533 39.8185 14.0835H41.3168ZM46.4109 9.28903H47.6095V7.34126H49.1078V9.43885H50.4562V10.6375H49.1078V14.3832C49.1078 14.533 49.1078 14.6829 49.1078 14.8327C49.1078 14.9825 49.1078 14.9825 49.2576 15.1323C49.4074 15.2822 49.4074 15.2822 49.4074 15.2822C49.5573 15.2822 49.7071 15.2822 49.8569 15.2822C50.0068 15.2822 50.0068 15.2822 50.1566 15.2822C50.3064 15.2822 50.3064 15.2822 50.4562 15.2822V16.331C50.3064 16.331 50.1566 16.331 50.0068 16.331C49.8569 16.331 49.7071 16.331 49.5573 16.331C49.1078 16.331 48.8081 16.331 48.6583 16.1811C48.3587 16.1811 48.2088 16.0313 48.059 15.8815C47.9092 15.7317 47.7593 15.5818 47.7593 15.2822C47.7593 15.1323 47.6095 14.8327 47.6095 14.533V10.4877H46.4109V9.28903ZM51.505 9.28903H53.0033V10.3378C53.1531 9.88834 53.4528 9.58868 53.9023 9.43885C54.3518 9.28903 54.6514 9.1392 55.1009 9.1392C55.7002 9.1392 56.1497 9.28903 56.5992 9.43885C57.0486 9.58868 57.3483 9.88834 57.648 10.188C57.9476 10.4877 58.0974 10.9371 58.2473 11.3866C58.3971 11.8361 58.3971 12.2856 58.3971 12.8849C58.3971 13.3344 58.3971 13.7839 58.2473 14.2334C58.0974 14.6829 57.9476 14.9825 57.648 15.432C57.3483 15.7316 57.0486 16.0313 56.749 16.1811C56.2995 16.331 55.9999 16.4808 55.4005 16.4808C55.2507 16.4808 54.9511 16.4808 54.8012 16.4808C54.6514 16.4808 54.3517 16.331 54.2019 16.331C54.0521 16.1811 53.7524 16.1811 53.6026 16.0313C53.4528 15.8815 53.303 15.7316 53.1531 15.5818V19.0279H51.6549V9.28903H51.505ZM56.8988 12.8849C56.8988 12.5853 56.8988 12.2856 56.749 11.9859C56.5992 11.6863 56.5992 11.3866 56.4493 11.2368C56.2995 11.087 56.1497 10.7873 55.85 10.6375C55.5504 10.4877 55.4005 10.4877 54.9511 10.4877C54.3517 10.4877 53.7524 10.6375 53.4528 11.087C53.1531 11.5365 53.0033 12.1358 53.0033 12.8849C53.0033 13.1846 53.0033 13.6341 53.1531 13.7839C53.303 14.0835 53.303 14.3832 53.6026 14.533C53.7524 14.6828 53.9023 14.9825 54.2019 14.9825C54.5016 15.1323 54.6514 15.1323 54.9511 15.1323C55.2507 15.1323 55.5504 15.1323 55.85 14.9825C56.1497 14.8327 56.2995 14.6829 56.4493 14.3832C56.5992 14.0835 56.749 13.9337 56.749 13.6341C56.749 13.4842 56.8988 13.1846 56.8988 12.8849ZM59.5957 6.74194H61.094V8.24023H59.5957V6.74194ZM59.5957 9.28903H61.094V16.331H59.5957V9.28903ZM62.4424 6.74194H63.9407V16.331H62.4424V6.74194ZM68.5854 16.4808C67.986 16.4808 67.5366 16.331 67.0871 16.1811C66.6376 16.0313 66.3379 15.7316 66.0383 15.432C65.7386 15.1323 65.439 14.6829 65.2891 14.2334C65.1393 13.7839 64.9895 13.3344 64.9895 12.7351C64.9895 12.1358 65.1393 11.6863 65.2891 11.2368C65.439 10.7873 65.7386 10.3378 66.0383 10.0382C66.3379 9.73851 66.6376 9.43885 67.0871 9.28903C67.5366 9.1392 67.986 8.98937 68.5854 8.98937C69.1847 8.98937 69.6341 9.1392 70.0836 9.28903C70.5331 9.43885 70.8328 9.73851 71.1324 10.0382C71.4321 10.3378 71.7317 10.7873 71.8816 11.2368C72.0314 11.6863 72.1812 12.1358 72.1812 12.7351C72.1812 13.3344 72.0314 13.7839 71.8816 14.2334C71.7317 14.6829 71.4321 15.1323 71.1324 15.432C70.8328 15.7316 70.5331 16.0313 70.0836 16.1811C69.6341 16.331 69.1847 16.4808 68.5854 16.4808ZM68.5854 15.2822C68.885 15.2822 69.1847 15.2822 69.4843 15.1323C69.784 14.9825 69.9338 14.8327 70.0836 14.533C70.2335 14.2334 70.3833 14.0835 70.3833 13.7839C70.3833 13.4842 70.5331 13.1846 70.5331 12.8849C70.5331 12.5853 70.5331 12.2856 70.3833 11.9859C70.3833 11.6863 70.2335 11.3866 70.0836 11.2368C69.9338 11.087 69.784 10.7873 69.4843 10.6375C69.1847 10.4877 68.885 10.4877 68.5854 10.4877C68.2857 10.4877 67.986 10.4877 67.6864 10.6375C67.3867 10.7873 67.2369 10.9371 67.0871 11.2368C66.9372 11.5365 66.7874 11.6863 66.7874 11.9859C66.7874 12.2856 66.6376 12.5853 66.6376 12.8849C66.
16376 13.1846 66.6376 13.4842 66.7874 13.7839C66.7874 14.0835 66.9372 14.3832 67.0871 14.533C67.2369 14.8327 67.3867 14.9825 67.6864 15.1323C67.986 15.1323 68.2857 15.2822 68.5854 15.2822ZM72.6307 9.28903H73.8293V7.34126H75.3276V9.43885H76.676V10.6375H75.3276V14.3832C75.3276 14.533 75.3276 14.6829 75.3276 14.8327C75.3276 14.9825 75.3276 14.9825 75.4774 15.1323C75.6272 15.2822 75.6272 15.2822 75.6272 15.2822C75.7771 15.2822 75.9269 15.2822 76.0767 15.2822C76.2265 15.2822 76.2265 15.2822 76.3764 15.2822C76.5262 15.2822 76.5262 15.2822 76.676 15.2822V16.331C76.5262 16.331 76.3764 16.331 76.2265 16.331C76.0767 16.331 75.9269 16.331 75.7771 16.331C75.3276 16.331 75.0279 16.331 74.8781 16.1811C74.5784 16.1811 74.4286 16.0313 74.2788 15.8815C74.129 15.7317 73.9791 15.5818 73.9791 15.2822C73.9791 15.1323 73.8293 14.8327 73.8293 14.533V10.4877H72.6307V9.28903Z",fill:"#2E2F39"}}),t("path",{attrs:{d:"M11.5007 6.7417H18.5427L12.8494 10.7876L14.946 17.5298L9.40308 13.3345L3.70972 17.5298L5.80737 10.7876L0.263428 6.7417H7.15503L9.40308 -0.000488281L11.5007 6.7417ZM9.40308 13.3345L13.2986 12.2856L12.8494 10.7876L9.40308 13.3345Z",fill:"#2E2F39"}})])])])},K=[],Q=v(O,J,K,!1,null,"77242e41");const X=Q.exports,j={components:{ReviewsIcon:X,ReviewsIconWhite:$,AppIcon:x,HasError:y.HasError,AppPasswordField:Z,AppInput:D,ZendropLogo:R,AppButton:q,VueTelInput:z,AuthHeader:S,PasswordField:H,MediumHeader:F,TermsAlert:M,Divider:E,ServiceRecommendation:B,ErrorMessage:A,AuthButtons:V,VButton:P,BPop
1over:Y,ZendropLogoWhite:I},middleware:"guest",metaInfo(){return{title:this.$t("ui.public.sign_up")}},data:()=>({error:null,submitError:"",checkboxErrors:[],form:new b({first_name:"",last_name:"",email:"",password:"",phone:"",country_code:"",accept_terms:!1,accept_tos:!1,tiktok_credits:!1,onboarding_type:null}),isPhoneValid:!1,MIN_PASSWORD_LENGTH:6,animated:!1,slideAnimated:!1,showRow:!0,bgFadeInAnimated:!1,activeColor:"white",planFeatures:"",planInfo:"",formattedPhone:"",showSsoButtons:!1,windowWidth:window.innerWidth}),computed:{createAccountText(){let s=this.$t("ui.public.create_an_account");return s=s.toLowerCase(),s[0].toUpperCase()+s.substring(1)},isGrowYourBusinessPage(){return this.$route.name==="grow-your-business"},isMobile(){return this.windowWidth<=767}},watch:{"form.accept_terms"(){this.checkboxErrors=this.checkboxErrors.filter(s=>s!=="accept_sms_required")},"form.accept_tos"(){this.checkboxErrors=this.checkboxErrors.filter(s=>s!=="accept_tos_required")}},mounted(){W(),this.$ff.showTrustPilotWidget&&g.$emit("load-trust-pilot-widget"),g.$on("clear-phone-verification",this.sendVerificationRequest),this.error=this.$route.query.error_message,this.isGrowYourBusinessPage&&document.body.classList.add("grow-your-business"),this.showSsoButtons=window.config.sso_enabled,this.planFeatures=window.config.features,this.planInfo=this.$t("ui.upgrade_plan_page.list");const s=new URLSearchParams(window.location.search);typeof ire=="function"?ire("identify",{customerId:"",customerEmail:""}):console.log("ire function not found");let e=s.get("email");e&&(this.form.email=e),this.restoreVerificationContext(),window.addEventListener("resize",this.handleResize)},beforeDestroy(){window.removeEventListener("resize",this.handleResize),document.body.classList.remove("grow-your-business"),g.$off("clear-phone-verification",this.sendVerificationRequest)},methods:{handleResize(){this.windowWidth=window.innerWidth},restoreVerificationContext(){try{const s=sessionStorage.getItem("verification:context");if(!s)return;const e=JSON.parse(s);e&&typeof e=="object"&&(typeof e.email=="string"&&e.email.trim()&&(this.form.email=e.email.trim().toLowerCase()),typeof e.first_name=="string"&&(this.form.first_name=e.first_name),typeof e.last_name=="string"&&(this.form.last_name=e.last_name),typeof e.accept_terms<"u"&&(this.form.accept_terms=!!e.accept_terms),typeof e.accept_tos<"u"&&(this.form.accept_tos=!!e.accept_tos),typeof e.phone=="string"&&e.phone.trim()&&(this.form.phone=e.phone.trim(),this.formattedPhone=e.phone.trim()),typeof e.country_code=="string"&&e.country_code.trim()&&(this.form.country_code=e.country_code.trim()))}catch(s){console.warn("Failed to restore verification context from sessionStorage",s)}},changePasswordValue(s){this.form.password=s},checkPhoneObject(s){this.isPhoneValid=!!(s&&s.valid),s&&typeof s.number=="string"&&s.number.trim()&&(this.form.phone=s.number)},async register(){var d,a,l,i;if(this.checkboxErrors=[],this.submitError="",(d=this.$ff)!=null&&d.useNewLoginDesign&&this.formattedPhone&&!this.form.accept_terms&&this.checkboxErrors.push("accept_sms_required"),this.checkboxErrors.length)return;if(this.isGrowYourBusinessPage&&(this.form.onboarding_type="grow_your_business"),this.form.accept_tos=!0,C.formExternalAttrSetter(this.form),this.form.navigator_language=navigator.language||navigator.userLanguage,(a=this.$ff)!=null&&a.useNewLoginDesign&&(this.form.marketing_consent_email=!!(this.form.accept_terms&&this.form.email),this.form.marketing_consent_sms=!!(this.form.marketing_consent_email&&this.form.phone)),this.form.phone){const n=N(this.form.phone);this.form.phone=n?n.nationalNumber:this.form.phone.replace(/^\+/,"")}let s;try{s=await this.form.post(_.register)}catch{["first_name","last_name","email","password","phone"].some(r=>this.form.errors.has(r))||(this.submitError=this.$t("ui.public.error_alert_text"));return}await this.$store.dispatch("auth/saveToken",{token:s.data.token,remember:!0});const e=await this.getUserData();await this.$store.dispatch("auth/updateUser",{user:e}),this.$root.loginToChromeExtension(e.email),T.push({event:"Sign_up_Successful",user_id:e.id,email:e.email,signUpThrough:e.signed_up_through||"zendrop",miniAppEnabled:(l=window.ff)==null?void 0:l.miniAppEnabled}),this.$root.syncUserpilot(e);const t=window.ff||{};t.miniAppEnabled&&await G({featureFlags:U()});let c=window.config.connect_store_url;this.isGrowYourBusinessPage&&((i=s==null?void 0:s.data)!=null&&i.redirect_url)?c=s.data.redirect_url:t.miniAppEnabled||(c=window.config.clickfunnel_upsell_page),setTimeout(()=>{window.location.href=c},300),this.animated=!0},async getUserData(){let s;return await w.get(_.user).then(e=>{s=e.data}),s},runSlideEvent(){this.showRow=!1,this.slideAnimated=!0},redirectPackage(){const s=this;setTimeout(function(){this.bgFadeInAnimated=!0,s.activeColor="#e5e9ef",setTimeout(function(){window.location=window.config.userurl+"/product"},100)},75)},handlePhoneData(s,e){var t;this.form.phone=(e==null?void 0:e.number)||"",this.form.country_code=((t=e==null?void 0:e.country)==null?void 0:t.iso2)||"",this.form.errors.has("phone")&&this.form.errors.clear("phone")},handlePhoneCountryChange(s){if(s.iso2==="BR"){let e="pt-BR";this.$i18n.locale=e,k.set("zendrop-lang",e,{expires:365,domain:C.getCookieDomain()})}},getToVerificationCodeStep(){this.$router.push({name:"verification"})},validateBeforeOtp(){var a,l,i,n,o,r,m,u,f,h,p;(l=(a=this.form)==null?void 0:a.errors)!=null&&l.clear&&(this.form.errors.clear("email"),this.form.errors.clear("phone"));let s=!0;const e=(this.form.email||"").trim();e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?this.form.email=e.toLowerCase():((r=(o=this.form)==null?void 0:o.errors)!=null&&r.set&&this.form.errors.set("email",[this.$t?this.$t("ui.errors.register_validation.email"):"Invalid email address"]),s=!1):((n=(i=this.form)==null?void 0:i.errors)!=null&&n.set&&this.form.errors.set("email",[this.$t?this.$t("ui.errors.validation.mandatory"):"Field is required"]),s=!1);const c=!!((m=this.$features())!=null&&m.usePhoneFieldInRegistrationMandatory||this.isGrowYourBusinessPage),d=(this.form.phone||"").toString().trim();return c&&!d&&((f=(u=this.form)==null?void 0:u.errors)!=null&&f.set&&this.form.errors.set("phone",[this.$t?this.$t("ui.errors.validation.mandatory"):"Field is required"]),s=!1),d&&!this.isPhoneValid&&((p=(h=this.form)==null?void 0:h.errors)!=null&&p.set&&this.form.errors.set("phone",[this.$t?this.$t("ui.errors.validation.phone"):"Invalid phone number"]),s=!1),s},async sendVerificationRequest(){var e,t,c,d;if(this.checkboxErrors=[],this.submitError="",!this.form.accept_terms){this.checkboxErrors.push("accept_sms_required");return}try{await w.post(_.registerValidate,{email:this.form.email,first_name:this.form.first_name,last_name:this.form.last_name}),(t=(e=this.form)==null?void 0:e.errors)!=null&&t.clear&&(this.form.errors.clear("email"),this.form.errors.clear("first_name"),this.form.errors.clear("last_name"))}catch(a){const l=a&&a.response?a.response:null,i=l&&l.data?l.data:{},n=i&&i.errors?i.errors:null,o=i&&i.message||i&&i.error||a&&a.message||"Validation failed";let r=!1;n&&typeof n=="object"&&["email","first_name","last_name"].forEach(m=>{var u,f;Array.isArray(n[m])&&n[m].length&&((f=(u=this.form)==null?void 0:u.errors)!=null&&f.set&&this.form.errors.set(m,n[m]),r=!0)}),!r&&o&&(d=(c=this.form)==null?void 0:c.errors)!=null&&d.set&&this.form.errors.set("email",[o]);return}if(this.validateBeforeOtp())try{const a=await L.sendOtp(this.form.phone);C.formExternalAttrSetter(this.form),this.isGrowYourBusinessPage&&(this.form.onboarding_type="grow_your_business");const l=C.getUrlParams(),i={phone:this.form.phone||"",country_code:this.form.country_code||"",ts:Date.now(),email:this.form.email||""};["first_name","last_name","accept_terms","accept_tos","affiliate_type","affiliate_connector_id","referral_name","tiktok_credits","onboarding_type"].forEach(o=>{o==="onboarding_type"&&this.isGrowYourBusinessPage?i[o]="grow_your_business":this.form[o]&&(i[o]=this.form[o])});try{sessionStorage.removeItem("verification:registered"),sessionStorage.setItem("verification:context",JSON.stringify(i))}catch(o){console.warn("Failed to write verification context to sessionStorage",o)}this.$router.push({name:"verification",query:{...l}})}catch(a){console.error("Failed to send OTP",a),this.error="otp_send_failed"}}}};var ee=function(){var c,d,a,l,i,n,o;var e=this,t=e._self._c;return t("div",{staticClass:"background-white register-page-wrapper",class:{"luxury-life":e.isGrowYourBusinessPage}},[e.$features().useNewLoginDesign?[t("div",{staticClass:"register-page new-design",attrs:{id:"register-page"}},[t("div",{staticClass:"register-card"},[t("div",{staticClass:"logo-section"},[t("router-link",{attrs:{to:{name:"login"},"data-element":"register-logo-link"}},[e.isGrowYourBusinessPage?t("zendrop-logo-white"):t("zendrop-logo")],1)],1),t("div",{staticClass:"account-box"},[e.isGrowYourBusinessPage?t("div",{staticClass:"gyb-title-wrapper"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$t("ui.public.verify_your_number"))+" ")]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(e.$t("ui.public.verify_your_number_description"))+" ")])]):t("div",{staticClass:"title"},[e._v(" "+e._s(e.createAccountText)+" ")]),e.showSsoButtons&&!e.isGrowYourBusinessPage?t("div",{staticClass:"sso-section"},[t("auth-buttons",{attrs:{"affiliate-connector-id":e.form.affiliate_connector_id,"affiliate-type":e.form.affiliate_type,"tiktok-credits":e.form.tiktok_credits,type:"registration",size:e.isMobile?"lg":"md"}}),t("div",{staticClass:"divider"}
1)],1):e._e(),t("form",{ref:"registerForm",staticClass:"register-form",attrs:{autocomplete:"off"},on:{keydown:function(r){return e.form.onKeydown(r)},submit:function(r){return r.preventDefault(),e.register.apply(null,arguments)}}},[t("div",{staticClass:"name-input-wrapper"},[t("div",{staticClass:"form-group"},[t("app-input",{staticClass:"mbp-10",class:{"is-invalid":e.form.errors.has("first_name")},attrs:{error:e.form.errors.has("first_name"),placeholder:e.$t("ui.public.customer.first_name"),"data-element":"register-first-name",name:"first_name","new-font":"",size:e.isMobile?"medium":"small",type:"text"},model:{value:e.form.first_name,callback:function(r){e.$set(e.form,"first_name",typeof r=="string"?r.trim():r)},expression:"form.first_name"}}),t("has-error",{staticClass:"mb-2",attrs:{form:e.form,field:"first_name"}})],1),t("div",{staticClass:"form-group"},[t("app-input",{staticClass:"mbp-10",class:{"is-invalid":e.form.errors.has("last_name")},attrs:{error:e.form.errors.has("last_name"),placeholder:e.$t("ui.public.customer.last_name"),"data-element":"register-last-name",name:"last_name","new-font":"",size:e.isMobile?"medium":"small",type:"text"},model:{value:e.form.last_name,callback:function(r){e.$set(e.form,"last_name",typeof r=="string"?r.trim():r)},expression:"form.last_name"}}),t("has-error",{staticClass:"mb-2",attrs:{form:e.form,field:"last_name"}})],1)]),(c=e.$features())!=null&&c.usePhoneFieldInRegistration||e.isGrowYourBusinessPage?t("div",{staticClass:"form-group phone-wrapper"},[t("vue-tel-input",{attrs:{"default-country":"US","auto-default-country":!1,"has-error":e.form.errors.has("phone"),"data-element":"register-phone","dropdown-options":{disabled:!1,showDialCodeInList:!0,showDialCodeInSelection:!1,showFlags:!0,showSearchBox:!0,width:"300px",tabindex:0,large:e.isMobile},"input-options":{showDialCode:!1,type:"tel",placeholder:e.isGrowYourBusinessPage?e.$t("ui.common.phone_number_required_mandatory"):e.$t("ui.common.phone_number"),required:((d=e.$features())==null?void 0:d.usePhoneFieldInRegistrationMandatory)||e.isGrowYourBusinessPage,large:e.isMobile},"valid-characters-only":!0},on:{input:e.handlePhoneData,validate:e.checkPhoneObject,"country-changed":e.handlePhoneCountryChange},model:{value:e.formattedPhone,callback:function(r){e.formattedPhone=r},expression:"formattedPhone"}}),t("has-error",{attrs:{form:e.form,field:"phone"}})],1):e._e(),t("div",{staticClass:"form-group email-wrapper"},[t("app-input",{class:{"is-invalid":e.form.errors.has("email")},attrs:{error:e.form.errors.has("email"),placeholder:e.$t("ui.public.customer.email"),autocomplete:"username","data-element":"register-email",name:"email","new-font":"",required:"",size:e.isMobile?"medium":"small",type:"email"},model:{value:e.form.email,callback:function(r){e.$set(e.form,"email",typeof r=="string"?r.trim():r)},expression:"form.email"}}),t("has-error",{attrs:{form:e.form,field:"email"}})],1),e.isGrowYourBusinessPage?e._e():t("div",{staticClass:"form-group password-wrapper"},[t("app-password-field",{attrs:{error:e.form.errors.has("password"),form:e.form,"initial-value":e.form.password,"min-length":e.MIN_PASSWORD_LENGTH,size:e.isMobile?"medium":"small",autocomplete:"new-password","data-element":"register-password",name:"password"},on:{input:e.changePasswordValue}})],1),(a=e.$features())!=null&&a.usePhoneFieldInRegistration||e.isGrowYourBusinessPage?t("div",{staticClass:"form-group"},[t("label",{staticClass:"terms-wrapper"},[t("div",{staticClass:"checkbox-container",attrs:{"data-element":"register-accept-terms-checkbox"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.accept_terms,expression:"form.accept_terms"}],ref:"accept_terms",staticClass:"custom-checkbox-input",attrs:{required:!!e.form.phone,type:"checkbox"},domProps:{checked:Array.isArray(e.form.accept_terms)?e._i(e.form.accept_terms,null)>-1:e.form.accept_terms},on:{change:function(r){var m=e.form.accept_terms,u=r.target,f=!!u.checked;if(Array.isArray(m)){var h=null,p=e._i(m,h);u.checked?p<0&&e.$set(e.form,"accept_terms",m.concat([h])):p>-1&&e.$set(e.form,"accept_terms",m.slice(0,p).concat(m.slice(p+1)))}else e.$set(e.form,"accept_terms",f)}}}
1),t("span",{staticClass:"custom-checkbox-mark",class:{"is-invalid":e.checkboxErrors.includes("accept_sms_required"),checked:e.form.accept_terms}})]),t("div",{directives:[{name:"dompurify-html",rawName:"v-dompurify-html",value:e.$t("ui.public.register.sms_marketing_consent"),expression:"$t('ui.public.register.sms_marketing_consent')"}],staticClass:"accept-message"})]),e.checkboxErrors.includes("accept_sms_required")?t("error-message",{staticClass:"mb-2 accept-error"},[e._v(" "+e._s(e.$t("ui.errors.auth.accept_sms_required"))+" ")]):e._e()],1):e._e(),e.error?t("error-message",{staticClass:"mb-2 accept-error"},[e._v(" "+e._s(e.$t("ui.errors.auth."+e.error))+" ")]):e._e(),e.submitError?t("error-message",{staticClass:"mb-2 accept-error"},[e._v(" "+e._s(e.submitError)+" ")]):e._e(),t("div",{staticClass:"form-group"},[e.isGrowYourBusinessPage?t("app-button",{staticClass:"w-100 send-code-button",attrs:{loading:e.form.busy,"data-element":"register-send-code-btn",size:e.isMobile?"lg":"md"},on:{click:function(r){return r.preventDefault(),e.sendVerificationRequest.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("ui.orders.growYourBusiness.send_code"))+" ")]):t("app-button",{staticClass:"w-100",attrs:{disabled:((l=e.$features())==null?void 0:l.usePhoneFieldInRegistrationMandatory)&&!(e.form.phone&&String(e.form.phone).trim()),loading:e.form.busy,"data-element":"register-submit-btn",size:e.isMobile?"lg":"md",type:"submit",variant:"accent"},on:{click:e.register}},[e._v(" "+e._s(e.createAccountText)+" ")])],1),t("div",{staticClass:"reviews"},[t("span",{staticClass:"reviews-text"},[e._v(" "+e._s(e.$t("ui.public.register.reviews"))+" ")]),e.isGrowYourBusinessPage?t("reviews-icon-white"):t("reviews-icon")],1)],1)]),t("div",{staticClass:"signup-container"},[t("span",[e._v(e._s(e.$t("ui.public.register.already_have_account")))]),t("router-link",{staticClass:"signup-link",attrs:{to:{name:"login"},"data-element":"register-login-link"}},[e._v(" "+e._s(e.$t("ui.public.login_small"))+" ")]),t("app-icon",{attrs:{name:"ArrowRight",size:"related"}})],1)])])]:[t("auth-header"),t("div",{staticClass:"container-fluid user-form register-page",class:{"fadeIn animated":e.bgFadeInAnimated},style:{background:e.activeColor,transition:"background 2s ease"},attrs:{id:"register-page"},on:{animationend:function(r){e.bgFadeInAnimated=!1}}},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-6 left-side"},[t("div",{staticClass:"wrapper-page"},[e.showRow?t("div",{staticClass:"account-pages",class:{"fadeOut animated":e.animated},on:{animationend:function(r){return e.runSlideEvent()}}},[t("div",{staticClass:"account-box register-box"},[t("div",{staticClass:"account-content"},[t("medium-header",[e._v(e._s(e.createAccountText))]),e.error?t("error-message",[e._v(" "+e._s(e.$t("ui.errors.auth."+e.error))+" ")]):e._e(),e.submitError?t("error-message",[e._v(" "+e._s(e.submitError)+" ")]):e._e(),t("form",{attrs:{autocomplete:"off"},on:{keydown:function(r){return e.form.onKeydown(r)},submit:function(r){return r.preventDefault(),e.register.apply(null,arguments)}}},[t("div",{staticClass:"form-row mb-16"},[t("div",{staticClass:"col"},[t("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.form.first_name,expression:"form.first_name",modifiers:{trim:!0}}],staticClass:"form-control branded-input",class:{"is-invalid":e.form.errors.has("first_name")},attrs:{placeholder:e.$t("ui.public.customer.first_name"),"data-element":"register-first-name-input",name:"first_name",type:"text"},domProps:{value:e.form.first_name},on:{input:function(r){r.target.composing||e.$set(e.form,"first_name",r.target.value.trim())},blur:function(r){return e.$forceUpdate()}}}),t("has-error",{attrs:{form:e.form,field:"first_name"}})],1)]),t("div",{staticClass:"form-row mb-16"},[t("div",{staticClass:"col"},[t("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.form.last_name,expression:"form.last_name",modifiers:{trim:!0}}],staticClass:"form-control branded-input",class:{"is-invalid":e.form.errors.has("last_name")},attrs:{placeholder:e.$t("ui.public.customer.last_name"),"data-element":"register-last-name-input",n
1ame:"last_name",type:"text"},domProps:{value:e.form.last_name},on:{input:function(r){r.target.composing||e.$set(e.form,"last_name",r.target.value.trim())},blur:function(r){return e.$forceUpdate()}}}),t("has-error",{attrs:{form:e.form,field:"last_name"}})],1)]),t("div",{staticClass:"form-row mb-16"},[t("div",{staticClass:"col"},[t("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.form.email,expression:"form.email",modifiers:{trim:!0}}],staticClass:"form-control branded-input",class:{"is-invalid":e.form.errors.has("email")},attrs:{placeholder:e.$t("ui.public.customer.email"),"data-element":"register-email-input",name:"email",required:"",type:"email"},domProps:{value:e.form.email},on:{input:function(r){r.target.composing||e.$set(e.form,"email",r.target.value.trim())},blur:function(r){return e.$forceUpdate()}}}),t("has-error",{attrs:{form:e.form,field:"email"}})],1)]),t("div",{staticClass:"form-row mb-16"},[t("div",{staticClass:"col"},[t("password-field",{staticClass:"mbp-12",attrs:{form:e.form,"initial-value":e.form.password,"min-length":e.MIN_PASSWORD_LENGTH,classes:"branded-input","data-element":"register-password-input","placeholder-text":"ui.public.customer.password_placeholder"},on:{update:e.changePasswordValue}}),t("has-error",{attrs:{form:e.form,field:"password"}})],1)]),(i=e.$features())!=null&&i.usePhoneFieldInRegistration?t("div",{staticClass:"form-row mb-3"},[t("div",{staticClass:"col"},[t("vue-tel-input",{class:{"is-invalid":e.form.errors.has("phone")},attrs:{"default-country":"US","auto-default-country":!1,"data-element":"register-phone-input","dropdown-options":{disabled:!1,showDialCodeInList:!0,showDialCodeInSelection:!1,showFlags:!0,showSearchBox:!0,width:"300px",tabindex:0},"input-options":{showDialCode:!1,type:"tel",placeholder:e.$t("ui.common.phone_number"),required:(n=e.$features())==null?void 0:n.usePhoneFieldInRegistrationMandatory},"valid-characters-only":!0},on:{input:e.handlePhoneData,validate:e.checkPhoneObject,"country-changed":e.handlePhoneCountryChange},model:{value:e.formattedPhone,callback:function(r){e.formattedPhone=r},expression:"formattedPhone"}}),t("has-error",{attrs:{form:e.form,field:"phone"}})],1)]):e._e(),t("div",{staticClass:"form-row row text-center mt-4"},[t("input",{attrs:{name:"role",type:"hidden",value:"2"}}),t("div",{staticClass:"col-12"},[t("v-button",{staticClass:"btn grow-effect btn-success auth-btn waves-effect waves-light text-transform-none mb-8",attrs:{id:"register-user",disabled:((o=e.$features())==null?void 0:o.usePhoneFieldInRegistrationMandatory)&&!e.isPhoneValid,loading:e.form.busy,"data-element":"register-submit-btn"}},[e._v(" "+e._s(e.createAccountText)+" ")]),t("terms-alert")],1)])])],1),e.showSsoButtons?[t("divider",{attrs:{classes:"my-32"}}),e.showSsoButtons?t("auth-buttons",{attrs:{"affiliate-connector-id":e.form.affiliate_connector_id,"affiliate-type":e.form.affiliate_type,"tiktok-credits":e.form.tiktok_credits,type:"registration"}}):e._e()]:e._e()],2),t("div",{staticClass:"mtp-32 login-footer register-footer text-center"},[t("p",{staticClass:"text-muted"},[e._v(" "+e._s(e.$t("ui.public.register.already_have_account"))+" "),t("router-link",{staticClass:"text-dark ml-1",attrs:{to:{name:"login"},"data-element":"register-login-link"}},[t("span",{staticClass:"styled-link"},[e._v(e._s(e.$t("ui.public.login")))])])],1)]),t("div",{staticClass:"row review-div"},[t("trust-box-widget")],1)]):e._e()])]),t("div",{staticClass:"col-md-6 right-side",class:{"slideOutRight animated":e.slideAnimated},on:{animationend:e.redirectPackage}},[t("service-recommendation")],1)])])]],2)},te=[],re=v(j,ee,te,!1,null,null);const Fe=re.exports;export{Fe as default}; 2//# sourceMappingURL=register-egNdcgj1.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.