JezK
Edit File: dokan-admin-onboard.js
(()=>{var e={2495(e){var s;s=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),s=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function t(t,a){if("string"!=typeof t)throw new Error("slugify: string argument expected");var n=s[(a="string"==typeof a?{replacement:a}:a||{}).locale]||{},l=void 0===a.replacement?"-":a.replacement,i=void 0===a.trim||a.trim,r=t.normalize().split("").reduce(function(s,t){var i=n[t];return void 0===i&&(i=e[t]),void 0===i&&(i=t),i===l&&(i=" "),s+i.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(r=r.replace(/[^A-Za-z0-9\s]/g,"")),i&&(r=r.trim()),r=r.replace(/\s+/g,l),a.lower&&(r=r.toLowerCase()),r}return t.extend=function(s){Object.assign(e,s)},t},e.exports=s(),e.exports.default=s()}},s={};function t(a){var n=s[a];if(void 0!==n)return n.exports;var l=s[a]={exports:{}};return e[a].call(l.exports,l,l.exports,t),l.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var a in s)t.o(s,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:s[a]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{"use strict";const e=window.wp.element,s=window.wp.domReady;var a=t.n(s);const n=window.ReactJSXRuntime,l=()=>(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"138",height:"38",fill:"none",children:[(0,n.jsx)("path",{fill:"#000",d:"M135.701 14.141a7.74 7.74 0 0 0-2.492-1.627 7.77 7.77 0 0 0-3.034-.599c-.989 0-1.957.174-2.871.521a7.82 7.82 0 0 0-2.446 1.453l-.236.207-1.649-1.837h-.672v15.043c0 1.07.905 1.941 2.016 1.941s2.016-.872 2.016-1.941v-7.808a3.4 3.4 0 0 1 .299-1.417c.196-.446.469-.845.815-1.177s.756-.596 1.226-.788a4 4 0 0 1 1.502-.288c.517 0 1.011.096 1.472.288.454.189.862.455 1.204.785a3.71 3.71 0 0 1 .818 1.18 3.46 3.46 0 0 1 .299 1.414v7.811c0 1.07.905 1.941 2.016 1.941s2.016-.87 2.016-1.94v-7.808a7.02 7.02 0 0 0-.622-2.933 7.55 7.55 0 0 0-1.677-2.421zm-21.785-.919a10.14 10.14 0 0 0-1.506-.863 8.89 8.89 0 0 0-1.63-.572c-.551-.135-1.117-.204-1.68-.204-1.239 0-2.418.225-3.513.665a8.85 8.85 0 0 0-2.868 1.84c-.809.788-1.456 1.75-1.926 2.858-.473 1.097-.71 2.325-.71 3.646 0 1.42.24 2.702.71 3.811s1.117 2.055 1.926 2.822c.815.755 1.779 1.342 2.859 1.741a10.2 10.2 0 0 0 3.522.605 6.88 6.88 0 0 0 1.661-.204c.557-.138 1.108-.323 1.637-.557.525-.243 1.029-.527 1.502-.845a14.55 14.55 0 0 0 1.385-1.061l.258-.222 1.917 2.559h.656V12.29h-.669l-1.926 2.223-.239-.219a12.11 12.11 0 0 0-1.366-1.073zm-.268 9.276c-.252.599-.603 1.142-1.045 1.615a5.52 5.52 0 0 1-1.574 1.136 4.5 4.5 0 0 1-1.929.425c-.672 0-1.316-.111-1.92-.333a4.53 4.53 0 0 1-1.577-.989c-.439-.434-.791-.971-1.043-1.597-.252-.635-.379-1.36-.379-2.16s.127-1.522.379-2.145c.252-.635.601-1.177 1.04-1.612.451-.434.983-.767 1.577-.989.604-.222 1.248-.332 1.92-.332.684 0 1.334.15 1.932.443a5.11 5.11 0 0 1 1.574 1.133 5.17 5.17 0 0 1 1.048 1.618c.262.599.399 1.234.399 1.885a4.76 4.76 0 0 1-.402 1.902zm-20.412-3.212l3.481-4.212a1.65 1.65 0 0 0 .212-1.813c-.299-.599-.915-.971-1.605-.971a1.79 1.79 0 0 0-1.397.653l-6.867 8.383V10.567c0-1.079-.911-1.959-2.035-1.959s-2.035.878-2.035 1.959V27.72c0 .842.709 1.525 1.584 1.525.479 0 .93-.207 1.232-.566l1.319-1.573 3.522-4.497 3.27 5.645c.355.611 1.027.992 1.755.992s1.372-.359 1.736-.962.367-1.324.009-1.93l-4.181-7.068zm-16.263-5.229c-.809-.788-1.77-1.402-2.862-1.822-1.086-.431-2.268-.653-3.516-.653a9.14 9.14 0 0 0-3.51.683c-1.083.452-2.047 1.088-2.868 1.89-.809.791-1.459 1.747-1.929 2.843s-.709 2.307-.709 3.595c0 1.267.239 2.466.709 3.562.47 1.088 1.12 2.043 1.932 2.846a9.45 9.45 0 0 0 2.872 1.888c1.089.452 2.271.68 3.506.68 1.248 0 2.427-.231 3.51-.683 1.095-.464 2.06-1.1 2.868-1.891a8.98 8.98 0 0 0 1.929-2.843c.47-1.096.709-2.295.709-3.562 0-1.354-.24-2.598-.709-3.694-.476-1.106-1.123-2.061-1.932-2.84zm-1.826 8.605c-.252.623-.607 1.166-1.055 1.609s-.983.791-1.587 1.037c-.591.246-1.235.369-1.91.369a4.91 4.91 0 0 1-1.932-.386 5.24 5.24 0 0 1-1.568-1.088c-.436-.455-.784-.995-1.036-1.606s-.379-1.285-.379-1.998c0-.758.127-1.453.379-2.064.252-.623.6-1.165 1.036-1.606a4.53 4.53 0 0 1 1.574-1.04 5.2 5.2 0 0 1 3.839.003 4.49 4.49 0 0 1 1.587 1.037c.445.44.8.983 1.055 1.609.261.608.395 1.303.395 2.064a5.28 5.28 0 0 1-.398 2.061zM56.364 8.608c-1.12 0-2.035.878-2.035 1.959v3.571l-.566-.794a3.21 3.21 0 0 0-.84-.809 4.68 4.68 0 0 0-1.105-.539 6.09 6.09 0 0 0-1.223-.315 8.14 8.14 0 0 0-1.213-.096 9.14 9.14 0 0 0-3.51.683c-1.083.452-2.047 1.088-2.868 1.891-.809.8-1.459 1.762-1.929 2.858s-.709 2.298-.709 3.577c0 1.288.239 2.499.709 3.595.473 1.088 1.12 2.043 1.932 2.846a9.27 9.27 0 0 0 2.868 1.873 9.34 9.34 0 0 0 3.51.665 6.87 6.87 0 0 0 1.661-.204c.56-.138 1.111-.324 1.636-.557.526-.243 1.033-.527 1.503-.845a14.95 14.95 0 0 0 1.384-1.061l.258-.222 1.916 2.559h.656V10.567c-.003-1.082-.915-1.959-2.038-1.959zM53.935 22.5a5.46 5.46 0 0 1-1.045 1.615 5.5 5.5 0 0 1-1.574 1.136 4.5 4.5 0 0 1-1.929.425 4.79 4.79 0 0 1-1.938-.405 5.05 5.05 0 0 1-1.565-1.103c-.436-.464-.781-1.01-1.033-1.621a5.11 5.11 0 0 1-.38-1.951c0-.779.128-1.489.38-2.112a4.73 4.73 0 0 1 1.039-1.594 4.63 4.63 0 0 1 1.571-1.022c.604-.234 1.251-.35 1.926-.35a4.35 4.35 0 0 1 1.932.443 5.06 5.06 0 0 1 1.574 1.133 5.19 5.19 0 0 1 1.049 1.618 4.65 4.65 0 0 1 .398 1.885 4.91 4.91 0 0 1-.404 1.902z"}),(0,n.jsx)("path",{fill:"url(#A)",d:"M21.919 18.278c-.026 6.344-2.779 12.894-8.466 15.873C9.453 36.257 0 37.876 0 31.018V5.487C0 1.686 3.246.428 6.493.607c4.83.257 9.453 2.491 12.258 6.601 1.792 2.62 2.779 5.779 3.09 8.964.026.719.078 1.413.078 2.106z"}),(0,n.jsx)("path",{fill:"url(#B)",d:"M30.879 16.044c-.545-5.24-3.792-9.632-8.285-12.277-2.987-1.772-6.726-2.209-8.674 1.336C13.92 5.128.805 28.963.805 28.963c-1.143 2.08-.883 3.801.156 5.214 1.558 2.106 4.649 3.056 7.168 3.313 2.337.257 4.701 0 6.96-.514 6.83-1.541 12.881-6.139 14.933-12.817.805-2.62 1.143-5.368.857-8.116z"}),(0,n.jsx)("path",{fill:"#e23b7b",d:"M13.453 34.177c5.688-3.005 8.44-9.555 8.466-15.873 0-.694-.026-1.387-.104-2.08-.286-3.185-1.299-6.344-3.09-8.964-.987-1.464-2.207-2.671-3.584-3.673-.441.385-.857.899-1.195 1.541 0 .026-13.115 23.861-13.115 23.861-.857 1.541-.909 2.902-.467 4.084 0 .026.026.051.026.077.026.051.052.128.078.18s.026.077.052.129c0 .026.026.051.026.051 2.052 3.904 9.479 2.466 12.907.668z"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"A",x1:"10.904",y1:"11.067",x2:"10.904",y2:"22.159",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#7047eb"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#a244ff"})]}),(0,n.jsxs)("linearGradient",{id:"B",x1:"26.172",y1:"6.282",x2:"10.994",y2:"36.016",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#ff9b53"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#ff698f"})]})]})]})}),i=window.wp.i18n,r=window.dokan.dokanUI,o=({children:e,className:s=""})=>(0,n.jsx)("div",{className:"min-h-screen dokan-onboard-radial-gradient flex items-center justify-center p-4",children:(0,n.jsx)("div",{className:`w-full max-w-[46rem] md:h-[33.5rem] bg-white rounded-2xl border border-[#E9E9E9] shadow-[0px_4px_20px_0px_rgba(0,0,0,0.05)] overflow-hidden ${s}`,children:e})}),c=({onNext:e})=>(0,n.jsx)(o,{children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center h-full",children:[(0,n.jsx)("div",{className:"md:mb-8 mb-5",children:(0,n.jsx)(l,{})}),(0,n.jsxs)("div",{className:"welcome-content max-w-[450px]",children:[(0,n.jsx)("h1",{className:"sm:text-2xl md:text-3xl text-base font-bold mb-4 md:mb-6 md:leading-[1.3] px-8",children:(0,i.__)("Welcome to Your New Multi-Vendor Marketplace!","dokan-lite")}),(0,n.jsx)("p",{className:"mb-14 px-5 text-sm sm:text-base text-[#575757]",children:(0,i.__)("Ready to revolutionize online selling? We're excited to help you create a marketplace that stands out! Let's start with a few quick questions.","dokan-lite")})]}),(0,n.jsx)(r.Button,{onClick:e,className:"bg-[#7047EB] text-white rounded-md py-3 px-8 hover:bg-indigo-600 flex items-center",children:(0,i.__)("Start Journey","dokan-lite")})]})}),d=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("path",{d:"M8.07959 14.3418C11.5314 14.3418 14.3296 11.5436 14.3296 8.0918C14.3296 4.64002 11.5314 1.8418 8.07959 1.8418C4.62781 1.8418 1.82959 4.64002 1.82959 8.0918C1.82959 11.5436 4.62781 14.3418 8.07959 14.3418Z",stroke:"#828282",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M8.07959 10.5918V8.0918",stroke:"#828282",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M8.07959 5.5918H8.08584",stroke:"#828282",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]}),x=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,n.jsx)("path",{d:"M5.99976 12L9.99976 8L5.99976 4",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),h=({handleNext:e,disabled:s})=>(0,n.jsxs)(r.Button,{disabled:s,onClick:e,className:"bg-[#7047EB] text-white py-2 px-4 text-sm flex gap-1 items-center rounded-md hover:bg-indigo-600 transition-colors duration-200 ease-in-out",children:[(0,i.__)("Next","dokan-lite"),(0,n.jsx)(x,{})]}),u=window.wp.hooks;var m=t(2495),p=t.n(m);const g=window.wp.compose,f=({onNext:s,onUpdate:t,storeUrl:a,shareDiagnostics:o})=>{const[c,x]=(0,e.useState)(a||"store"),[m,f]=(0,e.useState)(a||"store"),[j,v]=(0,e.useState)(o),[w,k]=(0,e.useState)(""),_=e=>p()(e,{lower:!0,strict:!0,trim:!0}),b=wp.hooks.applyFilters("dokan_reserved_url_slugs",onboardingData?.reserved_slugs||[]),y=(0,g.debounce)(e=>{const s=_(e);f(s),t(s,j)},300);(0,e.useEffect)(()=>{t(m,j)},[j]);const N=onboardingData?.site_url;let E=N?.length>90?N.slice(0,90)+"...":N;return E=(0,u.applyFilters)("dokan_onboarding_site_url",E,90,N),(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center max-h-[280px]",children:(0,n.jsxs)("div",{className:"p-8 md:p-10 sm:w-[50rem] w-full",children:[(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)(l,{})}),(0,n.jsx)("h1",{className:"text-2xl md:text-3xl font-bold mb-8",children:(0,i.__)("Basic Information","dokan-lite")}),(0,n.jsxs)("div",{className:"space-y-8 w-full",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block text-md font-medium mb-4",htmlFor:"storename",children:(0,i.__)("Choose how vendor store URLs will appear","dokan-lite")}),(0,n.jsx)(r.SimpleInput,{required:!0,value:c,addOnLeft:(0,n.jsx)("span",{className:"truncate max-w-[20rem] inline-block",children:(0,i.sprintf)((0,i.__)("%s/","dokan-lite"),E)}),addOnRight:(0,n.jsx)("span",{className:"w-24",children:(0,i.__)("/vendor-name","dokan-lite")}),input:{id:"storename",name:"storename",type:"text",autoComplete:"off",placeholder:(0,i.__)("write-your-store-name","dokan-lite")},errors:w&&[w],onChange:e=>{const s=e.target.value;x(s),s?b.includes(s)?k((0,i.sprintf)((0,i.__)('The store URL "%s" is reserved by WordPress and cannot be used. Please choose a different value like "store".',"dokan-lite"),s)):k(""):k((0,i.__)("Please enter a valid input","dokan-lite")),y(s)},onBlur:e=>{const s=e.target.value,t=_(s);x(t)}}),(0,n.jsxs)("div",{className:"flex items-center gap-1 mt-6 text-sm text-gray-500",children:[(0,n.jsx)(d,{}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,i.sprintf)((0,i.__)('Vendor Store URL will be (<span class="text-indigo-600">%1$s/%2$s/%3$s</span>)',"dokan-lite"),N,m,(0,i.__)("vendor-name","dokan-lite"))}})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 space-y-8",children:[(0,n.jsx)("div",{className:"shrink-0 mt-1.5",children:(0,n.jsx)(r.SimpleCheckbox,{input:{id:"localShareDiagnostics",name:"localShareDiagnostics",type:"checkbox"},checked:j,onChange:()=>v(!j),className:"w-5 h-5 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500 focus:outline-none\n "+(j?"bg-indigo-600 border-indigo-600":"")})}),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("h3",{className:"text-sm text-[#575757] font-medium cursor-pointer",onClick:()=>v(!j),children:(0,i.__)("Help Us Tailor Your Marketplace","dokan-lite")}),(0,n.jsx)("p",{className:"text-sm text-gray-500",children:(0,i.__)("Allow Dokan Multivendor Marketplace to collect non-sensitive diagnostic data and usage information.","dokan-lite")})]})]})]}),(0,n.jsx)("div",{className:"flex justify-end mt-12 w-full",children:(0,n.jsx)(h,{disabled:!!w,handleNext:()=>{m&&0!==m.length?s():k((0,i.__)("Please enter a valid store URL","dokan-lite"))}})})]})})},j=({label:e,description:s,checked:t,onChange:a,width:l})=>(0,n.jsxs)("div",{className:`border rounded-lg p-3 ${l} h-[85px] justify-between flex-col cursor-pointer transition-colors flex gap-2 items-start ${t?"border-[#7047EB]":"border-gray-300"}`,onClick:a,children:[(0,n.jsx)("div",{className:"w-5 h-5 rounded-full flex items-center justify-center",children:t?(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:[(0,n.jsx)("circle",{cx:"9.64526",cy:"9.05762",r:"8.5",fill:"#7047EB",stroke:"#7047EB"}),(0,n.jsx)("path",{d:"M9.20594 13.0576C9.0505 13.0572 8.90075 12.9955 8.78575 12.8845L5.81933 9.9756C5.57983 9.70997 5.58856 9.28862 5.83883 9.03441C6.06655 8.80305 6.42063 8.78712 6.66598 8.99708L9.12441 11.4134L13.5144 5.32262C13.724 5.02847 14.1185 4.97036 14.3956 5.19282C14.6727 5.41528 14.7275 5.83392 14.5179 6.12807L9.73901 12.7847C9.63418 12.9391 9.47205 13.0384 9.29374 13.0576H9.20594Z",fill:"white"})]}):(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:(0,n.jsx)("circle",{cx:"9.64526",cy:"9.05762",r:"8.5",stroke:"#E9E9E9"})})}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"text-xs text-[#25252D]",children:e}),s&&(0,n.jsx)("div",{className:"text-xs text-[#25252D] mt-1",children:s})]})]}),v=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,n.jsx)("path",{d:"M10.6453 12.8857L6.64526 8.88574L10.6453 4.88574",stroke:"#828282",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),w=({onBack:e})=>(0,n.jsxs)(r.Button,{onClick:e,className:"flex text-[#393939] items-center text-base md:text-sm font-medium border-0 shadow-none p-0 focus:outline-none focus:ring-0 hover:bg-transparent",children:[(0,n.jsx)(v,{}),(0,i.__)("Back","dokan-lite")]}),k=[{label:(0,i.__)("Digital Products","dokan-lite"),value:"digital"},{label:(0,i.__)("Physical Products","dokan-lite"),value:"physical"},{label:(0,i.__)("Services","dokan-lite"),value:"services"},{label:(0,i.__)("Subscriptions","dokan-lite"),value:"subscriptions"}],_=[{label:(0,i.__)("Marketplace handles delivery","dokan-lite"),value:"marketplace"},{label:(0,i.__)("Vendors manage their deliveries","dokan-lite"),value:"vendor"},{label:(0,i.__)("No delivery needed (Digital Products)","dokan-lite"),value:"none"}],b=[{label:(0,i.__)("International market reach","dokan-lite"),value:"international"},{label:(0,i.__)("Maximizing sales conversion","dokan-lite"),value:"sales"},{label:(0,i.__)("Local store management","dokan-lite"),value:"local"}],y=({onNext:s,onBack:t,onUpdate:a,marketplaceGoal:r})=>{const[o,c]=(0,e.useState)(r?.marketplace_focus),[d,x]=(0,e.useState)(r?.handle_delivery),[u,m]=(0,e.useState)(r?.top_priority);(0,e.useEffect)(()=>{a(o,d,u)},[o,d,u]);const p=!o||!d||!u;return(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,n.jsxs)("div",{className:"p-8 md:p-10 sm:w-[54rem] w-full",children:[(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)(l,{})}),(0,n.jsx)("h1",{className:"text-2xl md:text-3xl font-bold mb-8",children:(0,i.__)("Marketplace Goal","dokan-lite")}),(0,n.jsxs)("div",{className:"space-y-8",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-lg font-medium mb-4",children:(0,i.__)("What's the primary focus of your marketplace?","dokan-lite")}),(0,n.jsx)("div",{className:"flex flex-wrap gap-4",children:k.map(e=>(0,n.jsx)(j,{width:"w-[137px]",label:e.label,checked:o===e.value,onChange:()=>c(e.value)},e.value))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-lg font-medium mb-4",children:(0,i.__)("How do you plan to handle deliveries?","dokan-lite")}),(0,n.jsx)("div",{className:"flex flex-wrap gap-4",children:_.map(e=>(0,n.jsx)(j,{width:"w-[157px]",label:e.label,checked:d===e.value,onChange:()=>x(e.value)},e.value))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-lg font-medium mb-4",children:(0,i.__)("What's your top priority?","dokan-lite")}),(0,n.jsx)("div",{className:"flex flex-wrap gap-4",children:b.map(e=>(0,n.jsx)(j,{width:"w-[137px]",label:e.label,checked:u===e.value,onChange:()=>m(e.value)},e.value))})]})]}),(0,n.jsxs)("div",{className:"flex justify-between mt-12",children:[(0,n.jsx)(w,{onBack:t}),(0,n.jsx)(h,{handleNext:()=>{a(o,d,u),s()},disabled:p})]})]})})},N=({addon:e,isSelected:s,toggleAddon:t})=>(0,n.jsxs)("div",{className:"border rounded-lg p-4 gap-2 flex items-start cursor-pointer transition-colors "+(s?"border-indigo-600 ":"border-gray-300"),onClick:()=>t(e.id),children:[(0,n.jsx)("div",{className:"shrink-0 w-10 h-10 bg-indigo-100 text-indigo-600 rounded flex items-center justify-center",children:(0,n.jsx)("img",{src:e.icon,alt:e.title,className:"w-6 h-6"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("h3",{className:"font-semibold text-xs ",children:e.title}),(0,n.jsx)("p",{className:" text-xs text-gray-500 leading-4",children:e.description})]}),(0,n.jsx)("div",{className:"min-w-[25px] h-[25px] rounded-full flex items-center justify-center",children:s?(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:[(0,n.jsx)("circle",{cx:"9.64526",cy:"9.05762",r:"8.5",fill:"#7047EB",stroke:"#7047EB"}),(0,n.jsx)("path",{d:"M9.20594 13.0576C9.0505 13.0572 8.90075 12.9955 8.78575 12.8845L5.81933 9.9756C5.57983 9.70997 5.58856 9.28862 5.83883 9.03441C6.06655 8.80305 6.42063 8.78712 6.66598 8.99708L9.12441 11.4134L13.5144 5.32262C13.724 5.02847 14.1185 4.97036 14.3956 5.19282C14.6727 5.41528 14.7275 5.83392 14.5179 6.12807L9.73901 12.7847C9.63418 12.9391 9.47205 13.0384 9.29374 13.0576H9.20594Z",fill:"white"})]}):(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:(0,n.jsx)("circle",{cx:"9.64526",cy:"9.05762",r:"8.5",stroke:"#E9E9E9"})})})]},e.id),E=({onNext:s,onBack:t,onSkip:a,availableAddons:o=[],selectedPlugins:c,onUpdate:d})=>{const[x,u]=(0,e.useState)(c),m=o.length>0?o.map(e=>({id:e?.slug,icon:e?.img_url,title:e?.title||(0,i.__)("Plugin","dokan-lite"),description:e?.description||(0,i.__)("Enhance your marketplace with this plugin","dokan-lite"),info:e})):[];(0,e.useEffect)(()=>{d(x)},[x]);const p=e=>{x?.includes(e)?u(x?.filter(s=>s!==e)):u([...x,e])};return(0,n.jsxs)("div",{className:"w-full h-full relative",children:[(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,n.jsxs)("div",{className:"p-8 md:p-10 max-w-3xl",children:[(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)(l,{})}),(0,n.jsx)("h1",{className:"text-2xl md:text-3xl font-bold mb-2",children:(0,i.__)("Enhance Your Marketplace with these Recommended Add-ons","dokan-lite")}),(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-8",children:(0,i.__)("We recommend some plugins for the marketplace. You can select from the following suggestions and based on your selection we will install and activate them for you so that your experience remains flawless","dokan-lite")}),(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 mb-10",children:m.map(e=>(0,n.jsx)(N,{addon:e,isSelected:x.includes(e.id),toggleAddon:p},e.id))}),(0,n.jsxs)("div",{className:"flex justify-between flex-wrap",children:[(0,n.jsx)(w,{onBack:t}),(0,n.jsx)("div",{className:"flex space-x-4 sm:w-auto w-full justify-end",children:(0,n.jsx)(h,{handleNext:()=>(d(x),void s())})})]})]})}),(0,n.jsx)("div",{className:"absolute top-6 right-6 z-10",children:(0,n.jsx)(r.Button,{onClick:()=>{a()},className:"text-gray-600 font-medium py-2 px-4 border-0 shadow-none text-[#bcbed5]",children:(0,i.__)("Skip this step","dokan-lite")})})]})},C=()=>(0,n.jsx)(o,{className:"!bg-transparent !shadow-none rounded-none border-none",children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-6 text-center",children:[(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"183",height:"183",fill:"none",children:[(0,n.jsx)("circle",{cx:"91.421",cy:"91.091",r:"91",fill:"#fff"}),(0,n.jsx)("path",{d:"M110.908 89.548c-.064 15.946-6.908 32.408-21.046 39.897-9.942 5.294-33.441 9.361-33.441-7.876V57.399c0-9.554 8.07-12.718 16.139-12.266 12.008.646 23.499 6.262 30.471 16.591 4.455 6.585 6.908 14.525 7.683 22.531.064 1.808.193 3.551.193 5.294z",fill:"url(#A)"}),(0,n.jsx)("path",{d:"M133.181 83.932c-1.356-13.17-9.426-24.209-20.594-30.859-7.425-4.454-16.721-5.552-21.563 3.357 0 .065-32.602 59.974-32.602 59.974-2.841 5.23-2.195 9.555.387 13.106 3.873 5.293 11.556 7.682 17.818 8.328 5.81.645 11.685 0 17.302-1.292 16.979-3.873 32.021-15.429 37.121-32.214 2.001-6.585 2.841-13.493 2.131-20.4z",fill:"url(#B)"}),(0,n.jsx)("path",{d:"M89.862 129.51c14.138-7.554 20.982-24.016 21.046-39.897 0-1.743-.064-3.486-.258-5.229-.71-8.005-3.228-15.946-7.682-22.531-2.454-3.68-5.488-6.714-8.91-9.232-1.097.968-2.13 2.26-2.97 3.874 0 .065-32.602 59.974-32.602 59.974-2.13 3.873-2.26 7.295-1.162 10.265 0 .064.065.129.065.193.065.129.129.323.194.452s.065.194.129.323c0 .065.065.129.065.129 5.1 9.813 23.563 6.198 32.085 1.679z",fill:"url(#C)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"A",x1:"83.652",y1:"50.068",x2:"83.652",y2:"81.358",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#5711cf"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#800bd1"})]}),(0,n.jsxs)("linearGradient",{id:"B",x1:"121.481",y1:"59.395",x2:"83.084",y2:"133.789",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#fe9879"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#fe7598"})]}),(0,n.jsxs)("linearGradient",{id:"C",x1:"105.911",y1:"57.58",x2:"76.154",y2:"128.614",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:".014",stopColor:"#d8476f"}),(0,n.jsx)("stop",{offset:".996",stopColor:"#e93083"})]})]})]})}),(0,n.jsxs)("div",{className:"flex items-center space-x-3 mb-6",children:[(0,n.jsxs)("svg",{className:"animate-spin h-5 w-5 text-indigo-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,n.jsx)("span",{className:"text-lg font-medium text-gray-700",children:(0,i.__)("Preparing your resources","dokan-lite")})]})]})}),S=()=>{const e=window?.onboardingData?.dokan_admin_dashboard_url;return(0,n.jsx)(o,{children:(0,n.jsxs)("div",{className:"flex flex-col items-center h-full justify-center py-16 px-6 text-center",children:[(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(l,{})}),(0,n.jsx)("div",{className:"success-heading mb-2",children:(0,n.jsxs)("h1",{className:"text-3xl font-bold mb-4 leading-[48px]",children:[(0,i.__)("Congratulations! 🎉","dokan-lite"),(0,n.jsx)("br",{}),(0,i.__)("You're all set to start selling.","dokan-lite")]})}),(0,n.jsx)(r.Button,{color:"primary",link:!0,href:e,className:"bg-[#7047EB] cursor-pointer hover:bg-indigo-600 !text-white rounded-md py-3 px-8 flex items-center",children:(0,i.__)("Explore Dashboard","dokan-lite")})]})})};let A=function(e){return e.WELCOME="welcome",e.BASIC_INFO="basic_info",e.MARKETPLACE_GOAL="marketplace_goal",e.ADDONS="addons",e.LOADING="loading",e.SUCCESS="success",e}({});function O(e){const s=[A.WELCOME,A.BASIC_INFO,A.MARKETPLACE_GOAL];return e&&s.push(A.ADDONS),s.push(A.SUCCESS),s}function L(e,s){const t=O(s),a=t.indexOf(e);return-1===a||a===t.length-1?e:t[a+1]}function U(){return A.SUCCESS}const B=window.wp.apiFetch;var M=t.n(B);const z="/dokan/v1/admin/onboarding",D=e=>e.map(e=>{const s=e?.basename?.split("/")||["",""];return{id:e?.slug,info:{name:e?.title,"repo-slug":s[0]||"",file:s[1]||""}}}),I=()=>{const[s,t]=(0,e.useState)(A.WELCOME),[a,l]=(0,e.useState)(null),[r,o]=(0,e.useState)(!1),[d,x]=(0,e.useState)(""),[h,u]=(0,e.useState)(!0),[m,p]=(0,e.useState)({custom_store_url:"store",share_essentials:!0,marketplace_goal:{marketplace_focus:"",handle_delivery:"",top_priority:""},plugins:[]});(0,e.useEffect)(()=>{g()},[]);const g=async()=>{try{o(!0);const e=await(async()=>await M()({path:z,method:"GET"}))();l(e);const s=e?.plugins&&e.plugins.length>0;u(s),e&&("1"===e.onboarding?t(U()):p(s=>({...s,plugins:D(e?.plugins||[])})))}catch(e){x((0,i.__)("Failed to load initial data. Please refresh the page.","dokan-lite"))}finally{o(!1)}},j=async(e=!1)=>{t(A.LOADING),o(!0);try{const s={onboarding:!0,marketplace_goal:m.marketplace_goal,custom_store_url:m.custom_store_url,share_essentials:m.share_essentials,plugins:e?[]:m.plugins};await(async e=>{const s={onboarding:!0,marketplace_goal:e.marketplace_goal,custom_store_url:e.custom_store_url,share_essentials:e.share_essentials,plugins:e.plugins};return await M()({path:z,method:"POST",data:s})})(s),t(U())}catch(e){x((0,i.__)("Failed to submit data. Please try again.","dokan-lite"))}finally{o(!1)}},v=(e,s)=>{p(t=>({...t,custom_store_url:e,share_essentials:s}))},w=(e,s,t)=>{p(a=>({...a,marketplace_goal:{marketplace_focus:e,handle_delivery:s,top_priority:t}}))},k=e=>{if(!a?.plugins?.length)return;const s=a.plugins.filter(s=>e.includes(s.slug));p(e=>({...e,plugins:D(s)}))},_=()=>{const e=s;e===A.MARKETPLACE_GOAL&&!h||e===A.ADDONS?j(!1):t(L(s,h))},b=()=>{t(function(e,s){const t=O(s),a=t.indexOf(e);return a<=0?e:t[a-1]}(s,h))},N=()=>{s===A.ADDONS?j(!0):t(L(s,h))};return(0,n.jsx)("div",{children:(()=>{if(r&&s===A.WELCOME)return(0,n.jsx)(C,{});if(d&&s!==A.SUCCESS)return(0,n.jsxs)("div",{className:"error-message p-8 text-center",children:[(0,n.jsx)("h2",{className:"text-xl text-red-600 mb-4",children:"Error"}),(0,n.jsx)("p",{children:d}),(0,n.jsx)("button",{className:"mt-4 bg-blue-500 text-white px-4 py-2 rounded",onClick:g,children:(0,i.__)("Try Again","dokan-lite")})]});switch(s){case A.WELCOME:return(0,n.jsx)(c,{onNext:_});case A.BASIC_INFO:return(0,n.jsx)(f,{onNext:_,storeUrl:m.custom_store_url,shareDiagnostics:m.share_essentials,onUpdate:v});case A.MARKETPLACE_GOAL:return(0,n.jsx)(y,{onNext:_,onBack:b,onUpdate:w,marketplaceGoal:m.marketplace_goal});case A.ADDONS:return(0,n.jsx)(E,{onNext:_,onBack:b,onSkip:N,onUpdate:k,selectedPlugins:m.plugins?.map(e=>e.id)||[],availableAddons:a?.plugins||[]});case A.LOADING:return(0,n.jsx)(C,{});case A.SUCCESS:return(0,n.jsx)(S,{});default:return(0,n.jsx)(c,{onNext:_})}})()})};a()(function(){const s=document.querySelector(".dokan-admin-setup-wizard");if(s){const t=document.createElement("div");t.setAttribute("id","admin-onboard-root"),t.setAttribute("class","dokan-layout"),s.appendChild(t);const a=document.querySelector("#admin-onboard-root");(0,e.createRoot)(a).render((0,n.jsx)(I,{}))}else console.error("Setup wizard root element not found")})})()})();