%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/dist/assets/
Upload File :
Create Path :
Current File : //home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/dist/assets/index-CSoSkpea.js

(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const S of document.querySelectorAll('link[rel="modulepreload"]'))o(S);new MutationObserver(S=>{for(const M of S)if(M.type==="childList")for(const C of M.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&o(C)}).observe(document,{childList:!0,subtree:!0});function m(S){const M={};return S.integrity&&(M.integrity=S.integrity),S.referrerPolicy&&(M.referrerPolicy=S.referrerPolicy),S.crossOrigin==="use-credentials"?M.credentials="include":S.crossOrigin==="anonymous"?M.credentials="omit":M.credentials="same-origin",M}function o(S){if(S.ep)return;S.ep=!0;const M=m(S);fetch(S.href,M)}})();function Op(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var Hc={exports:{}},Vn={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zu;function Hp(){if(Zu)return Vn;Zu=1;var h=Symbol.for("react.transitional.element"),j=Symbol.for("react.fragment");function m(o,S,M){var C=null;if(M!==void 0&&(C=""+M),S.key!==void 0&&(C=""+S.key),"key"in S){M={};for(var u in S)u!=="key"&&(M[u]=S[u])}else M=S;return S=M.ref,{$$typeof:h,type:o,key:C,ref:S!==void 0?S:null,props:M}}return Vn.Fragment=j,Vn.jsx=m,Vn.jsxs=m,Vn}var em;function Kp(){return em||(em=1,Hc.exports=Hp()),Hc.exports}var e=Kp(),Kc={exports:{}},Ee={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tm;function Gp(){if(tm)return Ee;tm=1;var h=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),C=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),R=Symbol.iterator;function W(c){return c===null||typeof c!="object"?null:(c=R&&c[R]||c["@@iterator"],typeof c=="function"?c:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ae=Object.assign,xe={};function $(c,F,v){this.props=c,this.context=F,this.refs=xe,this.updater=v||G}$.prototype.isReactComponent={},$.prototype.setState=function(c,F){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,F,"setState")},$.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function T(){}T.prototype=$.prototype;function _(c,F,v){this.props=c,this.context=F,this.refs=xe,this.updater=v||G}var D=_.prototype=new T;D.constructor=_,ae(D,$.prototype),D.isPureReactComponent=!0;var Y=Array.isArray;function se(){}var te={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function le(c,F,v){var Z=v.ref;return{$$typeof:h,type:c,key:F,ref:Z!==void 0?Z:null,props:v}}function pe(c,F){return le(c.type,F,c.props)}function be(c){return typeof c=="object"&&c!==null&&c.$$typeof===h}function J(c){var F={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(v){return F[v]})}var fe=/\/+/g;function B(c,F){return typeof c=="object"&&c!==null&&c.key!=null?J(""+c.key):F.toString(36)}function oe(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(se,se):(c.status="pending",c.then(function(F){c.status==="pending"&&(c.status="fulfilled",c.value=F)},function(F){c.status==="pending"&&(c.status="rejected",c.reason=F)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function k(c,F,v,Z,re){var ue=typeof c;(ue==="undefined"||ue==="boolean")&&(c=null);var ne=!1;if(c===null)ne=!0;else switch(ue){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(c.$$typeof){case h:case j:ne=!0;break;case A:return ne=c._init,k(ne(c._payload),F,v,Z,re)}}if(ne)return re=re(c),ne=Z===""?"."+B(c,0):Z,Y(re)?(v="",ne!=null&&(v=ne.replace(fe,"$&/")+"/"),k(re,F,v,"",function(ce){return ce})):re!=null&&(be(re)&&(re=pe(re,v+(re.key==null||c&&c.key===re.key?"":(""+re.key).replace(fe,"$&/")+"/")+ne)),F.push(re)),1;ne=0;var Ce=Z===""?".":Z+":";if(Y(c))for(var we=0;we<c.length;we++)Z=c[we],ue=Ce+B(Z,we),ne+=k(Z,F,v,ue,re);else if(we=W(c),typeof we=="function")for(c=we.call(c),we=0;!(Z=c.next()).done;)Z=Z.value,ue=Ce+B(Z,we++),ne+=k(Z,F,v,ue,re);else if(ue==="object"){if(typeof c.then=="function")return k(oe(c),F,v,Z,re);throw F=String(c),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ne}function U(c,F,v){if(c==null)return c;var Z=[],re=0;return k(c,Z,"","",function(ue){return F.call(v,ue,re++)}),Z}function ie(c){if(c._status===-1){var F=c._result;F=F(),F.then(function(v){(c._status===0||c._status===-1)&&(c._status=1,c._result=v)},function(v){(c._status===0||c._status===-1)&&(c._status=2,c._result=v)}),c._status===-1&&(c._status=0,c._result=F)}if(c._status===1)return c._result.default;throw c._result}var me=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},Ne={map:U,forEach:function(c,F,v){U(c,function(){F.apply(this,arguments)},v)},count:function(c){var F=0;return U(c,function(){F++}),F},toArray:function(c){return U(c,function(F){return F})||[]},only:function(c){if(!be(c))throw Error("React.Children.only expected to receive a single React element child.");return c}};return Ee.Activity=y,Ee.Children=Ne,Ee.Component=$,Ee.Fragment=m,Ee.Profiler=S,Ee.PureComponent=_,Ee.StrictMode=o,Ee.Suspense=b,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(c){return te.H.useMemoCache(c)}},Ee.cache=function(c){return function(){return c.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(c,F,v){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var Z=ae({},c.props),re=c.key;if(F!=null)for(ue in F.key!==void 0&&(re=""+F.key),F)!P.call(F,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&F.ref===void 0||(Z[ue]=F[ue]);var ue=arguments.length-2;if(ue===1)Z.children=v;else if(1<ue){for(var ne=Array(ue),Ce=0;Ce<ue;Ce++)ne[Ce]=arguments[Ce+2];Z.children=ne}return le(c.type,re,Z)},Ee.createContext=function(c){return c={$$typeof:C,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:M,_context:c},c},Ee.createElement=function(c,F,v){var Z,re={},ue=null;if(F!=null)for(Z in F.key!==void 0&&(ue=""+F.key),F)P.call(F,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(re[Z]=F[Z]);var ne=arguments.length-2;if(ne===1)re.children=v;else if(1<ne){for(var Ce=Array(ne),we=0;we<ne;we++)Ce[we]=arguments[we+2];re.children=Ce}if(c&&c.defaultProps)for(Z in ne=c.defaultProps,ne)re[Z]===void 0&&(re[Z]=ne[Z]);return le(c,ue,re)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(c){return{$$typeof:u,render:c}},Ee.isValidElement=be,Ee.lazy=function(c){return{$$typeof:A,_payload:{_status:-1,_result:c},_init:ie}},Ee.memo=function(c,F){return{$$typeof:f,type:c,compare:F===void 0?null:F}},Ee.startTransition=function(c){var F=te.T,v={};te.T=v;try{var Z=c(),re=te.S;re!==null&&re(v,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(se,me)}catch(ue){me(ue)}finally{F!==null&&v.types!==null&&(F.types=v.types),te.T=F}},Ee.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},Ee.use=function(c){return te.H.use(c)},Ee.useActionState=function(c,F,v){return te.H.useActionState(c,F,v)},Ee.useCallback=function(c,F){return te.H.useCallback(c,F)},Ee.useContext=function(c){return te.H.useContext(c)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(c,F){return te.H.useDeferredValue(c,F)},Ee.useEffect=function(c,F){return te.H.useEffect(c,F)},Ee.useEffectEvent=function(c){return te.H.useEffectEvent(c)},Ee.useId=function(){return te.H.useId()},Ee.useImperativeHandle=function(c,F,v){return te.H.useImperativeHandle(c,F,v)},Ee.useInsertionEffect=function(c,F){return te.H.useInsertionEffect(c,F)},Ee.useLayoutEffect=function(c,F){return te.H.useLayoutEffect(c,F)},Ee.useMemo=function(c,F){return te.H.useMemo(c,F)},Ee.useOptimistic=function(c,F){return te.H.useOptimistic(c,F)},Ee.useReducer=function(c,F,v){return te.H.useReducer(c,F,v)},Ee.useRef=function(c){return te.H.useRef(c)},Ee.useState=function(c){return te.H.useState(c)},Ee.useSyncExternalStore=function(c,F,v){return te.H.useSyncExternalStore(c,F,v)},Ee.useTransition=function(){return te.H.useTransition()},Ee.version="19.2.8",Ee}var am;function sd(){return am||(am=1,Kc.exports=Gp()),Kc.exports}var d=sd();const ld=Op(d);var Gc={exports:{}},$n={},qc={exports:{}},Vc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sm;function qp(){return sm||(sm=1,(function(h){function j(k,U){var ie=k.length;k.push(U);e:for(;0<ie;){var me=ie-1>>>1,Ne=k[me];if(0<S(Ne,U))k[me]=U,k[ie]=Ne,ie=me;else break e}}function m(k){return k.length===0?null:k[0]}function o(k){if(k.length===0)return null;var U=k[0],ie=k.pop();if(ie!==U){k[0]=ie;e:for(var me=0,Ne=k.length,c=Ne>>>1;me<c;){var F=2*(me+1)-1,v=k[F],Z=F+1,re=k[Z];if(0>S(v,ie))Z<Ne&&0>S(re,v)?(k[me]=re,k[Z]=ie,me=Z):(k[me]=v,k[F]=ie,me=F);else if(Z<Ne&&0>S(re,ie))k[me]=re,k[Z]=ie,me=Z;else break e}}return U}function S(k,U){var ie=k.sortIndex-U.sortIndex;return ie!==0?ie:k.id-U.id}if(h.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var M=performance;h.unstable_now=function(){return M.now()}}else{var C=Date,u=C.now();h.unstable_now=function(){return C.now()-u}}var b=[],f=[],A=1,y=null,R=3,W=!1,G=!1,ae=!1,xe=!1,$=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function D(k){for(var U=m(f);U!==null;){if(U.callback===null)o(f);else if(U.startTime<=k)o(f),U.sortIndex=U.expirationTime,j(b,U);else break;U=m(f)}}function Y(k){if(ae=!1,D(k),!G)if(m(b)!==null)G=!0,se||(se=!0,J());else{var U=m(f);U!==null&&oe(Y,U.startTime-k)}}var se=!1,te=-1,P=5,le=-1;function pe(){return xe?!0:!(h.unstable_now()-le<P)}function be(){if(xe=!1,se){var k=h.unstable_now();le=k;var U=!0;try{e:{G=!1,ae&&(ae=!1,T(te),te=-1),W=!0;var ie=R;try{t:{for(D(k),y=m(b);y!==null&&!(y.expirationTime>k&&pe());){var me=y.callback;if(typeof me=="function"){y.callback=null,R=y.priorityLevel;var Ne=me(y.expirationTime<=k);if(k=h.unstable_now(),typeof Ne=="function"){y.callback=Ne,D(k),U=!0;break t}y===m(b)&&o(b),D(k)}else o(b);y=m(b)}if(y!==null)U=!0;else{var c=m(f);c!==null&&oe(Y,c.startTime-k),U=!1}}break e}finally{y=null,R=ie,W=!1}U=void 0}}finally{U?J():se=!1}}}var J;if(typeof _=="function")J=function(){_(be)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,B=fe.port2;fe.port1.onmessage=be,J=function(){B.postMessage(null)}}else J=function(){$(be,0)};function oe(k,U){te=$(function(){k(h.unstable_now())},U)}h.unstable_IdlePriority=5,h.unstable_ImmediatePriority=1,h.unstable_LowPriority=4,h.unstable_NormalPriority=3,h.unstable_Profiling=null,h.unstable_UserBlockingPriority=2,h.unstable_cancelCallback=function(k){k.callback=null},h.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5},h.unstable_getCurrentPriorityLevel=function(){return R},h.unstable_next=function(k){switch(R){case 1:case 2:case 3:var U=3;break;default:U=R}var ie=R;R=U;try{return k()}finally{R=ie}},h.unstable_requestPaint=function(){xe=!0},h.unstable_runWithPriority=function(k,U){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ie=R;R=k;try{return U()}finally{R=ie}},h.unstable_scheduleCallback=function(k,U,ie){var me=h.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?me+ie:me):ie=me,k){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ie+Ne,k={id:A++,callback:U,priorityLevel:k,startTime:ie,expirationTime:Ne,sortIndex:-1},ie>me?(k.sortIndex=ie,j(f,k),m(b)===null&&k===m(f)&&(ae?(T(te),te=-1):ae=!0,oe(Y,ie-me))):(k.sortIndex=Ne,j(b,k),G||W||(G=!0,se||(se=!0,J()))),k},h.unstable_shouldYield=pe,h.unstable_wrapCallback=function(k){var U=R;return function(){var ie=R;R=U;try{return k.apply(this,arguments)}finally{R=ie}}}})(Vc)),Vc}var lm;function Vp(){return lm||(lm=1,qc.exports=qp()),qc.exports}var $c={exports:{}},Ot={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nm;function $p(){if(nm)return Ot;nm=1;var h=sd();function j(b){var f="https://react.dev/errors/"+b;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)f+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+b+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(){}var o={d:{f:m,r:function(){throw Error(j(522))},D:m,C:m,L:m,m,X:m,S:m,M:m},p:0,findDOMNode:null},S=Symbol.for("react.portal");function M(b,f,A){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S,key:y==null?null:""+y,children:b,containerInfo:f,implementation:A}}var C=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(b,f){if(b==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ot.createPortal=function(b,f){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(j(299));return M(b,f,null,A)},Ot.flushSync=function(b){var f=C.T,A=o.p;try{if(C.T=null,o.p=2,b)return b()}finally{C.T=f,o.p=A,o.d.f()}},Ot.preconnect=function(b,f){typeof b=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,o.d.C(b,f))},Ot.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},Ot.preinit=function(b,f){if(typeof b=="string"&&f&&typeof f.as=="string"){var A=f.as,y=u(A,f.crossOrigin),R=typeof f.integrity=="string"?f.integrity:void 0,W=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;A==="style"?o.d.S(b,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:y,integrity:R,fetchPriority:W}):A==="script"&&o.d.X(b,{crossOrigin:y,integrity:R,fetchPriority:W,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Ot.preinitModule=function(b,f){if(typeof b=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var A=u(f.as,f.crossOrigin);o.d.M(b,{crossOrigin:A,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&o.d.M(b)},Ot.preload=function(b,f){if(typeof b=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var A=f.as,y=u(A,f.crossOrigin);o.d.L(b,A,{crossOrigin:y,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Ot.preloadModule=function(b,f){if(typeof b=="string")if(f){var A=u(f.as,f.crossOrigin);o.d.m(b,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:A,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else o.d.m(b)},Ot.requestFormReset=function(b){o.d.r(b)},Ot.unstable_batchedUpdates=function(b,f){return b(f)},Ot.useFormState=function(b,f,A){return C.H.useFormState(b,f,A)},Ot.useFormStatus=function(){return C.H.useHostTransitionStatus()},Ot.version="19.2.8",Ot}var im;function Jp(){if(im)return $c.exports;im=1;function h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h)}catch(j){console.error(j)}}return h(),$c.exports=$p(),$c.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rm;function Ip(){if(rm)return $n;rm=1;var h=Vp(),j=sd(),m=Jp();function o(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function S(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function M(t){var a=t,s=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(s=a.return),t=a.return;while(t)}return a.tag===3?s:null}function C(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function u(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function b(t){if(M(t)!==t)throw Error(o(188))}function f(t){var a=t.alternate;if(!a){if(a=M(t),a===null)throw Error(o(188));return a!==t?null:t}for(var s=t,l=a;;){var n=s.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){s=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===s)return b(n),t;if(i===l)return b(n),a;i=i.sibling}throw Error(o(188))}if(s.return!==l.return)s=n,l=i;else{for(var r=!1,x=n.child;x;){if(x===s){r=!0,s=n,l=i;break}if(x===l){r=!0,l=n,s=i;break}x=x.sibling}if(!r){for(x=i.child;x;){if(x===s){r=!0,s=i,l=n;break}if(x===l){r=!0,l=i,s=n;break}x=x.sibling}if(!r)throw Error(o(189))}}if(s.alternate!==l)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?t:a}function A(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=A(t),a!==null)return a;t=t.sibling}return null}var y=Object.assign,R=Symbol.for("react.element"),W=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),_=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function J(t){return t===null||typeof t!="object"?null:(t=be&&t[be]||t["@@iterator"],typeof t=="function"?t:null)}var fe=Symbol.for("react.client.reference");function B(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===fe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ae:return"Fragment";case $:return"Profiler";case xe:return"StrictMode";case Y:return"Suspense";case se:return"SuspenseList";case le:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case G:return"Portal";case _:return t.displayName||"Context";case T:return(t._context.displayName||"Context")+".Consumer";case D:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case te:return a=t.displayName||null,a!==null?a:B(t.type)||"Memo";case P:a=t._payload,t=t._init;try{return B(t(a))}catch{}}return null}var oe=Array.isArray,k=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},me=[],Ne=-1;function c(t){return{current:t}}function F(t){0>Ne||(t.current=me[Ne],me[Ne]=null,Ne--)}function v(t,a){Ne++,me[Ne]=t.current,t.current=a}var Z=c(null),re=c(null),ue=c(null),ne=c(null);function Ce(t,a){switch(v(ue,a),v(re,t),v(Z,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?ku(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=ku(a),t=yu(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}F(Z),v(Z,t)}function we(){F(Z),F(re),F(ue)}function ce(t){t.memoizedState!==null&&v(ne,t);var a=Z.current,s=yu(a,t.type);a!==s&&(v(re,t),v(Z,s))}function He(t){re.current===t&&(F(Z),F(re)),ne.current===t&&(F(ne),Hn._currentValue=ie)}var Ye,De;function ht(t){if(Ye===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);Ye=a&&a[1]||"",De=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ye+t+De}var _e=!1;function rt(t,a){if(!t||_e)return"";_e=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(K){var H=K}Reflect.construct(t,[],ee)}else{try{ee.call()}catch(K){H=K}t.call(ee.prototype)}}else{try{throw Error()}catch(K){H=K}(ee=t())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(K){if(K&&H&&typeof K.stack=="string")return[K.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),r=i[0],x=i[1];if(r&&x){var g=r.split(`
`),z=x.split(`
`);for(n=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(l===g.length||n===z.length)for(l=g.length-1,n=z.length-1;1<=l&&0<=n&&g[l]!==z[n];)n--;for(;1<=l&&0<=n;l--,n--)if(g[l]!==z[n]){if(l!==1||n!==1)do if(l--,n--,0>n||g[l]!==z[n]){var I=`
`+g[l].replace(" at new "," at ");return t.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",t.displayName)),I}while(1<=l&&0<=n);break}}}finally{_e=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?ht(s):""}function pt(t,a){switch(t.tag){case 26:case 27:case 5:return ht(t.type);case 16:return ht("Lazy");case 13:return t.child!==a&&a!==null?ht("Suspense Fallback"):ht("Suspense");case 19:return ht("SuspenseList");case 0:case 15:return rt(t.type,!1);case 11:return rt(t.type.render,!1);case 1:return rt(t.type,!0);case 31:return ht("Activity");default:return""}}function N(t){try{var a="",s=null;do a+=pt(t,s),s=t,t=t.return;while(t);return a}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var ge=Object.prototype.hasOwnProperty,Ae=h.unstable_scheduleCallback,ze=h.unstable_cancelCallback,O=h.unstable_shouldYield,Q=h.unstable_requestPaint,ve=h.unstable_now,We=h.unstable_getCurrentPriorityLevel,Mt=h.unstable_ImmediatePriority,Oa=h.unstable_UserBlockingPriority,Zt=h.unstable_NormalPriority,zs=h.unstable_LowPriority,os=h.unstable_IdlePriority,Us=h.log,de=h.unstable_setDisableYieldValue,Qe=null,Ue=null;function Ft(t){if(typeof Us=="function"&&de(t),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(Qe,t)}catch{}}var V=Math.clz32?Math.clz32:oa,gt=Math.log,Ba=Math.LN2;function oa(t){return t>>>=0,t===0?32:31-(gt(t)/Ba|0)|0}var cs=256,rl=262144,ds=4194304;function Da(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Os(t,a,s){var l=t.pendingLanes;if(l===0)return 0;var n=0,i=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~i,l!==0?n=Da(l):(r&=x,r!==0?n=Da(r):s||(s=x&~t,s!==0&&(n=Da(s))))):(x=l&~i,x!==0?n=Da(x):r!==0?n=Da(r):s||(s=l&~t,s!==0&&(n=Da(s)))),n===0?0:a!==0&&a!==n&&(a&i)===0&&(i=n&-n,s=a&-a,i>=s||i===32&&(s&4194048)!==0)?a:n}function Hs(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function Er(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ti(){var t=ds;return ds<<=1,(ds&62914560)===0&&(ds=4194304),t}function Xl(t){for(var a=[],s=0;31>s;s++)a.push(t);return a}function Ha(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Tr(t,a,s,l,n,i){var r=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var x=t.entanglements,g=t.expirationTimes,z=t.hiddenUpdates;for(s=r&~s;0<s;){var I=31-V(s),ee=1<<I;x[I]=0,g[I]=-1;var H=z[I];if(H!==null)for(z[I]=null,I=0;I<H.length;I++){var K=H[I];K!==null&&(K.lane&=-536870913)}s&=~ee}l!==0&&ai(t,l,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(r&~a))}function ai(t,a,s){t.pendingLanes|=a,t.suspendedLanes&=~a;var l=31-V(a);t.entangledLanes|=a,t.entanglements[l]=t.entanglements[l]|1073741824|s&261930}function si(t,a){var s=t.entangledLanes|=a;for(t=t.entanglements;s;){var l=31-V(s),n=1<<l;n&a|t[l]&a&&(t[l]|=a),s&=~n}}function li(t,a){var s=a&-a;return s=(s&42)!==0?1:Zl(s),(s&(t.suspendedLanes|a))!==0?0:s}function Zl(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function en(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function p(){var t=U.p;return t!==0?t:(t=window.event,t===void 0?32:$u(t.type))}function at(t,a){var s=U.p;try{return U.p=t,a()}finally{U.p=s}}var Xe=Math.random().toString(36).slice(2),jt="__reactFiber$"+Xe,Rt="__reactProps$"+Xe,xs="__reactContainer$"+Xe,Br="__reactEvents$"+Xe,Em="__reactListeners$"+Xe,Tm="__reactHandles$"+Xe,cd="__reactResources$"+Xe,tn="__reactMarker$"+Xe;function Dr(t){delete t[jt],delete t[Rt],delete t[Br],delete t[Em],delete t[Tm]}function ol(t){var a=t[jt];if(a)return a;for(var s=t.parentNode;s;){if(a=s[xs]||s[jt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(t=Tu(t);t!==null;){if(s=t[jt])return s;t=Tu(t)}return a}t=s,s=t.parentNode}return null}function cl(t){if(t=t[jt]||t[xs]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function an(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(o(33))}function dl(t){var a=t[cd];return a||(a=t[cd]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Et(t){t[tn]=!0}var dd=new Set,xd={};function Ks(t,a){xl(t,a),xl(t+"Capture",a)}function xl(t,a){for(xd[t]=a,t=0;t<a.length;t++)dd.add(a[t])}var Bm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ud={},md={};function Dm(t){return ge.call(md,t)?!0:ge.call(ud,t)?!1:Bm.test(t)?md[t]=!0:(ud[t]=!0,!1)}function ni(t,a,s){if(Dm(a))if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+s)}}function ii(t,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+s)}}function Ka(t,a,s,l){if(l===null)t.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(a,s,""+l)}}function ca(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hd(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Fm(t,a,s){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return n.call(this)},set:function(r){s=""+r,i.call(this,r)}}),Object.defineProperty(t,a,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(r){s=""+r},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function Fr(t){if(!t._valueTracker){var a=hd(t)?"checked":"value";t._valueTracker=Fm(t,a,""+t[a])}}function pd(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var s=a.getValue(),l="";return t&&(l=hd(t)?t.checked?"true":"false":t.value),t=l,t!==s?(a.setValue(t),!0):!1}function ri(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Rm=/[\n"\\]/g;function da(t){return t.replace(Rm,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Rr(t,a,s,l,n,i,r,x){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),a!=null?r==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+ca(a)):t.value!==""+ca(a)&&(t.value=""+ca(a)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),a!=null?Pr(t,r,ca(a)):s!=null?Pr(t,r,ca(s)):l!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+ca(x):t.removeAttribute("name")}function bd(t,a,s,l,n,i,r,x){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),a!=null||s!=null){if(!(i!=="submit"&&i!=="reset"||a!=null)){Fr(t);return}s=s!=null?""+ca(s):"",a=a!=null?""+ca(a):s,x||a===t.value||(t.value=a),t.defaultValue=a}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r),Fr(t)}function Pr(t,a,s){a==="number"&&ri(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function ul(t,a,s,l){if(t=t.options,a){a={};for(var n=0;n<s.length;n++)a["$"+s[n]]=!0;for(s=0;s<t.length;s++)n=a.hasOwnProperty("$"+t[s].value),t[s].selected!==n&&(t[s].selected=n),n&&l&&(t[s].defaultSelected=!0)}else{for(s=""+ca(s),a=null,n=0;n<t.length;n++){if(t[n].value===s){t[n].selected=!0,l&&(t[n].defaultSelected=!0);return}a!==null||t[n].disabled||(a=t[n])}a!==null&&(a.selected=!0)}}function fd(t,a,s){if(a!=null&&(a=""+ca(a),a!==t.value&&(t.value=a),s==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=s!=null?""+ca(s):""}function gd(t,a,s,l){if(a==null){if(l!=null){if(s!=null)throw Error(o(92));if(oe(l)){if(1<l.length)throw Error(o(93));l=l[0]}s=l}s==null&&(s=""),a=s}s=ca(a),t.defaultValue=s,l=t.textContent,l===s&&l!==""&&l!==null&&(t.value=l),Fr(t)}function ml(t,a){if(a){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=a;return}}t.textContent=a}var Pm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jd(t,a,s){var l=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":l?t.setProperty(a,s):typeof s!="number"||s===0||Pm.has(a)?a==="float"?t.cssFloat=s:t[a]=(""+s).trim():t[a]=s+"px"}function Nd(t,a,s){if(a!=null&&typeof a!="object")throw Error(o(62));if(t=t.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var n in a)l=a[n],a.hasOwnProperty(n)&&s[n]!==l&&jd(t,n,l)}else for(var i in a)a.hasOwnProperty(i)&&jd(t,i,a[i])}function Lr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_m=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function oi(t){return _m.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ga(){}var _r=null;function zr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hl=null,pl=null;function vd(t){var a=cl(t);if(a&&(t=a.stateNode)){var s=t[Rt]||null;e:switch(t=a.stateNode,a.type){case"input":if(Rr(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+da(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var l=s[a];if(l!==t&&l.form===t.form){var n=l[Rt]||null;if(!n)throw Error(o(90));Rr(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(a=0;a<s.length;a++)l=s[a],l.form===t.form&&pd(l)}break e;case"textarea":fd(t,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&ul(t,!!s.multiple,a,!1)}}}var Ur=!1;function kd(t,a,s){if(Ur)return t(a,s);Ur=!0;try{var l=t(a);return l}finally{if(Ur=!1,(hl!==null||pl!==null)&&(Yi(),hl&&(a=hl,t=pl,pl=hl=null,vd(a),t)))for(a=0;a<t.length;a++)vd(t[a])}}function sn(t,a){var s=t.stateNode;if(s===null)return null;var l=s[Rt]||null;if(l===null)return null;s=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(o(231,a,typeof s));return s}var qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Or=!1;if(qa)try{var ln={};Object.defineProperty(ln,"passive",{get:function(){Or=!0}}),window.addEventListener("test",ln,ln),window.removeEventListener("test",ln,ln)}catch{Or=!1}var us=null,Hr=null,ci=null;function yd(){if(ci)return ci;var t,a=Hr,s=a.length,l,n="value"in us?us.value:us.textContent,i=n.length;for(t=0;t<s&&a[t]===n[t];t++);var r=s-t;for(l=1;l<=r&&a[s-l]===n[i-l];l++);return ci=n.slice(t,1<l?1-l:void 0)}function di(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function xi(){return!0}function wd(){return!1}function $t(t){function a(s,l,n,i,r){this._reactName=s,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(s=t[x],this[x]=s?s(i):i[x]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xi:wd,this.isPropagationStopped=wd,this}return y(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),a}var Gs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=$t(Gs),nn=y({},Gs,{view:0,detail:0}),zm=$t(nn),Kr,Gr,rn,mi=y({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==rn&&(rn&&t.type==="mousemove"?(Kr=t.screenX-rn.screenX,Gr=t.screenY-rn.screenY):Gr=Kr=0,rn=t),Kr)},movementY:function(t){return"movementY"in t?t.movementY:Gr}}),Cd=$t(mi),Um=y({},mi,{dataTransfer:0}),Om=$t(Um),Hm=y({},nn,{relatedTarget:0}),qr=$t(Hm),Km=y({},Gs,{animationName:0,elapsedTime:0,pseudoElement:0}),Gm=$t(Km),qm=y({},Gs,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Vm=$t(qm),$m=y({},Gs,{data:0}),Sd=$t($m),Jm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Im={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ym={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wm(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=Ym[t])?!!a[t]:!1}function Vr(){return Wm}var Qm=y({},nn,{key:function(t){if(t.key){var a=Jm[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=di(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Im[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vr,charCode:function(t){return t.type==="keypress"?di(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?di(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Xm=$t(Qm),Zm=y({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Md=$t(Zm),eh=y({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vr}),th=$t(eh),ah=y({},Gs,{propertyName:0,elapsedTime:0,pseudoElement:0}),sh=$t(ah),lh=y({},mi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),nh=$t(lh),ih=y({},Gs,{newState:0,oldState:0}),rh=$t(ih),oh=[9,13,27,32],$r=qa&&"CompositionEvent"in window,on=null;qa&&"documentMode"in document&&(on=document.documentMode);var ch=qa&&"TextEvent"in window&&!on,Ad=qa&&(!$r||on&&8<on&&11>=on),Ed=" ",Td=!1;function Bd(t,a){switch(t){case"keyup":return oh.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bl=!1;function dh(t,a){switch(t){case"compositionend":return Dd(a);case"keypress":return a.which!==32?null:(Td=!0,Ed);case"textInput":return t=a.data,t===Ed&&Td?null:t;default:return null}}function xh(t,a){if(bl)return t==="compositionend"||!$r&&Bd(t,a)?(t=yd(),ci=Hr=us=null,bl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Ad&&a.locale!=="ko"?null:a.data;default:return null}}var uh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fd(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!uh[t.type]:a==="textarea"}function Rd(t,a,s,l){hl?pl?pl.push(l):pl=[l]:hl=l,a=ar(a,"onChange"),0<a.length&&(s=new ui("onChange","change",null,s,l),t.push({event:s,listeners:a}))}var cn=null,dn=null;function mh(t){bu(t,0)}function hi(t){var a=an(t);if(pd(a))return t}function Pd(t,a){if(t==="change")return a}var Ld=!1;if(qa){var Jr;if(qa){var Ir="oninput"in document;if(!Ir){var _d=document.createElement("div");_d.setAttribute("oninput","return;"),Ir=typeof _d.oninput=="function"}Jr=Ir}else Jr=!1;Ld=Jr&&(!document.documentMode||9<document.documentMode)}function zd(){cn&&(cn.detachEvent("onpropertychange",Ud),dn=cn=null)}function Ud(t){if(t.propertyName==="value"&&hi(dn)){var a=[];Rd(a,dn,t,zr(t)),kd(mh,a)}}function hh(t,a,s){t==="focusin"?(zd(),cn=a,dn=s,cn.attachEvent("onpropertychange",Ud)):t==="focusout"&&zd()}function ph(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return hi(dn)}function bh(t,a){if(t==="click")return hi(a)}function fh(t,a){if(t==="input"||t==="change")return hi(a)}function gh(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var ea=typeof Object.is=="function"?Object.is:gh;function xn(t,a){if(ea(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var s=Object.keys(t),l=Object.keys(a);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var n=s[l];if(!ge.call(a,n)||!ea(t[n],a[n]))return!1}return!0}function Od(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hd(t,a){var s=Od(t);t=0;for(var l;s;){if(s.nodeType===3){if(l=t+s.textContent.length,t<=a&&l>=a)return{node:s,offset:a-t};t=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Od(s)}}function Kd(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Kd(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Gd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=ri(t.document);a instanceof t.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)t=a.contentWindow;else break;a=ri(t.document)}return a}function Yr(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var jh=qa&&"documentMode"in document&&11>=document.documentMode,fl=null,Wr=null,un=null,Qr=!1;function qd(t,a,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Qr||fl==null||fl!==ri(l)||(l=fl,"selectionStart"in l&&Yr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),un&&xn(un,l)||(un=l,l=ar(Wr,"onSelect"),0<l.length&&(a=new ui("onSelect","select",null,a,s),t.push({event:a,listeners:l}),a.target=fl)))}function qs(t,a){var s={};return s[t.toLowerCase()]=a.toLowerCase(),s["Webkit"+t]="webkit"+a,s["Moz"+t]="moz"+a,s}var gl={animationend:qs("Animation","AnimationEnd"),animationiteration:qs("Animation","AnimationIteration"),animationstart:qs("Animation","AnimationStart"),transitionrun:qs("Transition","TransitionRun"),transitionstart:qs("Transition","TransitionStart"),transitioncancel:qs("Transition","TransitionCancel"),transitionend:qs("Transition","TransitionEnd")},Xr={},Vd={};qa&&(Vd=document.createElement("div").style,"AnimationEvent"in window||(delete gl.animationend.animation,delete gl.animationiteration.animation,delete gl.animationstart.animation),"TransitionEvent"in window||delete gl.transitionend.transition);function Vs(t){if(Xr[t])return Xr[t];if(!gl[t])return t;var a=gl[t],s;for(s in a)if(a.hasOwnProperty(s)&&s in Vd)return Xr[t]=a[s];return t}var $d=Vs("animationend"),Jd=Vs("animationiteration"),Id=Vs("animationstart"),Nh=Vs("transitionrun"),vh=Vs("transitionstart"),kh=Vs("transitioncancel"),Yd=Vs("transitionend"),Wd=new Map,Zr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Zr.push("scrollEnd");function ya(t,a){Wd.set(t,a),Ks(a,[t])}var pi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},xa=[],jl=0,eo=0;function bi(){for(var t=jl,a=eo=jl=0;a<t;){var s=xa[a];xa[a++]=null;var l=xa[a];xa[a++]=null;var n=xa[a];xa[a++]=null;var i=xa[a];if(xa[a++]=null,l!==null&&n!==null){var r=l.pending;r===null?n.next=n:(n.next=r.next,r.next=n),l.pending=n}i!==0&&Qd(s,n,i)}}function fi(t,a,s,l){xa[jl++]=t,xa[jl++]=a,xa[jl++]=s,xa[jl++]=l,eo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function to(t,a,s,l){return fi(t,a,s,l),gi(t)}function $s(t,a){return fi(t,null,null,a),gi(t)}function Qd(t,a,s){t.lanes|=s;var l=t.alternate;l!==null&&(l.lanes|=s);for(var n=!1,i=t.return;i!==null;)i.childLanes|=s,l=i.alternate,l!==null&&(l.childLanes|=s),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&a!==null&&(n=31-V(s),t=i.hiddenUpdates,l=t[n],l===null?t[n]=[a]:l.push(a),a.lane=s|536870912),i):null}function gi(t){if(50<Rn)throw Rn=0,xc=null,Error(o(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Nl={};function yh(t,a,s,l){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(t,a,s,l){return new yh(t,a,s,l)}function ao(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Va(t,a){var s=t.alternate;return s===null?(s=ta(t.tag,a,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=a,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,a=t.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function Xd(t,a){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,a=s.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function ji(t,a,s,l,n,i){var r=0;if(l=t,typeof t=="function")ao(t)&&(r=1);else if(typeof t=="string")r=Ap(t,s,Z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case le:return t=ta(31,s,a,n),t.elementType=le,t.lanes=i,t;case ae:return Js(s.children,n,i,a);case xe:r=8,n|=24;break;case $:return t=ta(12,s,a,n|2),t.elementType=$,t.lanes=i,t;case Y:return t=ta(13,s,a,n),t.elementType=Y,t.lanes=i,t;case se:return t=ta(19,s,a,n),t.elementType=se,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:r=10;break e;case T:r=9;break e;case D:r=11;break e;case te:r=14;break e;case P:r=16,l=null;break e}r=29,s=Error(o(130,t===null?"null":typeof t,"")),l=null}return a=ta(r,s,a,n),a.elementType=t,a.type=l,a.lanes=i,a}function Js(t,a,s,l){return t=ta(7,t,l,a),t.lanes=s,t}function so(t,a,s){return t=ta(6,t,null,a),t.lanes=s,t}function Zd(t){var a=ta(18,null,null,0);return a.stateNode=t,a}function lo(t,a,s){return a=ta(4,t.children!==null?t.children:[],t.key,a),a.lanes=s,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var ex=new WeakMap;function ua(t,a){if(typeof t=="object"&&t!==null){var s=ex.get(t);return s!==void 0?s:(a={value:t,source:a,stack:N(a)},ex.set(t,a),a)}return{value:t,source:a,stack:N(a)}}var vl=[],kl=0,Ni=null,mn=0,ma=[],ha=0,ms=null,Fa=1,Ra="";function $a(t,a){vl[kl++]=mn,vl[kl++]=Ni,Ni=t,mn=a}function tx(t,a,s){ma[ha++]=Fa,ma[ha++]=Ra,ma[ha++]=ms,ms=t;var l=Fa;t=Ra;var n=32-V(l)-1;l&=~(1<<n),s+=1;var i=32-V(a)+n;if(30<i){var r=n-n%5;i=(l&(1<<r)-1).toString(32),l>>=r,n-=r,Fa=1<<32-V(a)+n|s<<n|l,Ra=i+t}else Fa=1<<i|s<<n|l,Ra=t}function no(t){t.return!==null&&($a(t,1),tx(t,1,0))}function io(t){for(;t===Ni;)Ni=vl[--kl],vl[kl]=null,mn=vl[--kl],vl[kl]=null;for(;t===ms;)ms=ma[--ha],ma[ha]=null,Ra=ma[--ha],ma[ha]=null,Fa=ma[--ha],ma[ha]=null}function ax(t,a){ma[ha++]=Fa,ma[ha++]=Ra,ma[ha++]=ms,Fa=a.id,Ra=a.overflow,ms=t}var Pt=null,dt=null,Oe=!1,hs=null,pa=!1,ro=Error(o(519));function ps(t){var a=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hn(ua(a,t)),ro}function sx(t){var a=t.stateNode,s=t.type,l=t.memoizedProps;switch(a[jt]=t,a[Rt]=l,s){case"dialog":Re("cancel",a),Re("close",a);break;case"iframe":case"object":case"embed":Re("load",a);break;case"video":case"audio":for(s=0;s<Ln.length;s++)Re(Ln[s],a);break;case"source":Re("error",a);break;case"img":case"image":case"link":Re("error",a),Re("load",a);break;case"details":Re("toggle",a);break;case"input":Re("invalid",a),bd(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Re("invalid",a);break;case"textarea":Re("invalid",a),gd(a,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||l.suppressHydrationWarning===!0||Nu(a.textContent,s)?(l.popover!=null&&(Re("beforetoggle",a),Re("toggle",a)),l.onScroll!=null&&Re("scroll",a),l.onScrollEnd!=null&&Re("scrollend",a),l.onClick!=null&&(a.onclick=Ga),a=!0):a=!1,a||ps(t,!0)}function lx(t){for(Pt=t.return;Pt;)switch(Pt.tag){case 5:case 31:case 13:pa=!1;return;case 27:case 3:pa=!0;return;default:Pt=Pt.return}}function yl(t){if(t!==Pt)return!1;if(!Oe)return lx(t),Oe=!0,!1;var a=t.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||Sc(t.type,t.memoizedProps)),s=!s),s&&dt&&ps(t),lx(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));dt=Eu(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));dt=Eu(t)}else a===27?(a=dt,Es(t.type)?(t=Bc,Bc=null,dt=t):dt=a):dt=Pt?fa(t.stateNode.nextSibling):null;return!0}function Is(){dt=Pt=null,Oe=!1}function oo(){var t=hs;return t!==null&&(Wt===null?Wt=t:Wt.push.apply(Wt,t),hs=null),t}function hn(t){hs===null?hs=[t]:hs.push(t)}var co=c(null),Ys=null,Ja=null;function bs(t,a,s){v(co,a._currentValue),a._currentValue=s}function Ia(t){t._currentValue=co.current,F(co)}function xo(t,a,s){for(;t!==null;){var l=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),t===s)break;t=t.return}}function uo(t,a,s,l){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var r=n.child;i=i.firstContext;e:for(;i!==null;){var x=i;i=n;for(var g=0;g<a.length;g++)if(x.context===a[g]){i.lanes|=s,x=i.alternate,x!==null&&(x.lanes|=s),xo(i.return,s,t),l||(r=null);break e}i=x.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(o(341));r.lanes|=s,i=r.alternate,i!==null&&(i.lanes|=s),xo(r,s,t),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===t){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function wl(t,a,s,l){t=null;for(var n=a,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var r=n.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var x=n.type;ea(n.pendingProps.value,r.value)||(t!==null?t.push(x):t=[x])}}else if(n===ne.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Hn):t=[Hn])}n=n.return}t!==null&&uo(a,t,s,l),a.flags|=262144}function vi(t){for(t=t.firstContext;t!==null;){if(!ea(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ws(t){Ys=t,Ja=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Lt(t){return nx(Ys,t)}function ki(t,a){return Ys===null&&Ws(t),nx(t,a)}function nx(t,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},Ja===null){if(t===null)throw Error(o(308));Ja=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Ja=Ja.next=a;return s}var wh=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(s,l){t.push(l)}};this.abort=function(){a.aborted=!0,t.forEach(function(s){return s()})}},Ch=h.unstable_scheduleCallback,Sh=h.unstable_NormalPriority,kt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mo(){return{controller:new wh,data:new Map,refCount:0}}function pn(t){t.refCount--,t.refCount===0&&Ch(Sh,function(){t.controller.abort()})}var bn=null,ho=0,Cl=0,Sl=null;function Mh(t,a){if(bn===null){var s=bn=[];ho=0,Cl=fc(),Sl={status:"pending",value:void 0,then:function(l){s.push(l)}}}return ho++,a.then(ix,ix),a}function ix(){if(--ho===0&&bn!==null){Sl!==null&&(Sl.status="fulfilled");var t=bn;bn=null,Cl=0,Sl=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function Ah(t,a){var s=[],l={status:"pending",value:null,reason:null,then:function(n){s.push(n)}};return t.then(function(){l.status="fulfilled",l.value=a;for(var n=0;n<s.length;n++)(0,s[n])(a)},function(n){for(l.status="rejected",l.reason=n,n=0;n<s.length;n++)(0,s[n])(void 0)}),l}var rx=k.S;k.S=function(t,a){q0=ve(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Mh(t,a),rx!==null&&rx(t,a)};var Qs=c(null);function po(){var t=Qs.current;return t!==null?t:ot.pooledCache}function yi(t,a){a===null?v(Qs,Qs.current):v(Qs,a.pool)}function ox(){var t=po();return t===null?null:{parent:kt._currentValue,pool:t}}var Ml=Error(o(460)),bo=Error(o(474)),wi=Error(o(542)),Ci={then:function(){}};function cx(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dx(t,a,s){switch(s=t[s],s===void 0?t.push(a):s!==a&&(a.then(Ga,Ga),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,ux(t),t;default:if(typeof a.status=="string")a.then(Ga,Ga);else{if(t=ot,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=a,t.status="pending",t.then(function(l){if(a.status==="pending"){var n=a;n.status="fulfilled",n.value=l}},function(l){if(a.status==="pending"){var n=a;n.status="rejected",n.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,ux(t),t}throw Zs=a,Ml}}function Xs(t){try{var a=t._init;return a(t._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Zs=s,Ml):s}}var Zs=null;function xx(){if(Zs===null)throw Error(o(459));var t=Zs;return Zs=null,t}function ux(t){if(t===Ml||t===wi)throw Error(o(483))}var Al=null,fn=0;function Si(t){var a=fn;return fn+=1,Al===null&&(Al=[]),dx(Al,t,a)}function gn(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Mi(t,a){throw a.$$typeof===R?Error(o(525)):(t=Object.prototype.toString.call(a),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function mx(t){function a(E,w){if(t){var L=E.deletions;L===null?(E.deletions=[w],E.flags|=16):L.push(w)}}function s(E,w){if(!t)return null;for(;w!==null;)a(E,w),w=w.sibling;return null}function l(E){for(var w=new Map;E!==null;)E.key!==null?w.set(E.key,E):w.set(E.index,E),E=E.sibling;return w}function n(E,w){return E=Va(E,w),E.index=0,E.sibling=null,E}function i(E,w,L){return E.index=L,t?(L=E.alternate,L!==null?(L=L.index,L<w?(E.flags|=67108866,w):L):(E.flags|=67108866,w)):(E.flags|=1048576,w)}function r(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function x(E,w,L,X){return w===null||w.tag!==6?(w=so(L,E.mode,X),w.return=E,w):(w=n(w,L),w.return=E,w)}function g(E,w,L,X){var ke=L.type;return ke===ae?I(E,w,L.props.children,X,L.key):w!==null&&(w.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===P&&Xs(ke)===w.type)?(w=n(w,L.props),gn(w,L),w.return=E,w):(w=ji(L.type,L.key,L.props,null,E.mode,X),gn(w,L),w.return=E,w)}function z(E,w,L,X){return w===null||w.tag!==4||w.stateNode.containerInfo!==L.containerInfo||w.stateNode.implementation!==L.implementation?(w=lo(L,E.mode,X),w.return=E,w):(w=n(w,L.children||[]),w.return=E,w)}function I(E,w,L,X,ke){return w===null||w.tag!==7?(w=Js(L,E.mode,X,ke),w.return=E,w):(w=n(w,L),w.return=E,w)}function ee(E,w,L){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=so(""+w,E.mode,L),w.return=E,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case W:return L=ji(w.type,w.key,w.props,null,E.mode,L),gn(L,w),L.return=E,L;case G:return w=lo(w,E.mode,L),w.return=E,w;case P:return w=Xs(w),ee(E,w,L)}if(oe(w)||J(w))return w=Js(w,E.mode,L,null),w.return=E,w;if(typeof w.then=="function")return ee(E,Si(w),L);if(w.$$typeof===_)return ee(E,ki(E,w),L);Mi(E,w)}return null}function H(E,w,L,X){var ke=w!==null?w.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ke!==null?null:x(E,w,""+L,X);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case W:return L.key===ke?g(E,w,L,X):null;case G:return L.key===ke?z(E,w,L,X):null;case P:return L=Xs(L),H(E,w,L,X)}if(oe(L)||J(L))return ke!==null?null:I(E,w,L,X,null);if(typeof L.then=="function")return H(E,w,Si(L),X);if(L.$$typeof===_)return H(E,w,ki(E,L),X);Mi(E,L)}return null}function K(E,w,L,X,ke){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return E=E.get(L)||null,x(w,E,""+X,ke);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case W:return E=E.get(X.key===null?L:X.key)||null,g(w,E,X,ke);case G:return E=E.get(X.key===null?L:X.key)||null,z(w,E,X,ke);case P:return X=Xs(X),K(E,w,L,X,ke)}if(oe(X)||J(X))return E=E.get(L)||null,I(w,E,X,ke,null);if(typeof X.then=="function")return K(E,w,L,Si(X),ke);if(X.$$typeof===_)return K(E,w,L,ki(w,X),ke);Mi(w,X)}return null}function he(E,w,L,X){for(var ke=null,qe=null,je=w,Be=w=0,Le=null;je!==null&&Be<L.length;Be++){je.index>Be?(Le=je,je=null):Le=je.sibling;var Ve=H(E,je,L[Be],X);if(Ve===null){je===null&&(je=Le);break}t&&je&&Ve.alternate===null&&a(E,je),w=i(Ve,w,Be),qe===null?ke=Ve:qe.sibling=Ve,qe=Ve,je=Le}if(Be===L.length)return s(E,je),Oe&&$a(E,Be),ke;if(je===null){for(;Be<L.length;Be++)je=ee(E,L[Be],X),je!==null&&(w=i(je,w,Be),qe===null?ke=je:qe.sibling=je,qe=je);return Oe&&$a(E,Be),ke}for(je=l(je);Be<L.length;Be++)Le=K(je,E,Be,L[Be],X),Le!==null&&(t&&Le.alternate!==null&&je.delete(Le.key===null?Be:Le.key),w=i(Le,w,Be),qe===null?ke=Le:qe.sibling=Le,qe=Le);return t&&je.forEach(function(Rs){return a(E,Rs)}),Oe&&$a(E,Be),ke}function Se(E,w,L,X){if(L==null)throw Error(o(151));for(var ke=null,qe=null,je=w,Be=w=0,Le=null,Ve=L.next();je!==null&&!Ve.done;Be++,Ve=L.next()){je.index>Be?(Le=je,je=null):Le=je.sibling;var Rs=H(E,je,Ve.value,X);if(Rs===null){je===null&&(je=Le);break}t&&je&&Rs.alternate===null&&a(E,je),w=i(Rs,w,Be),qe===null?ke=Rs:qe.sibling=Rs,qe=Rs,je=Le}if(Ve.done)return s(E,je),Oe&&$a(E,Be),ke;if(je===null){for(;!Ve.done;Be++,Ve=L.next())Ve=ee(E,Ve.value,X),Ve!==null&&(w=i(Ve,w,Be),qe===null?ke=Ve:qe.sibling=Ve,qe=Ve);return Oe&&$a(E,Be),ke}for(je=l(je);!Ve.done;Be++,Ve=L.next())Ve=K(je,E,Be,Ve.value,X),Ve!==null&&(t&&Ve.alternate!==null&&je.delete(Ve.key===null?Be:Ve.key),w=i(Ve,w,Be),qe===null?ke=Ve:qe.sibling=Ve,qe=Ve);return t&&je.forEach(function(Up){return a(E,Up)}),Oe&&$a(E,Be),ke}function nt(E,w,L,X){if(typeof L=="object"&&L!==null&&L.type===ae&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case W:e:{for(var ke=L.key;w!==null;){if(w.key===ke){if(ke=L.type,ke===ae){if(w.tag===7){s(E,w.sibling),X=n(w,L.props.children),X.return=E,E=X;break e}}else if(w.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===P&&Xs(ke)===w.type){s(E,w.sibling),X=n(w,L.props),gn(X,L),X.return=E,E=X;break e}s(E,w);break}else a(E,w);w=w.sibling}L.type===ae?(X=Js(L.props.children,E.mode,X,L.key),X.return=E,E=X):(X=ji(L.type,L.key,L.props,null,E.mode,X),gn(X,L),X.return=E,E=X)}return r(E);case G:e:{for(ke=L.key;w!==null;){if(w.key===ke)if(w.tag===4&&w.stateNode.containerInfo===L.containerInfo&&w.stateNode.implementation===L.implementation){s(E,w.sibling),X=n(w,L.children||[]),X.return=E,E=X;break e}else{s(E,w);break}else a(E,w);w=w.sibling}X=lo(L,E.mode,X),X.return=E,E=X}return r(E);case P:return L=Xs(L),nt(E,w,L,X)}if(oe(L))return he(E,w,L,X);if(J(L)){if(ke=J(L),typeof ke!="function")throw Error(o(150));return L=ke.call(L),Se(E,w,L,X)}if(typeof L.then=="function")return nt(E,w,Si(L),X);if(L.$$typeof===_)return nt(E,w,ki(E,L),X);Mi(E,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,w!==null&&w.tag===6?(s(E,w.sibling),X=n(w,L),X.return=E,E=X):(s(E,w),X=so(L,E.mode,X),X.return=E,E=X),r(E)):s(E,w)}return function(E,w,L,X){try{fn=0;var ke=nt(E,w,L,X);return Al=null,ke}catch(je){if(je===Ml||je===wi)throw je;var qe=ta(29,je,null,E.mode);return qe.lanes=X,qe.return=E,qe}finally{}}}var el=mx(!0),hx=mx(!1),fs=!1;function fo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function gs(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function js(t,a,s){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Je&2)!==0){var n=l.pending;return n===null?a.next=a:(a.next=n.next,n.next=a),l.pending=a,a=gi(t),Qd(t,null,s),a}return fi(t,l,a,s),gi(t)}function jn(t,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var l=a.lanes;l&=t.pendingLanes,s|=l,a.lanes=s,si(t,s)}}function jo(t,a){var s=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var n=null,i=null;if(s=s.firstBaseUpdate,s!==null){do{var r={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};i===null?n=i=r:i=i.next=r,s=s.next}while(s!==null);i===null?n=i=a:i=i.next=a}else n=i=a;s={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=a:t.next=a,s.lastBaseUpdate=a}var No=!1;function Nn(){if(No){var t=Sl;if(t!==null)throw t}}function vn(t,a,s,l){No=!1;var n=t.updateQueue;fs=!1;var i=n.firstBaseUpdate,r=n.lastBaseUpdate,x=n.shared.pending;if(x!==null){n.shared.pending=null;var g=x,z=g.next;g.next=null,r===null?i=z:r.next=z,r=g;var I=t.alternate;I!==null&&(I=I.updateQueue,x=I.lastBaseUpdate,x!==r&&(x===null?I.firstBaseUpdate=z:x.next=z,I.lastBaseUpdate=g))}if(i!==null){var ee=n.baseState;r=0,I=z=g=null,x=i;do{var H=x.lane&-536870913,K=H!==x.lane;if(K?(Pe&H)===H:(l&H)===H){H!==0&&H===Cl&&(No=!0),I!==null&&(I=I.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var he=t,Se=x;H=a;var nt=s;switch(Se.tag){case 1:if(he=Se.payload,typeof he=="function"){ee=he.call(nt,ee,H);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Se.payload,H=typeof he=="function"?he.call(nt,ee,H):he,H==null)break e;ee=y({},ee,H);break e;case 2:fs=!0}}H=x.callback,H!==null&&(t.flags|=64,K&&(t.flags|=8192),K=n.callbacks,K===null?n.callbacks=[H]:K.push(H))}else K={lane:H,tag:x.tag,payload:x.payload,callback:x.callback,next:null},I===null?(z=I=K,g=ee):I=I.next=K,r|=H;if(x=x.next,x===null){if(x=n.shared.pending,x===null)break;K=x,x=K.next,K.next=null,n.lastBaseUpdate=K,n.shared.pending=null}}while(!0);I===null&&(g=ee),n.baseState=g,n.firstBaseUpdate=z,n.lastBaseUpdate=I,i===null&&(n.shared.lanes=0),ws|=r,t.lanes=r,t.memoizedState=ee}}function px(t,a){if(typeof t!="function")throw Error(o(191,t));t.call(a)}function bx(t,a){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)px(s[t],a)}var El=c(null),Ai=c(0);function fx(t,a){t=ss,v(Ai,t),v(El,a),ss=t|a.baseLanes}function vo(){v(Ai,ss),v(El,El.current)}function ko(){ss=Ai.current,F(El),F(Ai)}var aa=c(null),ba=null;function Ns(t){var a=t.alternate;v(Nt,Nt.current&1),v(aa,t),ba===null&&(a===null||El.current!==null||a.memoizedState!==null)&&(ba=t)}function yo(t){v(Nt,Nt.current),v(aa,t),ba===null&&(ba=t)}function gx(t){t.tag===22?(v(Nt,Nt.current),v(aa,t),ba===null&&(ba=t)):vs()}function vs(){v(Nt,Nt.current),v(aa,aa.current)}function sa(t){F(aa),ba===t&&(ba=null),F(Nt)}var Nt=c(0);function Ei(t){for(var a=t;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Ec(s)||Tc(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ya=0,Te=null,st=null,yt=null,Ti=!1,Tl=!1,tl=!1,Bi=0,kn=0,Bl=null,Eh=0;function bt(){throw Error(o(321))}function wo(t,a){if(a===null)return!1;for(var s=0;s<a.length&&s<t.length;s++)if(!ea(t[s],a[s]))return!1;return!0}function Co(t,a,s,l,n,i){return Ya=i,Te=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,k.H=t===null||t.memoizedState===null?t0:Oo,tl=!1,i=s(l,n),tl=!1,Tl&&(i=Nx(a,s,l,n)),jx(t),i}function jx(t){k.H=Cn;var a=st!==null&&st.next!==null;if(Ya=0,yt=st=Te=null,Ti=!1,kn=0,Bl=null,a)throw Error(o(300));t===null||wt||(t=t.dependencies,t!==null&&vi(t)&&(wt=!0))}function Nx(t,a,s,l){Te=t;var n=0;do{if(Tl&&(Bl=null),kn=0,Tl=!1,25<=n)throw Error(o(301));if(n+=1,yt=st=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}k.H=a0,i=a(s,l)}while(Tl);return i}function Th(){var t=k.H,a=t.useState()[0];return a=typeof a.then=="function"?yn(a):a,t=t.useState()[0],(st!==null?st.memoizedState:null)!==t&&(Te.flags|=1024),a}function So(){var t=Bi!==0;return Bi=0,t}function Mo(t,a,s){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~s}function Ao(t){if(Ti){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Ti=!1}Ya=0,yt=st=Te=null,Tl=!1,kn=Bi=0,Bl=null}function qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Te.memoizedState=yt=t:yt=yt.next=t,yt}function vt(){if(st===null){var t=Te.alternate;t=t!==null?t.memoizedState:null}else t=st.next;var a=yt===null?Te.memoizedState:yt.next;if(a!==null)yt=a,st=t;else{if(t===null)throw Te.alternate===null?Error(o(467)):Error(o(310));st=t,t={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},yt===null?Te.memoizedState=yt=t:yt=yt.next=t}return yt}function Di(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yn(t){var a=kn;return kn+=1,Bl===null&&(Bl=[]),t=dx(Bl,t,a),a=Te,(yt===null?a.memoizedState:yt.next)===null&&(a=a.alternate,k.H=a===null||a.memoizedState===null?t0:Oo),t}function Fi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return yn(t);if(t.$$typeof===_)return Lt(t)}throw Error(o(438,String(t)))}function Eo(t){var a=null,s=Te.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var l=Te.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(n){return n.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Di(),Te.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(t),l=0;l<t;l++)s[l]=pe;return a.index++,s}function Wa(t,a){return typeof a=="function"?a(t):a}function Ri(t){var a=vt();return To(a,st,t)}function To(t,a,s){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=s;var n=t.baseQueue,i=l.pending;if(i!==null){if(n!==null){var r=n.next;n.next=i.next,i.next=r}a.baseQueue=n=i,l.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{a=n.next;var x=r=null,g=null,z=a,I=!1;do{var ee=z.lane&-536870913;if(ee!==z.lane?(Pe&ee)===ee:(Ya&ee)===ee){var H=z.revertLane;if(H===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),ee===Cl&&(I=!0);else if((Ya&H)===H){z=z.next,H===Cl&&(I=!0);continue}else ee={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},g===null?(x=g=ee,r=i):g=g.next=ee,Te.lanes|=H,ws|=H;ee=z.action,tl&&s(i,ee),i=z.hasEagerState?z.eagerState:s(i,ee)}else H={lane:ee,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},g===null?(x=g=H,r=i):g=g.next=H,Te.lanes|=ee,ws|=ee;z=z.next}while(z!==null&&z!==a);if(g===null?r=i:g.next=x,!ea(i,t.memoizedState)&&(wt=!0,I&&(s=Sl,s!==null)))throw s;t.memoizedState=i,t.baseState=r,t.baseQueue=g,l.lastRenderedState=i}return n===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Bo(t){var a=vt(),s=a.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=t;var l=s.dispatch,n=s.pending,i=a.memoizedState;if(n!==null){s.pending=null;var r=n=n.next;do i=t(i,r.action),r=r.next;while(r!==n);ea(i,a.memoizedState)||(wt=!0),a.memoizedState=i,a.baseQueue===null&&(a.baseState=i),s.lastRenderedState=i}return[i,l]}function vx(t,a,s){var l=Te,n=vt(),i=Oe;if(i){if(s===void 0)throw Error(o(407));s=s()}else s=a();var r=!ea((st||n).memoizedState,s);if(r&&(n.memoizedState=s,wt=!0),n=n.queue,Ro(wx.bind(null,l,n,t),[t]),n.getSnapshot!==a||r||yt!==null&&yt.memoizedState.tag&1){if(l.flags|=2048,Dl(9,{destroy:void 0},yx.bind(null,l,n,s,a),null),ot===null)throw Error(o(349));i||(Ya&127)!==0||kx(l,a,s)}return s}function kx(t,a,s){t.flags|=16384,t={getSnapshot:a,value:s},a=Te.updateQueue,a===null?(a=Di(),Te.updateQueue=a,a.stores=[t]):(s=a.stores,s===null?a.stores=[t]:s.push(t))}function yx(t,a,s,l){a.value=s,a.getSnapshot=l,Cx(a)&&Sx(t)}function wx(t,a,s){return s(function(){Cx(a)&&Sx(t)})}function Cx(t){var a=t.getSnapshot;t=t.value;try{var s=a();return!ea(t,s)}catch{return!0}}function Sx(t){var a=$s(t,2);a!==null&&Qt(a,t,2)}function Do(t){var a=qt();if(typeof t=="function"){var s=t;if(t=s(),tl){Ft(!0);try{s()}finally{Ft(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:t},a}function Mx(t,a,s,l){return t.baseState=s,To(t,st,typeof l=="function"?l:Wa)}function Bh(t,a,s,l,n){if(_i(t))throw Error(o(485));if(t=a.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};k.T!==null?s(!0):i.isTransition=!1,l(i),s=a.pending,s===null?(i.next=a.pending=i,Ax(a,i)):(i.next=s.next,a.pending=s.next=i)}}function Ax(t,a){var s=a.action,l=a.payload,n=t.state;if(a.isTransition){var i=k.T,r={};k.T=r;try{var x=s(n,l),g=k.S;g!==null&&g(r,x),Ex(t,a,x)}catch(z){Fo(t,a,z)}finally{i!==null&&r.types!==null&&(i.types=r.types),k.T=i}}else try{i=s(n,l),Ex(t,a,i)}catch(z){Fo(t,a,z)}}function Ex(t,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Tx(t,a,l)},function(l){return Fo(t,a,l)}):Tx(t,a,s)}function Tx(t,a,s){a.status="fulfilled",a.value=s,Bx(a),t.state=s,a=t.pending,a!==null&&(s=a.next,s===a?t.pending=null:(s=s.next,a.next=s,Ax(t,s)))}function Fo(t,a,s){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=s,Bx(a),a=a.next;while(a!==l)}t.action=null}function Bx(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Dx(t,a){return a}function Fx(t,a){if(Oe){var s=ot.formState;if(s!==null){e:{var l=Te;if(Oe){if(dt){t:{for(var n=dt,i=pa;n.nodeType!==8;){if(!i){n=null;break t}if(n=fa(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){dt=fa(n.nextSibling),l=n.data==="F!";break e}}ps(l)}l=!1}l&&(a=s[0])}}return s=qt(),s.memoizedState=s.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dx,lastRenderedState:a},s.queue=l,s=Xx.bind(null,Te,l),l.dispatch=s,l=Do(!1),i=Uo.bind(null,Te,!1,l.queue),l=qt(),n={state:a,dispatch:null,action:t,pending:null},l.queue=n,s=Bh.bind(null,Te,n,i,s),n.dispatch=s,l.memoizedState=t,[a,s,!1]}function Rx(t){var a=vt();return Px(a,st,t)}function Px(t,a,s){if(a=To(t,a,Dx)[0],t=Ri(Wa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=yn(a)}catch(r){throw r===Ml?wi:r}else l=a;a=vt();var n=a.queue,i=n.dispatch;return s!==a.memoizedState&&(Te.flags|=2048,Dl(9,{destroy:void 0},Dh.bind(null,n,s),null)),[l,i,t]}function Dh(t,a){t.action=a}function Lx(t){var a=vt(),s=st;if(s!==null)return Px(a,s,t);vt(),a=a.memoizedState,s=vt();var l=s.queue.dispatch;return s.memoizedState=t,[a,l,!1]}function Dl(t,a,s,l){return t={tag:t,create:s,deps:l,inst:a,next:null},a=Te.updateQueue,a===null&&(a=Di(),Te.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=t.next=t:(l=s.next,s.next=t,t.next=l,a.lastEffect=t),t}function _x(){return vt().memoizedState}function Pi(t,a,s,l){var n=qt();Te.flags|=t,n.memoizedState=Dl(1|a,{destroy:void 0},s,l===void 0?null:l)}function Li(t,a,s,l){var n=vt();l=l===void 0?null:l;var i=n.memoizedState.inst;st!==null&&l!==null&&wo(l,st.memoizedState.deps)?n.memoizedState=Dl(a,i,s,l):(Te.flags|=t,n.memoizedState=Dl(1|a,i,s,l))}function zx(t,a){Pi(8390656,8,t,a)}function Ro(t,a){Li(2048,8,t,a)}function Fh(t){Te.flags|=4;var a=Te.updateQueue;if(a===null)a=Di(),Te.updateQueue=a,a.events=[t];else{var s=a.events;s===null?a.events=[t]:s.push(t)}}function Ux(t){var a=vt().memoizedState;return Fh({ref:a,nextImpl:t}),function(){if((Je&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}function Ox(t,a){return Li(4,2,t,a)}function Hx(t,a){return Li(4,4,t,a)}function Kx(t,a){if(typeof a=="function"){t=t();var s=a(t);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Gx(t,a,s){s=s!=null?s.concat([t]):null,Li(4,4,Kx.bind(null,a,t),s)}function Po(){}function qx(t,a){var s=vt();a=a===void 0?null:a;var l=s.memoizedState;return a!==null&&wo(a,l[1])?l[0]:(s.memoizedState=[t,a],t)}function Vx(t,a){var s=vt();a=a===void 0?null:a;var l=s.memoizedState;if(a!==null&&wo(a,l[1]))return l[0];if(l=t(),tl){Ft(!0);try{t()}finally{Ft(!1)}}return s.memoizedState=[l,a],l}function Lo(t,a,s){return s===void 0||(Ya&1073741824)!==0&&(Pe&261930)===0?t.memoizedState=a:(t.memoizedState=s,t=$0(),Te.lanes|=t,ws|=t,s)}function $x(t,a,s,l){return ea(s,a)?s:El.current!==null?(t=Lo(t,s,l),ea(t,a)||(wt=!0),t):(Ya&42)===0||(Ya&1073741824)!==0&&(Pe&261930)===0?(wt=!0,t.memoizedState=s):(t=$0(),Te.lanes|=t,ws|=t,a)}function Jx(t,a,s,l,n){var i=U.p;U.p=i!==0&&8>i?i:8;var r=k.T,x={};k.T=x,Uo(t,!1,a,s);try{var g=n(),z=k.S;if(z!==null&&z(x,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var I=Ah(g,l);wn(t,a,I,ia(t))}else wn(t,a,l,ia(t))}catch(ee){wn(t,a,{then:function(){},status:"rejected",reason:ee},ia())}finally{U.p=i,r!==null&&x.types!==null&&(r.types=x.types),k.T=r}}function Rh(){}function _o(t,a,s,l){if(t.tag!==5)throw Error(o(476));var n=Ix(t).queue;Jx(t,n,a,ie,s===null?Rh:function(){return Yx(t),s(l)})}function Ix(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:ie},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:s},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Yx(t){var a=Ix(t);a.next===null&&(a=t.alternate.memoizedState),wn(t,a.next.queue,{},ia())}function zo(){return Lt(Hn)}function Wx(){return vt().memoizedState}function Qx(){return vt().memoizedState}function Ph(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var s=ia();t=gs(s);var l=js(a,t,s);l!==null&&(Qt(l,a,s),jn(l,a,s)),a={cache:mo()},t.payload=a;return}a=a.return}}function Lh(t,a,s){var l=ia();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},_i(t)?Zx(a,s):(s=to(t,a,s,l),s!==null&&(Qt(s,t,l),e0(s,a,l)))}function Xx(t,a,s){var l=ia();wn(t,a,s,l)}function wn(t,a,s,l){var n={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(_i(t))Zx(a,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=a.lastRenderedReducer,i!==null))try{var r=a.lastRenderedState,x=i(r,s);if(n.hasEagerState=!0,n.eagerState=x,ea(x,r))return fi(t,a,n,0),ot===null&&bi(),!1}catch{}finally{}if(s=to(t,a,n,l),s!==null)return Qt(s,t,l),e0(s,a,l),!0}return!1}function Uo(t,a,s,l){if(l={lane:2,revertLane:fc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(t)){if(a)throw Error(o(479))}else a=to(t,s,l,2),a!==null&&Qt(a,t,2)}function _i(t){var a=t.alternate;return t===Te||a!==null&&a===Te}function Zx(t,a){Tl=Ti=!0;var s=t.pending;s===null?a.next=a:(a.next=s.next,s.next=a),t.pending=a}function e0(t,a,s){if((s&4194048)!==0){var l=a.lanes;l&=t.pendingLanes,s|=l,a.lanes=s,si(t,s)}}var Cn={readContext:Lt,use:Fi,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};Cn.useEffectEvent=bt;var t0={readContext:Lt,use:Fi,useCallback:function(t,a){return qt().memoizedState=[t,a===void 0?null:a],t},useContext:Lt,useEffect:zx,useImperativeHandle:function(t,a,s){s=s!=null?s.concat([t]):null,Pi(4194308,4,Kx.bind(null,a,t),s)},useLayoutEffect:function(t,a){return Pi(4194308,4,t,a)},useInsertionEffect:function(t,a){Pi(4,2,t,a)},useMemo:function(t,a){var s=qt();a=a===void 0?null:a;var l=t();if(tl){Ft(!0);try{t()}finally{Ft(!1)}}return s.memoizedState=[l,a],l},useReducer:function(t,a,s){var l=qt();if(s!==void 0){var n=s(a);if(tl){Ft(!0);try{s(a)}finally{Ft(!1)}}}else n=a;return l.memoizedState=l.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},l.queue=t,t=t.dispatch=Lh.bind(null,Te,t),[l.memoizedState,t]},useRef:function(t){var a=qt();return t={current:t},a.memoizedState=t},useState:function(t){t=Do(t);var a=t.queue,s=Xx.bind(null,Te,a);return a.dispatch=s,[t.memoizedState,s]},useDebugValue:Po,useDeferredValue:function(t,a){var s=qt();return Lo(s,t,a)},useTransition:function(){var t=Do(!1);return t=Jx.bind(null,Te,t.queue,!0,!1),qt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,s){var l=Te,n=qt();if(Oe){if(s===void 0)throw Error(o(407));s=s()}else{if(s=a(),ot===null)throw Error(o(349));(Pe&127)!==0||kx(l,a,s)}n.memoizedState=s;var i={value:s,getSnapshot:a};return n.queue=i,zx(wx.bind(null,l,i,t),[t]),l.flags|=2048,Dl(9,{destroy:void 0},yx.bind(null,l,i,s,a),null),s},useId:function(){var t=qt(),a=ot.identifierPrefix;if(Oe){var s=Ra,l=Fa;s=(l&~(1<<32-V(l)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Bi++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=Eh++,a="_"+a+"r_"+s.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:zo,useFormState:Fx,useActionState:Fx,useOptimistic:function(t){var a=qt();a.memoizedState=a.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=Uo.bind(null,Te,!0,s),s.dispatch=a,[t,a]},useMemoCache:Eo,useCacheRefresh:function(){return qt().memoizedState=Ph.bind(null,Te)},useEffectEvent:function(t){var a=qt(),s={impl:t};return a.memoizedState=s,function(){if((Je&2)!==0)throw Error(o(440));return s.impl.apply(void 0,arguments)}}},Oo={readContext:Lt,use:Fi,useCallback:qx,useContext:Lt,useEffect:Ro,useImperativeHandle:Gx,useInsertionEffect:Ox,useLayoutEffect:Hx,useMemo:Vx,useReducer:Ri,useRef:_x,useState:function(){return Ri(Wa)},useDebugValue:Po,useDeferredValue:function(t,a){var s=vt();return $x(s,st.memoizedState,t,a)},useTransition:function(){var t=Ri(Wa)[0],a=vt().memoizedState;return[typeof t=="boolean"?t:yn(t),a]},useSyncExternalStore:vx,useId:Wx,useHostTransitionStatus:zo,useFormState:Rx,useActionState:Rx,useOptimistic:function(t,a){var s=vt();return Mx(s,st,t,a)},useMemoCache:Eo,useCacheRefresh:Qx};Oo.useEffectEvent=Ux;var a0={readContext:Lt,use:Fi,useCallback:qx,useContext:Lt,useEffect:Ro,useImperativeHandle:Gx,useInsertionEffect:Ox,useLayoutEffect:Hx,useMemo:Vx,useReducer:Bo,useRef:_x,useState:function(){return Bo(Wa)},useDebugValue:Po,useDeferredValue:function(t,a){var s=vt();return st===null?Lo(s,t,a):$x(s,st.memoizedState,t,a)},useTransition:function(){var t=Bo(Wa)[0],a=vt().memoizedState;return[typeof t=="boolean"?t:yn(t),a]},useSyncExternalStore:vx,useId:Wx,useHostTransitionStatus:zo,useFormState:Lx,useActionState:Lx,useOptimistic:function(t,a){var s=vt();return st!==null?Mx(s,st,t,a):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:Eo,useCacheRefresh:Qx};a0.useEffectEvent=Ux;function Ho(t,a,s,l){a=t.memoizedState,s=s(l,a),s=s==null?a:y({},a,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var Ko={enqueueSetState:function(t,a,s){t=t._reactInternals;var l=ia(),n=gs(l);n.payload=a,s!=null&&(n.callback=s),a=js(t,n,l),a!==null&&(Qt(a,t,l),jn(a,t,l))},enqueueReplaceState:function(t,a,s){t=t._reactInternals;var l=ia(),n=gs(l);n.tag=1,n.payload=a,s!=null&&(n.callback=s),a=js(t,n,l),a!==null&&(Qt(a,t,l),jn(a,t,l))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var s=ia(),l=gs(s);l.tag=2,a!=null&&(l.callback=a),a=js(t,l,s),a!==null&&(Qt(a,t,s),jn(a,t,s))}};function s0(t,a,s,l,n,i,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,r):a.prototype&&a.prototype.isPureReactComponent?!xn(s,l)||!xn(n,i):!0}function l0(t,a,s,l){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,l),a.state!==t&&Ko.enqueueReplaceState(a,a.state,null)}function al(t,a){var s=a;if("ref"in a){s={};for(var l in a)l!=="ref"&&(s[l]=a[l])}if(t=t.defaultProps){s===a&&(s=y({},s));for(var n in t)s[n]===void 0&&(s[n]=t[n])}return s}function n0(t){pi(t)}function i0(t){console.error(t)}function r0(t){pi(t)}function zi(t,a){try{var s=t.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function o0(t,a,s){try{var l=t.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Go(t,a,s){return s=gs(s),s.tag=3,s.payload={element:null},s.callback=function(){zi(t,a)},s}function c0(t){return t=gs(t),t.tag=3,t}function d0(t,a,s,l){var n=s.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;t.payload=function(){return n(i)},t.callback=function(){o0(a,s,l)}}var r=s.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){o0(a,s,l),typeof n!="function"&&(Cs===null?Cs=new Set([this]):Cs.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function _h(t,a,s,l,n){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=s.alternate,a!==null&&wl(a,s,n,!0),s=aa.current,s!==null){switch(s.tag){case 31:case 13:return ba===null?Wi():s.alternate===null&&ft===0&&(ft=3),s.flags&=-257,s.flags|=65536,s.lanes=n,l===Ci?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([l]):a.add(l),hc(t,l,n)),!1;case 22:return s.flags|=65536,l===Ci?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([l]):s.add(l)),hc(t,l,n)),!1}throw Error(o(435,s.tag))}return hc(t,l,n),Wi(),!1}if(Oe)return a=aa.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=n,l!==ro&&(t=Error(o(422),{cause:l}),hn(ua(t,s)))):(l!==ro&&(a=Error(o(423),{cause:l}),hn(ua(a,s))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,l=ua(l,s),n=Go(t.stateNode,l,n),jo(t,n),ft!==4&&(ft=2)),!1;var i=Error(o(520),{cause:l});if(i=ua(i,s),Fn===null?Fn=[i]:Fn.push(i),ft!==4&&(ft=2),a===null)return!0;l=ua(l,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,t=n&-n,s.lanes|=t,t=Go(s.stateNode,l,t),jo(s,t),!1;case 1:if(a=s.type,i=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Cs===null||!Cs.has(i))))return s.flags|=65536,n&=-n,s.lanes|=n,n=c0(n),d0(n,t,s,l),jo(s,n),!1}s=s.return}while(s!==null);return!1}var qo=Error(o(461)),wt=!1;function _t(t,a,s,l){a.child=t===null?hx(a,null,s,l):el(a,t.child,s,l)}function x0(t,a,s,l,n){s=s.render;var i=a.ref;if("ref"in l){var r={};for(var x in l)x!=="ref"&&(r[x]=l[x])}else r=l;return Ws(a),l=Co(t,a,s,r,i,n),x=So(),t!==null&&!wt?(Mo(t,a,n),Qa(t,a,n)):(Oe&&x&&no(a),a.flags|=1,_t(t,a,l,n),a.child)}function u0(t,a,s,l,n){if(t===null){var i=s.type;return typeof i=="function"&&!ao(i)&&i.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=i,m0(t,a,i,l,n)):(t=ji(s.type,null,l,a,a.mode,n),t.ref=a.ref,t.return=a,a.child=t)}if(i=t.child,!Xo(t,n)){var r=i.memoizedProps;if(s=s.compare,s=s!==null?s:xn,s(r,l)&&t.ref===a.ref)return Qa(t,a,n)}return a.flags|=1,t=Va(i,l),t.ref=a.ref,t.return=a,a.child=t}function m0(t,a,s,l,n){if(t!==null){var i=t.memoizedProps;if(xn(i,l)&&t.ref===a.ref)if(wt=!1,a.pendingProps=l=i,Xo(t,n))(t.flags&131072)!==0&&(wt=!0);else return a.lanes=t.lanes,Qa(t,a,n)}return Vo(t,a,s,l,n)}function h0(t,a,s,l){var n=l.children,i=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(i=i!==null?i.baseLanes|s:s,t!==null){for(l=a.child=t.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,a.child=null;return p0(t,a,i,s,l)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&yi(a,i!==null?i.cachePool:null),i!==null?fx(a,i):vo(),gx(a);else return l=a.lanes=536870912,p0(t,a,i!==null?i.baseLanes|s:s,s,l)}else i!==null?(yi(a,i.cachePool),fx(a,i),vs(),a.memoizedState=null):(t!==null&&yi(a,null),vo(),vs());return _t(t,a,n,s),a.child}function Sn(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function p0(t,a,s,l,n){var i=po();return i=i===null?null:{parent:kt._currentValue,pool:i},a.memoizedState={baseLanes:s,cachePool:i},t!==null&&yi(a,null),vo(),gx(a),t!==null&&wl(t,a,l,!0),a.childLanes=n,null}function Ui(t,a){return a=Hi({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function b0(t,a,s){return el(a,t.child,null,s),t=Ui(a,a.pendingProps),t.flags|=2,sa(a),a.memoizedState=null,t}function zh(t,a,s){var l=a.pendingProps,n=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(Oe){if(l.mode==="hidden")return t=Ui(a,l),a.lanes=536870912,Sn(null,t);if(yo(a),(t=dt)?(t=Au(t,pa),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:ms!==null?{id:Fa,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},s=Zd(t),s.return=a,a.child=s,Pt=a,dt=null)):t=null,t===null)throw ps(a);return a.lanes=536870912,null}return Ui(a,l)}var i=t.memoizedState;if(i!==null){var r=i.dehydrated;if(yo(a),n)if(a.flags&256)a.flags&=-257,a=b0(t,a,s);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(o(558));else if(wt||wl(t,a,s,!1),n=(s&t.childLanes)!==0,wt||n){if(l=ot,l!==null&&(r=li(l,s),r!==0&&r!==i.retryLane))throw i.retryLane=r,$s(t,r),Qt(l,t,r),qo;Wi(),a=b0(t,a,s)}else t=i.treeContext,dt=fa(r.nextSibling),Pt=a,Oe=!0,hs=null,pa=!1,t!==null&&ax(a,t),a=Ui(a,l),a.flags|=4096;return a}return t=Va(t.child,{mode:l.mode,children:l.children}),t.ref=a.ref,a.child=t,t.return=a,t}function Oi(t,a){var s=a.ref;if(s===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(t===null||t.ref!==s)&&(a.flags|=4194816)}}function Vo(t,a,s,l,n){return Ws(a),s=Co(t,a,s,l,void 0,n),l=So(),t!==null&&!wt?(Mo(t,a,n),Qa(t,a,n)):(Oe&&l&&no(a),a.flags|=1,_t(t,a,s,n),a.child)}function f0(t,a,s,l,n,i){return Ws(a),a.updateQueue=null,s=Nx(a,l,s,n),jx(t),l=So(),t!==null&&!wt?(Mo(t,a,i),Qa(t,a,i)):(Oe&&l&&no(a),a.flags|=1,_t(t,a,s,i),a.child)}function g0(t,a,s,l,n){if(Ws(a),a.stateNode===null){var i=Nl,r=s.contextType;typeof r=="object"&&r!==null&&(i=Lt(r)),i=new s(l,i),a.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ko,a.stateNode=i,i._reactInternals=a,i=a.stateNode,i.props=l,i.state=a.memoizedState,i.refs={},fo(a),r=s.contextType,i.context=typeof r=="object"&&r!==null?Lt(r):Nl,i.state=a.memoizedState,r=s.getDerivedStateFromProps,typeof r=="function"&&(Ho(a,s,r,l),i.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&Ko.enqueueReplaceState(i,i.state,null),vn(a,l,i,n),Nn(),i.state=a.memoizedState),typeof i.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(t===null){i=a.stateNode;var x=a.memoizedProps,g=al(s,x);i.props=g;var z=i.context,I=s.contextType;r=Nl,typeof I=="object"&&I!==null&&(r=Lt(I));var ee=s.getDerivedStateFromProps;I=typeof ee=="function"||typeof i.getSnapshotBeforeUpdate=="function",x=a.pendingProps!==x,I||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(x||z!==r)&&l0(a,i,l,r),fs=!1;var H=a.memoizedState;i.state=H,vn(a,l,i,n),Nn(),z=a.memoizedState,x||H!==z||fs?(typeof ee=="function"&&(Ho(a,s,ee,l),z=a.memoizedState),(g=fs||s0(a,s,g,l,H,z,r))?(I||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(a.flags|=4194308)):(typeof i.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=z),i.props=l,i.state=z,i.context=r,l=g):(typeof i.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{i=a.stateNode,go(t,a),r=a.memoizedProps,I=al(s,r),i.props=I,ee=a.pendingProps,H=i.context,z=s.contextType,g=Nl,typeof z=="object"&&z!==null&&(g=Lt(z)),x=s.getDerivedStateFromProps,(z=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==ee||H!==g)&&l0(a,i,l,g),fs=!1,H=a.memoizedState,i.state=H,vn(a,l,i,n),Nn();var K=a.memoizedState;r!==ee||H!==K||fs||t!==null&&t.dependencies!==null&&vi(t.dependencies)?(typeof x=="function"&&(Ho(a,s,x,l),K=a.memoizedState),(I=fs||s0(a,s,I,l,H,K,g)||t!==null&&t.dependencies!==null&&vi(t.dependencies))?(z||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,K,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,K,g)),typeof i.componentDidUpdate=="function"&&(a.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&H===t.memoizedState||(a.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&H===t.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=K),i.props=l,i.state=K,i.context=g,l=I):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&H===t.memoizedState||(a.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&H===t.memoizedState||(a.flags|=1024),l=!1)}return i=l,Oi(t,a),l=(a.flags&128)!==0,i||l?(i=a.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:i.render(),a.flags|=1,t!==null&&l?(a.child=el(a,t.child,null,n),a.child=el(a,null,s,n)):_t(t,a,s,n),a.memoizedState=i.state,t=a.child):t=Qa(t,a,n),t}function j0(t,a,s,l){return Is(),a.flags|=256,_t(t,a,s,l),a.child}var $o={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jo(t){return{baseLanes:t,cachePool:ox()}}function Io(t,a,s){return t=t!==null?t.childLanes&~s:0,a&&(t|=na),t}function N0(t,a,s){var l=a.pendingProps,n=!1,i=(a.flags&128)!==0,r;if((r=i)||(r=t!==null&&t.memoizedState===null?!1:(Nt.current&2)!==0),r&&(n=!0,a.flags&=-129),r=(a.flags&32)!==0,a.flags&=-33,t===null){if(Oe){if(n?Ns(a):vs(),(t=dt)?(t=Au(t,pa),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:ms!==null?{id:Fa,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},s=Zd(t),s.return=a,a.child=s,Pt=a,dt=null)):t=null,t===null)throw ps(a);return Tc(t)?a.lanes=32:a.lanes=536870912,null}var x=l.children;return l=l.fallback,n?(vs(),n=a.mode,x=Hi({mode:"hidden",children:x},n),l=Js(l,n,s,null),x.return=a,l.return=a,x.sibling=l,a.child=x,l=a.child,l.memoizedState=Jo(s),l.childLanes=Io(t,r,s),a.memoizedState=$o,Sn(null,l)):(Ns(a),Yo(a,x))}var g=t.memoizedState;if(g!==null&&(x=g.dehydrated,x!==null)){if(i)a.flags&256?(Ns(a),a.flags&=-257,a=Wo(t,a,s)):a.memoizedState!==null?(vs(),a.child=t.child,a.flags|=128,a=null):(vs(),x=l.fallback,n=a.mode,l=Hi({mode:"visible",children:l.children},n),x=Js(x,n,s,null),x.flags|=2,l.return=a,x.return=a,l.sibling=x,a.child=l,el(a,t.child,null,s),l=a.child,l.memoizedState=Jo(s),l.childLanes=Io(t,r,s),a.memoizedState=$o,a=Sn(null,l));else if(Ns(a),Tc(x)){if(r=x.nextSibling&&x.nextSibling.dataset,r)var z=r.dgst;r=z,l=Error(o(419)),l.stack="",l.digest=r,hn({value:l,source:null,stack:null}),a=Wo(t,a,s)}else if(wt||wl(t,a,s,!1),r=(s&t.childLanes)!==0,wt||r){if(r=ot,r!==null&&(l=li(r,s),l!==0&&l!==g.retryLane))throw g.retryLane=l,$s(t,l),Qt(r,t,l),qo;Ec(x)||Wi(),a=Wo(t,a,s)}else Ec(x)?(a.flags|=192,a.child=t.child,a=null):(t=g.treeContext,dt=fa(x.nextSibling),Pt=a,Oe=!0,hs=null,pa=!1,t!==null&&ax(a,t),a=Yo(a,l.children),a.flags|=4096);return a}return n?(vs(),x=l.fallback,n=a.mode,g=t.child,z=g.sibling,l=Va(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,z!==null?x=Va(z,x):(x=Js(x,n,s,null),x.flags|=2),x.return=a,l.return=a,l.sibling=x,a.child=l,Sn(null,l),l=a.child,x=t.child.memoizedState,x===null?x=Jo(s):(n=x.cachePool,n!==null?(g=kt._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=ox(),x={baseLanes:x.baseLanes|s,cachePool:n}),l.memoizedState=x,l.childLanes=Io(t,r,s),a.memoizedState=$o,Sn(t.child,l)):(Ns(a),s=t.child,t=s.sibling,s=Va(s,{mode:"visible",children:l.children}),s.return=a,s.sibling=null,t!==null&&(r=a.deletions,r===null?(a.deletions=[t],a.flags|=16):r.push(t)),a.child=s,a.memoizedState=null,s)}function Yo(t,a){return a=Hi({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Hi(t,a){return t=ta(22,t,null,a),t.lanes=0,t}function Wo(t,a,s){return el(a,t.child,null,s),t=Yo(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function v0(t,a,s){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a),xo(t.return,a,s)}function Qo(t,a,s,l,n,i){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:n,treeForkCount:i}:(r.isBackwards=a,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=s,r.tailMode=n,r.treeForkCount=i)}function k0(t,a,s){var l=a.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var r=Nt.current,x=(r&2)!==0;if(x?(r=r&1|2,a.flags|=128):r&=1,v(Nt,r),_t(t,a,l,s),l=Oe?mn:0,!x&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&v0(t,s,a);else if(t.tag===19)v0(t,s,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(s=a.child,n=null;s!==null;)t=s.alternate,t!==null&&Ei(t)===null&&(n=s),s=s.sibling;s=n,s===null?(n=a.child,a.child=null):(n=s.sibling,s.sibling=null),Qo(a,!1,n,s,i,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,n=a.child,a.child=null;n!==null;){if(t=n.alternate,t!==null&&Ei(t)===null){a.child=n;break}t=n.sibling,n.sibling=s,s=n,n=t}Qo(a,!0,s,null,i,l);break;case"together":Qo(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Qa(t,a,s){if(t!==null&&(a.dependencies=t.dependencies),ws|=a.lanes,(s&a.childLanes)===0)if(t!==null){if(wl(t,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(o(153));if(a.child!==null){for(t=a.child,s=Va(t,t.pendingProps),a.child=s,s.return=a;t.sibling!==null;)t=t.sibling,s=s.sibling=Va(t,t.pendingProps),s.return=a;s.sibling=null}return a.child}function Xo(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&vi(t)))}function Uh(t,a,s){switch(a.tag){case 3:Ce(a,a.stateNode.containerInfo),bs(a,kt,t.memoizedState.cache),Is();break;case 27:case 5:ce(a);break;case 4:Ce(a,a.stateNode.containerInfo);break;case 10:bs(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,yo(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(Ns(a),a.flags|=128,null):(s&a.child.childLanes)!==0?N0(t,a,s):(Ns(a),t=Qa(t,a,s),t!==null?t.sibling:null);Ns(a);break;case 19:var n=(t.flags&128)!==0;if(l=(s&a.childLanes)!==0,l||(wl(t,a,s,!1),l=(s&a.childLanes)!==0),n){if(l)return k0(t,a,s);a.flags|=128}if(n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),v(Nt,Nt.current),l)break;return null;case 22:return a.lanes=0,h0(t,a,s,a.pendingProps);case 24:bs(a,kt,t.memoizedState.cache)}return Qa(t,a,s)}function y0(t,a,s){if(t!==null)if(t.memoizedProps!==a.pendingProps)wt=!0;else{if(!Xo(t,s)&&(a.flags&128)===0)return wt=!1,Uh(t,a,s);wt=(t.flags&131072)!==0}else wt=!1,Oe&&(a.flags&1048576)!==0&&tx(a,mn,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(t=Xs(a.elementType),a.type=t,typeof t=="function")ao(t)?(l=al(t,l),a.tag=1,a=g0(null,a,t,l,s)):(a.tag=0,a=Vo(null,a,t,l,s));else{if(t!=null){var n=t.$$typeof;if(n===D){a.tag=11,a=x0(null,a,t,l,s);break e}else if(n===te){a.tag=14,a=u0(null,a,t,l,s);break e}}throw a=B(t)||t,Error(o(306,a,""))}}return a;case 0:return Vo(t,a,a.type,a.pendingProps,s);case 1:return l=a.type,n=al(l,a.pendingProps),g0(t,a,l,n,s);case 3:e:{if(Ce(a,a.stateNode.containerInfo),t===null)throw Error(o(387));l=a.pendingProps;var i=a.memoizedState;n=i.element,go(t,a),vn(a,l,null,s);var r=a.memoizedState;if(l=r.cache,bs(a,kt,l),l!==i.cache&&uo(a,[kt],s,!0),Nn(),l=r.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:r.cache},a.updateQueue.baseState=i,a.memoizedState=i,a.flags&256){a=j0(t,a,l,s);break e}else if(l!==n){n=ua(Error(o(424)),a),hn(n),a=j0(t,a,l,s);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(dt=fa(t.firstChild),Pt=a,Oe=!0,hs=null,pa=!0,s=hx(a,null,l,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Is(),l===n){a=Qa(t,a,s);break e}_t(t,a,l,s)}a=a.child}return a;case 26:return Oi(t,a),t===null?(s=Ru(a.type,null,a.pendingProps,null))?a.memoizedState=s:Oe||(s=a.type,t=a.pendingProps,l=sr(ue.current).createElement(s),l[jt]=a,l[Rt]=t,zt(l,s,t),Et(l),a.stateNode=l):a.memoizedState=Ru(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return ce(a),t===null&&Oe&&(l=a.stateNode=Bu(a.type,a.pendingProps,ue.current),Pt=a,pa=!0,n=dt,Es(a.type)?(Bc=n,dt=fa(l.firstChild)):dt=n),_t(t,a,a.pendingProps.children,s),Oi(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Oe&&((n=l=dt)&&(l=pp(l,a.type,a.pendingProps,pa),l!==null?(a.stateNode=l,Pt=a,dt=fa(l.firstChild),pa=!1,n=!0):n=!1),n||ps(a)),ce(a),n=a.type,i=a.pendingProps,r=t!==null?t.memoizedProps:null,l=i.children,Sc(n,i)?l=null:r!==null&&Sc(n,r)&&(a.flags|=32),a.memoizedState!==null&&(n=Co(t,a,Th,null,null,s),Hn._currentValue=n),Oi(t,a),_t(t,a,l,s),a.child;case 6:return t===null&&Oe&&((t=s=dt)&&(s=bp(s,a.pendingProps,pa),s!==null?(a.stateNode=s,Pt=a,dt=null,t=!0):t=!1),t||ps(a)),null;case 13:return N0(t,a,s);case 4:return Ce(a,a.stateNode.containerInfo),l=a.pendingProps,t===null?a.child=el(a,null,l,s):_t(t,a,l,s),a.child;case 11:return x0(t,a,a.type,a.pendingProps,s);case 7:return _t(t,a,a.pendingProps,s),a.child;case 8:return _t(t,a,a.pendingProps.children,s),a.child;case 12:return _t(t,a,a.pendingProps.children,s),a.child;case 10:return l=a.pendingProps,bs(a,a.type,l.value),_t(t,a,l.children,s),a.child;case 9:return n=a.type._context,l=a.pendingProps.children,Ws(a),n=Lt(n),l=l(n),a.flags|=1,_t(t,a,l,s),a.child;case 14:return u0(t,a,a.type,a.pendingProps,s);case 15:return m0(t,a,a.type,a.pendingProps,s);case 19:return k0(t,a,s);case 31:return zh(t,a,s);case 22:return h0(t,a,s,a.pendingProps);case 24:return Ws(a),l=Lt(kt),t===null?(n=po(),n===null&&(n=ot,i=mo(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=s),n=i),a.memoizedState={parent:l,cache:n},fo(a),bs(a,kt,n)):((t.lanes&s)!==0&&(go(t,a),vn(a,null,null,s),Nn()),n=t.memoizedState,i=a.memoizedState,n.parent!==l?(n={parent:l,cache:l},a.memoizedState=n,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=n),bs(a,kt,l)):(l=i.cache,bs(a,kt,l),l!==n.cache&&uo(a,[kt],s,!0))),_t(t,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function Xa(t){t.flags|=4}function Zo(t,a,s,l,n){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(W0())t.flags|=8192;else throw Zs=Ci,bo}else t.flags&=-16777217}function w0(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Uu(a))if(W0())t.flags|=8192;else throw Zs=Ci,bo}function Ki(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?ti():536870912,t.lanes|=a,Ll|=a)}function Mn(t,a){if(!Oe)switch(t.tailMode){case"hidden":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function xt(t){var a=t.alternate!==null&&t.alternate.child===t.child,s=0,l=0;if(a)for(var n=t.child;n!==null;)s|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)s|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=l,t.childLanes=s,a}function Oh(t,a,s){var l=a.pendingProps;switch(io(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(a),null;case 1:return xt(a),null;case 3:return s=a.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Ia(kt),we(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(yl(a)?Xa(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,oo())),xt(a),null;case 26:var n=a.type,i=a.memoizedState;return t===null?(Xa(a),i!==null?(xt(a),w0(a,i)):(xt(a),Zo(a,n,null,l,s))):i?i!==t.memoizedState?(Xa(a),xt(a),w0(a,i)):(xt(a),a.flags&=-16777217):(t=t.memoizedProps,t!==l&&Xa(a),xt(a),Zo(a,n,t,l,s)),null;case 27:if(He(a),s=ue.current,n=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==l&&Xa(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return xt(a),null}t=Z.current,yl(a)?sx(a):(t=Bu(n,l,s),a.stateNode=t,Xa(a))}return xt(a),null;case 5:if(He(a),n=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==l&&Xa(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return xt(a),null}if(i=Z.current,yl(a))sx(a);else{var r=sr(ue.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?r.createElement(n,{is:l.is}):r.createElement(n)}}i[jt]=a,i[Rt]=l;e:for(r=a.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}a.stateNode=i;e:switch(zt(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Xa(a)}}return xt(a),Zo(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,s),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==l&&Xa(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(o(166));if(t=ue.current,yl(a)){if(t=a.stateNode,s=a.memoizedProps,l=null,n=Pt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}t[jt]=a,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Nu(t.nodeValue,s)),t||ps(a,!0)}else t=sr(t).createTextNode(l),t[jt]=a,a.stateNode=t}return xt(a),null;case 31:if(s=a.memoizedState,t===null||t.memoizedState!==null){if(l=yl(a),s!==null){if(t===null){if(!l)throw Error(o(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[jt]=a}else Is(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;xt(a),t=!1}else s=oo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return a.flags&256?(sa(a),a):(sa(a),null);if((a.flags&128)!==0)throw Error(o(558))}return xt(a),null;case 13:if(l=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=yl(a),l!==null&&l.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[jt]=a}else Is(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;xt(a),n=!1}else n=oo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return a.flags&256?(sa(a),a):(sa(a),null)}return sa(a),(a.flags&128)!==0?(a.lanes=s,a):(s=l!==null,t=t!==null&&t.memoizedState!==null,s&&(l=a.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),s!==t&&s&&(a.child.flags|=8192),Ki(a,a.updateQueue),xt(a),null);case 4:return we(),t===null&&vc(a.stateNode.containerInfo),xt(a),null;case 10:return Ia(a.type),xt(a),null;case 19:if(F(Nt),l=a.memoizedState,l===null)return xt(a),null;if(n=(a.flags&128)!==0,i=l.rendering,i===null)if(n)Mn(l,!1);else{if(ft!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(i=Ei(t),i!==null){for(a.flags|=128,Mn(l,!1),t=i.updateQueue,a.updateQueue=t,Ki(a,t),a.subtreeFlags=0,t=s,s=a.child;s!==null;)Xd(s,t),s=s.sibling;return v(Nt,Nt.current&1|2),Oe&&$a(a,l.treeForkCount),a.child}t=t.sibling}l.tail!==null&&ve()>Ji&&(a.flags|=128,n=!0,Mn(l,!1),a.lanes=4194304)}else{if(!n)if(t=Ei(i),t!==null){if(a.flags|=128,n=!0,t=t.updateQueue,a.updateQueue=t,Ki(a,t),Mn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Oe)return xt(a),null}else 2*ve()-l.renderingStartTime>Ji&&s!==536870912&&(a.flags|=128,n=!0,Mn(l,!1),a.lanes=4194304);l.isBackwards?(i.sibling=a.child,a.child=i):(t=l.last,t!==null?t.sibling=i:a.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,s=Nt.current,v(Nt,n?s&1|2:s&1),Oe&&$a(a,l.treeForkCount),t):(xt(a),null);case 22:case 23:return sa(a),ko(),l=a.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(s&536870912)!==0&&(a.flags&128)===0&&(xt(a),a.subtreeFlags&6&&(a.flags|=8192)):xt(a),s=a.updateQueue,s!==null&&Ki(a,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==s&&(a.flags|=2048),t!==null&&F(Qs),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Ia(kt),xt(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function Hh(t,a){switch(io(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Ia(kt),we(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return He(a),null;case 31:if(a.memoizedState!==null){if(sa(a),a.alternate===null)throw Error(o(340));Is()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(sa(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(o(340));Is()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return F(Nt),null;case 4:return we(),null;case 10:return Ia(a.type),null;case 22:case 23:return sa(a),ko(),t!==null&&F(Qs),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Ia(kt),null;case 25:return null;default:return null}}function C0(t,a){switch(io(a),a.tag){case 3:Ia(kt),we();break;case 26:case 27:case 5:He(a);break;case 4:we();break;case 31:a.memoizedState!==null&&sa(a);break;case 13:sa(a);break;case 19:F(Nt);break;case 10:Ia(a.type);break;case 22:case 23:sa(a),ko(),t!==null&&F(Qs);break;case 24:Ia(kt)}}function An(t,a){try{var s=a.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var n=l.next;s=n;do{if((s.tag&t)===t){l=void 0;var i=s.create,r=s.inst;l=i(),r.destroy=l}s=s.next}while(s!==n)}}catch(x){et(a,a.return,x)}}function ks(t,a,s){try{var l=a.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&t)===t){var r=l.inst,x=r.destroy;if(x!==void 0){r.destroy=void 0,n=a;var g=s,z=x;try{z()}catch(I){et(n,g,I)}}}l=l.next}while(l!==i)}}catch(I){et(a,a.return,I)}}function S0(t){var a=t.updateQueue;if(a!==null){var s=t.stateNode;try{bx(a,s)}catch(l){et(t,t.return,l)}}}function M0(t,a,s){s.props=al(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(l){et(t,a,l)}}function En(t,a){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof s=="function"?t.refCleanup=s(l):s.current=l}}catch(n){et(t,a,n)}}function Pa(t,a){var s=t.ref,l=t.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(n){et(t,a,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(n){et(t,a,n)}else s.current=null}function A0(t){var a=t.type,s=t.memoizedProps,l=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(n){et(t,t.return,n)}}function ec(t,a,s){try{var l=t.stateNode;cp(l,t.type,s,a),l[Rt]=a}catch(n){et(t,t.return,n)}}function E0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Es(t.type)||t.tag===4}function tc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||E0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Es(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ac(t,a,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(t),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Ga));else if(l!==4&&(l===27&&Es(t.type)&&(s=t.stateNode,a=null),t=t.child,t!==null))for(ac(t,a,s),t=t.sibling;t!==null;)ac(t,a,s),t=t.sibling}function Gi(t,a,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,a?s.insertBefore(t,a):s.appendChild(t);else if(l!==4&&(l===27&&Es(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Gi(t,a,s),t=t.sibling;t!==null;)Gi(t,a,s),t=t.sibling}function T0(t){var a=t.stateNode,s=t.memoizedProps;try{for(var l=t.type,n=a.attributes;n.length;)a.removeAttributeNode(n[0]);zt(a,l,s),a[jt]=t,a[Rt]=s}catch(i){et(t,t.return,i)}}var Za=!1,Ct=!1,sc=!1,B0=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function Kh(t,a){if(t=t.containerInfo,wc=dr,t=Gd(t),Yr(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{s.nodeType,i.nodeType}catch{s=null;break e}var r=0,x=-1,g=-1,z=0,I=0,ee=t,H=null;t:for(;;){for(var K;ee!==s||n!==0&&ee.nodeType!==3||(x=r+n),ee!==i||l!==0&&ee.nodeType!==3||(g=r+l),ee.nodeType===3&&(r+=ee.nodeValue.length),(K=ee.firstChild)!==null;)H=ee,ee=K;for(;;){if(ee===t)break t;if(H===s&&++z===n&&(x=r),H===i&&++I===l&&(g=r),(K=ee.nextSibling)!==null)break;ee=H,H=ee.parentNode}ee=K}s=x===-1||g===-1?null:{start:x,end:g}}else s=null}s=s||{start:0,end:0}}else s=null;for(Cc={focusedElem:t,selectionRange:s},dr=!1,Tt=a;Tt!==null;)if(a=Tt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,Tt=t;else for(;Tt!==null;){switch(a=Tt,i=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s<t.length;s++)n=t[s],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,s=a,n=i.memoizedProps,i=i.memoizedState,l=s.stateNode;try{var he=al(s.type,n);t=l.getSnapshotBeforeUpdate(he,i),l.__reactInternalSnapshotBeforeUpdate=t}catch(Se){et(s,s.return,Se)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,s=t.nodeType,s===9)Ac(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ac(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=a.sibling,t!==null){t.return=a.return,Tt=t;break}Tt=a.return}}function D0(t,a,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:ts(t,s),l&4&&An(5,s);break;case 1:if(ts(t,s),l&4)if(t=s.stateNode,a===null)try{t.componentDidMount()}catch(r){et(s,s.return,r)}else{var n=al(s.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(n,a,t.__reactInternalSnapshotBeforeUpdate)}catch(r){et(s,s.return,r)}}l&64&&S0(s),l&512&&En(s,s.return);break;case 3:if(ts(t,s),l&64&&(t=s.updateQueue,t!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{bx(t,a)}catch(r){et(s,s.return,r)}}break;case 27:a===null&&l&4&&T0(s);case 26:case 5:ts(t,s),a===null&&l&4&&A0(s),l&512&&En(s,s.return);break;case 12:ts(t,s);break;case 31:ts(t,s),l&4&&P0(t,s);break;case 13:ts(t,s),l&4&&L0(t,s),l&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=Qh.bind(null,s),fp(t,s))));break;case 22:if(l=s.memoizedState!==null||Za,!l){a=a!==null&&a.memoizedState!==null||Ct,n=Za;var i=Ct;Za=l,(Ct=a)&&!i?as(t,s,(s.subtreeFlags&8772)!==0):ts(t,s),Za=n,Ct=i}break;case 30:break;default:ts(t,s)}}function F0(t){var a=t.alternate;a!==null&&(t.alternate=null,F0(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Dr(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ut=null,Jt=!1;function es(t,a,s){for(s=s.child;s!==null;)R0(t,a,s),s=s.sibling}function R0(t,a,s){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(Qe,s)}catch{}switch(s.tag){case 26:Ct||Pa(s,a),es(t,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Ct||Pa(s,a);var l=ut,n=Jt;Es(s.type)&&(ut=s.stateNode,Jt=!1),es(t,a,s),zn(s.stateNode),ut=l,Jt=n;break;case 5:Ct||Pa(s,a);case 6:if(l=ut,n=Jt,ut=null,es(t,a,s),ut=l,Jt=n,ut!==null)if(Jt)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(s.stateNode)}catch(i){et(s,a,i)}else try{ut.removeChild(s.stateNode)}catch(i){et(s,a,i)}break;case 18:ut!==null&&(Jt?(t=ut,Su(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),ql(t)):Su(ut,s.stateNode));break;case 4:l=ut,n=Jt,ut=s.stateNode.containerInfo,Jt=!0,es(t,a,s),ut=l,Jt=n;break;case 0:case 11:case 14:case 15:ks(2,s,a),Ct||ks(4,s,a),es(t,a,s);break;case 1:Ct||(Pa(s,a),l=s.stateNode,typeof l.componentWillUnmount=="function"&&M0(s,a,l)),es(t,a,s);break;case 21:es(t,a,s);break;case 22:Ct=(l=Ct)||s.memoizedState!==null,es(t,a,s),Ct=l;break;default:es(t,a,s)}}function P0(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ql(t)}catch(s){et(a,a.return,s)}}}function L0(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ql(t)}catch(s){et(a,a.return,s)}}function Gh(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new B0),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new B0),a;default:throw Error(o(435,t.tag))}}function qi(t,a){var s=Gh(t);a.forEach(function(l){if(!s.has(l)){s.add(l);var n=Xh.bind(null,t,l);l.then(n,n)}})}function It(t,a){var s=a.deletions;if(s!==null)for(var l=0;l<s.length;l++){var n=s[l],i=t,r=a,x=r;e:for(;x!==null;){switch(x.tag){case 27:if(Es(x.type)){ut=x.stateNode,Jt=!1;break e}break;case 5:ut=x.stateNode,Jt=!1;break e;case 3:case 4:ut=x.stateNode.containerInfo,Jt=!0;break e}x=x.return}if(ut===null)throw Error(o(160));R0(i,r,n),ut=null,Jt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)_0(a,t),a=a.sibling}var wa=null;function _0(t,a){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:It(a,t),Yt(t),l&4&&(ks(3,t,t.return),An(3,t),ks(5,t,t.return));break;case 1:It(a,t),Yt(t),l&512&&(Ct||s===null||Pa(s,s.return)),l&64&&Za&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var n=wa;if(It(a,t),Yt(t),l&512&&(Ct||s===null||Pa(s,s.return)),l&4){var i=s!==null?s.memoizedState:null;if(l=t.memoizedState,s===null)if(l===null)if(t.stateNode===null){e:{l=t.type,s=t.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[tn]||i[jt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),zt(i,l,s),i[jt]=t,Et(i),l=i;break e;case"link":var r=_u("link","href",n).get(l+(s.href||""));if(r){for(var x=0;x<r.length;x++)if(i=r[x],i.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&i.getAttribute("rel")===(s.rel==null?null:s.rel)&&i.getAttribute("title")===(s.title==null?null:s.title)&&i.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){r.splice(x,1);break t}}i=n.createElement(l),zt(i,l,s),n.head.appendChild(i);break;case"meta":if(r=_u("meta","content",n).get(l+(s.content||""))){for(x=0;x<r.length;x++)if(i=r[x],i.getAttribute("content")===(s.content==null?null:""+s.content)&&i.getAttribute("name")===(s.name==null?null:s.name)&&i.getAttribute("property")===(s.property==null?null:s.property)&&i.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&i.getAttribute("charset")===(s.charSet==null?null:s.charSet)){r.splice(x,1);break t}}i=n.createElement(l),zt(i,l,s),n.head.appendChild(i);break;default:throw Error(o(468,l))}i[jt]=t,Et(i),l=i}t.stateNode=l}else zu(n,t.type,t.stateNode);else t.stateNode=Lu(n,l,t.memoizedProps);else i!==l?(i===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):i.count--,l===null?zu(n,t.type,t.stateNode):Lu(n,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ec(t,t.memoizedProps,s.memoizedProps)}break;case 27:It(a,t),Yt(t),l&512&&(Ct||s===null||Pa(s,s.return)),s!==null&&l&4&&ec(t,t.memoizedProps,s.memoizedProps);break;case 5:if(It(a,t),Yt(t),l&512&&(Ct||s===null||Pa(s,s.return)),t.flags&32){n=t.stateNode;try{ml(n,"")}catch(he){et(t,t.return,he)}}l&4&&t.stateNode!=null&&(n=t.memoizedProps,ec(t,n,s!==null?s.memoizedProps:n)),l&1024&&(sc=!0);break;case 6:if(It(a,t),Yt(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,s=t.stateNode;try{s.nodeValue=l}catch(he){et(t,t.return,he)}}break;case 3:if(ir=null,n=wa,wa=lr(a.containerInfo),It(a,t),wa=n,Yt(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{ql(a.containerInfo)}catch(he){et(t,t.return,he)}sc&&(sc=!1,z0(t));break;case 4:l=wa,wa=lr(t.stateNode.containerInfo),It(a,t),Yt(t),wa=l;break;case 12:It(a,t),Yt(t);break;case 31:It(a,t),Yt(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,qi(t,l)));break;case 13:It(a,t),Yt(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&($i=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,qi(t,l)));break;case 22:n=t.memoizedState!==null;var g=s!==null&&s.memoizedState!==null,z=Za,I=Ct;if(Za=z||n,Ct=I||g,It(a,t),Ct=I,Za=z,Yt(t),l&8192)e:for(a=t.stateNode,a._visibility=n?a._visibility&-2:a._visibility|1,n&&(s===null||g||Za||Ct||sl(t)),s=null,a=t;;){if(a.tag===5||a.tag===26){if(s===null){g=s=a;try{if(i=g.stateNode,n)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{x=g.stateNode;var ee=g.memoizedProps.style,H=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;x.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(he){et(g,g.return,he)}}}else if(a.tag===6){if(s===null){g=a;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(he){et(g,g.return,he)}}}else if(a.tag===18){if(s===null){g=a;try{var K=g.stateNode;n?Mu(K,!0):Mu(g.stateNode,!1)}catch(he){et(g,g.return,he)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=t.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,qi(t,s))));break;case 19:It(a,t),Yt(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,qi(t,l)));break;case 30:break;case 21:break;default:It(a,t),Yt(t)}}function Yt(t){var a=t.flags;if(a&2){try{for(var s,l=t.return;l!==null;){if(E0(l)){s=l;break}l=l.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var n=s.stateNode,i=tc(t);Gi(t,i,n);break;case 5:var r=s.stateNode;s.flags&32&&(ml(r,""),s.flags&=-33);var x=tc(t);Gi(t,x,r);break;case 3:case 4:var g=s.stateNode.containerInfo,z=tc(t);ac(t,z,g);break;default:throw Error(o(161))}}catch(I){et(t,t.return,I)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function z0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;z0(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function ts(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)D0(t,a.alternate,a),a=a.sibling}function sl(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:ks(4,a,a.return),sl(a);break;case 1:Pa(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&M0(a,a.return,s),sl(a);break;case 27:zn(a.stateNode);case 26:case 5:Pa(a,a.return),sl(a);break;case 22:a.memoizedState===null&&sl(a);break;case 30:sl(a);break;default:sl(a)}t=t.sibling}}function as(t,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,n=t,i=a,r=i.flags;switch(i.tag){case 0:case 11:case 15:as(n,i,s),An(4,i);break;case 1:if(as(n,i,s),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){et(l,l.return,z)}if(l=i,n=l.updateQueue,n!==null){var x=l.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)px(g[n],x)}catch(z){et(l,l.return,z)}}s&&r&64&&S0(i),En(i,i.return);break;case 27:T0(i);case 26:case 5:as(n,i,s),s&&l===null&&r&4&&A0(i),En(i,i.return);break;case 12:as(n,i,s);break;case 31:as(n,i,s),s&&r&4&&P0(n,i);break;case 13:as(n,i,s),s&&r&4&&L0(n,i);break;case 22:i.memoizedState===null&&as(n,i,s),En(i,i.return);break;case 30:break;default:as(n,i,s)}a=a.sibling}}function lc(t,a){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&pn(s))}function nc(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&pn(t))}function Ca(t,a,s,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)U0(t,a,s,l),a=a.sibling}function U0(t,a,s,l){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ca(t,a,s,l),n&2048&&An(9,a);break;case 1:Ca(t,a,s,l);break;case 3:Ca(t,a,s,l),n&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&pn(t)));break;case 12:if(n&2048){Ca(t,a,s,l),t=a.stateNode;try{var i=a.memoizedProps,r=i.id,x=i.onPostCommit;typeof x=="function"&&x(r,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){et(a,a.return,g)}}else Ca(t,a,s,l);break;case 31:Ca(t,a,s,l);break;case 13:Ca(t,a,s,l);break;case 23:break;case 22:i=a.stateNode,r=a.alternate,a.memoizedState!==null?i._visibility&2?Ca(t,a,s,l):Tn(t,a):i._visibility&2?Ca(t,a,s,l):(i._visibility|=2,Fl(t,a,s,l,(a.subtreeFlags&10256)!==0||!1)),n&2048&&lc(r,a);break;case 24:Ca(t,a,s,l),n&2048&&nc(a.alternate,a);break;default:Ca(t,a,s,l)}}function Fl(t,a,s,l,n){for(n=n&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var i=t,r=a,x=s,g=l,z=r.flags;switch(r.tag){case 0:case 11:case 15:Fl(i,r,x,g,n),An(8,r);break;case 23:break;case 22:var I=r.stateNode;r.memoizedState!==null?I._visibility&2?Fl(i,r,x,g,n):Tn(i,r):(I._visibility|=2,Fl(i,r,x,g,n)),n&&z&2048&&lc(r.alternate,r);break;case 24:Fl(i,r,x,g,n),n&&z&2048&&nc(r.alternate,r);break;default:Fl(i,r,x,g,n)}a=a.sibling}}function Tn(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=t,l=a,n=l.flags;switch(l.tag){case 22:Tn(s,l),n&2048&&lc(l.alternate,l);break;case 24:Tn(s,l),n&2048&&nc(l.alternate,l);break;default:Tn(s,l)}a=a.sibling}}var Bn=8192;function Rl(t,a,s){if(t.subtreeFlags&Bn)for(t=t.child;t!==null;)O0(t,a,s),t=t.sibling}function O0(t,a,s){switch(t.tag){case 26:Rl(t,a,s),t.flags&Bn&&t.memoizedState!==null&&Ep(s,wa,t.memoizedState,t.memoizedProps);break;case 5:Rl(t,a,s);break;case 3:case 4:var l=wa;wa=lr(t.stateNode.containerInfo),Rl(t,a,s),wa=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Bn,Bn=16777216,Rl(t,a,s),Bn=l):Rl(t,a,s));break;default:Rl(t,a,s)}}function H0(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Dn(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Tt=l,G0(l,t)}H0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)K0(t),t=t.sibling}function K0(t){switch(t.tag){case 0:case 11:case 15:Dn(t),t.flags&2048&&ks(9,t,t.return);break;case 3:Dn(t);break;case 12:Dn(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Vi(t)):Dn(t);break;default:Dn(t)}}function Vi(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var l=a[s];Tt=l,G0(l,t)}H0(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:ks(8,a,a.return),Vi(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Vi(a));break;default:Vi(a)}t=t.sibling}}function G0(t,a){for(;Tt!==null;){var s=Tt;switch(s.tag){case 0:case 11:case 15:ks(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:pn(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Tt=l;else e:for(s=t;Tt!==null;){l=Tt;var n=l.sibling,i=l.return;if(F0(l),l===s){Tt=null;break e}if(n!==null){n.return=i,Tt=n;break e}Tt=i}}}var qh={getCacheForType:function(t){var a=Lt(kt),s=a.data.get(t);return s===void 0&&(s=t(),a.data.set(t,s)),s},cacheSignal:function(){return Lt(kt).controller.signal}},Vh=typeof WeakMap=="function"?WeakMap:Map,Je=0,ot=null,Fe=null,Pe=0,Ze=0,la=null,ys=!1,Pl=!1,ic=!1,ss=0,ft=0,ws=0,ll=0,rc=0,na=0,Ll=0,Fn=null,Wt=null,oc=!1,$i=0,q0=0,Ji=1/0,Ii=null,Cs=null,At=0,Ss=null,_l=null,ls=0,cc=0,dc=null,V0=null,Rn=0,xc=null;function ia(){return(Je&2)!==0&&Pe!==0?Pe&-Pe:k.T!==null?fc():p()}function $0(){if(na===0)if((Pe&536870912)===0||Oe){var t=rl;rl<<=1,(rl&3932160)===0&&(rl=262144),na=t}else na=536870912;return t=aa.current,t!==null&&(t.flags|=32),na}function Qt(t,a,s){(t===ot&&(Ze===2||Ze===9)||t.cancelPendingCommit!==null)&&(zl(t,0),Ms(t,Pe,na,!1)),Ha(t,s),((Je&2)===0||t!==ot)&&(t===ot&&((Je&2)===0&&(ll|=s),ft===4&&Ms(t,Pe,na,!1)),La(t))}function J0(t,a,s){if((Je&6)!==0)throw Error(o(327));var l=!s&&(a&127)===0&&(a&t.expiredLanes)===0||Hs(t,a),n=l?Ih(t,a):mc(t,a,!0),i=l;do{if(n===0){Pl&&!l&&Ms(t,a,0,!1);break}else{if(s=t.current.alternate,i&&!$h(s)){n=mc(t,a,!1),i=!1;continue}if(n===2){if(i=a,t.errorRecoveryDisabledLanes&i)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){a=r;e:{var x=t;n=Fn;var g=x.current.memoizedState.isDehydrated;if(g&&(zl(x,r).flags|=256),r=mc(x,r,!1),r!==2){if(ic&&!g){x.errorRecoveryDisabledLanes|=i,ll|=i,n=4;break e}i=Wt,Wt=n,i!==null&&(Wt===null?Wt=i:Wt.push.apply(Wt,i))}n=r}if(i=!1,n!==2)continue}}if(n===1){zl(t,0),Ms(t,a,0,!0);break}e:{switch(l=t,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Ms(l,a,na,!ys);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(n=$i+300-ve(),10<n)){if(Ms(l,a,na,!ys),Os(l,0,!0)!==0)break e;ls=a,l.timeoutHandle=wu(I0.bind(null,l,s,Wt,Ii,oc,a,na,ll,Ll,ys,i,"Throttled",-0,0),n);break e}I0(l,s,Wt,Ii,oc,a,na,ll,Ll,ys,i,null,-0,0)}}break}while(!0);La(t)}function I0(t,a,s,l,n,i,r,x,g,z,I,ee,H,K){if(t.timeoutHandle=-1,ee=a.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ga},O0(a,i,ee);var he=(i&62914560)===i?$i-ve():(i&4194048)===i?q0-ve():0;if(he=Tp(ee,he),he!==null){ls=i,t.cancelPendingCommit=he(au.bind(null,t,a,i,s,l,n,r,x,g,I,ee,null,H,K)),Ms(t,i,r,!z);return}}au(t,a,i,s,l,n,r,x,g)}function $h(t){for(var a=t;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var n=s[l],i=n.getSnapshot;n=n.value;try{if(!ea(i(),n))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ms(t,a,s,l){a&=~rc,a&=~ll,t.suspendedLanes|=a,t.pingedLanes&=~a,l&&(t.warmLanes|=a),l=t.expirationTimes;for(var n=a;0<n;){var i=31-V(n),r=1<<i;l[i]=-1,n&=~r}s!==0&&ai(t,s,a)}function Yi(){return(Je&6)===0?(Pn(0),!1):!0}function uc(){if(Fe!==null){if(Ze===0)var t=Fe.return;else t=Fe,Ja=Ys=null,Ao(t),Al=null,fn=0,t=Fe;for(;t!==null;)C0(t.alternate,t),t=t.return;Fe=null}}function zl(t,a){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,up(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),ls=0,uc(),ot=t,Fe=s=Va(t.current,null),Pe=a,Ze=0,la=null,ys=!1,Pl=Hs(t,a),ic=!1,Ll=na=rc=ll=ws=ft=0,Wt=Fn=null,oc=!1,(a&8)!==0&&(a|=a&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=a;0<l;){var n=31-V(l),i=1<<n;a|=t[n],l&=~i}return ss=a,bi(),s}function Y0(t,a){Te=null,k.H=Cn,a===Ml||a===wi?(a=xx(),Ze=3):a===bo?(a=xx(),Ze=4):Ze=a===qo?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,la=a,Fe===null&&(ft=1,zi(t,ua(a,t.current)))}function W0(){var t=aa.current;return t===null?!0:(Pe&4194048)===Pe?ba===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?t===ba:!1}function Q0(){var t=k.H;return k.H=Cn,t===null?Cn:t}function X0(){var t=k.A;return k.A=qh,t}function Wi(){ft=4,ys||(Pe&4194048)!==Pe&&aa.current!==null||(Pl=!0),(ws&134217727)===0&&(ll&134217727)===0||ot===null||Ms(ot,Pe,na,!1)}function mc(t,a,s){var l=Je;Je|=2;var n=Q0(),i=X0();(ot!==t||Pe!==a)&&(Ii=null,zl(t,a)),a=!1;var r=ft;e:do try{if(Ze!==0&&Fe!==null){var x=Fe,g=la;switch(Ze){case 8:uc(),r=6;break e;case 3:case 2:case 9:case 6:aa.current===null&&(a=!0);var z=Ze;if(Ze=0,la=null,Ul(t,x,g,z),s&&Pl){r=0;break e}break;default:z=Ze,Ze=0,la=null,Ul(t,x,g,z)}}Jh(),r=ft;break}catch(I){Y0(t,I)}while(!0);return a&&t.shellSuspendCounter++,Ja=Ys=null,Je=l,k.H=n,k.A=i,Fe===null&&(ot=null,Pe=0,bi()),r}function Jh(){for(;Fe!==null;)Z0(Fe)}function Ih(t,a){var s=Je;Je|=2;var l=Q0(),n=X0();ot!==t||Pe!==a?(Ii=null,Ji=ve()+500,zl(t,a)):Pl=Hs(t,a);e:do try{if(Ze!==0&&Fe!==null){a=Fe;var i=la;t:switch(Ze){case 1:Ze=0,la=null,Ul(t,a,i,1);break;case 2:case 9:if(cx(i)){Ze=0,la=null,eu(a);break}a=function(){Ze!==2&&Ze!==9||ot!==t||(Ze=7),La(t)},i.then(a,a);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:cx(i)?(Ze=0,la=null,eu(a)):(Ze=0,la=null,Ul(t,a,i,7));break;case 5:var r=null;switch(Fe.tag){case 26:r=Fe.memoizedState;case 5:case 27:var x=Fe;if(r?Uu(r):x.stateNode.complete){Ze=0,la=null;var g=x.sibling;if(g!==null)Fe=g;else{var z=x.return;z!==null?(Fe=z,Qi(z)):Fe=null}break t}}Ze=0,la=null,Ul(t,a,i,5);break;case 6:Ze=0,la=null,Ul(t,a,i,6);break;case 8:uc(),ft=6;break e;default:throw Error(o(462))}}Yh();break}catch(I){Y0(t,I)}while(!0);return Ja=Ys=null,k.H=l,k.A=n,Je=s,Fe!==null?0:(ot=null,Pe=0,bi(),ft)}function Yh(){for(;Fe!==null&&!O();)Z0(Fe)}function Z0(t){var a=y0(t.alternate,t,ss);t.memoizedProps=t.pendingProps,a===null?Qi(t):Fe=a}function eu(t){var a=t,s=a.alternate;switch(a.tag){case 15:case 0:a=f0(s,a,a.pendingProps,a.type,void 0,Pe);break;case 11:a=f0(s,a,a.pendingProps,a.type.render,a.ref,Pe);break;case 5:Ao(a);default:C0(s,a),a=Fe=Xd(a,ss),a=y0(s,a,ss)}t.memoizedProps=t.pendingProps,a===null?Qi(t):Fe=a}function Ul(t,a,s,l){Ja=Ys=null,Ao(a),Al=null,fn=0;var n=a.return;try{if(_h(t,n,a,s,Pe)){ft=1,zi(t,ua(s,t.current)),Fe=null;return}}catch(i){if(n!==null)throw Fe=n,i;ft=1,zi(t,ua(s,t.current)),Fe=null;return}a.flags&32768?(Oe||l===1?t=!0:Pl||(Pe&536870912)!==0?t=!1:(ys=t=!0,(l===2||l===9||l===3||l===6)&&(l=aa.current,l!==null&&l.tag===13&&(l.flags|=16384))),tu(a,t)):Qi(a)}function Qi(t){var a=t;do{if((a.flags&32768)!==0){tu(a,ys);return}t=a.return;var s=Oh(a.alternate,a,ss);if(s!==null){Fe=s;return}if(a=a.sibling,a!==null){Fe=a;return}Fe=a=t}while(a!==null);ft===0&&(ft=5)}function tu(t,a){do{var s=Hh(t.alternate,t);if(s!==null){s.flags&=32767,Fe=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(t=t.sibling,t!==null)){Fe=t;return}Fe=t=s}while(t!==null);ft=6,Fe=null}function au(t,a,s,l,n,i,r,x,g){t.cancelPendingCommit=null;do Xi();while(At!==0);if((Je&6)!==0)throw Error(o(327));if(a!==null){if(a===t.current)throw Error(o(177));if(i=a.lanes|a.childLanes,i|=eo,Tr(t,s,i,r,x,g),t===ot&&(Fe=ot=null,Pe=0),_l=a,Ss=t,ls=s,cc=i,dc=n,V0=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Zh(Zt,function(){return ru(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,n=U.p,U.p=2,r=Je,Je|=4;try{Kh(t,a,s)}finally{Je=r,U.p=n,k.T=l}}At=1,su(),lu(),nu()}}function su(){if(At===1){At=0;var t=Ss,a=_l,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=k.T,k.T=null;var l=U.p;U.p=2;var n=Je;Je|=4;try{_0(a,t);var i=Cc,r=Gd(t.containerInfo),x=i.focusedElem,g=i.selectionRange;if(r!==x&&x&&x.ownerDocument&&Kd(x.ownerDocument.documentElement,x)){if(g!==null&&Yr(x)){var z=g.start,I=g.end;if(I===void 0&&(I=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(I,x.value.length);else{var ee=x.ownerDocument||document,H=ee&&ee.defaultView||window;if(H.getSelection){var K=H.getSelection(),he=x.textContent.length,Se=Math.min(g.start,he),nt=g.end===void 0?Se:Math.min(g.end,he);!K.extend&&Se>nt&&(r=nt,nt=Se,Se=r);var E=Hd(x,Se),w=Hd(x,nt);if(E&&w&&(K.rangeCount!==1||K.anchorNode!==E.node||K.anchorOffset!==E.offset||K.focusNode!==w.node||K.focusOffset!==w.offset)){var L=ee.createRange();L.setStart(E.node,E.offset),K.removeAllRanges(),Se>nt?(K.addRange(L),K.extend(w.node,w.offset)):(L.setEnd(w.node,w.offset),K.addRange(L))}}}}for(ee=[],K=x;K=K.parentNode;)K.nodeType===1&&ee.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<ee.length;x++){var X=ee[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}dr=!!wc,Cc=wc=null}finally{Je=n,U.p=l,k.T=s}}t.current=a,At=2}}function lu(){if(At===2){At=0;var t=Ss,a=_l,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=k.T,k.T=null;var l=U.p;U.p=2;var n=Je;Je|=4;try{D0(t,a.alternate,a)}finally{Je=n,U.p=l,k.T=s}}At=3}}function nu(){if(At===4||At===3){At=0,Q();var t=Ss,a=_l,s=ls,l=V0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?At=5:(At=0,_l=Ss=null,iu(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Cs=null),en(s),a=a.stateNode,Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(Qe,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=k.T,n=U.p,U.p=2,k.T=null;try{for(var i=t.onRecoverableError,r=0;r<l.length;r++){var x=l[r];i(x.value,{componentStack:x.stack})}}finally{k.T=a,U.p=n}}(ls&3)!==0&&Xi(),La(t),n=t.pendingLanes,(s&261930)!==0&&(n&42)!==0?t===xc?Rn++:(Rn=0,xc=t):Rn=0,Pn(0)}}function iu(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,pn(a)))}function Xi(){return su(),lu(),nu(),ru()}function ru(){if(At!==5)return!1;var t=Ss,a=cc;cc=0;var s=en(ls),l=k.T,n=U.p;try{U.p=32>s?32:s,k.T=null,s=dc,dc=null;var i=Ss,r=ls;if(At=0,_l=Ss=null,ls=0,(Je&6)!==0)throw Error(o(331));var x=Je;if(Je|=4,K0(i.current),U0(i,i.current,r,s),Je=x,Pn(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(Qe,i)}catch{}return!0}finally{U.p=n,k.T=l,iu(t,a)}}function ou(t,a,s){a=ua(s,a),a=Go(t.stateNode,a,2),t=js(t,a,2),t!==null&&(Ha(t,2),La(t))}function et(t,a,s){if(t.tag===3)ou(t,t,s);else for(;a!==null;){if(a.tag===3){ou(a,t,s);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Cs===null||!Cs.has(l))){t=ua(s,t),s=c0(2),l=js(a,s,2),l!==null&&(d0(s,l,a,t),Ha(l,2),La(l));break}}a=a.return}}function hc(t,a,s){var l=t.pingCache;if(l===null){l=t.pingCache=new Vh;var n=new Set;l.set(a,n)}else n=l.get(a),n===void 0&&(n=new Set,l.set(a,n));n.has(s)||(ic=!0,n.add(s),t=Wh.bind(null,t,a,s),a.then(t,t))}function Wh(t,a,s){var l=t.pingCache;l!==null&&l.delete(a),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,ot===t&&(Pe&s)===s&&(ft===4||ft===3&&(Pe&62914560)===Pe&&300>ve()-$i?(Je&2)===0&&zl(t,0):rc|=s,Ll===Pe&&(Ll=0)),La(t)}function cu(t,a){a===0&&(a=ti()),t=$s(t,a),t!==null&&(Ha(t,a),La(t))}function Qh(t){var a=t.memoizedState,s=0;a!==null&&(s=a.retryLane),cu(t,s)}function Xh(t,a){var s=0;switch(t.tag){case 31:case 13:var l=t.stateNode,n=t.memoizedState;n!==null&&(s=n.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(a),cu(t,s)}function Zh(t,a){return Ae(t,a)}var Zi=null,Ol=null,pc=!1,er=!1,bc=!1,As=0;function La(t){t!==Ol&&t.next===null&&(Ol===null?Zi=Ol=t:Ol=Ol.next=t),er=!0,pc||(pc=!0,tp())}function Pn(t,a){if(!bc&&er){bc=!0;do for(var s=!1,l=Zi;l!==null;){if(t!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var r=l.suspendedLanes,x=l.pingedLanes;i=(1<<31-V(42|t)+1)-1,i&=n&~(r&~x),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(s=!0,mu(l,i))}else i=Pe,i=Os(l,l===ot?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Hs(l,i)||(s=!0,mu(l,i));l=l.next}while(s);bc=!1}}function ep(){du()}function du(){er=pc=!1;var t=0;As!==0&&xp()&&(t=As);for(var a=ve(),s=null,l=Zi;l!==null;){var n=l.next,i=xu(l,a);i===0?(l.next=null,s===null?Zi=n:s.next=n,n===null&&(Ol=s)):(s=l,(t!==0||(i&3)!==0)&&(er=!0)),l=n}At!==0&&At!==5||Pn(t),As!==0&&(As=0)}function xu(t,a){for(var s=t.suspendedLanes,l=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var r=31-V(i),x=1<<r,g=n[r];g===-1?((x&s)===0||(x&l)!==0)&&(n[r]=Er(x,a)):g<=a&&(t.expiredLanes|=x),i&=~x}if(a=ot,s=Pe,s=Os(t,t===a?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,s===0||t===a&&(Ze===2||Ze===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ze(l),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||Hs(t,s)){if(a=s&-s,a===t.callbackPriority)return a;switch(l!==null&&ze(l),en(s)){case 2:case 8:s=Oa;break;case 32:s=Zt;break;case 268435456:s=os;break;default:s=Zt}return l=uu.bind(null,t),s=Ae(s,l),t.callbackPriority=a,t.callbackNode=s,a}return l!==null&&l!==null&&ze(l),t.callbackPriority=2,t.callbackNode=null,2}function uu(t,a){if(At!==0&&At!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(Xi()&&t.callbackNode!==s)return null;var l=Pe;return l=Os(t,t===ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(J0(t,l,a),xu(t,ve()),t.callbackNode!=null&&t.callbackNode===s?uu.bind(null,t):null)}function mu(t,a){if(Xi())return null;J0(t,a,!0)}function tp(){mp(function(){(Je&6)!==0?Ae(Mt,ep):du()})}function fc(){if(As===0){var t=Cl;t===0&&(t=cs,cs<<=1,(cs&261888)===0&&(cs=256)),As=t}return As}function hu(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:oi(""+t)}function pu(t,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,t.id&&s.setAttribute("form",t.id),a.parentNode.insertBefore(s,a),t=new FormData(t),s.parentNode.removeChild(s),t}function ap(t,a,s,l,n){if(a==="submit"&&s&&s.stateNode===n){var i=hu((n[Rt]||null).action),r=l.submitter;r&&(a=(a=r[Rt]||null)?hu(a.formAction):r.getAttribute("formAction"),a!==null&&(i=a,r=null));var x=new ui("action","action",null,l,n);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(As!==0){var g=r?pu(n,r):new FormData(n);_o(s,{pending:!0,data:g,method:n.method,action:i},null,g)}}else typeof i=="function"&&(x.preventDefault(),g=r?pu(n,r):new FormData(n),_o(s,{pending:!0,data:g,method:n.method,action:i},i,g))},currentTarget:n}]})}}for(var gc=0;gc<Zr.length;gc++){var jc=Zr[gc],sp=jc.toLowerCase(),lp=jc[0].toUpperCase()+jc.slice(1);ya(sp,"on"+lp)}ya($d,"onAnimationEnd"),ya(Jd,"onAnimationIteration"),ya(Id,"onAnimationStart"),ya("dblclick","onDoubleClick"),ya("focusin","onFocus"),ya("focusout","onBlur"),ya(Nh,"onTransitionRun"),ya(vh,"onTransitionStart"),ya(kh,"onTransitionCancel"),ya(Yd,"onTransitionEnd"),xl("onMouseEnter",["mouseout","mouseover"]),xl("onMouseLeave",["mouseout","mouseover"]),xl("onPointerEnter",["pointerout","pointerover"]),xl("onPointerLeave",["pointerout","pointerover"]),Ks("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ks("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ks("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ks("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ks("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ks("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ln="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),np=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ln));function bu(t,a){a=(a&4)!==0;for(var s=0;s<t.length;s++){var l=t[s],n=l.event;l=l.listeners;e:{var i=void 0;if(a)for(var r=l.length-1;0<=r;r--){var x=l[r],g=x.instance,z=x.currentTarget;if(x=x.listener,g!==i&&n.isPropagationStopped())break e;i=x,n.currentTarget=z;try{i(n)}catch(I){pi(I)}n.currentTarget=null,i=g}else for(r=0;r<l.length;r++){if(x=l[r],g=x.instance,z=x.currentTarget,x=x.listener,g!==i&&n.isPropagationStopped())break e;i=x,n.currentTarget=z;try{i(n)}catch(I){pi(I)}n.currentTarget=null,i=g}}}}function Re(t,a){var s=a[Br];s===void 0&&(s=a[Br]=new Set);var l=t+"__bubble";s.has(l)||(fu(a,t,2,!1),s.add(l))}function Nc(t,a,s){var l=0;a&&(l|=4),fu(s,t,l,a)}var tr="_reactListening"+Math.random().toString(36).slice(2);function vc(t){if(!t[tr]){t[tr]=!0,dd.forEach(function(s){s!=="selectionchange"&&(np.has(s)||Nc(s,!1,t),Nc(s,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[tr]||(a[tr]=!0,Nc("selectionchange",!1,a))}}function fu(t,a,s,l){switch($u(a)){case 2:var n=Fp;break;case 8:n=Rp;break;default:n=Lc}s=n.bind(null,a,s,t),n=void 0,!Or||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(n=!0),l?n!==void 0?t.addEventListener(a,s,{capture:!0,passive:n}):t.addEventListener(a,s,!0):n!==void 0?t.addEventListener(a,s,{passive:n}):t.addEventListener(a,s,!1)}function kc(t,a,s,l,n){var i=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var x=l.stateNode.containerInfo;if(x===n)break;if(r===4)for(r=l.return;r!==null;){var g=r.tag;if((g===3||g===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;x!==null;){if(r=ol(x),r===null)return;if(g=r.tag,g===5||g===6||g===26||g===27){l=i=r;continue e}x=x.parentNode}}l=l.return}kd(function(){var z=i,I=zr(s),ee=[];e:{var H=Wd.get(t);if(H!==void 0){var K=ui,he=t;switch(t){case"keypress":if(di(s)===0)break e;case"keydown":case"keyup":K=Xm;break;case"focusin":he="focus",K=qr;break;case"focusout":he="blur",K=qr;break;case"beforeblur":case"afterblur":K=qr;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=th;break;case $d:case Jd:case Id:K=Gm;break;case Yd:K=sh;break;case"scroll":case"scrollend":K=zm;break;case"wheel":K=nh;break;case"copy":case"cut":case"paste":K=Vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Md;break;case"toggle":case"beforetoggle":K=rh}var Se=(a&4)!==0,nt=!Se&&(t==="scroll"||t==="scrollend"),E=Se?H!==null?H+"Capture":null:H;Se=[];for(var w=z,L;w!==null;){var X=w;if(L=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||L===null||E===null||(X=sn(w,E),X!=null&&Se.push(_n(w,X,L))),nt)break;w=w.return}0<Se.length&&(H=new K(H,he,null,s,I),ee.push({event:H,listeners:Se}))}}if((a&7)===0){e:{if(H=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",H&&s!==_r&&(he=s.relatedTarget||s.fromElement)&&(ol(he)||he[xs]))break e;if((K||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,K?(he=s.relatedTarget||s.toElement,K=z,he=he?ol(he):null,he!==null&&(nt=M(he),Se=he.tag,he!==nt||Se!==5&&Se!==27&&Se!==6)&&(he=null)):(K=null,he=z),K!==he)){if(Se=Cd,X="onMouseLeave",E="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(Se=Md,X="onPointerLeave",E="onPointerEnter",w="pointer"),nt=K==null?H:an(K),L=he==null?H:an(he),H=new Se(X,w+"leave",K,s,I),H.target=nt,H.relatedTarget=L,X=null,ol(I)===z&&(Se=new Se(E,w+"enter",he,s,I),Se.target=L,Se.relatedTarget=nt,X=Se),nt=X,K&&he)t:{for(Se=ip,E=K,w=he,L=0,X=E;X;X=Se(X))L++;X=0;for(var ke=w;ke;ke=Se(ke))X++;for(;0<L-X;)E=Se(E),L--;for(;0<X-L;)w=Se(w),X--;for(;L--;){if(E===w||w!==null&&E===w.alternate){Se=E;break t}E=Se(E),w=Se(w)}Se=null}else Se=null;K!==null&&gu(ee,H,K,Se,!1),he!==null&&nt!==null&&gu(ee,nt,he,Se,!0)}}e:{if(H=z?an(z):window,K=H.nodeName&&H.nodeName.toLowerCase(),K==="select"||K==="input"&&H.type==="file")var qe=Pd;else if(Fd(H))if(Ld)qe=fh;else{qe=ph;var je=hh}else K=H.nodeName,!K||K.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?z&&Lr(z.elementType)&&(qe=Pd):qe=bh;if(qe&&(qe=qe(t,z))){Rd(ee,qe,s,I);break e}je&&je(t,H,z),t==="focusout"&&z&&H.type==="number"&&z.memoizedProps.value!=null&&Pr(H,"number",H.value)}switch(je=z?an(z):window,t){case"focusin":(Fd(je)||je.contentEditable==="true")&&(fl=je,Wr=z,un=null);break;case"focusout":un=Wr=fl=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":Qr=!1,qd(ee,s,I);break;case"selectionchange":if(jh)break;case"keydown":case"keyup":qd(ee,s,I)}var Be;if($r)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else bl?Bd(t,s)&&(Le="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Le="onCompositionStart");Le&&(Ad&&s.locale!=="ko"&&(bl||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&bl&&(Be=yd()):(us=I,Hr="value"in us?us.value:us.textContent,bl=!0)),je=ar(z,Le),0<je.length&&(Le=new Sd(Le,t,null,s,I),ee.push({event:Le,listeners:je}),Be?Le.data=Be:(Be=Dd(s),Be!==null&&(Le.data=Be)))),(Be=ch?dh(t,s):xh(t,s))&&(Le=ar(z,"onBeforeInput"),0<Le.length&&(je=new Sd("onBeforeInput","beforeinput",null,s,I),ee.push({event:je,listeners:Le}),je.data=Be)),ap(ee,t,z,s,I)}bu(ee,a)})}function _n(t,a,s){return{instance:t,listener:a,currentTarget:s}}function ar(t,a){for(var s=a+"Capture",l=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=sn(t,s),n!=null&&l.unshift(_n(t,n,i)),n=sn(t,a),n!=null&&l.push(_n(t,n,i))),t.tag===3)return l;t=t.return}return[]}function ip(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function gu(t,a,s,l,n){for(var i=a._reactName,r=[];s!==null&&s!==l;){var x=s,g=x.alternate,z=x.stateNode;if(x=x.tag,g!==null&&g===l)break;x!==5&&x!==26&&x!==27||z===null||(g=z,n?(z=sn(s,i),z!=null&&r.unshift(_n(s,z,g))):n||(z=sn(s,i),z!=null&&r.push(_n(s,z,g)))),s=s.return}r.length!==0&&t.push({event:a,listeners:r})}var rp=/\r\n?/g,op=/\u0000|\uFFFD/g;function ju(t){return(typeof t=="string"?t:""+t).replace(rp,`
`).replace(op,"")}function Nu(t,a){return a=ju(a),ju(t)===a}function lt(t,a,s,l,n,i){switch(s){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||ml(t,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&ml(t,""+l);break;case"className":ii(t,"class",l);break;case"tabIndex":ii(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(t,s,l);break;case"style":Nd(t,l,i);break;case"data":if(a!=="object"){ii(t,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||s!=="href")){t.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=oi(""+l),t.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(s==="formAction"?(a!=="input"&&lt(t,a,"name",n.name,n,null),lt(t,a,"formEncType",n.formEncType,n,null),lt(t,a,"formMethod",n.formMethod,n,null),lt(t,a,"formTarget",n.formTarget,n,null)):(lt(t,a,"encType",n.encType,n,null),lt(t,a,"method",n.method,n,null),lt(t,a,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=oi(""+l),t.setAttribute(s,l);break;case"onClick":l!=null&&(t.onclick=Ga);break;case"onScroll":l!=null&&Re("scroll",t);break;case"onScrollEnd":l!=null&&Re("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(s=l.__html,s!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=s}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}s=oi(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""+l):t.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":l===!0?t.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,l):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(s,l):t.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(s):t.setAttribute(s,l);break;case"popover":Re("beforetoggle",t),Re("toggle",t),ni(t,"popover",l);break;case"xlinkActuate":Ka(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ka(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ka(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ka(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ka(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ka(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ka(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ka(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ka(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ni(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Lm.get(s)||s,ni(t,s,l))}}function yc(t,a,s,l,n,i){switch(s){case"style":Nd(t,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(s=l.__html,s!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=s}}break;case"children":typeof l=="string"?ml(t,l):(typeof l=="number"||typeof l=="bigint")&&ml(t,""+l);break;case"onScroll":l!=null&&Re("scroll",t);break;case"onScrollEnd":l!=null&&Re("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Ga);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xd.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(n=s.endsWith("Capture"),a=s.slice(2,n?s.length-7:void 0),i=t[Rt]||null,i=i!=null?i[s]:null,typeof i=="function"&&t.removeEventListener(a,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(a,l,n);break e}s in t?t[s]=l:l===!0?t.setAttribute(s,""):ni(t,s,l)}}}function zt(t,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",t),Re("load",t);var l=!1,n=!1,i;for(i in s)if(s.hasOwnProperty(i)){var r=s[i];if(r!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:lt(t,a,i,r,s,null)}}n&&lt(t,a,"srcSet",s.srcSet,s,null),l&&lt(t,a,"src",s.src,s,null);return;case"input":Re("invalid",t);var x=i=r=n=null,g=null,z=null;for(l in s)if(s.hasOwnProperty(l)){var I=s[l];if(I!=null)switch(l){case"name":n=I;break;case"type":r=I;break;case"checked":g=I;break;case"defaultChecked":z=I;break;case"value":i=I;break;case"defaultValue":x=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,a));break;default:lt(t,a,l,I,s,null)}}bd(t,i,x,g,z,r,n,!1);return;case"select":Re("invalid",t),l=r=i=null;for(n in s)if(s.hasOwnProperty(n)&&(x=s[n],x!=null))switch(n){case"value":i=x;break;case"defaultValue":r=x;break;case"multiple":l=x;default:lt(t,a,n,x,s,null)}a=i,s=r,t.multiple=!!l,a!=null?ul(t,!!l,a,!1):s!=null&&ul(t,!!l,s,!0);return;case"textarea":Re("invalid",t),i=n=l=null;for(r in s)if(s.hasOwnProperty(r)&&(x=s[r],x!=null))switch(r){case"value":l=x;break;case"defaultValue":n=x;break;case"children":i=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:lt(t,a,r,x,s,null)}gd(t,l,n,i);return;case"option":for(g in s)if(s.hasOwnProperty(g)&&(l=s[g],l!=null))switch(g){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:lt(t,a,g,l,s,null)}return;case"dialog":Re("beforetoggle",t),Re("toggle",t),Re("cancel",t),Re("close",t);break;case"iframe":case"object":Re("load",t);break;case"video":case"audio":for(l=0;l<Ln.length;l++)Re(Ln[l],t);break;case"image":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"embed":case"source":case"link":Re("error",t),Re("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in s)if(s.hasOwnProperty(z)&&(l=s[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:lt(t,a,z,l,s,null)}return;default:if(Lr(a)){for(I in s)s.hasOwnProperty(I)&&(l=s[I],l!==void 0&&yc(t,a,I,l,s,void 0));return}}for(x in s)s.hasOwnProperty(x)&&(l=s[x],l!=null&&lt(t,a,x,l,s,null))}function cp(t,a,s,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,r=null,x=null,g=null,z=null,I=null;for(K in s){var ee=s[K];if(s.hasOwnProperty(K)&&ee!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":g=ee;default:l.hasOwnProperty(K)||lt(t,a,K,null,l,ee)}}for(var H in l){var K=l[H];if(ee=s[H],l.hasOwnProperty(H)&&(K!=null||ee!=null))switch(H){case"type":i=K;break;case"name":n=K;break;case"checked":z=K;break;case"defaultChecked":I=K;break;case"value":r=K;break;case"defaultValue":x=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(o(137,a));break;default:K!==ee&&lt(t,a,H,K,l,ee)}}Rr(t,r,x,g,z,I,i,n);return;case"select":K=r=x=H=null;for(i in s)if(g=s[i],s.hasOwnProperty(i)&&g!=null)switch(i){case"value":break;case"multiple":K=g;default:l.hasOwnProperty(i)||lt(t,a,i,null,l,g)}for(n in l)if(i=l[n],g=s[n],l.hasOwnProperty(n)&&(i!=null||g!=null))switch(n){case"value":H=i;break;case"defaultValue":x=i;break;case"multiple":r=i;default:i!==g&&lt(t,a,n,i,l,g)}a=x,s=r,l=K,H!=null?ul(t,!!s,H,!1):!!l!=!!s&&(a!=null?ul(t,!!s,a,!0):ul(t,!!s,s?[]:"",!1));return;case"textarea":K=H=null;for(x in s)if(n=s[x],s.hasOwnProperty(x)&&n!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:lt(t,a,x,null,l,n)}for(r in l)if(n=l[r],i=s[r],l.hasOwnProperty(r)&&(n!=null||i!=null))switch(r){case"value":H=n;break;case"defaultValue":K=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&lt(t,a,r,n,l,i)}fd(t,H,K);return;case"option":for(var he in s)if(H=s[he],s.hasOwnProperty(he)&&H!=null&&!l.hasOwnProperty(he))switch(he){case"selected":t.selected=!1;break;default:lt(t,a,he,null,l,H)}for(g in l)if(H=l[g],K=s[g],l.hasOwnProperty(g)&&H!==K&&(H!=null||K!=null))switch(g){case"selected":t.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:lt(t,a,g,H,l,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in s)H=s[Se],s.hasOwnProperty(Se)&&H!=null&&!l.hasOwnProperty(Se)&&lt(t,a,Se,null,l,H);for(z in l)if(H=l[z],K=s[z],l.hasOwnProperty(z)&&H!==K&&(H!=null||K!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,a));break;default:lt(t,a,z,H,l,K)}return;default:if(Lr(a)){for(var nt in s)H=s[nt],s.hasOwnProperty(nt)&&H!==void 0&&!l.hasOwnProperty(nt)&&yc(t,a,nt,void 0,l,H);for(I in l)H=l[I],K=s[I],!l.hasOwnProperty(I)||H===K||H===void 0&&K===void 0||yc(t,a,I,H,l,K);return}}for(var E in s)H=s[E],s.hasOwnProperty(E)&&H!=null&&!l.hasOwnProperty(E)&&lt(t,a,E,null,l,H);for(ee in l)H=l[ee],K=s[ee],!l.hasOwnProperty(ee)||H===K||H==null&&K==null||lt(t,a,ee,H,l,K)}function vu(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var n=s[l],i=n.transferSize,r=n.initiatorType,x=n.duration;if(i&&x&&vu(r)){for(r=0,x=n.responseEnd,l+=1;l<s.length;l++){var g=s[l],z=g.startTime;if(z>x)break;var I=g.transferSize,ee=g.initiatorType;I&&vu(ee)&&(g=g.responseEnd,r+=I*(g<x?1:(x-z)/(g-z)))}if(--l,a+=8*(i+r)/(n.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var wc=null,Cc=null;function sr(t){return t.nodeType===9?t:t.ownerDocument}function ku(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yu(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Sc(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Mc=null;function xp(){var t=window.event;return t&&t.type==="popstate"?t===Mc?!1:(Mc=t,!0):(Mc=null,!1)}var wu=typeof setTimeout=="function"?setTimeout:void 0,up=typeof clearTimeout=="function"?clearTimeout:void 0,Cu=typeof Promise=="function"?Promise:void 0,mp=typeof queueMicrotask=="function"?queueMicrotask:typeof Cu<"u"?function(t){return Cu.resolve(null).then(t).catch(hp)}:wu;function hp(t){setTimeout(function(){throw t})}function Es(t){return t==="head"}function Su(t,a){var s=a,l=0;do{var n=s.nextSibling;if(t.removeChild(s),n&&n.nodeType===8)if(s=n.data,s==="/$"||s==="/&"){if(l===0){t.removeChild(n),ql(a);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")zn(t.ownerDocument.documentElement);else if(s==="head"){s=t.ownerDocument.head,zn(s);for(var i=s.firstChild;i;){var r=i.nextSibling,x=i.nodeName;i[tn]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&i.rel.toLowerCase()==="stylesheet"||s.removeChild(i),i=r}}else s==="body"&&zn(t.ownerDocument.body);s=n}while(s);ql(a)}function Mu(t,a){var s=t;t=0;do{var l=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(t===0)break;t--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||t++;s=l}while(s)}function Ac(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Ac(s),Dr(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function pp(t,a,s,l){for(;t.nodeType===1;){var n=s;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[tn])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=fa(t.nextSibling),t===null)break}return null}function bp(t,a,s){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=fa(t.nextSibling),t===null))return null;return t}function Au(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=fa(t.nextSibling),t===null))return null;return t}function Ec(t){return t.data==="$?"||t.data==="$~"}function Tc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function fp(t,a){var s=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||s.readyState!=="loading")a();else{var l=function(){a(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function fa(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var Bc=null;function Eu(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"||s==="/&"){if(a===0)return fa(t.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}t=t.nextSibling}return null}function Tu(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return t;a--}else s!=="/$"&&s!=="/&"||a++}t=t.previousSibling}return null}function Bu(t,a,s){switch(a=sr(s),t){case"html":if(t=a.documentElement,!t)throw Error(o(452));return t;case"head":if(t=a.head,!t)throw Error(o(453));return t;case"body":if(t=a.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function zn(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Dr(t)}var ga=new Map,Du=new Set;function lr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ns=U.d;U.d={f:gp,r:jp,D:Np,C:vp,L:kp,m:yp,X:Cp,S:wp,M:Sp};function gp(){var t=ns.f(),a=Yi();return t||a}function jp(t){var a=cl(t);a!==null&&a.tag===5&&a.type==="form"?Yx(a):ns.r(t)}var Hl=typeof document>"u"?null:document;function Fu(t,a,s){var l=Hl;if(l&&typeof a=="string"&&a){var n=da(a);n='link[rel="'+t+'"][href="'+n+'"]',typeof s=="string"&&(n+='[crossorigin="'+s+'"]'),Du.has(n)||(Du.add(n),t={rel:t,crossOrigin:s,href:a},l.querySelector(n)===null&&(a=l.createElement("link"),zt(a,"link",t),Et(a),l.head.appendChild(a)))}}function Np(t){ns.D(t),Fu("dns-prefetch",t,null)}function vp(t,a){ns.C(t,a),Fu("preconnect",t,a)}function kp(t,a,s){ns.L(t,a,s);var l=Hl;if(l&&t&&a){var n='link[rel="preload"][as="'+da(a)+'"]';a==="image"&&s&&s.imageSrcSet?(n+='[imagesrcset="'+da(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(n+='[imagesizes="'+da(s.imageSizes)+'"]')):n+='[href="'+da(t)+'"]';var i=n;switch(a){case"style":i=Kl(t);break;case"script":i=Gl(t)}ga.has(i)||(t=y({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:t,as:a},s),ga.set(i,t),l.querySelector(n)!==null||a==="style"&&l.querySelector(Un(i))||a==="script"&&l.querySelector(On(i))||(a=l.createElement("link"),zt(a,"link",t),Et(a),l.head.appendChild(a)))}}function yp(t,a){ns.m(t,a);var s=Hl;if(s&&t){var l=a&&typeof a.as=="string"?a.as:"script",n='link[rel="modulepreload"][as="'+da(l)+'"][href="'+da(t)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Gl(t)}if(!ga.has(i)&&(t=y({rel:"modulepreload",href:t},a),ga.set(i,t),s.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(On(i)))return}l=s.createElement("link"),zt(l,"link",t),Et(l),s.head.appendChild(l)}}}function wp(t,a,s){ns.S(t,a,s);var l=Hl;if(l&&t){var n=dl(l).hoistableStyles,i=Kl(t);a=a||"default";var r=n.get(i);if(!r){var x={loading:0,preload:null};if(r=l.querySelector(Un(i)))x.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":a},s),(s=ga.get(i))&&Dc(t,s);var g=r=l.createElement("link");Et(g),zt(g,"link",t),g._p=new Promise(function(z,I){g.onload=z,g.onerror=I}),g.addEventListener("load",function(){x.loading|=1}),g.addEventListener("error",function(){x.loading|=2}),x.loading|=4,nr(r,a,l)}r={type:"stylesheet",instance:r,count:1,state:x},n.set(i,r)}}}function Cp(t,a){ns.X(t,a);var s=Hl;if(s&&t){var l=dl(s).hoistableScripts,n=Gl(t),i=l.get(n);i||(i=s.querySelector(On(n)),i||(t=y({src:t,async:!0},a),(a=ga.get(n))&&Fc(t,a),i=s.createElement("script"),Et(i),zt(i,"link",t),s.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Sp(t,a){ns.M(t,a);var s=Hl;if(s&&t){var l=dl(s).hoistableScripts,n=Gl(t),i=l.get(n);i||(i=s.querySelector(On(n)),i||(t=y({src:t,async:!0,type:"module"},a),(a=ga.get(n))&&Fc(t,a),i=s.createElement("script"),Et(i),zt(i,"link",t),s.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Ru(t,a,s,l){var n=(n=ue.current)?lr(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=Kl(s.href),s=dl(n).hoistableStyles,l=s.get(a),l||(l={type:"style",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=Kl(s.href);var i=dl(n).hoistableStyles,r=i.get(t);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,r),(i=n.querySelector(Un(t)))&&!i._p&&(r.instance=i,r.state.loading=5),ga.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},ga.set(t,s),i||Mp(n,t,s,r.state))),a&&l===null)throw Error(o(528,""));return r}if(a&&l!==null)throw Error(o(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Gl(s),s=dl(n).hoistableScripts,l=s.get(a),l||(l={type:"script",instance:null,count:0,state:null},s.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Kl(t){return'href="'+da(t)+'"'}function Un(t){return'link[rel="stylesheet"]['+t+"]"}function Pu(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function Mp(t,a,s,l){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=t.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),zt(a,"link",s),Et(a),t.head.appendChild(a))}function Gl(t){return'[src="'+da(t)+'"]'}function On(t){return"script[async]"+t}function Lu(t,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var l=t.querySelector('style[data-href~="'+da(s.href)+'"]');if(l)return a.instance=l,Et(l),l;var n=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Et(l),zt(l,"style",n),nr(l,s.precedence,t),a.instance=l;case"stylesheet":n=Kl(s.href);var i=t.querySelector(Un(n));if(i)return a.state.loading|=4,a.instance=i,Et(i),i;l=Pu(s),(n=ga.get(n))&&Dc(l,n),i=(t.ownerDocument||t).createElement("link"),Et(i);var r=i;return r._p=new Promise(function(x,g){r.onload=x,r.onerror=g}),zt(i,"link",l),a.state.loading|=4,nr(i,s.precedence,t),a.instance=i;case"script":return i=Gl(s.src),(n=t.querySelector(On(i)))?(a.instance=n,Et(n),n):(l=s,(n=ga.get(i))&&(l=y({},s),Fc(l,n)),t=t.ownerDocument||t,n=t.createElement("script"),Et(n),zt(n,"link",l),t.head.appendChild(n),a.instance=n);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,nr(l,s.precedence,t));return a.instance}function nr(t,a,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,r=0;r<l.length;r++){var x=l[r];if(x.dataset.precedence===a)i=x;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(t,a.firstChild))}function Dc(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Fc(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var ir=null;function _u(t,a,s){if(ir===null){var l=new Map,n=ir=new Map;n.set(s,l)}else n=ir,l=n.get(s),l||(l=new Map,n.set(s,l));if(l.has(t))return l;for(l.set(t,null),s=s.getElementsByTagName(t),n=0;n<s.length;n++){var i=s[n];if(!(i[tn]||i[jt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(a)||"";r=t+r;var x=l.get(r);x?x.push(i):l.set(r,[i])}}return l}function zu(t,a,s){t=t.ownerDocument||t,t.head.insertBefore(s,a==="title"?t.querySelector("head > title"):null)}function Ap(t,a,s){if(s===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Uu(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Ep(t,a,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var n=Kl(l.href),i=a.querySelector(Un(n));if(i){a=i._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=rr.bind(t),a.then(t,t)),s.state.loading|=4,s.instance=i,Et(i);return}i=a.ownerDocument||a,l=Pu(l),(n=ga.get(n))&&Dc(l,n),i=i.createElement("link"),Et(i);var r=i;r._p=new Promise(function(x,g){r.onload=x,r.onerror=g}),zt(i,"link",l),s.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=rr.bind(t),a.addEventListener("load",s),a.addEventListener("error",s))}}var Rc=0;function Tp(t,a){return t.stylesheets&&t.count===0&&cr(t,t.stylesheets),0<t.count||0<t.imgCount?function(s){var l=setTimeout(function(){if(t.stylesheets&&cr(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+a);0<t.imgBytes&&Rc===0&&(Rc=62500*dp());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&cr(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>Rc?50:800)+a);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function rr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var or=null;function cr(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,or=new Map,a.forEach(Bp,t),or=null,rr.call(t))}function Bp(t,a){if(!(a.state.loading&4)){var s=or.get(t);if(s)var l=s.get(null);else{s=new Map,or.set(t,s);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var r=n[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(s.set(r.dataset.precedence,r),l=r)}l&&s.set(null,l)}n=a.instance,r=n.getAttribute("data-precedence"),i=s.get(r)||l,i===l&&s.set(null,n),s.set(r,n),this.count++,l=rr.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),a.state.loading|=4}}var Hn={$$typeof:_,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Dp(t,a,s,l,n,i,r,x,g){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.hiddenUpdates=Xl(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Ou(t,a,s,l,n,i,r,x,g,z,I,ee){return t=new Dp(t,a,s,r,g,z,I,ee,x),a=1,i===!0&&(a|=24),i=ta(3,null,null,a),t.current=i,i.stateNode=t,a=mo(),a.refCount++,t.pooledCache=a,a.refCount++,i.memoizedState={element:l,isDehydrated:s,cache:a},fo(i),t}function Hu(t){return t?(t=Nl,t):Nl}function Ku(t,a,s,l,n,i){n=Hu(n),l.context===null?l.context=n:l.pendingContext=n,l=gs(a),l.payload={element:s},i=i===void 0?null:i,i!==null&&(l.callback=i),s=js(t,l,a),s!==null&&(Qt(s,t,a),jn(s,t,a))}function Gu(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<a?s:a}}function Pc(t,a){Gu(t,a),(t=t.alternate)&&Gu(t,a)}function qu(t){if(t.tag===13||t.tag===31){var a=$s(t,67108864);a!==null&&Qt(a,t,67108864),Pc(t,67108864)}}function Vu(t){if(t.tag===13||t.tag===31){var a=ia();a=Zl(a);var s=$s(t,a);s!==null&&Qt(s,t,a),Pc(t,a)}}var dr=!0;function Fp(t,a,s,l){var n=k.T;k.T=null;var i=U.p;try{U.p=2,Lc(t,a,s,l)}finally{U.p=i,k.T=n}}function Rp(t,a,s,l){var n=k.T;k.T=null;var i=U.p;try{U.p=8,Lc(t,a,s,l)}finally{U.p=i,k.T=n}}function Lc(t,a,s,l){if(dr){var n=_c(l);if(n===null)kc(t,a,l,xr,s),Ju(t,l);else if(Lp(n,t,a,s,l))l.stopPropagation();else if(Ju(t,l),a&4&&-1<Pp.indexOf(t)){for(;n!==null;){var i=cl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Da(i.pendingLanes);if(r!==0){var x=i;for(x.pendingLanes|=2,x.entangledLanes|=2;r;){var g=1<<31-V(r);x.entanglements[1]|=g,r&=~g}La(i),(Je&6)===0&&(Ji=ve()+500,Pn(0))}}break;case 31:case 13:x=$s(i,2),x!==null&&Qt(x,i,2),Yi(),Pc(i,2)}if(i=_c(l),i===null&&kc(t,a,l,xr,s),i===n)break;n=i}n!==null&&l.stopPropagation()}else kc(t,a,l,null,s)}}function _c(t){return t=zr(t),zc(t)}var xr=null;function zc(t){if(xr=null,t=ol(t),t!==null){var a=M(t);if(a===null)t=null;else{var s=a.tag;if(s===13){if(t=C(a),t!==null)return t;t=null}else if(s===31){if(t=u(a),t!==null)return t;t=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return xr=t,null}function $u(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(We()){case Mt:return 2;case Oa:return 8;case Zt:case zs:return 32;case os:return 268435456;default:return 32}default:return 32}}var Uc=!1,Ts=null,Bs=null,Ds=null,Kn=new Map,Gn=new Map,Fs=[],Pp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ju(t,a){switch(t){case"focusin":case"focusout":Ts=null;break;case"dragenter":case"dragleave":Bs=null;break;case"mouseover":case"mouseout":Ds=null;break;case"pointerover":case"pointerout":Kn.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gn.delete(a.pointerId)}}function qn(t,a,s,l,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:a,domEventName:s,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},a!==null&&(a=cl(a),a!==null&&qu(a)),t):(t.eventSystemFlags|=l,a=t.targetContainers,n!==null&&a.indexOf(n)===-1&&a.push(n),t)}function Lp(t,a,s,l,n){switch(a){case"focusin":return Ts=qn(Ts,t,a,s,l,n),!0;case"dragenter":return Bs=qn(Bs,t,a,s,l,n),!0;case"mouseover":return Ds=qn(Ds,t,a,s,l,n),!0;case"pointerover":var i=n.pointerId;return Kn.set(i,qn(Kn.get(i)||null,t,a,s,l,n)),!0;case"gotpointercapture":return i=n.pointerId,Gn.set(i,qn(Gn.get(i)||null,t,a,s,l,n)),!0}return!1}function Iu(t){var a=ol(t.target);if(a!==null){var s=M(a);if(s!==null){if(a=s.tag,a===13){if(a=C(s),a!==null){t.blockedOn=a,at(t.priority,function(){Vu(s)});return}}else if(a===31){if(a=u(s),a!==null){t.blockedOn=a,at(t.priority,function(){Vu(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ur(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var s=_c(t.nativeEvent);if(s===null){s=t.nativeEvent;var l=new s.constructor(s.type,s);_r=l,s.target.dispatchEvent(l),_r=null}else return a=cl(s),a!==null&&qu(a),t.blockedOn=s,!1;a.shift()}return!0}function Yu(t,a,s){ur(t)&&s.delete(a)}function _p(){Uc=!1,Ts!==null&&ur(Ts)&&(Ts=null),Bs!==null&&ur(Bs)&&(Bs=null),Ds!==null&&ur(Ds)&&(Ds=null),Kn.forEach(Yu),Gn.forEach(Yu)}function mr(t,a){t.blockedOn===a&&(t.blockedOn=null,Uc||(Uc=!0,h.unstable_scheduleCallback(h.unstable_NormalPriority,_p)))}var hr=null;function Wu(t){hr!==t&&(hr=t,h.unstable_scheduleCallback(h.unstable_NormalPriority,function(){hr===t&&(hr=null);for(var a=0;a<t.length;a+=3){var s=t[a],l=t[a+1],n=t[a+2];if(typeof l!="function"){if(zc(l||s)===null)continue;break}var i=cl(s);i!==null&&(t.splice(a,3),a-=3,_o(i,{pending:!0,data:n,method:s.method,action:l},l,n))}}))}function ql(t){function a(g){return mr(g,t)}Ts!==null&&mr(Ts,t),Bs!==null&&mr(Bs,t),Ds!==null&&mr(Ds,t),Kn.forEach(a),Gn.forEach(a);for(var s=0;s<Fs.length;s++){var l=Fs[s];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Fs.length&&(s=Fs[0],s.blockedOn===null);)Iu(s),s.blockedOn===null&&Fs.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var n=s[l],i=s[l+1],r=n[Rt]||null;if(typeof i=="function")r||Wu(s);else if(r){var x=null;if(i&&i.hasAttribute("formAction")){if(n=i,r=i[Rt]||null)x=r.formAction;else if(zc(n)!==null)continue}else x=r.action;typeof x=="function"?s[l+1]=x:(s.splice(l,3),l-=3),Wu(s)}}}function Qu(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return n=r})},focusReset:"manual",scroll:"manual"})}function a(){n!==null&&(n(),n=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),n!==null&&(n(),n=null)}}}function Oc(t){this._internalRoot=t}pr.prototype.render=Oc.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(o(409));var s=a.current,l=ia();Ku(s,l,t,a,null,null)},pr.prototype.unmount=Oc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Ku(t.current,2,null,t,null,null),Yi(),a[xs]=null}};function pr(t){this._internalRoot=t}pr.prototype.unstable_scheduleHydration=function(t){if(t){var a=p();t={blockedOn:null,target:t,priority:a};for(var s=0;s<Fs.length&&a!==0&&a<Fs[s].priority;s++);Fs.splice(s,0,t),s===0&&Iu(t)}};var Xu=j.version;if(Xu!=="19.2.8")throw Error(o(527,Xu,"19.2.8"));U.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=f(a),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var zp={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!br.isDisabled&&br.supportsFiber)try{Qe=br.inject(zp),Ue=br}catch{}}return $n.createRoot=function(t,a){if(!S(t))throw Error(o(299));var s=!1,l="",n=n0,i=i0,r=r0;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(r=a.onRecoverableError)),a=Ou(t,1,!1,null,null,s,l,null,n,i,r,Qu),t[xs]=a.current,vc(t),new Oc(a)},$n.hydrateRoot=function(t,a,s){if(!S(t))throw Error(o(299));var l=!1,n="",i=n0,r=i0,x=r0,g=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(n=s.identifierPrefix),s.onUncaughtError!==void 0&&(i=s.onUncaughtError),s.onCaughtError!==void 0&&(r=s.onCaughtError),s.onRecoverableError!==void 0&&(x=s.onRecoverableError),s.formState!==void 0&&(g=s.formState)),a=Ou(t,1,!0,a,s??null,l,n,g,i,r,x,Qu),a.context=Hu(null),s=a.current,l=ia(),l=Zl(l),n=gs(l),n.callback=null,js(s,n,l),s=l,a.current.lanes=s,Ha(a,s),La(a),t[xs]=a.current,vc(t),new pr(a)},$n.version="19.2.8",$n}var om;function Yp(){if(om)return Gc.exports;om=1;function h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h)}catch(j){console.error(j)}}return h(),Gc.exports=Ip(),Gc.exports}var Wp=Yp();/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qp=h=>h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xp=h=>h.replace(/^([A-Z])|[\s-_]+(\w)/g,(j,m,o)=>o?o.toUpperCase():m.toLowerCase()),cm=h=>{const j=Xp(h);return j.charAt(0).toUpperCase()+j.slice(1)},gm=(...h)=>h.filter((j,m,o)=>!!j&&j.trim()!==""&&o.indexOf(j)===m).join(" ").trim(),Zp=h=>{for(const j in h)if(j.startsWith("aria-")||j==="role"||j==="title")return!0};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var eb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tb=d.forwardRef(({color:h="currentColor",size:j=24,strokeWidth:m=2,absoluteStrokeWidth:o,className:S="",children:M,iconNode:C,...u},b)=>d.createElement("svg",{ref:b,...eb,width:j,height:j,stroke:h,strokeWidth:o?Number(m)*24/Number(j):m,className:gm("lucide",S),...!M&&!Zp(u)&&{"aria-hidden":"true"},...u},[...C.map(([f,A])=>d.createElement(f,A)),...Array.isArray(M)?M:[M]]));/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q=(h,j)=>{const m=d.forwardRef(({className:o,...S},M)=>d.createElement(tb,{ref:M,iconNode:j,className:gm(`lucide-${Qp(cm(h))}`,`lucide-${h}`,o),...S}));return m.displayName=cm(h),m};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],jr=q("arrow-down",ab);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],nd=q("arrow-left",sb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lb=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],dm=q("arrow-right-left",lb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Kt=q("arrow-right",nb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ib=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$e=q("arrow-up",ib);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rb=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Nr=q("award",rb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ob=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],cb=q("bell",ob);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const db=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],xb=q("book-open",db);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ub=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],mb=q("bookmark",ub);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hb=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],fr=q("box",hb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pb=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],id=q("briefcase",pb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bb=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],is=q("building-2",bb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fb=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],jm=q("building",fb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gb=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Nm=q("calculator",gb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Aa=q("calendar-days",jb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ie=q("calendar",Nb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vb=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],gr=q("camera",vb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Jn=q("car",kb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yb=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Mr=q("chart-column",yb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Me=q("check",wb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ye=q("chevron-down",Cb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ra=q("chevron-left",Sb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],it=q("chevron-right",Mb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ab=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Eb=q("chevron-up",Ab);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Il=q("circle-alert",Tb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bb=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],vm=q("circle-check-big",Bb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Db=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ge=q("circle-check",Db);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],xm=q("circle-pause",Fb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],km=q("circle-question-mark",Rb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ym=q("circle-x",Pb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Vt=q("clock",Lb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _b=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],zb=q("cloud-upload",_b);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ub=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Ob=q("code",Ub);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ua=q("copy",Hb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Ht=q("credit-card",Kb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gb=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],_a=q("crown",Gb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qb=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],rd=q("dollar-sign",qb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vb=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Yl=q("download",Vb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $b=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Ea=q("ellipsis-vertical",$b);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jb=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Ib=q("ellipsis",Jb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Wl=q("external-link",Yb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wb=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Dt=q("eye",Wb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qb=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Xb=q("facebook",Qb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zb=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],ef=q("file-code",Zb);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tf=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],af=q("file-spreadsheet",tf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sf=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ja=q("file-text",sf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lf=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Jc=q("folder-plus",lf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nf=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],rf=q("folder",nf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const of=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Ta=q("funnel",of);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cf=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],df=q("gem",cf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xf=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],Yc=q("gift",xf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uf=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],mt=q("globe",uf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mf=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],hf=q("hard-drive",mf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pf=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],$l=q("heart",pf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bf=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],wm=q("history",bf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ff=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],vr=q("house",ff);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gf=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Xn=q("image",gf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jf=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],od=q("info",jf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nf=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],il=q("instagram",Nf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vf=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],kf=q("key-round",vf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yf=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],wf=q("key",yf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cf=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Sf=q("laptop",Cf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mf=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],za=q("layers",Mf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Af=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],kr=q("layout-dashboard",Af);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ef=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Wc=q("layout-grid",Ef);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tf=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],um=q("lightbulb",Tf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bf=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Qc=q("link-2",Bf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Df=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Ff=q("link",Df);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rf=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Pf=q("list",Rf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lf=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Xc=q("lock",Lf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _f=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],zf=q("log-in",_f);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uf=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Zc=q("log-out",Uf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Of=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ql=q("mail",Of);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hf=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Ut=q("map-pin",Hf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kf=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Gf=q("map",Kf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qf=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],Vf=q("megaphone",qf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $f=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Jf=q("menu",$f);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const If=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],In=q("message-circle",If);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yf=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],yr=q("message-square",Yf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wf=[["path",{d:"M5 12h14",key:"1ays0h"}]],mm=q("minus",Wf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qf=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],hm=q("monitor",Qf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xf=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Zf=q("moon",Xf);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eg=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],tg=q("move-vertical",eg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ag=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Ps=q("package",ag);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sg=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],lg=q("palette",sg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ng=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],pm=q("panels-top-left",ng);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ig=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Sa=q("pen-line",ig);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rg=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],og=q("pen",rg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cg=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],dg=q("pencil",cg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xg=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],va=q("phone",xg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ug=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ed=q("play",ug);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ct=q("plus",mg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hg=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],pg=q("qr-code",hg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bg=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],fg=q("receipt",bg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gg=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ls=q("refresh-cw",gg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jg=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Cm=q("rotate-ccw",jg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ng=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Vl=q("save",Ng);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vg=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],kg=q("scissors",vg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Gt=q("search",yg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wg=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],wr=q("send",wg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cg=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Sg=q("server",Cg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mg=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Cr=q("share-2",Mg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ag=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Eg=q("shield-alert",Ag);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tg=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jl=q("shield-check",Tg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bg=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Ar=q("shield",Bg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dg=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Fg=q("shopping-bag",Dg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rg=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],td=q("sliders-vertical",Rg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pg=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Zn=q("sliders-horizontal",Pg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lg=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Sr=q("smartphone",Lg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _g=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],zg=q("smile",_g);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ug=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ke=q("sparkles",Ug);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Og=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],Hg=q("sprout",Og);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kg=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Gg=q("square-check-big",Kg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qg=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],rs=q("square-pen",qg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vg=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Bt=q("star",Vg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $g=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],ei=q("store",$g);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jg=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ig=q("sun",Jg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yg=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Ma=q("tag",Yg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Qg=q("target",Wg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xg=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],ka=q("trash-2",Xg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zg=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],e1=q("trending-down",Zg);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Xt=q("trending-up",t1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Sm=q("triangle-alert",a1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s1=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Yn=q("upload",s1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l1=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Na=q("user-check",l1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n1=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],i1=q("user-cog",n1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],nl=q("user-plus",r1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o1=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],c1=q("user-round-check",o1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],ad=q("user-x",d1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],_s=q("user",x1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],St=q("users",u1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m1=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],h1=q("video",m1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p1=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],Wn=q("wallet",p1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tt=q("x",b1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f1=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Mm=q("youtube",f1);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Qn=q("zap",g1),j1=[{id:"1",name:"Glow Bridal Studio",domain:"glowbridal.muakita.com",package:"Enterprise",revenue:2845e4,growth:28.6,status:"Aktif",logoColor:"#EC167F"},{id:"2",name:"Lovely Makeup Artist",domain:"lovely.muakita.com",package:"Pro",revenue:2278e4,growth:18.7,status:"Aktif",logoColor:"#8B5CF6"},{id:"3",name:"Cantik Salon & Beauty",domain:"cantiksalon.muakita.com",package:"Pro",revenue:1895e4,growth:16.2,status:"Aktif",logoColor:"#3B82F6"},{id:"4",name:"Aura Wedding Organizer",domain:"aura.wo.muakita.com",package:"Enterprise",revenue:1686e4,growth:12.5,status:"Aktif",logoColor:"#10B981"},{id:"5",name:"Naya Makeup Studio",domain:"naya.muakita.com",package:"Basic",revenue:1432e4,growth:9.8,status:"Aktif",logoColor:"#F59E0B"}],N1=[{id:"a1",type:"register",title:"Tenant baru terdaftar: Beauty Classy",sub:"Paket Basic",time:"10 menit lalu",iconBg:"bg-purple-100",iconColor:"text-purple-600"},{id:"a2",type:"payment",title:"Pembayaran berhasil dari Glow Bridal Studio",sub:"Rp2.750.000 - Paket Pro",time:"30 menit lalu",iconBg:"bg-emerald-100",iconColor:"text-emerald-600"},{id:"a3",type:"upgrade",title:"Tenant Upgrade: Cantik Salon & Beauty",sub:"Basic → Pro",time:"1 jam lalu",iconBg:"bg-blue-100",iconColor:"text-blue-600"},{id:"a4",type:"pending",title:"Pembayaran pending dari Naya Makeup Studio",sub:"Rp1.250.000 - Paket Basic",time:"2 jam lalu",iconBg:"bg-amber-100",iconColor:"text-amber-600"},{id:"a5",type:"register",title:"Tenant baru terdaftar: Elegant MUA",sub:"Paket Gratis",time:"3 jam lalu",iconBg:"bg-slate-100",iconColor:"text-slate-600"}],v1=[{id:"r1",name:"Maya Salsabila",service:"Wedding Gold",date:"24 Mei 2025",status:"Dikonfirmasi",payment:"Lunas"},{id:"r2",name:"Anisa Rahma",service:"Trial Makeup",date:"24 Mei 2025",status:"Menunggu DP",payment:"DP 50%"},{id:"r3",name:"Fahira Nur",service:"Makeup Graduation",date:"25 Mei 2025",status:"Menunggu",payment:"Belum Bayar"},{id:"r4",name:"Clara Dewi",service:"Hairdo",date:"25 Mei 2025",status:"Dikonfirmasi",payment:"Lunas"},{id:"r5",name:"Nadia Putri",service:"Party Makeup",date:"26 Mei 2025",status:"Draft",payment:"Belum Bayar"}],k1=[{id:"dashboard",label:"Dashboard",icon:kr},{id:"tenant",label:"Manajemen Tenant",icon:is},{id:"paket",label:"Manajemen Paket",icon:Ps},{id:"pembayaran",label:"Pembayaran",icon:Ht},{id:"promosi",label:"Promosi Platform",icon:Ma},{id:"master",label:"Master Sistem",icon:Sg},{id:"cms",label:"CMS",icon:ja},{id:"pengaturan_platform",label:"Pengaturan Platform",icon:Zn},{id:"laporan",label:"Laporan & Analitik",icon:Mr},{id:"log",label:"Log Aktivitas",icon:wm},{id:"admin",label:"Manajemen Pengguna",icon:Na},{id:"akun",label:"Pengaturan Akun",icon:i1}],y1=[{id:"dashboard",label:"Dashboard",icon:kr},{id:"website",label:"Website",icon:mt,children:[{id:"website_dashboard",label:"Dashboard Website"},{id:"website_preview",label:"Preview Web"},{id:"website_edit",label:"Edit Halaman"},{id:"website_konten",label:"Kelola Konten"},{id:"website_seo",label:"SEO & Pengaturan"},{id:"website_domain",label:"Domain"},{id:"website_analytics",label:"Analytics"}]},{id:"reservasi_group",label:"Reservasi",icon:Aa,children:[{id:"reservasi_kalender",label:"Kalender"},{id:"create_reservation",label:"Buat Reservasi"},{id:"estimasi_transport",label:"Estimasi Transport"},{id:"form_publik",label:"Form Publik"},{id:"reservasi",label:"Daftar Reservasi"}]},{id:"pelanggan",label:"Pelanggan",icon:St},{id:"layanan_group",label:"Layanan",icon:Ke,children:[{id:"layanan",label:"Katalog Layanan"},{id:"layanan_kategori",label:"Kategori Layanan"}]},{id:"event",label:"Wedding",icon:$l},{id:"tim",label:"Tim",icon:Na},{id:"keuangan",label:"Keuangan",icon:rd},{id:"inventaris_group",label:"Inventaris",icon:Ps,children:[{id:"inventaris",label:"Daftar Item & Stok"},{id:"inventaris_kategori",label:"Kategori Inventaris"}]},{id:"pemasaran",label:"Pemasaran",icon:Ma,badge:"Baru"},{id:"laporan",label:"Laporan",icon:Mr},{id:"pengaturan_group",label:"Pengaturan",icon:Zn,children:[{id:"pengaturan",label:"Semua Pengaturan"},{id:"pengaturan_profil",label:"Profil & Branding"},{id:"pengaturan_operasional",label:"Jam Buka"},{id:"pengaturan_form_publik",label:"Form Publik"},{id:"pengaturan_rekening",label:"Rekening Bank"}]}],w1=({message:h})=>h?e.jsxs("div",{className:"fixed top-5 right-5 z-50 bg-slate-900 text-white px-4 py-2.5 rounded-xl shadow-xl border border-slate-800 text-xs font-semibold flex items-center gap-2 animate-bounce",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-400"}),h]}):null,C1=({role:h,setRole:j,isSidebarOpen:m,setIsSidebarOpen:o,searchQuery:S,setSearchQuery:M,isDarkMode:C,setIsDarkMode:u,onOpenAddModal:b,triggerToast:f,setActiveTab:A,onLogout:y})=>{const[R,W]=d.useState(!1);return e.jsxs("header",{className:"h-14 bg-white border-b border-slate-200/80 flex items-center justify-between px-3 sm:px-5 shrink-0 z-10 sticky top-0",children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0",children:[y&&e.jsxs("button",{onClick:y,className:"px-2.5 py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-700 rounded-xl text-xs font-bold transition-colors flex items-center gap-1.5 shrink-0 cursor-pointer",title:"Kembali ke Landing Page",children:[e.jsx(vr,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{className:"hidden sm:inline",children:"Landing Page"})]}),e.jsxs("div",{className:"flex items-center gap-2 sm:hidden shrink-0",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-[#EC167F] flex items-center justify-center text-white font-black shadow-2xs",children:e.jsx(Ke,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"font-extrabold text-sm tracking-tight text-slate-900",children:"MuaKita"})]}),e.jsxs("div",{className:"flex items-center bg-slate-100 p-0.5 rounded-xl border border-slate-200/70 shrink-0",children:[e.jsxs("button",{onClick:()=>{j("superadmin"),A("dashboard"),f("Role diset: Super Admin")},className:`px-2 py-1 sm:px-2.5 rounded-lg text-[11px] sm:text-xs font-bold transition-all flex items-center gap-1 sm:gap-1.5 cursor-pointer ${h==="superadmin"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(Ar,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5"}),e.jsx("span",{className:"text-[10px] sm:text-xs",children:"Superadmin"})]}),e.jsxs("button",{onClick:()=>{j("owner"),A("dashboard"),f("Role diset: Bisnis Owner")},className:`px-2 py-1 sm:px-2.5 rounded-lg text-[11px] sm:text-xs font-bold transition-all flex items-center gap-1 sm:gap-1.5 cursor-pointer ${h==="owner"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(id,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5"}),e.jsx("span",{className:"text-[10px] sm:text-xs",children:"Owner"})]})]}),e.jsxs("div",{className:"relative max-w-sm hidden md:block",children:[e.jsx("input",{type:"text",placeholder:h==="superadmin"?"Cari tenant, pengguna, paket...":"Cari reservasi, pelanggan...",value:S,onChange:G=>M(G.target.value),className:"pl-8 pr-10 py-1.5 bg-slate-100/80 border border-slate-200/60 rounded-xl text-xs w-56 focus:w-64 transition-all text-slate-700 focus:outline-none focus:ring-2 focus:ring-pink-500/20 focus:bg-white"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-2.5"}),e.jsx("kbd",{className:"absolute right-2.5 top-2 px-1.5 py-0.5 text-[9px] font-mono text-slate-400 bg-white rounded border border-slate-200 shadow-2xs",children:"⌘K"})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 shrink-0",children:[e.jsxs("button",{onClick:b,className:"bg-[#EC167F] hover:bg-[#D41270] text-white text-xs font-bold px-2.5 py-1.5 sm:px-3 rounded-xl shadow-xs transition-all flex items-center gap-1 active:scale-95 cursor-pointer",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden xs:inline sm:inline",children:h==="superadmin"?"Buat Tenant":"Buat Reservasi"})]}),e.jsxs("button",{className:"w-7 h-7 sm:w-8 sm:h-8 rounded-xl bg-slate-50 hover:bg-slate-100 border border-slate-200/70 flex items-center justify-center relative text-slate-600 transition-colors cursor-pointer",children:[e.jsx(cb,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"}),e.jsx("span",{className:"absolute -top-1 -right-1 bg-[#EC167F] text-white text-[8px] sm:text-[9px] font-extrabold w-3.5 h-3.5 sm:w-4 sm:h-4 rounded-full flex items-center justify-center ring-2 ring-white",children:h==="superadmin"?"12":"8"})]}),e.jsxs("button",{className:"w-8 h-8 rounded-xl bg-slate-50 hover:bg-slate-100 border border-slate-200/70 hidden sm:flex items-center justify-center relative text-slate-600 transition-colors cursor-pointer",children:[e.jsx(yr,{className:"w-4 h-4"}),e.jsx("span",{className:"absolute -top-1 -right-1 bg-[#EC167F] text-white text-[9px] font-extrabold w-4 h-4 rounded-full flex items-center justify-center ring-2 ring-white",children:"3"})]}),e.jsx("button",{onClick:()=>u(!C),className:"w-7 h-7 sm:w-8 sm:h-8 rounded-xl bg-slate-50 hover:bg-slate-100 border border-slate-200/70 flex items-center justify-center text-slate-600 transition-colors cursor-pointer",children:C?e.jsx(Ig,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 text-amber-500"}):e.jsx(Zf,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})}),e.jsxs("div",{className:"relative flex items-center gap-1.5 sm:gap-2 pl-1.5 sm:pl-2 border-l border-slate-200",children:[e.jsxs("button",{onClick:()=>W(!R),className:"flex items-center gap-1.5 sm:gap-2 cursor-pointer focus:outline-none",children:[e.jsx("div",{className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full bg-slate-800 text-white flex items-center justify-center font-bold text-xs shadow-xs overflow-hidden ring-2 ring-transparent hover:ring-pink-300 transition-all",children:e.jsx("img",{src:h==="superadmin"?"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=120":"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120",alt:"Avatar",referrerPolicy:"no-referrer",onError:G=>{G.currentTarget.src=`https://ui-avatars.com/api/?name=${h==="superadmin"?"Reza+Setiawan":"Reza+Amelia"}&background=fce7f3&color=ec167f&bold=true`},className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"hidden md:flex flex-col text-left",children:[e.jsx("span",{className:"text-xs font-bold text-slate-900 leading-tight",children:h==="superadmin"?"Reza Setiawan":"Reza Amelia"}),e.jsx("span",{className:"text-[10px] text-slate-500 leading-tight",children:h==="superadmin"?"Super Admin":"Beauty Studio"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 hidden md:block"})]}),R&&e.jsxs("div",{className:"absolute right-0 top-10 w-48 bg-white border border-slate-200 shadow-xl rounded-2xl p-1.5 z-50 text-xs space-y-1 animate-in fade-in zoom-in-95 duration-150",children:[e.jsxs("div",{className:"px-3 py-2 border-b border-slate-100",children:[e.jsx("p",{className:"font-extrabold text-slate-900 truncate",children:h==="superadmin"?"Reza Setiawan":"Reza Amelia"}),e.jsx("p",{className:"text-[10px] text-slate-500 font-medium truncate",children:h==="superadmin"?"admin@muakita.com":"owner@rezaameliamua.com"})]}),e.jsxs("button",{onClick:()=>{W(!1),f("Buka Pengaturan Akun")},className:"w-full text-left px-3 py-2 text-slate-700 hover:bg-slate-50 rounded-xl font-bold flex items-center gap-2 cursor-pointer transition-colors",children:[e.jsx(Na,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Pengaturan Akun"})]}),e.jsx("div",{className:"border-t border-slate-100 pt-1",children:e.jsxs("button",{onClick:()=>{W(!1),y&&y()},className:"w-full text-left px-3 py-2 text-rose-600 hover:bg-rose-50 rounded-xl font-bold flex items-center gap-2 cursor-pointer transition-colors",children:[e.jsx(Zc,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Keluar (Logout)"})]})})]}),y&&e.jsxs("button",{onClick:y,className:"p-1.5 rounded-xl bg-slate-50 hover:bg-rose-50 text-slate-500 hover:text-rose-600 border border-slate-200/80 transition-colors cursor-pointer hidden sm:flex items-center gap-1",title:"Keluar dari Akun",children:[e.jsx(Zc,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"text-[11px] font-bold hidden lg:inline",children:"Keluar"})]})]})]})]})},S1=({role:h,setRole:j,isSidebarOpen:m,setIsSidebarOpen:o,showRoleDropdown:S,setShowRoleDropdown:M,activeTab:C,setActiveTab:u,menus:b,triggerToast:f,onLogout:A})=>{const[y,R]=d.useState({tenant_group:!0,website:!0,reservasi_group:!0,inventaris_group:!0,pelanggan_group:!1,layanan_group:!1,pengaturan_group:!0}),W=G=>{R(ae=>({...ae,[G]:!ae[G]}))};return e.jsxs("aside",{className:`bg-white border-r border-slate-200/80 hidden sm:flex flex-col shrink-0 transition-all duration-300 ${m?"w-[230px]":"w-[68px]"}`,children:[e.jsxs("div",{className:"p-3.5 flex items-center justify-between border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-[#EC167F] flex items-center justify-center text-white font-black text-sm shadow-xs shrink-0",children:e.jsx(Ke,{className:"w-4 h-4"})}),m&&e.jsxs("div",{className:"flex items-center gap-1.5 relative",children:[e.jsx("span",{className:"font-extrabold text-base tracking-tight text-slate-900",children:"MuaKita"}),e.jsxs("button",{onClick:()=>M(!S),className:`text-[9px] font-bold px-1.5 py-0.5 rounded-md flex items-center gap-1 transition-colors cursor-pointer ${h==="superadmin"?"bg-pink-100 text-[#EC167F] hover:bg-pink-200":"bg-rose-100 text-rose-700 hover:bg-rose-200"}`,children:[e.jsx("span",{children:h==="superadmin"?"Super Admin":"Owner"}),e.jsx(ye,{className:"w-2.5 h-2.5"})]}),S&&e.jsxs("div",{className:"absolute top-7 left-0 w-44 bg-white border border-slate-200 shadow-xl rounded-xl p-1 z-50 text-xs",children:[e.jsx("div",{className:"px-2 py-1 text-[10px] font-bold text-slate-400 uppercase border-b border-slate-100",children:"Pilih Role Demo"}),e.jsxs("button",{onClick:()=>{j("superadmin"),u("dashboard"),M(!1),f("Switch ke role: Super Admin")},className:`w-full text-left px-2.5 py-1.5 rounded-lg flex items-center gap-2 font-bold cursor-pointer ${h==="superadmin"?"bg-pink-50 text-[#EC167F]":"text-slate-700 hover:bg-slate-50"}`,children:[e.jsx(Ar,{className:"w-3.5 h-3.5"})," Super Admin"]}),e.jsxs("button",{onClick:()=>{j("owner"),u("dashboard"),M(!1),f("Switch ke role: Bisnis Owner")},className:`w-full text-left px-2.5 py-1.5 rounded-lg flex items-center gap-2 font-bold cursor-pointer ${h==="owner"?"bg-pink-50 text-[#EC167F]":"text-slate-700 hover:bg-slate-50"}`,children:[e.jsx(id,{className:"w-3.5 h-3.5"})," Bisnis Owner"]})]})]})]}),e.jsx("button",{onClick:()=>o(!m),className:"p-1 hover:bg-slate-100 rounded-lg text-slate-400 transition-colors hidden sm:block cursor-pointer",children:e.jsx(ra,{className:`w-4 h-4 transition-transform ${m?"":"rotate-180"}`})})]}),e.jsxs("nav",{className:"flex-1 px-2 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[b.map(G=>{const ae=G.icon,xe=G.children&&G.children.length>0,$=C===G.id||xe&&G.children.some(D=>D.id===C),T=y[G.id]??$;if(xe)return e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("button",{onClick:()=>{W(G.id),!T&&G.children&&G.children.length>0},className:`w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-xl text-xs font-semibold transition-all relative cursor-pointer ${$?"bg-pink-50/80 text-[#EC167F] font-bold":"text-slate-600 hover:bg-slate-50 hover:text-slate-900"}`,children:[e.jsx(ae,{className:`w-4 h-4 shrink-0 ${$?"text-[#EC167F]":"text-slate-500"}`}),m&&e.jsx("span",{className:"truncate",children:G.label}),m&&e.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[G.badge&&e.jsx("span",{className:"text-[9px] font-extrabold px-1.5 py-0.2 rounded-md bg-rose-100 text-rose-600",children:G.badge}),T?e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400"}):e.jsx(it,{className:"w-3.5 h-3.5 text-slate-400"})]})]}),T&&m&&e.jsx("div",{className:"pl-6 pr-1 space-y-0.5 py-1 border-l-2 border-pink-100 ml-4",children:G.children.map(D=>{const Y=C===D.id;return e.jsxs("button",{onClick:()=>u(D.id),className:`w-full text-left px-2.5 py-1.5 rounded-lg text-xs font-medium transition-all flex items-center justify-between cursor-pointer ${Y?"text-[#EC167F] font-extrabold bg-pink-50/90 shadow-2xs":"text-slate-500 hover:text-slate-900 hover:bg-slate-50"}`,children:[e.jsx("span",{className:"truncate",children:D.label}),Y&&e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#EC167F]"})]},D.id)})})]},G.id);const _=C===G.id;return e.jsxs("button",{onClick:()=>u(G.id),className:`w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-xl text-xs font-semibold transition-all relative cursor-pointer ${_?"bg-pink-50/80 text-[#EC167F]":"text-slate-600 hover:bg-slate-50 hover:text-slate-900"}`,children:[e.jsx(ae,{className:`w-4 h-4 shrink-0 ${_?"text-[#EC167F]":"text-slate-500"}`}),m&&e.jsx("span",{className:"truncate",children:G.label}),m&&G.badge&&e.jsx("span",{className:`ml-auto text-[9px] font-extrabold px-1.5 py-0.2 rounded-md ${G.badge==="Baru"?"bg-rose-100 text-rose-600":"bg-purple-100 text-purple-600"}`,children:G.badge}),_&&m&&!G.badge&&e.jsx("div",{className:"ml-auto w-1.5 h-1.5 rounded-full bg-[#EC167F]"})]},G.id)}),A&&e.jsx("div",{className:"pt-2 mt-2 border-t border-slate-100",children:e.jsxs("button",{onClick:A,className:"w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-xl text-xs font-semibold text-rose-600 hover:bg-rose-50 transition-all cursor-pointer",title:"Keluar dari Akun",children:[e.jsx(Zc,{className:"w-4 h-4 shrink-0 text-rose-500"}),m&&e.jsx("span",{className:"truncate font-bold",children:"Keluar (Logout)"})]})})]}),m&&h==="owner"&&e.jsxs("div",{className:"m-2.5 p-3 rounded-2xl bg-gradient-to-br from-slate-50 to-pink-50/50 border border-slate-200/80",children:[e.jsx("div",{className:"flex items-center justify-between mb-1",children:e.jsxs("span",{className:"text-xs font-extrabold text-slate-900 flex items-center gap-1",children:[e.jsx(_a,{className:"w-3.5 h-3.5 text-amber-500 fill-amber-500"})," Paket Pro"]})}),e.jsx("p",{className:"text-[10px] text-slate-500 mb-2",children:"Berakhir 31 Mei 2025"}),e.jsxs("div",{className:"space-y-1 mb-2.5",children:[e.jsxs("div",{className:"flex justify-between text-[10px] text-slate-600 font-medium",children:[e.jsx("span",{children:"Kapasitas Storage"}),e.jsx("span",{className:"font-bold",children:"68 / 200 MB"})]}),e.jsx("div",{className:"w-full bg-slate-200 h-1.5 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-[#EC167F] h-full rounded-full",style:{width:"34%"}})})]}),e.jsx("button",{onClick:()=>f("Navigasi ke halaman upgrade paket"),className:"w-full py-1 text-[10px] font-bold text-[#EC167F] bg-white border border-pink-200 hover:bg-pink-50 rounded-xl transition-colors shadow-2xs cursor-pointer",children:"Upgrade Paket"})]}),m&&e.jsxs("div",{className:"p-2.5 border-t border-slate-100 bg-slate-50/50 text-[10px] text-slate-400",children:[e.jsxs("div",{className:"flex items-center gap-1 font-bold text-slate-700",children:[e.jsx("div",{className:"w-3.5 h-3.5 rounded-md bg-[#EC167F] text-white flex items-center justify-center text-[7px]",children:"M"}),e.jsx("span",{children:"MuaKita"}),e.jsx("span",{className:"text-[9px] font-normal text-slate-400",children:"v1.0.0"})]}),e.jsx("p",{className:"text-[9px] text-slate-400 mt-0.5",children:"© 2025 MuaKita. All rights reserved."})]})]})},M1=({tenants:h,filteredTenants:j,activities:m,chartPeriod:o,setChartPeriod:S,setActiveTab:M,setShowAddTenantModal:C,triggerToast:u})=>e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2 bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-base font-extrabold text-slate-900 tracking-tight",children:"Dashboard Superadmin"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Ringkasan keseluruhan platform MuaKita"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-slate-50 border border-slate-200/80 rounded-xl text-[11px] sm:text-xs text-slate-700 font-medium cursor-pointer hover:bg-slate-100/70 transition-colors",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{className:"truncate max-w-[150px] sm:max-w-none",children:"21 Mei 2025 - 21 Juni 2025"}),e.jsx(ye,{className:"w-3 h-3 text-slate-400 ml-0.5"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-slate-50 border border-slate-200/80 rounded-xl text-[11px] sm:text-xs text-slate-700 font-medium cursor-pointer hover:bg-slate-100/70 transition-colors",children:[e.jsx("span",{children:"Semua Tenant"}),e.jsx(ye,{className:"w-3 h-3 text-slate-400"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2.5",children:[e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-pink-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-50 flex items-center justify-center text-[#EC167F]",children:e.jsx(is,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Total Pendapatan Platform"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"Rp358.750.000"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"18.6%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-blue-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-blue-50 flex items-center justify-center text-blue-600",children:e.jsx(jm,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Total Tenant Aktif"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"245"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"12.4%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-purple-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-purple-50 flex items-center justify-center text-purple-600",children:e.jsx(St,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Total Pengguna"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"2.548"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"15.8%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-amber-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-amber-50 flex items-center justify-center text-amber-600",children:e.jsx(Ie,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Total Reservasi"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"8.932"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"9.7%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-cyan-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-cyan-50 flex items-center justify-center text-cyan-600",children:e.jsx(_a,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Total Paket Berlangganan"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"312"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"11.3%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-yellow-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-amber-50 flex items-center justify-center text-amber-500",children:e.jsx(Ht,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Pembayaran Pending"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"Rp42.750.000"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-rose-500",children:[e.jsx(e1,{className:"w-3 h-3"}),e.jsx("span",{children:"6.8%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"lg:col-span-8 bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-3",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-2 border-b border-slate-100",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Grafik Pendapatan Platform"}),e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-emerald-50 text-emerald-700 text-[10px] font-extrabold border border-emerald-200",children:"+18.6% vs bulan lalu"})]}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium mt-0.5",children:"Perkembangan akumulasi transaksi dari seluruh tenant MuaKita"})]}),e.jsx("div",{className:"flex items-center bg-slate-100/80 p-1 rounded-xl text-xs font-semibold text-slate-600 shrink-0",children:["hari","minggu","bulan","tahun"].map(b=>e.jsx("button",{onClick:()=>S(b),className:`px-3 py-1.5 rounded-lg capitalize transition-all cursor-pointer ${o===b?"bg-[#EC167F] text-white font-extrabold shadow-xs":"hover:text-slate-900 hover:bg-slate-200/50"}`,children:b==="hari"?"Hari":b==="minggu"?"Minggu":b==="bulan"?"Bulan":"Tahun"},b))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 py-1",children:[e.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-50 border border-slate-100/80",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block",children:"Total GMV Platform"}),e.jsx("span",{className:"text-sm sm:text-base font-black text-slate-900 mt-0.5 block",children:"Rp358.750.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-50 border border-slate-100/80",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block",children:"Rata-rata / Tenant"}),e.jsx("span",{className:"text-sm sm:text-base font-black text-slate-900 mt-0.5 block",children:"Rp1.464.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl bg-pink-50/60 border border-pink-100",children:[e.jsx("span",{className:"text-[10px] font-bold text-[#EC167F] uppercase tracking-wider block",children:"Puncak (Peak Day)"}),e.jsx("span",{className:"text-sm sm:text-base font-black text-[#EC167F] mt-0.5 block",children:"7 Jun (285.4jt)"})]})]}),e.jsxs("div",{className:"flex gap-3 my-1 pt-2",children:[e.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-slate-400 font-mono font-bold text-right shrink-0 h-52 pb-4 pt-1",children:[e.jsx("span",{children:"Rp 375jt"}),e.jsx("span",{children:"Rp 300jt"}),e.jsx("span",{children:"Rp 225jt"}),e.jsx("span",{children:"Rp 150jt"}),e.jsx("span",{children:"Rp 75jt"}),e.jsx("span",{children:"Rp 0"})]}),e.jsxs("div",{className:"flex-1 relative h-52",children:[e.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between pointer-events-none pb-4 pt-2",children:[e.jsx("div",{className:"w-full border-b border-dashed border-slate-100"}),e.jsx("div",{className:"w-full border-b border-dashed border-slate-100"}),e.jsx("div",{className:"w-full border-b border-dashed border-slate-100"}),e.jsx("div",{className:"w-full border-b border-dashed border-slate-100"}),e.jsx("div",{className:"w-full border-b border-dashed border-slate-100"}),e.jsx("div",{className:"w-full border-b border-slate-200"})]}),e.jsxs("svg",{className:"w-full h-full overflow-visible relative z-10",viewBox:"0 0 600 200",preserveAspectRatio:"none",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"gradientPinkFull",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#EC167F",stopOpacity:"0.3"}),e.jsx("stop",{offset:"70%",stopColor:"#EC167F",stopOpacity:"0.05"}),e.jsx("stop",{offset:"100%",stopColor:"#EC167F",stopOpacity:"0.0"})]}),e.jsx("filter",{id:"glowPink",x:"-20%",y:"-20%",width:"140%",height:"140%",children:e.jsx("feDropShadow",{dx:"0",dy:"4",stdDeviation:"4",floodColor:"#EC167F",floodOpacity:"0.3"})})]}),e.jsx("path",{d:"M 10 150 Q 90 140 150 110 T 250 115 T 340 50 T 430 80 T 520 40 L 590 25 L 590 185 L 10 185 Z",fill:"url(#gradientPinkFull)"}),e.jsx("path",{d:"M 10 150 Q 90 140 150 110 T 250 115 T 340 50 T 430 80 T 520 40 L 590 25",fill:"none",stroke:"#EC167F",strokeWidth:"3.5",strokeLinecap:"round",filter:"url(#glowPink)"}),e.jsx("line",{x1:"340",y1:"50",x2:"340",y2:"185",stroke:"#EC167F",strokeDasharray:"3 3",strokeWidth:"1.5",opacity:"0.8"}),e.jsx("circle",{cx:"340",cy:"50",r:"7",fill:"#EC167F",stroke:"#ffffff",strokeWidth:"3",className:"animate-pulse"}),e.jsx("circle",{cx:"340",cy:"50",r:"11",fill:"none",stroke:"#EC167F",strokeWidth:"1",opacity:"0.5"}),e.jsx("circle",{cx:"150",cy:"110",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("circle",{cx:"250",cy:"115",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("circle",{cx:"430",cy:"80",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("circle",{cx:"520",cy:"40",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("foreignObject",{x:"250",y:"0",width:"180",height:"48",children:e.jsxs("div",{className:"bg-slate-900/95 backdrop-blur-xs text-white shadow-lg rounded-xl p-1.5 text-center text-[10px] leading-tight border border-slate-700",children:[e.jsx("span",{className:"text-slate-300 block font-semibold",children:"7 Juni 2025 (Puncak)"}),e.jsx("span",{className:"font-black text-pink-400 text-xs block",children:"Rp285.450.000"})]})})]})]})]}),e.jsxs("div",{className:"flex justify-between text-[11px] text-slate-500 font-bold pt-2 border-t border-slate-100 pl-14 pr-2",children:[e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"21 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"26 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"31 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"5 Jun"}),e.jsx("span",{className:"text-[#EC167F] font-extrabold cursor-pointer flex items-center gap-0.5",children:"7 Jun ⭐"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"15 Jun"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"21 Jun"})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100 mb-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Distribusi Paket Berlangganan"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Persentase tenant per tier langganan"})]}),e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-purple-50 text-purple-700 text-[10px] font-extrabold border border-purple-200",children:"312 Tenant"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 my-2",children:[e.jsxs("div",{className:"relative w-36 h-36 shrink-0 my-1",children:[e.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[e.jsx("path",{className:"text-slate-100",strokeWidth:"4",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.jsx("path",{className:"text-blue-500",strokeWidth:"4",strokeDasharray:"14.7, 100",strokeDashoffset:"0",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.jsx("path",{className:"text-amber-400",strokeWidth:"4",strokeDasharray:"35.9, 100",strokeDashoffset:"-14.7",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.jsx("path",{className:"text-purple-600",strokeWidth:"4",strokeDasharray:"30.8, 100",strokeDashoffset:"-50.6",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),e.jsx("path",{className:"text-cyan-400",strokeWidth:"4",strokeDasharray:"18.6, 100",strokeDashoffset:"-81.4",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider",children:"Total"}),e.jsx("span",{className:"text-lg font-black text-slate-900 leading-none my-0.5",children:"312"}),e.jsx("span",{className:"text-[10px] font-semibold text-slate-500",children:"Paket"})]})]}),e.jsxs("div",{className:"flex-1 w-full space-y-2",children:[e.jsxs("div",{className:"p-1.5 rounded-xl bg-slate-50 border border-slate-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-cyan-400 shrink-0"}),e.jsx("span",{className:"text-slate-700 font-bold text-xs",children:"Gratis"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"58"}),e.jsx("span",{className:"text-slate-400 text-[10px] ml-1.5 font-medium",children:"18.6%"})]})]}),e.jsxs("div",{className:"p-1.5 rounded-xl bg-slate-50 border border-slate-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-purple-600 shrink-0"}),e.jsx("span",{className:"text-slate-700 font-bold text-xs",children:"Basic"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"96"}),e.jsx("span",{className:"text-slate-400 text-[10px] ml-1.5 font-medium",children:"30.8%"})]})]}),e.jsxs("div",{className:"p-1.5 rounded-xl bg-slate-50 border border-slate-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-amber-400 shrink-0"}),e.jsx("span",{className:"text-slate-700 font-bold text-xs",children:"Pro"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"112"}),e.jsx("span",{className:"text-slate-400 text-[10px] ml-1.5 font-medium",children:"35.9%"})]})]}),e.jsxs("div",{className:"p-1.5 rounded-xl bg-slate-50 border border-slate-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-blue-500 shrink-0"}),e.jsx("span",{className:"text-slate-700 font-bold text-xs",children:"Enterprise"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"46"}),e.jsx("span",{className:"text-slate-400 text-[10px] ml-1.5 font-medium",children:"14.7%"})]})]})]})]})]}),e.jsxs("div",{className:"mt-3 p-2.5 rounded-xl bg-purple-50/60 border border-purple-100 flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_a,{className:"w-4 h-4 text-purple-600"}),e.jsx("span",{className:"font-bold text-purple-900",children:"Paket Terfavorit"})]}),e.jsx("span",{className:"font-black text-purple-700",children:"Pro (35.9%)"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"lg:col-span-5 bg-white rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between overflow-hidden",children:[e.jsx("div",{className:"p-3 border-b border-slate-100 flex items-center justify-between",children:e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Top 5 Tenant (Pendapatan Tertinggi)"})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{className:"bg-slate-50/70 border-b border-slate-100 text-[10px] text-slate-500 font-bold uppercase",children:e.jsxs("tr",{children:[e.jsx("th",{className:"py-2 px-3",children:"Tenant"}),e.jsx("th",{className:"py-2 px-2",children:"Paket"}),e.jsx("th",{className:"py-2 px-2 text-right",children:"Pendapatan"}),e.jsx("th",{className:"py-2 px-2 text-center",children:"Pertumbuhan"}),e.jsx("th",{className:"py-2 px-2 text-center",children:"Status"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px]",children:j.slice(0,5).map(b=>e.jsxs("tr",{className:"hover:bg-slate-50/80 transition-colors",children:[e.jsx("td",{className:"py-2.5 px-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-pink-100 text-[#EC167F] font-bold text-[10px] flex items-center justify-center shrink-0",children:b.name[0]}),e.jsxs("div",{className:"truncate max-w-[120px]",children:[e.jsx("div",{className:"font-bold text-slate-900 truncate",children:b.name}),e.jsx("div",{className:"text-[9px] text-slate-400 truncate",children:b.domain})]})]})}),e.jsx("td",{className:"py-2.5 px-2",children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-bold ${b.package==="Enterprise"?"bg-purple-100 text-purple-700":b.package==="Pro"?"bg-pink-100 text-pink-700":"bg-blue-100 text-blue-700"}`,children:b.package})}),e.jsxs("td",{className:"py-2.5 px-2 text-right font-black text-slate-900",children:["Rp",b.revenue.toLocaleString("id-ID")]}),e.jsxs("td",{className:"py-2.5 px-2 text-center font-bold text-emerald-600",children:["↑ ",b.growth,"%"]}),e.jsx("td",{className:"py-2.5 px-2 text-center",children:e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 text-emerald-600 font-bold rounded-md text-[10px]",children:b.status})})]},b.id))})]})}),e.jsx("div",{className:"p-2 border-t border-slate-100 text-center bg-slate-50/50",children:e.jsxs("button",{onClick:()=>M("tenant"),className:"text-xs font-bold text-[#EC167F] hover:underline inline-flex items-center gap-1 cursor-pointer",children:["Lihat semua tenant ",e.jsx(Kt,{className:"w-3 h-3"})]})})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between overflow-hidden",children:[e.jsx("div",{className:"p-3 border-b border-slate-100",children:e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Aktivitas Terbaru Platform"})}),e.jsx("div",{className:"p-3 divide-y divide-slate-100 space-y-2",children:m.map(b=>e.jsxs("div",{className:"pt-2 first:pt-0 flex items-start gap-2.5 text-xs",children:[e.jsx("div",{className:`w-7 h-7 rounded-xl ${b.iconBg} ${b.iconColor} flex items-center justify-center shrink-0 mt-0.5`,children:e.jsx(Ke,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-bold text-slate-900 leading-tight text-[11px] truncate",children:b.title}),e.jsx("p",{className:"text-[10px] text-slate-500 leading-tight",children:b.sub})]}),e.jsx("span",{className:"text-[9px] text-slate-400 font-medium shrink-0",children:b.time})]},b.id))}),e.jsx("div",{className:"p-2 border-t border-slate-100 text-center bg-slate-50/50",children:e.jsxs("button",{onClick:()=>M("log"),className:"text-xs font-bold text-[#EC167F] hover:underline inline-flex items-center gap-1 cursor-pointer",children:["Lihat semua aktivitas ",e.jsx(Kt,{className:"w-3 h-3"})]})})]}),e.jsxs("div",{className:"lg:col-span-3 bg-white rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between overflow-hidden",children:[e.jsx("div",{className:"p-3 border-b border-slate-100",children:e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Ringkasan Pembayaran"})}),e.jsxs("div",{className:"p-3 space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between p-2 rounded-xl bg-slate-50 border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-emerald-100 text-emerald-600 flex items-center justify-center",children:e.jsx(Ht,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-700",children:"Total Pendapatan"})]}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Rp358.750.000"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 rounded-xl bg-slate-50 border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-emerald-100 text-emerald-600 flex items-center justify-center",children:e.jsx(Ge,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-700",children:"Pembayaran Berhasil"})]}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Rp315.980.000"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 rounded-xl bg-slate-50 border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-amber-100 text-amber-600 flex items-center justify-center",children:e.jsx(Vt,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-700",children:"Pending"})]}),e.jsx("span",{className:"text-xs font-black text-amber-600",children:"Rp42.750.000"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 rounded-xl bg-slate-50 border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-rose-100 text-rose-600 flex items-center justify-center",children:e.jsx(Ht,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-700",children:"Gagal / Expired"})]}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Rp0"})]})]}),e.jsx("div",{className:"p-2 border-t border-slate-100 text-center bg-slate-50/50",children:e.jsxs("button",{onClick:()=>M("pembayaran"),className:"text-xs font-bold text-[#EC167F] hover:underline inline-flex items-center gap-1 cursor-pointer",children:["Kelola pembayaran ",e.jsx(Kt,{className:"w-3 h-3"})]})})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsx("h3",{className:"text-xs font-bold text-slate-900 mb-2",children:"Aksi Cepat Superadmin"}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-7 gap-2",children:[e.jsxs("button",{onClick:()=>C(!0),className:"p-2.5 rounded-xl bg-pink-50 hover:bg-pink-100 text-[#EC167F] border border-pink-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Buat Tenant"})]}),e.jsxs("button",{onClick:()=>{M("paket"),u("Kelola Paket Berlangganan")},className:"p-2.5 rounded-xl bg-purple-50 hover:bg-purple-100 text-purple-700 border border-purple-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(_a,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Kelola Paket"})]}),e.jsxs("button",{onClick:()=>{M("pembayaran"),u("Halaman Verifikasi Pembayaran")},className:"p-2.5 rounded-xl bg-emerald-50 hover:bg-emerald-100 text-emerald-700 border border-emerald-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(Ht,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Verifikasi Pembayaran"})]}),e.jsxs("button",{onClick:()=>{M("promosi"),u("Buat Kode Promo Platform")},className:"p-2.5 rounded-xl bg-amber-50 hover:bg-amber-100 text-amber-700 border border-amber-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(Ma,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Buat Promo"})]}),e.jsxs("button",{onClick:()=>{M("log"),u("Buka Log Aktivitas Platform")},className:"p-2.5 rounded-xl bg-blue-50 hover:bg-blue-100 text-blue-700 border border-blue-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(wm,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Log Aktivitas"})]}),e.jsxs("button",{onClick:()=>{M("laporan"),u("Laporan Analitik Platform")},className:"p-2.5 rounded-xl bg-cyan-50 hover:bg-cyan-100 text-cyan-700 border border-cyan-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(af,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Export Laporan"})]}),e.jsxs("button",{onClick:()=>{M("admin"),u("Manajemen Pengguna Admin")},className:"p-2.5 rounded-xl bg-slate-50 hover:bg-slate-100 text-slate-700 border border-slate-200 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(nl,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Akses Admin"})]})]})]})]}),A1=({reservations:h,chartPeriod:j,setChartPeriod:m,setActiveTab:o,setShowAddReservationModal:S,triggerToast:M})=>{const[C,u]=d.useState(!1),b=`${window.location.origin}${window.location.pathname}#/owner/form-publik`,f=()=>{navigator.clipboard.writeText(b).then(()=>{u(!0),M("Link Form Reservasi Publik berhasil disalin!"),setTimeout(()=>u(!1),2500)}).catch(()=>{const y=document.createElement("textarea");y.value=b,document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y),u(!0),M("Link Form Reservasi Publik berhasil disalin!"),setTimeout(()=>u(!1),2500)})},A=()=>{const y=`Halo Kak! Silakan isi Form Reservasi Online Glamour Touch Studio untuk cek ketersediaan jadwal & booking paket di sini:
${b}`,R=`https://wa.me/?text=${encodeURIComponent(y)}`;window.open(R,"_blank")};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2 bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-base font-extrabold text-slate-900 tracking-tight flex items-center gap-1.5",children:["Selamat pagi, Reza Amelia ",e.jsx("span",{className:"text-amber-500",children:"👋"})]}),e.jsx("p",{className:"text-xs text-slate-500",children:"Berikut ringkasan bisnis Anda hari ini."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("button",{onClick:()=>o("estimasi_transport"),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#EC167F] hover:bg-pink-600 text-white rounded-xl text-xs font-bold transition-all cursor-pointer shadow-xs",title:"Hitung Ongkos Transport Google Maps",children:[e.jsx(Jn,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Estimasi Transport"})]}),e.jsxs("button",{onClick:f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-pink-50 hover:bg-pink-100/80 text-[#EC167F] border border-pink-200/80 rounded-xl text-xs font-bold transition-all cursor-pointer shadow-2xs",title:"Salin Link Form Reservasi Publik Client",children:[C?e.jsx(Me,{className:"w-3.5 h-3.5 text-emerald-600"}):e.jsx(Qc,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:C?"Link Tersalin!":"Salin Link Form Publik"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 bg-slate-50 border border-slate-200/80 rounded-xl text-[11px] sm:text-xs text-slate-700 font-semibold cursor-pointer hover:bg-slate-100/70 transition-colors",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Rabu, 21 Mei 2025"}),e.jsx(ye,{className:"w-3 h-3 text-slate-400 ml-0.5"})]})]})]}),e.jsxs("div",{className:"bg-gradient-to-r from-pink-500 via-rose-500 to-[#EC167F] p-4 sm:p-4.5 rounded-2xl text-white shadow-md shadow-pink-200/50 flex flex-col md:flex-row items-start md:items-center justify-between gap-4 relative overflow-hidden",children:[e.jsx("div",{className:"absolute -right-10 -bottom-10 w-44 h-44 bg-white/10 rounded-full blur-2xl pointer-events-none"}),e.jsx("div",{className:"absolute left-1/2 -top-12 w-32 h-32 bg-amber-300/10 rounded-full blur-xl pointer-events-none"}),e.jsxs("div",{className:"flex items-start sm:items-center gap-3.5 relative z-10",children:[e.jsx("div",{className:"w-11 h-11 rounded-xl bg-white/20 backdrop-blur-md flex items-center justify-center shrink-0 border border-white/30 text-white shadow-inner",children:e.jsx(mt,{className:"w-5.5 h-5.5"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("h2",{className:"text-sm sm:text-base font-black tracking-tight text-white",children:"Form Reservasi Publik Client"}),e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-white/20 border border-white/30 text-[9px] font-extrabold uppercase tracking-wider text-white",children:"Self-Service Online"})]}),e.jsx("p",{className:"text-xs text-pink-100 font-medium mt-0.5 max-w-xl",children:"Bagikan link form ini ke calon pelanggan atau taruh di Bio Instagram / TikTok / WhatsApp agar klien bisa memesan jadwal & bayar DP mandiri."}),e.jsx("div",{className:"mt-2 flex items-center gap-2 bg-black/20 backdrop-blur-xs px-2.5 py-1 rounded-lg border border-white/20 max-w-md",children:e.jsx("span",{className:"text-[11px] font-mono text-pink-100 truncate flex-1",children:b})})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 w-full md:w-auto relative z-10 shrink-0",children:[e.jsxs("button",{onClick:f,className:"flex-1 md:flex-initial px-4 py-2.5 bg-white text-[#EC167F] hover:bg-pink-50 font-black text-xs rounded-xl shadow-xs transition-all flex items-center justify-center gap-2 cursor-pointer active:scale-95",children:[C?e.jsx(Me,{className:"w-4 h-4 text-emerald-600"}):e.jsx(Ua,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:C?"Link Tersalin!":"Salin Link Form"})]}),e.jsxs("button",{onClick:A,className:"px-3.5 py-2.5 bg-emerald-500 hover:bg-emerald-600 text-white font-extrabold text-xs rounded-xl shadow-xs transition-all flex items-center justify-center gap-1.5 cursor-pointer active:scale-95",title:"Bagikan Link ke WhatsApp",children:[e.jsx(In,{className:"w-4 h-4 fill-white"}),e.jsx("span",{className:"hidden sm:inline",children:"Share WA"})]}),e.jsxs("button",{onClick:()=>o("form_publik"),className:"px-3.5 py-2.5 bg-white/15 hover:bg-white/25 border border-white/30 text-white font-extrabold text-xs rounded-xl transition-all flex items-center justify-center gap-1.5 cursor-pointer",title:"Pratinjau Halaman Form Publik",children:[e.jsx(Wl,{className:"w-4 h-4"}),e.jsx("span",{children:"Buka Form"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2.5",children:[e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-pink-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-50 flex items-center justify-center text-[#EC167F] font-black text-xs",children:"Rp"}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Pendapatan Bulan Ini"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"Rp126.500.000"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"18%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-pink-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-50 flex items-center justify-center text-[#EC167F]",children:e.jsx(Aa,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Reservasi Hari Ini"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"15"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"25%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs kemarin"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-purple-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-purple-50 flex items-center justify-center text-purple-600",children:e.jsx(Ie,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Reservasi Aktif"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"128"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"12%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs minggu lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-amber-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-amber-50 flex items-center justify-center text-amber-600",children:e.jsx(ja,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Invoice Pending"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"18"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-amber-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"8%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs minggu lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-rose-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-rose-50 flex items-center justify-center text-rose-500",children:e.jsx(nl,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Pelanggan Baru"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"34"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"21%"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs minggu lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs hover:border-amber-200 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-amber-50 flex items-center justify-center text-amber-500",children:e.jsx(Bt,{className:"w-4 h-4 fill-amber-500"})}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-500 truncate",children:"Rating Bisnis"})]}),e.jsx("div",{className:"text-base font-black text-slate-900 tracking-tight",children:"4.9"}),e.jsxs("div",{className:"flex items-center gap-1 mt-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(Xt,{className:"w-3 h-3"}),e.jsx("span",{children:"0.2"}),e.jsx("span",{className:"font-normal text-slate-400 ml-0.5",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"lg:col-span-8 bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-3",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-2 border-b border-slate-100",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Grafik Pendapatan Studio"}),e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-emerald-50 text-emerald-700 text-[10px] font-extrabold border border-emerald-200",children:"+18% vs bulan lalu"})]}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium mt-0.5",children:"Perkembangan omset reservasi riil studio MUA Anda"})]}),e.jsx("div",{className:"flex items-center bg-slate-100/80 p-1 rounded-xl text-xs font-semibold text-slate-600 shrink-0",children:["hari","minggu","bulan","tahun"].map(y=>e.jsx("button",{onClick:()=>m(y),className:`px-3 py-1.5 rounded-lg capitalize transition-all cursor-pointer ${j===y?"bg-[#EC167F] text-white font-extrabold shadow-xs":"hover:text-slate-900 hover:bg-slate-200/50"}`,children:y==="hari"?"Hari":y==="minggu"?"Minggu":y==="bulan"?"Bulan":"Tahun"},y))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 py-1",children:[e.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-50 border border-slate-100/80",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block",children:"Total Omset"}),e.jsx("span",{className:"text-sm sm:text-base font-black text-slate-900 mt-0.5 block",children:"Rp126.500.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-50 border border-slate-100/80",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block",children:"Rata-rata / Hari"}),e.jsx("span",{className:"text-sm sm:text-base font-black text-slate-900 mt-0.5 block",children:"Rp4.080.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl bg-pink-50/60 border border-pink-100",children:[e.jsx("span",{className:"text-[10px] font-bold text-[#EC167F] uppercase tracking-wider block",children:"Puncak (Peak Day)"}),e.jsx("span",{className:"text-sm sm:text-base font-black text-[#EC167F] mt-0.5 block",children:"21 Mei (98.2jt)"})]})]}),e.jsxs("div",{className:"relative w-full h-60 my-1 pt-2",children:[e.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between text-[10px] text-slate-400 font-bold pointer-events-none pb-6",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-1",children:e.jsx("span",{children:"Rp 150.000.000"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-1",children:e.jsx("span",{children:"Rp 120.000.000"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-1",children:e.jsx("span",{children:"Rp 90.000.000"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-1",children:e.jsx("span",{children:"Rp 60.000.000"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-1",children:e.jsx("span",{children:"Rp 30.000.000"})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("span",{children:"Rp 0"})})]}),e.jsxs("svg",{className:"w-full h-full overflow-visible relative z-10",viewBox:"0 0 600 200",preserveAspectRatio:"none",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"gradientOwnerFull",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#EC167F",stopOpacity:"0.3"}),e.jsx("stop",{offset:"70%",stopColor:"#EC167F",stopOpacity:"0.05"}),e.jsx("stop",{offset:"100%",stopColor:"#EC167F",stopOpacity:"0.0"})]}),e.jsx("filter",{id:"glowOwner",x:"-20%",y:"-20%",width:"140%",height:"140%",children:e.jsx("feDropShadow",{dx:"0",dy:"4",stdDeviation:"4",floodColor:"#EC167F",floodOpacity:"0.3"})})]}),e.jsx("path",{d:"M 10 160 Q 90 145 150 110 T 260 115 T 350 45 T 440 85 T 530 30 L 590 20 L 590 185 L 10 185 Z",fill:"url(#gradientOwnerFull)"}),e.jsx("path",{d:"M 10 160 Q 90 145 150 110 T 260 115 T 350 45 T 440 85 T 530 30 L 590 20",fill:"none",stroke:"#EC167F",strokeWidth:"3.5",strokeLinecap:"round",filter:"url(#glowOwner)"}),e.jsx("line",{x1:"350",y1:"45",x2:"350",y2:"185",stroke:"#EC167F",strokeDasharray:"3 3",strokeWidth:"1.5",opacity:"0.8"}),e.jsx("circle",{cx:"350",cy:"45",r:"7",fill:"#EC167F",stroke:"#ffffff",strokeWidth:"3",className:"animate-pulse"}),e.jsx("circle",{cx:"350",cy:"45",r:"11",fill:"none",stroke:"#EC167F",strokeWidth:"1",opacity:"0.5"}),e.jsx("circle",{cx:"150",cy:"110",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("circle",{cx:"260",cy:"115",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("circle",{cx:"440",cy:"85",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("circle",{cx:"530",cy:"30",r:"4",fill:"#ffffff",stroke:"#EC167F",strokeWidth:"2"}),e.jsx("foreignObject",{x:"270",y:"2",width:"160",height:"50",children:e.jsxs("div",{className:"bg-slate-900 text-white shadow-xl rounded-xl p-1.5 text-center text-[10px] leading-tight border border-slate-700 animate-bounce",children:[e.jsx("span",{className:"text-slate-300 block font-medium",children:"21 Mei 2025 (Puncak)"}),e.jsx("span",{className:"font-black text-pink-400 text-xs block",children:"Rp98.250.000"})]})})]})]}),e.jsxs("div",{className:"flex justify-between text-[11px] text-slate-500 font-bold pt-2 border-t border-slate-100 px-2",children:[e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"1 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"6 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"11 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"16 Mei"}),e.jsx("span",{className:"text-[#EC167F] font-extrabold cursor-pointer",children:"21 Mei ⭐"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"26 Mei"}),e.jsx("span",{className:"hover:text-slate-900 cursor-pointer",children:"31 Mei"})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Xt,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Target & Performa Studio"})]}),e.jsx("span",{className:"px-2 py-0.5 rounded-md bg-emerald-100 text-emerald-800 font-extrabold text-[9px]",children:"ON TRACK"})]}),e.jsxs("div",{className:"space-y-3 py-1 text-xs",children:[e.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-50 border border-slate-200/80 space-y-1.5",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsx("span",{className:"font-bold text-slate-700",children:"Target Pendapatan Mei"}),e.jsx("span",{className:"font-extrabold text-[#EC167F]",children:"84.3%"})]}),e.jsx("div",{className:"w-full bg-slate-200 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-gradient-to-r from-[#EC167F] to-pink-500 h-full rounded-full",style:{width:"84.3%"}})}),e.jsxs("div",{className:"flex justify-between text-[10px] text-slate-500 font-medium pt-0.5",children:[e.jsxs("span",{children:["Tercapai: ",e.jsx("strong",{className:"text-slate-800",children:"Rp126.500.000"})]}),e.jsxs("span",{children:["Target: ",e.jsx("strong",{children:"Rp150.000.000"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"p-2 rounded-xl bg-slate-50 border border-slate-200/80",children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-bold",children:"Layanan Terfavorit"}),e.jsx("span",{className:"font-extrabold text-slate-900 text-xs truncate block mt-0.5",children:"Wedding Gold"}),e.jsx("span",{className:"text-[9px] text-emerald-600 font-bold block",children:"128 Paket Terjual"})]}),e.jsxs("div",{className:"p-2 rounded-xl bg-slate-50 border border-slate-200/80",children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-bold",children:"Kepuasan Client"}),e.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[e.jsx(Bt,{className:"w-3.5 h-3.5 fill-amber-500 text-amber-500"}),e.jsx("span",{className:"font-extrabold text-slate-900 text-xs",children:"4.9 / 5.0"})]}),e.jsx("span",{className:"text-[9px] text-slate-500 font-medium block",children:"Dari 142 Review"})]})]})]}),e.jsxs("button",{onClick:()=>{o("analitik"),M("Buka Laporan Analitik Studio")},className:"w-full py-2 px-3 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-bold shadow-xs transition-all flex items-center justify-center gap-1.5 cursor-pointer mt-2",children:[e.jsx("span",{children:"Lihat Laporan Analitik Studio"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"lg:col-span-7 bg-white rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between overflow-hidden",children:[e.jsxs("div",{className:"p-3 border-b border-slate-100 flex items-center justify-between",children:[e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Reservasi Terbaru"}),e.jsx("button",{onClick:()=>o("reservasi"),className:"text-xs font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Semua"})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{className:"bg-slate-50/70 border-b border-slate-100 text-[10px] text-slate-500 font-bold uppercase",children:e.jsxs("tr",{children:[e.jsx("th",{className:"py-2 px-3",children:"Nama"}),e.jsx("th",{className:"py-2 px-2",children:"Layanan"}),e.jsx("th",{className:"py-2 px-2",children:"Tanggal"}),e.jsx("th",{className:"py-2 px-2 text-center",children:"Status"}),e.jsx("th",{className:"py-2 px-2 text-center",children:"Pembayaran"}),e.jsx("th",{className:"py-2 px-2 text-right"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px]",children:h.map(y=>e.jsxs("tr",{className:"hover:bg-slate-50/80 transition-colors",children:[e.jsx("td",{className:"py-2.5 px-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-slate-200 text-slate-700 font-bold text-[10px] flex items-center justify-center shrink-0",children:y.name[0]}),e.jsx("span",{className:"font-bold text-slate-900 truncate",children:y.name})]})}),e.jsx("td",{className:"py-2.5 px-2 text-slate-600 font-medium",children:y.service}),e.jsx("td",{className:"py-2.5 px-2 text-slate-500",children:y.date}),e.jsx("td",{className:"py-2.5 px-2 text-center",children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-bold ${y.status==="Dikonfirmasi"?"bg-emerald-100 text-emerald-700":y.status==="Menunggu DP"?"bg-blue-100 text-blue-700":y.status==="Menunggu"?"bg-amber-100 text-amber-700":"bg-slate-100 text-slate-600"}`,children:y.status})}),e.jsx("td",{className:"py-2.5 px-2 text-center",children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-bold ${y.payment==="Lunas"?"bg-emerald-100 text-emerald-700":y.payment==="DP 50%"?"bg-amber-100 text-amber-700":"bg-rose-100 text-rose-700"}`,children:y.payment})}),e.jsx("td",{className:"py-2.5 px-2 text-right text-slate-400",children:e.jsx("button",{className:"hover:text-slate-600 p-1 cursor-pointer",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})})})]},y.id))})]})})]}),e.jsxs("div",{className:"lg:col-span-5 bg-white rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between overflow-hidden p-3.5",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3 border-b border-slate-100 pb-2",children:[e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Agenda Hari Ini"}),e.jsx("button",{onClick:()=>o("jadwal"),className:"text-xs font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Kalender"})]}),e.jsxs("div",{className:"space-y-3 relative pl-4 before:absolute before:left-1.5 before:top-2 before:bottom-2 before:w-0.5 before:bg-slate-200",children:[e.jsxs("div",{className:"relative flex items-center justify-between text-xs bg-slate-50 p-2 rounded-xl border border-slate-100",children:[e.jsx("span",{className:"absolute -left-4 w-2.5 h-2.5 rounded-full bg-[#EC167F] ring-2 ring-white"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"09.00"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Wedding"}),e.jsx("p",{className:"text-[10px] text-slate-500",children:"Maya Salsabila"})]})]}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-100 text-emerald-700 rounded-md text-[9px] font-bold",children:"Dikonfirmasi"})]}),e.jsxs("div",{className:"relative flex items-center justify-between text-xs bg-slate-50 p-2 rounded-xl border border-slate-100",children:[e.jsx("span",{className:"absolute -left-4 w-2.5 h-2.5 rounded-full bg-[#EC167F] ring-2 ring-white"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"10.00"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Trial Makeup"}),e.jsx("p",{className:"text-[10px] text-slate-500",children:"Anisa Rahma"})]})]}),e.jsx("span",{className:"px-2 py-0.5 bg-amber-100 text-amber-700 rounded-md text-[9px] font-bold",children:"Menunggu"})]}),e.jsxs("div",{className:"relative flex items-center justify-between text-xs bg-slate-50 p-2 rounded-xl border border-slate-100",children:[e.jsx("span",{className:"absolute -left-4 w-2.5 h-2.5 rounded-full bg-[#EC167F] ring-2 ring-white"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"13.00"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Makeup Graduation"}),e.jsx("p",{className:"text-[10px] text-slate-500",children:"Fahira Nur"})]})]}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-100 text-emerald-700 rounded-md text-[9px] font-bold",children:"Dikonfirmasi"})]}),e.jsxs("div",{className:"relative flex items-center justify-between text-xs bg-slate-50 p-2 rounded-xl border border-slate-100",children:[e.jsx("span",{className:"absolute -left-4 w-2.5 h-2.5 rounded-full bg-[#EC167F] ring-2 ring-white"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"16.00"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Hairdo"}),e.jsx("p",{className:"text-[10px] text-slate-500",children:"Clara Dewi"})]})]}),e.jsx("span",{className:"px-2 py-0.5 bg-blue-100 text-blue-700 rounded-md text-[9px] font-bold",children:"Menunggu DP"})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2 pb-1 border-b border-slate-100",children:[e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Top Layanan"}),e.jsx("button",{onClick:()=>o("layanan"),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Semua"})]}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-pink-100 text-[#EC167F] font-bold text-[10px] flex items-center justify-center",children:"1"}),e.jsx("span",{className:"font-bold text-slate-900 text-[11px]",children:"Wedding Gold"})]}),e.jsx("span",{className:"text-[11px] font-extrabold text-slate-600",children:"128 Order"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-pink-100 text-[#EC167F] font-bold text-[10px] flex items-center justify-center",children:"2"}),e.jsx("span",{className:"font-bold text-slate-900 text-[11px]",children:"Wedding Silver"})]}),e.jsx("span",{className:"text-[11px] font-extrabold text-slate-600",children:"96 Order"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-pink-100 text-[#EC167F] font-bold text-[10px] flex items-center justify-center",children:"3"}),e.jsx("span",{className:"font-bold text-slate-900 text-[11px]",children:"Makeup Graduation"})]}),e.jsx("span",{className:"text-[11px] font-extrabold text-slate-600",children:"74 Order"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-pink-100 text-[#EC167F] font-bold text-[10px] flex items-center justify-center",children:"4"}),e.jsx("span",{className:"font-bold text-slate-900 text-[11px]",children:"Party Makeup"})]}),e.jsx("span",{className:"text-[11px] font-extrabold text-slate-600",children:"61 Order"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-pink-100 text-[#EC167F] font-bold text-[10px] flex items-center justify-center",children:"5"}),e.jsx("span",{className:"font-bold text-slate-900 text-[11px]",children:"Hairdo"})]}),e.jsx("span",{className:"text-[11px] font-extrabold text-slate-600",children:"48 Order"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2 pb-1 border-b border-slate-100",children:[e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Top Vendor Partner"}),e.jsx("button",{onClick:()=>o("vendor"),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Semua"})]}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-slate-100 text-slate-700 font-bold text-[10px] flex items-center justify-center",children:"1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Lovely Decoration"}),e.jsx("p",{className:"text-[9px] text-slate-400",children:"Dekorasi"})]})]}),e.jsxs("span",{className:"text-[11px] font-extrabold text-amber-500 flex items-center gap-0.5",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-500"})," 4.9"]})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-slate-100 text-slate-700 font-bold text-[10px] flex items-center justify-center",children:"2"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Bright Photo"}),e.jsx("p",{className:"text-[9px] text-slate-400",children:"Fotografi"})]})]}),e.jsxs("span",{className:"text-[11px] font-extrabold text-amber-500 flex items-center gap-0.5",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-500"})," 4.8"]})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-slate-100 text-slate-700 font-bold text-[10px] flex items-center justify-center",children:"3"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Arjuna WO"}),e.jsx("p",{className:"text-[9px] text-slate-400",children:"Wedding Organizer"})]})]}),e.jsxs("span",{className:"text-[11px] font-extrabold text-amber-500 flex items-center gap-0.5",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-500"})," 4.8"]})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-slate-100 text-slate-700 font-bold text-[10px] flex items-center justify-center",children:"4"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Harmony MC"}),e.jsx("p",{className:"text-[9px] text-slate-400",children:"MC"})]})]}),e.jsxs("span",{className:"text-[11px] font-extrabold text-amber-500 flex items-center gap-0.5",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-500"})," 4.7"]})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-xl hover:bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-5 h-5 rounded-full bg-slate-100 text-slate-700 font-bold text-[10px] flex items-center justify-center",children:"5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900 text-[11px]",children:"Nail Art Studio"}),e.jsx("p",{className:"text-[9px] text-slate-400",children:"Nail Artist"})]})]}),e.jsxs("span",{className:"text-[11px] font-extrabold text-amber-500 flex items-center gap-0.5",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-500"})," 4.7"]})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2 pb-1 border-b border-slate-100",children:[e.jsx("h2",{className:"text-xs font-bold text-slate-900",children:"Inventaris Menipis"}),e.jsx("button",{onClick:()=>o("inventaris"),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Semua"})]}),e.jsxs("div",{className:"space-y-2.5 text-xs",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-[11px] mb-1",children:[e.jsx("span",{className:"font-bold text-slate-900",children:"Foundation Satin"}),e.jsx("span",{className:"font-bold text-rose-500",children:"Stok 8 / 50"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-1.5 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-rose-500 h-full rounded-full",style:{width:"16%"}})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-[11px] mb-1",children:[e.jsx("span",{className:"font-bold text-slate-900",children:"Lipstick Matte"}),e.jsx("span",{className:"font-bold text-amber-500",children:"Stok 12 / 60"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-1.5 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-amber-500 h-full rounded-full",style:{width:"20%"}})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-[11px] mb-1",children:[e.jsx("span",{className:"font-bold text-slate-900",children:"Hair Spray Strong"}),e.jsx("span",{className:"font-bold text-amber-500",children:"Stok 15 / 80"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-1.5 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-amber-500 h-full rounded-full",style:{width:"18.7%"}})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-[11px] mb-1",children:[e.jsx("span",{className:"font-bold text-slate-900",children:"Brush Set Premium"}),e.jsx("span",{className:"font-bold text-emerald-600",children:"Stok 20 / 100"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-1.5 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-emerald-500 h-full rounded-full",style:{width:"20%"}})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-[11px] mb-1",children:[e.jsx("span",{className:"font-bold text-slate-900",children:"Beauty Sponge"}),e.jsx("span",{className:"font-bold text-emerald-600",children:"Stok 25 / 100"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-1.5 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-emerald-500 h-full rounded-full",style:{width:"25%"}})})]})]})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsx("h3",{className:"text-xs font-bold text-slate-900 mb-2",children:"Aksi Cepat Owner"}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-8 gap-2",children:[e.jsxs("button",{onClick:f,className:"p-2.5 rounded-xl bg-pink-500 hover:bg-pink-600 text-white border border-pink-500 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer shadow-2xs active:scale-95",children:[C?e.jsx(Me,{className:"w-4 h-4 text-white"}):e.jsx(Qc,{className:"w-4 h-4 text-white"}),e.jsx("span",{className:"text-[10px] font-extrabold leading-tight",children:C?"Link Tersalin":"Salin Link Form"})]}),e.jsxs("button",{onClick:()=>S(!0),className:"p-2.5 rounded-xl bg-pink-50 hover:bg-pink-100 text-[#EC167F] border border-pink-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(Aa,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Reservasi Baru"})]}),e.jsxs("button",{onClick:()=>{o("pelanggan"),M("Form Tambah Pelanggan")},className:"p-2.5 rounded-xl bg-rose-50 hover:bg-rose-100 text-rose-700 border border-rose-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(nl,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Tambah Pelanggan"})]}),e.jsxs("button",{onClick:()=>{o("keuangan"),M("Buat Invoice Kustomer")},className:"p-2.5 rounded-xl bg-amber-50 hover:bg-amber-100 text-amber-700 border border-amber-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(ja,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Invoice"})]}),e.jsxs("button",{onClick:()=>{o("vendor"),M("Tambah Partner Vendor")},className:"p-2.5 rounded-xl bg-purple-50 hover:bg-purple-100 text-purple-700 border border-purple-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(ei,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Tambah Vendor"})]}),e.jsxs("button",{onClick:()=>{o("pemasaran"),M("Broadcast WA Pelanggan")},className:"p-2.5 rounded-xl bg-emerald-50 hover:bg-emerald-100 text-emerald-700 border border-emerald-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(In,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Broadcast WA"})]}),e.jsxs("button",{onClick:()=>{o("pemasaran"),M("Buat Promo Diskon Baru")},className:"p-2.5 rounded-xl bg-blue-50 hover:bg-blue-100 text-blue-700 border border-blue-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(Ma,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Promo"})]}),e.jsxs("button",{onClick:()=>{o("portofolio"),M("Upload Portofolio Makeup")},className:"p-2.5 rounded-xl bg-indigo-50 hover:bg-indigo-100 text-indigo-700 border border-indigo-100 flex flex-col items-center justify-center gap-1 text-center transition-all cursor-pointer",children:[e.jsx(Xn,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[10px] font-bold leading-tight",children:"Portofolio"})]})]})]})]})},E1=({isOpen:h,onClose:j,onSubmit:m,tenantName:o,setTenantName:S,tenantDomain:M,setTenantDomain:C,tenantPackage:u,setTenantPackage:b})=>h?e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full border border-slate-200 shadow-2xl overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:[e.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(is,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Tambah Tenant Baru"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Daftarkan bisnis MUA/Studio baru ke platform"})]})]}),e.jsx("button",{onClick:j,className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg hover:bg-slate-100 transition-colors",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:m,className:"p-4 space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Nama Tenant / Studio"}),e.jsx("input",{type:"text",placeholder:"Contoh: Bella Beauty Studio",value:o,onChange:f=>S(f.target.value),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Subdomain Kustom"}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{type:"text",placeholder:"bellabeauty",value:M,onChange:f=>C(f.target.value),className:"flex-1 px-3 py-2 bg-slate-50 border border-r-0 border-slate-200 rounded-l-xl text-xs focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"}),e.jsx("span",{className:"px-3 py-2 bg-slate-100 border border-slate-200 rounded-r-xl text-xs text-slate-500 font-mono",children:".muakita.com"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Pilih Paket"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:["Basic","Pro","Enterprise"].map(f=>e.jsx("button",{type:"button",onClick:()=>b(f),className:`py-2 px-2 rounded-xl text-xs font-bold border transition-all text-center ${u===f?"bg-pink-50 border-[#EC167F] text-[#EC167F] shadow-2xs":"border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:f},f))})]}),e.jsxs("div",{className:"pt-2 flex justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:j,className:"px-4 py-2 text-xs font-bold text-slate-600 hover:bg-slate-100 rounded-xl transition-colors",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-4 py-2 text-xs font-bold text-white bg-[#EC167F] hover:bg-[#D41270] rounded-xl shadow-xs transition-colors",children:"Simpan Tenant"})]})]})]})}):null,Am=({onSave:h,onCancel:j,triggerToast:m=o=>{}})=>{const[o,S]=d.useState(1),[M,C]=d.useState("Reza Amelia"),[u,b]=d.useState("0812 3456 7890"),[f,A]=d.useState("@reza.amelia"),[y,R]=d.useState("Instagram"),[W,G]=d.useState("ya"),[ae,xe]=d.useState(!1),[$,T]=d.useState(!1),[_,D]=d.useState(!1),[Y,se]=d.useState(""),[te,P]=d.useState([{id:1,role:"Bride (Client)",makeup:!0,hairdo:!0,hijab:!0},{id:2,role:"Mother",makeup:!0,hairdo:!0,hijab:!1}]),[le,pe]=d.useState("Maid / Sister / Others"),[be,J]=d.useState("2026-07-26"),[fe,B]=d.useState("19:51"),[oe,k]=d.useState("The Westin Jakarta, Jl. H.R. Rasuna Said Kaw. C-22A, Kuningan, Jakarta Selatan"),[U,ie]=d.useState(""),[me]=d.useState(15e5),[Ne]=d.useState(75e3),[c]=d.useState(5e4),[F]=d.useState(1e5),[v,Z]=d.useState("500.000"),[re,ue]=d.useState(!1),[ne,Ce]=d.useState("DP Masuk"),we=me+Ne+c-F,ce=re?0:parseInt(v.replace(/\D/g,"")||"0",10),He=Math.max(0,we-ce),Ye=[{id:1,label:"Client",subtitle:"Data Pemesan"},{id:2,label:"Layanan",subtitle:"Paket & Additional Person"},{id:3,label:"Acara",subtitle:"Waktu & Lokasi Google Maps"},{id:4,label:"Pembayaran",subtitle:"Rincian & DP"},{id:5,label:"Konfirmasi",subtitle:"Review & Finish"}],De=()=>{P([...te,{id:Date.now(),role:le,makeup:!0,hairdo:!0,hijab:!1}]),m(`Berhasil menambah orang: ${le}`)},ht=N=>{P(te.filter(ge=>ge.id!==N))},_e=()=>{if(o===1&&!M){m("Mohon isi Nama Client terlebih dahulu");return}o<5&&S(o+1)},rt=()=>{o>1&&S(o-1)},pt=N=>{if(!M){m("Mohon isi Nama Client"),S(1);return}const ge={id:`r${Date.now()}`,name:M,service:"Wedding Makeup Package",date:be,status:N==="final"?"Dikonfirmasi":"Draft",payment:ne==="Lunas"?"Lunas":ne==="DP Masuk"?"DP 50%":"Belum Bayar"};h&&h(ge),m(N==="draft"?"Reservasi berhasil disimpan sebagai Draft":N==="invoice"?"Invoice berhasil dibuat & dikirim ke WhatsApp Client!":"Reservasi baru berhasil dikonfirmasi & dibuat!")};return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-200 max-w-6xl mx-auto",children:[e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsx("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 pb-3 border-b border-slate-100",children:e.jsx("div",{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-xl bg-pink-50 text-[#EC167F] font-black text-sm flex items-center justify-center",children:e.jsx(Aa,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-base font-extrabold text-slate-900",children:"Create Reservasi / Booking"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Buat reservasi baru untuk client Anda secara bertahap (per tab)"})]})]})})}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2 pt-1",children:Ye.map(N=>{const ge=o===N.id,Ae=o>N.id;return e.jsxs("button",{type:"button",onClick:()=>S(N.id),className:`p-2.5 rounded-xl border text-left transition-all cursor-pointer flex items-center gap-2.5 ${ge?"bg-pink-50/80 border-[#EC167F] text-[#EC167F] shadow-2xs":Ae?"bg-emerald-50/50 border-emerald-200 text-emerald-800":"bg-slate-50 border-slate-200 text-slate-500 hover:bg-slate-100"}`,children:[e.jsx("span",{className:`w-7 h-7 rounded-full text-xs font-black flex items-center justify-center shrink-0 ${ge?"bg-[#EC167F] text-white shadow-xs":Ae?"bg-emerald-600 text-white":"bg-slate-200 text-slate-600"}`,children:Ae?e.jsx(Me,{className:"w-4 h-4 stroke-[3]"}):N.id}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-xs font-extrabold block truncate",children:N.label}),e.jsx("span",{className:"text-[10px] opacity-70 block truncate font-medium",children:N.subtitle})]})]},N.id)})})]}),e.jsxs("div",{children:[o===1&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-start animate-in fade-in zoom-in-98 duration-200",children:[e.jsxs("div",{className:"md:col-span-2 bg-white rounded-2xl p-5 border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(_s,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"1. Data Client Pemesan"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Lengkapi profil dan nomor kontak client"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Nama Client ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"text",value:M,onChange:N=>C(N.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20",placeholder:"Masukkan nama client"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["No. WhatsApp ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3.5 top-3 text-emerald-500",children:e.jsx(va,{className:"w-4 h-4"})}),e.jsx("input",{type:"text",value:u,onChange:N=>b(N.target.value),className:"w-full pl-10 pr-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20",placeholder:"0812xxxx"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Instagram ",e.jsx("span",{className:"text-slate-400 font-normal",children:"(opsional)"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3.5 top-3 text-pink-500",children:e.jsx(il,{className:"w-4 h-4"})}),e.jsx("input",{type:"text",value:f,onChange:N=>A(N.target.value),className:"w-full pl-10 pr-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20",placeholder:"@username"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Sumber Client"}),e.jsxs("select",{value:y,onChange:N=>R(N.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20 cursor-pointer",children:[e.jsx("option",{value:"Instagram",children:"Instagram"}),e.jsx("option",{value:"TikTok",children:"TikTok"}),e.jsx("option",{value:"Rekomendasi Teman",children:"Rekomendasi Teman"}),e.jsx("option",{value:"Google Search",children:"Google Search"}),e.jsx("option",{value:"Bridestory",children:"Bridestory"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-2",children:"Boleh di-posting & di-tag di Instagram MUA?"}),e.jsxs("div",{className:"flex items-center gap-6 text-xs font-semibold text-slate-700 bg-slate-50 p-3 rounded-xl border border-slate-200/80",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"allowTag",checked:W==="ya",onChange:()=>G("ya"),className:"accent-[#EC167F] w-4 h-4"}),e.jsx("span",{children:"Ya, boleh diposting"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"allowTag",checked:W==="tidak",onChange:()=>G("tidak"),className:"accent-[#EC167F] w-4 h-4"}),e.jsx("span",{children:"Tidak (Private)"})]})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-800",children:"Riwayat Client CRM"}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx("span",{className:"px-2 py-0.5 bg-emerald-100 text-emerald-800 text-[10px] font-black rounded-md",children:"Repeat Client"}),e.jsx("span",{className:"px-2 py-0.5 bg-purple-100 text-purple-800 text-[10px] font-black rounded-md",children:"VIP"})]})]}),e.jsxs("div",{className:"space-y-2 text-xs text-slate-600 font-medium",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Total Reservasi"}),e.jsx("span",{className:"font-extrabold text-slate-800",children:"8 kali"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Terakhir Booking"}),e.jsx("span",{className:"font-bold text-slate-700",children:"2 bulan lalu"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Total Belanja"}),e.jsx("span",{className:"font-extrabold text-[#EC167F]",children:"Rp 18.250.000"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400",children:"Rating Client"}),e.jsxs("div",{className:"flex items-center gap-1 font-bold text-amber-500",children:[e.jsx("span",{children:"★★★★★"}),e.jsx("span",{className:"text-slate-800",children:"4.9"})]})]})]})]}),e.jsxs("div",{className:"bg-purple-50/80 border border-purple-200/80 rounded-2xl p-3.5 text-xs text-purple-900 flex items-start gap-2.5",children:[e.jsx(Ke,{className:"w-4 h-4 text-purple-600 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold block text-purple-950 mb-0.5",children:"Catatan CRM"}),e.jsx("p",{className:"text-purple-800 leading-relaxed text-[11px]",children:"Client ini terakhir booking pada 15 Mei 2025 (Wedding Jakarta). Menyukai look makeup glowing natural."})]})]})]})]}),o===2&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-start animate-in fade-in zoom-in-98 duration-200",children:[e.jsxs("div",{className:"md:col-span-2 bg-white rounded-2xl p-5 border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ke,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"2. Layanan & Additional Persons"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Pilih paket utama dan orang tambahan"})]})]}),e.jsx("div",{className:"flex gap-2",children:e.jsxs("button",{type:"button",onClick:()=>m("Membuka katalog paket lengkap"),className:"py-1.5 px-3 bg-pink-50 hover:bg-pink-100 text-[#EC167F] rounded-xl text-xs font-bold border border-pink-200 transition-colors flex items-center gap-1 cursor-pointer",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Ganti Paket"})]})})]}),e.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-2xl p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=200",alt:"Wedding Makeup",referrerPolicy:"no-referrer",className:"w-16 h-16 rounded-xl object-cover border border-slate-200 shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-black text-slate-900",children:"Wedding Makeup Package"}),e.jsx("span",{className:"text-sm font-black text-[#EC167F]",children:"Rp1.500.000"})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Paket Wedding Premium Complete Look"}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-slate-600 font-bold mt-2",children:[e.jsxs("span",{children:["Orang: ",e.jsx("strong",{className:"text-slate-900",children:"1"})]}),e.jsxs("span",{children:["Durasi: ",e.jsx("strong",{className:"text-slate-900",children:"2 Jam"})]})]})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-200/80",children:[e.jsx("p",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider mb-1.5",children:"Layanan Termasuk Dalam Paket"}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 text-xs font-bold text-emerald-800",children:[e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 rounded-lg border border-emerald-200",children:"✓ Makeup"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 rounded-lg border border-emerald-200",children:"✓ Hairdo"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 rounded-lg border border-emerald-200",children:"✓ Hijab Styling"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 rounded-lg border border-emerald-200",children:"✓ Touch Up"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 rounded-lg border border-emerald-200",children:"✓ False Lashes"})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-800",children:"Orang Tambahan (Family / Bridesmaid)"}),e.jsxs("span",{className:"text-xs text-slate-400 font-bold",children:[te.length," Orang Terdaftar"]})]}),e.jsx("div",{className:"space-y-2",children:te.map((N,ge)=>e.jsxs("div",{className:"p-3 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-[#EC167F] text-white flex items-center justify-center text-xs font-extrabold shrink-0",children:ge+1}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 text-xs block",children:N.role}),e.jsxs("div",{className:"flex gap-2 text-[10px] font-bold text-emerald-700 mt-0.5",children:[N.makeup&&e.jsx("span",{children:"✓ Makeup"}),N.hairdo&&e.jsx("span",{children:"✓ Hairdo"}),N.hijab&&e.jsx("span",{children:"✓ Hijab"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[e.jsx("button",{onClick:()=>m(`Edit ${N.role}`),className:"p-1 hover:text-slate-800 cursor-pointer",children:e.jsx(og,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>ht(N.id),className:"p-1 hover:text-rose-600 cursor-pointer",children:e.jsx(ka,{className:"w-3.5 h-3.5"})})]})]},N.id))}),e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsxs("select",{value:le,onChange:N=>pe(N.target.value),className:"flex-1 px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none",children:[e.jsx("option",{value:"Maid / Sister / Others",children:"Maid / Sister / Others"}),e.jsx("option",{value:"Bridesmaid",children:"Bridesmaid"}),e.jsx("option",{value:"Mother-in-law",children:"Mother-in-law"}),e.jsx("option",{value:"Family Member",children:"Family Member"})]}),e.jsx("button",{type:"button",onClick:De,className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-bold transition-colors cursor-pointer",children:"+ Tambah Orang"})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs space-y-3",children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-800",children:"Add-On Ekstra"}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("button",{type:"button",onClick:()=>xe(!ae),className:`w-full p-2.5 rounded-xl border text-left cursor-pointer transition-all flex items-center justify-between ${ae?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx("span",{className:"font-extrabold",children:"Softlens Import"}),e.jsx("span",{className:"text-xs font-bold",children:"Rp150.000"})]}),e.jsxs("button",{type:"button",onClick:()=>T(!$),className:`w-full p-2.5 rounded-xl border text-left cursor-pointer transition-all flex items-center justify-between ${$?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx("span",{className:"font-extrabold",children:"Touch Up Standby"}),e.jsx("span",{className:"text-xs font-bold",children:"Rp250.000"})]}),e.jsxs("button",{type:"button",onClick:()=>D(!_),className:`w-full p-2.5 rounded-xl border text-left cursor-pointer transition-all flex items-center justify-between ${_?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx("span",{className:"font-extrabold",children:"Retouch Malam"}),e.jsx("span",{className:"text-xs font-bold",children:"Rp200.000"})]})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs space-y-2",children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700",children:"Catatan Layanan"}),e.jsx("textarea",{value:Y,onChange:N=>se(N.target.value),placeholder:"Tulis catatan khusus gaun / warna hijab...",rows:3,maxLength:500,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-mono float-right",children:[Y.length,"/500"]})]})]})]}),o===3&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-start animate-in fade-in zoom-in-98 duration-200",children:[e.jsxs("div",{className:"md:col-span-2 bg-white rounded-2xl p-5 border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(Aa,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"3. Waktu & Lokasi Acara"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Tentukan tanggal, jam, dan titik lokasi pengerjaan"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Tanggal Acara ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"date",value:be,onChange:N=>J(N.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Waktu Mulai Acara ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"time",value:fe,onChange:N=>B(N.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none"})]})]}),e.jsxs("div",{className:"bg-slate-50 border border-slate-200/80 rounded-2xl p-3.5 flex items-center justify-between text-xs",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-bold block mb-0.5",children:"Estimasi Selesai Makeup"}),e.jsxs("span",{className:"font-extrabold text-slate-800 text-sm flex items-center gap-2",children:["22.36",e.jsx("span",{className:"px-2 py-0.5 bg-emerald-100 text-emerald-800 text-[10px] rounded-md font-black",children:"Kalkulasi Otomatis"})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"text-slate-400 font-bold block mb-0.5",children:"Durasi Total Pengerjaan"}),e.jsx("span",{className:"font-extrabold text-slate-800 text-sm",children:"2 Jam 45 Menit"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1.5",children:["Lokasi Acara (Link Google Maps) ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"text",value:oe,onChange:N=>k(N.target.value),placeholder:"Tempel link Google Maps atau nama lokasi...",className:"flex-1 px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none"}),e.jsx("button",{type:"button",onClick:()=>m("Link lokasi berhasil diverifikasi!"),className:"px-4 py-2.5 bg-pink-50 hover:bg-pink-100 text-[#EC167F] font-bold text-xs rounded-xl border border-pink-200 cursor-pointer shrink-0",children:"Tempel Link"})]})]}),e.jsxs("div",{className:"bg-slate-100 border border-slate-200 rounded-2xl overflow-hidden",children:[e.jsxs("div",{className:"p-4 bg-gradient-to-r from-slate-100 to-slate-200 flex items-start gap-3",children:[e.jsx(Ut,{className:"w-5 h-5 text-rose-500 shrink-0 mt-0.5"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"The Westin Jakarta"}),e.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:"Jl. H.R. Rasuna Said Kaw. C-22A, Kuningan, Jakarta Selatan"})]})]}),e.jsxs("a",{href:"https://maps.google.com",target:"_blank",rel:"noreferrer",className:"w-full py-2 bg-white hover:bg-slate-50 border-t border-slate-200 text-[#EC167F] font-bold text-xs flex items-center justify-center gap-1.5 cursor-pointer",children:[e.jsx("span",{children:"Buka Google Maps"}),e.jsx(Wl,{className:"w-3.5 h-3.5"})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs space-y-3",children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-800",children:"Kalkulator Ongkos Kirim Tim MUA"}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center text-xs",children:[e.jsxs("div",{className:"bg-slate-50 p-2 rounded-xl border border-slate-200/80",children:[e.jsx("span",{className:"text-slate-400 block font-bold text-[10px]",children:"Jarak"}),e.jsx("span",{className:"font-extrabold text-slate-800 text-xs",children:"12 km"})]}),e.jsxs("div",{className:"bg-slate-50 p-2 rounded-xl border border-slate-200/80",children:[e.jsx("span",{className:"text-slate-400 block font-bold text-[10px]",children:"Estimasi Waktu"}),e.jsx("span",{className:"font-extrabold text-slate-800 text-xs",children:"35 mnt"})]}),e.jsxs("div",{className:"bg-slate-50 p-2 rounded-xl border border-slate-200/80",children:[e.jsx("span",{className:"text-slate-400 block font-bold text-[10px]",children:"Transport"}),e.jsx("span",{className:"font-extrabold text-emerald-600 text-xs",children:"Rp75.000"})]})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs space-y-2",children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700",children:"Catatan Lokasi / Ruangan"}),e.jsx("textarea",{value:U,onChange:N=>ie(N.target.value),placeholder:"Contoh: Ballroom Lantai 3, masuk lewat lift samping...",rows:3,maxLength:300,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"})]})]})]}),o===4&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-start animate-in fade-in zoom-in-98 duration-200",children:[e.jsxs("div",{className:"md:col-span-2 bg-white rounded-2xl p-5 border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(Ke,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"4. Pembayaran & Rincian Biaya"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Atur skema DP, diskon, dan status pembayaran"})]})]}),e.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-2xl p-4 space-y-2.5 text-xs",children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-900 block mb-1",children:"Rincian Komponen Biaya"}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-500",children:"Subtotal Layanan"}),e.jsxs("span",{className:"font-extrabold text-slate-800",children:["Rp",me.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{className:"text-slate-500",children:["Transport ",e.jsx("span",{className:"text-emerald-600 font-bold",children:"(Otomatis jarak)"})]}),e.jsxs("span",{className:"font-extrabold text-emerald-600",children:["Rp",Ne.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-500",children:"Biaya Aksesoris / Tambahan"}),e.jsxs("span",{className:"font-extrabold text-slate-800",children:["Rp",c.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-500",children:"Diskon Promo"}),e.jsxs("span",{className:"font-extrabold text-rose-600",children:["-Rp",F.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-200 flex justify-between items-center",children:[e.jsx("span",{className:"text-sm font-black text-slate-900",children:"Grand Total"}),e.jsxs("span",{className:"text-lg font-black text-[#EC167F]",children:["Rp",we.toLocaleString("id-ID")]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Nominal Down Payment (DP) ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx("span",{className:"absolute left-3.5 top-2.5 text-xs font-bold text-slate-400",children:"Rp"}),e.jsx("input",{type:"text",value:v,onChange:N=>Z(N.target.value),disabled:re,className:"w-full pl-10 pr-3.5 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-bold focus:bg-white focus:outline-none"})]}),e.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-slate-600 font-bold cursor-pointer shrink-0",children:[e.jsx("input",{type:"checkbox",checked:re,onChange:N=>ue(N.target.checked),className:"accent-[#EC167F] w-4 h-4"}),e.jsx("span",{children:"Tanpa DP"})]})]}),e.jsxs("div",{className:"flex justify-between text-xs pt-2 font-bold",children:[e.jsx("span",{className:"text-slate-500",children:"Sisa Pelunasan H-1"}),e.jsxs("span",{className:"text-slate-900 font-black",children:["Rp",He.toLocaleString("id-ID")]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-2",children:"Status Pembayaran"}),e.jsxs("div",{className:"flex flex-col gap-2 text-xs font-semibold text-slate-700",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 bg-slate-50 border border-slate-200/80 rounded-xl",children:[e.jsx("input",{type:"radio",name:"pmtStatusStep",checked:ne==="Belum Bayar",onChange:()=>Ce("Belum Bayar"),className:"accent-[#EC167F]"}),e.jsx("span",{children:"Belum Bayar (Menunggu DP)"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 bg-pink-50/50 border border-pink-200 rounded-xl text-[#EC167F]",children:[e.jsx("input",{type:"radio",name:"pmtStatusStep",checked:ne==="DP Masuk",onChange:()=>Ce("DP Masuk"),className:"accent-[#EC167F]"}),e.jsx("span",{className:"font-extrabold",children:"DP Masuk (Dikonfirmasi)"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 bg-slate-50 border border-slate-200/80 rounded-xl",children:[e.jsx("input",{type:"radio",name:"pmtStatusStep",checked:ne==="Lunas",onChange:()=>Ce("Lunas"),className:"accent-[#EC167F]"}),e.jsx("span",{children:"Lunas (Full Paid)"})]})]})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-pink-50/80 border border-pink-200/90 rounded-2xl p-4 space-y-3 text-xs shadow-2xs",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1.5 font-black text-pink-900",children:[e.jsx(Ke,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Estimasi Margin & Tips Studio"})]}),e.jsx("span",{className:"px-2 py-0.5 bg-pink-200 text-pink-800 text-[10px] font-black rounded-md",children:"Estimasi"})]}),e.jsxs("div",{className:"flex justify-between text-xs font-bold pt-1",children:[e.jsx("span",{className:"text-slate-700",children:"Estimasi profit booking ini"}),e.jsx("span",{className:"text-emerald-600 font-black",children:"Rp950.000"})]}),e.jsxs("div",{className:"pt-2 border-t border-pink-200/80 text-xs space-y-2",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block",children:"Saran Tambahan"}),e.jsx("p",{className:"text-slate-600 text-[11px] leading-relaxed",children:"✓ Disarankan menambah Touch Up jika durasi resepsi > 6 jam."}),e.jsx("button",{type:"button",onClick:()=>{T(!0),m("Touch Up ditambahkan!")},className:"w-full py-1.5 bg-white hover:bg-pink-100 text-[#EC167F] border border-pink-300 font-extrabold rounded-xl text-xs cursor-pointer transition-colors",children:"+ Tambah Touch Up Standby"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs space-y-2",children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700",children:"Bukti Transfer DP (Opsional)"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[e.jsxs("button",{type:"button",onClick:()=>m("Membuka kamera HP..."),className:"p-3 bg-slate-50 hover:bg-slate-100 border border-slate-200 rounded-xl font-bold text-slate-700 flex flex-col items-center justify-center gap-1 cursor-pointer",children:[e.jsx(gr,{className:"w-4 h-4 text-slate-500"}),e.jsx("span",{className:"text-[10px]",children:"Ambil Foto"})]}),e.jsxs("button",{type:"button",onClick:()=>m("Membuka galeri foto..."),className:"p-3 bg-slate-50 hover:bg-slate-100 border border-slate-200 rounded-xl font-bold text-slate-700 flex flex-col items-center justify-center gap-1 cursor-pointer",children:[e.jsx(Xn,{className:"w-4 h-4 text-slate-500"}),e.jsx("span",{className:"text-[10px]",children:"Dari Galeri"})]})]})]})]})]}),o===5&&e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-slate-200/80 shadow-2xs space-y-6 animate-in fade-in zoom-in-98 duration-200",children:[e.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-10 h-10 rounded-2xl bg-emerald-50 text-emerald-600 flex items-center justify-center",children:e.jsx(Ge,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-black text-slate-900",children:"5. Konfirmasi Ringkasan Reservasi"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Periksa kembali data sebelum menyimpan atau mengirimkan invoice"})]})]}),e.jsx("span",{className:"px-3 py-1 bg-pink-100 text-[#EC167F] text-xs font-black rounded-xl",children:"Status: Draft Siap Dibuat"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 bg-slate-50 border border-slate-200/80 rounded-2xl space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-black text-slate-900 uppercase tracking-wider",children:"Client & Layanan"}),e.jsx("button",{onClick:()=>S(1),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Edit Client"})]}),e.jsxs("div",{className:"space-y-1.5 text-xs",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Nama:"}),e.jsx("span",{className:"font-extrabold text-slate-800",children:M})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"WhatsApp:"}),e.jsx("span",{className:"font-bold text-slate-700",children:u})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Instagram:"}),e.jsx("span",{className:"font-bold text-slate-700",children:f})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Paket:"}),e.jsx("span",{className:"font-extrabold text-[#EC167F]",children:"Wedding Makeup Package"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Orang Tambahan:"}),e.jsxs("span",{className:"font-bold text-slate-700",children:[te.length," Orang"]})]})]})]}),e.jsxs("div",{className:"p-4 bg-slate-50 border border-slate-200/80 rounded-2xl space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-black text-slate-900 uppercase tracking-wider",children:"Waktu & Lokasi"}),e.jsx("button",{onClick:()=>S(3),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Edit Acara"})]}),e.jsxs("div",{className:"space-y-1.5 text-xs",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Tanggal:"}),e.jsx("span",{className:"font-extrabold text-slate-800",children:be})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Jam Mulai:"}),e.jsxs("span",{className:"font-bold text-slate-700",children:[fe," WIB"]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Estimasi Selesai:"}),e.jsx("span",{className:"font-bold text-slate-700",children:"22.36 WIB"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Lokasi:"}),e.jsx("span",{className:"font-bold text-slate-800 truncate max-w-[200px]",children:"The Westin Jakarta"})]})]})]}),e.jsxs("div",{className:"md:col-span-2 p-4 bg-pink-50/50 border border-pink-200/80 rounded-2xl flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-500 uppercase tracking-wider block",children:"Ringkasan Tagihan"}),e.jsxs("div",{className:"flex items-baseline gap-2 mt-1",children:[e.jsxs("span",{className:"text-2xl font-black text-[#EC167F]",children:["Rp",we.toLocaleString("id-ID")]}),e.jsxs("span",{className:"text-xs text-slate-600 font-bold",children:["(DP: Rp",ce.toLocaleString("id-ID")," | Sisa: Rp",He.toLocaleString("id-ID"),")"]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:()=>pt("draft"),className:"px-4 py-2 bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 font-bold rounded-xl text-xs cursor-pointer",children:"Simpan Draft"}),e.jsx("button",{type:"button",onClick:()=>pt("invoice"),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-xl text-xs shadow-xs cursor-pointer",children:"Create & Send Invoice WhatsApp"})]})]})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-lg flex flex-col sm:flex-row items-center justify-between gap-3 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[e.jsx("button",{type:"button",onClick:j,className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl transition-colors cursor-pointer",children:"Batal"}),o>1&&e.jsxs("button",{type:"button",onClick:rt,className:"px-4 py-2 border border-slate-200 hover:bg-slate-50 text-slate-800 font-bold rounded-xl transition-colors flex items-center gap-1 cursor-pointer",children:[e.jsx(ra,{className:"w-4 h-4"}),e.jsx("span",{children:"Kembali"})]})]}),e.jsxs("span",{className:"text-xs font-extrabold text-slate-500",children:["Langkah ",e.jsx("strong",{className:"text-[#EC167F]",children:o})," dari 5"]}),e.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto justify-end",children:[e.jsx("button",{type:"button",onClick:()=>pt("draft"),className:"px-4 py-2 border border-slate-200 hover:bg-slate-50 text-slate-700 font-bold rounded-xl transition-colors cursor-pointer hidden sm:inline-block",children:"Simpan Draft"}),o<5?e.jsxs("button",{type:"button",onClick:_e,className:"px-5 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-black rounded-xl shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx("span",{children:"Lanjutkan"}),e.jsx(it,{className:"w-4 h-4"})]}):e.jsxs("button",{type:"button",onClick:()=>pt("final"),className:"px-5 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-black rounded-xl shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Me,{className:"w-4 h-4 stroke-[3]"}),e.jsx("span",{children:"Buat Reservasi Sekarang"})]})]})]})]})},T1=({isOpen:h,onClose:j,onAdd:m})=>h?e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-2 sm:p-4 overflow-y-auto",children:e.jsxs("div",{className:"bg-slate-100 rounded-2xl max-w-7xl w-full border border-slate-200 shadow-2xl overflow-hidden my-auto animate-in fade-in zoom-in-95 duration-200 p-3 sm:p-4 relative max-h-[92vh] overflow-y-auto",children:[e.jsx("button",{onClick:j,className:"absolute top-4 right-4 z-10 p-1.5 bg-white text-slate-500 hover:text-slate-800 rounded-full shadow-md hover:bg-slate-50 transition-colors cursor-pointer",title:"Tutup",children:e.jsx(tt,{className:"w-5 h-5"})}),e.jsx(Am,{onSave:o=>{m(o),j()},onCancel:j})]})}):null,B1=({role:h,setRole:j,activeTab:m,setActiveTab:o,menus:S,onOpenAddModal:M,triggerToast:C})=>{const[u,b]=d.useState(!1),[f,A]=d.useState(""),y=h==="superadmin"?[{id:"dashboard",label:"Beranda",icon:kr},{id:"tenant",label:"Tenant",icon:is},{id:"paket",label:"Paket",icon:Ps},{id:"pembayaran",label:"Pembayaran",icon:Ht}]:[{id:"dashboard",label:"Beranda",icon:kr},{id:"reservasi",label:"Reservasi",icon:Aa},{id:"layanan",label:"Layanan",icon:Ke},{id:"keuangan",label:"Keuangan",icon:rd}],R=S.filter(W=>W.label.toLowerCase().includes(f.toLowerCase()));return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white/95 backdrop-blur-md border-t border-slate-200/90 shadow-lg sm:hidden px-2 py-1.5 flex items-center justify-around",children:[y.map(W=>{const G=W.icon,ae=m===W.id;return e.jsxs("button",{onClick:()=>{o(W.id),b(!1)},className:`flex flex-col items-center justify-center py-1 px-2.5 rounded-xl transition-all cursor-pointer ${ae?"text-[#EC167F] font-bold":"text-slate-500 hover:text-slate-800"}`,children:[e.jsx("div",{className:`p-1 rounded-xl transition-transform ${ae?"scale-110 bg-pink-50":""}`,children:e.jsx(G,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-[10px] mt-0.5 font-semibold tracking-tight",children:W.label})]},W.id)}),e.jsxs("button",{onClick:()=>b(!0),className:`flex flex-col items-center justify-center py-1 px-2.5 rounded-xl transition-all cursor-pointer ${u?"text-[#EC167F] font-bold":"text-slate-500 hover:text-slate-800"}`,children:[e.jsx("div",{className:`p-1 rounded-xl transition-transform ${u?"scale-110 bg-pink-50":""}`,children:e.jsx(Jf,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-[10px] mt-0.5 font-semibold tracking-tight",children:"Lainnya"})]})]}),u&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex flex-col justify-end sm:hidden animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white rounded-t-3xl max-h-[85vh] flex flex-col shadow-2xl border-t border-slate-100 overflow-hidden animate-in slide-in-from-bottom duration-300",children:[e.jsxs("div",{className:"p-3.5 border-b border-slate-100 flex items-center justify-between shrink-0 bg-slate-50/50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-[#EC167F]"}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-xs font-extrabold text-slate-900",children:["Menu MuaKita (",h==="superadmin"?"Super Admin":"Bisnis Owner",")"]}),e.jsx("p",{className:"text-[10px] text-slate-500",children:"Semua fitur & navigasi platform"})]})]}),e.jsx("button",{onClick:()=>b(!1),className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-full transition-colors cursor-pointer",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"p-3 bg-pink-50/60 border-b border-pink-100 flex items-center justify-between text-xs shrink-0",children:[e.jsx("span",{className:"font-bold text-slate-700 text-[11px]",children:"Ganti Mode Role:"}),e.jsxs("div",{className:"flex gap-1.5",children:[e.jsxs("button",{onClick:()=>{j("superadmin"),o("dashboard"),C("Switch ke role: Super Admin")},className:`px-2.5 py-1 rounded-lg text-[10px] font-bold flex items-center gap-1 cursor-pointer transition-all ${h==="superadmin"?"bg-[#EC167F] text-white shadow-2xs":"bg-white text-slate-600 border border-slate-200"}`,children:[e.jsx(Ar,{className:"w-3 h-3"})," Superadmin"]}),e.jsxs("button",{onClick:()=>{j("owner"),o("dashboard"),C("Switch ke role: Bisnis Owner")},className:`px-2.5 py-1 rounded-lg text-[10px] font-bold flex items-center gap-1 cursor-pointer transition-all ${h==="owner"?"bg-[#EC167F] text-white shadow-2xs":"bg-white text-slate-600 border border-slate-200"}`,children:[e.jsx(id,{className:"w-3 h-3"})," Bisnis Owner"]})]})]}),e.jsx("div",{className:"p-3 border-b border-slate-100 shrink-0 flex items-center gap-2",children:e.jsxs("button",{onClick:()=>{b(!1),M()},className:"w-full py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-bold flex items-center justify-center gap-1.5 shadow-xs cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:h==="superadmin"?"Buat Tenant Baru":"Buat Reservasi Baru"})]})}),e.jsx("div",{className:"px-3 pt-2 pb-1 shrink-0",children:e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Cari menu navigasi...",value:f,onChange:W=>A(W.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-slate-100 border border-slate-200/80 rounded-xl text-xs focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-2.5"})]})}),e.jsx("div",{className:"p-3 overflow-y-auto flex-1 grid grid-cols-2 gap-2 custom-scrollbar",children:R.map(W=>{const G=W.icon,ae=m===W.id;return e.jsxs("button",{onClick:()=>{o(W.id),b(!1)},className:`flex items-center gap-2.5 p-2.5 rounded-xl border text-left text-xs font-bold transition-all cursor-pointer ${ae?"bg-pink-50 border-pink-200 text-[#EC167F] shadow-2xs":"bg-slate-50/80 border-slate-200/60 text-slate-700 hover:bg-slate-100"}`,children:[e.jsx("div",{className:`p-1.5 rounded-lg shrink-0 ${ae?"bg-[#EC167F] text-white":"bg-white text-slate-600 border border-slate-200"}`,children:e.jsx(G,{className:"w-4 h-4"})}),e.jsx("span",{className:"truncate flex-1 text-[11px]",children:W.label}),W.badge&&e.jsx("span",{className:"text-[8px] font-extrabold px-1 py-0.2 rounded bg-purple-100 text-purple-700",children:W.badge})]},W.id)})}),e.jsx("div",{className:"p-3 bg-slate-50 border-t border-slate-100 text-center shrink-0",children:e.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"MuaKita App Version 1.0 • Mobile View"})})]})})]})},D1=({tenantId:h="TEN-000312",onBack:j,triggerToast:m})=>{const[o,S]=d.useState("Ringkasan"),[M,C]=d.useState(!1),u=(b,f)=>{navigator.clipboard.writeText(b),m(`${f} berhasil disalin!`),C(!0),setTimeout(()=>C(!1),2e3)};return e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-200 text-slate-800 pb-12",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("button",{onClick:j,className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-xl bg-white hover:bg-slate-50 border border-slate-200/80 text-slate-600 font-bold text-xs transition-colors cursor-pointer shadow-2xs",children:[e.jsx(nd,{className:"w-4 h-4 text-slate-500"}),e.jsx("span",{children:"Kembali ke Daftar Tenant"})]}),e.jsxs("span",{className:"text-xs font-semibold text-slate-400",children:["Super Admin / Manajemen Tenant / ",e.jsx("strong",{className:"text-slate-700 font-bold",children:"Detail Tenant"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 md:p-6 space-y-6",children:[e.jsxs("div",{className:"flex flex-col lg:flex-row items-start lg:items-center justify-between gap-6",children:[e.jsxs("div",{className:"flex items-start sm:items-center gap-4 flex-1",children:[e.jsxs("div",{className:"w-16 h-16 rounded-full bg-black text-white flex flex-col items-center justify-center p-2 text-center shrink-0 shadow-md",children:[e.jsx("span",{className:"font-serif italic font-bold text-sm tracking-tight leading-none text-pink-200",children:"Glow"}),e.jsx("span",{className:"text-[7px] tracking-widest font-sans uppercase text-slate-300 mt-0.5",children:"BRIDAL STUDIO"})]}),e.jsxs("div",{className:"space-y-1.5 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("h1",{className:"text-2xl font-black text-slate-900 tracking-tight",children:"Glow Bridal Studio"}),e.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[11px] font-bold bg-emerald-100/90 text-emerald-700 flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"Aktif"]}),e.jsx("span",{className:"px-2.5 py-0.5 rounded-full text-[11px] font-bold bg-purple-100 text-purple-700",children:"Enterprise"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-slate-500 font-medium",children:[e.jsxs("a",{href:"https://glowbridal.muakita.com",target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-slate-600 hover:text-[#EC167F] font-semibold",children:[e.jsx(mt,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:"glowbridal.muakita.com"}),e.jsx(Wl,{className:"w-3 h-3 text-slate-400"})]}),e.jsxs("div",{className:"flex items-center gap-1 text-slate-600",children:[e.jsx(Ql,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:"glowbridal@gmail.com"})]}),e.jsxs("div",{className:"flex items-center gap-1 text-slate-600",children:[e.jsx(va,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:"0812-1234-5678"})]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 self-end lg:self-start shrink-0",children:[e.jsxs("button",{onClick:()=>m("Membuka modal edit tenant"),className:"px-3.5 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 rounded-xl text-xs font-bold flex items-center gap-1.5 transition-colors cursor-pointer shadow-2xs",children:[e.jsx(rs,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Edit Tenant"})]}),e.jsxs("button",{onClick:()=>m("Konfirmasi suspend tenant"),className:"px-3.5 py-2 bg-amber-50 hover:bg-amber-100 text-amber-700 border border-amber-200 rounded-xl text-xs font-bold flex items-center gap-1.5 transition-colors cursor-pointer",children:[e.jsx(Il,{className:"w-3.5 h-3.5 text-amber-600"}),e.jsx("span",{children:"Suspend"})]}),e.jsx("div",{className:"relative group",children:e.jsxs("button",{className:"px-3 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 rounded-xl text-xs font-bold flex items-center gap-1 transition-colors cursor-pointer shadow-2xs",children:[e.jsx("span",{children:"Lainnya"}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400"})]})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 pt-5 border-t border-slate-100",children:[e.jsxs("div",{className:"lg:col-span-8 grid grid-cols-1 sm:grid-cols-3 gap-y-4 gap-x-6 text-xs",children:[e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(Ie,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 text-[11px] font-medium block",children:"Tanggal Bergabung"}),e.jsx("strong",{className:"text-slate-900 font-bold block text-xs",children:"10 Mei 2025"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"1 bulan lalu"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(_s,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 text-[11px] font-medium block",children:"Pemilik / Owner"}),e.jsx("strong",{className:"text-slate-900 font-bold block text-xs",children:"Dewi Lestari"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate max-w-[130px]",children:"dewilestari@gmail.com"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(Ut,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 text-[11px] font-medium block",children:"Lokasi"}),e.jsx("strong",{className:"text-slate-900 font-bold block text-xs",children:"Jakarta, Indonesia"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"GMT +07:00"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(ja,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 text-[11px] font-medium block",children:"ID Tenant"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("strong",{className:"text-slate-900 font-bold text-xs",children:h}),e.jsx("button",{onClick:()=>u(h,"ID Tenant"),className:"p-1 text-slate-400 hover:text-slate-600 transition-colors cursor-pointer",title:"Salin ID",children:e.jsx(Ua,{className:"w-3 h-3"})})]})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(St,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 text-[11px] font-medium block",children:"Jumlah Pengguna"}),e.jsx("strong",{className:"text-slate-900 font-bold block text-xs",children:"8 User"}),e.jsx("button",{onClick:()=>S("Pengguna"),className:"text-[10px] text-pink-600 font-semibold hover:underline block cursor-pointer",children:"Lihat detail"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(Nr,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 text-[11px] font-medium block",children:"Paket Berlangganan"}),e.jsx("strong",{className:"text-slate-900 font-bold block text-xs",children:"Enterprise"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"Rp599.000 / bulan"})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-slate-50/80 rounded-xl p-3.5 border border-slate-200/60 text-xs space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-200/60 pb-2",children:[e.jsx("span",{className:"font-bold text-slate-700 text-[11px]",children:"Status Pembayaran"}),e.jsxs("span",{className:"font-bold text-emerald-600 text-xs flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"Aktif"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[e.jsx("span",{className:"text-slate-500",children:"Siklus Berlangganan"}),e.jsx("span",{className:"font-bold text-slate-900",children:"Bulanan"})]}),e.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[e.jsx("span",{className:"text-slate-500",children:"Tanggal Berakhir"}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-bold text-slate-900 block",children:"10 Mei 2026"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"11 bulan lagi"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-[11px] pt-1 border-t border-slate-200/60",children:[e.jsx("span",{className:"text-slate-500",children:"Metode Pembayaran"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"font-mono text-slate-700 text-[10px]",children:"•••• 4242 (Visa)"}),e.jsx("span",{className:"px-1.5 py-0.5 bg-blue-900 text-white font-extrabold text-[8px] rounded tracking-widest italic",children:"VISA"})]})]})]})]})]}),e.jsx("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs px-2 pt-1",children:e.jsx("div",{className:"flex items-center gap-1 overflow-x-auto no-scrollbar scroll-smooth text-xs",children:[{id:"Ringkasan",label:"Ringkasan"},{id:"Pengguna",label:"Pengguna (8)"},{id:"Paket & Billing",label:"Paket & Billing"},{id:"Domain & Akses",label:"Domain & Akses"},{id:"Penggunaan Fitur",label:"Penggunaan Fitur"},{id:"Aktivitas",label:"Aktivitas"},{id:"Log & Riwayat",label:"Log & Riwayat"}].map(b=>{const f=o===b.id;return e.jsxs("button",{onClick:()=>S(b.id),className:`py-3 px-4 font-bold border-b-2 transition-all whitespace-nowrap cursor-pointer flex items-center gap-1.5 ${f?"border-[#EC167F] text-[#EC167F]":"border-transparent text-slate-500 hover:text-slate-800 hover:border-slate-300"}`,children:[b.id==="Ringkasan"&&e.jsx(za,{className:"w-3.5 h-3.5"}),b.id==="Pengguna"&&e.jsx(St,{className:"w-3.5 h-3.5"}),b.id==="Paket & Billing"&&e.jsx(Ht,{className:"w-3.5 h-3.5"}),b.id==="Domain & Akses"&&e.jsx(mt,{className:"w-3.5 h-3.5"}),b.id==="Penggunaan Fitur"&&e.jsx(Qn,{className:"w-3.5 h-3.5"}),b.id==="Aktivitas"&&e.jsx(Vt,{className:"w-3.5 h-3.5"}),b.id==="Log & Riwayat"&&e.jsx(ja,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:b.label})]},b.id)})})}),o==="Ringkasan"&&e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-150",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-3.5",children:[e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0 border border-emerald-100",children:e.jsx(Ht,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Pendapatan"}),e.jsx("span",{className:"text-lg font-black text-slate-900 leading-tight block",children:"Rp7.188.000"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Total dari tenant ini"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:["↑ 18.6% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-purple-50 text-purple-600 flex items-center justify-center shrink-0 border border-purple-100",children:e.jsx(Ie,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Reservasi"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"256"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Reservasi dibuat"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:["~ 12.5% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-blue-50 text-blue-600 flex items-center justify-center shrink-0 border border-blue-100",children:e.jsx(Ge,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Layanan"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"24"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Layanan aktif"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:["~ 8.3% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-amber-50 text-amber-600 flex items-center justify-center shrink-0 border border-amber-100",children:e.jsx(_s,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Pelanggan"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"178"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Pelanggan terdaftar"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:["~ 15.2% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-pink-50 text-[#EC167F] flex items-center justify-center shrink-0 border border-pink-100",children:e.jsx(St,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Pengguna"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"8"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Akun pengguna aktif"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:["~ 3 ",e.jsx("span",{className:"text-slate-400 font-normal",children:"sejak bulan lalu"})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[e.jsx("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 flex flex-col justify-between space-y-4",children:e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-black text-slate-900 mb-4 pb-2 border-b border-slate-100",children:"Informasi Bisnis"}),e.jsxs("div",{className:"space-y-3.5 text-xs",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px]",children:"Nama Bisnis"}),e.jsx("strong",{className:"text-slate-900 font-bold block",children:"Glow Bridal Studio"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px]",children:"Industri"}),e.jsx("strong",{className:"text-slate-900 font-bold block",children:"Wedding & Beauty"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px]",children:"Alamat"}),e.jsx("p",{className:"text-slate-800 font-medium leading-snug",children:"Jl. Sudirman No. 123, Jakarta Pusat, DKI Jakarta 10220"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px]",children:"Deskripsi"}),e.jsx("p",{className:"text-slate-600 text-[11px] leading-relaxed",children:"Penyedia jasa rias pengantin profesional dengan layanan lengkap untuk hari spesial Anda."})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px] mb-1",children:"Logo"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-black text-white text-[9px] font-serif italic flex items-center justify-center font-bold",children:"Glow"}),e.jsx("button",{onClick:()=>m("Membuka logo tenant"),className:"px-2.5 py-1 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-[11px] rounded-lg transition-colors cursor-pointer",children:"Lihat Logo"})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 text-[11px]",children:[e.jsx("span",{className:"text-slate-400 block",children:"Dibuat Pada"}),e.jsx("strong",{className:"text-slate-800 block",children:"10 Mei 2025, 09:24"})]}),e.jsxs("div",{className:"text-[11px]",children:[e.jsx("span",{className:"text-slate-400 block",children:"Dibuat Oleh"}),e.jsx("strong",{className:"text-slate-800 block",children:"Dewi Lestari (Owner)"})]}),e.jsxs("div",{className:"text-[11px]",children:[e.jsx("span",{className:"text-slate-400 block",children:"Terakhir Diperbarui"}),e.jsx("strong",{className:"text-slate-800 block",children:"20 Mei 2025, 16:30 oleh Dewi Lestari"})]})]})]})}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 flex flex-col justify-between space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"mb-4 pb-2 border-b border-slate-100",children:[e.jsx("h3",{className:"text-sm font-black text-slate-900",children:"Penggunaan Fitur"}),e.jsx("p",{className:"text-[11px] text-slate-400 font-medium",children:"Detail penggunaan fitur oleh tenant ini"})]}),e.jsxs("div",{className:"space-y-3.5 text-xs",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-purple-600"}),"Reservasi"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"256 / ∞"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-purple-600 h-full rounded-full",style:{width:"65%"}})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(za,{className:"w-3.5 h-3.5 text-blue-600"}),"Layanan"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"24 / ∞"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-blue-600 h-full rounded-full",style:{width:"40%"}})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(Na,{className:"w-3.5 h-3.5 text-emerald-600"}),"Pelanggan (CRM)"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"178 / ∞"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-emerald-600 h-full rounded-full",style:{width:"55%"}})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(mt,{className:"w-3.5 h-3.5 text-orange-500"}),"Website Builder"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"1 / 1"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-orange-500 h-full rounded-full",style:{width:"100%"}})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(hf,{className:"w-3.5 h-3.5 text-pink-600"}),"Penyimpanan"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"2.4 GB / 10 GB"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-pink-600 h-full rounded-full",style:{width:"24%"}})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(wr,{className:"w-3.5 h-3.5 text-slate-600"}),"Email Marketing"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"120 / 1.000"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-slate-600 h-full rounded-full",style:{width:"12%"}})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsxs("span",{className:"font-bold text-slate-700 flex items-center gap-1.5",children:[e.jsx(Qn,{className:"w-3.5 h-3.5 text-indigo-600"}),"Automasi"]}),e.jsx("span",{className:"font-bold text-slate-900",children:"8 / ∞"})]}),e.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"bg-indigo-600 h-full rounded-full",style:{width:"30%"}})})]})]})]}),e.jsxs("button",{onClick:()=>S("Penggunaan Fitur"),className:"w-full py-2 bg-pink-50 hover:bg-pink-100 text-[#EC167F] font-extrabold text-xs rounded-xl transition-colors cursor-pointer flex items-center justify-center gap-1",children:[e.jsx("span",{children:"Lihat Semua Penggunaan Fitur"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 flex flex-col justify-between space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-black text-slate-900 mb-4 pb-2 border-b border-slate-100",children:"Aktivitas Terbaru"}),e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0 border border-emerald-100 mt-0.5",children:e.jsx(Na,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx("strong",{className:"text-slate-900 font-bold block text-[11px] truncate",children:"Dewi Lestari menambahkan pengguna baru"}),e.jsx("span",{className:"text-[10px] text-slate-400 shrink-0",children:"10 menit lalu"})]}),e.jsx("span",{className:"text-[10px] text-slate-500 block",children:"Pengguna: Rina Marlina"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center shrink-0 border border-blue-100 mt-0.5",children:e.jsx(Ie,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx("strong",{className:"text-slate-900 font-bold block text-[11px] truncate",children:"Reservasi baru dibuat"}),e.jsx("span",{className:"text-[10px] text-slate-400 shrink-0",children:"30 menit lalu"})]}),e.jsx("span",{className:"text-[10px] text-slate-500 block",children:"Reservasi #RSV-250520-0128"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-50 text-amber-600 flex items-center justify-center shrink-0 border border-amber-100 mt-0.5",children:e.jsx(Ht,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx("strong",{className:"text-slate-900 font-bold block text-[11px] truncate",children:"Pembayaran berhasil"}),e.jsx("span",{className:"text-[10px] text-slate-400 shrink-0",children:"1 jam lalu"})]}),e.jsx("span",{className:"text-[10px] text-slate-500 block",children:"Invoice #INV-2025-0567"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-50 text-purple-600 flex items-center justify-center shrink-0 border border-purple-100 mt-0.5",children:e.jsx(rs,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx("strong",{className:"text-slate-900 font-bold block text-[11px] truncate",children:"Data layanan diperbarui"}),e.jsx("span",{className:"text-[10px] text-slate-400 shrink-0",children:"2 jam lalu"})]}),e.jsx("span",{className:"text-[10px] text-slate-500 block",children:"Layanan: Paket Wedding Glam"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center shrink-0 border border-pink-100 mt-0.5",children:e.jsx(mt,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx("strong",{className:"text-slate-900 font-bold block text-[11px] truncate",children:"Domain dihubungkan"}),e.jsx("span",{className:"text-[10px] text-slate-400 shrink-0",children:"3 jam lalu"})]}),e.jsx("span",{className:"text-[10px] text-slate-500 block",children:"Domain: glowbridal.com"})]})]})]})]}),e.jsxs("button",{onClick:()=>S("Aktivitas"),className:"w-full py-2 bg-pink-50 hover:bg-pink-100 text-[#EC167F] font-extrabold text-xs rounded-xl transition-colors cursor-pointer flex items-center justify-center gap-1",children:[e.jsx("span",{children:"Lihat Semua Aktivitas"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5",children:[e.jsxs("div",{className:"lg:col-span-8 bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 space-y-4",children:[e.jsx("h3",{className:"text-sm font-black text-slate-900 pb-2 border-b border-slate-100",children:"Domain & Akses"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 text-xs",children:[e.jsxs("div",{className:"space-y-3 md:col-span-1 border-r-0 md:border-r border-slate-100 md:pr-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px] mb-1",children:"Domain Utama"}),e.jsx("strong",{className:"text-slate-900 block text-xs",children:"glowbridal.muakita.com"}),e.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[e.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-100 text-emerald-700",children:"Aktif"}),e.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-100 text-emerald-700",children:"SSL Aktif"})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100",children:[e.jsx("span",{className:"text-slate-400 block text-[11px] mb-1",children:"Custom Domain"}),e.jsx("strong",{className:"text-slate-900 block text-xs",children:"glowbridal.com"}),e.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[e.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-100 text-emerald-700",children:"Terverifikasi"}),e.jsx("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-100 text-emerald-700",children:"SSL Aktif"})]})]})]}),e.jsxs("div",{className:"space-y-3 md:col-span-1 border-r-0 md:border-r border-slate-100 md:pr-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block text-[11px] mb-1",children:"Akses Login"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"font-semibold text-slate-800 text-xs truncate",children:"glowbridal.muakita.com/login"}),e.jsx("button",{onClick:()=>u("https://glowbridal.muakita.com/login","Akses Login URL"),className:"p-1 text-slate-400 hover:text-slate-600 transition-colors cursor-pointer",children:e.jsx(Ua,{className:"w-3.5 h-3.5"})})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100",children:[e.jsx("span",{className:"text-slate-400 block text-[11px]",children:"Login Terakhir"}),e.jsx("strong",{className:"text-slate-900 block text-xs",children:"20 Mei 2025, 10:24"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"IP: 180.241.***.**"})]})]}),e.jsxs("div",{className:"space-y-2 md:col-span-1",children:[e.jsx("span",{className:"text-slate-400 block text-[11px] font-bold mb-1",children:"Keamanan"}),e.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[e.jsx("span",{className:"text-slate-600",children:"2FA untuk semua user"}),e.jsx("span",{className:"font-bold text-emerald-600",children:"Wajib"})]}),e.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[e.jsx("span",{className:"text-slate-600",children:"Password Policy"}),e.jsx("span",{className:"font-bold text-emerald-600",children:"Aktif"})]}),e.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[e.jsx("span",{className:"text-slate-600",children:"Login Percobaan Gagal"}),e.jsx("span",{className:"font-bold text-emerald-600",children:"0 percobaan"})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 space-y-3",children:[e.jsx("h3",{className:"text-sm font-black text-slate-900 pb-2 border-b border-slate-100",children:"Aksi Cepat"}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("button",{onClick:()=>m("Dialihkan ke dashboard tenant Glow Bridal Studio..."),className:"w-full py-2.5 px-4 bg-pink-50/90 hover:bg-pink-100 text-[#EC167F] font-extrabold text-xs rounded-xl transition-all cursor-pointer flex items-center justify-center gap-2 border border-pink-100 active:scale-98",children:[e.jsx(zf,{className:"w-4 h-4"}),e.jsx("span",{children:"Masuk sebagai Tenant"})]}),e.jsxs("button",{onClick:()=>m("Link reset password dikirim ke dewilestari@gmail.com"),className:"w-full py-2.5 px-4 bg-white hover:bg-slate-50 text-slate-700 font-bold text-xs rounded-xl transition-all cursor-pointer flex items-center justify-center gap-2 border border-slate-200 shadow-2xs",children:[e.jsx(wf,{className:"w-4 h-4 text-slate-500"}),e.jsx("span",{children:"Reset Password Owner"})]}),e.jsxs("button",{onClick:()=>m("Peringatan: Konfirmasi hapus tenant"),className:"w-full py-2.5 px-4 bg-white hover:bg-rose-50 text-rose-600 font-bold text-xs rounded-xl transition-all cursor-pointer flex items-center justify-center gap-2 border border-rose-200",children:[e.jsx(ka,{className:"w-4 h-4"}),e.jsx("span",{children:"Hapus Tenant"})]})]})]})]})]}),o!=="Ringkasan"&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-6 animate-in fade-in duration-150 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:o}),e.jsxs("p",{className:"text-xs text-slate-500 font-medium",children:["Manajemen data ",o.toLowerCase()," untuk Glow Bridal Studio"]})]}),e.jsx("button",{onClick:()=>m(`Menampilkan laporan ${o}`),className:"px-3.5 py-1.5 bg-slate-900 text-white rounded-xl text-xs font-bold hover:bg-slate-800 transition-colors cursor-pointer",children:"Export Data"})]}),o==="Pengguna"&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between items-center bg-slate-50 p-3 rounded-xl",children:[e.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Daftar User Staff Tenant (8 User)"}),e.jsx("button",{onClick:()=>m("Tambah user baru"),className:"text-xs font-bold text-[#EC167F] hover:underline",children:"+ Tambah User"})]}),e.jsx("div",{className:"divide-y divide-slate-100 text-xs",children:[{name:"Dewi Lestari",role:"Owner / Super Admin",email:"dewilestari@gmail.com",status:"Aktif"},{name:"Rina Marlina",role:"Staff MUA Lead",email:"rina.marlina@gmail.com",status:"Aktif"},{name:"Siti Rahma",role:"Kasir & Admin Reservasi",email:"siti.rahma@gmail.com",status:"Aktif"},{name:"Budi Santoso",role:"Fotografer Partner",email:"budi.santoso@gmail.com",status:"Aktif"},{name:"Maya Indah",role:"Hair Stylist Senior",email:"maya.indah@gmail.com",status:"Aktif"},{name:"Andi Wijaya",role:"Staff Inventory",email:"andi.wijaya@gmail.com",status:"Aktif"}].map((b,f)=>e.jsxs("div",{className:"py-2.5 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-pink-100 text-[#EC167F] font-black flex items-center justify-center text-xs",children:b.name.charAt(0)}),e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-slate-900 block",children:b.name}),e.jsxs("span",{className:"text-[11px] text-slate-400",children:[b.email," • ",b.role]})]})]}),e.jsx("span",{className:"px-2 py-0.5 rounded bg-emerald-100 text-emerald-700 text-[10px] font-bold",children:b.status})]},f))})]}),o==="Paket & Billing"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"p-4 bg-purple-50 border border-purple-100 rounded-2xl flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-purple-600 text-[10px] font-black uppercase tracking-wider block",children:"Paket Saat Ini"}),e.jsx("h4",{className:"text-lg font-black text-purple-900",children:"Enterprise Plan"}),e.jsx("p",{className:"text-slate-600 text-xs",children:"Rp599.000 / bulan • Penagihan Otomatis Kartu Kredit"})]}),e.jsx("button",{onClick:()=>m("Ubah paket langganan"),className:"px-4 py-2 bg-[#EC167F] text-white font-bold rounded-xl shadow-2xs hover:bg-[#D41270]",children:"Upgrade / Ubah Paket"})]}),e.jsx("h4",{className:"font-bold text-slate-800 text-sm",children:"Riwayat Tagihan & Invoice"}),e.jsx("div",{className:"divide-y divide-slate-100",children:[{inv:"#INV-2025-0567",date:"10 Mei 2025",amount:"Rp599.000",status:"Lunas"},{inv:"#INV-2025-0452",date:"10 Apr 2025",amount:"Rp599.000",status:"Lunas"},{inv:"#INV-2025-0321",date:"10 Mar 2025",amount:"Rp599.000",status:"Lunas"}].map((b,f)=>e.jsxs("div",{className:"py-2.5 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-slate-900 block",children:b.inv}),e.jsx("span",{className:"text-[11px] text-slate-400",children:b.date})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-black text-slate-900 block",children:b.amount}),e.jsx("span",{className:"text-emerald-600 font-bold text-[10px]",children:b.status})]})]},f))})]}),o!=="Pengguna"&&o!=="Paket & Billing"&&e.jsxs("div",{className:"py-8 text-center text-slate-400 text-xs space-y-2",children:[e.jsx(za,{className:"w-8 h-8 mx-auto text-slate-300"}),e.jsxs("p",{className:"font-bold text-slate-600",children:["Menampilkan detail data untuk tab ",o]}),e.jsx("p",{className:"text-[11px] text-slate-400",children:"Semua pengaturan dan log tersimpan dengan aman pada sistem MuaKita."})]})]})]})},F1=({onOpenAddModal:h,triggerToast:j,initialDetailTenantId:m=null})=>{const[o,S]=d.useState("Semua Status"),[M,C]=d.useState("Semua Paket"),[u,b]=d.useState(""),[f,A]=d.useState(""),[y,R]=d.useState(1),[W,G]=d.useState(10),[ae,xe]=d.useState(null),[$,T]=d.useState(null),[_,D]=d.useState(null),[Y,se]=d.useState(m),[te,P]=d.useState([{id:"1",name:"Glow Bridal Studio",domain:"glowbridal.muakita.com",email:"glowbridal@gmail.com",phone:"0812-1234-5678",package:"Enterprise",priceText:"Rp599.000 / bln",status:"Aktif",joinedDate:"10 Mei 2025",joinedRelative:"1 bulan lalu",endDate:"10 Mei 2026",endRelative:"11 bulan lagi",usersCount:8,lastActiveTime:"Hari ini, 10:24",lastActiveNote:"Login oleh Dewi",logoBg:"bg-slate-900",logoText:"Glow"},{id:"2",name:"Lovely Makeup Artist",domain:"lovelymua.muakita.com",email:"lovelymua@gmail.com",phone:"0812-2222-3344",package:"Pro",priceText:"Rp299.000 / bln",status:"Aktif",joinedDate:"02 Mei 2025",joinedRelative:"19 hari lalu",endDate:"02 Mei 2026",endRelative:"11 bulan lagi",usersCount:5,lastActiveTime:"Kemarin, 16:45",lastActiveNote:"Update data layanan",logoBg:"bg-pink-100 text-[#EC167F]",logoText:"Lovely"},{id:"3",name:"Cantik Salon & Beauty",domain:"cantiksalon.muakita.com",email:"admin@cantiksalon.com",phone:"0813-3333-4455",package:"Pro",priceText:"Rp299.000 / bln",status:"Aktif",joinedDate:"25 Apr 2025",joinedRelative:"26 hari lalu",endDate:"25 Apr 2026",endRelative:"10 bulan lagi",usersCount:6,lastActiveTime:"Kemarin, 09:12",lastActiveNote:"Buat reservasi baru",logoBg:"bg-amber-100 text-amber-800",logoText:"Cantik"},{id:"4",name:"Aura Wedding Organizer",domain:"aura.muakita.com",email:"aura.wedding@gmail.com",phone:"0812-4444-5566",package:"Enterprise",priceText:"Rp599.000 / bln",status:"Trial",joinedDate:"18 Mei 2025",joinedRelative:"3 hari lalu",endDate:"01 Jun 2025",endRelative:"9 hari lagi",usersCount:3,lastActiveTime:"Hari ini, 08:50",lastActiveNote:"Login oleh Admin",logoBg:"bg-sky-900 text-sky-200",logoText:"Aura"},{id:"5",name:"Naya Makeup Studio",domain:"naya.muakita.com",email:"nayamakeup@gmail.com",phone:"0813-5555-6677",package:"Basic",priceText:"Rp149.000 / bln",status:"Nonaktif",joinedDate:"12 Mar 2025",joinedRelative:"2 bulan lalu",endDate:"12 Apr 2025",endRelative:"Berakhir",usersCount:2,lastActiveTime:"-",lastActiveNote:"Tidak ada aktivitas",logoBg:"bg-black text-white",logoText:"NAYA"},{id:"6",name:"Elegant MUA",domain:"elegantmua.muakita.com",email:"elegant.mua@gmail.com",phone:"0812-6666-7788",package:"Pro",priceText:"Rp299.000 / bln",status:"Dibatalkan",joinedDate:"05 Feb 2025",joinedRelative:"4 bulan lalu",endDate:"10 Mar 2025",endRelative:"Dibatalkan",usersCount:4,lastActiveTime:"28 Mei 2025",lastActiveNote:"Tenant dibatalkan",logoBg:"bg-emerald-800 text-emerald-100",logoText:"Elegant"},{id:"7",name:"Beauty Classy",domain:"beautyclassy.muakita.com",email:"hello@beautyclassy.com",phone:"0813-7777-8899",package:"Enterprise",priceText:"Rp599.000 / bln",status:"Aktif",joinedDate:"20 Apr 2025",joinedRelative:"1 bulan lalu",endDate:"20 Apr 2026",endRelative:"10 bulan lagi",usersCount:7,lastActiveTime:"Hari ini, 11:30",lastActiveNote:"Update profil bisnis",logoBg:"bg-rose-950 text-rose-200",logoText:"Classy"}]),le=()=>{S("Semua Status"),C("Semua Paket"),b(""),A(""),j("Filter telah di-reset")},pe=()=>{const J=["Nama Tenant","Domain","Email","Telepon","Paket","Status","Tgl Bergabung","Tgl Berakhir"],fe=be.map(U=>[U.name,U.domain,U.email,U.phone,U.package,U.status,U.joinedDate,U.endDate]),B="data:text/csv;charset=utf-8,"+[J.join(","),...fe.map(U=>U.join(","))].join(`
`),oe=encodeURI(B),k=document.createElement("a");k.setAttribute("href",oe),k.setAttribute("download",`data_tenant_muakita_${new Date().toISOString().slice(0,10)}.csv`),document.body.appendChild(k),k.click(),document.body.removeChild(k),j("Data Tenant berhasil diexport ke CSV!")},be=te.filter(J=>{const fe=J.name.toLowerCase().includes(f.toLowerCase())||J.email.toLowerCase().includes(f.toLowerCase())||J.domain.toLowerCase().includes(f.toLowerCase()),B=o==="Semua Status"||J.status===o,oe=M==="Semua Paket"||J.package===M;return fe&&B&&oe});return Y?e.jsx(D1,{tenantId:Y,onBack:()=>se(null),triggerToast:j}):e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-200",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-pink-50 border border-pink-100 flex items-center justify-center text-[#EC167F] shrink-0 shadow-2xs",children:e.jsx(ei,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-black text-slate-900 tracking-tight",children:"Manajemen Tenant"}),e.jsx("p",{className:"text-xs font-medium text-slate-500",children:"Kelola semua tenant (owner bisnis) di platform MuaKita."})]})]}),e.jsxs("button",{onClick:h,className:"bg-[#EC167F] hover:bg-[#D41270] text-white text-xs font-black px-4 py-2.5 rounded-xl shadow-xs transition-all flex items-center justify-center gap-1.5 cursor-pointer shrink-0 active:scale-95",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Tenant Baru"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center shrink-0",children:e.jsx(is,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Tenant"}),e.jsx("span",{className:"text-2xl font-black text-slate-900 leading-tight block",children:"312"}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium",children:"Semua tenant terdaftar"})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0",children:e.jsx(Ge,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Aktif"}),e.jsx("span",{className:"text-2xl font-black text-slate-900 leading-tight block",children:"245"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-slate-400 font-medium truncate",children:[e.jsx("span",{children:"78.5% dari total tenant"}),e.jsx("svg",{className:"w-8 h-3 text-emerald-500 shrink-0",viewBox:"0 0 24 10",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M0 8 L6 6 L12 7 L18 2 L24 4"})})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-amber-50 text-amber-600 flex items-center justify-center shrink-0",children:e.jsx(Vt,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Trial / Pending"}),e.jsx("span",{className:"text-2xl font-black text-slate-900 leading-tight block",children:"28"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-slate-400 font-medium truncate",children:[e.jsx("span",{children:"9.0% dari total tenant"}),e.jsx("svg",{className:"w-8 h-3 text-amber-500 shrink-0",viewBox:"0 0 24 10",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M0 6 L6 8 L12 4 L18 7 L24 2"})})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-rose-50 text-rose-600 flex items-center justify-center shrink-0",children:e.jsx(xm,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Nonaktif"}),e.jsx("span",{className:"text-2xl font-black text-slate-900 leading-tight block",children:"24"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-slate-400 font-medium truncate",children:[e.jsx("span",{children:"7.7% dari total tenant"}),e.jsx("svg",{className:"w-8 h-3 text-rose-500 shrink-0",viewBox:"0 0 24 10",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M0 2 L6 5 L12 4 L18 8 L24 6"})})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 text-slate-500 flex items-center justify-center shrink-0",children:e.jsx(ym,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Dibatalkan"}),e.jsx("span",{className:"text-2xl font-black text-slate-900 leading-tight block",children:"15"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-slate-400 font-medium truncate",children:[e.jsx("span",{children:"4.8% dari total tenant"}),e.jsx("svg",{className:"w-8 h-3 text-slate-400 shrink-0",viewBox:"0 0 24 10",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M0 5 L6 3 L12 6 L18 4 L24 7"})})]})]})]})]}),e.jsx("div",{className:"bg-white p-3.5 sm:p-4 rounded-2xl border border-slate-200/80 shadow-2xs",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-7 gap-3 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] font-bold text-slate-700 mb-1.5 block",children:"Status"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:o,onChange:J=>S(J.target.value),className:"w-full pl-3 pr-8 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-800 appearance-none focus:outline-none focus:bg-white focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Status",children:"Semua Status"}),e.jsx("option",{value:"Aktif",children:"Aktif"}),e.jsx("option",{value:"Trial",children:"Trial"}),e.jsx("option",{value:"Nonaktif",children:"Nonaktif"}),e.jsx("option",{value:"Dibatalkan",children:"Dibatalkan"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-3 pointer-events-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] font-bold text-slate-700 mb-1.5 block",children:"Paket"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:M,onChange:J=>C(J.target.value),className:"w-full pl-3 pr-8 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-800 appearance-none focus:outline-none focus:bg-white focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Paket",children:"Semua Paket"}),e.jsx("option",{value:"Enterprise",children:"Enterprise"}),e.jsx("option",{value:"Pro",children:"Pro"}),e.jsx("option",{value:"Basic",children:"Basic"}),e.jsx("option",{value:"Gratis",children:"Gratis"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-3 pointer-events-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] font-bold text-slate-700 mb-1.5 block",children:"Tanggal Bergabung"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Pilih rentang tanggal",value:u,onChange:J=>b(J.target.value),className:"w-full pl-8 pr-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium text-slate-800 focus:outline-none focus:bg-white focus:border-pink-500"}),e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-3"})]})]}),e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("label",{className:"text-[11px] font-bold text-slate-700 mb-1.5 block",children:"Pencarian"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Cari nama bisnis, email, domain...",value:f,onChange:J=>A(J.target.value),className:"w-full pl-3 pr-8 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium text-slate-800 focus:outline-none focus:bg-white focus:border-pink-500"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-3"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 lg:col-span-2 justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[e.jsxs("button",{onClick:()=>j("Filter diterapkan"),className:"flex-1 py-2 px-3 bg-pink-50 hover:bg-pink-100 text-[#EC167F] border border-pink-200 rounded-xl text-xs font-extrabold flex items-center justify-center gap-1.5 transition-colors cursor-pointer",children:[e.jsx(Ta,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Filter"})]}),e.jsx("button",{onClick:le,className:"py-2 px-3 bg-slate-50 hover:bg-slate-100 text-slate-600 border border-slate-200 rounded-xl text-xs font-semibold transition-colors cursor-pointer",children:"Reset"})]}),e.jsxs("button",{onClick:pe,className:"py-2 px-3.5 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 rounded-xl text-xs font-extrabold flex items-center gap-1.5 transition-colors cursor-pointer shrink-0 shadow-2xs",children:[e.jsx(Yl,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Export"})]})]})]})}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{className:"bg-slate-50/90 border-b border-slate-200/80 text-slate-700 font-black text-[11px] tracking-tight",children:e.jsxs("tr",{children:[e.jsx("th",{className:"py-3.5 px-4",children:"Tenant / Pemilik"}),e.jsx("th",{className:"py-3.5 px-4",children:"Kontak"}),e.jsx("th",{className:"py-3.5 px-4",children:"Paket"}),e.jsx("th",{className:"py-3.5 px-4",children:"Status"}),e.jsx("th",{className:"py-3.5 px-4",children:"Bergabung"}),e.jsx("th",{className:"py-3.5 px-4",children:"Berakhir"}),e.jsx("th",{className:"py-3.5 px-4",children:"Pengguna"}),e.jsx("th",{className:"py-3.5 px-4",children:"Aktivitas Terakhir"}),e.jsx("th",{className:"py-3.5 px-4 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 font-medium text-slate-800",children:be.length===0?e.jsx("tr",{children:e.jsxs("td",{colSpan:9,className:"py-12 text-center text-slate-400",children:[e.jsx(is,{className:"w-10 h-10 mx-auto mb-2 text-slate-300"}),e.jsx("p",{className:"font-bold text-slate-600",children:"Tidak ada tenant ditemukan"}),e.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:"Coba ubah kata kunci pencarian atau filter status"})]})}):be.map(J=>e.jsxs("tr",{className:"hover:bg-slate-50/70 transition-colors group",children:[e.jsx("td",{className:"py-3.5 px-4",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-9 h-9 rounded-full flex items-center justify-center font-extrabold text-xs shrink-0 shadow-2xs ${J.logoBg}`,children:J.logoText}),e.jsxs("div",{children:[e.jsx("button",{onClick:()=>se("TEN-000312"),className:"font-extrabold text-slate-900 block leading-tight hover:text-[#EC167F] transition-colors text-left cursor-pointer",children:J.name}),e.jsx("a",{href:`https://${J.domain}`,target:"_blank",rel:"noreferrer",className:"text-[11px] text-slate-400 hover:text-pink-600 font-medium block",children:J.domain})]})]})}),e.jsxs("td",{className:"py-3.5 px-4",children:[e.jsx("span",{className:"text-slate-700 font-medium block text-[11px]",children:J.email}),e.jsx("span",{className:"text-[11px] text-slate-400 font-medium block",children:J.phone})]}),e.jsxs("td",{className:"py-3.5 px-4",children:[e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-black inline-block mb-0.5 ${J.package==="Enterprise"?"bg-purple-100 text-purple-700":J.package==="Pro"?"bg-pink-100 text-[#EC167F]":J.package==="Basic"?"bg-blue-100 text-blue-700":"bg-slate-100 text-slate-600"}`,children:J.package}),e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block leading-none",children:J.priceText})]}),e.jsx("td",{className:"py-3.5 px-4",children:e.jsx("span",{className:`px-3 py-1 rounded-lg text-[11px] font-bold inline-block ${J.status==="Aktif"?"bg-emerald-100/80 text-emerald-700":J.status==="Trial"?"bg-amber-100/80 text-amber-700":J.status==="Nonaktif"?"bg-rose-100/80 text-rose-700":"bg-slate-100 text-slate-600"}`,children:J.status})}),e.jsxs("td",{className:"py-3.5 px-4",children:[e.jsx("span",{className:"font-bold text-slate-900 block text-[11px]",children:J.joinedDate}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block",children:J.joinedRelative})]}),e.jsxs("td",{className:"py-3.5 px-4",children:[e.jsx("span",{className:"font-bold text-slate-900 block text-[11px]",children:J.endDate}),e.jsx("span",{className:`text-[10px] font-medium block ${J.endRelative==="Berakhir"||J.endRelative==="Dibatalkan"?"text-rose-600 font-bold":"text-slate-400"}`,children:J.endRelative})]}),e.jsxs("td",{className:"py-3.5 px-4",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:J.usersCount}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block",children:"User"})]}),e.jsxs("td",{className:"py-3.5 px-4",children:[e.jsx("span",{className:"font-bold text-slate-900 block text-[11px]",children:J.lastActiveTime}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block truncate max-w-[140px]",children:J.lastActiveNote})]}),e.jsx("td",{className:"py-3.5 px-4 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-1 relative",children:[e.jsx("button",{onClick:()=>se("TEN-000312"),className:"p-1.5 rounded-lg border border-slate-200 text-blue-600 hover:bg-blue-50 transition-colors cursor-pointer",title:"Lihat Detail Tenant",children:e.jsx(Dt,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>D(J),className:"p-1.5 rounded-lg border border-slate-200 text-amber-600 hover:bg-amber-50 transition-colors cursor-pointer",title:"Edit Data Tenant",children:e.jsx(rs,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>xe(ae===J.id?null:J.id),className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-100 transition-colors cursor-pointer",title:"Menu Opsi",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})}),ae===J.id&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-44 bg-white rounded-xl shadow-xl border border-slate-200 py-1.5 z-20 text-left text-xs animate-in fade-in zoom-in-95",children:[e.jsxs("button",{onClick:()=>{se("TEN-000312"),xe(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium",children:[e.jsx(Dt,{className:"w-3.5 h-3.5 text-blue-600"}),e.jsx("span",{children:"Lihat Detail"})]}),e.jsxs("button",{onClick:()=>{D(J),xe(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium",children:[e.jsx(rs,{className:"w-3.5 h-3.5 text-amber-600"}),e.jsx("span",{children:"Edit Data"})]}),e.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(`https://${J.domain}`),j(`URL https://${J.domain} disalin!`),xe(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium",children:[e.jsx(mt,{className:"w-3.5 h-3.5 text-pink-600"}),e.jsx("span",{children:"Salin Subdomain"})]}),e.jsx("div",{className:"my-1 border-t border-slate-100"}),e.jsxs("button",{onClick:()=>{const fe=J.status==="Aktif"?"Nonaktif":"Aktif";P(B=>B.map(oe=>oe.id===J.id?{...oe,status:fe}:oe)),j(`Status ${J.name} diubah menjadi ${fe}`),xe(null)},className:`w-full px-3 py-1.5 flex items-center gap-2 font-semibold ${J.status==="Aktif"?"text-rose-600 hover:bg-rose-50":"text-emerald-600 hover:bg-emerald-50"}`,children:[e.jsx(xm,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:J.status==="Aktif"?"Nonaktifkan Tenant":"Aktifkan Tenant"})]})]})]})})]},J.id))})]})}),e.jsxs("div",{className:"p-3.5 sm:p-4 bg-slate-50/50 border-t border-slate-200/80 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-600",children:[e.jsx("div",{children:e.jsxs("span",{children:["Menampilkan 1 - 10 dari ",e.jsx("strong",{className:"text-slate-900 font-extrabold",children:"312"})," tenant"]})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>R(J=>Math.max(1,J-1)),className:"w-8 h-8 rounded-xl border border-slate-200/80 bg-white flex items-center justify-center text-slate-600 hover:bg-slate-100 transition-colors cursor-pointer",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsx("button",{onClick:()=>R(1),className:"w-8 h-8 rounded-xl bg-[#EC167F] text-white font-extrabold flex items-center justify-center shadow-2xs",children:"1"}),e.jsx("button",{onClick:()=>R(2),className:"w-8 h-8 rounded-xl border border-slate-200/80 bg-white text-slate-700 font-semibold flex items-center justify-center hover:bg-slate-100 transition-colors cursor-pointer",children:"2"}),e.jsx("button",{onClick:()=>R(3),className:"w-8 h-8 rounded-xl border border-slate-200/80 bg-white text-slate-700 font-semibold flex items-center justify-center hover:bg-slate-100 transition-colors cursor-pointer",children:"3"}),e.jsx("span",{className:"px-1 text-slate-400 font-bold",children:"..."}),e.jsx("button",{onClick:()=>R(32),className:"w-8 h-8 rounded-xl border border-slate-200/80 bg-white text-slate-700 font-semibold flex items-center justify-center hover:bg-slate-100 transition-colors cursor-pointer",children:"32"}),e.jsxs("button",{onClick:()=>R(J=>J+1),className:"w-8 h-8 rounded-xl border border-slate-200/80 bg-white flex items-center justify-center text-slate-600 hover:bg-slate-100 transition-colors cursor-pointer",children:["ChevronRight ",e.jsx(it,{className:"w-4 h-4"})]})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:W,onChange:J=>G(Number(J.target.value)),className:"pl-3 pr-7 py-1.5 bg-white border border-slate-200/80 rounded-xl text-xs font-bold text-slate-800 appearance-none focus:outline-none cursor-pointer",children:[e.jsx("option",{value:10,children:"10 / halaman"}),e.jsx("option",{value:20,children:"20 / halaman"}),e.jsx("option",{value:50,children:"50 / halaman"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2 top-2.5 pointer-events-none"})]})]})]})]}),$&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white rounded-3xl max-w-lg w-full p-6 shadow-2xl border border-slate-100 space-y-4",children:[e.jsxs("div",{className:"flex items-start justify-between pb-3 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-12 h-12 rounded-2xl flex items-center justify-center text-sm font-black ${$.logoBg}`,children:$.logoText}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:$.name}),e.jsxs("a",{href:`https://${$.domain}`,target:"_blank",rel:"noreferrer",className:"text-xs text-pink-600 font-bold flex items-center gap-1",children:[$.domain," ",e.jsx(Wl,{className:"w-3 h-3"})]})]})]}),e.jsx("button",{onClick:()=>T(null),className:"p-2 text-slate-400 hover:text-slate-600 rounded-full bg-slate-100",children:"✕"})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3 p-3 bg-slate-50 rounded-2xl border border-slate-100",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block font-medium",children:"Paket Langganan"}),e.jsx("span",{className:"font-black text-slate-900 text-sm",children:$.package}),e.jsx("span",{className:"text-[10px] text-slate-500 block",children:$.priceText})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block font-medium",children:"Status Akun"}),e.jsx("span",{className:"font-extrabold text-emerald-600 text-sm",children:$.status}),e.jsxs("span",{className:"text-[10px] text-slate-500 block",children:["Sejak ",$.joinedDate]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-bold text-slate-800",children:"Informasi Kontak Owner"}),e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx(Ql,{className:"w-4 h-4 text-slate-400"}),e.jsx("span",{children:$.email})]}),e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx(va,{className:"w-4 h-4 text-slate-400"}),e.jsx("span",{children:$.phone})]})]}),e.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-100",children:[e.jsx("h4",{className:"font-bold text-slate-800",children:"Statistik Penggunaan"}),e.jsxs("div",{className:"flex justify-between py-1 border-b border-slate-100 text-slate-600",children:[e.jsx("span",{children:"Jumlah Pengguna Tim:"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[$.usersCount," Staff / User"]})]}),e.jsxs("div",{className:"flex justify-between py-1 border-b border-slate-100 text-slate-600",children:[e.jsx("span",{children:"Aktivitas Terakhir:"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[$.lastActiveTime," (",$.lastActiveNote,")"]})]}),e.jsxs("div",{className:"flex justify-between py-1 text-slate-600",children:[e.jsx("span",{children:"Tanggal Masa Aktif Habis:"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[$.endDate," (",$.endRelative,")"]})]})]})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-3 border-t border-slate-100",children:[e.jsx("button",{onClick:()=>{D($),T(null)},className:"px-4 py-2 bg-pink-50 hover:bg-pink-100 text-[#EC167F] font-bold text-xs rounded-xl transition-colors cursor-pointer",children:"Edit Tenant"}),e.jsx("button",{onClick:()=>T(null),className:"px-4 py-2 bg-slate-900 hover:bg-slate-800 text-white font-bold text-xs rounded-xl transition-colors cursor-pointer",children:"Tutup"})]})]})}),_&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white rounded-3xl max-w-md w-full p-6 shadow-2xl border border-slate-100 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:"Edit Data Tenant"}),e.jsx("button",{onClick:()=>D(null),className:"p-2 text-slate-400 hover:text-slate-600 rounded-full bg-slate-100",children:"✕"})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Nama Tenant / Bisnis"}),e.jsx("input",{type:"text",value:_.name,onChange:J=>D({..._,name:J.target.value}),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Subdomain"}),e.jsx("input",{type:"text",value:_.domain,onChange:J=>D({..._,domain:J.target.value}),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-900"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Paket Langganan"}),e.jsxs("select",{value:_.package,onChange:J=>D({..._,package:J.target.value}),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"Enterprise",children:"Enterprise"}),e.jsx("option",{value:"Pro",children:"Pro"}),e.jsx("option",{value:"Basic",children:"Basic"}),e.jsx("option",{value:"Gratis",children:"Gratis"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Status Akun"}),e.jsxs("select",{value:_.status,onChange:J=>D({..._,status:J.target.value}),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"Aktif",children:"Aktif"}),e.jsx("option",{value:"Trial",children:"Trial"}),e.jsx("option",{value:"Nonaktif",children:"Nonaktif"}),e.jsx("option",{value:"Dibatalkan",children:"Dibatalkan"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Email Owner"}),e.jsx("input",{type:"email",value:_.email,onChange:J=>D({..._,email:J.target.value}),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"No. WhatsApp / Handphone"}),e.jsx("input",{type:"text",value:_.phone,onChange:J=>D({..._,phone:J.target.value}),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-900"})]})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-3 border-t border-slate-100",children:[e.jsx("button",{onClick:()=>D(null),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-xs rounded-xl transition-colors cursor-pointer",children:"Batal"}),e.jsx("button",{onClick:()=>{P(J=>J.map(fe=>fe.id===_.id?_:fe)),j(`Data tenant ${_.name} berhasil diperbarui!`),D(null)},className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-bold text-xs rounded-xl transition-colors cursor-pointer shadow-xs",children:"Simpan Perubahan"})]})]})})]})},R1=({initialData:h,onBack:j,triggerToast:m})=>{const o=!!h,[S,M]=d.useState((h==null?void 0:h.name)||""),[C,u]=d.useState((h==null?void 0:h.type)||""),[b,f]=d.useState((h==null?void 0:h.description)||(h==null?void 0:h.detailDescription)||""),[A,y]=d.useState("#EC167F"),[R,W]=d.useState("Crown"),[G,ae]=d.useState((h==null?void 0:h.badge)||""),[xe,$]=d.useState(h!=null&&h.price?h.price.replace(/[^\d]/g,""):"0"),[T,_]=d.useState((h==null?void 0:h.minTenant)==="-"?"":(h==null?void 0:h.minTenant)||""),[D,Y]=d.useState((h==null?void 0:h.maxTenant)==="-"?"":(h==null?void 0:h.maxTenant)||""),[se,te]=d.useState((h==null?void 0:h.billing)||"Bulanan"),[P,le]=d.useState("IDR - Rupiah (Rp)"),[pe,be]=d.useState((h==null?void 0:h.status)||"Aktif"),[J,fe]=d.useState(""),[B,oe]=d.useState([{id:"reservasi",title:"Manajemen Reservasi",description:"Kelola reservasi dan jadwal secara lengkap",icon:Ie,iconBg:"bg-amber-100/80",iconColor:"text-amber-600",checked:!0},{id:"layanan",title:"Manajemen Layanan",description:"Kelola layanan, kategori, dan harga",icon:za,iconBg:"bg-blue-100/80",iconColor:"text-blue-600",checked:!0},{id:"crm",title:"CRM & Pelanggan",description:"Kelola pelanggan dan riwayat interaksi",icon:St,iconBg:"bg-emerald-100/80",iconColor:"text-emerald-600",checked:!0},{id:"website",title:"Website Builder",description:"Buat dan kelola website bisnis sendiri",icon:mt,iconBg:"bg-orange-100/80",iconColor:"text-orange-600",checked:!0},{id:"tim",title:"Manajemen Tim",description:"Kelola tim, role, dan hak akses",icon:Na,iconBg:"bg-purple-100/80",iconColor:"text-purple-600",checked:!0},{id:"inventaris",title:"Inventaris",description:"Kelola stok produk dan inventaris",icon:Ps,iconBg:"bg-indigo-100/80",iconColor:"text-indigo-600",checked:!0},{id:"keuangan",title:"Keuangan",description:"Laporan keuangan dan analitik bisnis",icon:rd,iconBg:"bg-teal-100/80",iconColor:"text-teal-600",checked:!0},{id:"promosi",title:"Promosi & Diskon",description:"Buat promo, diskon, dan voucher",icon:Ma,iconBg:"bg-pink-100/80",iconColor:"text-pink-600",checked:!1},{id:"api",title:"API Access",description:"Akses API untuk integrasi sistem",icon:Ob,iconBg:"bg-slate-100",iconColor:"text-slate-600",checked:!1},{id:"domain",title:"Custom Domain",description:"Gunakan domain khusus untuk website",icon:mt,iconBg:"bg-sky-100/80",iconColor:"text-sky-600",checked:!1},{id:"whitelabel",title:"White Label",description:"Hilangkan branding MuaKita di platform",icon:Ar,iconBg:"bg-violet-100/80",iconColor:"text-violet-600",checked:!1}]),k=c=>{oe(F=>F.map(v=>v.id===c?{...v,checked:!v.checked}:v))},U=()=>{const c=B.every(F=>F.checked);oe(F=>F.map(v=>({...v,checked:!c})))},ie=B.filter(c=>c.checked).length,me=B.filter(c=>c.title.toLowerCase().includes(J.toLowerCase())||c.description.toLowerCase().includes(J.toLowerCase())),Ne=c=>{if(c.preventDefault(),!S){m("Mohon isi nama paket");return}m(o?`Paket "${S}" berhasil diperbarui!`:`Paket "${S}" berhasil dibuat!`),j()};return e.jsxs("div",{className:"space-y-6 animate-in fade-in duration-200 text-slate-800 pb-16",children:[e.jsxs("div",{children:[e.jsxs("button",{onClick:j,className:"inline-flex items-center gap-1.5 text-xs font-bold text-slate-500 hover:text-slate-900 transition-colors mb-3 cursor-pointer",children:[e.jsx(nd,{className:"w-4 h-4"}),e.jsx("span",{children:"Kembali ke Daftar Paket"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0 border border-pink-200 shadow-2xs",children:e.jsx(ei,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-black text-slate-900 leading-tight",children:o?"Edit Paket":"Tambah Paket Baru"}),e.jsx("p",{className:"text-xs text-slate-500",children:o?"Ubah informasi dan konfigurasi paket berlangganan.":"Buat paket berlangganan baru untuk tenant di platform MuaKita."})]})]})]}),e.jsxs("form",{onSubmit:Ne,className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-7 space-y-5",children:[e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900 tracking-wide uppercase",children:"Informasi Paket"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{className:"text-xs font-extrabold text-slate-700",children:["Nama Paket ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsxs("span",{className:"text-[10px] text-slate-400",children:[S.length,"/50"]})]}),e.jsx("input",{type:"text",maxLength:50,placeholder:"Contoh: Enterprise",value:S,onChange:c=>M(c.target.value),className:"w-full bg-white border border-slate-200 text-xs font-medium py-2.5 px-3 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 placeholder-slate-400",required:!0})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"text-xs font-extrabold text-slate-700",children:["Tipe Paket ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:C,onChange:c=>u(c.target.value),className:"w-full appearance-none bg-white border border-slate-200 text-xs font-medium py-2.5 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 cursor-pointer",required:!0,children:[e.jsx("option",{value:"",children:"Pilih tipe paket"}),e.jsx("option",{value:"Premium",children:"Premium"}),e.jsx("option",{value:"Pro",children:"Pro"}),e.jsx("option",{value:"Basic",children:"Basic"}),e.jsx("option",{value:"Custom",children:"Custom"}),e.jsx("option",{value:"Trial",children:"Trial"})]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{className:"text-xs font-extrabold text-slate-700",children:["Deskripsi Paket ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsxs("span",{className:"text-[10px] text-slate-400",children:[b.length,"/300"]})]}),e.jsx("textarea",{rows:3,maxLength:300,placeholder:"Jelaskan paket ini secara singkat, manfaat, dan untuk siapa paket ini cocok...",value:b,onChange:c=>f(c.target.value),className:"w-full bg-white border border-slate-200 text-xs font-medium p-3 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 placeholder-slate-400 resize-none",required:!0})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 pt-1",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs font-extrabold text-slate-700 block",children:"Warna & Ikon"}),e.jsxs("div",{className:"flex items-center gap-2 border border-slate-200 rounded-xl p-1.5 bg-white",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg shrink-0 border border-slate-200 shadow-2xs",style:{backgroundColor:A}}),e.jsx("input",{type:"text",value:A,onChange:c=>y(c.target.value),className:"w-full text-xs font-bold text-slate-700 bg-transparent focus:outline-none"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs font-extrabold text-slate-700 block",children:"Pilih Ikon"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:R,onChange:c=>W(c.target.value),className:"w-full appearance-none bg-white border border-slate-200 text-xs font-medium py-2 Pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"Crown",children:"👑 Crown"}),e.jsx("option",{value:"Star",children:"⭐ Star"}),e.jsx("option",{value:"Zap",children:"⚡ Zap"}),e.jsx("option",{value:"Sprout",children:"🌱 Sprout"}),e.jsx("option",{value:"CalendarDays",children:"📅 CalendarDays"})]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-3 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs font-extrabold text-slate-700 block",children:"Badge (Opsional)"}),e.jsx("input",{type:"text",placeholder:"Contoh: Populer, Best Seller",value:G,onChange:c=>ae(c.target.value),className:"w-full bg-white border border-slate-200 text-xs font-medium py-2 px-3 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 placeholder-slate-400"})]})]})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900 tracking-wide uppercase",children:"Harga & Billing"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"text-xs font-extrabold text-slate-700",children:["Harga (per bulan) ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsxs("div",{className:"flex items-center border border-slate-200 rounded-xl overflow-hidden focus-within:border-pink-500 bg-white",children:[e.jsx("span",{className:"px-3 text-xs font-bold text-slate-400 bg-slate-50 border-r border-slate-200 py-2.5",children:"Rp"}),e.jsx("input",{type:"number",placeholder:"0",value:xe,onChange:c=>$(c.target.value),className:"w-full text-xs font-bold text-slate-900 p-2.5 focus:outline-none",required:!0})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs font-extrabold text-slate-700",children:"Minimal Tenant"}),e.jsx("input",{type:"text",placeholder:"-",value:T,onChange:c=>_(c.target.value),className:"w-full bg-white border border-slate-200 text-xs font-medium py-2.5 px-3 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 placeholder-slate-400"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"Kosongkan jika tidak ada minimum"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs font-extrabold text-slate-700",children:"Maksimal Tenant"}),e.jsx("input",{type:"text",placeholder:"-",value:D,onChange:c=>Y(c.target.value),className:"w-full bg-white border border-slate-200 text-xs font-medium py-2.5 px-3 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 placeholder-slate-400"}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"Kosongkan jika tidak ada batasan"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"text-xs font-extrabold text-slate-700",children:["Siklus Billing ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:se,onChange:c=>te(c.target.value),className:"w-full appearance-none bg-white border border-slate-200 text-xs font-medium py-2.5 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"Bulanan",children:"Bulanan"}),e.jsx("option",{value:"Tahunan",children:"Tahunan"}),e.jsx("option",{value:"Kustom",children:"Kustom"})]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-3 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"text-xs font-extrabold text-slate-700",children:["Mata Uang ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:P,onChange:c=>le(c.target.value),className:"w-full appearance-none bg-white border border-slate-200 text-xs font-medium py-2.5 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"IDR - Rupiah (Rp)",children:"IDR - Rupiah (Rp)"}),e.jsx("option",{value:"USD - US Dollar ($)",children:"USD - US Dollar ($)"})]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),e.jsxs("div",{className:"p-3.5 bg-pink-50/60 border border-pink-100 rounded-xl flex items-start gap-2.5",children:[e.jsx(um,{className:"w-4 h-4 text-pink-500 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-bold text-pink-600 block",children:"Tips"}),e.jsx("p",{className:"text-[11px] text-pink-800 leading-snug",children:"Harga yang Anda tetapkan akan menjadi dasar penagihan ke tenant setiap siklus."})]})]})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900 tracking-wide uppercase",children:"Status Paket"}),e.jsx("p",{className:"text-[11px] text-slate-400",children:"Atur status paket setelah dibuat"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{onClick:()=>be("Aktif"),className:`p-3.5 rounded-xl border-2 transition-all cursor-pointer flex items-start gap-3 ${pe==="Aktif"?"border-pink-500 bg-pink-50/20 shadow-2xs":"border-slate-200 hover:border-slate-300 bg-white"}`,children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500 shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-900 block leading-tight",children:"Aktif"}),e.jsx("span",{className:"text-[11px] text-slate-500 leading-snug block mt-0.5",children:"Paket langsung tersedia untuk digunakan tenant"})]})]}),e.jsxs("div",{onClick:()=>be("Nonaktif"),className:`p-3.5 rounded-xl border-2 transition-all cursor-pointer flex items-start gap-3 ${pe==="Nonaktif"?"border-pink-500 bg-pink-50/20 shadow-2xs":"border-slate-200 hover:border-slate-300 bg-white"}`,children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-slate-400 shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-900 block leading-tight",children:"Nonaktif"}),e.jsx("span",{className:"text-[11px] text-slate-500 leading-snug block mt-0.5",children:"Paket disimpan sebagai draft, tidak ditampilkan"})]})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-5 bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900 tracking-wide uppercase",children:"Fitur Paket"}),e.jsx("p",{className:"text-[11px] text-slate-400",children:"Pilih fitur yang akan tersedia di paket ini."})]}),e.jsx("button",{type:"button",onClick:U,className:"text-xs font-extrabold text-pink-600 hover:text-pink-700 hover:underline cursor-pointer",children:"Pilih Semua"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-3 top-2.5"}),e.jsx("input",{type:"text",placeholder:"Cari fitur...",value:J,onChange:c=>fe(c.target.value),className:"w-full bg-slate-50 border border-slate-200 text-xs font-medium py-2 pl-8 pr-3 rounded-xl focus:outline-none focus:border-pink-500 text-slate-800 placeholder-slate-400"})]}),e.jsx("div",{className:"space-y-2 max-h-[500px] overflow-y-auto pr-1",children:me.map(c=>{const F=c.icon;return e.jsxs("div",{onClick:()=>k(c.id),className:`p-3 rounded-xl border transition-all cursor-pointer flex items-center justify-between gap-3 ${c.checked?"border-pink-200 bg-pink-50/20":"border-slate-100 hover:bg-slate-50/80"}`,children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:`w-9 h-9 rounded-xl ${c.iconBg} ${c.iconColor} flex items-center justify-center shrink-0`,children:e.jsx(F,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-900 block leading-tight",children:c.title}),e.jsx("span",{className:"text-[11px] text-slate-400 block truncate",children:c.description})]})]}),e.jsx("div",{className:`w-5 h-5 rounded-md flex items-center justify-center shrink-0 transition-colors ${c.checked?"bg-[#EC167F] text-white shadow-2xs":"border-2 border-slate-300 bg-white"}`,children:c.checked&&e.jsx(Me,{className:"w-3.5 h-3.5 stroke-[3]"})})]},c.id)})}),e.jsxs("div",{className:"p-3 bg-pink-50/50 border border-pink-100 rounded-xl flex items-center gap-2 text-pink-700 text-[11px]",children:[e.jsx(um,{className:"w-4 h-4 text-pink-500 shrink-0"}),e.jsx("span",{children:"Fitur dapat diubah kapan saja setelah paket dibuat."})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 flex items-center gap-2 text-xs font-bold text-slate-800",children:[e.jsx("span",{className:"w-4 h-4 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center text-[10px]",children:"✓"}),e.jsxs("span",{children:[ie," fitur dipilih"]})]})]})]}),e.jsxs("div",{className:"bg-white/95 backdrop-blur-md p-4 rounded-2xl border border-slate-200/80 shadow-lg flex items-center justify-end gap-3",children:[e.jsx("button",{type:"button",onClick:j,className:"px-6 py-2.5 bg-white hover:bg-slate-50 text-slate-700 font-extrabold text-xs rounded-xl border border-slate-200 transition-colors cursor-pointer shadow-2xs",children:"Batal"}),e.jsx("button",{type:"button",onClick:Ne,className:"px-6 py-2.5 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold text-xs rounded-xl shadow-md transition-all cursor-pointer active:scale-98",children:"Simpan Paket"})]})]})},P1=({triggerToast:h})=>{const[j,m]=d.useState("Semua Status"),[o,S]=d.useState("Semua Tipe"),[M,C]=d.useState("Urutkan"),[u,b]=d.useState(""),[f,A]=d.useState(null),y=[{id:"enterprise",name:"Enterprise",description:"Semua fitur tanpa batas untuk bisnis besar",type:"Premium",typeBadgeBg:"bg-purple-100",typeBadgeColor:"text-purple-700",price:"Rp599.000",pricePeriod:"/bulan",billing:"Bulanan",billingBadgeBg:"bg-emerald-100",billingBadgeColor:"text-emerald-700",tenantCount:58,status:"Aktif",icon:_a,iconBg:"bg-pink-100",iconColor:"text-pink-600",minTenant:"-",maxTenant:"-",createdAt:"10 Jan 2025, 10:24",createdBy:"Reza Setiawan",updatedAt:"20 Mei 2025, 14:30",detailDescription:"Paket lengkap dengan semua fitur tanpa batasan. Cocok untuk perusahaan besar dengan banyak tim dan kebutuhan lanjutan.",features:["Semua fitur Basic & Pro","User & Admin Tanpa Batas","Penyimpanan 100 GB","Domain Custom","API Access","Priority Support 24/7"]},{id:"pro",name:"Pro",description:"Fitur lengkap untuk bisnis yang berkembang",type:"Pro",typeBadgeBg:"bg-pink-100",typeBadgeColor:"text-pink-600",price:"Rp299.000",pricePeriod:"/bulan",billing:"Bulanan",billingBadgeBg:"bg-emerald-100",billingBadgeColor:"text-emerald-700",tenantCount:96,status:"Aktif",icon:Bt,iconBg:"bg-amber-100",iconColor:"text-amber-600",minTenant:"1",maxTenant:"15",createdAt:"12 Jan 2025, 09:15",createdBy:"Reza Setiawan",updatedAt:"18 Mei 2025, 11:20",detailDescription:"Paket ideal untuk studio kecantikan dan MUA profesional yang membutuhkan manajemen tim dan reservasi terintegrasi.",features:["Hingga 15 Pengguna","Reservasi & Jadwal Unlimited","Penyimpanan 25 GB","Integrasi Payment Gateway","Laporan Analitik Lengkap","Support Email & WhatsApp"]},{id:"basic",name:"Basic",description:"Semua fitur penting untuk memulai",type:"Basic",typeBadgeBg:"bg-blue-100",typeBadgeColor:"text-blue-700",price:"Rp149.000",pricePeriod:"/bulan",billing:"Bulanan",billingBadgeBg:"bg-emerald-100",billingBadgeColor:"text-emerald-700",tenantCount:112,status:"Aktif",icon:Qn,iconBg:"bg-blue-100",iconColor:"text-blue-600",minTenant:"1",maxTenant:"5",createdAt:"15 Jan 2025, 14:00",createdBy:"Dewi Lestari",updatedAt:"10 Mei 2025, 16:45",detailDescription:"Paket dasar dengan fitur esensial untuk mengelola booking harian dan katalog layanan studio Anda.",features:["Hingga 5 Pengguna","Subdomain MuaKita","Penyimpanan 5 GB","Kalender Reservasi Standard","Pengingat Pelanggan"]},{id:"starter",name:"Starter",description:"Paket terjangkau untuk UMKM baru",type:"Basic",typeBadgeBg:"bg-blue-100",typeBadgeColor:"text-blue-700",price:"Rp79.000",pricePeriod:"/bulan",billing:"Bulanan",billingBadgeBg:"bg-emerald-100",billingBadgeColor:"text-emerald-700",tenantCount:28,status:"Aktif",icon:Hg,iconBg:"bg-emerald-100",iconColor:"text-emerald-600",minTenant:"1",maxTenant:"2",createdAt:"01 Feb 2025, 08:30",createdBy:"Reza Setiawan",updatedAt:"05 Mei 2025, 10:10",detailDescription:"Paket entri ekonomis untuk penata rias perorangan yang baru beralih dari pencatatan manual ke digital.",features:["2 Pengguna Admin","Manajemen Layanan & Portfolio","Penyimpanan 2 GB","Notifikasi Email"]},{id:"custom",name:"Custom",description:"Paket khusus menyesuaikan kebutuhan",type:"Custom",typeBadgeBg:"bg-purple-100",typeBadgeColor:"text-purple-700",price:"-",subPriceText:"Hubungi Admin",billing:"Kustom",billingBadgeBg:"bg-amber-100",billingBadgeColor:"text-amber-700",tenantCount:15,status:"Aktif",icon:Aa,iconBg:"bg-purple-100",iconColor:"text-purple-600",minTenant:"Sesuaian",maxTenant:"Sesuaian",createdAt:"20 Feb 2025, 11:00",createdBy:"Super Admin",updatedAt:"12 Mei 2025, 09:30",detailDescription:"Paket fleksibel dengan alokasi modul dan kapasitas khusus sesuai kebutuhan korporat atau jaringan waralaba.",features:["Konfigurasi Modul Kustom","SLA Garansi Uptime 99.9%","Dedicated Support Manager","Integrasi ERP / API Khusus"]},{id:"trial",name:"Trial",description:"Paket percobaan 14 hari",type:"Trial",typeBadgeBg:"bg-slate-100",typeBadgeColor:"text-slate-600",price:"Gratis",billing:"-",tenantCount:3,status:"Nonaktif",icon:ym,iconBg:"bg-slate-100",iconColor:"text-slate-500",minTenant:"1",maxTenant:"1",createdAt:"01 Jan 2025, 00:00",createdBy:"System",updatedAt:"01 Apr 2025, 12:00",detailDescription:"Paket evaluasi gratis selama 14 hari untuk calon tenant merasakan kemudahan platform MuaKita.",features:["Akses 14 Hari","Semua Fitur Basic Activated","Maksimal 10 Booking Uji Coba"]}],[R,W]=d.useState(y[0]),[G,ae]=d.useState(!1),[xe,$]=d.useState(null),T=y.filter(_=>{const D=j==="Semua Status"||_.status===j,Y=o==="Semua Tipe"||_.type===o,se=u===""||_.name.toLowerCase().includes(u.toLowerCase())||_.description.toLowerCase().includes(u.toLowerCase());return D&&Y&&se});return G?e.jsx(R1,{initialData:xe,onBack:()=>ae(!1),triggerToast:h}):e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-200 text-slate-800 pb-10",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-3.5",children:[e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-pink-50 text-pink-500 flex items-center justify-center shrink-0 border border-pink-100",children:e.jsx(ei,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block",children:"Total Paket"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"6"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Semua paket terdaftar"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-emerald-50 text-emerald-500 flex items-center justify-center shrink-0 border border-emerald-100",children:e.jsx(Ie,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block",children:"Paket Aktif"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"5"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Paket dapat digunakan"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-amber-50 text-amber-500 flex items-center justify-center shrink-0 border border-amber-100",children:e.jsx(Bt,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block",children:"Paket Nonaktif"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"1"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Tidak tersedia untuk dipilih"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-purple-50 text-purple-500 flex items-center justify-center shrink-0 border border-purple-100",children:e.jsx(is,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block",children:"Total Tenant"}),e.jsx("span",{className:"text-xl font-black text-slate-900 leading-tight block",children:"312"}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:"Menggunakan paket"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-blue-50 text-blue-500 flex items-center justify-center shrink-0 border border-blue-100",children:e.jsx(Ht,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block truncate",children:"Pendapatan (Bulan Ini)"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block truncate",children:"Rp358.750.000"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:["↑ 18.6% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-4",children:[e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-wrap items-center justify-between gap-2.5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 flex-1 min-w-[280px]",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:j,onChange:_=>m(_.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Status",children:"Semua Status"}),e.jsx("option",{value:"Aktif",children:"Aktif"}),e.jsx("option",{value:"Nonaktif",children:"Nonaktif"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:o,onChange:_=>S(_.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Tipe",children:"Semua Tipe"}),e.jsx("option",{value:"Premium",children:"Premium"}),e.jsx("option",{value:"Pro",children:"Pro"}),e.jsx("option",{value:"Basic",children:"Basic"}),e.jsx("option",{value:"Custom",children:"Custom"}),e.jsx("option",{value:"Trial",children:"Trial"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:M,onChange:_=>C(_.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Urutkan",children:"Urutkan"}),e.jsx("option",{value:"Harga Termahal",children:"Harga Termahal"}),e.jsx("option",{value:"Harga Termurah",children:"Harga Termurah"}),e.jsx("option",{value:"Tenant Terbanyak",children:"Tenant Terbanyak"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative flex-1 min-w-[180px]",children:[e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-3 top-2.5"}),e.jsx("input",{type:"text",placeholder:"Cari nama paket atau deskripsi...",value:u,onChange:_=>b(_.target.value),className:"w-full bg-slate-50 border border-slate-200 text-slate-800 placeholder-slate-400 text-xs font-medium py-2 pl-8 pr-3 rounded-xl focus:outline-none focus:border-pink-500"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>h("Filter diterapkan"),className:"px-3 py-2 bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold rounded-xl flex items-center gap-1.5 transition-colors cursor-pointer shadow-2xs",children:[e.jsx(Ta,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Filter"})]}),e.jsxs("button",{onClick:()=>h("Mengunduh data paket..."),className:"px-3 py-2 bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold rounded-xl flex items-center gap-1.5 transition-colors cursor-pointer shadow-2xs",children:[e.jsx(Yl,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Export"})]}),e.jsxs("button",{onClick:()=>{$(null),ae(!0)},className:"px-3.5 py-2 bg-[#EC167F] hover:bg-pink-600 text-white text-xs font-extrabold rounded-xl flex items-center gap-1.5 transition-all cursor-pointer shadow-sm active:scale-98",children:[e.jsx(ct,{className:"w-3.5 h-3.5 stroke-[3]"}),e.jsx("span",{children:"Tambah Paket"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/70 border-b border-slate-100 text-[11px] font-bold text-slate-500 tracking-wider",children:[e.jsx("th",{className:"py-3 px-4",children:"Paket"}),e.jsx("th",{className:"py-3 px-3",children:"Tipe"}),e.jsx("th",{className:"py-3 px-3",children:"Harga"}),e.jsx("th",{className:"py-3 px-3",children:"Billing"}),e.jsx("th",{className:"py-3 px-3",children:"Tenant"}),e.jsx("th",{className:"py-3 px-3",children:"Status"}),e.jsx("th",{className:"py-3 px-4 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs font-medium",children:T.map(_=>{const D=_.icon,Y=R.id===_.id;return e.jsxs("tr",{onClick:()=>W(_),className:`transition-colors cursor-pointer ${Y?"bg-pink-50/40 hover:bg-pink-50/60":"hover:bg-slate-50/80"}`,children:[e.jsx("td",{className:"py-3.5 px-4 min-w-[200px]",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-9 h-9 rounded-full ${_.iconBg} ${_.iconColor} flex items-center justify-center shrink-0`,children:e.jsx(D,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block leading-tight",children:_.name}),e.jsx("span",{className:"text-[11px] text-slate-400 block truncate",children:_.description})]})]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:e.jsx("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-bold ${_.typeBadgeBg} ${_.typeBadgeColor}`,children:_.type})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 text-xs",children:_.price}),_.pricePeriod&&e.jsxs("span",{className:"text-[10px] text-slate-400 font-normal",children:[" ",_.pricePeriod]}),_.subPriceText&&e.jsx("span",{className:"text-[10px] text-slate-400 block",children:_.subPriceText})]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:_.billing!=="-"?e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-bold ${_.billingBadgeBg} ${_.billingBadgeColor}`,children:_.billing}):e.jsx("span",{className:"text-slate-400",children:"-"})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block leading-tight",children:_.tenantCount}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:"Tenant"})]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:e.jsxs("span",{className:`text-[11px] font-bold flex items-center gap-1 ${_.status==="Aktif"?"text-emerald-600":"text-rose-600"}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${_.status==="Aktif"?"bg-emerald-500":"bg-rose-500"}`}),_.status]})}),e.jsx("td",{className:"py-3.5 px-4 text-center whitespace-nowrap",onClick:se=>se.stopPropagation(),children:e.jsxs("div",{className:"flex items-center justify-center gap-1 relative",children:[e.jsx("button",{onClick:()=>W(_),className:`p-1.5 rounded-lg border transition-colors cursor-pointer ${Y?"border-pink-300 bg-pink-100 text-[#EC167F]":"border-slate-200 text-blue-600 hover:bg-blue-50"}`,title:"Lihat Detail Paket",children:e.jsx(Dt,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>{$(_),ae(!0)},className:"p-1.5 rounded-lg border border-slate-200 text-slate-600 hover:bg-slate-100 transition-colors cursor-pointer",title:"Edit Paket",children:e.jsx(rs,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>A(f===_.id?null:_.id),className:"p-1.5 rounded-lg border border-slate-200 text-slate-400 hover:bg-slate-100 transition-colors cursor-pointer",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})}),f===_.id&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-36 bg-white rounded-xl shadow-xl border border-slate-200 py-1.5 z-20 text-left text-xs animate-in fade-in zoom-in-95",children:[e.jsxs("button",{onClick:()=>{W(_),A(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium cursor-pointer",children:[e.jsx(Dt,{className:"w-3.5 h-3.5 text-blue-500"}),e.jsx("span",{children:"Detail"})]}),e.jsxs("button",{onClick:()=>{h(`Ubah status paket ${_.name}`),A(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium cursor-pointer",children:[e.jsx(Ge,{className:"w-3.5 h-3.5 text-emerald-500"}),e.jsx("span",{children:"Toggle Status"})]})]})]})})]},_.id)})})]})}),e.jsxs("div",{className:"p-3 bg-slate-50/50 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsx("span",{children:"Menampilkan 1 - 6 dari 6 paket"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-400 hover:bg-white transition-colors cursor-not-allowed",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsx("button",{className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white font-bold flex items-center justify-center shadow-2xs",children:"1"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-400 hover:bg-white transition-colors cursor-not-allowed",children:e.jsx(it,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none bg-white border border-slate-200 text-slate-700 text-xs font-semibold py-1 pl-2.5 pr-6 rounded-lg focus:outline-none",children:[e.jsx("option",{children:"10 / halaman"}),e.jsx("option",{children:"25 / halaman"}),e.jsx("option",{children:"50 / halaman"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-1.5 top-1.5 pointer-events-none"})]})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 space-y-5 sticky top-4",children:[e.jsx("h3",{className:"text-sm font-black text-slate-900 pb-2 border-b border-slate-100",children:"Detail Paket"}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:`w-10 h-10 rounded-full ${R.iconBg} ${R.iconColor} flex items-center justify-center shrink-0`,children:e.jsx(R.icon,{className:"w-5 h-5"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("h4",{className:"text-base font-black text-slate-900 leading-tight",children:R.name}),e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-bold ${R.status==="Aktif"?"bg-emerald-100 text-emerald-700":"bg-rose-100 text-rose-700"}`,children:R.status})]}),e.jsx("p",{className:"text-xs text-slate-500 mt-0.5 leading-snug",children:R.description})]})]}),e.jsxs("div",{className:"space-y-2.5 text-xs pt-1 border-t border-slate-100",children:[e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Tipe Paket"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.type})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Harga"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[R.price,R.pricePeriod&&e.jsxs("span",{className:"text-slate-400 font-normal",children:[" ",R.pricePeriod]})]})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Billing"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.billing})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Minimal Tenant"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.minTenant})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Maksimal Tenant"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.maxTenant})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Dibuat Pada"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.createdAt})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Dibuat Oleh"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.createdBy})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Terakhir Diperbarui"}),e.jsx("span",{className:"font-bold text-slate-900",children:R.updatedAt})]})]}),e.jsxs("div",{className:"space-y-1.5 pt-2 border-t border-slate-100 text-xs",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Deskripsi"}),e.jsx("p",{className:"text-slate-600 leading-relaxed text-[11px]",children:R.detailDescription})]}),e.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-100 text-xs",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Fitur Utama"}),e.jsx("div",{className:"space-y-2",children:R.features.map((_,D)=>e.jsxs("div",{className:"flex items-start gap-2 text-[11px] text-slate-700 font-medium",children:[e.jsx("div",{className:"w-4 h-4 rounded-full bg-emerald-100 text-emerald-600 flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(Me,{className:"w-2.5 h-2.5"})}),e.jsx("span",{children:_})]},D))})]}),e.jsx("button",{onClick:()=>{$(R),ae(!0)},className:"w-full py-2.5 bg-white hover:bg-pink-50 text-[#EC167F] font-extrabold text-xs rounded-xl border border-pink-200 transition-all cursor-pointer shadow-2xs active:scale-98",children:"Edit Paket"})]})]})]})},L1=({triggerToast:h})=>{const[j,m]=d.useState("Semua Transaksi"),[o,S]=d.useState("Semua Status"),[M,C]=d.useState("Semua Metode"),[u,b]=d.useState("Semua Paket"),[f,A]=d.useState(""),[y,R]=d.useState(null),W=[{id:"INV-2025-0521-0001",refId:"#8421",tenantName:"Glow Bridal Studio",tenantDomain:"glowbridal.muakita.com",tenantLogoText:"Glow",tenantLogoBg:"bg-slate-900 text-white",packageType:"Enterprise",packageBadgeBg:"bg-purple-100",packageBadgeColor:"text-purple-700",date:"21 Mei 2025 10:24",dueDate:"21 Mei 2025",dueDateStatus:"Lunas",dueDateStatusColor:"text-slate-400",method:"•••• 4242",methodType:"visa",status:"Berhasil",amount:"Rp599.000",period:"21 Mei 2025 - 21 Jun 2025",subtotal:"Rp599.000",ppn:"Rp59.900",total:"Rp599.000",timeline:[{title:"Invoice dibuat",time:"21 Mei 2025, 10:24",completed:!0},{title:"Menunggu pembayaran",time:"21 Mei 2025, 10:24",completed:!0},{title:"Pembayaran berhasil",time:"21 Mei 2025, 10:25",completed:!0}]},{id:"INV-2025-0520-0002",refId:"#8420",tenantName:"Lovely Makeup Artist",tenantDomain:"lovely.muakita.com",tenantLogoText:"Lovely",tenantLogoBg:"bg-pink-100 text-pink-600",packageType:"Pro",packageBadgeBg:"bg-pink-100",packageBadgeColor:"text-pink-600",date:"20 Mei 2025 16:45",dueDate:"20 Mei 2025",dueDateStatus:"Lunas",dueDateStatusColor:"text-slate-400",method:"QRIS",methodType:"qris",status:"Berhasil",amount:"Rp299.000",period:"20 Mei 2025 - 20 Jun 2025",subtotal:"Rp299.000",ppn:"Rp29.900",total:"Rp299.000",timeline:[{title:"Invoice dibuat",time:"20 Mei 2025, 16:45",completed:!0},{title:"Menunggu pembayaran",time:"20 Mei 2025, 16:45",completed:!0},{title:"Pembayaran berhasil",time:"20 Mei 2025, 16:46",completed:!0}]},{id:"INV-2025-0520-0003",refId:"#8419",tenantName:"Cantik Salon & Beauty",tenantDomain:"cantiksalon.muakita.com",tenantLogoText:"Cantik",tenantLogoBg:"bg-amber-100 text-amber-800",packageType:"Pro",packageBadgeBg:"bg-pink-100",packageBadgeColor:"text-pink-600",date:"20 Mei 2025 09:12",dueDate:"20 Mei 2025",dueDateStatus:"Telat 2 hari",dueDateStatusColor:"text-rose-600 font-bold",method:"•••• 8888",methodType:"mandiri",status:"Pending",amount:"Rp299.000",period:"20 Mei 2025 - 20 Jun 2025",subtotal:"Rp299.000",ppn:"Rp29.900",total:"Rp299.000",timeline:[{title:"Invoice dibuat",time:"20 Mei 2025, 09:12",completed:!0},{title:"Menunggu pembayaran",time:"20 Mei 2025, 09:12",completed:!0},{title:"Proses verifikasi bank",time:"20 Mei 2025, 09:15",completed:!1}]},{id:"INV-2025-0518-0004",refId:"#8418",tenantName:"Aura Wedding Organizer",tenantDomain:"aura.muakita.com",tenantLogoText:"Aura",tenantLogoBg:"bg-sky-100 text-sky-700",packageType:"Enterprise",packageBadgeBg:"bg-purple-100",packageBadgeColor:"text-purple-700",date:"18 Mei 2025 08:50",dueDate:"18 Mei 2025",dueDateStatus:"Lunas",dueDateStatusColor:"text-slate-400",method:"•••• 1111",methodType:"bca",status:"Berhasil",amount:"Rp599.000",period:"18 Mei 2025 - 18 Jun 2025",subtotal:"Rp599.000",ppn:"Rp59.900",total:"Rp599.000",timeline:[{title:"Invoice dibuat",time:"18 Mei 2025, 08:50",completed:!0},{title:"Menunggu pembayaran",time:"18 Mei 2025, 08:50",completed:!0},{title:"Pembayaran berhasil",time:"18 Mei 2025, 08:51",completed:!0}]},{id:"INV-2025-0517-0005",refId:"#8417",tenantName:"Naya Makeup Studio",tenantDomain:"naya.muakita.com",tenantLogoText:"Naya",tenantLogoBg:"bg-slate-800 text-slate-100",packageType:"Basic",packageBadgeBg:"bg-blue-100",packageBadgeColor:"text-blue-700",date:"17 Mei 2025 14:30",dueDate:"20 Mei 2025",dueDateStatus:"Telat 3 hari",dueDateStatusColor:"text-rose-600 font-bold",method:"OVO",methodType:"ovo",status:"Gagal",amount:"Rp149.000",period:"17 Mei 2025 - 17 Jun 2025",subtotal:"Rp149.000",ppn:"Rp14.900",total:"Rp149.000",timeline:[{title:"Invoice dibuat",time:"17 Mei 2025, 14:30",completed:!0},{title:"Menunggu pembayaran",time:"17 Mei 2025, 14:30",completed:!0},{title:"Pembayaran kedaluwarsa",time:"20 Mei 2025, 14:30",completed:!1}]},{id:"INV-2025-0515-0006",refId:"#8416",tenantName:"Elegant MUA",tenantDomain:"elegantmua.muakita.com",tenantLogoText:"Elegant",tenantLogoBg:"bg-emerald-100 text-emerald-700",packageType:"Pro",packageBadgeBg:"bg-pink-100",packageBadgeColor:"text-pink-600",date:"15 Mei 2025 11:08",dueDate:"15 Mei 2025",dueDateStatus:"Lunas",dueDateStatusColor:"text-slate-400",method:"DANA",methodType:"dana",status:"Berhasil",amount:"Rp299.000",period:"15 Mei 2025 - 15 Jun 2025",subtotal:"Rp299.000",ppn:"Rp29.900",total:"Rp299.000",timeline:[{title:"Invoice dibuat",time:"15 Mei 2025, 11:08",completed:!0},{title:"Menunggu pembayaran",time:"15 Mei 2025, 11:08",completed:!0},{title:"Pembayaran berhasil",time:"15 Mei 2025, 11:09",completed:!0}]},{id:"INV-2025-0512-0007",refId:"#8415",tenantName:"Beauty Classy",tenantDomain:"beautyclassy.muakita.com",tenantLogoText:"Beauty",tenantLogoBg:"bg-[#EC167F] text-white",packageType:"Enterprise",packageBadgeBg:"bg-purple-100",packageBadgeColor:"text-purple-700",date:"12 Mei 2025 10:12",dueDate:"12 Mei 2025",dueDateStatus:"Lunas",dueDateStatusColor:"text-slate-400",method:"•••• 5555",methodType:"visa",status:"Berhasil",amount:"Rp599.000",period:"12 Mei 2025 - 12 Jun 2025",subtotal:"Rp599.000",ppn:"Rp59.900",total:"Rp599.000",timeline:[{title:"Invoice dibuat",time:"12 Mei 2025, 10:12",completed:!0},{title:"Menunggu pembayaran",time:"12 Mei 2025, 10:12",completed:!0},{title:"Pembayaran berhasil",time:"12 Mei 2025, 10:13",completed:!0}]},{id:"INV-2025-0510-0008",refId:"#8414",tenantName:"Test Tenant",tenantDomain:"test.muakita.com",tenantLogoText:"T",tenantLogoBg:"bg-slate-200 text-slate-700",packageType:"Trial",packageBadgeBg:"bg-slate-100",packageBadgeColor:"text-slate-600",date:"10 Mei 2025 09:00",dueDate:"10 Mei 2025",dueDateStatus:"Lunas",dueDateStatusColor:"text-slate-400",method:"-",methodType:"none",status:"Berhasil",amount:"Rp0",period:"10 Mei 2025 - 24 Mei 2025",subtotal:"Rp0",ppn:"Rp0",total:"Rp0",timeline:[{title:"Invoice trial dibuat",time:"10 Mei 2025, 09:00",completed:!0},{title:"Aktivasi trial berhasil",time:"10 Mei 2025, 09:00",completed:!0}]}],[G,ae]=d.useState(W[0]),xe=W.filter(T=>{if(j==="Berlangganan Aktif"&&T.status!=="Berhasil"||j==="Pending"&&T.status!=="Pending"||j==="Gagal"&&T.status!=="Gagal"||j==="Refund"&&T.status!=="Refund")return!1;const _=o==="Semua Status"||T.status===o,D=M==="Semua Metode"||T.method.toLowerCase().includes(M.toLowerCase()),Y=u==="Semua Paket"||T.packageType===u,se=f===""||T.id.toLowerCase().includes(f.toLowerCase())||T.tenantName.toLowerCase().includes(f.toLowerCase())||T.tenantDomain.toLowerCase().includes(f.toLowerCase());return _&&D&&Y&&se}),$=T=>{switch(T.methodType){case"visa":return e.jsxs("div",{className:"flex items-center gap-1 text-xs font-extrabold text-slate-800",children:[e.jsx("span",{className:"text-blue-700 italic font-black text-[11px] tracking-tight",children:"VISA"}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-600",children:T.method})]});case"qris":return e.jsx("span",{className:"font-extrabold text-slate-900 text-xs tracking-tight",children:"QRIS"});case"mandiri":return e.jsxs("div",{className:"flex items-center gap-1 text-xs font-bold",children:[e.jsx("span",{className:"text-amber-500 font-extrabold text-[11px]",children:"mandırı"}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-600",children:T.method})]});case"bca":return e.jsxs("div",{className:"flex items-center gap-1 text-xs font-bold",children:[e.jsx("span",{className:"text-blue-600 font-black italic text-[11px]",children:"BCA"}),e.jsx("span",{className:"text-[11px] font-semibold text-slate-600",children:T.method})]});case"ovo":return e.jsx("span",{className:"font-black text-purple-700 text-xs tracking-tight",children:"OVO"});case"dana":return e.jsx("span",{className:"font-black text-sky-500 text-xs tracking-tight",children:"DANA"});default:return e.jsx("span",{className:"text-slate-400 text-xs",children:"-"})}};return e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-200 text-slate-800 pb-12",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-pink-500 flex items-center justify-center shrink-0 border border-pink-100",children:e.jsx(Ht,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Total Pendapatan"}),e.jsx("span",{className:"text-sm font-black text-slate-900 leading-tight block truncate",children:"Rp358.750.000"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 18.6% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-pink-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,12 L10,8 L20,13 L30,5 L40,9 L50,2"})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center shrink-0 border border-purple-100",children:e.jsx(Ie,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Pembayaran Berhasil"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"312"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 11.3% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-purple-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,14 L10,10 L20,11 L30,4 L40,7 L50,1"})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-amber-50 text-amber-500 flex items-center justify-center shrink-0 border border-amber-100",children:e.jsx(Vt,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Pembayaran Pending"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"24"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-amber-600 flex items-center gap-0.5",children:["↓ 6.8% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-amber-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,5 L10,12 L20,8 L30,13 L40,7 L50,10"})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-rose-50 text-rose-500 flex items-center justify-center shrink-0 border border-rose-100",children:e.jsx(Il,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Pembayaran Gagal"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"6"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-rose-500 flex items-center gap-0.5",children:["↓ 20% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-rose-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,3 L10,8 L20,4 L30,12 L40,9 L50,14"})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-blue-50 text-blue-500 flex items-center justify-center shrink-0 border border-blue-100",children:e.jsx(Ls,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Refund"}),e.jsx("span",{className:"text-xs font-black text-slate-900 leading-tight block truncate",children:"Rp12.450.000"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-blue-600 flex items-center gap-0.5",children:["↑ 7.2% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-blue-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,12 L10,10 L20,13 L30,7 L40,8 L50,3"})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-teal-50 text-teal-600 flex items-center justify-center shrink-0 border border-teal-100",children:e.jsx(fg,{className:"w-4 h-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Rata-rata Nilai Invoice"}),e.jsx("span",{className:"text-xs font-black text-slate-900 leading-tight block truncate",children:"Rp1.151.762"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-teal-600 flex items-center gap-0.5",children:["↑ 8.4% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-teal-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,13 L10,11 L20,12 L30,6 L40,9 L50,2"})})]})]})]}),e.jsx("div",{className:"flex items-center gap-6 border-b border-slate-200/80 px-1 pt-1",children:[{id:"Semua Transaksi",label:"Semua Transaksi"},{id:"Berlangganan Aktif",label:"Berlangganan Aktif"},{id:"Pending",label:"Pending"},{id:"Gagal",label:"Gagal"},{id:"Refund",label:"Refund"}].map(T=>e.jsxs("button",{onClick:()=>m(T.id),className:`pb-3 text-xs font-extrabold transition-all relative cursor-pointer ${j===T.id?"text-[#EC167F]":"text-slate-500 hover:text-slate-800"}`,children:[T.label,j===T.id&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-[#EC167F] rounded-full"})]},T.id))}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-4",children:[e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-wrap items-center justify-between gap-2.5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 flex-1 min-w-[280px]",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:o,onChange:T=>S(T.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Status",children:"Semua Status"}),e.jsx("option",{value:"Berhasil",children:"Berhasil"}),e.jsx("option",{value:"Pending",children:"Pending"}),e.jsx("option",{value:"Gagal",children:"Gagal"}),e.jsx("option",{value:"Refund",children:"Refund"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:M,onChange:T=>C(T.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Metode",children:"Semua Metode"}),e.jsx("option",{value:"Visa",children:"Visa"}),e.jsx("option",{value:"QRIS",children:"QRIS"}),e.jsx("option",{value:"Mandiri",children:"Mandiri"}),e.jsx("option",{value:"BCA",children:"BCA"}),e.jsx("option",{value:"OVO",children:"OVO"}),e.jsx("option",{value:"DANA",children:"DANA"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:u,onChange:T=>b(T.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Paket",children:"Semua Paket"}),e.jsx("option",{value:"Enterprise",children:"Enterprise"}),e.jsx("option",{value:"Pro",children:"Pro"}),e.jsx("option",{value:"Basic",children:"Basic"}),e.jsx("option",{value:"Trial",children:"Trial"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 px-3 rounded-xl flex items-center gap-2 cursor-pointer hover:bg-slate-100 transition-colors",children:[e.jsx(Aa,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"01 Mei 2025 - 31 Mei 2025"})]}),e.jsxs("div",{className:"relative flex-1 min-w-[170px]",children:[e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-3 top-2.5"}),e.jsx("input",{type:"text",placeholder:"Cari invoice, tenant, email...",value:f,onChange:T=>A(T.target.value),className:"w-full bg-slate-50 border border-slate-200 text-slate-800 placeholder-slate-400 text-xs font-medium py-2 pl-8 pr-3 rounded-xl focus:outline-none focus:border-pink-500"})]})]}),e.jsxs("button",{onClick:()=>h("Filter pembayaran diterapkan"),className:"px-3.5 py-2 bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold rounded-xl flex items-center gap-1.5 transition-colors cursor-pointer shadow-2xs",children:[e.jsx(Ta,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Filter"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/70 border-b border-slate-100 text-[11px] font-bold text-slate-500 tracking-wider",children:[e.jsx("th",{className:"py-3 px-4",children:"Invoice"}),e.jsx("th",{className:"py-3 px-3",children:"Tenant"}),e.jsx("th",{className:"py-3 px-3",children:"Paket"}),e.jsx("th",{className:"py-3 px-3",children:"Tanggal"}),e.jsx("th",{className:"py-3 px-3",children:"Jatuh Tempo"}),e.jsx("th",{className:"py-3 px-3",children:"Metode"}),e.jsx("th",{className:"py-3 px-3",children:"Status"}),e.jsx("th",{className:"py-3 px-3",children:"Jumlah"}),e.jsx("th",{className:"py-3 px-4 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs font-medium",children:xe.map(T=>{const _=G.id===T.id;return e.jsxs("tr",{onClick:()=>ae(T),className:`transition-colors cursor-pointer ${_?"bg-pink-50/40 hover:bg-pink-50/60":"hover:bg-slate-50/80"}`,children:[e.jsx("td",{className:"py-3.5 px-4 whitespace-nowrap",children:e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block leading-tight",children:T.id}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:T.refId})]})}),e.jsx("td",{className:"py-3.5 px-3 min-w-[180px]",children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:`w-8 h-8 rounded-full ${T.tenantLogoBg} font-extrabold text-[11px] flex items-center justify-center shrink-0`,children:T.tenantLogoText.charAt(0)}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block leading-tight truncate",children:T.tenantName}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:T.tenantDomain})]})]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-bold ${T.packageBadgeBg} ${T.packageBadgeColor}`,children:T.packageType})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap text-[11px]",children:e.jsxs("div",{children:[e.jsxs("span",{className:"font-bold text-slate-900 block leading-tight",children:[T.date.split(" ")[0]," ",T.date.split(" ")[1]," ",T.date.split(" ")[2]]}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:T.date.split(" ")[3]})]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap text-[11px]",children:e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-slate-900 block leading-tight",children:T.dueDate}),e.jsx("span",{className:`text-[10px] block ${T.dueDateStatusColor}`,children:T.dueDateStatus})]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:$(T)}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap",children:e.jsxs("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-bold inline-flex items-center gap-1 ${T.status==="Berhasil"?"bg-emerald-100 text-emerald-700":T.status==="Pending"?"bg-amber-100 text-amber-700":"bg-rose-100 text-rose-700"}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${T.status==="Berhasil"?"bg-emerald-500":T.status==="Pending"?"bg-amber-500":"bg-rose-500"}`}),T.status]})}),e.jsx("td",{className:"py-3.5 px-3 whitespace-nowrap font-extrabold text-slate-900",children:T.amount}),e.jsx("td",{className:"py-3.5 px-4 text-center whitespace-nowrap",onClick:D=>D.stopPropagation(),children:e.jsxs("div",{className:"flex items-center justify-center gap-1 relative",children:[e.jsx("button",{onClick:()=>ae(T),className:`p-1.5 rounded-lg border transition-colors cursor-pointer ${_?"border-pink-300 bg-pink-100 text-[#EC167F]":"border-slate-200 text-blue-600 hover:bg-blue-50"}`,title:"Lihat Detail Transactions",children:e.jsx(Dt,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>R(y===T.id?null:T.id),className:"p-1.5 rounded-lg border border-slate-200 text-slate-400 hover:bg-slate-100 transition-colors cursor-pointer",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})}),y===T.id&&e.jsx("div",{className:"absolute right-0 top-full mt-1 w-36 bg-white rounded-xl shadow-xl border border-slate-200 py-1.5 z-20 text-left text-xs animate-in fade-in zoom-in-95",children:e.jsxs("button",{onClick:()=>{h(`Cetak invoice ${T.id}`),R(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium cursor-pointer",children:[e.jsx(wr,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Kirim Invoice"})]})})]})})]},T.id)})})]})}),e.jsxs("div",{className:"p-3 bg-slate-50/50 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsx("span",{children:"Menampilkan 1 - 8 dari 312 transaksi"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-400 hover:bg-white transition-colors cursor-not-allowed",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsx("button",{className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white font-bold flex items-center justify-center shadow-2xs",children:"1"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:"2"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:"3"}),e.jsx("span",{className:"text-slate-400 px-1",children:"..."}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:"39"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:e.jsx(it,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none bg-white border border-slate-200 text-slate-700 text-xs font-semibold py-1 pl-2.5 pr-6 rounded-lg focus:outline-none",children:[e.jsx("option",{children:"10 / halaman"}),e.jsx("option",{children:"25 / halaman"}),e.jsx("option",{children:"50 / halaman"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-1.5 top-1.5 pointer-events-none"})]})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 space-y-5 sticky top-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900 tracking-wide uppercase",children:"Detail Pembayaran"}),e.jsx("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-bold ${G.status==="Berhasil"?"bg-emerald-100 text-emerald-700":G.status==="Pending"?"bg-amber-100 text-amber-700":"bg-rose-100 text-rose-700"}`,children:G.status})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-base font-black text-slate-900 leading-tight",children:G.id}),e.jsxs("p",{className:"text-[11px] text-slate-400",children:["Dibuat pada ",G.date]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("span",{className:"text-xl font-black text-slate-900 leading-none block",children:G.amount}),e.jsxs("span",{className:"text-[11px] text-slate-500 font-medium block mt-0.5",children:[G.packageType," • Bulanan"]})]})]}),e.jsxs("div",{className:"space-y-2.5 pt-3 border-t border-slate-100",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Informasi Tenant"}),e.jsxs("div",{className:"flex items-center justify-between gap-2 p-2 bg-slate-50/80 rounded-xl border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[e.jsx("div",{className:`w-8 h-8 rounded-full ${G.tenantLogoBg} font-extrabold text-xs flex items-center justify-center shrink-0`,children:G.tenantLogoText.charAt(0)}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-extrabold text-slate-900 text-xs block truncate",children:G.tenantName}),e.jsx("span",{className:"text-[10px] text-slate-400 block truncate",children:G.tenantDomain})]})]}),e.jsx("button",{onClick:()=>h(`Navigasi ke tenant ${G.tenantName}`),className:"px-2.5 py-1 bg-white border border-slate-200 text-slate-700 hover:bg-slate-50 text-[10px] font-bold rounded-lg transition-colors shrink-0 shadow-2xs",children:"Lihat Tenant"})]})]}),e.jsxs("div",{className:"space-y-2 text-xs pt-3 border-t border-slate-100",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Informasi Pembayaran"}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Status"}),e.jsxs("span",{className:`font-bold ${G.status==="Berhasil"?"text-emerald-600":"text-amber-600"}`,children:["● ",G.status]})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Metode Pembayaran"}),e.jsx("div",{className:"font-bold text-slate-900",children:$(G)})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Tanggal Pembayaran"}),e.jsx("span",{className:"font-bold text-slate-900",children:G.date})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Invoice"}),e.jsx("span",{className:"font-bold text-slate-900",children:G.id})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Periode"}),e.jsx("span",{className:"font-bold text-slate-900",children:G.period})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Jatuh Tempo"}),e.jsx("span",{className:"font-bold text-slate-900",children:G.dueDate})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5 pt-1 border-t border-dashed border-slate-100",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Subtotal"}),e.jsx("span",{className:"font-bold text-slate-900",children:G.subtotal})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"PPN (11%)"}),e.jsx("span",{className:"font-bold text-slate-900",children:G.ppn})]}),e.jsxs("div",{className:"flex items-center justify-between py-0.5 pt-1 border-t border-slate-200",children:[e.jsx("span",{className:"text-slate-900 font-black",children:"Total"}),e.jsx("span",{className:"font-black text-slate-900 text-xs",children:G.total})]})]}),e.jsxs("div",{className:"space-y-2.5 pt-3 border-t border-slate-100",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Riwayat"}),e.jsx("div",{className:"space-y-3 relative pl-4 border-l-2 border-emerald-100 ml-1.5",children:G.timeline.map((T,_)=>e.jsxs("div",{className:"relative flex items-start justify-between gap-2 text-xs",children:[e.jsx("span",{className:`absolute -left-[23px] top-0.5 w-4 h-4 rounded-full flex items-center justify-center text-[10px] ${T.completed?"bg-emerald-500 text-white":"bg-slate-200 text-slate-500"}`,children:T.completed?"✓":"•"}),e.jsx("div",{children:e.jsx("span",{className:"font-bold text-slate-900 block leading-tight text-[11px]",children:T.title})}),e.jsx("span",{className:"text-[10px] text-slate-400 shrink-0 font-medium",children:T.time})]},_))})]}),e.jsxs("div",{className:"space-y-2 pt-2",children:[e.jsxs("button",{onClick:()=>h(`Invoice ${G.id} telah dikirim ulang ke ${G.tenantName}`),className:"w-full py-2.5 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold text-xs rounded-xl shadow-md transition-all flex items-center justify-center gap-2 cursor-pointer active:scale-98",children:[e.jsx(wr,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Kirim Invoice Ulang"})]}),e.jsxs("button",{onClick:()=>h(`Proses refund untuk invoice ${G.id} diinisiasi`),className:"w-full py-2.5 bg-white hover:bg-slate-50 text-slate-700 font-extrabold text-xs rounded-xl border border-slate-200 transition-colors flex items-center justify-center gap-2 cursor-pointer shadow-2xs",children:[e.jsx(Cm,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Refund Pembayaran"})]})]})]})]})]})},_1=[{id:"1",code:"RSV-250621-0128",createdAt:"26 Mei 2025",clientName:"Reza Amelia",clientPhone:"0812 3456 7890",clientAvatar:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=120",eventDate:"26 Jun 2025",eventTime:"09.00",location:"The Westin Jakarta",serviceTitle:"Wedding Makeup",serviceDetail:"1 Orang • Paket Premium",addOnCount:2,teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp2.500.000",status:"DP Masuk",paymentStatus:"DP Rp500.000"},{id:"2",code:"RSV-250620-0127",createdAt:"25 Mei 2025",clientName:"Anisa Rahma",clientPhone:"0813 2222 3333",clientAvatar:"https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=120",eventDate:"25 Jun 2025",eventTime:"10.00",location:"Gedung Graha Satria",serviceTitle:"Engagement Makeup",serviceDetail:"1 Orang • Paket Basic",teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"},{name:"Dian P.",url:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp1.200.000",status:"Lunas",paymentStatus:"Lunas"},{id:"3",code:"RSV-250620-0126",createdAt:"24 Mei 2025",clientName:"Maya Salsabila",clientPhone:"0812 9999 8888",clientAvatar:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80&w=120",eventDate:"24 Jun 2025",eventTime:"13.00",location:"Hotel Mulia Jakarta",serviceTitle:"Hairdo",serviceDetail:"2 Orang",teamAvatars:[{name:"Dian P.",url:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp800.000",status:"Draft",paymentStatus:"Belum Bayar"},{id:"4",code:"RSV-250619-0125",createdAt:"23 Mei 2025",clientName:"Clara Dewi",clientPhone:"0813 4444 5555",clientAvatar:"https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&q=80&w=120",eventDate:"23 Jun 2025",eventTime:"08.00",location:"Hotel Fairmont",serviceTitle:"Wedding Makeup",serviceDetail:"1 Orang • Paket Premium",addOnCount:1,teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"},{name:"Dian P.",url:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp2.750.000",status:"Inquiry",paymentStatus:"-"},{id:"5",code:"RSV-250618-0124",createdAt:"22 Mei 2025",clientName:"Fahira Nur",clientPhone:"0812 7777 6666",clientAvatar:"https://images.unsplash.com/photo-1508214751196-bcfd4ca60f91?auto=format&fit=crop&q=80&w=120",eventDate:"22 Jun 2025",eventTime:"09.30",location:"Gedung Serbaguna",serviceTitle:"Makeup & Hairdo",serviceDetail:"3 Orang",teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"},{name:"Dian P.",url:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=120"},{name:"Rina T.",url:"https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp1.950.000",status:"DP Masuk",paymentStatus:"DP Rp750.000"},{id:"6",code:"RSV-250617-0123",createdAt:"21 Mei 2025",clientName:"Nadia Putri",clientPhone:"0812 1212 1212",clientAvatar:"https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?auto=format&fit=crop&q=80&w=120",eventDate:"21 Jun 2025",eventTime:"11.00",location:"The Ritz Carlton",serviceTitle:"Prewedding Makeup",serviceDetail:"1 Orang • Paket Basic",teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp1.500.000",status:"Selesai",paymentStatus:"Lunas"},{id:"7",code:"RSV-250617-0122",createdAt:"20 Mei 2025",clientName:"Dewi Anggraini",clientPhone:"0813 9898 7878",clientAvatar:"https://images.unsplash.com/photo-1567532939604-b6b5b0db2604?auto=format&fit=crop&q=80&w=120",eventDate:"20 Jun 2025",eventTime:"07.00",location:"Rumah Client",serviceTitle:"Makeup",serviceDetail:"1 Orang",teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp600.000",status:"Dibatalkan",paymentStatus:"Refund"}],z1=({reservations:h=[],onNavigateToCreate:j,triggerToast:m})=>{const[o,S]=d.useState("Semua"),[M,C]=d.useState(""),[u,b]=d.useState("Semua Status"),[f,A]=d.useState("Semua Layanan"),[y,R]=d.useState("Semua Tim"),[W,G]=d.useState([]),$=[...(h||[]).map((D,Y)=>({id:D.id||`custom-${Y}`,code:`RSV-250628-0${130+Y}`,createdAt:"Hari ini",clientName:D.name||"Pelanggan Baru",clientPhone:"0812 8888 9999",clientAvatar:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=120",eventDate:D.date||"28 Jun 2025",eventTime:"09.00",location:"Jakarta",serviceTitle:D.service||"Wedding Makeup",serviceDetail:"1 Orang • Booking Baru",teamAvatars:[{name:"Siti R.",url:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=120"}],totalPrice:"Rp2.500.000",status:D.status==="Dikonfirmasi"?"DP Masuk":D.status==="Menunggu DP"?"Inquiry":"Draft",paymentStatus:D.payment||"DP Rp500.000"})),..._1].filter(D=>{const Y=D.clientName.toLowerCase().includes(M.toLowerCase())||D.clientPhone.includes(M)||D.code.toLowerCase().includes(M.toLowerCase())||D.serviceTitle.toLowerCase().includes(M.toLowerCase()),se=o==="Semua"||D.status===o;return Y&&se}),T=()=>{W.length===$.length?G([]):G($.map(D=>D.id))},_=D=>{G(Y=>Y.includes(D)?Y.filter(se=>se!==D):[...Y,D])};return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-200 text-slate-800",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Daftar Reservasi"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Kelola semua reservasi dan booking dalam satu tempat"})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{onClick:()=>m("Mengeksport data reservasi..."),className:"px-3 py-1.5 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200/90 rounded-xl text-xs font-bold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Yl,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Export"})]}),e.jsxs("button",{onClick:()=>m("Mengimpor data reservasi..."),className:"px-3 py-1.5 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200/90 rounded-xl text-xs font-bold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Yn,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Import"})]}),e.jsxs("button",{onClick:()=>m("Buka filter lanjutan"),className:"px-3 py-1.5 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200/90 rounded-xl text-xs font-bold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Ta,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Filter Lanjutan"}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 ml-0.5"})]}),j&&e.jsxs("button",{onClick:j,className:"px-3.5 py-1.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-xs transition-all flex items-center gap-1.5 cursor-pointer ml-1",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Reservasi"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Reservasi"}),e.jsx("div",{className:"w-7 h-7 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Aa,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-xl font-black text-slate-900 leading-tight",children:"128"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 18% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Reservasi Aktif"}),e.jsx("div",{className:"w-7 h-7 rounded-xl bg-blue-50 text-blue-600 flex items-center justify-center font-bold",children:e.jsx(Vt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-xl font-black text-slate-900 leading-tight",children:"34"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 12% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Reservasi Selesai"}),e.jsx("div",{className:"w-7 h-7 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center font-bold",children:e.jsx(Ge,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-xl font-black text-slate-900 leading-tight",children:"82"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 25% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Pending Payment"}),e.jsx("div",{className:"w-7 h-7 rounded-xl bg-amber-50 text-amber-600 flex items-center justify-center font-bold",children:e.jsx(Ht,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-xl font-black text-slate-900 leading-tight",children:"16"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 8% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between col-span-2 sm:col-span-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Pendapatan"}),e.jsx("div",{className:"w-7 h-7 rounded-xl bg-emerald-50 text-emerald-600 flex items-center justify-center font-bold",children:e.jsx(nl,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-lg font-black text-slate-900 leading-tight truncate",children:"Rp126.500.000"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 18% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-2.5 items-center",children:[e.jsxs("div",{className:"lg:col-span-4 relative",children:[e.jsx("input",{type:"text",placeholder:"Cari nama client, no. WhatsApp, layanan...",value:M,onChange:D=>C(D.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20 text-slate-800"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-2.5"})]}),e.jsxs("div",{className:"lg:col-span-3 flex items-center justify-between px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-700 cursor-pointer hover:bg-slate-100/70 transition-colors",children:[e.jsx("span",{children:"21 Mei 2025 - 21 Jun 2025"}),e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-400 shrink-0"})]}),e.jsxs("div",{className:"lg:col-span-2 relative",children:[e.jsxs("select",{value:u,onChange:D=>b(D.target.value),className:"w-full appearance-none px-3 py-1.5 pr-7 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Status"}),e.jsx("option",{children:"DP Masuk"}),e.jsx("option",{children:"Lunas"}),e.jsx("option",{children:"Draft"}),e.jsx("option",{children:"Inquiry"}),e.jsx("option",{children:"Selesai"}),e.jsx("option",{children:"Dibatalkan"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"lg:col-span-2 relative",children:[e.jsxs("select",{value:f,onChange:D=>A(D.target.value),className:"w-full appearance-none px-3 py-1.5 pr-7 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Layanan"}),e.jsx("option",{children:"Wedding Makeup"}),e.jsx("option",{children:"Engagement Makeup"}),e.jsx("option",{children:"Hairdo"}),e.jsx("option",{children:"Prewedding Makeup"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsx("div",{className:"lg:col-span-1 flex justify-end",children:e.jsxs("button",{onClick:()=>{C(""),b("Semua Status"),A("Semua Layanan"),R("Semua Tim"),S("Semua"),m("Filter telah di-reset")},className:"w-full sm:w-auto px-3 py-1.5 bg-slate-50 hover:bg-slate-100 text-slate-600 border border-slate-200 rounded-xl text-xs font-bold transition-all flex items-center justify-center gap-1 cursor-pointer",children:[e.jsx(Cm,{className:"w-3 h-3 text-slate-500"}),e.jsx("span",{children:"Reset"})]})})]}),e.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto pt-1 pb-0.5 custom-scrollbar text-xs font-bold",children:[{label:"Semua",count:null},{label:"Draft",count:8},{label:"Inquiry",count:12},{label:"DP Masuk",count:16},{label:"Lunas",count:68},{label:"Selesai",count:82},{label:"Dibatalkan",count:4}].map(D=>{const Y=o===D.label;return e.jsxs("button",{onClick:()=>S(D.label),className:`px-3 py-1 rounded-xl transition-all cursor-pointer whitespace-nowrap flex items-center gap-1.5 ${Y?"bg-[#EC167F] text-white shadow-2xs font-extrabold":"bg-slate-50 hover:bg-slate-100 text-slate-600 font-semibold"}`,children:[e.jsx("span",{children:D.label}),D.count!==null&&e.jsx("span",{className:`text-[10px] px-1.5 py-0.2 rounded-md font-extrabold ${Y?"bg-white/20 text-white":"bg-slate-200/70 text-slate-600"}`,children:D.count})]},D.label)})})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"overflow-x-auto custom-scrollbar",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{className:"bg-slate-50/80 border-b border-slate-200 text-slate-500 font-bold text-[11px]",children:e.jsxs("tr",{children:[e.jsx("th",{className:"py-3 px-3.5 w-10 text-center",children:e.jsx("input",{type:"checkbox",checked:W.length===$.length&&$.length>0,onChange:T,className:"rounded border-slate-300 text-[#EC167F] focus:ring-[#EC167F] cursor-pointer"})}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"ID Reservasi"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Client"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Tanggal & Waktu"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Layanan"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Tim"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Total"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Status"}),e.jsx("th",{className:"py-3 px-3 font-bold text-slate-600",children:"Pembayaran"}),e.jsx("th",{className:"py-3 px-3 text-center font-bold text-slate-600",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs font-medium",children:$.map(D=>{const Y=W.includes(D.id);return e.jsxs("tr",{className:`hover:bg-slate-50/80 transition-colors ${Y?"bg-pink-50/30":""}`,children:[e.jsx("td",{className:"py-3 px-3.5 text-center",children:e.jsx("input",{type:"checkbox",checked:Y,onChange:()=>_(D.id),className:"rounded border-slate-300 text-[#EC167F] focus:ring-[#EC167F] cursor-pointer"})}),e.jsxs("td",{className:"py-3 px-3",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block",children:D.code}),e.jsx("span",{className:"text-[10px] text-slate-400 font-normal",children:D.createdAt})]}),e.jsx("td",{className:"py-3 px-3",children:e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block leading-tight",children:D.clientName}),e.jsxs("span",{className:"text-[10px] text-emerald-600 font-semibold block flex items-center gap-0.5 mt-0.5",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 inline-block"}),D.clientPhone]})]})}),e.jsx("td",{className:"py-3 px-3",children:e.jsxs("div",{className:"flex items-start gap-1.5",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-400 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1 text-slate-800 font-bold",children:[e.jsx("span",{children:D.eventDate}),e.jsxs("span",{className:"text-slate-400 font-normal",children:["• ",D.eventTime]})]}),e.jsxs("span",{className:"text-[10px] text-slate-400 flex items-center gap-0.5",children:[e.jsx(Ut,{className:"w-2.5 h-2.5 text-slate-400"}),D.location]})]})]})}),e.jsx("td",{className:"py-3 px-3",children:e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block",children:D.serviceTitle}),e.jsxs("div",{className:"flex items-center gap-1 mt-0.5 flex-wrap",children:[e.jsx("span",{className:"text-[10px] text-slate-500",children:D.serviceDetail}),D.addOnCount&&e.jsxs("span",{className:"text-[9px] font-bold text-pink-600 bg-pink-50 px-1 py-0.2 rounded-md",children:["+",D.addOnCount," Add-On"]})]})]})}),e.jsx("td",{className:"py-3 px-3",children:e.jsx("span",{className:"font-semibold text-slate-700 block",children:D.teamAvatars.map(se=>se.name).join(", ")})}),e.jsx("td",{className:"py-3 px-3 font-black text-slate-900 whitespace-nowrap",children:D.totalPrice}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:e.jsx("span",{className:`px-2.5 py-1 rounded-lg text-[10px] font-extrabold inline-block ${D.status==="DP Masuk"?"bg-blue-100/80 text-blue-700":D.status==="Lunas"?"bg-emerald-100/80 text-emerald-800":D.status==="Draft"?"bg-slate-100 text-slate-700":D.status==="Inquiry"?"bg-purple-100/80 text-purple-700":D.status==="Selesai"?"bg-indigo-100/80 text-indigo-700":"bg-rose-100/80 text-rose-700"}`,children:D.status})}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-bold ${D.paymentStatus.includes("Lunas")?"bg-emerald-50 text-emerald-700":D.paymentStatus.includes("DP")?"bg-blue-50 text-blue-700":D.paymentStatus==="Belum Bayar"?"bg-amber-50 text-amber-700":"bg-slate-50 text-slate-500"}`,children:D.paymentStatus})}),e.jsx("td",{className:"py-3 px-3 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx("button",{onClick:()=>m(`Melihat detail reservasi ${D.code}`),className:"p-1.5 rounded-lg hover:bg-slate-100 text-slate-500 hover:text-slate-800 transition-colors cursor-pointer",title:"Lihat Detail",children:e.jsx(Dt,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>m(`Opsi tambahan untuk ${D.code}`),className:"p-1.5 rounded-lg hover:bg-slate-100 text-slate-500 hover:text-slate-800 transition-colors cursor-pointer",title:"Opsi Lainnya",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})})]})})]},D.id)})})]})}),e.jsxs("div",{className:"px-4 py-3 bg-slate-50/60 border-t border-slate-200/80 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsx("span",{className:"font-semibold text-slate-600",children:"Menampilkan 1 - 10 dari 128 data"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1 font-bold",children:[e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"<"}),e.jsx("button",{className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white flex items-center justify-center font-black cursor-pointer shadow-2xs",children:"1"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"2"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"3"}),e.jsx("span",{className:"px-1 text-slate-400",children:"..."}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"13"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:">"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none pl-2.5 pr-6 py-1 bg-white border border-slate-200 rounded-lg text-xs font-bold text-slate-700 cursor-pointer focus:outline-none",children:[e.jsx("option",{children:"10 / halaman"}),e.jsx("option",{children:"25 / halaman"}),e.jsx("option",{children:"50 / halaman"})]}),e.jsx(ye,{className:"w-3 h-3 text-slate-400 absolute right-2 top-2 pointer-events-none"})]})]})]})]})]})},U1=({onNavigateToCreate:h,triggerToast:j})=>{const[m,o]=d.useState("Minggu"),[S,M]=d.useState("21 - 27 Mei 2025"),[C,u]=d.useState("Semua Layanan"),[b,f]=d.useState("Semua Tim"),[A,y]=d.useState(null),[R]=d.useState([{id:"evt-1",clientName:"Maya Salsabila",clientPhone:"0812 8888 9999",clientEmail:"maya.salsa@email.com",serviceName:"Wedding Makeup",packageTitle:"Paket Premium",dayIndex:0,dayName:"Sen 21 Mei",dateStr:"21 Mei 2025",timeRange:"09.00 - 11.00",startHour:9,durationHours:2,team:["Siti R."],location:"The Westin Jakarta",totalPrice:"Rp3.500.000",paymentStatus:"DP Masuk (Rp1.500.000)",status:"DP Masuk",notes:"Tidak ada alergi. Ingin look natural dan glowing."},{id:"evt-2",clientName:"Clara Dewi",clientPhone:"0813 4444 5555",clientEmail:"clara.dewi@email.com",serviceName:"Hairdo",packageTitle:"Hairdo Style",dayIndex:0,dayName:"Sen 21 Mei",dateStr:"21 Mei 2025",timeRange:"16.00 - 17.30",startHour:16,durationHours:1.5,team:["Rina T."],location:"Studio MuaKita",totalPrice:"Rp750.000",paymentStatus:"Pending Payment",status:"Pending Payment",notes:"Hairdo sanggul modern."},{id:"evt-3",clientName:"Nadia Putri",clientPhone:"0812 1212 1212",clientEmail:"nadia.putri@email.com",serviceName:"Party Makeup",packageTitle:"Paket Basic",dayIndex:0,dayName:"Sen 21 Mei",dateStr:"21 Mei 2025",timeRange:"19.00 - 20.30",startHour:19,durationHours:1.5,team:["Siti R."],location:"Hotel Mulia",totalPrice:"Rp1.200.000",paymentStatus:"Lunas",status:"Lunas",notes:"Look pesta malam."},{id:"evt-4",clientName:"Fahira Nur",clientPhone:"0812 7777 6666",clientEmail:"fahira.nur@email.com",serviceName:"Makeup Graduation",packageTitle:"Graduation Special",dayIndex:1,dayName:"Sel 22 Mei",dateStr:"22 Mei 2025",timeRange:"10.00 - 12.00",startHour:10,durationHours:2,team:["Siti R."],location:"Balai Kartini",totalPrice:"Rp1.500.000",paymentStatus:"Lunas",status:"Lunas",notes:"Wisuda UI."},{id:"evt-5",clientName:"Reza Amelia",clientPhone:"0812 3456 7890",clientEmail:"reza.amelia@email.com",serviceName:"Wedding Makeup",packageTitle:"Paket Gold",dayIndex:1,dayName:"Sel 22 Mei",dateStr:"22 Mei 2025",timeRange:"15.00 - 16.30",startHour:15,durationHours:1.5,team:["Siti R."],location:"Fairmont Hotel",totalPrice:"Rp3.000.000",paymentStatus:"DP Masuk (Rp1.000.000)",status:"DP Masuk",notes:"Wedding resepsi malam."},{id:"evt-6",clientName:"Anisa Rahma",clientPhone:"0813 2222 3333",clientEmail:"anisa.rahma@email.com",serviceName:"Engagement Makeup",packageTitle:"Engagement Suite",dayIndex:1,dayName:"Sel 22 Mei",dateStr:"22 Mei 2025",timeRange:"18.00 - 19.30",startHour:18,durationHours:1.5,team:["Dian P."],location:"Gedung Graha Satria",totalPrice:"Rp2.000.000",paymentStatus:"Inquiry",status:"Inquiry",notes:"Acara lamaran keluarga."},{id:"evt-7",clientName:"Maya Salsabila",clientPhone:"0812 8888 9999",clientEmail:"maya.salsa@email.com",serviceName:"Hairdo",packageTitle:"Hairdo Glam",dayIndex:2,dayName:"Rab 23 Mei",dateStr:"23 Mei 2025",timeRange:"09.00 - 11.00",startHour:9,durationHours:2,team:["Dian P."],location:"Studio MuaKita",totalPrice:"Rp850.000",paymentStatus:"Lunas",status:"Lunas",notes:"Hairdo foto prewed."},{id:"evt-8",clientName:"Clara Dewi",clientPhone:"0813 4444 5555",clientEmail:"clara.dewi@email.com",serviceName:"Wedding Makeup",packageTitle:"Trial & Wedding",dayIndex:2,dayName:"Rab 23 Mei",dateStr:"23 Mei 2025",timeRange:"13.00 - 14.30",startHour:13,durationHours:1.5,team:["Dian P."],location:"Ritz Carlton",totalPrice:"Rp2.800.000",paymentStatus:"Pending Payment",status:"Pending Payment",notes:"Makeup akad nikah."},{id:"evt-9",clientName:"Fahira Nur",clientPhone:"0812 7777 6666",clientEmail:"fahira.nur@email.com",serviceName:"Makeup & Hairdo",packageTitle:"Special Combo",dayIndex:2,dayName:"Rab 23 Mei",dateStr:"23 Mei 2025",timeRange:"16.30 - 18.00",startHour:16.5,durationHours:1.5,team:["Siti R."],location:"Hotel Indonesia Kempinski",totalPrice:"Rp2.200.000",paymentStatus:"Lunas",status:"Lunas",notes:"Makeup panitia pernikahan."},{id:"evt-10",clientName:"Nadia Putri",clientPhone:"0812 1212 1212",clientEmail:"nadia.putri@email.com",serviceName:"Makeup Event",packageTitle:"Event Beauty",dayIndex:2,dayName:"Rab 23 Mei",dateStr:"23 Mei 2025",timeRange:"20.00 - 21.30",startHour:20,durationHours:1.5,team:["Rina T."],location:"PIK Avenue",totalPrice:"Rp1.800.000",paymentStatus:"DP Masuk",status:"DP Masuk",notes:"Gala dinner."},{id:"evt-11",clientName:"Anisa Rahma",clientPhone:"0813 2222 3333",clientEmail:"anisa.rahma@email.com",serviceName:"Paket Premium",packageTitle:"All-In Bridal",dayIndex:3,dayName:"Kam 24 Mei",dateStr:"24 Mei 2025",timeRange:"08.30 - 10.30",startHour:8.5,durationHours:2,team:["Siti R.","Dian P.","Rina T."],teamAvatars:["Siti R.","Dian P.","Rina T."],location:"Grand Ballroom Hyatt",totalPrice:"Rp4.500.000",paymentStatus:"Inquiry",status:"Inquiry",notes:"Termasuk 2 keluarga pengantin."},{id:"evt-12",clientName:"Maya Salsabila",clientPhone:"0812 8888 9999",clientEmail:"maya.salsa@email.com",serviceName:"Photoshoot Makeup",packageTitle:"Studio Photoshoot",dayIndex:3,dayName:"Kam 24 Mei",dateStr:"24 Mei 2025",timeRange:"12.00 - 13.30",startHour:12,durationHours:1.5,team:["Dian P."],location:"Studio Photoshoot Selatan",totalPrice:"Rp1.750.000",paymentStatus:"Pending Payment",status:"Pending Payment",notes:"Look catalog brand hijab."},{id:"evt-13",clientName:"Clara Dewi",clientPhone:"0813 4444 5555",clientEmail:"clara.dewi@email.com",serviceName:"Trial Makeup",packageTitle:"Bridal Trial",dayIndex:3,dayName:"Kam 24 Mei",dateStr:"24 Mei 2025",timeRange:"15.00 - 16.30",startHour:15,durationHours:1.5,team:["Rina T."],location:"Studio MuaKita",totalPrice:"Rp1.000.000",paymentStatus:"Lunas",status:"Lunas",notes:"Tes warna foundation & hijab styling."},{id:"evt-14",clientName:"Reza Amelia",clientPhone:"0812 3456 7890",clientEmail:"reza.amelia@email.com",serviceName:"Wedding Makeup",packageTitle:"Paket Gold",dayIndex:3,dayName:"Kam 24 Mei",dateStr:"24 Mei 2025",timeRange:"18.00 - 19.30",startHour:18,durationHours:1.5,team:["Dian P."],location:"Sultan Hotel",totalPrice:"Rp3.200.000",paymentStatus:"DP Masuk",status:"DP Masuk",notes:"Resepsi adat Sunda."},{id:"evt-15",clientName:"Fahira Nur",clientPhone:"0812 7777 6666",clientEmail:"fahira.nur@email.com",serviceName:"Hairdo",packageTitle:"Party Hairdo",dayIndex:4,dayName:"Jum 25 Mei",dateStr:"25 Mei 2025",timeRange:"09.30 - 11.30",startHour:9.5,durationHours:2,team:["Siti R."],location:"Studio MuaKita",totalPrice:"Rp900.000",paymentStatus:"DP Masuk",status:"DP Masuk",notes:"Sanggul modern dengan pita."},{id:"evt-16",clientName:"Nadia Putri",clientPhone:"0812 1212 1212",clientEmail:"nadia.putri@email.com",serviceName:"Makeup Graduation",packageTitle:"Graduation Glam",dayIndex:4,dayName:"Jum 25 Mei",dateStr:"25 Mei 2025",timeRange:"14.00 - 15.30",startHour:14,durationHours:1.5,team:["Dian P."],location:"Gedung Wisuda ITB",totalPrice:"Rp1.400.000",paymentStatus:"Inquiry",status:"Inquiry",notes:"Soft glam graduation."},{id:"evt-17",clientName:"Anisa Rahma",clientPhone:"0813 2222 3333",clientEmail:"anisa.rahma@email.com",serviceName:"Wedding Makeup",packageTitle:"Paket Bronze",dayIndex:4,dayName:"Jum 25 Mei",dateStr:"25 Mei 2025",timeRange:"17.00 - 18.30",startHour:17,durationHours:1.5,team:["Siti R."],location:"Gedung Dhanapala",totalPrice:"Rp2.500.000",paymentStatus:"Lunas",status:"Lunas",notes:"Akad Nikah Intimate."},{id:"evt-18",clientName:"Maya Salsabila",clientPhone:"0812 8888 9999",clientEmail:"maya.salsa@email.com",serviceName:"Wedding Gold",packageTitle:"Paket Premium",dayIndex:5,dayName:"Sab 26 Mei",dateStr:"26 Mei 2025",timeRange:"08.00 - 10.00",startHour:8,durationHours:2,team:["Siti R.","Dian P.","Rina T."],teamAvatars:["Siti R.","Dian P.","Rina T."],location:"The Westin Jakarta",totalPrice:"Rp3.500.000",paymentStatus:"DP Masuk (Rp1.500.000)",status:"Pending Payment",notes:"Tidak ada alergi. Ingin look natural dan glowing."},{id:"evt-19",clientName:"Clara Dewi",clientPhone:"0813 4444 5555",clientEmail:"clara.dewi@email.com",serviceName:"Hairdo",packageTitle:"Hair Styling",dayIndex:5,dayName:"Sab 26 Mei",dateStr:"26 Mei 2025",timeRange:"11.00 - 12.30",startHour:11,durationHours:1.5,team:["Rina T."],location:"Studio MuaKita",totalPrice:"Rp700.000",paymentStatus:"Lunas",status:"Lunas",notes:"Curly hairdo."},{id:"evt-20",clientName:"Reza Amelia",clientPhone:"0812 3456 7890",clientEmail:"reza.amelia@email.com",serviceName:"Engagement Makeup",packageTitle:"Engagement Package",dayIndex:5,dayName:"Sab 26 Mei",dateStr:"26 Mei 2025",timeRange:"16.00 - 17.30",startHour:16,durationHours:1.5,team:["Dian P."],location:"Resto Bunga Rampai",totalPrice:"Rp2.100.000",paymentStatus:"DP Masuk",status:"DP Masuk",notes:"Look manis warna peach."},{id:"evt-21",clientName:"Nadia Putri",clientPhone:"0812 1212 1212",clientEmail:"nadia.putri@email.com",serviceName:"Makeup & Hairdo",packageTitle:"Combo Package",dayIndex:5,dayName:"Sab 26 Mei",dateStr:"26 Mei 2025",timeRange:"19.00 - 20.30",startHour:19,durationHours:1.5,team:["Siti R."],location:"Hotel Shangri-La",totalPrice:"Rp2.400.000",paymentStatus:"Lunas",status:"Lunas",notes:"Makeup pesta malam."},{id:"evt-22",clientName:"Fahira Nur",clientPhone:"0812 7777 6666",clientEmail:"fahira.nur@email.com",serviceName:"Party Makeup",packageTitle:"Party Beauty",dayIndex:6,dayName:"Min 27 Mei",dateStr:"27 Mei 2025",timeRange:"10.00 - 11.30",startHour:10,durationHours:1.5,team:["Rina T."],location:"Studio MuaKita",totalPrice:"Rp1.100.000",paymentStatus:"Inquiry",status:"Inquiry",notes:"Acara ulang tahun."},{id:"evt-23",clientName:"Maya Salsabila",clientPhone:"0812 8888 9999",clientEmail:"maya.salsa@email.com",serviceName:"Makeup Event",packageTitle:"Event Special",dayIndex:6,dayName:"Min 27 Mei",dateStr:"27 Mei 2025",timeRange:"14.00 - 15.30",startHour:14,durationHours:1.5,team:["Siti R."],location:"Senayan City",totalPrice:"Rp1.600.000",paymentStatus:"Pending Payment",status:"Pending Payment",notes:"Fashion show makeup."},{id:"evt-24",clientName:"Clara Dewi",clientPhone:"0813 4444 5555",clientEmail:"clara.dewi@email.com",serviceName:"Wedding Makeup",packageTitle:"Paket Silver",dayIndex:6,dayName:"Min 27 Mei",dateStr:"27 Mei 2025",timeRange:"17.00 - 18.30",startHour:17,durationHours:1.5,team:["Dian P."],location:"Gedung Antam",totalPrice:"Rp2.700.000",paymentStatus:"Lunas",status:"Lunas",notes:"Akad & Resepsi."}]);ld.useEffect(()=>{if(!A&&R.length>0){const $=R.find(T=>T.id==="evt-18")||R[0];y($)}},[R]);const W=[{key:0,dayName:"Sen",dateNum:"21",fullName:"Sen 21 Mei",isToday:!1},{key:1,dayName:"Sel",dateNum:"22",fullName:"Sel 22 Mei",isToday:!1},{key:2,dayName:"Rab",dateNum:"23",fullName:"Rab 23 Mei",isToday:!0},{key:3,dayName:"Kam",dateNum:"24",fullName:"Kam 24 Mei",isToday:!1},{key:4,dayName:"Jum",dateNum:"25",fullName:"Jum 25 Mei",isToday:!1},{key:5,dayName:"Sab",dateNum:"26",fullName:"Sab 26 Mei",isToday:!1,isPinkText:!0},{key:6,dayName:"Min",dateNum:"27",fullName:"Min 27 Mei",isToday:!1}],G=["08.00","09.00","10.00","11.00","12.00","13.00","14.00","15.00","16.00","17.00","18.00","19.00","20.00"],ae=$=>$.status==="DP Masuk"?"bg-rose-100/70 border-rose-200 text-rose-950 hover:bg-rose-100":$.status==="Lunas"?"bg-emerald-100/70 border-emerald-200 text-emerald-950 hover:bg-emerald-100":$.status==="Pending Payment"?"bg-amber-100/80 border-amber-200 text-amber-950 hover:bg-amber-100":$.status==="Inquiry"?"bg-purple-100/70 border-purple-200 text-purple-950 hover:bg-purple-100":"bg-sky-100/70 border-sky-200 text-sky-950 hover:bg-sky-100",xe=$=>$.status==="DP Masuk"?"bg-rose-500":$.status==="Lunas"?"bg-emerald-500":$.status==="Pending Payment"?"bg-amber-500":$.status==="Inquiry"?"bg-purple-500":"bg-sky-500";return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300 text-slate-800",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Kalender Reservasi"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Lihat dan kelola jadwal reservasi dalam tampilan kalender"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[h&&e.jsxs("button",{onClick:h,className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Buat Reservasi"})]}),e.jsxs("button",{onClick:()=>j("Jadwal kalender berhasil disinkronkan!"),className:"px-3.5 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 rounded-xl text-xs font-bold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Ls,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Sinkronkan Kalender"})]})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col md:flex-row md:items-center justify-between gap-3 text-xs",children:[e.jsx("div",{className:"flex items-center gap-1 bg-slate-100 p-1 rounded-xl font-bold",children:["Hari","Minggu","Bulan"].map($=>e.jsx("button",{onClick:()=>{o($),j(`Tampilan kalender diubah ke: ${$}`)},className:`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${m===$?"bg-white text-[#EC167F] shadow-2xs font-extrabold":"text-slate-600 hover:text-slate-900"}`,children:$},$))}),e.jsxs("div",{className:"flex items-center justify-center gap-2 font-bold text-slate-800",children:[e.jsx("button",{onClick:()=>j("Navigasi ke minggu sebelumnya"),className:"w-7 h-7 rounded-lg border border-slate-200 hover:bg-slate-100 flex items-center justify-center text-slate-600 cursor-pointer",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-slate-50 rounded-xl border border-slate-200/80 font-extrabold text-slate-900",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:S})]}),e.jsx("button",{onClick:()=>j("Navigasi ke minggu berikutnya"),className:"w-7 h-7 rounded-lg border border-slate-200 hover:bg-slate-100 flex items-center justify-center text-slate-600 cursor-pointer",children:e.jsx(it,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("select",{value:C,onChange:$=>u($.target.value),className:"px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 cursor-pointer focus:outline-none",children:[e.jsx("option",{children:"Semua Layanan"}),e.jsx("option",{children:"Wedding Makeup"}),e.jsx("option",{children:"Hairdo"}),e.jsx("option",{children:"Party Makeup"}),e.jsx("option",{children:"Graduation Makeup"})]}),e.jsxs("select",{value:b,onChange:$=>f($.target.value),className:"px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 cursor-pointer focus:outline-none",children:[e.jsx("option",{children:"Semua Tim"}),e.jsx("option",{children:"Siti R."}),e.jsx("option",{children:"Dian P."}),e.jsx("option",{children:"Rina T."})]}),e.jsx("button",{onClick:()=>j("Membuka dialog filter kalender"),className:"p-2 bg-slate-50 hover:bg-slate-100 text-slate-600 border border-slate-200 rounded-xl cursor-pointer",title:"Filter Tambahan",children:e.jsx(Ta,{className:"w-3.5 h-3.5"})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4",children:[e.jsxs("div",{className:`${A?"lg:col-span-8 xl:col-span-9":"lg:col-span-12"} bg-white rounded-3xl border border-slate-200/80 shadow-2xs overflow-hidden flex flex-col transition-all duration-300`,children:[e.jsxs("div",{className:"grid grid-cols-8 border-b border-slate-200/80 bg-slate-50/70 text-center text-xs font-extrabold text-slate-700 sticky top-0 z-10",children:[e.jsx("div",{className:"py-3.5 px-2 border-r border-slate-200/80 text-[11px] font-bold text-slate-400 flex items-center justify-center",children:"WIB"}),W.map($=>e.jsxs("div",{className:`py-3 px-1 border-r border-slate-200/80 last:border-r-0 flex flex-col items-center justify-center gap-1 ${$.isToday?"bg-pink-50/50":""}`,children:[e.jsxs("span",{className:`text-xs ${$.isPinkText?"text-[#EC167F]":"text-slate-600"}`,children:[$.dayName," ",$.dateNum," Mei"]}),$.isToday&&e.jsx("span",{className:"w-6 h-6 rounded-full bg-[#EC167F] text-white flex items-center justify-center text-xs font-black shadow-xs",children:$.dateNum})]},$.key))]}),e.jsxs("div",{className:"relative overflow-y-auto max-h-[700px] custom-scrollbar bg-white",children:[e.jsxs("div",{className:"absolute left-0 right-0 z-20 pointer-events-none flex items-center",style:{top:"345px"},children:[e.jsx("div",{className:"w-[12.5%] px-1 text-center",children:e.jsx("span",{className:"bg-[#EC167F] text-white font-black text-[10px] px-1.5 py-0.5 rounded-full shadow-xs inline-block",children:"14.30"})}),e.jsx("div",{className:"flex-1 h-[2px] bg-[#EC167F] relative",children:e.jsx("div",{className:"absolute left-[36%] -top-1 w-2.5 h-2.5 rounded-full bg-[#EC167F] border-2 border-white shadow-xs"})})]}),e.jsx("div",{className:"divide-y divide-slate-100 text-xs",children:G.map(($,T)=>e.jsxs("div",{className:"grid grid-cols-8 min-h-[58px] relative group",children:[e.jsx("div",{className:"p-2 border-r border-slate-100 text-[11px] font-bold text-slate-400 bg-slate-50/30 flex items-start justify-center",children:$}),[0,1,2,3,4,5,6].map(_=>{const D=parseInt($.split(".")[0],10),Y=R.filter(se=>se.dayIndex!==_?!1:Math.floor(se.startHour)===D);return e.jsx("div",{className:"border-r border-slate-100 last:border-r-0 p-1 relative hover:bg-slate-50/50 transition-colors",children:Y.map(se=>{const te=(A==null?void 0:A.id)===se.id;return e.jsxs("div",{onClick:()=>y(se),className:`p-2 rounded-xl text-[11px] shadow-2xs border cursor-pointer transition-all duration-200 space-y-1 mb-1 ${ae(se)} ${te?"ring-2 ring-[#EC167F] ring-offset-1 scale-[1.02] z-10":""}`,children:[e.jsxs("div",{className:"flex items-center gap-1 font-extrabold text-[10px] opacity-90",children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${xe(se)}`}),e.jsx("span",{children:se.timeRange})]}),e.jsx("div",{className:"font-extrabold text-xs text-slate-900 leading-tight",children:se.clientName}),e.jsx("div",{className:"text-[10px] font-semibold text-slate-600 truncate",children:se.serviceName}),e.jsxs("div",{className:"flex items-center justify-between pt-0.5 text-[10px]",children:[e.jsx("span",{className:"text-slate-500 font-medium truncate",children:se.team[0]}),se.teamAvatars&&se.teamAvatars.length>1&&e.jsxs("div",{className:"flex items-center -space-x-1.5",children:[se.teamAvatars.slice(0,3).map((P,le)=>e.jsx("div",{className:"w-4 h-4 rounded-full bg-slate-800 text-white text-[8px] font-bold flex items-center justify-center border border-white",children:P.charAt(0)},le)),se.teamAvatars.length>3&&e.jsxs("span",{className:"text-[8px] font-bold text-slate-500 pl-1",children:["+",se.teamAvatars.length-3]})]})]})]},se.id)})},_)})]},$))})]}),e.jsxs("div",{className:"bg-slate-50/90 border-t border-slate-200/80 p-3 flex flex-wrap items-center justify-between gap-3 text-[11px] font-bold text-slate-600",children:[e.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-sky-500"}),e.jsx("span",{children:"DP Masuk"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500"}),e.jsx("span",{children:"Lunas"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-amber-500"}),e.jsx("span",{children:"Pending Payment"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-purple-500"}),e.jsx("span",{children:"Inquiry"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-orange-500"}),e.jsx("span",{children:"Dibatalkan"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-slate-400"}),e.jsx("span",{children:"Draft"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#EC167F]"}),e.jsx("span",{children:"Hari Ini"})]})]}),e.jsx("span",{className:"text-slate-400 text-[10px] font-normal",children:"*Klik kartu reservasi untuk melihat detail lengkap"})]})]}),A?e.jsxs("div",{className:"lg:col-span-4 xl:col-span-3 bg-white p-5 rounded-3xl border border-slate-200/80 shadow-2xs space-y-4 animate-in slide-in-from-right duration-300",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-3",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Detail Reservasi"}),e.jsx("button",{onClick:()=>y(null),className:"p-1 rounded-xl text-slate-400 hover:text-slate-700 hover:bg-slate-100 cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsx("div",{children:e.jsx("span",{className:"px-3 py-1 bg-sky-100/90 text-sky-800 text-[11px] font-extrabold rounded-full inline-block",children:A.status})}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("h3",{className:"text-base font-black text-slate-900 tracking-tight",children:A.clientName}),e.jsx("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-600",children:e.jsxs("a",{href:`https://wa.me/${A.clientPhone.replace(/\s+/g,"")}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-emerald-600 hover:underline",children:[e.jsx(va,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:A.clientPhone}),e.jsx(In,{className:"w-3.5 h-3.5 text-emerald-500 fill-emerald-500 ml-0.5"})]})}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-500",children:[e.jsx(Ql,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:A.clientEmail})]})]}),e.jsxs("div",{className:"space-y-3 pt-2 text-xs border-t border-slate-100",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Layanan"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:A.serviceName})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Tanggal & Waktu"}),e.jsx("span",{className:"font-extrabold text-slate-900 block",children:A.dateStr}),e.jsxs("span",{className:"text-slate-500 font-semibold",children:[A.timeRange," WIB"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Tim"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:A.team.join(", ")})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Lokasi"}),e.jsxs("div",{className:"flex items-center gap-1 font-extrabold text-slate-900",children:[e.jsx(Ut,{className:"w-3.5 h-3.5 text-[#EC167F] shrink-0"}),e.jsx("span",{children:A.location})]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Paket"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:A.packageTitle})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Total Pembayaran"}),e.jsx("span",{className:"text-sm font-black text-slate-900",children:A.totalPrice})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Status Pembayaran"}),e.jsx("span",{className:"font-extrabold text-sky-700 bg-sky-50 px-2 py-0.5 rounded-md inline-block",children:A.paymentStatus})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-400 block mb-0.5",children:"Catatan"}),e.jsxs("p",{className:"text-slate-600 bg-slate-50 p-2.5 rounded-xl border border-slate-100 text-[11px] leading-relaxed italic",children:['"',A.notes,'"']})]})]}),e.jsxs("div",{className:"space-y-2 pt-3 border-t border-slate-100",children:[e.jsxs("button",{onClick:()=>j(`Melihat detail lengkap reservasi ${A.clientName}`),className:"w-full py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all cursor-pointer flex items-center justify-center gap-1.5",children:[e.jsx(Dt,{className:"w-4 h-4"}),e.jsx("span",{children:"Lihat Detail"})]}),e.jsxs("button",{onClick:()=>j(`Mengedit reservasi ${A.clientName}`),className:"w-full py-2.5 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 font-extrabold text-xs rounded-xl transition-all cursor-pointer flex items-center justify-center gap-1.5",children:[e.jsx(Sa,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Edit Reservasi"})]})]})]}):e.jsxs("div",{className:"lg:col-span-4 xl:col-span-3 bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs flex flex-col items-center justify-center text-center space-y-3 min-h-[400px]",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Ke,{className:"w-6 h-6"})}),e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm",children:"Pilih Jadwal Reservasi"}),e.jsx("p",{className:"text-slate-400 text-xs max-w-xs",children:"Klik pada salah satu kartu acara di kalender untuk melihat detail reservasi, rincian pembayaran, dan informasi klien."})]})]})]})},O1=[{id:"1",title:"Wedding Gold Package",categoryKey:"Paket Wedding",topBadge:"Paket",topBadgeBg:"bg-amber-100/90 text-amber-800",isBestSeller:!0,tags:[{label:"Wedding",bg:"bg-[#F3E8FF] text-[#7E22CE]"},{label:"Paket",bg:"bg-[#FCE7F3] text-[#BE185D]"}],description:"Paket lengkap akad & resepsi dengan fasilitas premium.",priceText:"Rp7.800.000",numericPrice:78e5,duration:"10 Jam",capacity:"6 Orang",itemsCount:"11 Item",bookingCount:128,rating:4.9,reviewCount:86,revenueText:"Rp126.000.000",status:"Aktif",isBookmarked:!1,image:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=400"},{id:"2",title:"Akad / Pemberkatan",categoryKey:"Paket Wedding",topBadge:"Paket",topBadgeBg:"bg-amber-100/90 text-amber-800",tags:[{label:"Wedding",bg:"bg-[#F3E8FF] text-[#7E22CE]"},{label:"Paket",bg:"bg-[#FCE7F3] text-[#BE185D]"}],description:"Paket makeup dan busana untuk akad / pemberkatan.",priceText:"Rp3.800.000",numericPrice:38e5,duration:"5 Jam",capacity:"2-4 Orang",itemsCount:"6 Item",bookingCount:45,rating:4.8,reviewCount:32,revenueText:"Rp54.150.000",status:"Aktif",isBookmarked:!1,image:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=400"},{id:"3",title:"Resepsi / Unduh Mantu",categoryKey:"Paket Wedding",topBadge:"Paket",topBadgeBg:"bg-amber-100/90 text-amber-800",tags:[{label:"Wedding",bg:"bg-[#F3E8FF] text-[#7E22CE]"},{label:"Paket",bg:"bg-[#FCE7F3] text-[#BE185D]"}],description:"Paket resepsi / unduh mantu lengkap untuk keluarga.",priceText:"Rp6.000.000",numericPrice:6e6,duration:"8 Jam",capacity:"6-8 Orang",itemsCount:"10 Item",bookingCount:38,rating:4.7,reviewCount:21,revenueText:"Rp45.600.000",status:"Aktif",isBookmarked:!1,image:"https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=400"},{id:"4",title:"Makeup Wisuda",categoryKey:"Makeup Only",topBadge:"Layanan",topBadgeBg:"bg-emerald-100/90 text-emerald-800",tags:[{label:"Makeup Only",bg:"bg-[#F3E8FF] text-[#7E22CE]"},{label:"Graduation",bg:"bg-[#F3E8FF] text-[#7E22CE]"}],description:"Makeup wisuda natural & flawless.",priceText:"Rp350.000",numericPrice:35e4,duration:"90 Menit",capacity:"1 Orang",bookingCount:89,rating:4.9,reviewCount:64,revenueText:"Rp31.150.000",status:"Aktif",isBookmarked:!1,image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=400"},{id:"5",title:"Softlens",categoryKey:"Add-On",topBadge:"Add-On",topBadgeBg:"bg-orange-100/90 text-orange-800",tags:[{label:"Add-On",bg:"bg-[#FFEDD5] text-[#C2410C]"},{label:"Aksesoris",bg:"bg-[#FCE7F3] text-[#BE185D]"}],description:"Softlens premium untuk hasil yang lebih sempurna.",priceText:"Rp75.000",numericPrice:75e3,usedInBookingsText:"286 Booking",status:"Aktif",isBookmarked:!1,image:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=400"},{id:"6",title:"Modern Hairdo",categoryKey:"Hairdo",topBadge:"Hairdo",topBadgeBg:"bg-emerald-100/90 text-emerald-800",tags:[{label:"Hairdo",bg:"bg-[#DCFCE7] text-[#15803D]"},{label:"Styling",bg:"bg-[#F3E8FF] text-[#7E22CE]"}],description:"Hairdo modern untuk berbagai acara spesial.",priceText:"Rp500.000",numericPrice:5e5,duration:"45 Menit",capacity:"1 Orang",bookingCount:72,rating:4.8,reviewCount:41,revenueText:"Rp36.000.000",status:"Aktif",isBookmarked:!1,image:"https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&q=80&w=400"}],H1=({initialSubView:h="katalog",triggerToast:j})=>{const[m,o]=d.useState(h);d.useEffect(()=>{o(h)},[h]);const[S,M]=d.useState(O1),[C,u]=d.useState("Semua"),[b,f]=d.useState(""),[A,y]=d.useState("Semua Kategori"),[R,W]=d.useState("Semua Tipe"),[G,ae]=d.useState("Semua Status"),[xe,$]=d.useState("grid"),[T,_]=d.useState(""),[D,Y]=d.useState(""),[se,te]=d.useState(""),[P,le]=d.useState("Paket Wedding"),[pe,be]=d.useState("Paket"),[J,fe]=d.useState(""),[B,oe]=d.useState("10 Jam"),[k,U]=d.useState("Aktif"),[ie,me]=d.useState(""),[Ne,c]=d.useState(""),[F,v]=d.useState(["Makeup Pengantin","Busana Akad","Busana Resepsi","Softlens"]),[Z,re]=d.useState(""),[ue,ne]=d.useState(!1),[Ce,we]=d.useState(""),[ce,He]=d.useState("1"),[Ye,De]=d.useState(""),[ht,_e]=d.useState(null),rt=O=>{const Q=S.find(ve=>ve.id===O);if(Q){const ve=!Q.isBookmarked;j(ve?`Disimpan ke bookmark: ${Q.title}`:"Dihapus dari bookmark")}M(ve=>ve.map(We=>We.id===O?{...We,isBookmarked:!We.isBookmarked}:We))},pt=O=>{const Q=S.find(ve=>ve.id===O);if(Q){const ve=Q.status==="Aktif"?"Nonaktif":"Aktif";j(`Status ${Q.title} diubah menjadi ${ve}`)}M(ve=>ve.map(We=>We.id===O?{...We,status:We.status==="Aktif"?"Nonaktif":"Aktif"}:We))},N=()=>{Z.trim()&&(v([...F,Z.trim()]),re(""),ne(!1),j("Item fasilitas berhasil ditambahkan!"))},ge=O=>{v(F.filter((Q,ve)=>ve!==O))},Ae=O=>{if(O.preventDefault(),!se.trim()){j("Mohon isi nama layanan terlebih dahulu!");return}const Q=parseInt(J)||0,ve={id:Date.now().toString(),title:se,categoryKey:P,topBadge:pe||"Layanan",topBadgeBg:"bg-amber-100/90 text-amber-800",tags:[{label:P,bg:"bg-[#F3E8FF] text-[#7E22CE]"},{label:pe,bg:"bg-[#FCE7F3] text-[#BE185D]"}],description:ie||"Layanan tata rias dan paket pernikahan berkualitas tinggi.",priceText:`Rp${Q.toLocaleString("id-ID")}`,numericPrice:Q,duration:B||"2 Jam",capacity:`${ce||"1"} Orang`,itemsCount:`${F.length} Item`,bookingCount:0,rating:5,reviewCount:0,revenueText:"Rp0",status:k,isBookmarked:!1,image:ht||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=400"};M([ve,...S]),o("katalog"),j(`Layanan ${se} berhasil disimpan!`)},ze=S.filter(O=>!(C!=="Semua"&&(C==="Tidak Aktif"&&O.status!=="Nonaktif"||C!=="Tidak Aktif"&&O.categoryKey!==C)||!(O.title.toLowerCase().includes(b.toLowerCase())||O.description.toLowerCase().includes(b.toLowerCase())||O.categoryKey.toLowerCase().includes(b.toLowerCase()))||A!=="Semua Kategori"&&O.categoryKey!==A||R!=="Semua Tipe"&&O.topBadge!==R||G!=="Semua Status"&&O.status!==G||T&&O.numericPrice<parseInt(T)||D&&O.numericPrice>parseInt(D)));return m==="tambah"?e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-300 text-slate-800 pb-12",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-500 font-medium",children:[e.jsx("span",{className:"hover:text-slate-800 cursor-pointer",children:"Layanan"}),e.jsx(it,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("button",{onClick:()=>o("katalog"),className:"hover:text-slate-800 cursor-pointer",children:"Katalog Layanan"}),e.jsx(it,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{className:"text-[#EC167F] font-bold",children:"Tambah Layanan"})]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Tambah Layanan"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Lengkapi informasi layanan yang akan ditampilkan untuk pelanggan Anda."})]})]}),e.jsxs("form",{onSubmit:Ae,children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-5",children:[e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(od,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Informasi Dasar"})]}),e.jsxs("div",{className:"space-y-3.5 text-xs",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nama Layanan *"}),e.jsx("input",{type:"text",placeholder:"Contoh: Wedding Gold Package",value:se,onChange:O=>te(O.target.value),required:!0,className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Kategori Layanan *"}),e.jsxs("select",{value:P,onChange:O=>le(O.target.value),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"Paket Wedding",children:"Paket Wedding"}),e.jsx("option",{value:"Makeup Only",children:"Makeup Only"}),e.jsx("option",{value:"Attire",children:"Attire / Busana"}),e.jsx("option",{value:"Hairdo",children:"Hairdo"}),e.jsx("option",{value:"Adat",children:"Adat"}),e.jsx("option",{value:"Add-On",children:"Add-On"}),e.jsx("option",{value:"Produk",children:"Produk"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Tipe Layanan *"}),e.jsxs("select",{value:pe,onChange:O=>be(O.target.value),className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"Paket",children:"Paket"}),e.jsx("option",{value:"Layanan",children:"Layanan"}),e.jsx("option",{value:"Add-On",children:"Add-On"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 items-start",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Harga *"}),e.jsxs("div",{className:"flex items-center rounded-xl overflow-hidden border border-slate-200 bg-slate-50 focus-within:border-[#EC167F] focus-within:bg-white",children:[e.jsx("span",{className:"px-3 text-slate-500 font-extrabold text-xs border-r border-slate-200",children:"Rp"}),e.jsx("input",{type:"number",placeholder:"Contoh: 7800000",value:J,onChange:O=>fe(O.target.value),required:!0,className:"w-full px-3 py-2 font-bold text-slate-800 bg-transparent focus:outline-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Durasi"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Contoh: 10 Jam",value:B,onChange:O=>oe(O.target.value),className:"w-full pl-8 pr-3 py-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"}),e.jsx(Vt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-3"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Status"}),e.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[e.jsx("button",{type:"button",onClick:()=>U(k==="Aktif"?"Nonaktif":"Aktif"),className:`w-10 h-5.5 rounded-full transition-colors relative flex items-center px-0.5 cursor-pointer ${k==="Aktif"?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("div",{className:`w-4 h-4 rounded-full bg-white shadow-2xs transition-transform ${k==="Aktif"?"translate-x-4.5":"translate-x-0"}`})}),e.jsx("span",{className:"font-extrabold text-slate-800 text-xs",children:k})]}),e.jsx("span",{className:"text-[10px] text-slate-400 block mt-1",children:"Layanan akan tampil untuk pelanggan"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("label",{className:"block text-slate-700 font-bold",children:"Deskripsi Singkat *"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-bold",children:[ie.length,"/160"]})]}),e.jsx("textarea",{rows:2,maxLength:160,placeholder:"Tulis deskripsi singkat layanan untuk ditampilkan di katalog...",value:ie,onChange:O=>me(O.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(ja,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Detail Layanan"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-xs",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("label",{className:"block text-slate-700 font-bold",children:"Deskripsi Lengkap *"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-bold",children:[Ne.length,"/1000"]})]}),e.jsx("textarea",{rows:6,maxLength:1e3,placeholder:"Jelaskan layanan ini secara detail. Termasuk apa saja yang didapatkan, proses, keunggulan, dll.",value:Ne,onChange:O=>c(O.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F] h-44 resize-none"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("label",{className:"block text-slate-700 font-bold",children:"Termasuk dalam Layanan *"}),e.jsxs("button",{type:"button",onClick:()=>ne(!0),className:"px-2.5 py-1 text-[11px] bg-pink-50 border border-pink-200 text-[#EC167F] font-extrabold rounded-lg hover:bg-pink-100 transition-colors cursor-pointer flex items-center gap-1",children:[e.jsx(ct,{className:"w-3 h-3"}),e.jsx("span",{children:"Tambah Item"})]})]}),ue&&e.jsxs("div",{className:"flex items-center gap-1.5 p-2 bg-pink-50/50 border border-pink-200 rounded-xl animate-in fade-in duration-200",children:[e.jsx("input",{type:"text",placeholder:"Nama fasilitas baru...",value:Z,onChange:O=>re(O.target.value),className:"w-full px-2 py-1 text-xs bg-white border border-slate-200 rounded-lg focus:outline-none focus:border-[#EC167F]"}),e.jsx("button",{type:"button",onClick:N,className:"px-3 py-1 bg-[#EC167F] text-white font-extrabold text-xs rounded-lg cursor-pointer",children:"OK"}),e.jsx("button",{type:"button",onClick:()=>ne(!1),className:"p-1 text-slate-400 hover:text-slate-600",children:e.jsx(tt,{className:"w-3.5 h-3.5"})})]}),e.jsxs("div",{className:"p-3 bg-slate-50/60 border border-slate-200 rounded-xl space-y-2 min-h-36",children:[F.map((O,Q)=>e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-lg border border-slate-100 shadow-2xs text-xs font-semibold text-slate-800",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-500 shrink-0"}),e.jsx("span",{children:O})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",onClick:()=>j(`Edit item ${O}`),className:"p-1 text-slate-400 hover:text-slate-600 rounded-md cursor-pointer",children:e.jsx(dg,{className:"w-3 h-3"})}),e.jsx("button",{type:"button",onClick:()=>ge(Q),className:"p-1 text-slate-400 hover:text-rose-500 rounded-md cursor-pointer",children:e.jsx(ka,{className:"w-3 h-3"})})]})]},Q)),e.jsx("div",{className:"pt-1 text-center",children:e.jsx("span",{className:"text-[11px] font-bold text-[#EC167F] cursor-pointer hover:underline",children:"+ 7 lainnya"})})]})]})]})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Xn,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Media Layanan"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1.5",children:"Foto Utama *"}),e.jsxs("div",{className:"border-2 border-dashed border-pink-200 bg-pink-50/20 rounded-2xl p-6 text-center space-y-2 flex flex-col items-center justify-center min-h-[160px]",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center",children:e.jsx(zb,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-800 block text-xs",children:"Upload foto utama layanan"}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block",children:"PNG, JPG, JPEG (maks. 5MB)"})]}),e.jsx("button",{type:"button",onClick:()=>{_e("https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=400"),j("Foto utama berhasil dipilih!")},className:"mt-1 px-4 py-1.5 bg-white border border-pink-200 text-[#EC167F] font-extrabold rounded-xl hover:bg-pink-50 shadow-2xs transition-colors cursor-pointer",children:"Pilih Foto"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1.5",children:"Galeri Foto (Opsional)"}),e.jsx("div",{className:"grid grid-cols-4 gap-2",children:[1,2,3,4].map(O=>e.jsx("button",{type:"button",onClick:()=>j(`Upload galeri foto #${O}`),className:"aspect-square rounded-xl border-2 border-dashed border-slate-200 bg-slate-50 hover:border-pink-300 hover:bg-pink-50/30 flex items-center justify-center text-slate-400 transition-colors cursor-pointer",children:e.jsx(ct,{className:"w-5 h-5"})},O))}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block mt-2",children:"Tambahkan hingga 6 foto pendukung"})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 space-y-5",children:[e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(rf,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Kategori Layanan"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Pilih kategori layanan dari daftar yang tersedia"})]})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Kategori *"}),e.jsxs("select",{value:P,onChange:O=>le(O.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"Paket Wedding",children:"Paket Wedding"}),e.jsx("option",{value:"Makeup Only",children:"Makeup Only"}),e.jsx("option",{value:"Attire",children:"Attire / Busana"}),e.jsx("option",{value:"Hairdo",children:"Hairdo"}),e.jsx("option",{value:"Adat",children:"Adat"}),e.jsx("option",{value:"Add-On",children:"Add-On"}),e.jsx("option",{value:"Produk",children:"Produk"})]})]}),e.jsx("div",{className:"space-y-2 pt-1 max-h-[360px] overflow-y-auto pr-1",children:[{key:"Paket Wedding",label:"Paket Wedding",desc:"Paket lengkap untuk acara pernikahan",icon:St,color:"bg-purple-100 text-purple-700"},{key:"Makeup Only",label:"Makeup Only",desc:"Layanan makeup tanpa busana",icon:Ke,color:"bg-blue-100 text-blue-700"},{key:"Attire",label:"Attire / Busana",desc:"Penyewaan & jasa busana",icon:fr,color:"bg-amber-100 text-amber-700"},{key:"Hairdo",label:"Hairdo",desc:"Tata rambut untuk berbagai acara",icon:Ke,color:"bg-emerald-100 text-emerald-700"},{key:"Adat",label:"Adat",desc:"Layanan makeup & busana adat",icon:Ma,color:"bg-rose-100 text-rose-700"},{key:"Add-On",label:"Add-On",desc:"Tambahan layanan pendukung",icon:za,color:"bg-orange-100 text-orange-700"},{key:"Produk",label:"Produk",desc:"Produk kecantikan & aksesoris",icon:fr,color:"bg-[#FCE7F3] text-[#BE185D]"}].map(O=>{const Q=P===O.key,ve=O.icon;return e.jsxs("div",{onClick:()=>le(O.key),className:`p-3 rounded-xl border transition-all cursor-pointer flex items-start gap-2.5 ${Q?"bg-pink-50/70 border-pink-300 shadow-2xs ring-1 ring-pink-200":"bg-white hover:bg-slate-50 border-slate-200/80"}`,children:[e.jsx("div",{className:`w-7 h-7 rounded-lg flex items-center justify-center shrink-0 ${O.color}`,children:e.jsx(ve,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-xs leading-tight",children:O.label}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block mt-0.5",children:O.desc})]})]},O.key)})})]})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-blue-50 text-blue-600 flex items-center justify-center font-bold",children:e.jsx(Ma,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Informasi Tambahan"})]}),e.jsxs("div",{className:"space-y-3.5 text-xs",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("label",{className:"block text-slate-700 font-bold",children:"Tag / Label"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-bold",children:[Ce.length,"/10"]})]}),e.jsx("input",{type:"text",placeholder:"Tambah tag...",value:Ce,onChange:O=>we(O.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"}),e.jsx("span",{className:"text-[10px] text-slate-400 block mt-1",children:"Tekan Enter untuk menambahkan tag"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Minimal Booking (Opsional)"}),e.jsxs("div",{className:"flex items-center rounded-xl overflow-hidden border border-slate-200 bg-slate-50 focus-within:border-[#EC167F] focus-within:bg-white",children:[e.jsx("div",{className:"pl-3 text-slate-400",children:e.jsx(_s,{className:"w-4 h-4"})}),e.jsx("input",{type:"number",placeholder:"Contoh: 1",value:ce,onChange:O=>He(O.target.value),className:"w-full px-2.5 py-2 font-bold text-slate-800 bg-transparent focus:outline-none text-xs"}),e.jsx("span",{className:"pr-3 text-slate-400 font-bold text-xs",children:"orang"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("label",{className:"block text-slate-700 font-bold",children:"Catatan Internal (Opsional)"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-bold",children:[Ye.length,"/300"]})]}),e.jsx("textarea",{rows:3,maxLength:300,placeholder:"Catatan hanya untuk keperluan internal...",value:Ye,onChange:O=>De(O.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F] resize-none"})]})]})]})]})]}),e.jsxs("div",{className:"mt-6 pt-4 border-t border-slate-200 flex items-center justify-end gap-3",children:[e.jsx("button",{type:"button",onClick:()=>o("katalog"),className:"px-6 py-2.5 bg-white border border-slate-200 hover:bg-slate-50 text-slate-700 font-bold text-xs rounded-xl transition-colors cursor-pointer shadow-2xs",children:"Batal"}),e.jsxs("button",{type:"submit",className:"px-7 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-black text-xs rounded-xl shadow-xs transition-colors flex items-center gap-2 cursor-pointer",children:[e.jsx("span",{children:"Simpan Layanan"}),e.jsx(ye,{className:"w-4 h-4"})]})]})]})]}):e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-300 text-slate-800",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Daftar Layanan"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Kelola semua layanan, paket, dan add-on yang tersedia untuk pelanggan Anda."})]}),e.jsxs("button",{onClick:()=>o("tambah"),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-xs transition-all flex items-center justify-center gap-1.5 cursor-pointer shrink-0",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Layanan"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 xl:grid-cols-6 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Layanan"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ie,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"32"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 12% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Paket Wedding"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center font-bold",children:e.jsx(St,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"6"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 8% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Add-On"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-50 text-amber-600 flex items-center justify-center font-bold",children:e.jsx(za,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"14"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 15% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Layanan Nonaktif"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-rose-50 text-rose-500 flex items-center justify-center font-bold",children:e.jsx(Ma,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"2"}),e.jsxs("p",{className:"text-[10px] font-bold text-rose-500 flex items-center gap-0.5 mt-1",children:[e.jsx(jr,{className:"w-2.5 h-2.5"})," 2% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Booking Bulan Ini"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-blue-50 text-blue-600 flex items-center justify-center font-bold",children:e.jsx(Cr,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"128"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 18% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Pendapatan Bulan Ini"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-emerald-50 text-emerald-600 flex items-center justify-center font-bold",children:e.jsx(Wn,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-lg font-black text-slate-900 leading-tight truncate",children:"Rp126.500.000"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 22% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]})]}),e.jsx("div",{className:"flex items-center gap-2 overflow-x-auto pb-1 text-xs font-bold scrollbar-none",children:[{key:"Semua",label:"Semua",count:null},{key:"Paket Wedding",label:"Paket Wedding",count:6},{key:"Makeup Only",label:"Makeup Only",count:8},{key:"Attire",label:"Attire",count:5},{key:"Hairdo",label:"Hairdo",count:6},{key:"Adat",label:"Adat",count:7},{key:"Add-On",label:"Add-On",count:14},{key:"Produk",label:"Produk",count:3},{key:"Tidak Aktif",label:"Tidak Aktif",count:2}].map(O=>{const Q=C===O.key;return e.jsxs("button",{onClick:()=>u(O.key),className:`px-3.5 py-1.5 rounded-full font-bold transition-all flex items-center gap-1.5 whitespace-nowrap cursor-pointer ${Q?"bg-[#EC167F] text-white shadow-2xs":"bg-white hover:bg-slate-50 text-slate-600 border border-slate-200/80"}`,children:[e.jsx("span",{children:O.label}),O.count!==null&&e.jsx("span",{className:`text-[10px] px-1.5 py-0.2 rounded-full font-extrabold ${Q?"bg-white/20 text-white":"bg-slate-100 text-slate-500"}`,children:O.count})]},O.key)})}),e.jsx("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-2.5 items-center",children:[e.jsxs("div",{className:"lg:col-span-4 relative",children:[e.jsx("input",{type:"text",placeholder:"Cari layanan...",value:b,onChange:O=>f(O.target.value),className:"w-full pl-8 pr-3 py-2 bg-slate-50 border border-slate-200/80 rounded-xl text-xs font-semibold focus:bg-white focus:outline-none focus:border-[#EC167F] text-slate-800 placeholder:text-slate-400"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-3"})]}),e.jsxs("div",{className:"lg:col-span-3 relative",children:[e.jsxs("select",{value:A,onChange:O=>y(O.target.value),className:"w-full appearance-none pl-3 pr-8 py-2 bg-slate-50 border border-slate-200/80 rounded-xl text-xs font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Kategori"}),e.jsx("option",{value:"Paket Wedding",children:"Paket Wedding"}),e.jsx("option",{value:"Makeup Only",children:"Makeup Only"}),e.jsx("option",{value:"Attire",children:"Attire"}),e.jsx("option",{value:"Hairdo",children:"Hairdo"}),e.jsx("option",{value:"Adat",children:"Adat"}),e.jsx("option",{value:"Add-On",children:"Add-On"}),e.jsx("option",{value:"Produk",children:"Produk"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-3 pointer-events-none"})]}),e.jsxs("div",{className:"lg:col-span-2 relative",children:[e.jsxs("select",{value:R,onChange:O=>W(O.target.value),className:"w-full appearance-none pl-3 pr-8 py-2 bg-slate-50 border border-slate-200/80 rounded-xl text-xs font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Tipe"}),e.jsx("option",{value:"Paket",children:"Paket"}),e.jsx("option",{value:"Layanan",children:"Layanan"}),e.jsx("option",{value:"Add-On",children:"Add-On"}),e.jsx("option",{value:"Hairdo",children:"Hairdo"}),e.jsx("option",{value:"Attire",children:"Attire"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-3 pointer-events-none"})]}),e.jsxs("div",{className:"lg:col-span-2 relative",children:[e.jsxs("select",{value:G,onChange:O=>ae(O.target.value),className:"w-full appearance-none pl-3 pr-8 py-2 bg-slate-50 border border-slate-200/80 rounded-xl text-xs font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Status"}),e.jsx("option",{value:"Aktif",children:"Aktif"}),e.jsx("option",{value:"Nonaktif",children:"Nonaktif"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-3 pointer-events-none"})]}),e.jsxs("div",{className:"lg:col-span-1 flex items-center justify-end gap-1.5",children:[e.jsxs("button",{onClick:()=>j("Buka opsi filter"),className:"px-3 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200/80 rounded-xl text-xs font-bold transition-all flex items-center gap-1 cursor-pointer shadow-2xs",children:[e.jsx(Zn,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Filter"})]}),e.jsxs("div",{className:"flex items-center p-0.5 bg-slate-100/80 rounded-xl border border-slate-200/60",children:[e.jsx("button",{onClick:()=>$("grid"),className:`p-1.5 rounded-lg transition-all cursor-pointer ${xe==="grid"?"bg-[#EC167F] text-white shadow-2xs":"text-slate-400 hover:text-slate-600"}`,title:"Tampilan Grid",children:e.jsx(Wc,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>$("list"),className:`p-1.5 rounded-lg transition-all cursor-pointer ${xe==="list"?"bg-[#EC167F] text-white shadow-2xs":"text-slate-400 hover:text-slate-600"}`,title:"Tampilan List",children:e.jsx(Pf,{className:"w-3.5 h-3.5"})})]})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 xl:col-span-9 space-y-5",children:[e.jsx("div",{className:xe==="grid"?"grid grid-cols-1 xl:grid-cols-2 gap-4":"space-y-3",children:ze.map(O=>e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs hover:shadow-xs transition-all overflow-hidden flex flex-col justify-between",children:[e.jsxs("div",{className:"p-4 flex items-start gap-3.5 relative",children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsx("img",{src:O.image,alt:O.title,referrerPolicy:"no-referrer",onError:Q=>{Q.currentTarget.src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=200"},className:"w-24 h-28 sm:w-28 sm:h-32 rounded-2xl object-cover border border-slate-100 shadow-2xs"}),O.isBestSeller&&e.jsx("span",{className:"absolute top-1.5 left-1.5 bg-[#EC167F] text-white text-[9px] font-black px-1.5 py-0.5 rounded-md tracking-wider shadow-2xs",children:"BEST SELLER"})]}),e.jsxs("div",{className:"flex-1 min-w-0 pr-6 space-y-1.5",children:[e.jsx("div",{children:e.jsx("span",{className:`text-[10px] font-black px-2 py-0.5 rounded-md ${O.topBadgeBg}`,children:O.topBadge})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900 leading-tight truncate",children:O.title}),e.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:O.tags.map((Q,ve)=>e.jsx("span",{className:`text-[10px] font-extrabold px-2 py-0.5 rounded-md ${Q.bg}`,children:Q.label},ve))}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium line-clamp-2 leading-tight",children:O.description}),e.jsx("div",{className:"pt-0.5",children:e.jsx("span",{className:"text-sm font-black text-[#EC167F]",children:O.priceText})}),(O.duration||O.capacity||O.itemsCount)&&e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-slate-500 font-bold pt-1 flex-wrap",children:[O.duration&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Vt,{className:"w-3 h-3 text-slate-400"}),e.jsx("span",{children:O.duration})]}),O.capacity&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(St,{className:"w-3 h-3 text-slate-400"}),e.jsx("span",{children:O.capacity})]}),O.itemsCount&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(fr,{className:"w-3 h-3 text-slate-400"}),e.jsx("span",{children:O.itemsCount})]})]})]}),e.jsxs("div",{className:"shrink-0 flex flex-col justify-between items-end self-stretch text-right min-w-[85px] border-l border-slate-100 pl-3",children:[e.jsx("button",{onClick:()=>rt(O.id),className:"text-slate-300 hover:text-slate-500 transition-colors cursor-pointer",children:e.jsx(mb,{className:`w-4 h-4 ${O.isBookmarked?"fill-pink-500 text-pink-500":""}`})}),e.jsx("div",{className:"space-y-1.5 text-[10px]",children:O.usedInBookingsText?e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block font-medium",children:"Dipakai di"}),e.jsx("span",{className:"font-extrabold text-slate-900 block text-xs",children:O.usedInBookingsText})]}):e.jsxs(e.Fragment,{children:[O.bookingCount!==void 0&&e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block font-medium",children:"Booking"}),e.jsx("span",{className:"font-extrabold text-slate-900 block text-xs",children:O.bookingCount})]}),O.rating!==void 0&&e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block font-medium",children:"Rating"}),e.jsxs("div",{className:"flex items-center justify-end gap-1 font-extrabold text-slate-900",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-400 text-amber-400"}),e.jsxs("span",{children:[O.rating," (",O.reviewCount,")"]})]})]}),O.revenueText&&e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 block font-medium",children:"Pendapatan"}),e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:O.revenueText})]})]})})]})]}),e.jsxs("div",{className:"px-4 py-2.5 bg-slate-50/70 border-t border-slate-100 flex items-center justify-between",children:[e.jsxs("button",{type:"button",onClick:()=>pt(O.id),className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("div",{className:`w-8 h-4.5 rounded-full transition-colors relative flex items-center px-0.5 ${O.status==="Aktif"?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("div",{className:`w-3.5 h-3.5 rounded-full bg-white shadow-2xs transition-transform ${O.status==="Aktif"?"translate-x-3.5":"translate-x-0"}`})}),e.jsx("span",{className:`text-[11px] font-bold ${O.status==="Aktif"?"text-slate-800":"text-slate-400"}`,children:O.status})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>{te(O.title),le(O.categoryKey),fe(O.numericPrice.toString()),me(O.description),o("tambah"),j(`Edit ${O.title}`)},className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",title:"Edit",children:e.jsx(rs,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>{const Q={...O,id:`copy_${Date.now()}`,title:`${O.title} (Copy)`};M([Q,...S]),j(`Duplikasi ${O.title} berhasil!`)},className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",title:"Duplikasi",children:e.jsx(Ua,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>j(`Preview ${O.title}`),className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",title:"Lihat Detail",children:e.jsx(Dt,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>j(`Menu pilihan untuk ${O.title}`),className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",title:"Lainnya",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})})]})]})]},O.id))}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500 font-medium",children:[e.jsxs("div",{children:["Menampilkan ",e.jsxs("span",{className:"font-bold text-slate-900",children:["1 - ",ze.length]})," dari ",e.jsx("span",{className:"font-bold text-slate-900",children:"32"})," data"]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-1 font-bold",children:[e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:e.jsx(ra,{className:"w-3.5 h-3.5"})}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white flex items-center justify-center font-extrabold shadow-2xs",children:"1"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"2"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"3"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"4"}),e.jsx("span",{className:"px-1 text-slate-400",children:"..."}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"11"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:e.jsx(it,{className:"w-3.5 h-3.5"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none pl-2.5 pr-6 py-1 bg-white border border-slate-200 rounded-lg text-xs font-bold text-slate-700 cursor-pointer focus:outline-none",children:[e.jsx("option",{children:"9 / halaman"}),e.jsx("option",{children:"18 / halaman"}),e.jsx("option",{children:"36 / halaman"})]}),e.jsx(ye,{className:"w-3 h-3 text-slate-400 absolute right-2 top-2 pointer-events-none"})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 xl:col-span-3 space-y-5",children:[e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Ringkasan Performa"}),e.jsxs("select",{className:"text-xs font-bold text-slate-600 bg-slate-50 border border-slate-200 rounded-lg px-2 py-1 cursor-pointer focus:outline-none",children:[e.jsx("option",{children:"Mei 2025"}),e.jsx("option",{children:"April 2025"}),e.jsx("option",{children:"Maret 2025"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-xs pt-1",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-medium block",children:"Total Booking"}),e.jsx("span",{className:"text-lg font-black text-slate-900 block mt-0.5",children:"128"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 18%"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-medium block",children:"Pendapatan"}),e.jsx("span",{className:"text-sm font-black text-slate-900 block mt-0.5 truncate",children:"Rp126.500.000"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 22%"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-medium block",children:"Rata-rata Harga"}),e.jsx("span",{className:"text-sm font-black text-slate-900 block mt-0.5",children:"Rp987.000"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 10%"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-medium block",children:"Repeat Booking"}),e.jsx("span",{className:"text-lg font-black text-slate-900 block mt-0.5",children:"68%"}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 6%"]})]})]})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Filter Lanjutan"}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Rentang Harga"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"number",placeholder:"Min harga",value:T,onChange:O=>_(O.target.value),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold focus:bg-white focus:outline-none text-slate-800 placeholder:text-slate-400"}),e.jsx("span",{className:"text-slate-400 font-bold",children:"-"}),e.jsx("input",{type:"number",placeholder:"Maks harga",value:D,onChange:O=>Y(O.target.value),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-semibold focus:bg-white focus:outline-none text-slate-800 placeholder:text-slate-400"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Durasi"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"w-full appearance-none p-2 pr-7 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Durasi"}),e.jsx("option",{children:"< 1 Jam"}),e.jsx("option",{children:"1 - 4 Jam"}),e.jsx("option",{children:"Full Day (> 5 Jam)"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Best Seller"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"w-full appearance-none p-2 pr-7 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua"}),e.jsx("option",{children:"Ya (Best Seller Saja)"}),e.jsx("option",{children:"Biasa"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Status"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"w-full appearance-none p-2 pr-7 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Status"}),e.jsx("option",{children:"Aktif"}),e.jsx("option",{children:"Nonaktif"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{className:"pt-2 space-y-2",children:[e.jsx("button",{onClick:()=>j("Filter diterapkan"),className:"w-full py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-black rounded-xl transition-colors cursor-pointer shadow-xs",children:"Terapkan Filter"}),e.jsx("button",{onClick:()=>{_(""),Y(""),j("Filter direset")},className:"w-full py-2 bg-white hover:bg-slate-50 text-slate-600 font-bold border border-slate-200 rounded-xl transition-colors cursor-pointer",children:"Reset Filter"})]})]})]})]})]})]})},K1=[{id:"1",name:"Makeup",description:"Semua layanan makeup untuk berbagai acara dan kebutuhan.",totalServices:18,status:"Aktif",order:1,createdAt:"20 Mei 2025 10:30 WIB"},{id:"2",name:"Hairdo",description:"Penataan rambut profesional untuk berbagai gaya.",totalServices:6,status:"Aktif",order:2,createdAt:"19 Mei 2025 14:20 WIB"},{id:"3",name:"Hijab Styling",description:"Penataan hijab untuk berbagai acara spesial.",totalServices:4,status:"Aktif",order:3,createdAt:"18 Mei 2025 09:15 WIB"},{id:"4",name:"Add-On",description:"Layanan tambahan untuk melengkapi kebutuhan.",totalServices:10,status:"Aktif",order:4,createdAt:"17 Mei 2025 16:45 WIB"},{id:"5",name:"Paket Layanan",description:"Paket layanan terlengkap dengan harga spesial.",totalServices:5,status:"Aktif",order:5,createdAt:"16 Mei 2025 11:10 WIB"},{id:"6",name:"Transportasi",description:"Biaya transportasi untuk layanan luar kota/area.",totalServices:1,status:"Aktif",order:6,createdAt:"15 Mei 2025 13:30 WIB"},{id:"7",name:"Biaya Tambahan",description:"Biaya tambahan untuk waktu khusus/permintaan khusus.",totalServices:1,status:"Aktif",order:7,createdAt:"14 Mei 2025 08:50 WIB"},{id:"8",name:"Layanan Nonaktif",description:"Kategori untuk layanan yang tidak aktif.",totalServices:0,status:"Nonaktif",order:8,createdAt:"10 Mei 2025 15:00 WIB"}],G1=({triggerToast:h})=>{const[j,m]=d.useState(K1),[o,S]=d.useState(""),[M,C]=d.useState("Semua Status"),[u,b]=d.useState("Terbaru"),[f,A]=d.useState(!1),[y,R]=d.useState(""),[W,G]=d.useState(""),ae=T=>{m(_=>_.map(D=>{if(D.id===T){const Y=D.status==="Aktif"?"Nonaktif":"Aktif";return h(`Status kategori "${D.name}" diubah ke ${Y}`),{...D,status:Y}}return D}))},xe=T=>{if(T.preventDefault(),!y.trim()){h("Nama kategori wajib diisi!");return}const _={id:Date.now().toString(),name:y,description:W||"Kategori layanan baru.",totalServices:0,status:"Aktif",order:j.length+1,createdAt:"Hari ini"};m([_,...j]),A(!1),R(""),G(""),h(`Kategori "${y}" berhasil ditambahkan!`)},$=j.filter(T=>{const _=T.name.toLowerCase().includes(o.toLowerCase())||T.description.toLowerCase().includes(o.toLowerCase()),D=M==="Semua Status"||T.status===M;return _&&D});return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-200 text-slate-800",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Daftar Kategori Layanan"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Kelola semua kategori layanan untuk mengorganisir layanan Anda."})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{onClick:()=>h("Mode kelola urutan kategori aktif"),className:"px-3.5 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200/90 rounded-xl text-xs font-bold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(tg,{className:"w-4 h-4 text-slate-500"}),e.jsx("span",{children:"Kelola Urutan"})]}),e.jsxs("button",{onClick:()=>A(!f),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Kategori"}),e.jsx(ye,{className:"w-3.5 h-3.5 opacity-80"})]})]})]}),f&&e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border-2 border-pink-200 shadow-sm animate-in slide-in-from-top-3 duration-200 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("h3",{className:"text-sm font-extrabold text-slate-900 flex items-center gap-1.5",children:[e.jsx(Ke,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Form Tambah Kategori Layanan Baru"})]}),e.jsx("button",{onClick:()=>A(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg hover:bg-slate-100 transition-colors",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:xe,className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-600 font-bold mb-1",children:"Nama Kategori *"}),e.jsx("input",{type:"text",placeholder:"mis. Nail Art & Spa",value:y,onChange:T=>R(T.target.value),className:"w-full px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl font-medium focus:bg-white focus:ring-2 focus:ring-pink-500/20 focus:outline-none",required:!0})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block text-slate-600 font-bold mb-1",children:"Deskripsi Kategori"}),e.jsx("input",{type:"text",placeholder:"Jelaskan jenis layanan dalam kategori ini...",value:W,onChange:T=>G(T.target.value),className:"w-full px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl font-medium focus:bg-white focus:ring-2 focus:ring-pink-500/20 focus:outline-none"})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 sm:col-span-2 lg:col-span-3 pt-1",children:[e.jsx("button",{type:"button",onClick:()=>A(!1),className:"px-3.5 py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-600 rounded-xl font-bold transition-colors cursor-pointer",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-4 py-1.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl font-extrabold shadow-xs transition-colors cursor-pointer",children:"Simpan Kategori"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Kategori"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(za,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"8"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 12% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Kategori Aktif"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center font-bold",children:e.jsx(Ke,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"7"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 8% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Kategori Nonaktif"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-50 text-amber-600 flex items-center justify-center font-bold",children:e.jsx(Il,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"1"}),e.jsxs("p",{className:"text-[10px] font-bold text-rose-500 flex items-center gap-0.5 mt-1",children:[e.jsx(jr,{className:"w-2.5 h-2.5"})," 2% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Layanan"}),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-emerald-50 text-emerald-600 flex items-center justify-center font-bold",children:e.jsx(Xt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 leading-tight",children:"32"}),e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-0.5 mt-1",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 15% ",e.jsx("span",{className:"font-normal text-slate-400",children:"dari bulan lalu"})]})]})]})]}),e.jsx("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-2.5 items-center",children:[e.jsxs("div",{className:"lg:col-span-5 relative",children:[e.jsx("input",{type:"text",placeholder:"Cari kategori...",value:o,onChange:T=>S(T.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20 text-slate-800"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-2.5"})]}),e.jsxs("div",{className:"lg:col-span-3 relative",children:[e.jsxs("select",{value:M,onChange:T=>C(T.target.value),className:"w-full appearance-none px-3 py-1.5 pr-7 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Status"}),e.jsx("option",{value:"Aktif",children:"Aktif"}),e.jsx("option",{value:"Nonaktif",children:"Nonaktif"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"lg:col-span-3 relative",children:[e.jsxs("select",{value:u,onChange:T=>b(T.target.value),className:"w-full appearance-none px-3 py-1.5 pr-7 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold text-slate-700 focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"Terbaru",children:"Urutkan: Terbaru"}),e.jsx("option",{value:"A-Z",children:"Urutkan: Abjad A-Z"}),e.jsx("option",{value:"Terbanyak",children:"Urutkan: Layanan Terbanyak"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsx("div",{className:"lg:col-span-1 flex justify-end",children:e.jsxs("button",{onClick:()=>h("Filter lanjutan kategori"),className:"w-full sm:w-auto px-3 py-1.5 bg-slate-50 hover:bg-slate-100 text-slate-700 border border-slate-200 rounded-xl text-xs font-bold transition-all flex items-center justify-center gap-1 cursor-pointer",children:[e.jsx(Ta,{className:"w-3 h-3 text-slate-500"}),e.jsx("span",{children:"Filter"})]})})]})}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/80 border-b border-slate-100 text-[11px] font-bold text-slate-500 uppercase tracking-wider",children:[e.jsx("th",{className:"py-3 px-4 min-w-[140px]",children:"Kategori"}),e.jsx("th",{className:"py-3 px-4 min-w-[260px]",children:"Deskripsi"}),e.jsx("th",{className:"py-3 px-4 text-center min-w-[110px]",children:"Total Layanan"}),e.jsx("th",{className:"py-3 px-4 text-center min-w-[100px]",children:"Status"}),e.jsx("th",{className:"py-3 px-4 text-center min-w-[80px]",children:"Urutan"}),e.jsx("th",{className:"py-3 px-4 min-w-[150px]",children:"Dibuat Pada"}),e.jsx("th",{className:"py-3 px-4 text-center min-w-[110px]",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 font-medium text-slate-700",children:$.map(T=>e.jsxs("tr",{className:"hover:bg-slate-50/60 transition-colors",children:[e.jsx("td",{className:"py-3.5 px-4",children:e.jsx("span",{className:"font-extrabold text-slate-900 text-xs block",children:T.name})}),e.jsx("td",{className:"py-3.5 px-4 text-slate-500 font-medium",children:T.description}),e.jsx("td",{className:"py-3.5 px-4 text-center",children:e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx("span",{className:"font-bold text-slate-900",children:T.totalServices}),e.jsx("span",{className:"text-[10px] font-semibold text-rose-500 bg-rose-50 px-1.5 py-0.5 rounded-md",children:"Layanan"})]})}),e.jsx("td",{className:"py-3.5 px-4 text-center",children:e.jsx("span",{className:`inline-block text-[11px] font-bold px-2.5 py-0.5 rounded-full ${T.status==="Aktif"?"bg-emerald-50 text-emerald-600 border border-emerald-100":"bg-slate-100 text-slate-500 border border-slate-200"}`,children:T.status})}),e.jsx("td",{className:"py-3.5 px-4 text-center font-bold text-slate-700",children:T.order}),e.jsx("td",{className:"py-3.5 px-4 text-slate-500 text-[11px]",children:T.createdAt}),e.jsx("td",{className:"py-3.5 px-4 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-1.5",children:[e.jsx("button",{onClick:()=>h(`Edit kategori ${T.name}`),className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-lg transition-colors cursor-pointer",title:"Edit Kategori",children:e.jsx(rs,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>ae(T.id),className:"flex items-center cursor-pointer",title:"Toggle Status",children:e.jsx("div",{className:`w-8 h-4.5 rounded-full transition-colors relative flex items-center px-0.5 ${T.status==="Aktif"?"bg-[#EC167F]":"bg-slate-200"}`,children:e.jsx("div",{className:`w-3.5 h-3.5 rounded-full bg-white shadow-2xs transition-transform transform ${T.status==="Aktif"?"translate-x-3.5":"translate-x-0"}`})})}),e.jsx("button",{onClick:()=>h(`Opsi lainnya untuk ${T.name}`),className:"p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-lg transition-colors cursor-pointer",title:"Opsi Lainnya",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})})]})})]},T.id))})]})}),e.jsxs("div",{className:"px-4 py-3 bg-slate-50/50 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsxs("span",{className:"font-semibold text-slate-600",children:["Menampilkan 1 - ",$.length," dari ",j.length," data"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1 font-bold",children:[e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:"<"}),e.jsx("button",{className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white flex items-center justify-center font-black cursor-pointer shadow-2xs",children:"1"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:">"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none pl-2.5 pr-6 py-1 bg-white border border-slate-200 rounded-lg text-xs font-bold text-slate-700 cursor-pointer focus:outline-none",children:[e.jsx("option",{children:"10 / halaman"}),e.jsx("option",{children:"20 / halaman"}),e.jsx("option",{children:"50 / halaman"})]}),e.jsx(ye,{className:"w-3 h-3 text-slate-400 absolute right-2 top-2 pointer-events-none"})]})]})]})]})]})},q1=({onNavigateToCreateReservation:h,initialSubView:j="daftar",triggerToast:m})=>{const[o,S]=d.useState(j),[M,C]=d.useState(""),[u,b]=d.useState("Semua"),[f,A]=d.useState(!0),[y,R]=d.useState(null),[W,G]=d.useState([]),[ae,xe]=d.useState("Semua Grup"),[$,T]=d.useState("Semua Tag"),[_,D]=d.useState("Semua Status"),[Y,se]=d.useState("Terbaru"),[te,P]=d.useState([{id:"cust-1",name:"Maya Salsabila",joinDate:"12 Jan 2025",phone:"0812 8888 9999",email:"maya.salsa@email.com",avatar:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=200",tags:[{label:"VIP",color:"purple"},{label:"Repeat",color:"green"}],totalBookings:5,totalSpend:"Rp15.750.000",lastBookingDate:"20 Mei 2025",status:"Aktif"},{id:"cust-2",name:"Anisa Rahma",joinDate:"05 Feb 2025",phone:"0812 7777 6666",email:"anisa.rahma@email.com",avatar:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=200",tags:[{label:"Repeat",color:"green"},{label:"Wedding",color:"pink"}],totalBookings:3,totalSpend:"Rp9.250.000",lastBookingDate:"18 Mei 2025",status:"Aktif"},{id:"cust-3",name:"Fahira Nur",joinDate:"20 Feb 2025",phone:"0812 1234 5678",email:"fahira.nur@email.com",avatar:"",tags:[{label:"Graduation",color:"blue"}],totalBookings:2,totalSpend:"Rp5.500.000",lastBookingDate:"10 Mei 2025",status:"Aktif"},{id:"cust-4",name:"Clara Dewi",joinDate:"01 Mar 2025",phone:"0812 4444 5555",email:"clara.dewi@email.com",avatar:"https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=200",tags:[{label:"Repeat",color:"green"},{label:"Event",color:"orange"}],totalBookings:4,totalSpend:"Rp12.300.000",lastBookingDate:"25 Mei 2025",status:"Aktif"},{id:"cust-5",name:"Nadia Putri",joinDate:"15 Mar 2025",phone:"0813 2222 3333",email:"nadia.putri@email.com",avatar:"https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&q=80&w=200",tags:[{label:"VIP",color:"purple"}],totalBookings:6,totalSpend:"Rp18.200.000",lastBookingDate:"22 Mei 2025",status:"Aktif"},{id:"cust-6",name:"Reza Amelia",joinDate:"18 Mar 2025",phone:"0812 3456 7890",email:"reza.amelia@email.com",avatar:"",tags:[{label:"VIP",color:"purple"},{label:"Wedding",color:"pink"}],totalBookings:7,totalSpend:"Rp21.500.000",lastBookingDate:"24 Mei 2025",status:"Aktif"},{id:"cust-7",name:"Dian Permata",joinDate:"05 Apr 2025",phone:"0812 9999 8888",email:"dian.permata@email.com",avatar:"https://images.unsplash.com/photo-1508214751196-bcfd4ca60f91?auto=format&fit=crop&q=80&w=200",tags:[{label:"Event",color:"orange"}],totalBookings:1,totalSpend:"Rp2.000.000",lastBookingDate:"08 Mei 2025",status:"Aktif"},{id:"cust-8",name:"Rina Tamara",joinDate:"10 Apr 2025",phone:"0813 6666 7777",email:"rina.tamara@email.com",avatar:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80&w=200",tags:[{label:"Repeat",color:"green"}],totalBookings:3,totalSpend:"Rp7.800.000",lastBookingDate:"17 Mei 2025",status:"Tidak Aktif"}]),[le,pe]=d.useState(""),[be,J]=d.useState("+62"),[fe,B]=d.useState(""),[oe,k]=d.useState(""),[U,ie]=d.useState(""),[me,Ne]=d.useState("Pilih jenis kelamin"),[c,F]=d.useState("Pilih status pernikahan"),[v,Z]=d.useState(""),[re,ue]=d.useState("Pilih sumber pelanggan"),[ne,Ce]=d.useState(""),[we,ce]=d.useState(""),[He,Ye]=d.useState(""),[De,ht]=d.useState("Pilih provinsi"),[_e,rt]=d.useState(""),[pt,N]=d.useState(""),[ge,Ae]=d.useState("Pilih grup pelanggan"),[ze,O]=d.useState(""),[Q,ve]=d.useState([]),[We,Mt]=d.useState(""),[Oa,Zt]=d.useState(""),zs=V=>{V.key==="Enter"&&(V.preventDefault(),ze.trim()&&Q.length<5?(Q.includes(ze.trim())||ve([...Q,ze.trim()]),O("")):Q.length>=5&&m("Maksimal 5 label tag"))},os=V=>{ve(Q.filter(gt=>gt!==V))},Us=V=>{if(V.preventDefault(),!le.trim()){m("Nama Lengkap wajib diisi!");return}if(!fe.trim()){m("Nomor WhatsApp wajib diisi!");return}const gt=`${be} ${fe}`.replace(/\+62\s*/,"08"),Ba={id:`cust-${Date.now()}`,name:le,joinDate:"Hari Ini",phone:gt,email:oe||"pelanggan@email.com",avatar:pt||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=200",tags:Q.length>0?Q.map(oa=>({label:oa,color:"purple"})):[{label:"Baru",color:"blue"}],totalBookings:0,totalSpend:"Rp0",lastBookingDate:"-",status:"Aktif"};P([Ba,...te]),m(`Pelanggan ${le} berhasil ditambahkan!`),pe(""),B(""),k(""),ie(""),Ne("Pilih jenis kelamin"),F("Pilih status pernikahan"),Z(""),ue("Pilih sumber pelanggan"),Ce(""),ce(""),Ye(""),ht("Pilih provinsi"),rt(""),N(""),Ae("Pilih grup pelanggan"),ve([]),Mt(""),Zt(""),S("daftar")},de=()=>{W.length===te.length?G([]):G(te.map(V=>V.id))},Qe=V=>{W.includes(V)?G(W.filter(gt=>gt!==V)):G([...W,V])},Ue=V=>{switch(V){case"purple":return"bg-purple-100 text-purple-700 border-purple-200";case"green":return"bg-emerald-100 text-emerald-700 border-emerald-200";case"pink":return"bg-pink-100 text-pink-700 border-pink-200";case"blue":return"bg-sky-100 text-sky-700 border-sky-200";case"orange":return"bg-amber-100 text-amber-800 border-amber-200";default:return"bg-slate-100 text-slate-700 border-slate-200"}},Ft=te.filter(V=>{const gt=V.name.toLowerCase().includes(M.toLowerCase())||V.phone.includes(M)||V.email.toLowerCase().includes(M.toLowerCase());return u==="VIP"?gt&&V.tags.some(Ba=>Ba.label==="VIP"):u==="Repeat"?gt&&V.tags.some(Ba=>Ba.label==="Repeat"):u==="Baru"?gt&&V.totalBookings<=2:gt});return o==="tambah"?e.jsxs("div",{className:"space-y-6 animate-in fade-in duration-300 text-slate-800",children:[e.jsxs("div",{className:"flex items-center justify-between pb-1",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Tambah Pelanggan"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Lengkapi data pelanggan untuk memudahkan pengelolaan dan komunikasi"})]}),e.jsxs("button",{type:"button",onClick:()=>S("daftar"),className:"px-4 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200/90 text-xs font-bold rounded-xl shadow-2xs transition-all flex items-center gap-2 cursor-pointer",children:[e.jsx(nd,{className:"w-4 h-4 text-slate-500"}),e.jsx("span",{children:"Kembali"})]})]}),e.jsxs("form",{onSubmit:Us,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-6",children:[e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold shrink-0",children:e.jsx(_s,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Informasi Pribadi"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-xs",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-bold text-slate-700 mb-1.5",children:["Nama Lengkap ",e.jsx("span",{className:"text-[#EC167F]",children:"*"})]}),e.jsx("input",{type:"text",required:!0,placeholder:"Masukkan nama lengkap pelanggan",value:le,onChange:V=>pe(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-bold text-slate-700 mb-1.5",children:["No. WhatsApp ",e.jsx("span",{className:"text-[#EC167F]",children:"*"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs("select",{value:be,onChange:V=>J(V.target.value),className:"p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"+62",children:"+62"}),e.jsx("option",{value:"+1",children:"+1"}),e.jsx("option",{value:"+60",children:"+60"}),e.jsx("option",{value:"+65",children:"+65"})]}),e.jsx("input",{type:"text",required:!0,placeholder:"812 3456 7890",value:fe,onChange:V=>B(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Email"}),e.jsx("input",{type:"email",placeholder:"Masukkan email pelanggan",value:oe,onChange:V=>k(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Tanggal Lahir"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Pilih tanggal lahir",value:U,onChange:V=>ie(V.target.value),onFocus:V=>V.target.type="date",onBlur:V=>{V.target.value||(V.target.type="text")},className:"w-full p-3 pr-10 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"}),e.jsx(Ie,{className:"w-4 h-4 text-slate-400 absolute right-3 top-3.5 pointer-events-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Jenis Kelamin"}),e.jsxs("select",{value:me,onChange:V=>Ne(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all cursor-pointer",children:[e.jsx("option",{disabled:!0,value:"Pilih jenis kelamin",children:"Pilih jenis kelamin"}),e.jsx("option",{value:"Wanita",children:"Wanita"}),e.jsx("option",{value:"Pria",children:"Pria"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Status Pernikahan"}),e.jsxs("select",{value:c,onChange:V=>F(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all cursor-pointer",children:[e.jsx("option",{disabled:!0,value:"Pilih status pernikahan",children:"Pilih status pernikahan"}),e.jsx("option",{value:"Belum Menikah",children:"Belum Menikah"}),e.jsx("option",{value:"Menikah",children:"Menikah"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Pekerjaan"}),e.jsx("input",{type:"text",placeholder:"Masukkan pekerjaan",value:v,onChange:V=>Z(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Sumber Pelanggan"}),e.jsxs("select",{value:re,onChange:V=>ue(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all cursor-pointer",children:[e.jsx("option",{disabled:!0,value:"Pilih sumber pelanggan",children:"Pilih sumber pelanggan"}),e.jsx("option",{value:"Instagram",children:"Instagram"}),e.jsx("option",{value:"TikTok",children:"TikTok"}),e.jsx("option",{value:"Referral",children:"Teman / Referral"}),e.jsx("option",{value:"Website",children:"Website"}),e.jsx("option",{value:"Lainnya",children:"Lainnya"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Catatan"}),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{maxLength:200,rows:2,placeholder:"Tulis catatan tentang pelanggan (opsional)",value:ne,onChange:V=>Ce(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all resize-none"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-semibold absolute right-2.5 bottom-2",children:[ne.length,"/200"]})]})]})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold shrink-0",children:e.jsx(Ut,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Informasi Kontak"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Alamat"}),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{maxLength:200,rows:2,placeholder:"Masukkan alamat lengkap pelanggan",value:we,onChange:V=>ce(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all resize-none"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-semibold absolute right-2.5 bottom-2",children:[we.length,"/200"]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Kota / Kabupaten"}),e.jsx("input",{type:"text",placeholder:"Masukkan kota / kabupaten",value:He,onChange:V=>Ye(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Provinsi"}),e.jsxs("select",{value:De,onChange:V=>ht(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all cursor-pointer",children:[e.jsx("option",{disabled:!0,value:"Pilih provinsi",children:"Pilih provinsi"}),e.jsx("option",{value:"DKI Jakarta",children:"DKI Jakarta"}),e.jsx("option",{value:"Jawa Barat",children:"Jawa Barat"}),e.jsx("option",{value:"Jawa Tengah",children:"Jawa Tengah"}),e.jsx("option",{value:"Jawa Timur",children:"Jawa Timur"}),e.jsx("option",{value:"Banten",children:"Banten"}),e.jsx("option",{value:"Bali",children:"Bali"}),e.jsx("option",{value:"Lainnya",children:"Lainnya"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Kode Pos"}),e.jsx("input",{type:"text",placeholder:"Masukkan kode pos",value:_e,onChange:V=>rt(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 space-y-6",children:[e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold shrink-0",children:e.jsx(Xn,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Foto Profil"})]}),e.jsx("div",{className:"border-2 border-dashed border-pink-200 bg-pink-50/20 hover:bg-pink-50/40 transition-colors p-6 rounded-2xl text-center flex flex-col items-center justify-center space-y-2",children:pt?e.jsxs("div",{className:"relative group",children:[e.jsx("img",{src:pt,alt:"Preview",className:"w-20 h-20 rounded-full object-cover border-2 border-pink-500 shadow-md"}),e.jsx("button",{type:"button",onClick:()=>N(""),className:"absolute -top-1 -right-1 bg-red-500 text-white rounded-full p-1 hover:bg-red-600 shadow-xs cursor-pointer",children:e.jsx(tt,{className:"w-3.5 h-3.5"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-pink-100/70 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Yn,{className:"w-5 h-5"})}),e.jsx("span",{className:"font-extrabold text-slate-900 text-xs block",children:"Upload foto pelanggan"}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block",children:"PNG, JPG, JPEG maksimal 2MB"}),e.jsx("button",{type:"button",onClick:()=>{const V=["https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=200","https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=200","https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=200"];N(V[Math.floor(Math.random()*V.length)]),m("Foto profil berhasil diupload")},className:"mt-2 border border-pink-300 text-[#EC167F] bg-white font-extrabold text-xs px-4 py-1.5 rounded-xl hover:bg-pink-50 transition-all cursor-pointer shadow-2xs",children:"Pilih Foto"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold shrink-0",children:e.jsx(Ma,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Grup & Label"})]}),e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Grup Pelanggan"}),e.jsxs("select",{value:ge,onChange:V=>Ae(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-bold text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all cursor-pointer",children:[e.jsx("option",{disabled:!0,value:"Pilih grup pelanggan",children:"Pilih grup pelanggan"}),e.jsx("option",{value:"Bridal / Wedding",children:"Bridal / Wedding"}),e.jsx("option",{value:"Graduation",children:"Graduation"}),e.jsx("option",{value:"Event / Party",children:"Event / Party"}),e.jsx("option",{value:"Reguler",children:"Reguler"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Label / Tag"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Pilih atau buat label",value:ze,onChange:V=>O(V.target.value),onKeyDown:zs,className:"w-full p-3 pr-8 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all"}),e.jsx(Ma,{className:"w-4 h-4 text-slate-400 absolute right-3 top-3.5 pointer-events-none"})]}),e.jsxs("div",{className:"flex items-center justify-between text-[10px] text-slate-400 font-semibold mt-1",children:[e.jsx("span",{children:"Tekan Enter untuk menambah label baru"}),e.jsxs("span",{children:[Q.length,"/5"]})]}),Q.length>0&&e.jsx("div",{className:"flex items-center gap-1.5 flex-wrap mt-2",children:Q.map((V,gt)=>e.jsxs("span",{className:"px-2.5 py-1 text-[11px] font-extrabold rounded-lg bg-pink-100 text-pink-700 border border-pink-200 flex items-center gap-1",children:[e.jsx("span",{children:V}),e.jsx("button",{type:"button",onClick:()=>os(V),className:"hover:text-pink-900 cursor-pointer",children:e.jsx(tt,{className:"w-3 h-3"})})]},gt))})]})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold shrink-0",children:e.jsx($l,{className:"w-4 h-4"})}),e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Preferensi & Catatan Tambahan"})]}),e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Preferensi Layanan"}),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{maxLength:100,rows:2,placeholder:"Contoh: Makeup Natural, Hairdo Modern, dll",value:We,onChange:V=>Mt(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all resize-none"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-semibold absolute right-2.5 bottom-2",children:[We.length,"/100"]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1.5",children:"Catatan Tambahan"}),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{maxLength:300,rows:3,placeholder:"Informasi tambahan yang perlu diperhatikan",value:Oa,onChange:V=>Zt(V.target.value),className:"w-full p-3 bg-slate-50/70 border border-slate-200/90 rounded-xl font-semibold text-slate-800 placeholder:text-slate-400 focus:bg-white focus:outline-none focus:border-[#EC167F] transition-all resize-none"}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-semibold absolute right-2.5 bottom-2",children:[Oa.length,"/300"]})]})]})]})]})]})]}),e.jsxs("div",{className:"pt-4 border-t border-slate-200/80 flex items-center justify-end gap-3",children:[e.jsx("button",{type:"button",onClick:()=>S("daftar"),className:"px-6 py-2.5 bg-white hover:bg-slate-50 border border-slate-200/90 text-slate-700 font-extrabold text-xs rounded-xl transition-all cursor-pointer shadow-2xs",children:"Batal"}),e.jsxs("button",{type:"submit",className:"px-6 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx(Vl,{className:"w-4 h-4"}),e.jsx("span",{children:"Simpan Pelanggan"})]})]})]})]}):e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-300 text-slate-800",children:[e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-500 font-medium mb-1",children:[e.jsx("span",{children:"Dashboard"}),e.jsx(it,{className:"w-3 h-3 text-slate-400"}),e.jsx("span",{children:"Pelanggan"}),e.jsx(it,{className:"w-3 h-3 text-slate-400"}),e.jsx("span",{className:"font-extrabold text-[#EC167F]",children:"Daftar Pelanggan"})]}),e.jsx("h1",{className:"text-xl font-extrabold text-slate-900 tracking-tight",children:"Daftar Pelanggan"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Kelola semua data pelanggan dalam satu tempat"})]}),e.jsxs("div",{className:"flex items-center gap-2.5 flex-wrap",children:[h&&e.jsxs("button",{onClick:h,className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white text-xs font-extrabold rounded-full shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Buat Reservasi"})]}),e.jsxs("button",{onClick:()=>m("Export data pelanggan ke CSV / Excel"),className:"px-3.5 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 text-xs font-bold rounded-xl transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Yl,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Export"})]}),e.jsxs("button",{onClick:()=>m("Import data pelanggan dari file"),className:"px-3.5 py-2 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 text-xs font-bold rounded-xl transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Yn,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Import"})]}),e.jsxs("button",{onClick:()=>S("tambah"),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white text-xs font-extrabold rounded-xl shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Pelanggan"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3.5",children:[e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Pelanggan"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(St,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"text-xl font-extrabold text-slate-900",children:"1.248"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] font-bold text-emerald-600",children:[e.jsx($e,{className:"w-3 h-3"}),e.jsx("span",{children:"18% dari bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Pelanggan Baru"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-50 text-purple-600 flex items-center justify-center font-bold",children:e.jsx(Bt,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"text-xl font-extrabold text-slate-900",children:"86"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] font-bold text-emerald-600",children:[e.jsx($e,{className:"w-3 h-3"}),e.jsx("span",{children:"12% dari bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Pelanggan Repeat"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-50 text-amber-600 flex items-center justify-center font-bold",children:e.jsx(Ls,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"text-xl font-extrabold text-slate-900",children:"342"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] font-bold text-emerald-600",children:[e.jsx($e,{className:"w-3 h-3"}),e.jsx("span",{children:"24% dari bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Pelanggan VIP"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-emerald-50 text-emerald-600 flex items-center justify-center font-bold",children:e.jsx(df,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"text-xl font-extrabold text-slate-900",children:"128"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] font-bold text-emerald-600",children:[e.jsx($e,{className:"w-3 h-3"}),e.jsx("span",{children:"15% dari bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500",children:"Total Transaksi"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-sky-50 text-sky-600 flex items-center justify-center font-bold",children:e.jsx(Wn,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"text-lg font-extrabold text-slate-900 truncate",children:"Rp1.246.500.000"}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] font-bold text-emerald-600",children:[e.jsx($e,{className:"w-3 h-3"}),e.jsx("span",{children:"22% dari bulan lalu"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5",children:[e.jsxs("div",{className:`${f?"lg:col-span-9":"lg:col-span-12"} bg-white rounded-3xl border border-slate-200/80 shadow-2xs overflow-hidden flex flex-col transition-all duration-300`,children:[e.jsxs("div",{className:"p-4 border-b border-slate-100 space-y-3",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-2.5",children:[e.jsxs("div",{className:"relative flex-1 w-full",children:[e.jsx(Gt,{className:"w-4 h-4 text-slate-400 absolute left-3 top-3"}),e.jsx("input",{type:"text",placeholder:"Cari nama, no. telepon, email, atau tag...",value:M,onChange:V=>C(V.target.value),className:"w-full pl-9 pr-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-semibold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("select",{value:ae,onChange:V=>xe(V.target.value),className:"w-full sm:w-auto px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Grup"}),e.jsx("option",{children:"Bridal / Wedding"}),e.jsx("option",{children:"Graduation"}),e.jsx("option",{children:"Event / Party"})]}),e.jsxs("select",{value:_,onChange:V=>D(V.target.value),className:"w-full sm:w-auto px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Status"}),e.jsx("option",{children:"Aktif"}),e.jsx("option",{children:"Tidak Aktif"})]}),e.jsxs("button",{type:"button",onClick:()=>A(!f),className:`px-3 py-2 border rounded-xl text-xs font-extrabold transition-all cursor-pointer flex items-center justify-center gap-1.5 ${f?"bg-slate-900 text-white border-slate-900":"bg-white text-slate-700 border-slate-200 hover:bg-slate-50"}`,children:[e.jsx(Ta,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Filter"})]})]}),e.jsx("div",{className:"flex items-center gap-4 text-xs font-bold border-b border-slate-100 pt-1 overflow-x-auto",children:[{key:"Semua",label:`Semua (${te.length})`},{key:"Baru",label:"Pelanggan Baru (86)"},{key:"Repeat",label:"Repeat (342)"},{key:"VIP",label:"VIP (128)"}].map(V=>e.jsxs("button",{type:"button",onClick:()=>b(V.key),className:`pb-2.5 relative transition-all cursor-pointer whitespace-nowrap ${u===V.key?"text-[#EC167F] font-black":"text-slate-500 hover:text-slate-900"}`,children:[e.jsx("span",{children:V.label}),u===V.key&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-[#EC167F] rounded-full"})]},V.key))})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{className:"bg-slate-50/70 border-b border-slate-200/80 text-slate-500 font-extrabold text-[10px] uppercase tracking-wider",children:e.jsxs("tr",{children:[e.jsx("th",{className:"py-3.5 px-4 w-10",children:e.jsx("input",{type:"checkbox",checked:W.length===te.length&&te.length>0,onChange:de,className:"rounded border-slate-300 text-[#EC167F] focus:ring-pink-500 cursor-pointer"})}),e.jsx("th",{className:"py-3.5 px-4 min-w-[200px]",children:"Pelanggan"}),e.jsx("th",{className:"py-3.5 px-4 min-w-[180px]",children:"Kontak"}),e.jsx("th",{className:"py-3.5 px-4 min-w-[160px]",children:"Tag"}),e.jsx("th",{className:"py-3.5 px-4 text-center",children:"Total Reservasi"}),e.jsx("th",{className:"py-3.5 px-4",children:"Total Belanja"}),e.jsx("th",{className:"py-3.5 px-4 min-w-[120px]",children:"Terakhir Reservasi"}),e.jsx("th",{className:"py-3.5 px-4",children:"Status"}),e.jsx("th",{className:"py-3.5 px-4 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 font-medium",children:Ft.map(V=>{const gt=W.includes(V.id),Ba=V.name.split(" ").map(oa=>oa[0]).join("").substring(0,2);return e.jsxs("tr",{className:`hover:bg-slate-50/70 transition-colors ${gt?"bg-pink-50/30":""}`,children:[e.jsx("td",{className:"py-3.5 px-4",children:e.jsx("input",{type:"checkbox",checked:gt,onChange:()=>Qe(V.id),className:"rounded border-slate-300 text-[#EC167F] focus:ring-pink-500 cursor-pointer"})}),e.jsx("td",{className:"py-3.5 px-4",children:e.jsxs("div",{className:"flex items-center gap-3",children:[V.avatar?e.jsx("img",{src:V.avatar,alt:V.name,className:"w-9 h-9 rounded-full object-cover shrink-0 border border-slate-200"}):e.jsx("div",{className:"w-9 h-9 rounded-full bg-pink-100 text-[#EC167F] font-black text-xs flex items-center justify-center shrink-0",children:Ba}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-xs",children:V.name}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-medium block",children:["Bergabung: ",V.joinDate]})]})]})}),e.jsx("td",{className:"py-3.5 px-4",children:e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("a",{href:`https://wa.me/${V.phone.replace(/\s+/g,"")}`,target:"_blank",rel:"noopener noreferrer",className:"font-bold text-slate-800 hover:text-emerald-600 block text-xs font-mono",children:V.phone}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:V.email})]})}),e.jsx("td",{className:"py-3.5 px-4",children:e.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:V.tags.map((oa,cs)=>e.jsx("span",{className:`px-2 py-0.5 text-[10px] font-extrabold rounded-md border ${Ue(oa.color)}`,children:oa.label},cs))})}),e.jsx("td",{className:"py-3.5 px-4 text-center font-extrabold text-slate-900 text-xs",children:V.totalBookings}),e.jsx("td",{className:"py-3.5 px-4 font-black text-slate-900 text-xs",children:V.totalSpend}),e.jsx("td",{className:"py-3.5 px-4 text-slate-600 text-xs font-semibold",children:V.lastBookingDate}),e.jsx("td",{className:"py-3.5 px-4",children:e.jsx("span",{className:`px-2.5 py-1 text-[10px] font-extrabold rounded-full ${V.status==="Aktif"?"bg-emerald-100/80 text-emerald-700":"bg-slate-100 text-slate-500"}`,children:V.status})}),e.jsx("td",{className:"py-3.5 px-4 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-1 text-slate-400",children:[e.jsx("button",{type:"button",onClick:()=>R(V),className:"p-1.5 hover:text-[#EC167F] hover:bg-pink-50 rounded-lg cursor-pointer transition-colors",title:"Detail Pelanggan",children:e.jsx(Dt,{className:"w-4 h-4"})}),e.jsx("button",{type:"button",onClick:()=>m(`Menu opsi untuk ${V.name}`),className:"p-1.5 hover:text-slate-700 hover:bg-slate-100 rounded-lg cursor-pointer transition-colors",children:e.jsx(Ea,{className:"w-4 h-4"})})]})})]},V.id)})})]})}),e.jsxs("div",{className:"p-4 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500 font-medium bg-slate-50/50",children:[e.jsxs("div",{children:["Menampilkan ",e.jsxs("span",{className:"font-bold text-slate-900",children:["1 - ",Ft.length]})," dari ",e.jsx("span",{className:"font-bold text-slate-900",children:te.length})," pelanggan"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white font-extrabold flex items-center justify-center shadow-xs",children:"1"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg hover:bg-slate-100 text-slate-700 font-bold flex items-center justify-center cursor-pointer",children:"2"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg hover:bg-slate-100 text-slate-700 font-bold flex items-center justify-center cursor-pointer",children:"3"}),e.jsx("button",{type:"button",className:"w-7 h-7 rounded-lg border border-slate-200 bg-white hover:bg-slate-50 flex items-center justify-center text-slate-600 cursor-pointer",children:e.jsx(it,{className:"w-4 h-4"})})]})]})]}),f&&e.jsxs("div",{className:"lg:col-span-3 bg-white p-5 rounded-3xl border border-slate-200/80 shadow-2xs space-y-4 animate-in slide-in-from-right duration-300",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-3",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Filter Pelanggan"}),e.jsx("button",{type:"button",onClick:()=>A(!1),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-3.5 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Cari Pelanggan"}),e.jsx("input",{type:"text",placeholder:"Nama, no. telp, email...",value:M,onChange:V=>C(V.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Grup Pelanggan"}),e.jsxs("select",{value:ae,onChange:V=>xe(V.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Grup"}),e.jsx("option",{children:"Bridal / Wedding"}),e.jsx("option",{children:"Graduation"}),e.jsx("option",{children:"Event / Party"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Tag"}),e.jsxs("select",{value:$,onChange:V=>T(V.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Tag"}),e.jsx("option",{children:"VIP"}),e.jsx("option",{children:"Repeat"}),e.jsx("option",{children:"Wedding"}),e.jsx("option",{children:"Graduation"}),e.jsx("option",{children:"Event"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Status"}),e.jsxs("select",{value:_,onChange:V=>D(V.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Semua Status"}),e.jsx("option",{children:"Aktif"}),e.jsx("option",{children:"Tidak Aktif"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Urutkan"}),e.jsxs("select",{value:Y,onChange:V=>se(V.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{children:"Terbaru"}),e.jsx("option",{children:"Total Belanja Tertinggi"}),e.jsx("option",{children:"Total Reservasi Terbanyak"}),e.jsx("option",{children:"Nama A - Z"})]})]})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 grid grid-cols-2 gap-2",children:[e.jsx("button",{type:"button",onClick:()=>{C(""),xe("Semua Grup"),T("Semua Tag"),D("Semua Status"),m("Filter telah direset")},className:"w-full py-2.5 border border-slate-200 hover:bg-slate-50 text-slate-700 font-bold text-xs rounded-xl cursor-pointer",children:"Reset"}),e.jsx("button",{type:"button",onClick:()=>m("Filter pelanggan diterapkan"),className:"w-full py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs cursor-pointer",children:"Terapkan Filter"})]})]})]}),y&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-xs z-50 flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white max-w-md w-full rounded-3xl p-6 shadow-2xl space-y-5 relative border border-slate-100",children:[e.jsx("button",{onClick:()=>R(null),className:"absolute top-4 right-4 p-1 rounded-xl text-slate-400 hover:text-slate-700 hover:bg-slate-100 cursor-pointer",children:e.jsx(tt,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex items-center gap-4",children:[y.avatar?e.jsx("img",{src:y.avatar,alt:y.name,className:"w-14 h-14 rounded-full object-cover border-2 border-pink-500/20"}):e.jsx("div",{className:"w-14 h-14 rounded-full bg-pink-100 text-[#EC167F] font-black text-base flex items-center justify-center",children:y.name.charAt(0)}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-black text-slate-900",children:y.name}),e.jsxs("span",{className:"text-xs text-slate-500 font-medium block",children:["Bergabung: ",y.joinDate]}),e.jsx("span",{className:"mt-1 px-2.5 py-0.5 text-[10px] font-extrabold bg-emerald-100 text-emerald-700 rounded-full inline-block",children:y.status})]})]}),e.jsxs("div",{className:"space-y-3 pt-3 border-t border-slate-100 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-slate-400 font-bold",children:"Nomor WhatsApp:"}),e.jsxs("a",{href:`https://wa.me/${y.phone.replace(/\s+/g,"")}`,target:"_blank",rel:"noopener noreferrer",className:"font-extrabold text-emerald-600 hover:underline flex items-center gap-1",children:[e.jsx(va,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:y.phone})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-slate-400 font-bold",children:"Email:"}),e.jsx("span",{className:"font-extrabold text-slate-800",children:y.email})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-slate-400 font-bold",children:"Total Reservasi:"}),e.jsxs("span",{className:"font-extrabold text-slate-900",children:[y.totalBookings," Kali"]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-slate-400 font-bold",children:"Total Belanja:"}),e.jsx("span",{className:"font-black text-[#EC167F] text-sm",children:y.totalSpend})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-slate-400 font-bold",children:"Reservasi Terakhir:"}),e.jsx("span",{className:"font-bold text-slate-800",children:y.lastBookingDate})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-bold block mb-1",children:"Tag Pelanggan:"}),e.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:y.tags.map((V,gt)=>e.jsx("span",{className:`px-2.5 py-1 text-[11px] font-extrabold rounded-md border ${Ue(V.color)}`,children:V.label},gt))})]})]}),e.jsxs("div",{className:"pt-2 flex items-center gap-2",children:[e.jsxs("a",{href:`https://wa.me/${y.phone.replace(/\s+/g,"")}`,target:"_blank",rel:"noopener noreferrer",className:"flex-1 py-2.5 bg-emerald-500 hover:bg-emerald-600 text-white font-extrabold text-xs rounded-xl transition-all cursor-pointer flex items-center justify-center gap-1.5 shadow-xs",children:[e.jsx(In,{className:"w-4 h-4"}),e.jsx("span",{children:"Chat WhatsApp"})]}),e.jsx("button",{type:"button",onClick:()=>R(null),className:"px-4 py-2.5 border border-slate-200 hover:bg-slate-50 text-slate-700 font-bold text-xs rounded-xl cursor-pointer",children:"Tutup"})]})]})})]})},V1=({activeTab:h="keuangan",triggerToast:j})=>{const[m,o]=d.useState(()=>h==="keuangan_pemasukan"?"pemasukan":h==="keuangan_pengeluaran"?"pengeluaran":h==="keuangan_transaksi"?"arus_kas":"ringkasan"),[S,M]=d.useState("21 Mei 2025 - 21 Jun 2025"),[C,u]=d.useState("Bulan Lalu"),[b,f]=d.useState("Semua"),[A,y]=d.useState("Harian"),[R,W]=d.useState(!1),[G,ae]=d.useState(!1),[xe,$]=d.useState(!1),[T,_]=d.useState(""),[D,Y]=d.useState(""),[se,te]=d.useState("Pelunasan"),[P,le]=d.useState("Transfer BCA"),[pe,be]=d.useState(""),[J,fe]=d.useState(""),[B,oe]=d.useState("Operasional"),[k,U]=d.useState("Transfer Mandiri"),[ie,me]=d.useState("BCA - 113-108-6321"),[Ne,c]=d.useState("Kas Tunai Studio"),[F,v]=d.useState(""),[Z,re]=d.useState([{id:"1",date:"21 Jun 2025, 14:30",type:"Pemasukan",title:"Pelunasan Wedding - Maya Salsabila",code:"RSV-250621-0130",category:"Pelunasan",method:"Transfer BCA",amount:5e6,status:"Berhasil"},{id:"2",date:"21 Jun 2025, 10:15",type:"Pengeluaran",title:"Pembayaran Vendor Dekorasi",code:"INV-250621-0012",category:"Vendor",method:"Transfer Mandiri",amount:25e5,status:"Berhasil"},{id:"3",date:"20 Jun 2025, 16:45",type:"Pemasukan",title:"DP Wedding - Anisa Rahma",code:"RSV-250628-0131",category:"DP",method:"Transfer BCA",amount:2e6,status:"Berhasil"},{id:"4",date:"20 Jun 2025, 09:20",type:"Pengeluaran",title:"Pembelian Kosmetik",code:"BILL-250620-0099",category:"Operasional",method:"Tunai",amount:85e4,status:"Berhasil"},{id:"5",date:"19 Jun 2025, 11:10",type:"Pemasukan",title:"Makeup Wisuda - Sifa Nurul",code:"RSV-250619-0088",category:"Pelunasan",method:"Transfer BRI",amount:45e4,status:"Berhasil"}]),ue=ce=>{if(ce.preventDefault(),!D||!T){j("Mohon lengkapi nominal dan deskripsi pemasukan!");return}const He=parseInt(D)||0,Ye={id:Date.now().toString(),date:"Hari ini, Baru saja",type:"Pemasukan",title:T,code:`INC-${Math.floor(1e3+Math.random()*9e3)}`,category:se,method:P,amount:He,status:"Berhasil"};re([Ye,...Z]),W(!1),_(""),Y(""),j(`Berhasil mencatat pemasukan Rp${He.toLocaleString("id-ID")}!`)},ne=ce=>{if(ce.preventDefault(),!J||!pe){j("Mohon lengkapi nominal dan deskripsi pengeluaran!");return}const He=parseInt(J)||0,Ye={id:Date.now().toString(),date:"Hari ini, Baru saja",type:"Pengeluaran",title:pe,code:`EXP-${Math.floor(1e3+Math.random()*9e3)}`,category:B,method:k,amount:He,status:"Berhasil"};re([Ye,...Z]),ae(!1),be(""),fe(""),j(`Berhasil mencatat pengeluaran Rp${He.toLocaleString("id-ID")}!`)},Ce=ce=>{if(ce.preventDefault(),!F){j("Mohon isi nominal transfer!");return}const He=parseInt(F)||0;$(!1),v(""),j(`Transfer saldo Rp${He.toLocaleString("id-ID")} berhasil diproses!`)},we=Z.filter(ce=>!(b==="Pemasukan"&&ce.type!=="Pemasukan"||b==="Pengeluaran"&&ce.type!=="Pengeluaran"));return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300 text-slate-800 pb-12",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-500 font-medium mb-1",children:[e.jsx("span",{className:"hover:text-slate-800 cursor-pointer",children:"Keuangan"}),e.jsx(it,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{className:"text-[#EC167F] font-bold",children:m==="ringkasan"?"Dashboard Keuangan":m==="pemasukan"?"Laporan Pemasukan":m==="pengeluaran"?"Laporan Pengeluaran":"Arus Kas & Transaksi"})]}),e.jsx("h1",{className:"text-xl font-black text-slate-900 tracking-tight",children:"Dashboard Keuangan"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Ringkasan kondisi keuangan bisnis Anda secara real-time."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 bg-white px-3 py-2 border border-slate-200/80 rounded-xl shadow-2xs text-xs font-bold text-slate-700 hover:border-slate-300 cursor-pointer",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:S}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 ml-1"})]}),e.jsxs("div",{className:"flex items-center gap-2 bg-white px-3 py-2 border border-slate-200/80 rounded-xl shadow-2xs text-xs font-bold text-slate-700 hover:border-slate-300 cursor-pointer",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Dibandingkan:"}),e.jsx("span",{children:C}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400"})]}),e.jsxs("button",{onClick:()=>j("Mengunduh laporan keuangan studio (PDF/Excel)..."),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-xs transition-all flex items-center gap-1.5 cursor-pointer shrink-0",children:[e.jsx("span",{children:"Export"}),e.jsx(ye,{className:"w-3.5 h-3.5"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Pendapatan"}),e.jsx("h3",{className:"text-lg sm:text-xl font-black text-slate-900 mt-1",children:"Rp126.500.000"})]}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0",children:e.jsx(Wn,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-50",children:[e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-1",children:[e.jsx($e,{className:"w-3 h-3 stroke-[3]"}),e.jsx("span",{children:"22%"}),e.jsx("span",{className:"font-normal text-slate-400",children:"dari 21 Apr - 20 Mei 2025"})]}),e.jsx("div",{className:"h-4 w-full mt-1",children:e.jsx("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 20",children:e.jsx("path",{d:"M0 15 Q25 18 50 10 T100 5",fill:"none",stroke:"#10B981",strokeWidth:"2"})})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Pemasukan"}),e.jsx("h3",{className:"text-lg sm:text-xl font-black text-slate-900 mt-1",children:"Rp138.750.000"})]}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0",children:e.jsx(jr,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-50",children:[e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-1",children:[e.jsx($e,{className:"w-3 h-3 stroke-[3]"}),e.jsx("span",{children:"18%"}),e.jsx("span",{className:"font-normal text-slate-400",children:"dari 21 Apr - 20 Mei 2025"})]}),e.jsx("div",{className:"h-4 w-full mt-1",children:e.jsx("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 20",children:e.jsx("path",{d:"M0 16 Q20 12 50 14 T100 4",fill:"none",stroke:"#10B981",strokeWidth:"2"})})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Pengeluaran"}),e.jsx("h3",{className:"text-lg sm:text-xl font-black text-slate-900 mt-1",children:"Rp32.250.000"})]}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-rose-50 text-rose-500 flex items-center justify-center shrink-0",children:e.jsx($e,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-50",children:[e.jsxs("p",{className:"text-[10px] font-bold text-rose-500 flex items-center gap-1",children:[e.jsx($e,{className:"w-3 h-3 stroke-[3]"}),e.jsx("span",{children:"12%"}),e.jsx("span",{className:"font-normal text-slate-400",children:"dari 21 Apr - 20 Mei 2025"})]}),e.jsx("div",{className:"h-4 w-full mt-1",children:e.jsx("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 20",children:e.jsx("path",{d:"M0 10 Q30 18 60 8 T100 12",fill:"none",stroke:"#F43F5E",strokeWidth:"2"})})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Laba Bersih"}),e.jsx("h3",{className:"text-lg sm:text-xl font-black text-slate-900 mt-1",children:"Rp94.250.000"})]}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-50 text-purple-600 flex items-center justify-center shrink-0",children:e.jsx(Xt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-50",children:[e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-1",children:[e.jsx($e,{className:"w-3 h-3 stroke-[3]"}),e.jsx("span",{children:"28%"}),e.jsx("span",{className:"font-normal text-slate-400",children:"dari 21 Apr - 20 Mei 2025"})]}),e.jsx("div",{className:"h-4 w-full mt-1",children:e.jsx("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 20",children:e.jsx("path",{d:"M0 18 Q20 10 50 12 T100 3",fill:"none",stroke:"#10B981",strokeWidth:"2"})})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Rata-rata Per Hari"}),e.jsx("h3",{className:"text-lg sm:text-xl font-black text-slate-900 mt-1",children:"Rp4.500.000"})]}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-50 text-amber-600 flex items-center justify-center shrink-0",children:e.jsx(Ie,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-50",children:[e.jsxs("p",{className:"text-[10px] font-bold text-emerald-600 flex items-center gap-1",children:[e.jsx($e,{className:"w-3 h-3 stroke-[3]"}),e.jsx("span",{children:"16%"}),e.jsx("span",{className:"font-normal text-slate-400",children:"dari 21 Apr - 20 Mei 2025"})]}),e.jsx("div",{className:"h-4 w-full mt-1",children:e.jsx("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 20",children:e.jsx("path",{d:"M0 15 Q30 8 60 14 T100 6",fill:"none",stroke:"#10B981",strokeWidth:"2"})})})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-4",children:[e.jsx("div",{className:"w-full",children:e.jsxs("div",{className:"w-full bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Grafik Arus Kas"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs("select",{value:A,onChange:ce=>y(ce.target.value),className:"bg-slate-50 border border-slate-200 rounded-lg text-[11px] font-bold px-2 py-1 text-slate-700 cursor-pointer focus:outline-none",children:[e.jsx("option",{value:"Harian",children:"Harian"}),e.jsx("option",{value:"Mingguan",children:"Mingguan"}),e.jsx("option",{value:"Bulanan",children:"Bulanan"})]}),e.jsx("button",{className:"p-1 text-slate-400 hover:text-slate-600 border border-slate-200 rounded-lg",children:e.jsx(Zn,{className:"w-3.5 h-3.5"})})]})]}),e.jsxs("div",{className:"flex items-center gap-4 text-[11px] font-bold",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-emerald-600",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500"}),e.jsx("span",{children:"Pemasukan"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-rose-500",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-rose-500"}),e.jsx("span",{children:"Pengeluaran"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-purple-600",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-purple-500"}),e.jsx("span",{children:"Laba Bersih"})]})]}),e.jsxs("div",{className:"relative w-full h-44 my-1 pt-1",children:[e.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between text-[9px] text-slate-400 font-bold pointer-events-none pb-5",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-0.5",children:e.jsx("span",{children:"100 jt"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-0.5",children:e.jsx("span",{children:"80 jt"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-0.5",children:e.jsx("span",{children:"60 jt"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-0.5",children:e.jsx("span",{children:"40 jt"})}),e.jsx("div",{className:"flex items-center justify-between border-b border-dashed border-slate-100 pb-0.5",children:e.jsx("span",{children:"20 jt"})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("span",{children:"0"})})]}),e.jsxs("svg",{className:"w-full h-full overflow-visible relative z-10",viewBox:"0 0 500 150",preserveAspectRatio:"none",children:[e.jsx("path",{d:"M 10 100 Q 70 90 120 70 T 210 50 T 290 60 T 380 40 L 480 25",fill:"none",stroke:"#10B981",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("circle",{cx:"120",cy:"70",r:"3.5",fill:"#10B981",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"210",cy:"50",r:"3.5",fill:"#10B981",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"290",cy:"60",r:"3.5",fill:"#10B981",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"380",cy:"40",r:"3.5",fill:"#10B981",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"480",cy:"25",r:"4.5",fill:"#10B981",stroke:"#ffffff",strokeWidth:"2"}),e.jsx("path",{d:"M 10 125 Q 70 120 120 110 T 210 115 T 290 105 T 380 110 L 480 110",fill:"none",stroke:"#F43F5E",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("circle",{cx:"120",cy:"110",r:"3.5",fill:"#F43F5E",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"210",cy:"115",r:"3.5",fill:"#F43F5E",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"290",cy:"105",r:"3.5",fill:"#F43F5E",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"380",cy:"110",r:"3.5",fill:"#F43F5E",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("path",{d:"M 10 115 Q 70 110 120 95 T 210 75 T 290 85 T 380 65 L 480 50",fill:"none",stroke:"#A855F7",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("circle",{cx:"120",cy:"95",r:"3.5",fill:"#A855F7",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"210",cy:"75",r:"3.5",fill:"#A855F7",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"290",cy:"85",r:"3.5",fill:"#A855F7",stroke:"#ffffff",strokeWidth:"1.5"}),e.jsx("circle",{cx:"380",cy:"65",r:"3.5",fill:"#A855F7",stroke:"#ffffff",strokeWidth:"1.5"})]})]}),e.jsxs("div",{className:"flex justify-between text-[10px] text-slate-400 font-bold pt-1 border-t border-slate-100",children:[e.jsx("span",{children:"21 Mei"}),e.jsx("span",{children:"28 Mei"}),e.jsx("span",{children:"4 Jun"}),e.jsx("span",{children:"11 Jun"}),e.jsx("span",{children:"18 Jun"})]})]})}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsxs("div",{className:"p-4 border-b border-slate-100 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900",children:"Transaksi Terbaru"}),e.jsx("div",{className:"flex items-center bg-slate-100/80 p-0.5 rounded-xl text-xs font-bold text-slate-600",children:["Semua","Pemasukan","Pengeluaran"].map(ce=>e.jsx("button",{onClick:()=>f(ce),className:`px-3 py-1 rounded-lg transition-all cursor-pointer ${b===ce?"bg-[#EC167F] text-white font-extrabold shadow-2xs":"hover:text-slate-900"}`,children:ce},ce))})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs",children:[e.jsx("thead",{className:"bg-slate-50/70 border-b border-slate-100 text-[10px] font-extrabold uppercase text-slate-400 tracking-wider",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2.5",children:"Tanggal"}),e.jsx("th",{className:"px-4 py-2.5",children:"Jenis"}),e.jsx("th",{className:"px-4 py-2.5",children:"Deskripsi"}),e.jsx("th",{className:"px-4 py-2.5",children:"Kategori"}),e.jsx("th",{className:"px-4 py-2.5",children:"Metode"}),e.jsx("th",{className:"px-4 py-2.5 text-right",children:"Nominal"}),e.jsx("th",{className:"px-4 py-2.5 text-center",children:"Status"}),e.jsx("th",{className:"px-4 py-2.5 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 font-semibold text-slate-700",children:we.map(ce=>e.jsxs("tr",{className:"hover:bg-slate-50/60 transition-colors",children:[e.jsx("td",{className:"px-4 py-3 text-[11px] text-slate-500 font-medium whitespace-nowrap",children:ce.date}),e.jsx("td",{className:"px-4 py-3 whitespace-nowrap",children:e.jsxs("div",{className:`inline-flex items-center gap-1 text-[11px] font-extrabold ${ce.type==="Pemasukan"?"text-emerald-600":"text-rose-500"}`,children:[ce.type==="Pemasukan"?e.jsx(jr,{className:"w-3.5 h-3.5"}):e.jsx($e,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:ce.type})]})}),e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-xs",children:ce.title}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium",children:ce.code})]}),e.jsx("td",{className:"px-4 py-3 text-xs font-bold text-slate-600 whitespace-nowrap",children:ce.category}),e.jsx("td",{className:"px-4 py-3 text-xs font-bold text-slate-600 whitespace-nowrap",children:ce.method}),e.jsxs("td",{className:`px-4 py-3 text-right font-black text-xs whitespace-nowrap ${ce.type==="Pemasukan","text-slate-900"}`,children:["Rp",ce.amount.toLocaleString("id-ID")]}),e.jsx("td",{className:"px-4 py-3 text-center whitespace-nowrap",children:e.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-emerald-50 text-emerald-700 border border-emerald-200 text-[10px] font-extrabold",children:ce.status})}),e.jsx("td",{className:"px-4 py-3 text-center whitespace-nowrap",children:e.jsx("button",{onClick:()=>j(`Opsi transaksi ${ce.code}`),className:"p-1 text-slate-400 hover:text-slate-600 rounded-md cursor-pointer",children:e.jsx(Ib,{className:"w-4 h-4"})})})]},ce.id))})]})}),e.jsx("div",{className:"p-3 text-center border-t border-slate-100 bg-slate-50/30",children:e.jsxs("button",{onClick:()=>o("arus_kas"),className:"text-xs font-bold text-slate-600 hover:text-[#EC167F] transition-colors inline-flex items-center gap-1 cursor-pointer",children:[e.jsx("span",{children:"Lihat Semua Transaksi"}),e.jsx(ye,{className:"w-3.5 h-3.5"})]})})]})]}),e.jsxs("div",{className:"lg:col-span-4 space-y-4",children:[e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Ringkasan Kas & Rekening"}),e.jsxs("div",{className:"p-3 bg-emerald-50/80 border border-emerald-200 rounded-2xl flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0",children:e.jsx(Wn,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-emerald-700 uppercase tracking-wider block",children:"Saldo Kas"}),e.jsx("span",{className:"text-base font-black text-slate-900 block",children:"Rp8.250.000"})]})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-900",children:"Rekening Bank"}),e.jsx("button",{onClick:()=>j("Kelola rekening bank studio"),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Semua"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-6 rounded bg-blue-600 text-white font-black text-[9px] flex items-center justify-center shrink-0 shadow-2xs",children:"BCA"}),e.jsx("div",{children:e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"BCA - 113-108-6321"})})]}),e.jsx("span",{className:"font-black text-slate-900",children:"Rp45.600.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-6 rounded bg-amber-500 text-white font-black text-[9px] flex items-center justify-center shrink-0 shadow-2xs",children:"MANDIRI"}),e.jsx("div",{children:e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Mandiri - 142-00-1234567"})})]}),e.jsx("span",{className:"font-black text-slate-900",children:"Rp38.250.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-6 rounded bg-blue-800 text-white font-black text-[9px] flex items-center justify-center shrink-0 shadow-2xs",children:"BRI"}),e.jsx("div",{children:e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"BRI - 0123-01-123456-50-2"})})]}),e.jsx("span",{className:"font-black text-slate-900",children:"Rp22.150.000"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Jatuh Tempo Pembayaran"}),e.jsx("button",{onClick:()=>j("Lihat daftar seluruh piutang & hutang"),className:"text-[11px] font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Lihat Semua"})]}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{className:"p-2.5 rounded-xl bg-pink-50/50 border border-pink-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold shrink-0",children:e.jsx(Vt,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"DP Belum Lunas"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"8 transaksi"})]})]}),e.jsx("span",{className:"font-black text-[#EC167F]",children:"Rp12.500.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl bg-amber-50/50 border border-amber-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-amber-100 text-amber-700 flex items-center justify-center font-bold shrink-0",children:e.jsx(Il,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Pelunasan Akan Jatuh Tempo"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"5 transaksi"})]})]}),e.jsx("span",{className:"font-black text-amber-600",children:"Rp18.750.000"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl bg-blue-50/50 border border-blue-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-blue-100 text-blue-700 flex items-center justify-center font-bold shrink-0",children:e.jsx(ja,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Tagihan Vendor"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"3 tagihan"})]})]}),e.jsx("span",{className:"font-black text-blue-600",children:"Rp6.250.000"})]})]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3",children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Quick Action"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[e.jsxs("button",{onClick:()=>W(!0),className:"p-2.5 rounded-xl bg-emerald-50/80 hover:bg-emerald-100/80 border border-emerald-200 text-emerald-700 font-extrabold transition-colors flex items-center justify-center gap-1.5 cursor-pointer shadow-2xs",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Catat Pemasukan"})]}),e.jsxs("button",{onClick:()=>ae(!0),className:"p-2.5 rounded-xl bg-rose-50/80 hover:bg-rose-100/80 border border-rose-200 text-rose-600 font-extrabold transition-colors flex items-center justify-center gap-1.5 cursor-pointer shadow-2xs",children:[e.jsx(mm,{className:"w-4 h-4"}),e.jsx("span",{children:"Catat Pengeluaran"})]})]}),e.jsxs("button",{onClick:()=>$(!0),className:"w-full p-2.5 rounded-xl bg-purple-50/80 hover:bg-purple-100/80 border border-purple-200 text-purple-700 font-extrabold transition-colors flex items-center justify-center gap-1.5 cursor-pointer shadow-2xs text-xs",children:[e.jsx(dm,{className:"w-4 h-4"}),e.jsx("span",{children:"Transfer"})]})]})]})]}),R&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-md rounded-2xl border border-slate-200 shadow-xl overflow-hidden p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-emerald-100 text-emerald-700 flex items-center justify-center font-bold",children:e.jsx(ct,{className:"w-4 h-4"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Catat Pemasukan Kas Baru"})]}),e.jsx("button",{onClick:()=>W(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:ue,className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Deskripsi Pemasukan *"}),e.jsx("input",{type:"text",placeholder:"Contoh: Pelunasan Wedding - Nisa & Aris",value:T,onChange:ce=>_(ce.target.value),required:!0,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-emerald-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nominal (Rp) *"}),e.jsx("input",{type:"number",placeholder:"5000000",value:D,onChange:ce=>Y(ce.target.value),required:!0,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:bg-white focus:outline-none focus:border-emerald-500"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Kategori"}),e.jsxs("select",{value:se,onChange:ce=>te(ce.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-700",children:[e.jsx("option",{value:"Pelunasan",children:"Pelunasan"}),e.jsx("option",{value:"DP",children:"DP / Booking"}),e.jsx("option",{value:"Non-Reservasi",children:"Lainnya"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Metode Bayar"}),e.jsxs("select",{value:P,onChange:ce=>le(ce.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-700",children:[e.jsx("option",{value:"Transfer BCA",children:"Transfer BCA"}),e.jsx("option",{value:"Transfer Mandiri",children:"Transfer Mandiri"}),e.jsx("option",{value:"Transfer BRI",children:"Transfer BRI"}),e.jsx("option",{value:"Tunai",children:"Kas Tunai"})]})]})]}),e.jsxs("div",{className:"pt-3 flex justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:()=>W(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-emerald-600 hover:bg-emerald-700 text-white font-extrabold rounded-xl shadow-xs",children:"Simpan Pemasukan"})]})]})]})}),G&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-md rounded-2xl border border-slate-200 shadow-xl overflow-hidden p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-rose-100 text-rose-600 flex items-center justify-center font-bold",children:e.jsx(mm,{className:"w-4 h-4"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Catat Pengeluaran Kas Baru"})]}),e.jsx("button",{onClick:()=>ae(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:ne,className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Deskripsi Pengeluaran *"}),e.jsx("input",{type:"text",placeholder:"Contoh: Belanja Kosmetik Restock / Sewa Gaun",value:pe,onChange:ce=>be(ce.target.value),required:!0,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-rose-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nominal (Rp) *"}),e.jsx("input",{type:"number",placeholder:"1250000",value:J,onChange:ce=>fe(ce.target.value),required:!0,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:bg-white focus:outline-none focus:border-rose-500"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Kategori"}),e.jsxs("select",{value:B,onChange:ce=>oe(ce.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-700",children:[e.jsx("option",{value:"Operasional",children:"Operasional"}),e.jsx("option",{value:"Gaji & Honor",children:"Gaji & Honor"}),e.jsx("option",{value:"Vendor",children:"Vendor"}),e.jsx("option",{value:"Marketing",children:"Marketing"}),e.jsx("option",{value:"Peralatan",children:"Peralatan"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Metode Pembayaran"}),e.jsxs("select",{value:k,onChange:ce=>U(ce.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-700",children:[e.jsx("option",{value:"Transfer Mandiri",children:"Transfer Mandiri"}),e.jsx("option",{value:"Transfer BCA",children:"Transfer BCA"}),e.jsx("option",{value:"Tunai",children:"Kas Tunai Studio"})]})]})]}),e.jsxs("div",{className:"pt-3 flex justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:()=>ae(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-rose-600 hover:bg-rose-700 text-white font-extrabold rounded-xl shadow-xs",children:"Simpan Pengeluaran"})]})]})]})}),xe&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-md rounded-2xl border border-slate-200 shadow-xl overflow-hidden p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 text-purple-700 flex items-center justify-center font-bold",children:e.jsx(dm,{className:"w-4 h-4"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Transfer Antar Rekening / Kas"})]}),e.jsx("button",{onClick:()=>$(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:Ce,className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Dari Rekening *"}),e.jsxs("select",{value:ie,onChange:ce=>me(ce.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-800",children:[e.jsx("option",{value:"BCA - 113-108-6321",children:"BCA - 113-108-6321 (Rp45.600.000)"}),e.jsx("option",{value:"Mandiri - 142-00-1234567",children:"Mandiri - 142-00-1234567 (Rp38.250.000)"}),e.jsx("option",{value:"Kas Tunai Studio",children:"Kas Tunai Studio (Rp8.250.000)"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Tujuan Rekening *"}),e.jsxs("select",{value:Ne,onChange:ce=>c(ce.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-semibold text-slate-800",children:[e.jsx("option",{value:"Kas Tunai Studio",children:"Kas Tunai Studio"}),e.jsx("option",{value:"BRI - 0123-01-123456-50-2",children:"BRI - 0123-01-123456-50-2"}),e.jsx("option",{value:"Mandiri - 142-00-1234567",children:"Mandiri - 142-00-1234567"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nominal Transfer (Rp) *"}),e.jsx("input",{type:"number",placeholder:"2000000",value:F,onChange:ce=>v(ce.target.value),required:!0,className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:bg-white focus:outline-none focus:border-purple-500"})]}),e.jsxs("div",{className:"pt-3 flex justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:()=>$(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-purple-600 hover:bg-purple-700 text-white font-extrabold rounded-xl shadow-xs",children:"Proses Transfer"})]})]})]})})]})},$1=({triggerToast:h=m=>{},onSaveReservation:j})=>{const[m]=d.useState(()=>{try{const de=localStorage.getItem("tenant_public_form_config");if(de)return JSON.parse(de)}catch(de){console.error(de)}return{formTitle:"Form Reservasi Publik Mandiri (Customer Self-Service)",formSubtitle:"Pelanggan dapat mengisi data diri, memilih paket, lokasi, serta opsi pembayaran DP secara langsung.",studioName:"Glamour Touch Studio",studioTagline:"Official MuaKita Tenant",studioAddress:"Beauty Studio, Lantai 2, Unit B2-05 (Akses Lift Barat)",studioDescription:"Glamour Touch Studio adalah studio kecantikan & MUA profesional yang menghadirkan sentuhan terbaik untuk setiap momen spesial Anda. Dengan tim makeup artist berpengalaman lebih dari 3 tahun, produk high-end internasional, dan teknik complexion flawless anti-luntur 18 jam.",bannerImage:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=800",showAnnouncement:!0,announcementText:"⚡ Promo Bulan Ini: Dapatkan potongan DP 10% untuk pemesanan paket Wedding H-14!",ratingValue:"4.9",ratingCount:"256 Ulasan",yearsExperience:"3+ Tahun",satisfiedClients:"5.000+",certificationText:"MUA Pro Int.",minDpPercent:30,homecareTransportFee:1e5,allowHomecare:!0,requireGmaps:!0,allowAdditionalPerson:!0,allowSocialTag:!0,bcaAccount:"8830-1928-3019 a.n. Glamour Touch Studio",mandiriAccount:"1270-0192-8301 a.n. Glamour Touch Studio",qrisAccount:"QRIS GLAMOUR TOUCH STUDIO",termsAndConditions:`1. Transfer DP minimal 30% untuk konfirmasi jadwal dan mengamankan slot MUA.
2. Pembatalan sepihak mengakibatkan DP hangus (Non-refundable).
3. Pelunasan sisa pembayaran dilakukan maksimal H-1 acara atau saat layanan selesai.`,clientNotes:"Mohon wajah sudah dibersihkan dari sisa makeup & bebas skincare tebal 15 menit sebelum kedatangan MUA.",submitButtonText:"Kirim Reservasi Sekarang",waAdminNumber:"081216613315",waTemplateMessage:"Halo {studio_name}, saya telah membuat reservasi online dengan kode {kode_booking} atas nama {nama_client} untuk tanggal {tanggal_acara}. Mohon verifikasi DP & konfirmasi slot ya!"}}),[o,S]=d.useState(1),[M,C]=d.useState(""),[u,b]=d.useState(""),[f,A]=d.useState(""),[y,R]=d.useState(""),[W,G]=d.useState("Instagram"),[ae,xe]=d.useState("ya"),[$,T]=d.useState("Wedding Makeup Package"),[_,D]=d.useState(15e5),[Y,se]=d.useState([]),[te,P]=d.useState("Maid / Sister / Others"),[le,pe]=d.useState(!1),[be,J]=d.useState(!1),[fe,B]=d.useState(!1),[oe,k]=d.useState(""),[U,ie]=d.useState(""),[me,Ne]=d.useState(""),[c,F]=d.useState("studio"),[v,Z]=d.useState(""),[re,ue]=d.useState(""),[ne,Ce]=d.useState(""),[we,ce]=d.useState("BCA"),[He,Ye]=d.useState("dp"),[De,ht]=d.useState(null),[_e,rt]=d.useState(!1),pt=Y.reduce((de,Qe)=>{let Ue=0;return Qe.makeup&&(Ue+=35e4),Qe.hairdo&&(Ue+=15e4),Qe.hijab&&(Ue+=1e5),de+Ue},0),N=(le?15e4:0)+(be?25e4:0)+(fe?2e5:0),ge=(m.minDpPercent||30)/100,Ae=c==="location"?m.homecareTransportFee??1e5:0,ze=_+pt+N+Ae,O=Math.round(ze*ge),Q=ze-O,ve=[{name:"Wedding Makeup Package",price:15e5,desc:"Complete bridal makeup + hairdo + hijab styling + touchup kit",duration:"2.5 Jam"},{name:"Engagement / Sangjit Makeup",price:12e5,desc:"Makeup flawless & hairdo/hijab profesional untuk lamaran",duration:"2 Jam"},{name:"Graduation / Party Makeup",price:5e5,desc:"Makeup wisuda / pesta anggun & tahan lama seharian",duration:"1.5 Jam"},{name:"Prewedding Makeup",price:9e5,desc:"Makeup konsep foto prewedding indoor / outdoor",duration:"2 Jam"},{name:"Hairdo Only",price:35e4,desc:"Penataan rambut profesional berbagai gaya",duration:"1 Jam"},{name:"Hijab Styling Only",price:2e5,desc:"Penataan hijab kreasi modern / syar'i",duration:"45 Mnt"}],We=de=>{T(de.name),D(de.price),h(`Memilih paket: ${de.name}`)},Mt=()=>{const de={id:Date.now(),role:te,makeup:!0,hairdo:!0,hijab:!1};se([...Y,de]),h(`Berhasil menambah orang: ${te}`)},Oa=de=>{se(Y.filter(Qe=>Qe.id!==de))},Zt=(de,Qe)=>{se(Y.map(Ue=>Ue.id===de?{...Ue,[Qe]:!Ue[Qe]}:Ue))},zs=()=>{if(!M.trim())return h("Mohon isi Nama Lengkap Anda."),!1;if(!u.trim())return h("Mohon isi Nomor WhatsApp Anda."),!1;if(!U)return h("Mohon pilih Tanggal Acara."),!1;if(!me)return h("Mohon pilih Jam Mulai Acara."),!1;if(c==="location"){if(!v.trim())return h("Mohon isi Alamat Lengkap Lokasi Acara."),!1;if(m.requireGmaps&&!re.trim())return h("Mohon sertakan Link Google Maps Lokasi Acara."),!1}return!0},os=de=>{if(de&&de.preventDefault(),!zs())return;const Qe=new Date(U),Ue=isNaN(Qe.getTime())?U:Qe.toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric"}),Ft={id:`PUB-${Date.now().toString().slice(-4)}`,name:M,service:$+(Y.length>0?` +${Y.length} Orang`:""),date:`${Ue} (${me})`,status:"Menunggu DP",payment:"Belum Bayar"};j&&j(Ft);const V=`RSV-${Math.floor(1e5+Math.random()*9e5)}`;ht({code:V,name:M,phone:u,email:f,ig:y,service:$,servicePrice:_,persons:Y,date:Ue,time:me,locationType:c==="studio"?"Studio Glamour Touch":"Home Visit / On-Location",locationAddress:c==="location"?v:"Studio Glamour Touch, Lantai 2, Unit B2-05",locationGmaps:re,notes:oe||ne,grandTotal:ze,dpAmount:O,remainingPayment:Q,paymentOption:He,bank:we}),rt(!0),h(`Reservasi ${V} berhasil dibuat! Pihak studio akan mengonfirmasi via WhatsApp.`)},Us=()=>{navigator.clipboard.writeText(window.location.href),h("Link Form Publik berhasil disalin!")};return e.jsxs("div",{className:"max-w-6xl mx-auto space-y-6 pb-12 text-slate-800 animate-in fade-in duration-300",children:[e.jsxs("div",{className:"bg-gradient-to-r from-pink-500 to-rose-600 text-white p-3.5 rounded-2xl shadow-xs flex flex-col sm:flex-row items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-white/20 flex items-center justify-center font-bold",children:e.jsx(Cr,{className:"w-4 h-4 text-white"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xs font-black tracking-wide",children:m.formTitle||"Form Reservasi Publik Mandiri"}),e.jsx("p",{className:"text-[11px] text-pink-100 font-medium",children:m.formSubtitle||"Pelanggan dapat mengisi data diri, memilih paket, lokasi, serta opsi pembayaran DP secara langsung."})]})]}),e.jsxs("button",{onClick:Us,className:"px-3.5 py-1.5 bg-white text-[#EC167F] hover:bg-pink-50 rounded-xl text-xs font-extrabold transition-all flex items-center gap-1.5 shadow-2xs shrink-0 cursor-pointer",children:[e.jsx(Ua,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Salin Link Form"})]})]}),m.showAnnouncement&&m.announcementText&&e.jsxs("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-900 p-3 rounded-2xl text-xs font-extrabold flex items-center gap-2",children:[e.jsx(Ke,{className:"w-4 h-4 text-amber-600 shrink-0"}),e.jsx("span",{children:m.announcementText})]}),e.jsxs("div",{className:"bg-white rounded-3xl border border-slate-200/80 shadow-xs overflow-hidden space-y-0",children:[e.jsxs("div",{className:"p-6 grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[e.jsxs("div",{className:"lg:col-span-4 space-y-3",children:[e.jsxs("div",{className:"relative group overflow-hidden rounded-2xl shadow-xs border border-slate-100",children:[e.jsx("img",{src:m.bannerImage||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=800",alt:m.studioName||"Studio Photo",referrerPolicy:"no-referrer",className:"w-full h-64 object-cover object-top transition-transform duration-500 group-hover:scale-105"}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1.5",children:[e.jsxs("span",{className:"px-3 py-1 bg-[#EC167F] text-white rounded-full text-[11px] font-black uppercase tracking-wider shadow-md flex items-center gap-1",children:[e.jsx(Bt,{className:"w-3.5 h-3.5 fill-white"}),e.jsx("span",{children:m.badgeChoiceText||"Tenan Pilihan"})]}),e.jsxs("span",{className:"px-2.5 py-1 bg-black/60 backdrop-blur-md text-white rounded-full text-[11px] font-bold flex items-center gap-1",children:[e.jsx(Ge,{className:"w-3.5 h-3.5 text-pink-400"}),e.jsx("span",{children:m.badgeVerifiedText||"MUA Verified"})]})]}),e.jsxs("div",{className:"absolute bottom-3 left-3 right-3 p-2.5 bg-slate-900/80 backdrop-blur-md rounded-xl text-white text-[11px] font-medium flex items-center justify-between",children:[e.jsxs("span",{className:"truncate mr-2",children:["📍 ",m.studioAddress||"Studio Location"]}),e.jsx("span",{className:"text-pink-300 font-bold shrink-0",children:m.vipBadgeText||"Studio VIP AC"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsx("img",{src:m.galleryImage1||"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=300",alt:"Studio Gallery 1",referrerPolicy:"no-referrer",className:"w-full h-16 object-cover rounded-xl border border-slate-200"}),e.jsx("img",{src:m.galleryImage2||"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=300",alt:"Studio Gallery 2",referrerPolicy:"no-referrer",className:"w-full h-16 object-cover rounded-xl border border-slate-200"}),e.jsx("img",{src:m.galleryImage3||"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=300",alt:"Studio Gallery 3",referrerPolicy:"no-referrer",className:"w-full h-16 object-cover rounded-xl border border-slate-200"})]})]}),e.jsxs("div",{className:"lg:col-span-5 space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"px-2.5 py-0.5 bg-pink-100 text-[#EC167F] rounded-full text-[10px] font-black uppercase tracking-wider",children:m.studioTagline||"Official MuaKita Tenant"}),e.jsxs("span",{className:"text-xs text-slate-400 font-bold",children:["ID: ",m.tenantIdCode||"TEN-GLAMOUR"]})]}),e.jsxs("h1",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight flex items-center gap-2",children:[e.jsx("span",{children:m.studioName||"Kurnia Touch Studio"}),e.jsx(Ge,{className:"w-6 h-6 text-[#EC167F] fill-pink-100 shrink-0"})]}),e.jsxs("p",{className:"text-xs font-semibold text-slate-500 flex items-center gap-1.5 mt-1",children:[e.jsx(Ut,{className:"w-4 h-4 text-[#EC167F] shrink-0"}),e.jsx("span",{children:m.studioAddress})]})]}),e.jsx("p",{className:"text-xs text-slate-600 leading-relaxed font-normal",children:m.studioDescription}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 pt-1",children:[e.jsxs("div",{className:"bg-pink-50/70 p-2.5 rounded-2xl border border-pink-100/80 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-1 text-amber-500 font-black text-sm",children:[e.jsx(Bt,{className:"w-4 h-4 fill-amber-400 text-amber-400"}),e.jsx("span",{children:m.ratingValue||"4.9"})]}),e.jsxs("div",{className:"text-[10px] font-bold text-slate-600 mt-0.5",children:["(",m.ratingCount||"256 Ulasan",")"]})]}),e.jsxs("div",{className:"bg-pink-50/70 p-2.5 rounded-2xl border border-pink-100/80 text-center",children:[e.jsx("div",{className:"text-sm font-black text-[#EC167F]",children:m.yearsExperience||"3+ Tahun"}),e.jsx("div",{className:"text-[10px] font-bold text-slate-600 mt-0.5",children:"Pengalaman"})]}),e.jsxs("div",{className:"bg-pink-50/70 p-2.5 rounded-2xl border border-pink-100/80 text-center",children:[e.jsx("div",{className:"text-sm font-black text-[#EC167F]",children:m.satisfiedClients||"5.000+"}),e.jsx("div",{className:"text-[10px] font-bold text-slate-600 mt-0.5",children:"Pelanggan Puas"})]}),e.jsxs("div",{className:"bg-pink-50/70 p-2.5 rounded-2xl border border-pink-100/80 text-center",children:[e.jsx("div",{className:"text-sm font-black text-[#EC167F]",children:"Sertifikasi"}),e.jsx("div",{className:"text-[10px] font-bold text-slate-600 mt-0.5",children:m.certificationText||"MUA Pro Int."})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 pt-1",children:[e.jsxs("span",{className:"px-2.5 py-1 bg-slate-100 text-slate-700 rounded-lg text-[11px] font-bold flex items-center gap-1",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-emerald-600"})," ",m.featureTag1||"Garansi On-Time"]}),e.jsxs("span",{className:"px-2.5 py-1 bg-slate-100 text-slate-700 rounded-lg text-[11px] font-bold flex items-center gap-1",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-emerald-600"})," ",m.featureTag2||"High-End Cosmetics"]}),e.jsxs("span",{className:"px-2.5 py-1 bg-slate-100 text-slate-700 rounded-lg text-[11px] font-bold flex items-center gap-1",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-emerald-600"})," ",m.featureTag3||"Free Skincare Prep"]})]})]}),e.jsxs("div",{className:"lg:col-span-3 bg-slate-50/80 p-4 rounded-2xl border border-slate-200/80 space-y-3.5",children:[e.jsxs("h3",{className:"text-xs font-black text-slate-900 uppercase tracking-wider pb-2 border-b border-slate-200/80 flex items-center justify-between",children:[e.jsx("span",{children:"Tentang Tenan"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-100 text-emerald-800 text-[10px] font-extrabold rounded-md",children:m.statusBadgeText||"Buka"})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"p-2 bg-pink-100 text-[#EC167F] rounded-xl shrink-0 mt-0.5",children:e.jsx(Ke,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Spesialisasi"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:m.specializationText||"Bridal Makeup, Hairdo & Hijab Styling"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"p-2 bg-pink-100 text-[#EC167F] rounded-xl shrink-0 mt-0.5",children:e.jsx(Nr,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Keunggulan"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:m.advantagesText||"Flawless 18 jam, tahan air/keringat & ramah kulit sensitif"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"p-2 bg-pink-100 text-[#EC167F] rounded-xl shrink-0 mt-0.5",children:e.jsx(St,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Cocok Untuk"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:m.suitableForText||"Wedding, Engagement, Prewedding, Wisuda, & Event"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"p-2 bg-pink-100 text-[#EC167F] rounded-xl shrink-0 mt-0.5",children:e.jsx(Vt,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Jam Operasional"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:m.operatingHoursText||"Setiap Hari: 09.00 - 20.00 WIB"})]})]}),e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx("div",{className:"p-2 bg-pink-100 text-[#EC167F] rounded-xl shrink-0 mt-0.5",children:e.jsx(il,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Media Sosial & Kontak"}),e.jsx("a",{href:`https://instagram.com/${(m.socialMediaHandle||"").replace("@","")}`,target:"_blank",rel:"noreferrer",className:"font-bold text-[#EC167F] hover:underline block",children:m.socialMediaHandle||"@glamourtouch.studio"}),e.jsxs("span",{className:"font-extrabold text-slate-800",children:["WA: ",m.waAdminNumber||"0812-3456-7890"]})]})]})]})]})]}),e.jsxs("div",{className:"bg-gradient-to-r from-pink-500/10 via-rose-50 to-amber-50 p-5 border-t border-slate-200/80",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-pink-200/60 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"p-2 bg-[#EC167F] text-white rounded-xl shadow-xs",children:e.jsx(Ke,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-sm font-black text-slate-900 tracking-tight",children:["✨ Informasi Menarik & Keunggulan Seputar ",m.studioName||"Glamour Touch Studio"]}),e.jsx("p",{className:"text-[11px] text-slate-600 font-medium",children:"Fakta unik dan jaminan kualitas eksklusif yang membedakan studio kami"})]})]}),e.jsx("span",{className:"hidden sm:inline-block px-3 py-1 bg-white text-[#EC167F] border border-pink-200 font-black text-[10px] rounded-full uppercase tracking-wider shadow-2xs",children:"Studio Feature Highlights"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:[e.jsxs("div",{className:"bg-white/90 p-3.5 rounded-2xl border border-pink-100 shadow-2xs space-y-1.5 hover:shadow-xs transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#EC167F] font-extrabold text-xs",children:[e.jsx(Yc,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:m.highlight1Title||"100% High-End Branded Cosmetics"})]}),e.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed font-normal",children:m.highlight1Desc||"Menggunakan koleksi makeup original ternama seperti Dior, Charlotte Tilbury, Bobbi Brown, MAC, & Make Over untuk kesehatan kulit jangka panjang."})]}),e.jsxs("div",{className:"bg-white/90 p-3.5 rounded-2xl border border-pink-100 shadow-2xs space-y-1.5 hover:shadow-xs transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#EC167F] font-extrabold text-xs",children:[e.jsx(Jl,{className:"w-4 h-4 shrink-0 text-emerald-600"}),e.jsx("span",{children:m.highlight2Title||"Standard Higienis Sterilisasi UV"})]}),e.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed font-normal",children:m.highlight2Desc||"Setiap brush, sponge, dan aplikator dibersihkan dan disterilkan menggunakan UV Sanitizer Box sebelum berpindah ke klien berikutnya."})]}),e.jsxs("div",{className:"bg-white/90 p-3.5 rounded-2xl border border-pink-100 shadow-2xs space-y-1.5 hover:shadow-xs transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#EC167F] font-extrabold text-xs",children:[e.jsx(Nr,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:m.highlight3Title||"Langganan Influencer & Public Figure"})]}),e.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed font-normal",children:m.highlight3Desc||"Telah dipercaya merias lebih dari 25+ Influencer & Figur Publik lokal untuk momen resepsi pernikahan, photo shoot, dan gala dinner."})]}),e.jsxs("div",{className:"bg-white/90 p-3.5 rounded-2xl border border-pink-100 shadow-2xs space-y-1.5 hover:shadow-xs transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#EC167F] font-extrabold text-xs",children:[e.jsx(Vt,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:m.highlight4Title||"Jaminan Punctuality (Tepat Waktu)"})]}),e.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed font-normal",children:m.highlight4Desc||"Tim MUA kami bergaransi tiba 15 menit sebelum waktu pengerjaan. Proses riasan dikerjakan secara terstruktur tanpa mengulur jadwal acara."})]}),e.jsxs("div",{className:"bg-white/90 p-3.5 rounded-2xl border border-pink-100 shadow-2xs space-y-1.5 hover:shadow-xs transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#EC167F] font-extrabold text-xs",children:[e.jsx(zg,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:m.highlight5Title||"Teknik Complexion Anti-Luntur 18 Jam"})]}),e.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed font-normal",children:m.highlight5Desc||"Formula racikan khusus MUA profesional yang waterproof & sweatproof, tahan minyak seharian meski berada di venue outdoor/iklim tropis."})]}),e.jsxs("div",{className:"bg-white/90 p-3.5 rounded-2xl border border-pink-100 shadow-2xs space-y-1.5 hover:shadow-xs transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#EC167F] font-extrabold text-xs",children:[e.jsx(Yc,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{children:m.highlight6Title||"Free Touchup Kit & Softlens Import"})]}),e.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed font-normal",children:m.highlight6Desc||"Setiap pemesanan Paket Wedding via portal MuaKita mendapatkan Complimentary Touchup Kit (lipcream, blotting paper) & Softlens gratis!"})]})]})]})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-3xl border border-slate-200/80 shadow-2xs flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-base font-extrabold text-slate-900 flex items-center gap-2",children:[e.jsx(Aa,{className:"w-5 h-5 text-[#EC167F]"}),e.jsx("span",{children:"Isi Form Reservasi Mandiri"})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Lengkapi seluruh data di bawah ini secara langsung untuk konfirmasi slot MUA"})]}),e.jsxs("span",{className:"px-3 py-1 bg-pink-50 text-[#EC167F] font-extrabold text-xs rounded-full border border-pink-100 flex items-center gap-1.5 shrink-0",children:[e.jsx(Ke,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Pengisian Langsung (Tanpa Stepper)"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-3xl p-5 sm:p-6 border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(_s,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"1. Data Diri Pemesan"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Lengkapi nama dan kontak WhatsApp untuk konfirmasi reservasi"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Nama Lengkap Pemesan ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"text",value:M,onChange:de=>C(de.target.value),placeholder:"mis. Reza Amelia",className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Nomor WhatsApp Aktif ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3.5 top-3 text-emerald-500",children:e.jsx(va,{className:"w-4 h-4"})}),e.jsx("input",{type:"tel",value:u,onChange:de=>b(de.target.value),placeholder:"081234567890",className:"w-full pl-10 pr-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Email ",e.jsx("span",{className:"text-slate-400 font-normal",children:"(Opsional)"})]}),e.jsx("input",{type:"email",value:f,onChange:de=>A(de.target.value),placeholder:"reza.amelia@email.com",className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Username Instagram ",e.jsx("span",{className:"text-slate-400 font-normal",children:"(Opsional)"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-3.5 top-3 text-pink-500",children:e.jsx(il,{className:"w-4 h-4"})}),e.jsx("input",{type:"text",value:y,onChange:de=>R(de.target.value),placeholder:"@username",className:"w-full pl-10 pr-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Darimana Anda Mengetahui Kami?"}),e.jsxs("select",{value:W,onChange:de=>G(de.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"Instagram",children:"Instagram"}),e.jsx("option",{value:"TikTok",children:"TikTok"}),e.jsx("option",{value:"Teman / Kerabat",children:"Rekomendasi Teman / Kerabat"}),e.jsx("option",{value:"Google Search",children:"Google Search"}),e.jsx("option",{value:"Bridestory",children:"Bridestory"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Persetujuan Tag Instagram MUA"}),e.jsxs("div",{className:"flex items-center gap-4 text-xs font-semibold text-slate-700 bg-slate-50 p-2.5 rounded-xl border border-slate-200/80",children:[e.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"allowTag",checked:ae==="ya",onChange:()=>xe("ya"),className:"accent-[#EC167F] w-4 h-4"}),e.jsx("span",{children:"Boleh Diposting"})]}),e.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"allowTag",checked:ae==="tidak",onChange:()=>xe("tidak"),className:"accent-[#EC167F] w-4 h-4"}),e.jsx("span",{children:"Private"})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-5 sm:p-6 border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(Ke,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"2. Pilih Layanan Utama & Orang Tambahan"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Pilih paket makeup utama dan tambahan anggota keluarga jika ada"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-2",children:["Pilih Paket Layanan Utama ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:ve.map(de=>{const Qe=$===de.name;return e.jsxs("div",{onClick:()=>We(de),className:`p-3.5 rounded-2xl border text-left cursor-pointer transition-all space-y-1.5 ${Qe?"bg-pink-50/80 border-[#EC167F] shadow-2xs ring-1 ring-pink-500/20":"bg-slate-50 border-slate-200 hover:bg-slate-100/80"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-extrabold text-xs text-slate-900",children:de.name}),e.jsxs("span",{className:"text-xs font-black text-[#EC167F]",children:["Rp",de.price.toLocaleString("id-ID")]})]}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium leading-tight",children:de.desc}),e.jsxs("div",{className:"text-[10px] font-bold text-slate-400",children:["Durasi: ",de.duration]})]},de.name)})})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-900",children:"Orang Tambahan (Bridesmaid / Keluarga)"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Tambah anggota keluarga yang juga butuh makeup / hairdo"})]}),e.jsxs("span",{className:"text-xs font-bold text-[#EC167F] bg-pink-50 px-2.5 py-0.5 rounded-full",children:[Y.length," Orang"]})]}),Y.length>0&&e.jsx("div",{className:"space-y-2",children:Y.map((de,Qe)=>e.jsxs("div",{className:"p-3 bg-slate-50 border border-slate-200 rounded-xl flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"w-6 h-6 rounded-full bg-[#EC167F] text-white text-xs font-black flex items-center justify-center",children:Qe+1}),e.jsx("span",{className:"font-extrabold text-slate-800",children:de.role})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold",children:[e.jsx("button",{type:"button",onClick:()=>Zt(de.id,"makeup"),className:`px-2 py-0.5 rounded-lg border text-[11px] cursor-pointer ${de.makeup?"bg-emerald-100 text-emerald-800 border-emerald-200":"bg-slate-100 text-slate-400"}`,children:"Makeup (Rp350k)"}),e.jsx("button",{type:"button",onClick:()=>Zt(de.id,"hairdo"),className:`px-2 py-0.5 rounded-lg border text-[11px] cursor-pointer ${de.hairdo?"bg-emerald-100 text-emerald-800 border-emerald-200":"bg-slate-100 text-slate-400"}`,children:"Hairdo (Rp150k)"}),e.jsx("button",{type:"button",onClick:()=>Zt(de.id,"hijab"),className:`px-2 py-0.5 rounded-lg border text-[11px] cursor-pointer ${de.hijab?"bg-emerald-100 text-emerald-800 border-emerald-200":"bg-slate-100 text-slate-400"}`,children:"Hijab (Rp100k)"}),e.jsx("button",{type:"button",onClick:()=>Oa(de.id),className:"p-1 text-slate-400 hover:text-rose-600 rounded-lg cursor-pointer",children:e.jsx(ka,{className:"w-3.5 h-3.5"})})]})]},de.id))}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("select",{value:te,onChange:de=>P(de.target.value),className:"flex-1 px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"Ibu Pengantin (Mother)",children:"Ibu Pengantin (Mother)"}),e.jsx("option",{value:"Ibu Mertua (Mother-in-law)",children:"Ibu Mertua (Mother-in-law)"}),e.jsx("option",{value:"Bridesmaid / Sister",children:"Bridesmaid / Sister"}),e.jsx("option",{value:"Keluarga Lainnya",children:"Keluarga Lainnya"})]}),e.jsx("button",{type:"button",onClick:Mt,className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold transition-colors cursor-pointer shrink-0",children:"+ Tambah Orang"})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 space-y-2",children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-900",children:"Add-On Ekstra (Opsional)"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2 text-xs",children:[e.jsxs("button",{type:"button",onClick:()=>pe(!le),className:`p-2.5 rounded-xl border text-left cursor-pointer transition-all flex items-center justify-between ${le?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx("span",{className:"font-bold",children:"Softlens Import"}),e.jsx("span",{className:"text-[11px] font-black",children:"Rp150.000"})]}),e.jsxs("button",{type:"button",onClick:()=>J(!be),className:`p-2.5 rounded-xl border text-left cursor-pointer transition-all flex items-center justify-between ${be?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx("span",{className:"font-bold",children:"Touch Up Standby"}),e.jsx("span",{className:"text-[11px] font-black",children:"Rp250.000"})]}),e.jsxs("button",{type:"button",onClick:()=>B(!fe),className:`p-2.5 rounded-xl border text-left cursor-pointer transition-all flex items-center justify-between ${fe?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx("span",{className:"font-bold",children:"Retouch Malam"}),e.jsx("span",{className:"text-[11px] font-black",children:"Rp200.000"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Catatan Layanan / Request Khusus"}),e.jsx("textarea",{rows:2,placeholder:"misal: warna gaun pastel, kulit sensitif, request tim makeup hijab syar'i...",value:oe,onChange:de=>k(de.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-5 sm:p-6 border border-slate-200/80 shadow-2xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(Aa,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"3. Jadwal Tanggal & Lokasi Pengerjaan"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Tentukan kapan dan di mana layanan akan dilakukan"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Tanggal Acara ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"date",value:U,onChange:de=>ie(de.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none cursor-pointer"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Jam Mulai Makeup ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("select",{value:me,onChange:de=>Ne(de.target.value),className:"w-full px-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"",children:"Pilih jam mulai"}),e.jsx("option",{value:"05:00 WIB",children:"05.00 WIB (Subuh / Morning Makeup)"}),e.jsx("option",{value:"08:00 WIB",children:"08.00 WIB"}),e.jsx("option",{value:"10:00 WIB",children:"10.00 WIB"}),e.jsx("option",{value:"13:00 WIB",children:"13.00 WIB"}),e.jsx("option",{value:"15:00 WIB",children:"15.00 WIB"}),e.jsx("option",{value:"18:00 WIB",children:"18.00 WIB (Malam)"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-2",children:"Tipe Lokasi Pengerjaan"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-xs font-bold",children:[e.jsxs("button",{type:"button",onClick:()=>F("studio"),className:`p-3 rounded-2xl border flex items-center gap-2.5 transition-all cursor-pointer ${c==="studio"?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:[e.jsx(is,{className:"w-5 h-5 shrink-0"}),e.jsxs("div",{className:"text-left",children:[e.jsx("span",{className:"block font-extrabold",children:"Di Studio Kami"}),e.jsx("span",{className:"text-[10px] font-medium text-slate-500",children:"Bebas Biaya Transportasi"})]})]}),e.jsxs("button",{type:"button",onClick:()=>m.allowHomecare&&F("location"),disabled:!m.allowHomecare,className:`p-3 rounded-2xl border flex items-center gap-2.5 transition-all cursor-pointer ${m.allowHomecare?c==="location"?"bg-pink-50 border-[#EC167F] text-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700":"opacity-60 cursor-not-allowed bg-slate-100 border-slate-200 text-slate-400"}`,children:[e.jsx(vr,{className:"w-5 h-5 shrink-0"}),e.jsxs("div",{className:"text-left",children:[e.jsx("span",{className:"block font-extrabold",children:"Home Visit / Gedung / Hotel"}),e.jsx("span",{className:"text-[10px] font-medium text-slate-500",children:m.allowHomecare?`+ Biaya Transport (Rp${(m.homecareTransportFee??1e5).toLocaleString("id-ID")})`:"(Layanan On-Location Tidak Tersedia)"})]})]})]})]}),c==="location"&&e.jsxs("div",{className:"space-y-3 animate-in fade-in",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:["Alamat Lengkap Lokasi Acara ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("textarea",{rows:2,placeholder:"Tuliskan alamat rumah/hotel/ballroom secara detail...",value:v,onChange:de=>Z(de.target.value),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Link Google Maps (Opsional)"}),e.jsx("input",{type:"text",placeholder:"https://maps.google.com/...",value:re,onChange:de=>ue(de.target.value),className:"w-full px-3.5 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Catatan Ruangan / Petunjuk Akses"}),e.jsx("input",{type:"text",placeholder:"misal: Masuk dari gate barat, kamar hotel lantai 3 no 305...",value:ne,onChange:de=>Ce(de.target.value),className:"w-full px-3.5 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-5 sm:p-6 border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-slate-100",children:[e.jsx(Ht,{className:"w-5 h-5 text-[#EC167F]"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"4. Metode Pembayaran & DP"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Pembayaran DP 30% atau Pelunasan langsung untuk mengunci jadwal"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-2",children:"Pilihan Pembayaran"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5 text-xs",children:[e.jsxs("button",{type:"button",onClick:()=>Ye("dp"),className:`p-3.5 rounded-2xl border text-left cursor-pointer transition-all ${He==="dp"?"bg-pink-50 border-[#EC167F] ring-1 ring-pink-500/20":"bg-slate-50 border-slate-200"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-extrabold text-slate-900",children:"Bayar DP 30% Dulu"}),e.jsxs("span",{className:"text-xs font-black text-[#EC167F]",children:["Rp",O.toLocaleString("id-ID")]})]}),e.jsxs("p",{className:"text-[11px] text-slate-500 mt-1",children:["Sisa pelunasan H-1 acara: Rp",Q.toLocaleString("id-ID")]})]}),e.jsxs("button",{type:"button",onClick:()=>Ye("lunas"),className:`p-3.5 rounded-2xl border text-left cursor-pointer transition-all ${He==="lunas"?"bg-pink-50 border-[#EC167F] ring-1 ring-pink-500/20":"bg-slate-50 border-slate-200"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-extrabold text-slate-900",children:"Bayar Lunas (100%)"}),e.jsxs("span",{className:"text-xs font-black text-[#EC167F]",children:["Rp",ze.toLocaleString("id-ID")]})]}),e.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"Praktis tanpa perlu pelunasan lagi di hari H"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-2",children:"Pilih Rekening Bank Studio"}),e.jsx("div",{className:"grid grid-cols-3 gap-2 text-xs font-bold mb-3",children:["BCA","Mandiri","QRIS"].map(de=>e.jsx("button",{type:"button",onClick:()=>ce(de),className:`py-2 px-3 rounded-xl border cursor-pointer transition-all text-center ${we===de?"bg-[#EC167F] text-white border-[#EC167F]":"bg-slate-50 border-slate-200 text-slate-700"}`,children:de},de))}),e.jsxs("div",{className:"p-4 bg-pink-50/80 rounded-2xl border border-pink-200 text-xs space-y-1.5",children:[e.jsxs("div",{className:"text-slate-500 font-medium",children:["Transfer Ke Rekening / QRIS (",we,"):"]}),e.jsx("div",{className:"font-mono text-base font-black text-slate-900 tracking-wider",children:we==="BCA"?m.bcaAccount||"8830-1928-3019 a.n. Glamour Touch Studio":we==="Mandiri"?m.mandiriAccount||"1270-0192-8301 a.n. Glamour Touch Studio":m.qrisAccount||"QRIS GLAMOUR TOUCH STUDIO"})]})]}),m.termsAndConditions&&e.jsxs("div",{className:"p-3.5 bg-amber-50/80 rounded-2xl border border-amber-200 text-xs space-y-1",children:[e.jsxs("div",{className:"font-extrabold text-amber-900 flex items-center gap-1.5",children:[e.jsx(Il,{className:"w-4 h-4 text-amber-600 shrink-0"}),e.jsx("span",{children:"Syarat & Kebijakan Pembatalan / DP:"})]}),e.jsx("p",{className:"text-[11px] text-amber-800 whitespace-pre-line leading-relaxed pl-5 font-medium",children:m.termsAndConditions})]}),m.clientNotes&&e.jsxs("div",{className:"p-3.5 bg-blue-50/80 rounded-2xl border border-blue-200 text-xs space-y-1",children:[e.jsxs("div",{className:"font-extrabold text-blue-900 flex items-center gap-1.5",children:[e.jsx(od,{className:"w-4 h-4 text-blue-600 shrink-0"}),e.jsx("span",{children:"Catatan Persiapan untuk Pemesan:"})]}),e.jsx("p",{className:"text-[11px] text-blue-800 leading-relaxed pl-5 font-medium",children:m.clientNotes})]})]})]}),e.jsx("div",{className:"lg:col-span-4 space-y-4 lg:sticky lg:top-4",children:e.jsxs("div",{className:"bg-white p-5 rounded-3xl border border-slate-200/80 shadow-xs space-y-4 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("h4",{className:"font-extrabold text-slate-900 text-sm flex items-center gap-1.5",children:[e.jsx(Gg,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Rincian Reservasi"})]}),e.jsx("span",{className:"px-2 py-0.5 bg-pink-50 text-[#EC167F] text-[10px] font-black rounded-md",children:"Ringkasan"})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex justify-between items-start text-slate-600",children:[e.jsxs("span",{className:"font-medium max-w-[170px] truncate",children:[$,":"]}),e.jsxs("span",{className:"font-bold text-slate-900 shrink-0",children:["Rp",_.toLocaleString("id-ID")]})]}),pt>0&&e.jsxs("div",{className:"flex justify-between items-center text-slate-600",children:[e.jsxs("span",{className:"font-medium",children:["Orang Tambahan (",Y.length,"):"]}),e.jsxs("span",{className:"font-bold text-slate-900",children:["Rp",pt.toLocaleString("id-ID")]})]}),N>0&&e.jsxs("div",{className:"flex justify-between items-center text-slate-600",children:[e.jsx("span",{className:"font-medium",children:"Add-On Ekstra:"}),e.jsxs("span",{className:"font-bold text-slate-900",children:["Rp",N.toLocaleString("id-ID")]})]}),Ae>0&&e.jsxs("div",{className:"flex justify-between items-center text-slate-600",children:[e.jsx("span",{className:"font-medium",children:"Transport On-Location:"}),e.jsxs("span",{className:"font-bold text-slate-900",children:["Rp",Ae.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 flex justify-between items-center text-sm font-black text-slate-900",children:[e.jsx("span",{children:"Total Biaya:"}),e.jsxs("span",{className:"text-slate-900",children:["Rp",ze.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"p-3 bg-pink-50/80 rounded-2xl border border-pink-200/80 space-y-1",children:[e.jsxs("div",{className:"flex justify-between items-center text-xs font-black text-[#EC167F]",children:[e.jsx("span",{children:He==="dp"?`DP Minimal (${m.minDpPercent||30}%):`:"Total Pelunasan (100%):"}),e.jsxs("span",{children:["Rp",(He==="dp"?O:ze).toLocaleString("id-ID")]})]}),He==="dp"&&e.jsxs("div",{className:"text-[10px] text-slate-500 font-medium flex justify-between pt-0.5",children:[e.jsx("span",{children:"Sisa Pelunasan H-1:"}),e.jsxs("span",{className:"font-bold text-slate-700",children:["Rp",Q.toLocaleString("id-ID")]})]})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 space-y-2",children:[e.jsxs("button",{type:"button",onClick:os,className:"w-full py-3 bg-[#EC167F] hover:bg-[#D41270] text-white font-black text-xs rounded-2xl transition-all flex items-center justify-center gap-2 cursor-pointer shadow-md hover:shadow-lg",children:[e.jsx("span",{children:m.submitButtonText||"Kirim Reservasi Sekarang"}),e.jsx(Kt,{className:"w-4 h-4"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-[11px] text-slate-400 font-medium",children:[e.jsx(Jl,{className:"w-3.5 h-3.5 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Konfirmasi langsung via WhatsApp"})]})]})]})})]}),_e&&De&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/50 backdrop-blur-xs z-50 flex items-center justify-center p-4 animate-in fade-in",children:e.jsxs("div",{className:"bg-white rounded-3xl max-w-md w-full p-6 space-y-4 shadow-xl border border-slate-100 relative text-center",children:[e.jsx("button",{onClick:()=>rt(!1),className:"absolute top-4 right-4 text-slate-400 hover:text-slate-600 p-1 rounded-lg hover:bg-slate-100 transition-colors",children:e.jsx(tt,{className:"w-5 h-5"})}),e.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-100 text-emerald-600 flex items-center justify-center mx-auto",children:e.jsx(vm,{className:"w-10 h-10"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-black text-slate-900",children:"Reservasi Berhasil Dikirim!"}),e.jsxs("p",{className:"text-xs text-slate-500 font-medium mt-1",children:["Kode Booking Anda: ",e.jsx("span",{className:"font-bold text-[#EC167F]",children:De.code})]})]}),e.jsxs("div",{className:"bg-slate-50 p-4 rounded-2xl text-left text-xs space-y-2 border border-slate-100",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Nama:"}),e.jsx("span",{className:"font-bold text-slate-800",children:De.name})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Layanan:"}),e.jsx("span",{className:"font-bold text-slate-800",children:De.service})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Jadwal:"}),e.jsxs("span",{className:"font-bold text-slate-800",children:[De.date," (",De.time,")"]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Total Tagihan:"}),e.jsxs("span",{className:"font-bold text-[#EC167F]",children:["Rp",De.grandTotal.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{className:"text-slate-400 font-medium",children:["DP (",m.minDpPercent||30,"%):"]}),e.jsxs("span",{className:"font-bold text-slate-800",children:["Rp",De.dpAmount.toLocaleString("id-ID")]})]})]}),e.jsxs("div",{className:"pt-2 space-y-2",children:[(()=>{const de=(m.waAdminNumber||"081216613315").replace(/[^0-9]/g,""),Qe=de.startsWith("0")?"62"+de.slice(1):de||"6281216613315";let Ue=m.waTemplateMessage||"Halo {studio_name}, saya sudah mengisi form reservasi dengan kode {kode_booking} atas nama {nama_client}.";return Ue=Ue.replace("{studio_name}",m.studioName||"Studio").replace("{kode_booking}",(De==null?void 0:De.code)||"").replace("{nama_client}",(De==null?void 0:De.name)||"").replace("{tanggal_acara}",(De==null?void 0:De.date)||""),e.jsxs("a",{href:`https://wa.me/${Qe}?text=${encodeURIComponent(Ue)}`,target:"_blank",rel:"noreferrer",className:"w-full py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-2xl text-xs font-extrabold transition-all flex items-center justify-center gap-2 cursor-pointer shadow-xs",children:[e.jsx(In,{className:"w-4 h-4 fill-white"}),e.jsx("span",{children:"Konfirmasi via WhatsApp Admin"})]})})(),e.jsx("button",{onClick:()=>rt(!1),className:"w-full py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 rounded-2xl text-xs font-bold transition-all cursor-pointer",children:"Tutup Window"})]})]})})]})},J1=({onNavigateToCreateReservation:h,triggerToast:j=m=>{}})=>{const[m,o]=d.useState("Glow Bridal Studio"),[S,M]=d.useState("Jl. Kemang Raya No. 8, Jakarta Selatan, DKI Jakarta 12730"),[C,u]=d.useState({tarifPerKm:5e3,gratisKm:5,tarifMinimum:3e4,biayaLuarKota:25e3,biayaTol:"Sesuai Struk",radiusMaxKm:50}),[b,f]=d.useState("https://maps.google.com/?q=The+Westin+Jakarta"),[A,y]=d.useState("The Westin Jakarta, Jl. H. R. Rasuna Said Kav.C-22A, Kuningan, Jakarta Selatan"),[R,W]=d.useState(18.6),[G,ae]=d.useState(35),[xe,$]=d.useState(!0),[T,_]=d.useState(!1),[D,Y]=d.useState(!1),[se,te]=d.useState(!1),[P,le]=d.useState(!1),[pe,be]=d.useState(!1),[J,fe]=d.useState(m),[B,oe]=d.useState(S),[k,U]=d.useState(C.tarifPerKm),[ie,me]=d.useState(C.gratisKm),[Ne,c]=d.useState(C.tarifMinimum),[F,v]=d.useState(C.biayaLuarKota),[Z,re]=d.useState(""),[ue,ne]=d.useState(""),[Ce,we]=d.useState([{id:"p1",name:"Wedding Venue",icon:"💒",distanceKm:22.4,estimatedTimeMin:42},{id:"p2",name:"Hotel",icon:"🏨",distanceKm:14.2,estimatedTimeMin:30},{id:"p3",name:"Rumah Client",icon:"🏠",distanceKm:8.5,estimatedTimeMin:20},{id:"p4",name:"Gedung / Venue",icon:"🏛️",distanceKm:16.8,estimatedTimeMin:36}]),[ce,He]=d.useState([{id:"h1",clientLocation:"The Westin Jakarta",addressDetail:"Kuningan, Jakarta Selatan",distanceKm:18.6,estimatedTimeMin:35,cost:93e3,date:"26 Mei 2025, 10:30"},{id:"h2",clientLocation:"Hotel Indonesia Kempinski",addressDetail:"Jl. M.H. Thamrin, Jakarta Pusat",distanceKm:12.2,estimatedTimeMin:28,cost:61e3,date:"24 Mei 2025, 16:45"},{id:"h3",clientLocation:"Gedung Balai Sudirman",addressDetail:"Jl. Jenderal Sudirman, Jakarta Pusat",distanceKm:15.8,estimatedTimeMin:32,cost:79e3,date:"22 Mei 2025, 09:15"}]),Ye=Q=>{let Mt=Math.max(0,Q-C.gratisKm)*C.tarifPerKm;return Q>C.gratisKm&&Mt<C.tarifMinimum?Mt=C.tarifMinimum:Q<=C.gratisKm&&(Mt=0),Q>30&&(Mt+=C.biayaLuarKota),Math.round(Mt)},De=Ye(R),ht=Math.max(0,R-C.gratisKm),_e=()=>{_(!0),setTimeout(()=>{_(!1);const Q=Ye(R),ve={id:"h_"+Date.now(),clientLocation:A.split(",")[0]||"Lokasi Client",addressDetail:A.split(",").slice(1).join(",").trim()||A,distanceKm:R,estimatedTimeMin:G,cost:Q,date:new Date().toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})};He(We=>[ve,...We.filter(Mt=>Mt.clientLocation!==ve.clientLocation)]),j(`Berhasil menghitung: Rp ${Q.toLocaleString("id-ID")} (${R} km)`)},600)},rt=()=>{const Q=["https://maps.google.com/?q=The+Westin+Jakarta","https://maps.google.com/?q=Hotel+Indonesia+Kempinski","https://maps.google.com/?q=Gedung+Balai+Sudirman","https://maps.google.com/?q=Ritz+Carlton+Pacific+Place"],ve=Q[Math.floor(Math.random()*Q.length)];f(ve),j("Link Google Maps berhasil ditempel!")},pt=Q=>{y(`${Q.name} - Sample Venue, Jakarta`),W(Q.distanceKm),ae(Q.estimatedTimeMin),j(`Memilih preset: ${Q.name} (${Q.distanceKm} km)`)},N=Q=>{He(ve=>ve.filter(We=>We.id!==Q)),j("Riwayat estimasi dihapus.")},ge=Q=>{const ve=`Estimasi Transport MUA:
📍 ${Q.clientLocation}
🚗 Jarak: ${Q.distanceKm} km (${Q.estimatedTimeMin} mnt)
💰 Ongkos: Rp ${Q.cost.toLocaleString("id-ID")}`;navigator.clipboard.writeText(ve),j("Ringkasan ongkos dikopi ke clipboard!")},Ae=Q=>{Q.preventDefault(),u(ve=>({...ve,tarifPerKm:k,gratisKm:ie,tarifMinimum:Ne,biayaLuarKota:F})),te(!1),j("Tarif transport berhasil diperbarui!")},ze=Q=>{Q.preventDefault(),o(J),M(B),Y(!1),j("Lokasi studio MUA berhasil diperbarui!")},O=Q=>{if(Q.preventDefault(),!Z)return;const ve=parseFloat(ue)||10,We={id:"preset_"+Date.now(),name:Z,icon:"📍",distanceKm:ve,estimatedTimeMin:Math.round(ve*2)};we(Mt=>[...Mt,We]),re(""),ne(""),le(!1),j("Preset baru berhasil ditambahkan!")};return e.jsxs("div",{className:"space-y-6 pb-28",children:[e.jsxs("div",{className:"bg-gradient-to-r from-pink-500/10 via-rose-500/5 to-pink-500/10 border border-pink-200/80 rounded-2xl p-4 sm:p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 shadow-xs",children:[e.jsxs("div",{className:"flex items-start gap-3.5",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(Jn,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm sm:text-base flex items-center gap-2",children:"Hitung ongkos transport otomatis"}),e.jsx("p",{className:"text-xs text-slate-600 mt-0.5 max-w-2xl leading-relaxed",children:"Masukkan link lokasi client dari Google Maps. Sistem akan menghitung jarak, estimasi waktu, dan ongkos transport sesuai tarif aktif kamu."})]})]}),e.jsxs("button",{onClick:()=>be(!0),className:"px-4 py-2 bg-white hover:bg-slate-50 text-slate-700 text-xs font-bold rounded-xl border border-slate-200/80 transition-colors shadow-xs flex items-center gap-1.5 shrink-0 cursor-pointer",children:[e.jsx(od,{className:"w-3.5 h-3.5 text-pink-600"}),e.jsx("span",{children:"Pelajari Lebih Lanjut"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 p-5 shadow-xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(vr,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-slate-900 text-sm",children:"Lokasi Kamu (MUA)"}),e.jsx("p",{className:"text-[11px] font-semibold text-slate-800",children:m})]})]}),e.jsxs("button",{onClick:()=>{fe(m),oe(S),Y(!0)},className:"px-3 py-1.5 text-xs font-bold text-[#EC167F] hover:bg-pink-50 rounded-lg transition-colors flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Sa,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Ubah"})]})]}),e.jsx("div",{className:"mt-3.5 space-y-2",children:e.jsxs("div",{className:"flex items-start gap-2 text-xs text-slate-600",children:[e.jsx(Ut,{className:"w-4 h-4 text-slate-400 shrink-0 mt-0.5"}),e.jsx("span",{children:S})]})})]}),e.jsxs("div",{className:"bg-pink-50/60 border border-pink-100 rounded-xl p-3 flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-full bg-white text-[#EC167F] flex items-center justify-center shadow-2xs",children:e.jsx(Qg,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-wider block",children:"Radius layanan"}),e.jsxs("span",{className:"text-xs font-extrabold text-slate-900",children:["0 – ",C.radiusMaxKm," km ",e.jsx("span",{className:"text-slate-500 font-normal text-[11px]",children:"dari lokasi kamu"})]})]})]}),e.jsx("button",{onClick:()=>{U(C.tarifPerKm),me(C.gratisKm),c(C.tarifMinimum),v(C.biayaLuarKota),te(!0)},className:"text-xs font-bold text-[#EC167F] hover:underline cursor-pointer",children:"Ubah"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 p-5 shadow-xs space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2.5 pb-3 border-b border-slate-100",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Ff,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-bold text-slate-900 text-sm",children:"Lokasi Client"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Paste Google Maps URL / Pilih lokasi terbaru"})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Link Google Maps"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"text",value:b,onChange:Q=>f(Q.target.value),placeholder:"Tempel link Google Maps dari client...",className:"w-full px-3.5 py-2 text-xs bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F] transition-all"}),e.jsxs("button",{onClick:rt,className:"px-3.5 py-2 bg-pink-50 hover:bg-pink-100 text-[#EC167F] text-xs font-bold rounded-xl border border-pink-200 transition-colors shrink-0 flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Ua,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tempel"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Lokasi terbaru"}),e.jsxs("select",{value:A,onChange:Q=>{y(Q.target.value),Q.target.value.includes("Westin")?(W(18.6),ae(35)):Q.target.value.includes("Kempinski")?(W(12.2),ae(28)):Q.target.value.includes("Sudirman")?(W(15.8),ae(32)):(W(24),ae(45))},className:"w-full px-3.5 py-2 text-xs bg-white border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F] cursor-pointer",children:[e.jsx("option",{value:"The Westin Jakarta, Jl. H. R. Rasuna Said Kav.C-22A, Kuningan, Jakarta Selatan",children:"The Westin Jakarta, Jl. H. R. Rasuna Said Kav.C-22A, Kuningan, Jakarta Selatan"}),e.jsx("option",{value:"Hotel Indonesia Kempinski, Jl. M.H. Thamrin No. 1, Jakarta Pusat",children:"Hotel Indonesia Kempinski, Jl. M.H. Thamrin No. 1, Jakarta Pusat"}),e.jsx("option",{value:"Gedung Balai Sudirman, Jl. Jenderal Sudirman, Jakarta Pusat",children:"Gedung Balai Sudirman, Jl. Jenderal Sudirman, Jakarta Pusat"}),e.jsx("option",{value:"Hotel Mulia Senayan, Jl. Asia Afrika, Gelora, Jakarta Pusat",children:"Hotel Mulia Senayan, Jl. Asia Afrika, Gelora, Jakarta Pusat"})]})]})]})]})]}),e.jsxs("button",{onClick:_e,disabled:T,className:"w-full py-3.5 bg-gradient-to-r from-[#EC167F] to-pink-600 hover:from-pink-600 hover:to-pink-700 text-white font-extrabold text-sm rounded-2xl shadow-md hover:shadow-lg transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-75",children:[e.jsx(Nm,{className:`w-4 h-4 ${T?"animate-spin":""}`}),e.jsx("span",{children:T?"Menghitung Jarak & Ongkos...":"Hitung Estimasi Transport"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3.5",children:[e.jsxs("div",{className:"bg-pink-50/80 border-2 border-pink-200 rounded-2xl p-4 flex items-center gap-3.5 shadow-2xs",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-[#EC167F] text-white flex items-center justify-center shrink-0 shadow-xs",children:e.jsx(Jn,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 uppercase tracking-tight block",children:"Total Ongkos Transport"}),e.jsxs("span",{className:"text-xl font-black text-[#EC167F]",children:["Rp ",De.toLocaleString("id-ID")]}),e.jsxs("span",{className:"text-[10px] font-semibold text-slate-500 block mt-0.5",children:["Termasuk gratis ",C.gratisKm," km"]})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 flex items-center gap-3.5 shadow-2xs",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-purple-100 text-purple-600 flex items-center justify-center shrink-0",children:e.jsx(Ut,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 uppercase tracking-tight block",children:"Jarak Tempuh"}),e.jsxs("span",{className:"text-xl font-black text-slate-900",children:[R.toString().replace(".",",")," km"]}),e.jsx("span",{className:"text-[10px] font-semibold text-slate-400 block mt-0.5",children:"Via rute tercepat"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 flex items-center gap-3.5 shadow-2xs",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-100 text-emerald-600 flex items-center justify-center shrink-0",children:e.jsx(Vt,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 uppercase tracking-tight block",children:"Estimasi Waktu"}),e.jsxs("span",{className:"text-xl font-black text-slate-900",children:[G," menit"]}),e.jsx("span",{className:"text-[10px] font-semibold text-slate-400 block mt-0.5",children:"Perjalanan normal"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 flex items-center gap-3.5 shadow-2xs",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-orange-100 text-orange-600 flex items-center justify-center shrink-0",children:e.jsx(Jn,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 uppercase tracking-tight block",children:"Tarif per KM"}),e.jsxs("span",{className:"text-xl font-black text-slate-900",children:["Rp ",C.tarifPerKm.toLocaleString("id-ID")]}),e.jsx("span",{className:"text-[10px] font-semibold text-slate-400 block mt-0.5",children:"Tarif aktif"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 flex items-center gap-3.5 shadow-2xs",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-100 text-emerald-600 flex items-center justify-center shrink-0",children:e.jsx(Yc,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 uppercase tracking-tight block",children:"Gratis Ongkir"}),e.jsxs("span",{className:"text-xl font-black text-slate-900",children:[C.gratisKm," km"]}),e.jsx("span",{className:"text-[10px] font-semibold text-slate-400 block mt-0.5",children:"Diterapkan"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 p-5 shadow-xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm mb-3.5 pb-2 border-b border-slate-100",children:"Rincian Perhitungan"}),e.jsxs("div",{className:"space-y-2.5 text-xs",children:[e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Total Jarak Tempuh"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[R.toString().replace(".",",")," km"]})]}),e.jsxs("div",{className:"flex justify-between text-emerald-600 font-semibold",children:[e.jsx("span",{children:"Gratis Ongkir"}),e.jsxs("span",{children:["- ",C.gratisKm," km"]})]}),e.jsxs("div",{className:"flex justify-between text-slate-600 pt-2 border-t border-slate-100",children:[e.jsx("span",{children:"Jarak Dikenakan Tarif"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[ht.toString().replace(".",",")," km"]})]}),e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Tarif per KM"}),e.jsxs("span",{className:"font-bold text-slate-900",children:["Rp ",C.tarifPerKm.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"mt-3 p-3 bg-pink-50/70 border border-pink-200/80 rounded-xl flex items-center justify-between",children:[e.jsx("span",{className:"font-bold text-[#EC167F] text-xs",children:"Biaya Transport Akhir"}),e.jsxs("span",{className:"font-black text-[#EC167F] text-base",children:["Rp ",De.toLocaleString("id-ID")]})]})]})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Tambahkan otomatis ke reservasi"}),e.jsx(km,{className:"w-3.5 h-3.5 text-slate-400",title:"Ongkos transport ini akan otomatis diisi saat membuat reservasi baru"})]}),e.jsx("button",{onClick:()=>$(!xe),className:`w-11 h-6 rounded-full transition-colors relative cursor-pointer ${xe?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("div",{className:`w-4 h-4 rounded-full bg-white absolute top-1 transition-transform ${xe?"left-6":"left-1"}`})})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 p-5 shadow-xs space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Tarif Aktif"}),e.jsx("button",{onClick:()=>{U(C.tarifPerKm),me(C.gratisKm),c(C.tarifMinimum),v(C.biayaLuarKota),te(!0)},className:"text-xs font-bold text-[#EC167F] hover:bg-pink-50 px-2.5 py-1 rounded-lg transition-colors cursor-pointer",children:"Ubah Tarif"})]}),e.jsxs("div",{className:"space-y-2.5 text-xs",children:[e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Tarif per KM"}),e.jsxs("span",{className:"font-extrabold text-slate-900",children:["Rp ",C.tarifPerKm.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Gratis KM"}),e.jsxs("span",{className:"font-extrabold text-slate-900",children:[C.gratisKm," km"]})]}),e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Tarif Minimum"}),e.jsxs("span",{className:"font-extrabold text-slate-900",children:["Rp ",C.tarifMinimum.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Biaya Luar Kota"}),e.jsxs("span",{className:"font-extrabold text-slate-900",children:["Rp ",C.biayaLuarKota.toLocaleString("id-ID")]})]}),e.jsxs("div",{className:"flex justify-between text-slate-600",children:[e.jsx("span",{children:"Biaya Tol (Opsional)"}),e.jsx("span",{className:"font-extrabold text-slate-900",children:C.biayaTol})]})]}),e.jsxs("div",{className:"p-3 bg-amber-50 border border-amber-200/70 rounded-xl flex items-start gap-2 text-amber-800 text-[11px] leading-snug",children:[e.jsx(Il,{className:"w-4 h-4 text-amber-600 shrink-0 mt-0.5"}),e.jsxs("span",{children:["Tarif berlaku untuk semua lokasi dalam radius layanan (",C.radiusMaxKm," km)."]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 p-5 shadow-xs space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Preset Lokasi Tersimpan"}),e.jsx("button",{onClick:()=>j("Kelola preset lokasi"),className:"text-xs font-bold text-[#EC167F] hover:bg-pink-50 px-2.5 py-1 rounded-lg transition-colors cursor-pointer",children:"Kelola"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2.5",children:Ce.map(Q=>e.jsxs("button",{onClick:()=>pt(Q),className:"p-3 bg-slate-50 hover:bg-pink-50 hover:border-pink-200 border border-slate-200 rounded-xl transition-all text-left flex items-center gap-2 cursor-pointer group",children:[e.jsx("span",{className:"text-base group-hover:scale-110 transition-transform",children:Q.icon}),e.jsxs("div",{className:"truncate",children:[e.jsx("span",{className:"font-bold text-xs text-slate-800 group-hover:text-[#EC167F] truncate block",children:Q.name}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-medium",children:[Q.distanceKm," km"]})]})]},Q.id))}),e.jsxs("button",{onClick:()=>le(!0),className:"w-full py-2.5 bg-pink-50/60 hover:bg-pink-100/70 text-[#EC167F] text-xs font-extrabold rounded-xl border border-dashed border-pink-300 transition-colors flex items-center justify-center gap-1.5 cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Preset Custom"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-xs overflow-hidden",children:[e.jsxs("div",{className:"p-4 sm:p-5 border-b border-slate-100 flex items-center justify-between",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm sm:text-base",children:"Riwayat Estimasi Terakhir"}),e.jsxs("span",{className:"text-xs font-bold text-slate-400",children:[ce.length," Lokasi tersimpan"]})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse min-w-[650px]",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50 text-[11px] font-extrabold text-slate-500 uppercase tracking-wider border-b border-slate-200/80",children:[e.jsx("th",{className:"py-3 px-4",children:"Lokasi Client"}),e.jsx("th",{className:"py-3 px-4",children:"Jarak"}),e.jsx("th",{className:"py-3 px-4",children:"Estimasi Waktu"}),e.jsx("th",{className:"py-3 px-4",children:"Ongkos Transport"}),e.jsx("th",{className:"py-3 px-4",children:"Tanggal"}),e.jsx("th",{className:"py-3 px-4 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs",children:ce.map(Q=>e.jsxs("tr",{className:"hover:bg-slate-50/80 transition-colors",children:[e.jsx("td",{className:"py-3.5 px-4 font-bold text-slate-900",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Ut,{className:"w-4 h-4 text-rose-500 shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("div",{children:Q.clientLocation}),e.jsx("div",{className:"text-[10px] text-slate-400 font-normal",children:Q.addressDetail})]})]})}),e.jsxs("td",{className:"py-3.5 px-4 font-bold text-slate-800",children:[Q.distanceKm.toString().replace(".",",")," km"]}),e.jsxs("td",{className:"py-3.5 px-4 text-slate-600 font-medium",children:[Q.estimatedTimeMin," menit"]}),e.jsxs("td",{className:"py-3.5 px-4 font-black text-[#EC167F]",children:["Rp ",Q.cost.toLocaleString("id-ID")]}),e.jsx("td",{className:"py-3.5 px-4 text-slate-500 text-[11px]",children:Q.date}),e.jsx("td",{className:"py-3.5 px-4 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-1.5",children:[e.jsx("button",{onClick:()=>ge(Q),className:"p-1.5 hover:bg-pink-50 text-pink-600 rounded-lg transition-colors cursor-pointer",title:"Copy Ringkasan",children:e.jsx(Ua,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>N(Q.id),className:"p-1.5 hover:bg-rose-50 text-rose-500 rounded-lg transition-colors cursor-pointer",title:"Hapus",children:e.jsx(ka,{className:"w-3.5 h-3.5"})})]})})]},Q.id))})]})})]}),e.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-slate-200/90 shadow-2xl p-3.5 sm:p-4 z-40",children:e.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-3",children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block",children:"Total Ongkos Transport"}),e.jsxs("span",{className:"text-xl font-black text-[#EC167F]",children:["Rp ",De.toLocaleString("id-ID")]})]})}),e.jsxs("div",{className:"flex items-center gap-2.5 w-full sm:w-auto",children:[e.jsx("button",{onClick:()=>{j("Tarif transport tersimpan ke pengaturan profil!")},className:"flex-1 sm:flex-none px-4 py-2.5 bg-white hover:bg-slate-50 text-pink-600 border border-pink-200 font-extrabold text-xs rounded-xl transition-colors cursor-pointer",children:"Simpan Sebagai Tarif"}),e.jsxs("button",{onClick:_e,className:"flex-1 sm:flex-none px-4 py-2.5 bg-white hover:bg-slate-50 text-slate-700 border border-slate-200 font-extrabold text-xs rounded-xl transition-colors flex items-center justify-center gap-1.5 cursor-pointer",children:[e.jsx(Ls,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Hitung Lagi"})]}),e.jsxs("button",{onClick:()=>{h?h():j(`Menggunakan ongkos Rp ${De.toLocaleString("id-ID")} di formulir reservasi!`)},className:"flex-1 sm:flex-none px-5 py-2.5 bg-gradient-to-r from-[#EC167F] to-pink-600 hover:from-pink-600 hover:to-pink-700 text-white font-extrabold text-xs rounded-xl shadow-sm transition-all flex items-center justify-center gap-1.5 cursor-pointer",children:[e.jsx("span",{children:"Gunakan di Reservasi"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]})]})]})}),D&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/50 backdrop-blur-xs z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full p-5 shadow-2xl border border-slate-200 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("h3",{className:"font-extrabold text-slate-900 text-base flex items-center gap-2",children:[e.jsx(vr,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Ubah Lokasi Studio MUA"})]}),e.jsx("button",{onClick:()=>Y(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:ze,className:"space-y-3.5 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Nama Studio / Brand"}),e.jsx("input",{type:"text",value:J,onChange:Q=>fe(Q.target.value),className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Alamat Lengkap"}),e.jsx("textarea",{rows:3,value:B,onChange:Q=>oe(Q.target.value),className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>Y(!1),className:"px-4 py-2 border border-slate-200 text-slate-600 font-bold rounded-xl hover:bg-slate-50 cursor-pointer",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-4 py-2 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold rounded-xl shadow-xs cursor-pointer",children:"Simpan Lokasi"})]})]})]})}),se&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/50 backdrop-blur-xs z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full p-5 shadow-2xl border border-slate-200 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("h3",{className:"font-extrabold text-slate-900 text-base flex items-center gap-2",children:[e.jsx(Jn,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Ubah Pengaturan Tarif"})]}),e.jsx("button",{onClick:()=>te(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:Ae,className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Tarif per KM (Rp)"}),e.jsx("input",{type:"number",value:k,onChange:Q=>U(Number(Q.target.value)),className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Gratis KM Pertama"}),e.jsx("input",{type:"number",value:ie,onChange:Q=>me(Number(Q.target.value)),className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Tarif Minimum (Rp)"}),e.jsx("input",{type:"number",value:Ne,onChange:Q=>c(Number(Q.target.value)),className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Biaya Luar Kota (Rp)"}),e.jsx("input",{type:"number",value:F,onChange:Q=>v(Number(Q.target.value)),className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>te(!1),className:"px-4 py-2 border border-slate-200 text-slate-600 font-bold rounded-xl hover:bg-slate-50 cursor-pointer",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-4 py-2 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold rounded-xl shadow-xs cursor-pointer",children:"Simpan Tarif"})]})]})]})}),P&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/50 backdrop-blur-xs z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-sm w-full p-5 shadow-2xl border border-slate-200 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("h3",{className:"font-extrabold text-slate-900 text-sm flex items-center gap-2",children:[e.jsx(ct,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Tambah Preset Custom"})]}),e.jsx("button",{onClick:()=>le(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:O,className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Nama Preset (misal: Rumah Duka / Ballroom)"}),e.jsx("input",{type:"text",value:Z,onChange:Q=>re(Q.target.value),placeholder:"Contoh: Ballroom Hotel Bintang 5",className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Estimasi Jarak (km)"}),e.jsx("input",{type:"number",step:"0.1",value:ue,onChange:Q=>ne(Q.target.value),placeholder:"Contoh: 15.5",className:"w-full px-3 py-2 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#EC167F]/20 focus:border-[#EC167F]",required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>le(!1),className:"px-4 py-2 border border-slate-200 text-slate-600 font-bold rounded-xl hover:bg-slate-50 cursor-pointer",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-4 py-2 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold rounded-xl shadow-xs cursor-pointer",children:"Simpan Preset"})]})]})]})}),pe&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/50 backdrop-blur-xs z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full p-5 shadow-2xl border border-slate-200 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-100",children:[e.jsxs("h3",{className:"font-extrabold text-slate-900 text-base flex items-center gap-2",children:[e.jsx(Ke,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Cara Kerja Estimasi Transport"})]}),e.jsx("button",{onClick:()=>be(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-3 text-xs text-slate-600 leading-relaxed",children:[e.jsx("p",{children:"Fitur ini membantu MUA dan Wedding Vendor menghitung ongkos perjalanan secara akurat dan transparan berdasarkan Google Maps API."}),e.jsxs("ul",{className:"list-disc pl-4 space-y-1.5 font-medium",children:[e.jsxs("li",{children:[e.jsx("strong",{className:"text-slate-900",children:"Google Maps Integration:"})," Cukup salin link lokasi venue dari WhatsApp/Google Maps client."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-slate-900",children:"Gratis KM:"})," KM pertama (misal 5 km) dipotong otomatis dari total jarak."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-slate-900",children:"Tarif Minimum & Luar Kota:"})," Menjamin pendapatan MUA tetap tertutup meskipun lokasi dekat/luar kota."]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-slate-900",children:"Auto-Apply:"})," Nilai ongkos transport langsung terhubung ke invoice & formulir reservasi."]})]})]}),e.jsx("div",{className:"pt-2 flex justify-end",children:e.jsx("button",{onClick:()=>be(!1),className:"px-4 py-2 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold text-xs rounded-xl cursor-pointer",children:"Saya Mengerti"})})]})})]})},I1=({activeTab:h="website",setActiveTab:j=S=>{},triggerToast:m=S=>{},onNavigateToPublicForm:o})=>{const S=B=>B==="website_preview"?"preview":B==="website_edit"?"edit":B==="website_konten"?"konten":B==="website_seo"?"seo":B==="website_domain"?"domain":B==="website_analytics"?"analytics":"dashboard",[M,C]=d.useState(S(h));ld.useEffect(()=>{C(S(h))},[h]);const u=B=>{C(B);let oe="website_dashboard";B==="preview"?oe="website_preview":B==="edit"?oe="website_edit":B==="konten"?oe="website_konten":B==="seo"?oe="website_seo":B==="domain"?oe="website_domain":B==="analytics"&&(oe="website_analytics"),j(oe)},[b,f]=d.useState(!1),[A,y]=d.useState("desktop"),[R,W]=d.useState("7_hari"),[G,ae]=d.useState(!1),[xe,$]=d.useState(!1),[T,_]=d.useState("hero"),[D,Y]=d.useState(!0),[se,te]=d.useState("desktop"),[P,le]=d.useState({studioName:"Glamour Makeup Artist",brandSubtitle:"MAKEUP ARTIST",subdomain:"glamour",lastUpdated:"24 Mei 2025, 14:30 WIB",isOnline:!0,heroBadge:"MUA PROFESIONAL",heroTitlePrefix:"Wujudkan Pesona Terbaik di Hari",heroTitleHighlight:"Spesialmu",heroSubtitle:"Makeup profesional untuk setiap momen berharga Anda. Tampil flawless, percaya diri, dan berkesan sepanjang hari.",heroImage:"https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=1200",primaryCtaText:"Reservasi Sekarang",secondaryCtaText:"Lihat Portofolio",stats:[{id:"1",number:"5+",label:"Tahun Pengalaman"},{id:"2",number:"1000+",label:"Klien Puas"},{id:"3",number:"4.9",label:"Rating Terbaik"},{id:"4",number:"Bersertifikat",label:"MUA Profesional"}],servicesEyebrow:"LAYANAN SAYA",servicesTitle:"Layanan Makeup Profesional",servicesSubtitle:"Berbagai layanan terbaik untuk kebutuhan spesial Anda",services:[{id:"s1",title:"Makeup Pengantin",desc:"Makeup flawless untuk akad & resepsi, tampilan elegan sepanjang hari.",icon:"Heart"},{id:"s2",title:"Makeup Wisuda",desc:"Tampil cantik dan percaya diri di hari kelulusan yang berkesan.",icon:"Users"},{id:"s3",title:"Makeup Photoshoot",desc:"Makeup profesional untuk hasil foto yang sempurna dan memukau.",icon:"Sparkles"},{id:"s4",title:"Makeup Event",desc:"Tampil memukau untuk acara spesial seperti party, evening, dan lainnya.",icon:"Award"}],portfolioEyebrow:"PORTFOLIO",portfolioTitle:"Hasil Karya Terbaik",portfolioSubtitle:"Setiap tampilan dirancang dengan detail dan sentuhan profesional untuk hasil yang sempurna.",featuredPortfolioImage:"https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=800",portfolioGrid:[{id:"p1",url:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=600",title:"Flawless Bride"},{id:"p2",url:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=600",title:"Side Profile"},{id:"p3",url:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=600",title:"Hair & Makeup"},{id:"p4",url:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=600",title:"Look Galeri (+25)"}],testimonialsEyebrow:"TESTIMONI",testimonialsTitle:"Apa Kata Mereka",testimonialsSubtitle:"Kepuasan klien adalah prioritas utama saya",testimonials:[{id:"t1",text:"Makeupnya flawless banget, bertahan seharian dan semua orang compliment! Terima kasih banyak sudah bikin aku merasa paling spesial di hari bahagia ini ❤️",name:"Dewi Lestari",role:"Pengantin",avatar:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=200"},{id:"t2",text:"Hasil makeup wisudaku natural tapi tetap cantik di kamera. Banyak yang nanya makeupnya di mana. Recommended!",name:"Siska Amanda",role:"Wisudawati",avatar:"https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=200"},{id:"t3",text:"Professional, ramah, dan hasilnya sesuai ekspektasi. Puas banget dan pasti akan pakai lagi untuk acara berikutnya!",name:"Rina Putri",role:"Konsumen",avatar:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=200"}],bannerTitle:"Siap Tampil Memukau?",bannerSubtitle:"Yuk booking jadwal makeup Anda sekarang juga. Tanggal terbaik cepat penuh!",bannerCta:"Reservasi Sekarang",bannerBgImage:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=1200",address:"Jl. beauty No. 123, Jakarta Selatan",phone:"0812-3456-7890",email:"hello@glamourmua.com",instagram:"@glamour.mua",youtube:"Glamour MUA Official",tiktok:"@glamour.mua",operatingHours:"Setiap Hari: 08.00 - 20.00 WIB",metaTitle:"Glamour Makeup Artist | MUA & Bridal Specialist Jakarta",metaDescription:"Layanan MUA Profesional Jakarta melayani Makeup Pengantin, Wisuda, Engagement, & Event. Booking jadwal instant!",keywords:"Glamour MUA, MUA Jakarta, Makeup Pengantin, Makeup Wisuda, MUA Specialist"}),pe=`https://${P.subdomain}.muakita.com`,be=()=>{navigator.clipboard.writeText(pe),$(!0),m("Link website berhasil disalin ke clipboard!"),setTimeout(()=>$(!1),2e3)},J=()=>{m("Website MUA berhasil dipublikasikan dan status ONLINE!"),ae(!1)},fe=()=>e.jsxs("div",{className:"bg-[#FAF5F6] text-slate-800 font-sans min-h-screen selection:bg-rose-100 selection:text-rose-600",children:[e.jsx("header",{className:"sticky top-0 bg-white/90 backdrop-blur-md z-40 border-b border-rose-100/60 shadow-2xs",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 h-20 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-serif italic font-extrabold text-2xl text-[#EC167F] tracking-tight",children:"Glamour"}),e.jsx("span",{className:"text-[10px] font-extrabold tracking-widest text-slate-400 block -ml-1 mt-3 uppercase",children:P.brandSubtitle})]}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-7 text-xs font-semibold text-slate-600",children:[e.jsx("a",{href:"#beranda",className:"text-[#EC167F] font-bold",children:"Beranda"}),e.jsx("a",{href:"#tentang",className:"hover:text-[#EC167F] transition-colors",children:"Tentang Saya"}),e.jsx("a",{href:"#layanan",className:"hover:text-[#EC167F] transition-colors",children:"Layanan"}),e.jsx("a",{href:"#galeri",className:"hover:text-[#EC167F] transition-colors",children:"Galeri"}),e.jsx("a",{href:"#testimoni",className:"hover:text-[#EC167F] transition-colors",children:"Testimoni"}),e.jsx("a",{href:"#harga",className:"hover:text-[#EC167F] transition-colors",children:"Harga"}),e.jsx("a",{href:"#kontak",className:"hover:text-[#EC167F] transition-colors",children:"Kontak"})]}),e.jsx("button",{type:"button",onClick:o,className:"px-5 py-2.5 bg-[#EC167F] hover:bg-[#D41270] active:scale-95 text-white font-extrabold text-xs rounded-full shadow-md shadow-pink-500/20 transition-all cursor-pointer flex items-center gap-1.5",children:e.jsx("span",{children:P.primaryCtaText})})]})}),e.jsx("section",{id:"beranda",className:"relative pt-8 pb-16 md:pt-12 md:pb-24 overflow-hidden bg-gradient-to-b from-[#FAF5F6] via-[#FDF2F4] to-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 grid grid-cols-1 lg:grid-cols-12 gap-8 items-center",children:[e.jsxs("div",{className:"lg:col-span-6 space-y-6",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3.5 py-1 bg-white border border-rose-200/80 rounded-full text-[11px] font-bold text-[#EC167F] shadow-2xs",children:[e.jsx("span",{children:"☆"}),e.jsx("span",{children:P.heroBadge})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-black text-slate-900 tracking-tight leading-[1.15]",children:[P.heroTitlePrefix," ",e.jsx("span",{className:"font-serif italic font-normal text-[#EC167F]",children:P.heroTitleHighlight})]}),e.jsx("p",{className:"text-xs sm:text-sm text-slate-600 font-normal leading-relaxed max-w-lg",children:P.heroSubtitle}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsxs("button",{type:"button",onClick:o,className:"px-6 py-3 bg-[#EC167F] hover:bg-[#D41270] active:scale-95 text-white font-extrabold text-xs rounded-xl shadow-lg shadow-pink-500/25 transition-all cursor-pointer flex items-center gap-2",children:[e.jsx(Ie,{className:"w-4 h-4"}),e.jsx("span",{children:P.primaryCtaText})]}),e.jsx("a",{href:"#galeri",className:"px-6 py-3 bg-white hover:bg-rose-50 text-slate-700 font-extrabold text-xs rounded-xl border border-rose-200/80 transition-colors cursor-pointer flex items-center gap-1.5",children:e.jsx("span",{children:P.secondaryCtaText})})]}),e.jsx("div",{className:"pt-6 grid grid-cols-2 sm:grid-cols-4 gap-3 border-t border-rose-100",children:P.stats.map(B=>e.jsxs("div",{className:"p-2.5 bg-white/80 backdrop-blur-xs rounded-xl border border-rose-100/80",children:[e.jsx("span",{className:"text-sm font-black text-[#EC167F] block",children:B.number}),e.jsx("span",{className:"text-[10px] font-bold text-slate-500 block leading-tight",children:B.label})]},B.id))})]}),e.jsx("div",{className:"lg:col-span-6 relative flex justify-center",children:e.jsx("div",{className:"relative w-full max-w-md aspect-[4/5] rounded-3xl overflow-hidden shadow-2xl border-4 border-white",children:e.jsx("img",{src:P.heroImage,alt:"MUA Hero Model",referrerPolicy:"no-referrer",className:"w-full h-full object-cover"})})})]})}),e.jsx("section",{id:"layanan",className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 space-y-10",children:[e.jsxs("div",{className:"text-center space-y-2 max-w-xl mx-auto",children:[e.jsx("span",{className:"text-[11px] font-black tracking-widest text-[#EC167F] uppercase block",children:P.servicesEyebrow}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:P.servicesTitle}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:P.servicesSubtitle})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5",children:P.services.map(B=>e.jsxs("div",{className:"p-6 bg-[#FAF5F6] rounded-2xl border border-rose-100/80 shadow-2xs hover:shadow-md hover:border-pink-200 transition-all flex flex-col justify-between space-y-4 group",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-100/80 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ke,{className:"w-5 h-5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900 group-hover:text-[#EC167F] transition-colors",children:B.title}),e.jsx("p",{className:"text-xs text-slate-500 font-normal leading-relaxed",children:B.desc})]}),e.jsxs("button",{type:"button",onClick:o,className:"text-xs font-bold text-[#EC167F] flex items-center gap-1 group-hover:translate-x-1 transition-transform cursor-pointer pt-2",children:[e.jsx("span",{children:"Selengkapnya"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]})]},B.id))})]})}),e.jsx("section",{id:"galeri",className:"py-16 bg-[#FAF5F6]",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 space-y-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-end",children:[e.jsxs("div",{className:"lg:col-span-5 space-y-3",children:[e.jsx("span",{className:"text-[11px] font-black tracking-widest text-[#EC167F] uppercase block",children:P.portfolioEyebrow}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:P.portfolioTitle}),e.jsx("p",{className:"text-xs text-slate-600 font-medium leading-relaxed",children:P.portfolioSubtitle}),e.jsx("div",{className:"pt-2",children:e.jsxs("button",{type:"button",onClick:()=>m("Membuka seluruh galeri foto portofolio!"),className:"px-5 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all cursor-pointer inline-flex items-center gap-1.5",children:[e.jsx("span",{children:"Lihat Semua Galeri"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]})})]}),e.jsxs("div",{className:"lg:col-span-7 grid grid-cols-1 sm:grid-cols-12 gap-3",children:[e.jsx("div",{className:"sm:col-span-6 h-72 sm:h-80 rounded-2xl overflow-hidden border-2 border-white shadow-md relative group",children:e.jsx("img",{src:P.featuredPortfolioImage,alt:"Featured Look",referrerPolicy:"no-referrer",className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}),e.jsx("div",{className:"sm:col-span-6 grid grid-cols-2 gap-3",children:P.portfolioGrid.map((B,oe)=>e.jsxs("div",{className:"relative h-36 sm:h-38 rounded-2xl overflow-hidden border-2 border-white shadow-2xs group",children:[e.jsx("img",{src:B.url,alt:B.title,referrerPolicy:"no-referrer",className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),oe===3&&e.jsxs("div",{className:"absolute inset-0 bg-slate-950/60 backdrop-blur-xs flex flex-col items-center justify-center text-white p-2 text-center cursor-pointer",children:[e.jsx("span",{className:"text-base font-black",children:"+25"}),e.jsx("span",{className:"text-[10px] font-bold",children:"Lihat Semua"})]})]},B.id))})]})]})})}),e.jsx("section",{id:"testimoni",className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 space-y-10",children:[e.jsxs("div",{className:"text-center space-y-2 max-w-xl mx-auto",children:[e.jsx("span",{className:"text-[11px] font-black tracking-widest text-[#EC167F] uppercase block",children:P.testimonialsEyebrow}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:P.testimonialsTitle}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:P.testimonialsSubtitle})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:P.testimonials.map(B=>e.jsxs("div",{className:"p-6 bg-[#FAF5F6] rounded-2xl border border-rose-100/80 shadow-2xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("span",{className:"text-2xl font-serif text-[#EC167F] block",children:"“"}),e.jsx("p",{className:"text-xs text-slate-700 font-normal leading-relaxed",children:B.text})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-3 border-t border-rose-100/80",children:[e.jsx("img",{src:B.avatar,alt:B.name,className:"w-9 h-9 rounded-full object-cover border border-rose-200"}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xs font-black text-slate-900",children:B.name}),e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block",children:B.role})]})]})]},B.id))}),e.jsxs("div",{className:"flex justify-center items-center gap-2 pt-2",children:[e.jsx("span",{className:"w-6 h-2 rounded-full bg-[#EC167F]"}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-200"}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-200"})]})]})}),e.jsx("section",{className:"py-12 px-4 sm:px-6",children:e.jsxs("div",{className:"max-w-5xl mx-auto bg-gradient-to-r from-rose-100 via-pink-100 to-rose-50 rounded-3xl p-8 sm:p-12 border border-rose-200/80 shadow-sm relative overflow-hidden flex flex-col sm:flex-row items-center justify-between gap-6",children:[e.jsxs("div",{className:"space-y-3 max-w-md z-10",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:P.bannerTitle}),e.jsx("p",{className:"text-xs sm:text-sm text-slate-600 font-normal",children:P.bannerSubtitle}),e.jsx("div",{className:"pt-2",children:e.jsxs("button",{type:"button",onClick:o,className:"px-6 py-3 bg-[#EC167F] hover:bg-[#D41270] active:scale-95 text-white font-extrabold text-xs rounded-xl shadow-md transition-all cursor-pointer flex items-center gap-2",children:[e.jsx(Ie,{className:"w-4 h-4"}),e.jsx("span",{children:P.bannerCta})]})})]}),e.jsx("div",{className:"w-full sm:w-72 h-44 rounded-2xl overflow-hidden shadow-md border-2 border-white z-10 shrink-0",children:e.jsx("img",{src:P.bannerBgImage,alt:"Cosmetics brushes",className:"w-full h-full object-cover"})})]})}),e.jsxs("footer",{id:"kontak",className:"bg-white border-t border-rose-100 pt-12 pb-8 text-xs text-slate-600",children:[e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 grid grid-cols-1 md:grid-cols-12 gap-8 pb-10 border-b border-rose-100",children:[e.jsxs("div",{className:"md:col-span-4 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-serif italic font-extrabold text-2xl text-[#EC167F]",children:"Glamour"}),e.jsx("span",{className:"text-[10px] font-extrabold tracking-widest text-slate-400 block -ml-1 mt-3 uppercase",children:P.brandSubtitle})]}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed",children:"Makeup profesional untuk setiap momen spesial Anda. Tampil percaya diri, cantik, dan berkesan."}),e.jsxs("div",{className:"flex items-center gap-2 pt-1 text-slate-400",children:[e.jsx("a",{href:"#instagram",className:"p-2 rounded-full bg-rose-50 hover:text-[#EC167F] transition-colors",children:e.jsx(il,{className:"w-4 h-4"})}),e.jsx("a",{href:"#phone",className:"p-2 rounded-full bg-rose-50 hover:text-[#EC167F] transition-colors",children:e.jsx(va,{className:"w-4 h-4"})}),e.jsx("a",{href:"#youtube",className:"p-2 rounded-full bg-rose-50 hover:text-[#EC167F] transition-colors",children:e.jsx(Mm,{className:"w-4 h-4"})})]})]}),e.jsxs("div",{className:"md:col-span-2 space-y-3",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Navigasi"}),e.jsxs("ul",{className:"space-y-2 text-slate-500",children:[e.jsx("li",{children:e.jsx("a",{href:"#beranda",className:"hover:text-[#EC167F]",children:"Beranda"})}),e.jsx("li",{children:e.jsx("a",{href:"#tentang",className:"hover:text-[#EC167F]",children:"Tentang Saya"})}),e.jsx("li",{children:e.jsx("a",{href:"#layanan",className:"hover:text-[#EC167F]",children:"Layanan"})}),e.jsx("li",{children:e.jsx("a",{href:"#galeri",className:"hover:text-[#EC167F]",children:"Galeri"})}),e.jsx("li",{children:e.jsx("a",{href:"#testimoni",className:"hover:text-[#EC167F]",children:"Testimoni"})}),e.jsx("li",{children:e.jsx("a",{href:"#kontak",className:"hover:text-[#EC167F]",children:"Kontak"})})]})]}),e.jsxs("div",{className:"md:col-span-3 space-y-3",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Layanan"}),e.jsxs("ul",{className:"space-y-2 text-slate-500",children:[e.jsx("li",{children:"Makeup Pengantin"}),e.jsx("li",{children:"Makeup Wisuda"}),e.jsx("li",{children:"Makeup Photoshoot"}),e.jsx("li",{children:"Makeup Event"}),e.jsx("li",{children:"Kursus Makeup Private"})]})]}),e.jsxs("div",{className:"md:col-span-3 space-y-3",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Newsletter"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Dapatkan tips makeup dan info promo menarik dari kami."}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("input",{type:"email",placeholder:"Email Anda",className:"w-full px-3 py-2 bg-slate-50 border border-slate-200 rounded-xl text-xs focus:outline-none"}),e.jsx("button",{type:"button",onClick:()=>m("Terima kasih telah berlangganan newsletter!"),className:"w-full py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-2xs cursor-pointer",children:"Berlangganan"})]})]})]}),e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 pt-6 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 font-medium",children:[e.jsx("span",{children:"© 2025 Glamour Makeup Artist. All rights reserved."}),e.jsxs("span",{children:["Powered by ",e.jsx("strong",{className:"text-[#EC167F]",children:"MuaKita"})]})]})]})]});return e.jsxs("div",{className:"space-y-6 animate-in fade-in duration-300",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-1",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-black text-slate-900 tracking-tight",children:"Website Builder"}),e.jsx("p",{className:"text-xs font-medium text-slate-500",children:"Kelola dan kustomisasi tampilan website MUA profesional Anda"})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsxs("button",{type:"button",onClick:()=>f(!0),className:"px-4 py-2 bg-white hover:bg-slate-50 text-slate-700 font-extrabold text-xs rounded-xl border border-slate-200/90 shadow-2xs transition-all flex items-center gap-2 cursor-pointer",children:[e.jsx(Dt,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Preview Website"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>ae(!G),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Qn,{className:"w-4 h-4 fill-white"}),e.jsx("span",{children:"Publikasikan Website"}),e.jsx(ye,{className:"w-3.5 h-3.5 ml-0.5"})]}),G&&e.jsxs("div",{className:"absolute right-0 top-11 w-56 bg-white border border-slate-200 rounded-2xl shadow-xl p-1.5 z-50 text-xs",children:[e.jsxs("button",{type:"button",onClick:J,className:"w-full text-left px-3 py-2 rounded-xl hover:bg-pink-50 text-slate-800 font-extrabold flex items-center gap-2 cursor-pointer",children:[e.jsx(Ge,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Publikasikan Sekarang"})]}),e.jsxs("button",{type:"button",onClick:()=>{m("Draft disimpan!"),ae(!1)},className:"w-full text-left px-3 py-2 rounded-xl hover:bg-slate-50 text-slate-700 font-medium flex items-center gap-2 cursor-pointer",children:[e.jsx(Vl,{className:"w-4 h-4 text-slate-400"}),e.jsx("span",{children:"Simpan Perubahan ke Draft"})]})]})]})]})]}),e.jsx("div",{className:"flex items-center gap-1 bg-slate-100/80 p-1 rounded-2xl overflow-x-auto custom-scrollbar text-xs font-bold text-slate-600",children:[{id:"dashboard",label:"Dashboard Website",icon:Wc},{id:"preview",label:"Preview Web",icon:Dt},{id:"edit",label:"Edit Halaman",icon:Sa},{id:"konten",label:"Kelola Konten",icon:ja},{id:"seo",label:"SEO & Pengaturan",icon:td},{id:"domain",label:"Domain",icon:mt},{id:"analytics",label:"Analytics",icon:Mr}].map(B=>{const oe=B.icon,k=M===B.id;return e.jsxs("button",{type:"button",onClick:()=>u(B.id),className:`px-3.5 py-2 rounded-xl transition-all shrink-0 flex items-center gap-1.5 cursor-pointer ${k?"bg-white text-[#EC167F] font-extrabold shadow-2xs":"hover:text-slate-900 hover:bg-white/60"}`,children:[e.jsx(oe,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:B.label})]},B.id)})}),M==="dashboard"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-stretch",children:[e.jsxs("div",{className:"lg:col-span-3 bg-white p-5 rounded-3xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-700 block mb-2",children:"Status Website"}),e.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.jsxs("span",{className:"px-3 py-1 bg-emerald-50 text-emerald-600 border border-emerald-200/80 rounded-full text-xs font-extrabold flex items-center gap-1.5 shadow-2xs",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),e.jsx("span",{children:"Online"})]})}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("a",{href:pe,target:"_blank",rel:"noreferrer",className:"text-xs font-bold text-[#EC167F] hover:underline flex items-center gap-1 break-all",children:[e.jsx("span",{children:pe}),e.jsx(Wl,{className:"w-3.5 h-3.5 shrink-0"})]}),e.jsxs("button",{type:"button",onClick:be,className:"text-[10px] font-extrabold text-slate-400 hover:text-slate-600 flex items-center gap-1 transition-colors cursor-pointer pt-0.5",children:[xe?e.jsx(Me,{className:"w-3 h-3 text-emerald-600"}):e.jsx(Ua,{className:"w-3 h-3"}),e.jsx("span",{children:xe?"Link Tersalin":"Salin Alamat Website"})]})]})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 text-[11px] text-slate-400 font-medium",children:["Terakhir diperbarui:",e.jsx("span",{className:"block font-bold text-slate-600",children:P.lastUpdated})]})]}),e.jsxs("div",{className:"lg:col-span-5 bg-[#FAF5F6] rounded-3xl overflow-hidden shadow-md relative group flex flex-col justify-between border border-rose-200",children:[e.jsxs("div",{className:"bg-white px-4 py-2.5 flex items-center justify-between border-b border-rose-100 text-slate-800",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-rose-400"}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-amber-400"}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400"}),e.jsx("span",{className:"font-serif italic font-extrabold text-xs text-[#EC167F] ml-1",children:P.studioName})]}),e.jsxs("div",{className:"hidden sm:flex items-center gap-2 text-[10px] font-medium text-slate-500",children:[e.jsx("span",{className:"text-[#EC167F] font-bold",children:"Beranda"}),e.jsx("span",{children:"Tentang"}),e.jsx("span",{children:"Layanan"}),e.jsx("span",{children:"Galeri"})]}),e.jsx("button",{type:"button",onClick:o,className:"px-2.5 py-1 bg-[#EC167F] text-white text-[10px] font-extrabold rounded-full cursor-pointer hover:bg-[#D41270]",children:"Booking Now"})]}),e.jsxs("div",{className:"relative p-6 flex-1 flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"space-y-2 max-w-[210px] z-10",children:[e.jsxs("span",{className:"text-[9px] font-bold text-[#EC167F] uppercase tracking-wider block",children:["☆ ",P.heroBadge]}),e.jsxs("h2",{className:"text-base font-black text-slate-900 leading-snug",children:[P.heroTitlePrefix," ",e.jsx("span",{className:"font-serif italic text-[#EC167F]",children:P.heroTitleHighlight})]}),e.jsx("p",{className:"text-[10px] text-slate-500 line-clamp-2",children:P.heroSubtitle}),e.jsx("div",{className:"pt-1",children:e.jsx("button",{type:"button",onClick:()=>f(!0),className:"px-3 py-1 bg-[#EC167F] hover:bg-[#D41270] text-white text-[10px] font-extrabold rounded-lg shadow-xs cursor-pointer",children:"Buka Full Website"})})]}),e.jsx("div",{className:"w-28 h-36 rounded-2xl overflow-hidden shadow-sm border-2 border-white shrink-0 z-10",children:e.jsx("img",{src:P.heroImage,alt:"Hero Preview",className:"w-full h-full object-cover"})})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white p-5 rounded-3xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-900",children:"Performa Website"}),e.jsxs("select",{value:R,onChange:B=>W(B.target.value),className:"text-[11px] font-bold bg-slate-100 border border-slate-200/80 rounded-xl px-2.5 py-1 text-slate-700 focus:outline-none cursor-pointer",children:[e.jsx("option",{value:"7_hari",children:"7 Hari Terakhir"}),e.jsx("option",{value:"30_hari",children:"30 Hari Terakhir"}),e.jsx("option",{value:"3_bulan",children:"3 Bulan Terakhir"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 pt-1",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block",children:"Pengunjung"}),e.jsx("span",{className:"text-base font-black text-slate-900 block leading-tight",children:"1.248"}),e.jsxs("span",{className:"text-[10px] font-black text-emerald-600 flex items-center gap-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 24.5%"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block",children:"Reservasi"}),e.jsx("span",{className:"text-base font-black text-slate-900 block leading-tight",children:"32"}),e.jsxs("span",{className:"text-[10px] font-black text-emerald-600 flex items-center gap-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 18.2%"]})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block",children:"Conversion"}),e.jsx("span",{className:"text-base font-black text-slate-900 block leading-tight",children:"2.56%"}),e.jsxs("span",{className:"text-[10px] font-black text-emerald-600 flex items-center gap-0.5",children:[e.jsx($e,{className:"w-2.5 h-2.5"})," 12.6%"]})]})]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("div",{className:"h-20 w-full relative",children:e.jsxs("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 300 70",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"pinkGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#EC167F",stopOpacity:"0.25"}),e.jsx("stop",{offset:"100%",stopColor:"#EC167F",stopOpacity:"0.0"})]})}),e.jsx("path",{d:"M 10 50 L 50 30 L 90 45 L 130 20 L 170 38 L 210 28 L 250 48 L 290 15 L 290 70 L 10 70 Z",fill:"url(#pinkGrad)"}),e.jsx("path",{d:"M 10 50 L 50 30 L 90 45 L 130 20 L 170 38 L 210 28 L 250 48 L 290 15",fill:"none",stroke:"#EC167F",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),[[10,50],[50,30],[90,45],[130,20],[170,38],[210,28],[250,48],[290,15]].map((B,oe)=>e.jsx("circle",{cx:B[0],cy:B[1],r:"3",fill:"#EC167F",stroke:"#ffffff",strokeWidth:"1.5"},oe))]})}),e.jsxs("div",{className:"flex justify-between text-[9px] font-bold text-slate-400 pt-1",children:[e.jsx("span",{children:"18 Mei"}),e.jsx("span",{children:"19 Mei"}),e.jsx("span",{children:"20 Mei"}),e.jsx("span",{children:"21 Mei"}),e.jsx("span",{children:"22 Mei"}),e.jsx("span",{children:"23 Mei"}),e.jsx("span",{children:"24 Mei"})]})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Aksi Cepat"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",children:[{id:"edit",title:"Edit Halaman",desc:"Atur & kustomisasi section halaman",icon:Sa,bg:"bg-pink-100 text-[#EC167F]"},{id:"konten",title:"Kelola Konten",desc:"Kelola info kontak, sosial media, & bio",icon:ja,bg:"bg-emerald-100 text-emerald-600"},{id:"layanan",title:"Layanan MUA",desc:"Atur daftar & harga paket layanan",icon:Ke,bg:"bg-amber-100 text-amber-600"},{id:"seo",title:"SEO Google",desc:"Optimasi kata kunci pencarian",icon:Gt,bg:"bg-blue-100 text-blue-600"},{id:"domain",title:"Domain Website",desc:"Kelola subdomain & domain kustom",icon:mt,bg:"bg-purple-100 text-purple-600"},{id:"preview",title:"Preview Website",desc:"Lihat tampilan langsung di desktop & mobile",icon:Dt,bg:"bg-rose-100 text-rose-600"}].map(B=>{const oe=B.icon;return e.jsxs("button",{type:"button",onClick:()=>{B.id==="preview"?f(!0):B.id==="layanan"?j("layanan"):u(B.id)},className:"p-3.5 bg-white rounded-2xl border border-slate-200/80 shadow-2xs hover:shadow-md hover:border-pink-200 transition-all text-left group cursor-pointer flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("div",{className:`w-9 h-9 rounded-xl ${B.bg} flex items-center justify-center font-bold`,children:e.jsx(oe,{className:"w-4 h-4"})}),e.jsx(it,{className:"w-4 h-4 text-slate-300 group-hover:text-[#EC167F] transition-colors"})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900 group-hover:text-[#EC167F] transition-colors",children:B.title}),e.jsx("p",{className:"text-[10px] text-slate-400 font-medium leading-relaxed mt-0.5 line-clamp-2",children:B.desc})]})]},B.id)})})]}),e.jsxs("div",{className:"bg-gradient-to-r from-rose-50 via-white to-pink-50 p-6 rounded-3xl border border-rose-200/80 shadow-2xs flex flex-col md:flex-row items-center justify-between gap-6",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-[#EC167F] text-white flex items-center justify-center shrink-0 shadow-md shadow-pink-500/20 font-bold",children:e.jsx(Ke,{className:"w-6 h-6"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-sm font-black text-slate-900",children:"Template Resmi MUA Kita (Official)"}),e.jsx("span",{className:"px-2.5 py-0.5 bg-emerald-100 text-emerald-700 text-[10px] font-black rounded-full border border-emerald-200",children:"Aktif & Siap Pakai"})]}),e.jsxs("p",{className:"text-xs text-slate-600 leading-relaxed max-w-xl",children:["Website Anda menggunakan desain standar resmi ",e.jsx("strong",{children:"Glamour Beauty & Elegant"})," yang dirancang khusus untuk memamerkan portofolio riasan MUA, rincian layanan, testimoni klien, dan tombol reservasi online secara otomatis."]})]})]}),e.jsxs("button",{type:"button",onClick:()=>u("edit"),className:"px-5 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all shrink-0 cursor-pointer flex items-center gap-2",children:[e.jsx(Sa,{className:"w-4 h-4"}),e.jsx("span",{children:"Edit Isi Website"})]})]})]}),M==="preview"&&e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300",children:[e.jsxs("div",{className:"bg-slate-900 text-white p-4 sm:p-5 rounded-3xl shadow-xl flex flex-col sm:flex-row items-center justify-between gap-4 border border-slate-800",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-[#EC167F] flex items-center justify-center font-bold shrink-0 shadow-md shadow-pink-500/30",children:e.jsx(mt,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-sm font-black text-white",children:"Preview Web Website Builder Owner"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 text-[10px] font-extrabold rounded-full",children:"Live View Mode"})]}),e.jsx("p",{className:"text-xs text-slate-400 font-medium",children:"Tampilan penuh website MUA Anda persis seperti yang dilihat oleh calon klien"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-1 bg-slate-800 p-1 rounded-2xl border border-slate-700/80 text-xs",children:[e.jsxs("button",{type:"button",onClick:()=>y("desktop"),className:`px-3 py-1.5 rounded-xl font-extrabold flex items-center gap-1.5 transition-all cursor-pointer ${A==="desktop"?"bg-[#EC167F] text-white shadow-xs":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,children:[e.jsx(hm,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Desktop"})]}),e.jsxs("button",{type:"button",onClick:()=>y("mobile"),className:`px-3 py-1.5 rounded-xl font-extrabold flex items-center gap-1.5 transition-all cursor-pointer ${A==="mobile"?"bg-[#EC167F] text-white shadow-xs":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,children:[e.jsx(Sr,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Mobile"})]})]}),e.jsxs("button",{type:"button",onClick:be,className:"px-3.5 py-2 bg-slate-800 hover:bg-slate-700 text-slate-200 font-extrabold text-xs rounded-xl border border-slate-700 transition-colors flex items-center gap-1.5 cursor-pointer",children:[xe?e.jsx(Me,{className:"w-3.5 h-3.5 text-emerald-400"}):e.jsx(Ua,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:xe?"Tersalin":"Salin Link"})]}),e.jsxs("button",{type:"button",onClick:()=>u("edit"),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Sa,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Edit Isi Website"})]})]})]}),e.jsxs("div",{className:"bg-slate-200/90 p-2 sm:p-4 rounded-3xl border border-slate-300/80 shadow-inner flex flex-col items-center",children:[e.jsxs("div",{className:"w-full bg-slate-100 rounded-t-2xl p-2.5 border-b border-slate-200 flex items-center justify-between gap-3 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 px-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-rose-400"}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-amber-400"}),e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400"})]}),e.jsxs("div",{className:"px-3 py-1 bg-white border border-slate-200 rounded-xl font-mono text-[11px] text-slate-600 flex items-center gap-2 shadow-2xs",children:[e.jsx(mt,{className:"w-3 h-3 text-[#EC167F]"}),e.jsx("span",{children:pe})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-slate-500 font-bold text-[11px]",children:[e.jsx("button",{type:"button",onClick:()=>m("Refreshing preview..."),className:"p-1 hover:bg-slate-200 rounded-lg transition-colors cursor-pointer",children:e.jsx(Vt,{className:"w-3.5 h-3.5"})}),e.jsxs("button",{type:"button",onClick:()=>f(!0),className:"px-2.5 py-1 bg-white hover:bg-slate-50 border border-slate-200 rounded-lg text-slate-700 flex items-center gap-1 cursor-pointer",children:[e.jsx(Dt,{className:"w-3 h-3 text-[#EC167F]"}),e.jsx("span",{children:"Full Modal"})]})]})]}),e.jsx("div",{className:"w-full flex justify-center py-4 overflow-x-auto custom-scrollbar",children:e.jsxs("div",{className:`transition-all duration-300 bg-white shadow-2xl border border-slate-200/80 overflow-hidden ${A==="mobile"?"w-[390px] rounded-[40px] border-8 border-slate-800 my-4 shadow-pink-900/10":"w-full rounded-b-2xl"}`,children:[A==="mobile"&&e.jsx("div",{className:"bg-slate-800 h-6 w-full flex justify-center items-center",children:e.jsx("div",{className:"w-24 h-3.5 bg-slate-900 rounded-full"})}),fe()]})})]})]}),M==="edit"&&e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-300",children:[e.jsxs("div",{className:"bg-white p-5 rounded-3xl border border-slate-200/80 shadow-2xs flex flex-col md:flex-row md:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-[#EC167F] text-white flex items-center justify-center font-bold shrink-0 shadow-md shadow-pink-500/20",children:e.jsx(Sa,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Live Web Builder Owner Studio"}),e.jsxs("span",{className:"px-2.5 py-0.5 bg-emerald-100 text-emerald-700 text-[10px] font-black rounded-full border border-emerald-200 flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),e.jsx("span",{children:"Tersambung Real-time"})]})]}),e.jsxs("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:["Setiap ketikan dan perubahan gambar langsung ter-sync ke domain ",e.jsx("strong",{children:pe})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{type:"button",onClick:()=>Y(!D),className:`px-3.5 py-2 font-extrabold text-xs rounded-xl border transition-all cursor-pointer flex items-center gap-1.5 ${D?"bg-slate-900 text-white border-slate-900 shadow-2xs":"bg-white text-slate-700 border-slate-200 hover:bg-slate-50"}`,children:[e.jsx(Wc,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:D?"Split Screen ON":"Tampilkan Live Preview"})]}),e.jsxs("button",{type:"button",onClick:()=>f(!0),className:"px-3.5 py-2 bg-rose-50 hover:bg-rose-100 text-[#EC167F] font-extrabold text-xs rounded-xl border border-rose-200 transition-colors flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Dt,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Modal Preview"})]}),e.jsxs("button",{type:"button",onClick:()=>m("Seluruh kustomisasi website berhasil disimpan!"),className:"px-4 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Vl,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Simpan Website"})]})]})]}),e.jsx("div",{className:"bg-slate-100/90 p-1.5 rounded-2xl flex items-center gap-1 overflow-x-auto custom-scrollbar text-xs font-bold text-slate-600",children:[{id:"hero",label:"1. Hero Banner",icon:Ke},{id:"layanan",label:"2. Layanan MUA",icon:Nr},{id:"portfolio",label:"3. Galeri Portofolio",icon:ja},{id:"testimoni",label:"4. Testimoni Klien",icon:St},{id:"cta",label:"5. Banner CTA",icon:$l},{id:"footer",label:"6. Footer & Kontak",icon:mt}].map(B=>{const oe=B.icon,k=T===B.id;return e.jsxs("button",{type:"button",onClick:()=>_(B.id),className:`px-3.5 py-2 rounded-xl transition-all whitespace-nowrap cursor-pointer flex items-center gap-1.5 ${k?"bg-white text-[#EC167F] shadow-xs font-extrabold":"hover:text-slate-900 hover:bg-slate-200/50"}`,children:[e.jsx(oe,{className:`w-3.5 h-3.5 ${k?"text-[#EC167F]":"text-slate-400"}`}),e.jsx("span",{children:B.label})]},B.id)})}),e.jsxs("div",{className:`grid grid-cols-1 ${D?"lg:grid-cols-12 gap-6":"gap-6"}`,children:[e.jsxs("div",{className:`bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5 ${D?"lg:col-span-6":"w-full"}`,children:[T==="hero"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"border-b border-slate-100 pb-3",children:[e.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Kustomisasi Hero Banner"}),e.jsx("p",{className:"text-slate-500 text-[11px]",children:"Bagian paling atas yang pertama kali dilihat oleh calon klien MUA."})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3.5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Nama Studio / Brand MUA"}),e.jsx("input",{type:"text",value:P.studioName,onChange:B=>le({...P,studioName:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Badge Atas Hero"}),e.jsx("input",{type:"text",value:P.heroBadge,onChange:B=>le({...P,heroBadge:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Judul Utama Hero (Prefix)"}),e.jsx("input",{type:"text",value:P.heroTitlePrefix,onChange:B=>le({...P,heroTitlePrefix:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Kata Highlight (Cursive Pink)"}),e.jsx("input",{type:"text",value:P.heroTitleHighlight,onChange:B=>le({...P,heroTitleHighlight:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold text-[#EC167F] focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Tombol Utama CTA"}),e.jsx("input",{type:"text",value:P.primaryCtaText,onChange:B=>le({...P,primaryCtaText:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Deskripsi Singkat Subtitle Hero"}),e.jsx("textarea",{rows:3,value:P.heroSubtitle,onChange:B=>le({...P,heroSubtitle:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 focus:bg-white focus:border-[#EC167F] outline-none leading-relaxed"})]}),e.jsxs("div",{className:"sm:col-span-2 space-y-2",children:[e.jsx("label",{className:"block font-bold text-slate-700",children:"URL Foto Model Hero Utama"}),e.jsx("div",{className:"flex gap-2",children:e.jsx("input",{type:"text",value:P.heroImage,onChange:B=>le({...P,heroImage:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-mono text-[11px] focus:bg-white focus:border-[#EC167F] outline-none"})}),e.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"Pilihan Gambar Preset:"}),e.jsx("button",{type:"button",onClick:()=>le({...P,heroImage:"https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=1200"}),className:"px-2 py-1 bg-slate-100 hover:bg-pink-100 hover:text-[#EC167F] rounded-lg text-[10px] font-bold cursor-pointer",children:"Soft Bridal"}),e.jsx("button",{type:"button",onClick:()=>le({...P,heroImage:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=1200"}),className:"px-2 py-1 bg-slate-100 hover:bg-pink-100 hover:text-[#EC167F] rounded-lg text-[10px] font-bold cursor-pointer",children:"Glamour Studio"})]})]})]})]}),T==="layanan"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Kustomisasi Layanan MUA"}),e.jsx("p",{className:"text-slate-500 text-[11px]",children:"Atur judul paket dan deskripsi layanan riasan Anda."})]}),e.jsxs("button",{type:"button",onClick:()=>{const B={id:`s_${Date.now()}`,title:"Layanan Baru MUA",desc:"Deskripsi singkat layanan makeup terbaru Anda.",icon:"Sparkles"};le({...P,services:[...P.services,B]}),m("Layanan baru berhasil ditambahkan!")},className:"px-3 py-1.5 bg-[#EC167F] text-white font-extrabold text-[11px] rounded-xl cursor-pointer flex items-center gap-1",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tambah Layanan"})]})]}),e.jsx("div",{className:"space-y-3",children:P.services.map((B,oe)=>e.jsxs("div",{className:"p-3.5 border border-slate-200/80 rounded-2xl bg-slate-50/50 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"font-extrabold text-[#EC167F]",children:["Paket Layanan #",oe+1]}),P.services.length>1&&e.jsx("button",{type:"button",onClick:()=>{const k=P.services.filter(U=>U.id!==B.id);le({...P,services:k})},className:"text-rose-500 hover:underline font-bold text-[10px] cursor-pointer",children:"Hapus"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-[11px] font-bold text-slate-600 mb-1",children:"Nama Layanan"}),e.jsx("input",{type:"text",value:B.title,onChange:k=>{const U=[...P.services];U[oe].title=k.target.value,le({...P,services:U})},className:"w-full p-2 border rounded-xl bg-white font-bold"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-[11px] font-bold text-slate-600 mb-1",children:"Deskripsi Singkat Paket"}),e.jsx("textarea",{rows:2,value:B.desc,onChange:k=>{const U=[...P.services];U[oe].desc=k.target.value,le({...P,services:U})},className:"w-full p-2 border rounded-xl bg-white"})]})]},B.id))})]}),T==="portfolio"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Kelola Galeri Portofolio"}),e.jsx("p",{className:"text-slate-500 text-[11px]",children:"Upload dan ubah foto hasil karya riasan terbaik Anda."})]}),e.jsxs("button",{type:"button",onClick:()=>{const B={id:`p_${Date.now()}`,url:"https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=600",title:"Karya Terbaru MUA"};le({...P,portfolioGrid:[...P.portfolioGrid,B]}),m("Foto portofolio baru ditambahkan!")},className:"px-3 py-1.5 bg-[#EC167F] text-white font-extrabold text-[11px] rounded-xl cursor-pointer flex items-center gap-1",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tambah Foto"})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:P.portfolioGrid.map((B,oe)=>e.jsxs("div",{className:"p-3 border border-slate-200/80 rounded-2xl bg-slate-50/50 space-y-2",children:[e.jsxs("div",{className:"h-28 bg-slate-200 rounded-xl overflow-hidden relative",children:[e.jsx("img",{src:B.url,alt:B.title,className:"w-full h-full object-cover"}),e.jsx("button",{type:"button",onClick:()=>{const k=P.portfolioGrid.filter(U=>U.id!==B.id);le({...P,portfolioGrid:k})},className:"absolute top-1.5 right-1.5 p-1 bg-slate-900/80 text-white rounded-lg text-[9px] font-bold cursor-pointer",children:"Hapus"})]}),e.jsx("input",{type:"text",value:B.title,onChange:k=>{const U=[...P.portfolioGrid];U[oe].title=k.target.value,le({...P,portfolioGrid:U})},className:"w-full p-2 border rounded-xl bg-white font-bold",placeholder:"Judul Foto"}),e.jsx("input",{type:"text",value:B.url,onChange:k=>{const U=[...P.portfolioGrid];U[oe].url=k.target.value,le({...P,portfolioGrid:U})},className:"w-full p-2 border rounded-xl bg-white font-mono text-[10px]",placeholder:"URL Foto"})]},B.id))})]}),T==="testimoni"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Ulasan & Testimoni Klien"}),e.jsx("p",{className:"text-slate-500 text-[11px]",children:"Tampilkan kepuasan pengantin dan klien MUA Anda."})]}),e.jsxs("button",{type:"button",onClick:()=>{const B={id:`t_${Date.now()}`,text:"Hasil makeupnya memuaskan sekali dan tahan seharian!",name:"Klien MUA Baru",role:"Pengantin Bridal",avatar:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=200"};le({...P,testimonials:[...P.testimonials,B]}),m("Testimoni baru ditambahkan!")},className:"px-3 py-1.5 bg-[#EC167F] text-white font-extrabold text-[11px] rounded-xl cursor-pointer flex items-center gap-1",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tambah Ulasan"})]})]}),e.jsx("div",{className:"space-y-3",children:P.testimonials.map((B,oe)=>e.jsxs("div",{className:"p-3.5 border border-slate-200/80 rounded-2xl bg-slate-50/50 space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsx("input",{type:"text",value:B.name,onChange:k=>{const U=[...P.testimonials];U[oe].name=k.target.value,le({...P,testimonials:U})},className:"p-2 border rounded-xl bg-white font-bold",placeholder:"Nama Klien"}),e.jsx("input",{type:"text",value:B.role,onChange:k=>{const U=[...P.testimonials];U[oe].role=k.target.value,le({...P,testimonials:U})},className:"p-2 border rounded-xl bg-white font-bold text-slate-500",placeholder:"Role Klien"})]}),e.jsx("textarea",{rows:2,value:B.text,onChange:k=>{const U=[...P.testimonials];U[oe].text=k.target.value,le({...P,testimonials:U})},className:"w-full p-2 border rounded-xl bg-white leading-relaxed",placeholder:"Tuliskan ulasan ulasan klien"})]},B.id))})]}),T==="cta"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"border-b border-slate-100 pb-3",children:[e.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Kustomisasi Banner CTA Booking"}),e.jsx("p",{className:"text-slate-500 text-[11px]",children:"Banner ajakan reservasi jadwal riasan di bagian bawah website."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Judul Banner CTA"}),e.jsx("input",{type:"text",value:P.bannerTitle,onChange:B=>le({...P,bannerTitle:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Subtitle Banner"}),e.jsx("input",{type:"text",value:P.bannerSubtitle,onChange:B=>le({...P,bannerSubtitle:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 focus:bg-white focus:border-[#EC167F] outline-none"})]})]}),T==="footer"&&e.jsxs("div",{className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"border-b border-slate-100 pb-3",children:[e.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Kelola Informasi Kontak & Sosial Media"}),e.jsx("p",{className:"text-slate-500 text-[11px]",children:"Tampilkan lokasi studio, kontak WA, dan sosial media resmi Anda."})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Nomor WhatsApp Studio"}),e.jsx("input",{type:"text",value:P.phone,onChange:B=>le({...P,phone:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Username Instagram"}),e.jsx("input",{type:"text",value:P.instagram,onChange:B=>le({...P,instagram:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 font-bold focus:bg-white focus:border-[#EC167F] outline-none"})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Alamat Lengkap Studio MUA"}),e.jsx("input",{type:"text",value:P.address,onChange:B=>le({...P,address:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50 focus:bg-white focus:border-[#EC167F] outline-none"})]})]})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-between",children:[e.jsxs("span",{className:"text-[11px] font-bold text-slate-400 flex items-center gap-1",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-emerald-500"}),e.jsx("span",{children:"Perubahan tersimpan otomatis"})]}),e.jsxs("button",{type:"button",onClick:()=>m("Seluruh kustomisasi website berhasil disimpan ke server!"),className:"px-5 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-xs transition-all cursor-pointer flex items-center gap-1.5",children:[e.jsx(Vl,{className:"w-4 h-4"}),e.jsx("span",{children:"Simpan Website"})]})]})]}),D&&e.jsxs("div",{className:"lg:col-span-6 space-y-3 sticky top-20",children:[e.jsxs("div",{className:"bg-slate-900 text-white p-3.5 rounded-2xl flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(mt,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{className:"font-extrabold text-xs",children:"Live Sync Web Preview Pane"})]}),e.jsxs("div",{className:"flex items-center gap-1 bg-slate-800 p-1 rounded-xl text-[11px]",children:[e.jsx("button",{type:"button",onClick:()=>te("desktop"),className:`px-2.5 py-1 rounded-lg font-bold cursor-pointer transition-colors ${se==="desktop"?"bg-[#EC167F] text-white":"text-slate-400 hover:text-white"}`,children:"Desktop"}),e.jsx("button",{type:"button",onClick:()=>te("mobile"),className:`px-2.5 py-1 rounded-lg font-bold cursor-pointer transition-colors ${se==="mobile"?"bg-[#EC167F] text-white":"text-slate-400 hover:text-white"}`,children:"Mobile"})]})]}),e.jsx("div",{className:"bg-slate-200/90 p-2 sm:p-3 rounded-3xl border border-slate-300/80 shadow-inner max-h-[750px] overflow-y-auto custom-scrollbar flex justify-center",children:e.jsx("div",{className:`transition-all duration-300 bg-white shadow-xl overflow-hidden ${se==="mobile"?"w-[360px] rounded-[32px] border-4 border-slate-800 my-2":"w-full rounded-2xl"}`,children:fe()})})]})]})]}),M==="konten"&&e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Kelola Informasi Kontak & Lokasi Studio"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Nomor Telepon / WhatsApp"}),e.jsx("input",{type:"text",value:P.phone,onChange:B=>le({...P,phone:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Username Instagram"}),e.jsx("input",{type:"text",value:P.instagram,onChange:B=>le({...P,instagram:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50"})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Alamat Lengkap Studio"}),e.jsx("input",{type:"text",value:P.address,onChange:B=>le({...P,address:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50"})]})]}),e.jsx("button",{type:"button",onClick:()=>m("Konten informasi studio berhasil diperbarui!"),className:"px-4 py-2 bg-[#EC167F] text-white font-extrabold text-xs rounded-xl shadow-xs cursor-pointer",children:"Simpan Konten"})]}),M==="seo"&&e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5 max-w-2xl",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"SEO (Search Engine Optimization)"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Agar calon klien lebih mudah menemukan studio MUA Anda di Google."}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Meta Title (Judul Google)"}),e.jsx("input",{type:"text",value:P.metaTitle,onChange:B=>le({...P,metaTitle:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-bold text-slate-700 mb-1",children:"Meta Description"}),e.jsx("textarea",{rows:3,value:P.metaDescription,onChange:B=>le({...P,metaDescription:B.target.value}),className:"w-full p-2.5 border rounded-xl bg-slate-50"})]})]}),e.jsx("button",{type:"button",onClick:()=>m("Pengaturan SEO berhasil diperbarui!"),className:"px-4 py-2 bg-[#EC167F] text-white font-extrabold text-xs rounded-xl shadow-xs cursor-pointer",children:"Simpan SEO"})]}),M==="domain"&&e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5 max-w-2xl",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Pengaturan Subdomain MuaKita"}),e.jsxs("div",{className:"p-4 bg-slate-50 rounded-2xl border space-y-2 text-xs",children:[e.jsx("label",{className:"block font-bold text-slate-700",children:"Subdomain Resmi"}),e.jsxs("div",{className:"flex items-center gap-1 font-mono font-bold text-slate-900",children:[e.jsx("span",{children:"https://"}),e.jsx("input",{type:"text",value:P.subdomain,onChange:B=>le({...P,subdomain:B.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"")}),className:"p-1.5 border rounded-lg bg-white"}),e.jsx("span",{children:".muakita.com"})]})]}),e.jsx("button",{type:"button",onClick:()=>m("Domain berhasil disimpan!"),className:"px-4 py-2 bg-[#EC167F] text-white font-extrabold text-xs rounded-xl shadow-xs cursor-pointer",children:"Simpan Domain"})]}),M==="analytics"&&e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Analitik Pengunjung Website"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"p-4 bg-pink-50/60 border border-pink-100 rounded-2xl",children:[e.jsx("span",{className:"text-xs font-bold text-slate-500",children:"Total Pengunjung Hari Ini"}),e.jsx("span",{className:"text-2xl font-black text-[#EC167F] block mt-1",children:"184 Orang"})]}),e.jsxs("div",{className:"p-4 bg-emerald-50/60 border border-emerald-100 rounded-2xl",children:[e.jsx("span",{className:"text-xs font-bold text-slate-500",children:"Total Klik WhatsApp"}),e.jsx("span",{className:"text-2xl font-black text-emerald-600 block mt-1",children:"28 Klik"})]}),e.jsxs("div",{className:"p-4 bg-purple-50/60 border border-purple-100 rounded-2xl",children:[e.jsx("span",{className:"text-xs font-bold text-slate-500",children:"Total Form Submitted"}),e.jsx("span",{className:"text-2xl font-black text-purple-600 block mt-1",children:"12 Booking"})]})]})]}),b&&e.jsx("div",{className:"fixed inset-0 bg-slate-950/85 backdrop-blur-md z-50 flex items-center justify-center p-2 sm:p-6 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-6xl h-[92vh] rounded-3xl shadow-2xl flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"p-4 bg-slate-900 text-white flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"font-extrabold text-sm text-pink-400",children:[P.studioName," Preview"]}),e.jsx("span",{className:"text-xs font-mono text-slate-400 hidden sm:inline",children:pe})]}),e.jsxs("div",{className:"flex items-center gap-1 bg-slate-800 p-1 rounded-xl text-xs",children:[e.jsxs("button",{type:"button",onClick:()=>y("desktop"),className:`px-3 py-1 rounded-lg font-bold flex items-center gap-1 cursor-pointer ${A==="desktop"?"bg-[#EC167F] text-white":"text-slate-400 hover:text-white"}`,children:[e.jsx(hm,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Desktop"})]}),e.jsxs("button",{type:"button",onClick:()=>y("mobile"),className:`px-3 py-1 rounded-lg font-bold flex items-center gap-1 cursor-pointer ${A==="mobile"?"bg-[#EC167F] text-white":"text-slate-400 hover:text-white"}`,children:[e.jsx(Sr,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Mobile"})]})]}),e.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-3.5 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-extrabold rounded-xl cursor-pointer",children:"Tutup Preview"})]}),e.jsx("div",{className:"flex-1 bg-slate-100 overflow-y-auto p-4 flex justify-center custom-scrollbar",children:e.jsx("div",{className:`transition-all duration-300 bg-white rounded-2xl shadow-lg border border-slate-200/80 overflow-hidden ${A==="mobile"?"w-[385px]":"w-full"}`,children:fe()})})]})})]})},Y1=({activeTab:h,setActiveTab:j,triggerToast:m})=>{const o=()=>h==="pengaturan_form_publik"?"form_publik":h==="pengaturan_profil"?"profil":h==="pengaturan_operasional"?"operasional":h==="pengaturan_rekening"?"rekening":"semua",[S,M]=d.useState(o);d.useEffect(()=>{h==="pengaturan_form_publik"?M("form_publik"):h==="pengaturan_profil"?M("profil"):h==="pengaturan_operasional"?M("operasional"):h==="pengaturan_rekening"?M("rekening"):(h==="pengaturan"||h==="pengaturan_group")&&M("semua")},[h]);const C=p=>{M(p),j&&j(p==="form_publik"?"pengaturan_form_publik":p==="profil"?"pengaturan_profil":p==="operasional"?"pengaturan_operasional":p==="rekening"?"pengaturan_rekening":"pengaturan")},[u,b]=d.useState(()=>{try{const p=localStorage.getItem("tenant_public_form_config");if(p)return JSON.parse(p)}catch(p){console.error(p)}return{formTitle:"Form Reservasi Publik Mandiri (Customer Self-Service)",formSubtitle:"Pelanggan dapat mengisi data diri, memilih paket, lokasi, serta opsi pembayaran DP secara langsung.",studioName:"Glamour Touch Studio",studioTagline:"Official MuaKita Tenant",tenantIdCode:"TEN-GLAMOUR",studioAddress:"Beauty Studio, Lantai 2, Unit B2-05 (Akses Lift Barat)",studioDescription:"Glamour Touch Studio adalah studio kecantikan & MUA profesional yang menghadirkan sentuhan terbaik untuk setiap momen spesial Anda. Dengan tim makeup artist berpengalaman lebih dari 3 tahun, produk high-end internasional, dan teknik complexion flawless anti-luntur 18 jam.",bannerImage:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=800",galleryImage1:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=300",galleryImage2:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=300",galleryImage3:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=300",vipBadgeText:"Studio VIP AC",badgeChoiceText:"Tenan Pilihan",badgeVerifiedText:"MUA Verified",showAnnouncement:!0,announcementText:"⚡ Promo Bulan Ini: Dapatkan potongan DP 10% untuk pemesanan paket Wedding H-14!",ratingValue:"4.9",ratingCount:"256 Ulasan",yearsExperience:"3+ Tahun",satisfiedClients:"5.000+",certificationText:"MUA Pro Int.",featureTag1:"Garansi On-Time",featureTag2:"High-End Cosmetics",featureTag3:"Free Skincare Prep",statusBadgeText:"Buka",specializationText:"Bridal Makeup, Hairdo & Hijab Styling",advantagesText:"Flawless 18 jam, tahan air/keringat & ramah kulit sensitif",suitableForText:"Wedding, Engagement, Prewedding, Wisuda, & Event",operatingHoursText:"Setiap Hari: 09.00 - 20.00 WIB",socialMediaHandle:"@glamourtouch.studio",highlight1Title:"100% High-End Branded Cosmetics",highlight1Desc:"Menggunakan koleksi makeup original ternama seperti Dior, Charlotte Tilbury, Bobbi Brown, MAC, & Make Over untuk kesehatan kulit jangka panjang.",highlight2Title:"Standard Higienis Sterilisasi UV",highlight2Desc:"Setiap brush, sponge, dan aplikator dibersihkan dan disterilkan menggunakan UV Sanitizer Box sebelum berpindah ke klien berikutnya.",highlight3Title:"Langganan Influencer & Public Figure",highlight3Desc:"Telah dipercaya merias lebih dari 25+ Influencer & Figur Publik lokal untuk momen resepsi pernikahan, photo shoot, dan gala dinner.",highlight4Title:"Jaminan Punctuality (Tepat Waktu)",highlight4Desc:"Tim MUA kami bergaransi tiba 15 menit sebelum waktu pengerjaan. Proses riasan dikerjakan secara terstruktur tanpa mengulur jadwal acara.",highlight5Title:"Teknik Complexion Anti-Luntur 18 Jam",highlight5Desc:"Formula racikan khusus MUA profesional yang waterproof & sweatproof, tahan minyak seharian meski berada di venue outdoor/iklim tropis.",highlight6Title:"Free Touchup Kit & Softlens Import",highlight6Desc:"Setiap pemesanan Paket Wedding via portal MuaKita mendapatkan Complimentary Touchup Kit (lipcream, blotting paper) & Softlens gratis!",minDpPercent:30,homecareTransportFee:1e5,allowHomecare:!0,requireGmaps:!0,allowAdditionalPerson:!0,allowSocialTag:!0,bcaAccount:"8830-1928-3019 a.n. Glamour Touch Studio",mandiriAccount:"1270-0192-8301 a.n. Glamour Touch Studio",qrisAccount:"QRIS GLAMOUR TOUCH STUDIO",termsAndConditions:`1. Transfer DP minimal 30% untuk konfirmasi jadwal dan mengamankan slot MUA.
2. Pembatalan sepihak mengakibatkan DP hangus (Non-refundable).
3. Pelunasan sisa pembayaran dilakukan maksimal H-1 acara atau saat layanan selesai.`,clientNotes:"Mohon wajah sudah dibersihkan dari sisa makeup & bebas skincare tebal 15 menit sebelum kedatangan MUA.",submitButtonText:"Kirim Reservasi Sekarang",waAdminNumber:"081216613315",waTemplateMessage:"Halo {studio_name}, saya telah membuat reservasi online dengan kode {kode_booking} atas nama {nama_client} untuk tanggal {tanggal_acara}. Mohon verifikasi DP & konfirmasi slot ya!"}}),[f,A]=d.useState("Vivaz Make Up"),[y,R]=d.useState("Nur Khofifah"),[W,G]=d.useState("vivaz.makeup@gmail.com"),[ae,xe]=d.useState("+62"),[$,T]=d.useState("812-1661-3315"),[_,D]=d.useState("Paket Wedding"),[Y,se]=d.useState("2018"),[te,P]=d.useState("Melayani rias pengantin, lamaran, wisuda, photoshoot dan acara spesial lainnya dengan sentuhan profesional dan elegan."),[le,pe]=d.useState("Jl. Patimura 3E No.143 Sengon, Jombang, Jawa Timur, Indonesia"),[be,J]=d.useState("Jombang"),[fe,B]=d.useState("Jawa Timur"),[oe,k]=d.useState("61419"),[U,ie]=d.useState(!1),[me,Ne]=d.useState("#E91E63"),[c,F]=d.useState("#8E24AA"),[v,Z]=d.useState("Poppins"),[re,ue]=d.useState(null),[ne,Ce]=d.useState([{day:"Senin",isOpen:!0,openTime:"08:00",closeTime:"20:00",maxSlot:3},{day:"Selasa",isOpen:!0,openTime:"08:00",closeTime:"20:00",maxSlot:3},{day:"Rabu",isOpen:!0,openTime:"08:00",closeTime:"20:00",maxSlot:3},{day:"Kamis",isOpen:!0,openTime:"08:00",closeTime:"20:00",maxSlot:3},{day:"Jumat",isOpen:!0,openTime:"08:00",closeTime:"20:00",maxSlot:4},{day:"Sabtu",isOpen:!0,openTime:"06:00",closeTime:"21:00",maxSlot:6},{day:"Minggu",isOpen:!0,openTime:"06:00",closeTime:"21:00",maxSlot:6}]),[we,ce]=d.useState([{id:"1",bankName:"Bank BCA",accountNumber:"123-456-7890",accountName:"Nur Khofifah",isPrimary:!0,isQrCode:!0,qrCodeUrl:"https://images.unsplash.com/photo-1607604276583-eef5d076aa5f?auto=format&fit=crop&q=80&w=200",notes:"Utama untuk Transfer DP Wedding"},{id:"2",bankName:"Bank Mandiri",accountNumber:"987-654-3210",accountName:"Vivaz Make Up Studio",isPrimary:!1,isQrCode:!1,notes:"Rekening Operasional Studio"},{id:"3",bankName:"Bank BRI",accountNumber:"0012-01-002345-50-8",accountName:"Nur Khofifah",isPrimary:!1,isQrCode:!1}]),[He,Ye]=d.useState(!1),[De,ht]=d.useState(null),[_e,rt]=d.useState({bankName:"Bank BCA",accountNumber:"",accountName:"",isPrimary:!1,isQrCode:!1,notes:""}),[pt,N]=d.useState("0812-1661-3315"),[ge,Ae]=d.useState("@vivaz_makeup"),[ze,O]=d.useState("Vivaz Make Up"),[Q,ve]=d.useState("@vivaz_makeup"),[We,Mt]=d.useState("www.vivazmakeup.com"),[Oa,Zt]=d.useState("(GMT+07:00) Jakarta, Indonesia"),[zs,os]=d.useState("Rupiah (IDR) - Rp"),[Us,de]=d.useState("21 Mei 2025 (DD MMM YYYY)"),[Qe,Ue]=d.useState(!0),[Ft,V]=d.useState(!1),[gt,Ba]=d.useState(!0),[oa,cs]=d.useState(!0),[rl,ds]=d.useState(!1),[Da,Os]=d.useState(!1),Hs=p=>{p&&p.preventDefault(),Os(!0);try{localStorage.setItem("tenant_public_form_config",JSON.stringify(u))}catch(at){console.error(at)}setTimeout(()=>{Os(!1),m("Seluruh perubahan pengaturan bisnis & Form Publik berhasil disimpan!")},600)},Er=()=>{m("Pengaturan dikembalikan ke awal.")},ti=()=>{m("Mengunduh berkas backup data bisnis (JSON/ZIP)...")},Xl=p=>{Ce(at=>at.map((Xe,jt)=>jt===p?{...Xe,isOpen:!Xe.isOpen}:Xe))},Ha=(p,at,Xe)=>{Ce(jt=>jt.map((Rt,xs)=>xs===p?{...Rt,[at]:Xe}:Rt))},Tr=()=>{const p=ne[0];Ce(at=>at.map(Xe=>({...Xe,isOpen:!0,openTime:p.openTime,closeTime:p.closeTime}))),m("Jam buka Senin berhasil diterapkan ke seluruh hari!")},ai=()=>{ht(null),rt({bankName:"Bank BCA",accountNumber:"",accountName:y,isPrimary:we.length===0,isQrCode:!1,notes:""}),Ye(!0)},si=p=>{ht(p.id),rt({bankName:p.bankName,accountNumber:p.accountNumber,accountName:p.accountName,isPrimary:p.isPrimary,isQrCode:p.isQrCode,notes:p.notes||""}),Ye(!0)},li=()=>{if(!_e.accountNumber||!_e.accountName){m("Mohon lengkapi nomor rekening dan nama pemilik rekening!");return}if(De)ce(p=>p.map(at=>at.id===De?{...at,..._e}:_e.isPrimary?{...at,isPrimary:!1}:at)),m("Rekening bank berhasil diperbarui!");else{const p={id:Date.now().toString(),..._e};_e.isPrimary?ce(at=>at.map(Xe=>({...Xe,isPrimary:!1})).concat(p)):ce(at=>[...at,p]),m("Rekening bank baru berhasil ditambahkan!")}Ye(!1)},Zl=p=>{ce(at=>at.filter(Xe=>Xe.id!==p)),m("Rekening bank telah dihapus.")},en=p=>{ce(at=>at.map(Xe=>({...Xe,isPrimary:Xe.id===p}))),m("Rekening bank utama berhasil diubah.")};return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300 text-slate-800 pb-28",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-[#EC167F]/10 text-[#EC167F] flex items-center justify-center font-bold shrink-0 mt-0.5",children:e.jsx(td,{className:"w-5 h-5 stroke-[2.5]"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"text-xl font-black text-slate-900 tracking-tight",children:"Pengaturan Studio"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-50 text-emerald-700 text-[10px] font-extrabold rounded-md border border-emerald-200",children:"Studio Terverifikasi"})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium mt-0.5",children:"Kelola informasi bisnis, jam operasional, rekening bank pembayaran, dan branding studio Anda."})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-slate-100 p-1 rounded-xl self-start sm:self-center text-xs font-extrabold",children:[e.jsx("button",{type:"button",onClick:()=>C("semua"),className:`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${S==="semua"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:"Semua"}),e.jsx("button",{type:"button",onClick:()=>C("profil"),className:`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${S==="profil"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:"Profil & Branding"}),e.jsx("button",{type:"button",onClick:()=>C("operasional"),className:`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${S==="operasional"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:"Jam Buka"}),e.jsx("button",{type:"button",onClick:()=>C("rekening"),className:`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${S==="rekening"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:"Rekening Bank"}),e.jsxs("button",{type:"button",onClick:()=>C("form_publik"),className:`px-3 py-1.5 rounded-lg transition-all cursor-pointer flex items-center gap-1.5 ${S==="form_publik"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(mt,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Form Publik (Tenant)"})]})]})]}),(S==="semua"||S==="form_publik")&&e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-5",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(mt,{className:"w-4.5 h-4.5 stroke-[2.5]"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-extrabold text-slate-900",children:"Pengaturan Form Publik (Dinamis Tenan)"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Sesuaikan seluruh teks, banner, syarat DP, lokasi, & pesan otomatis WhatsApp untuk form booking publik tenan Anda."})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{type:"button",onClick:()=>{try{localStorage.setItem("tenant_public_form_config",JSON.stringify(u))}catch{}m("Pengaturan Form Publik berhasil disimpan!")},className:"px-3.5 py-1.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Vl,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Simpan Form Publik"})]}),e.jsxs("button",{type:"button",onClick:()=>{try{localStorage.setItem("tenant_public_form_config",JSON.stringify(u))}catch{}j&&j("form_reservasi_publik")},className:"px-3.5 py-1.5 bg-slate-900 hover:bg-slate-800 text-white rounded-xl text-xs font-extrabold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Wl,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Buka & Uji Form Publik"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[e.jsxs("div",{className:"space-y-4 bg-slate-50/70 p-4 rounded-2xl border border-slate-200/80",children:[e.jsxs("h3",{className:"text-xs font-extrabold text-slate-900 flex items-center gap-1.5 text-[#EC167F]",children:[e.jsx(Xn,{className:"w-4 h-4"}),e.jsx("span",{children:"1. Visual Banner, Foto Galeri & Identitas Studio"})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Judul Utama Form Booking"}),e.jsx("input",{type:"text",value:u.formTitle||"",onChange:p=>b({...u,formTitle:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]",placeholder:"Contoh: Form Reservasi Online Studio"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Nama Studio / Tenan Publik"}),e.jsx("input",{type:"text",value:u.studioName||"",onChange:p=>b({...u,studioName:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-black text-slate-900 focus:outline-none focus:border-[#EC167F]",placeholder:"Glamour Touch Studio"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Kode ID Tenan"}),e.jsx("input",{type:"text",value:u.tenantIdCode||"",onChange:p=>b({...u,tenantIdCode:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-mono text-slate-800 font-bold focus:outline-none focus:border-[#EC167F]",placeholder:"TEN-GLAMOUR"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Tagline / Sub-label Tenan"}),e.jsx("input",{type:"text",value:u.studioTagline||"",onChange:p=>b({...u,studioTagline:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-semibold text-slate-800 focus:outline-none focus:border-[#EC167F]",placeholder:"Official MuaKita Tenant"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Alamat Ringkas Studio"}),e.jsx("input",{type:"text",value:u.studioAddress||"",onChange:p=>b({...u,studioAddress:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:border-[#EC167F]",placeholder:"Beauty Studio, Lt. 2 Unit B2-05"})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("label",{className:"block text-slate-800 font-extrabold text-[11px]",children:"URL Foto Cover Main Banner"}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium",children:"Link Unsplash / CDN"})]}),e.jsx("input",{type:"text",value:u.bannerImage||"",onChange:p=>b({...u,bannerImage:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]",placeholder:"https://images.unsplash.com/photo-..."}),u.bannerImage&&e.jsxs("div",{className:"relative h-24 rounded-lg overflow-hidden border border-slate-200 mt-1",children:[e.jsx("img",{src:u.bannerImage,alt:"Preview Banner",referrerPolicy:"no-referrer",className:"w-full h-full object-cover object-top",onError:p=>{p.target.style.display="none"}}),e.jsx("span",{className:"absolute bottom-1 right-1 bg-black/60 text-white text-[9px] px-1.5 py-0.5 rounded font-bold",children:"Preview Banner"})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsx("span",{className:"block text-slate-800 font-extrabold text-[11px]",children:"3 Foto Thumbnail Galeri Studio (Di bawah Banner Utama):"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"URL Foto Galeri 1"}),e.jsx("input",{type:"text",value:u.galleryImage1||"",onChange:p=>b({...u,galleryImage1:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-mono text-[10px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"URL Foto Galeri 2"}),e.jsx("input",{type:"text",value:u.galleryImage2||"",onChange:p=>b({...u,galleryImage2:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-mono text-[10px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"URL Foto Galeri 3"}),e.jsx("input",{type:"text",value:u.galleryImage3||"",onChange:p=>b({...u,galleryImage3:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-mono text-[10px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-1.5 pt-1",children:[u.galleryImage1&&e.jsx("img",{src:u.galleryImage1,alt:"G1",className:"h-12 w-full object-cover rounded-md border"}),u.galleryImage2&&e.jsx("img",{src:u.galleryImage2,alt:"G2",className:"h-12 w-full object-cover rounded-md border"}),u.galleryImage3&&e.jsx("img",{src:u.galleryImage3,alt:"G3",className:"h-12 w-full object-cover rounded-md border"})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsx("span",{className:"block text-slate-800 font-extrabold text-[11px]",children:"Badge & Label Atas Gambar:"}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block",children:"Badge Kiri Top"}),e.jsx("input",{type:"text",value:u.badgeChoiceText||"",onChange:p=>b({...u,badgeChoiceText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[10px]",placeholder:"Tenan Pilihan"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block",children:"Badge Verified"}),e.jsx("input",{type:"text",value:u.badgeVerifiedText||"",onChange:p=>b({...u,badgeVerifiedText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[10px]",placeholder:"MUA Verified"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block",children:"Badge Kanan Bottom"}),e.jsx("input",{type:"text",value:u.vipBadgeText||"",onChange:p=>b({...u,vipBadgeText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[10px]",placeholder:"Studio VIP AC"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Deskripsi Profil Tenan"}),e.jsx("textarea",{rows:3,value:u.studioDescription||"",onChange:p=>b({...u,studioDescription:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-normal text-slate-700 leading-relaxed focus:outline-none focus:border-[#EC167F]",placeholder:"Tuliskan deskripsi keunggulan studio Anda..."})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-200 space-y-2",children:[e.jsx("span",{className:"font-bold text-slate-900 block text-[11px]",children:"Statistik / Rating Tampilan Banner:"}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-semibold block",children:"Rating"}),e.jsx("input",{type:"text",value:u.ratingValue||"",onChange:p=>b({...u,ratingValue:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold",placeholder:"4.9"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-semibold block",children:"Ulasan"}),e.jsx("input",{type:"text",value:u.ratingCount||"",onChange:p=>b({...u,ratingCount:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold",placeholder:"256 Ulasan"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-semibold block",children:"Pengalaman"}),e.jsx("input",{type:"text",value:u.yearsExperience||"",onChange:p=>b({...u,yearsExperience:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold",placeholder:"3+ Tahun"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-semibold block",children:"Pelanggan"}),e.jsx("input",{type:"text",value:u.satisfiedClients||"",onChange:p=>b({...u,satisfiedClients:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold",placeholder:"5.000+"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-semibold block",children:"Sertifikasi"}),e.jsx("input",{type:"text",value:u.certificationText||"",onChange:p=>b({...u,certificationText:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold",placeholder:"MUA Pro Int."})]})]})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-200 space-y-2",children:[e.jsx("span",{className:"font-bold text-slate-900 block text-[11px]",children:"3 Badge / Tag Highlight Di Bawah Statistik:"}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsx("input",{type:"text",value:u.featureTag1||"",onChange:p=>b({...u,featureTag1:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg font-bold text-[10px] text-slate-700",placeholder:"Garansi On-Time"}),e.jsx("input",{type:"text",value:u.featureTag2||"",onChange:p=>b({...u,featureTag2:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg font-bold text-[10px] text-slate-700",placeholder:"High-End Cosmetics"}),e.jsx("input",{type:"text",value:u.featureTag3||"",onChange:p=>b({...u,featureTag3:p.target.value}),className:"w-full p-1.5 bg-white border border-slate-200 rounded-lg font-bold text-[10px] text-slate-700",placeholder:"Free Skincare Prep"})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsx("span",{className:"block text-slate-800 font-extrabold text-[11px]",children:'Kartu Kanan "Tentang Tenan":'}),e.jsxs("div",{className:"space-y-2 text-[11px]",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"Status Studio"}),e.jsx("input",{type:"text",value:u.statusBadgeText||"",onChange:p=>b({...u,statusBadgeText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-emerald-700",placeholder:"Buka"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"Instagram Studio"}),e.jsx("input",{type:"text",value:u.socialMediaHandle||"",onChange:p=>b({...u,socialMediaHandle:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[#EC167F]",placeholder:"@glamourtouch.studio"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"Spesialisasi"}),e.jsx("input",{type:"text",value:u.specializationText||"",onChange:p=>b({...u,specializationText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium",placeholder:"Bridal Makeup, Hairdo & Hijab Styling"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"Keunggulan Utama"}),e.jsx("input",{type:"text",value:u.advantagesText||"",onChange:p=>b({...u,advantagesText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium",placeholder:"Flawless 18 jam, tahan air/keringat..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"Cocok Untuk"}),e.jsx("input",{type:"text",value:u.suitableForText||"",onChange:p=>b({...u,suitableForText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium",placeholder:"Wedding, Engagement, Prewedding, Wisuda, & Event"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] text-slate-500 font-bold block mb-0.5",children:"Jam Operasional"}),e.jsx("input",{type:"text",value:u.operatingHoursText||"",onChange:p=>b({...u,operatingHoursText:p.target.value}),className:"w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium",placeholder:"Setiap Hari: 09.00 - 20.00 WIB"})]})]})]})]})]}),e.jsxs("div",{className:"space-y-4 bg-slate-50/70 p-4 rounded-2xl border border-slate-200/80",children:[e.jsxs("h3",{className:"text-xs font-extrabold text-slate-900 flex items-center gap-1.5 text-[#EC167F]",children:[e.jsx(Ke,{className:"w-4 h-4"}),e.jsx("span",{children:"2. 6 Kartu Keunggulan Studio & Pengumuman"})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2.5",children:[e.jsx("span",{className:"block text-slate-800 font-extrabold text-[11px]",children:"Editor 6 Kartu Informasi Menarik & Keunggulan Studio (Di Bawah Banner):"}),e.jsxs("div",{className:"space-y-2 max-h-72 overflow-y-auto pr-1",children:[e.jsxs("div",{className:"p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-black text-[#EC167F] block",children:"Kartu 1"}),e.jsx("input",{type:"text",value:u.highlight1Title||"",onChange:p=>b({...u,highlight1Title:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]",placeholder:"Judul Kartu 1"}),e.jsx("textarea",{rows:2,value:u.highlight1Desc||"",onChange:p=>b({...u,highlight1Desc:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded text-[10px]",placeholder:"Deskripsi Kartu 1"})]}),e.jsxs("div",{className:"p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-black text-[#EC167F] block",children:"Kartu 2"}),e.jsx("input",{type:"text",value:u.highlight2Title||"",onChange:p=>b({...u,highlight2Title:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]",placeholder:"Judul Kartu 2"}),e.jsx("textarea",{rows:2,value:u.highlight2Desc||"",onChange:p=>b({...u,highlight2Desc:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded text-[10px]",placeholder:"Deskripsi Kartu 2"})]}),e.jsxs("div",{className:"p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-black text-[#EC167F] block",children:"Kartu 3"}),e.jsx("input",{type:"text",value:u.highlight3Title||"",onChange:p=>b({...u,highlight3Title:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]",placeholder:"Judul Kartu 3"}),e.jsx("textarea",{rows:2,value:u.highlight3Desc||"",onChange:p=>b({...u,highlight3Desc:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded text-[10px]",placeholder:"Deskripsi Kartu 3"})]}),e.jsxs("div",{className:"p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-black text-[#EC167F] block",children:"Kartu 4"}),e.jsx("input",{type:"text",value:u.highlight4Title||"",onChange:p=>b({...u,highlight4Title:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]",placeholder:"Judul Kartu 4"}),e.jsx("textarea",{rows:2,value:u.highlight4Desc||"",onChange:p=>b({...u,highlight4Desc:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded text-[10px]",placeholder:"Deskripsi Kartu 4"})]}),e.jsxs("div",{className:"p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-black text-[#EC167F] block",children:"Kartu 5"}),e.jsx("input",{type:"text",value:u.highlight5Title||"",onChange:p=>b({...u,highlight5Title:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]",placeholder:"Judul Kartu 5"}),e.jsx("textarea",{rows:2,value:u.highlight5Desc||"",onChange:p=>b({...u,highlight5Desc:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded text-[10px]",placeholder:"Deskripsi Kartu 5"})]}),e.jsxs("div",{className:"p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-black text-[#EC167F] block",children:"Kartu 6"}),e.jsx("input",{type:"text",value:u.highlight6Title||"",onChange:p=>b({...u,highlight6Title:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]",placeholder:"Judul Kartu 6"}),e.jsx("textarea",{rows:2,value:u.highlight6Desc||"",onChange:p=>b({...u,highlight6Desc:p.target.value}),className:"w-full p-1 bg-white border border-slate-200 rounded text-[10px]",placeholder:"Deskripsi Kartu 6"})]})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-bold text-slate-800 text-[11px]",children:"Tampilkan Announcement Banner Atas"}),e.jsx("button",{type:"button",onClick:()=>b({...u,showAnnouncement:!u.showAnnouncement}),className:`w-9 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${u.showAnnouncement?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("span",{className:`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${u.showAnnouncement?"left-4.5":"left-0.5"}`})})]}),u.showAnnouncement&&e.jsx("input",{type:"text",value:u.announcementText,onChange:p=>b({...u,announcementText:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:border-[#EC167F]",placeholder:"Contoh: Promo cashback DP 10%..."})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Minimal Persentase DP (%)"}),e.jsxs("select",{value:u.minDpPercent,onChange:p=>b({...u,minDpPercent:Number(p.target.value)}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-extrabold text-[#EC167F] focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:20,children:"20% dari Total Transaksi"}),e.jsx("option",{value:30,children:"30% dari Total Transaksi (Standar)"}),e.jsx("option",{value:50,children:"50% dari Total Transaksi"}),e.jsx("option",{value:100,children:"100% (Wajib Lunas Langsung)"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Biaya Transport On-Location (Rp)"}),e.jsx("input",{type:"number",value:u.homecareTransportFee,onChange:p=>b({...u,homecareTransportFee:Number(p.target.value)}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]",placeholder:"100000"})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Fitur Form Booking:"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-[11px]",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer font-bold text-slate-700",children:[e.jsx("input",{type:"checkbox",checked:u.allowHomecare,onChange:p=>b({...u,allowHomecare:p.target.checked}),className:"w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"}),e.jsx("span",{children:"Izinkan Layanan Homecare"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer font-bold text-slate-700",children:[e.jsx("input",{type:"checkbox",checked:u.requireGmaps,onChange:p=>b({...u,requireGmaps:p.target.checked}),className:"w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"}),e.jsx("span",{children:"Wajibkan Link Google Maps"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer font-bold text-slate-700",children:[e.jsx("input",{type:"checkbox",checked:u.allowAdditionalPerson,onChange:p=>b({...u,allowAdditionalPerson:p.target.checked}),className:"w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"}),e.jsx("span",{children:"Izinkan Tambah Orang"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer font-bold text-slate-700",children:[e.jsx("input",{type:"checkbox",checked:u.allowSocialTag,onChange:p=>b({...u,allowSocialTag:p.target.checked}),className:"w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"}),e.jsx("span",{children:"Tampilkan Opsi Tag Medsos"})]})]})]}),e.jsxs("div",{className:"p-3 bg-white rounded-xl border border-slate-200 space-y-2",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Rekening Pembayaran DP (Tampil di Step 4):"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-600 font-bold text-[10px] mb-0.5",children:"Rekening BCA"}),e.jsx("input",{type:"text",value:u.bcaAccount||"",onChange:p=>b({...u,bcaAccount:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",placeholder:"8830-1928-3019 a.n. Glamour Touch Studio"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-600 font-bold text-[10px] mb-0.5",children:"Rekening Mandiri"}),e.jsx("input",{type:"text",value:u.mandiriAccount||"",onChange:p=>b({...u,mandiriAccount:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",placeholder:"1270-0192-8301 a.n. Glamour Touch Studio"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-600 font-bold text-[10px] mb-0.5",children:"Keterangan / Nama QRIS"}),e.jsx("input",{type:"text",value:u.qrisAccount||"",onChange:p=>b({...u,qrisAccount:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",placeholder:"QRIS GLAMOUR TOUCH STUDIO"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Syarat & Kebijakan Pembatalan / DP"}),e.jsx("textarea",{rows:3,value:u.termsAndConditions,onChange:p=>b({...u,termsAndConditions:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-normal text-slate-700 text-[11px] leading-relaxed focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Catatan Persiapan untuk Pemesan"}),e.jsx("input",{type:"text",value:u.clientNotes,onChange:p=>b({...u,clientNotes:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-medium text-slate-800 text-[11px] focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"No WA Admin Konfirmasi"}),e.jsx("input",{type:"text",value:u.waAdminNumber,onChange:p=>b({...u,waAdminNumber:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]",placeholder:"081216613315"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Teks Tombol Submit Form"}),e.jsx("input",{type:"text",value:u.submitButtonText,onChange:p=>b({...u,submitButtonText:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-[#EC167F] focus:outline-none focus:border-[#EC167F]",placeholder:"Kirim Reservasi Sekarang"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Template Pesan Otomatis WhatsApp"}),e.jsx("textarea",{rows:2,value:u.waTemplateMessage,onChange:p=>b({...u,waTemplateMessage:p.target.value}),className:"w-full p-2 bg-white border border-slate-200 rounded-xl font-mono text-[11px] text-slate-700 focus:outline-none focus:border-[#EC167F]"}),e.jsxs("p",{className:"text-[10px] text-slate-400 font-medium mt-1",children:["Variabel: ",e.jsx("code",{className:"bg-slate-200 px-1 rounded text-slate-800 font-bold",children:"{studio_name}"}),", ",e.jsx("code",{className:"bg-slate-200 px-1 rounded text-slate-800 font-bold",children:"{kode_booking}"}),", ",e.jsx("code",{className:"bg-slate-200 px-1 rounded text-slate-800 font-bold",children:"{nama_client}"}),", ",e.jsx("code",{className:"bg-slate-200 px-1 rounded text-slate-800 font-bold",children:"{tanggal_acara}"}),"."]})]})]})]})]})]}),(S==="semua"||S==="profil")&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(is,{className:"w-3.5 h-3.5"})}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Informasi Bisnis"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Nama Bisnis"}),e.jsx("input",{type:"text",value:f,onChange:p=>A(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Nama Pemilik"}),e.jsx("input",{type:"text",value:y,onChange:p=>R(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Email Bisnis"}),e.jsx("input",{type:"email",value:W,onChange:p=>G(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Nomor Telepon"}),e.jsxs("div",{className:"flex gap-1.5",children:[e.jsxs("select",{value:ae,onChange:p=>xe(p.target.value),className:"bg-slate-50/70 border border-slate-200 rounded-xl text-xs font-bold px-2 py-2 text-slate-700 focus:outline-none",children:[e.jsx("option",{value:"+62",children:"+62"}),e.jsx("option",{value:"+1",children:"+1"}),e.jsx("option",{value:"+60",children:"+60"})]}),e.jsx("input",{type:"text",value:$,onChange:p=>T(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Kategori Utama"}),e.jsxs("select",{value:_,onChange:p=>D(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Paket Wedding",children:"Paket Wedding"}),e.jsx("option",{value:"Make Up Wisuda",children:"Make Up Wisuda"}),e.jsx("option",{value:"Rias Pengantin",children:"Rias Pengantin"}),e.jsx("option",{value:"Photoshoot & Event",children:"Photoshoot & Event"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Tahun Berdiri"}),e.jsxs("div",{className:"relative",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-3"}),e.jsx("input",{type:"text",value:Y,onChange:p=>se(p.target.value),className:"w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Deskripsi Bisnis"}),e.jsx("textarea",{rows:3,value:te,onChange:p=>P(p.target.value),maxLength:300,className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-medium text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F] resize-none"}),e.jsxs("div",{className:"text-right text-[10px] text-slate-400 font-bold mt-0.5",children:[te.length,"/300"]})]})]}),e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5 flex flex-col justify-between",children:[e.jsxs("div",{className:"space-y-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ut,{className:"w-3.5 h-3.5"})}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Alamat Bisnis"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Alamat Lengkap Studio"}),e.jsx("input",{type:"text",value:le,onChange:p=>pe(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Kota / Kabupaten"}),e.jsxs("select",{value:be,onChange:p=>J(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Jombang",children:"Jombang"}),e.jsx("option",{value:"Surabaya",children:"Surabaya"}),e.jsx("option",{value:"Malang",children:"Malang"}),e.jsx("option",{value:"Kediri",children:"Kediri"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Provinsi"}),e.jsxs("select",{value:fe,onChange:p=>B(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Jawa Timur",children:"Jawa Timur"}),e.jsx("option",{value:"Jawa Tengah",children:"Jawa Tengah"}),e.jsx("option",{value:"Jawa Barat",children:"Jawa Barat"}),e.jsx("option",{value:"DKI Jakarta",children:"DKI Jakarta"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Kode Pos"}),e.jsx("input",{type:"text",value:oe,onChange:p=>k(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{className:"relative rounded-2xl overflow-hidden border border-slate-200 bg-slate-100 h-28 flex flex-col items-center justify-center group cursor-pointer",onClick:()=>ie(!0),children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#cbd5e1_1px,transparent_1px)] [background-size:12px_12px] opacity-70"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/30 via-transparent to-transparent"}),e.jsxs("svg",{className:"absolute inset-0 w-full h-full opacity-30 stroke-slate-400 stroke-2",fill:"none",children:[e.jsx("path",{d:"M 0 40 Q 100 20 200 60 T 400 30"}),e.jsx("path",{d:"M 120 0 L 120 120"}),e.jsx("path",{d:"M 280 0 L 280 120"})]}),e.jsx("div",{className:"relative z-10 flex flex-col items-center",children:e.jsxs("div",{className:"relative flex items-center justify-center",children:[e.jsx("span",{className:"absolute w-6 h-6 rounded-full bg-[#EC167F]/30 animate-ping"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-[#EC167F] text-white flex items-center justify-center shadow-md",children:e.jsx(Ut,{className:"w-4 h-4"})})]})}),e.jsx("div",{className:"absolute bottom-2 inset-x-2 z-10",children:e.jsxs("button",{type:"button",onClick:p=>{p.stopPropagation(),ie(!0)},className:"w-full py-1.5 px-3 bg-white/90 hover:bg-white text-slate-800 rounded-xl text-[11px] font-extrabold shadow-2xs border border-slate-200 flex items-center justify-center gap-1.5 transition-all cursor-pointer",children:[e.jsx(Gf,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Ubah Lokasi di Peta"})]})})]})]}),e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(lg,{className:"w-3.5 h-3.5"})}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Logo & Branding"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"sm:col-span-5 space-y-2",children:[e.jsx("label",{className:"block text-slate-700 font-bold text-[11px]",children:"Logo Bisnis"}),e.jsx("div",{className:"bg-slate-50 border border-slate-200 rounded-2xl p-3 flex flex-col items-center justify-center text-center h-32 relative group",children:re?e.jsx("img",{src:re,alt:"Logo Preview",className:"max-h-20 object-contain"}):e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-tr from-amber-400 via-pink-500 to-purple-600 flex items-center justify-center text-white shadow-xs mb-1",children:e.jsx(Ke,{className:"w-5 h-5"})}),e.jsx("span",{className:"font-black text-slate-900 text-xs",children:"Vivaz Make Up"}),e.jsx("span",{className:"text-[9px] text-slate-400 font-extrabold uppercase tracking-widest",children:"MUA & ATTIRE"})]})}),e.jsxs("button",{type:"button",onClick:()=>m("Pilih logo baru dari komputer Anda..."),className:"w-full py-1.5 px-2 bg-white hover:bg-slate-50 border border-slate-200 rounded-xl text-[11px] font-bold text-slate-700 flex items-center justify-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Yn,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Ganti Logo"})]}),e.jsx("p",{className:"text-[9px] text-slate-400 font-semibold text-center",children:"PNG, JPG atau SVG. Maks 2MB"})]}),e.jsxs("div",{className:"sm:col-span-7 space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1.5 text-[11px]",children:"Warna Brand"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-600",children:"Warna Utama"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"color",value:me,onChange:p=>Ne(p.target.value),className:"w-6 h-6 rounded-lg cursor-pointer border-0 p-0"}),e.jsx("input",{type:"text",value:me,onChange:p=>Ne(p.target.value),className:"w-20 p-1 text-center bg-slate-50 border border-slate-200 rounded-lg text-xs font-mono font-bold text-slate-800"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-[11px] font-medium text-slate-600",children:"Warna Sekunder"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"color",value:c,onChange:p=>F(p.target.value),className:"w-6 h-6 rounded-lg cursor-pointer border-0 p-0"}),e.jsx("input",{type:"text",value:c,onChange:p=>F(p.target.value),className:"w-20 p-1 text-center bg-slate-50 border border-slate-200 rounded-lg text-xs font-mono font-bold text-slate-800"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Font Utama"}),e.jsxs("select",{value:v,onChange:p=>Z(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Poppins",children:"Poppins"}),e.jsx("option",{value:"Plus Jakarta Sans",children:"Plus Jakarta Sans"}),e.jsx("option",{value:"Inter",children:"Inter"}),e.jsx("option",{value:"Playfair Display",children:"Playfair Display"})]})]}),e.jsxs("div",{className:"pt-1",children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Favicon (Opsional)"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-pink-500 text-white flex items-center justify-center font-black text-xs shrink-0",children:"V"}),e.jsxs("button",{type:"button",onClick:()=>m("Pilih favicon baru..."),className:"flex-1 py-1.5 px-2 bg-white hover:bg-slate-50 border border-slate-200 rounded-xl text-[11px] font-bold text-slate-700 flex items-center justify-center gap-1.5 shadow-2xs cursor-pointer",children:[e.jsx(Yn,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Ganti Favicon"})]})]})]})]})]})]})]}),(S==="semua"||S==="operasional"||S==="rekening")&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4",children:[(S==="semua"||S==="operasional")&&e.jsxs("div",{className:`bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5 ${S==="operasional"?"lg:col-span-12":"lg:col-span-7"}`,children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2 pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Vt,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Jam Operasional & Hari Buka"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Atur jam operasional dan kuota booking per hari"})]})]}),e.jsxs("button",{type:"button",onClick:Tr,className:"px-2.5 py-1 bg-pink-50 hover:bg-pink-100 text-[#EC167F] rounded-lg text-[10px] font-extrabold transition-all border border-pink-200/60 flex items-center gap-1 self-start sm:self-center cursor-pointer",children:[e.jsx(Ke,{className:"w-3 h-3"}),e.jsx("span",{children:"Samakan Jam Buka"})]})]}),e.jsx("div",{className:"space-y-2",children:ne.map((p,at)=>e.jsxs("div",{className:`p-2.5 rounded-xl border transition-all flex flex-col sm:flex-row sm:items-center justify-between gap-2 text-xs ${p.isOpen?"bg-slate-50/60 border-slate-200":"bg-slate-100/50 border-slate-200/60 opacity-60"}`,children:[e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[e.jsx("button",{type:"button",onClick:()=>Xl(at),className:`w-9 h-5 rounded-full transition-colors relative cursor-pointer ${p.isOpen?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("span",{className:`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${p.isOpen?"left-4.5":"left-0.5"}`})}),e.jsx("span",{className:`font-black w-16 text-[12px] ${p.isOpen?"text-slate-900":"text-slate-400"}`,children:p.day}),e.jsx("span",{className:`px-2 py-0.5 text-[9px] font-black rounded-md ${p.isOpen?"bg-emerald-100 text-emerald-800":"bg-slate-200 text-slate-600"}`,children:p.isOpen?"BUKA":"TUTUP"})]}),p.isOpen?e.jsxs("div",{className:"flex items-center gap-2 flex-wrap sm:flex-nowrap",children:[e.jsxs("div",{className:"flex items-center gap-1 bg-white px-2 py-1 rounded-lg border border-slate-200",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold",children:"Buka:"}),e.jsx("input",{type:"time",value:p.openTime,onChange:Xe=>Ha(at,"openTime",Xe.target.value),className:"bg-transparent font-extrabold text-slate-800 focus:outline-none text-[11px]"})]}),e.jsx("span",{className:"text-slate-400 font-bold text-[10px]",children:"-"}),e.jsxs("div",{className:"flex items-center gap-1 bg-white px-2 py-1 rounded-lg border border-slate-200",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold",children:"Tutup:"}),e.jsx("input",{type:"time",value:p.closeTime,onChange:Xe=>Ha(at,"closeTime",Xe.target.value),className:"bg-transparent font-extrabold text-slate-800 focus:outline-none text-[11px]"})]}),e.jsxs("div",{className:"flex items-center gap-1 bg-white px-2 py-1 rounded-lg border border-slate-200",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold",children:"Maks Slot:"}),e.jsx("input",{type:"number",min:"1",max:"20",value:p.maxSlot,onChange:Xe=>Ha(at,"maxSlot",parseInt(Xe.target.value)||1),className:"w-8 bg-transparent font-extrabold text-slate-800 focus:outline-none text-[11px] text-center"})]})]}):e.jsx("span",{className:"text-[11px] font-semibold text-slate-400 italic",children:"Studio Tutup (Tidak Terima Booking)"})]},p.day))}),e.jsxs("div",{className:"p-2.5 bg-amber-50/70 border border-amber-200/60 rounded-xl flex items-start gap-2 text-[11px] text-amber-800 font-medium",children:[e.jsx(km,{className:"w-4 h-4 text-amber-600 shrink-0 mt-0.5"}),e.jsxs("span",{children:[e.jsx("strong",{children:"Info:"})," Calon pelanggan yang memesan dari Form Publik hanya dapat memilih slot jadwal sesuai jam operasional dan kuota harian yang Anda tetapkan di sini."]})]})]}),(S==="semua"||S==="rekening")&&e.jsxs("div",{className:`bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5 ${S==="rekening"?"lg:col-span-12":"lg:col-span-5"}`,children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ht,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Rekening Bank & QRIS Studio"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Tampil di invoice & form publik untuk transfer DP"})]})]}),e.jsxs("button",{type:"button",onClick:ai,className:"px-2.5 py-1 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-lg text-[10px] font-extrabold transition-all flex items-center gap-1 shadow-2xs cursor-pointer",children:[e.jsx(ct,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tambah Rekening"})]})]}),e.jsx("div",{className:"space-y-2.5",children:we.length===0?e.jsxs("div",{className:"p-6 text-center bg-slate-50 border border-dashed border-slate-200 rounded-xl space-y-1",children:[e.jsx(Ht,{className:"w-8 h-8 text-slate-300 mx-auto"}),e.jsx("p",{className:"text-xs font-bold text-slate-700",children:"Belum Ada Rekening Bank"}),e.jsx("p",{className:"text-[10px] text-slate-400",children:"Tambahkan rekening untuk mempermudah pembayaran transfer pelanggan"})]}):we.map(p=>e.jsxs("div",{className:`p-3 rounded-2xl border transition-all space-y-2 relative ${p.isPrimary?"bg-gradient-to-r from-pink-50/60 to-purple-50/40 border-pink-300 shadow-2xs":"bg-white border-slate-200 hover:border-slate-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-slate-900 text-white font-black text-[11px] flex items-center justify-center shrink-0",children:p.bankName.replace("Bank ","").slice(0,3)}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:p.bankName}),p.isPrimary&&e.jsx("span",{className:"px-1.5 py-0.2 bg-[#EC167F] text-white text-[9px] font-black rounded-md",children:"Utama"}),p.isQrCode&&e.jsxs("span",{className:"px-1.5 py-0.2 bg-purple-100 text-purple-700 text-[9px] font-bold rounded-md flex items-center gap-0.5",children:[e.jsx(pg,{className:"w-2.5 h-2.5"}),e.jsx("span",{children:"QRIS"})]})]}),e.jsxs("p",{className:"text-[10px] text-slate-500 font-medium",children:["a.n. ",p.accountName]})]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",onClick:()=>si(p),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-100 transition-colors",title:"Edit Rekening",children:e.jsx(Sa,{className:"w-3.5 h-3.5"})}),e.jsx("button",{type:"button",onClick:()=>Zl(p.id),className:"p-1 text-slate-400 hover:text-rose-600 rounded-lg hover:bg-rose-50 transition-colors",title:"Hapus Rekening",children:e.jsx(ka,{className:"w-3.5 h-3.5"})})]})]}),e.jsxs("div",{className:"flex items-center justify-between bg-white/80 p-2 rounded-xl border border-slate-200/80 font-mono text-xs",children:[e.jsx("span",{className:"font-bold text-slate-800 tracking-wider",children:p.accountNumber}),!p.isPrimary&&e.jsx("button",{type:"button",onClick:()=>en(p.id),className:"text-[10px] font-extrabold text-[#EC167F] hover:underline cursor-pointer",children:"Jadikan Utama"})]}),p.notes&&e.jsxs("p",{className:"text-[10px] text-slate-500 italic",children:["* ",p.notes]})]},p.id))})]})]}),(S==="semua"||S==="operasional")&&e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(va,{className:"w-3.5 h-3.5"})}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Kontak & Media Sosial"})]}),e.jsxs("div",{className:"space-y-2.5 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"WhatsApp Business"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-2.5 top-2.5 text-emerald-600",children:e.jsx(va,{className:"w-3.5 h-3.5"})}),e.jsx("input",{type:"text",value:pt,onChange:p=>N(p.target.value),className:"w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Instagram"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-2.5 top-2.5 text-pink-600",children:e.jsx(il,{className:"w-3.5 h-3.5"})}),e.jsx("input",{type:"text",value:ge,onChange:p=>Ae(p.target.value),className:"w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Facebook"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-2.5 top-2.5 text-blue-600",children:e.jsx(Xb,{className:"w-3.5 h-3.5"})}),e.jsx("input",{type:"text",value:ze,onChange:p=>O(p.target.value),className:"w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"TikTok"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-2.5 top-2.5 text-slate-900",children:e.jsx("span",{className:"font-black text-[11px] leading-none",children:"♪"})}),e.jsx("input",{type:"text",value:Q,onChange:p=>ve(p.target.value),className:"w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Website Studio"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-2.5 top-2.5 text-slate-500",children:e.jsx(mt,{className:"w-3.5 h-3.5"})}),e.jsx("input",{type:"text",value:We,onChange:p=>Mt(p.target.value),className:"w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]})]})]}),e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(td,{className:"w-3.5 h-3.5"})}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Pengaturan Sistem"})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Zona Waktu"}),e.jsxs("select",{value:Oa,onChange:p=>Zt(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"(GMT+07:00) Jakarta, Indonesia",children:"(GMT+07:00) Jakarta, Indonesia"}),e.jsx("option",{value:"(GMT+08:00) Makasar, Indonesia",children:"(GMT+08:00) Makasar, Indonesia"}),e.jsx("option",{value:"(GMT+09:00) Jayapura, Indonesia",children:"(GMT+09:00) Jayapura, Indonesia"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Mata Uang"}),e.jsxs("select",{value:zs,onChange:p=>os(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Rupiah (IDR) - Rp",children:"Rupiah (IDR) - Rp"}),e.jsx("option",{value:"US Dollar (USD) - $",children:"US Dollar (USD) - $"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1 text-[11px]",children:"Format Tanggal"}),e.jsxs("select",{value:Us,onChange:p=>de(p.target.value),className:"w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"21 Mei 2025 (DD MMM YYYY)",children:"21 Mei 2025 (DD MMM YYYY)"}),e.jsx("option",{value:"21/05/2025 (DD/MM/YYYY)",children:"21/05/2025 (DD/MM/YYYY)"}),e.jsx("option",{value:"2025-05-21 (YYYY-MM-DD)",children:"2025-05-21 (YYYY-MM-DD)"})]})]}),e.jsxs("div",{className:"space-y-2.5 pt-2 border-t border-slate-100",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Pembulatan Harga"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Dibulatkan ke kelipatan 1.000"})]}),e.jsx("button",{type:"button",onClick:()=>Ue(!Qe),className:`w-10 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${Qe?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("span",{className:`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${Qe?"left-5.5":"left-0.5"}`})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Booking Luar Jam Buka"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Booking manual di luar jam operasional"})]}),e.jsx("button",{type:"button",onClick:()=>V(!Ft),className:`w-10 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${Ft?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("span",{className:`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${Ft?"left-5.5":"left-0.5"}`})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Konfirmasi Otomatis DP"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Konfirmasi otomatis setelah upload mutasi"})]}),e.jsx("button",{type:"button",onClick:()=>cs(!oa),className:`w-10 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${oa?"bg-[#EC167F]":"bg-slate-300"}`,children:e.jsx("span",{className:`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${oa?"left-5.5":"left-0.5"}`})})]})]})]})]}),e.jsxs("div",{className:"bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3 flex flex-col justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-slate-100",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(ja,{className:"w-3.5 h-3.5"})}),e.jsx("h2",{className:"text-xs font-extrabold text-slate-900",children:"Dokumen & Lainnya"})]}),e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsxs("div",{onClick:()=>m("Membuka kelola Template Invoice..."),className:"p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between cursor-pointer group",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-slate-100 text-slate-600 flex items-center justify-center shrink-0",children:e.jsx(ja,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Template Invoice"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Kontrak & tanda terima"})]})]}),e.jsx(it,{className:"w-4 h-4 text-slate-400 group-hover:text-slate-600"})]}),e.jsxs("div",{onClick:()=>m("Membuka Syarat & Ketentuan bisnis..."),className:"p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between cursor-pointer group",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-slate-100 text-slate-600 flex items-center justify-center shrink-0",children:e.jsx(ef,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Syarat & Ketentuan DP"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Aturan pembatalan & reschedule"})]})]}),e.jsx(it,{className:"w-4 h-4 text-slate-400 group-hover:text-slate-600"})]})]})]}),e.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-100",children:[e.jsxs("div",{className:"p-2.5 rounded-xl border border-slate-100 flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-blue-50 text-blue-600 flex items-center justify-center shrink-0",children:e.jsx(Yl,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-slate-900 block text-[11px]",children:"Backup Data"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Unduh berkas JSON/ZIP"})]})]}),e.jsx("button",{type:"button",onClick:ti,className:"px-3 py-1.5 border border-rose-200 hover:border-rose-300 text-rose-600 hover:bg-rose-50 rounded-xl text-[11px] font-extrabold transition-all cursor-pointer shadow-2xs",children:"Backup"})]}),e.jsxs("div",{className:"p-2.5 rounded-xl border border-rose-100 bg-rose-50/30 flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-rose-100 text-rose-600 flex items-center justify-center shrink-0",children:e.jsx(ka,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-extrabold text-rose-600 block text-[11px]",children:"Hapus Akun"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"Hapus akun studio permanen"})]})]}),e.jsx("button",{type:"button",onClick:()=>ds(!0),className:"px-3 py-1.5 border border-rose-200 hover:border-rose-300 text-rose-600 hover:bg-rose-100/50 rounded-xl text-[11px] font-extrabold transition-all cursor-pointer shadow-2xs",children:"Hapus"})]})]})]})]}),e.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white/95 backdrop-blur-md border-t border-slate-200 p-3.5 shadow-lg",children:e.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-end gap-3",children:[e.jsx("button",{type:"button",onClick:Er,className:"px-5 py-2.5 bg-white border border-slate-200 hover:border-slate-300 text-slate-700 rounded-xl text-xs font-bold transition-all shadow-2xs cursor-pointer",children:"Batal"}),e.jsxs("button",{type:"button",onClick:Hs,disabled:Da,className:"px-6 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold transition-all shadow-xs flex items-center gap-2 cursor-pointer disabled:opacity-70",children:[Da?e.jsx(Ls,{className:"w-4 h-4 animate-spin"}):e.jsx(Vl,{className:"w-4 h-4"}),e.jsx("span",{children:"Simpan Perubahan Pengaturan"})]})]})}),He&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-md rounded-2xl border border-slate-200 shadow-2xl overflow-hidden p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ht,{className:"w-4 h-4"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:De?"Edit Rekening Bank":"Tambah Rekening Bank Baru"})]}),e.jsx("button",{onClick:()=>Ye(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Pilih Bank / e-Wallet"}),e.jsxs("select",{value:_e.bankName,onChange:p=>rt({..._e,bankName:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Bank BCA",children:"Bank BCA"}),e.jsx("option",{value:"Bank Mandiri",children:"Bank Mandiri"}),e.jsx("option",{value:"Bank BRI",children:"Bank BRI"}),e.jsx("option",{value:"Bank BNI",children:"Bank BNI"}),e.jsx("option",{value:"Bank Syariah Indonesia (BSI)",children:"Bank Syariah Indonesia (BSI)"}),e.jsx("option",{value:"Bank CIMB Niaga",children:"Bank CIMB Niaga"}),e.jsx("option",{value:"DANA e-Wallet",children:"DANA e-Wallet"}),e.jsx("option",{value:"OVO e-Wallet",children:"OVO e-Wallet"}),e.jsx("option",{value:"GoPay e-Wallet",children:"GoPay e-Wallet"}),e.jsx("option",{value:"QRIS Studio",children:"QRIS Studio All Payment"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nomor Rekening / HP e-Wallet"}),e.jsx("input",{type:"text",placeholder:"Contoh: 1234567890",value:_e.accountNumber,onChange:p=>rt({..._e,accountNumber:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Atas Nama (Pemilik Rekening)"}),e.jsx("input",{type:"text",placeholder:"Contoh: Nur Khofifah / Vivaz Studio",value:_e.accountName,onChange:p=>rt({..._e,accountName:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Catatan Tambahan (Opsional)"}),e.jsx("input",{type:"text",placeholder:"Contoh: Rekening utama untuk transfer DP Wedding",value:_e.notes||"",onChange:p=>rt({..._e,notes:p.target.value}),className:"w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"pt-2 space-y-2 border-t border-slate-100",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:_e.isPrimary,onChange:p=>rt({..._e,isPrimary:p.target.checked}),className:"w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"}),e.jsx("span",{className:"font-bold text-slate-800",children:"Set sebagai Rekening Utama (Default)"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:_e.isQrCode,onChange:p=>rt({..._e,isQrCode:p.target.checked}),className:"w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"}),e.jsx("span",{className:"font-bold text-slate-800",children:"Dukungan Scan Barcode QRIS"})]})]})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-2 border-t border-slate-100",children:[e.jsx("button",{type:"button",onClick:()=>Ye(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl text-xs",children:"Batal"}),e.jsx("button",{type:"button",onClick:li,className:"px-5 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-xl text-xs shadow-xs",children:"Simpan Rekening"})]})]})}),U&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-lg rounded-2xl border border-slate-200 shadow-2xl overflow-hidden p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ut,{className:"w-4 h-4"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Tentukan Lokasi Bisnis di Peta"})]}),e.jsx("button",{onClick:()=>ie(!1),className:"p-1 text-slate-400 hover:text-slate-600 rounded-lg",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"relative rounded-2xl overflow-hidden border border-slate-200 bg-slate-100 h-64 flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#94a3b8_1px,transparent_1px)] [background-size:16px_16px]"}),e.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[#EC167F] text-white flex items-center justify-center shadow-lg animate-bounce",children:e.jsx(Ut,{className:"w-5 h-5"})}),e.jsx("div",{className:"bg-white px-3 py-1 rounded-xl shadow-md text-[11px] font-extrabold text-slate-800 border border-slate-200 mt-2",children:"Vivaz Make Up Studio"})]})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>ie(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl text-xs",children:"Batal"}),e.jsx("button",{type:"button",onClick:()=>{ie(!1),m("Lokasi bisnis di peta berhasil diperbarui!")},className:"px-5 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-xl text-xs shadow-xs",children:"Konfirmasi Lokasi Ini"})]})]})}),rl&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white w-full max-w-md rounded-2xl border border-rose-200 shadow-2xl overflow-hidden p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-rose-100 text-rose-600 flex items-center justify-center font-bold shrink-0",children:e.jsx(Sm,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Hapus Akun Bisnis Permanen?"}),e.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Tindakan ini tidak dapat dibatalkan. Seluruh data reservasi, keuangan, dan kustomer akan terhapus."})]})]}),e.jsxs("div",{className:"flex justify-end gap-2 pt-3 border-t border-slate-100 text-xs",children:[e.jsx("button",{type:"button",onClick:()=>ds(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl",children:"Batal"}),e.jsx("button",{type:"button",onClick:()=>{ds(!1),m("Permintaan penghapusan akun telah diproses.")},className:"px-5 py-2 bg-rose-600 hover:bg-rose-700 text-white font-extrabold rounded-xl shadow-xs",children:"Ya, Hapus Akun"})]})]})})]})},W1=[{id:"m1",name:"Reza Amelia",email:"reza.amelia@vivazmakeup.com",role:"Admin",isOwner:!0,position:"Owner",phone:"0812-3456-7890",status:"Aktif",lastActive:"Hari ini, 09:32",avatar:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=150"},{id:"m2",name:"Dewi Lestari",email:"dewi.lestari@vivazmakeup.com",role:"Admin",position:"Manajer Operasional",phone:"0812-2345-6789",status:"Aktif",lastActive:"Hari ini, 08:15",avatar:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&q=80&w=150"},{id:"m3",name:"Siti Aisyah",email:"siti.aisyah@vivazmakeup.com",role:"Staff / MUA",position:"MUA Senior",phone:"0813-1111-2222",status:"Aktif",lastActive:"Kemarin, 20:45",avatar:"https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=150"},{id:"m4",name:"Nadya Putri",email:"nadya.putri@vivazmakeup.com",role:"Staff / MUA",position:"Hairdo Specialist",phone:"0813-3333-4444",status:"Aktif",lastActive:"Kemarin, 18:30",avatar:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80&w=150"},{id:"m5",name:"Rina Marlina",email:"rina.marlina@vivazmakeup.com",role:"Staff / MUA",position:"Makeup Artist",phone:"0813-5555-6666",status:"Tidak Aktif",lastActive:"3 hari yang lalu",avatar:"https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&q=80&w=150"},{id:"m6",name:"Yusuf Hidayat",email:"yusuf.hidayat@vivazmakeup.com",role:"Viewer",position:"Asisten Fotografer",phone:"0812-7777-8888",status:"Aktif",lastActive:"2 hari yang lalu",avatar:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80&w=150"},{id:"m7",name:"Aulia Rahma",email:"aulia.rahma@vivazmakeup.com",role:"Viewer",position:"Customer Service",phone:"0812-9999-0000",status:"Aktif",lastActive:"5 hari yang lalu",avatar:"https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?auto=format&fit=crop&q=80&w=150"},{id:"m8",name:"Maya Indah",email:"maya.indah@vivazmakeup.com",role:"Staff / MUA",position:"MUA Junior",phone:"0813-8888-9999",status:"Aktif",lastActive:"Kemarin, 14:10",avatar:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=150"},{id:"m9",name:"Budi Santoso",email:"budi.santoso@vivazmakeup.com",role:"Viewer",position:"Tim Logistik",phone:"0812-4444-5555",status:"Aktif",lastActive:"4 hari yang lalu",avatar:"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&q=80&w=150"},{id:"m10",name:"Nina Kartika",email:"nina.kartika@vivazmakeup.com",role:"Staff / MUA",position:"Nail & Lash Specialist",phone:"0813-6666-7777",status:"Aktif",lastActive:"Hari ini, 07:45",avatar:"https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&q=80&w=150"},{id:"m11",name:"Hendra Wijaya",email:"hendra.wijaya@vivazmakeup.com",role:"Admin",position:"Finance & Admin",phone:"0812-1111-3333",status:"Aktif",lastActive:"Hari ini, 09:10",avatar:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?auto=format&fit=crop&q=80&w=150"},{id:"m12",name:"Clarissa Bella",email:"clarissa.bella@vivazmakeup.com",role:"Staff / MUA",position:"Hijab Stylist",phone:"0813-2222-8888",status:"Aktif",lastActive:"2 hari yang lalu",avatar:"https://images.unsplash.com/photo-1567532939604-b6b5b0db2604?auto=format&fit=crop&q=80&w=150"}],Q1=({triggerToast:h})=>{const[j,m]=d.useState(W1),[o,S]=d.useState("semua"),[M,C]=d.useState("Semua Peran"),[u,b]=d.useState(""),[f,A]=d.useState(!1),[y,R]=d.useState(1),[W,G]=d.useState(10),[ae,xe]=d.useState(!1),[$,T]=d.useState(null),[_,D]=d.useState(null),[Y,se]=d.useState({name:"",email:"",phone:"",role:"Staff / MUA",position:""}),te=j.length,P=j.filter(c=>c.status==="Aktif").length,le=j.filter(c=>c.role==="Admin").length,pe=j.filter(c=>c.role==="Staff / MUA").length,be=j.filter(c=>c.role==="Viewer").length,J=d.useMemo(()=>j.filter(c=>{if(o==="admin"&&c.role!=="Admin"||o==="staff"&&c.role!=="Staff / MUA"||o==="viewer"&&c.role!=="Viewer"||M==="Admin"&&c.role!=="Admin"||M==="Staff / MUA"&&c.role!=="Staff / MUA"||M==="Viewer"&&c.role!=="Viewer")return!1;if(u.trim()){const F=u.toLowerCase(),v=c.name.toLowerCase().includes(F),Z=c.email.toLowerCase().includes(F),re=c.position.toLowerCase().includes(F),ue=c.phone.includes(F);if(!v&&!Z&&!re&&!ue)return!1}return!0}),[j,o,M,u]),fe=Math.ceil(J.length/W)||1,B=d.useMemo(()=>{const c=(y-1)*W;return J.slice(c,c+W)},[J,y,W]),oe=J.length===0?0:(y-1)*W+1,k=Math.min(y*W,J.length),U=c=>{if(c.preventDefault(),!Y.name.trim()||!Y.email.trim()){h("Mohon isi nama dan email anggota!");return}const F={id:`m_${Date.now()}`,name:Y.name,email:Y.email,phone:Y.phone||"0812-0000-0000",role:Y.role,position:Y.position||(Y.role==="Admin"?"Staf Administrasi":Y.role==="Staff / MUA"?"Makeup Artist":"Staff Support"),status:"Aktif",lastActive:"Baru saja diundang",avatar:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=150"};m([F,...j]),xe(!1),se({name:"",email:"",phone:"",role:"Staff / MUA",position:""}),h(`Undangan berhasil dikirim ke ${F.email}!`)},ie=c=>{m(F=>F.map(v=>{if(v.id===c){const Z=v.status==="Aktif"?"Tidak Aktif":"Aktif";return h(`Status ${v.name} diubah menjadi ${Z}`),{...v,status:Z}}return v})),T(null)},me=(c,F)=>{confirm(`Apakah Anda yakin ingin menghapus ${F} dari tim?`)&&(m(v=>v.filter(Z=>Z.id!==c)),h(`${F} telah dihapus dari daftar tim.`),T(null))},Ne=c=>{c.preventDefault(),_&&(m(F=>F.map(v=>v.id===_.id?_:v)),h(`Data ${_.name} berhasil diperbarui.`),D(null))};return e.jsxs("div",{className:"space-y-5 animate-fade-in pb-12",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-black text-slate-900 tracking-tight",children:"Manajemen Tim"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Kelola hak akses, daftar MUA/staf, dan peran anggota tim studio MuaKita."})]}),e.jsxs("button",{onClick:()=>xe(!0),className:"bg-[#EC167F] hover:bg-[#d0106e] active:scale-98 text-white text-xs sm:text-sm font-bold px-4 py-2.5 rounded-xl flex items-center justify-center gap-2 shadow-sm shadow-pink-200 transition-all duration-200 cursor-pointer self-start sm:self-auto",children:[e.jsx(nl,{className:"w-4 h-4"}),e.jsx("span",{children:"Undang Anggota"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3.5 sm:gap-4",children:[e.jsxs("div",{onClick:()=>{S("semua"),C("Semua Peran"),R(1)},className:`bg-white border transition-all duration-200 rounded-2xl p-4 sm:p-4.5 shadow-2xs cursor-pointer hover:border-pink-300 ${o==="semua"?"border-pink-300 ring-2 ring-pink-100/60":"border-slate-200/80"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-pink-100/80 flex items-center justify-center text-[#EC167F]",children:e.jsx(St,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-xs font-semibold text-slate-600 flex items-center",children:"Total Anggota"}),e.jsx(it,{className:"w-4 h-4 text-slate-400"})]}),e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:te}),e.jsxs("div",{className:"text-xs font-bold text-emerald-600 mt-1 flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),e.jsxs("span",{children:["Aktif ",P," anggota"]})]})]})]}),e.jsxs("div",{onClick:()=>{S("admin"),C("Semua Peran"),R(1)},className:`bg-white border transition-all duration-200 rounded-2xl p-4 sm:p-4.5 shadow-2xs cursor-pointer hover:border-purple-300 ${o==="admin"?"border-purple-300 ring-2 ring-purple-100/60":"border-slate-200/80"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-purple-100/80 flex items-center justify-center text-purple-600",children:e.jsx(_a,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-xs font-semibold text-slate-600 flex items-center",children:"Admin"}),e.jsx(it,{className:"w-4 h-4 text-slate-400"})]}),e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:le}),e.jsx("div",{className:"text-xs font-medium text-slate-400 mt-1",children:"Memiliki akses penuh"})]})]}),e.jsxs("div",{onClick:()=>{S("staff"),C("Semua Peran"),R(1)},className:`bg-white border transition-all duration-200 rounded-2xl p-4 sm:p-4.5 shadow-2xs cursor-pointer hover:border-amber-300 ${o==="staff"?"border-amber-300 ring-2 ring-amber-100/60":"border-slate-200/80"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-amber-100/80 flex items-center justify-center text-amber-600",children:e.jsx(Na,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-xs font-semibold text-slate-600 flex items-center",children:"Staff / MUA"}),e.jsx(it,{className:"w-4 h-4 text-slate-400"})]}),e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:pe}),e.jsx("div",{className:"text-xs font-medium text-slate-400 mt-1",children:"Anggota tim aktif"})]})]}),e.jsxs("div",{onClick:()=>{S("viewer"),C("Semua Peran"),R(1)},className:`bg-white border transition-all duration-200 rounded-2xl p-4 sm:p-4.5 shadow-2xs cursor-pointer hover:border-blue-300 ${o==="viewer"?"border-blue-300 ring-2 ring-blue-100/60":"border-slate-200/80"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-blue-100/80 flex items-center justify-center text-blue-600",children:e.jsx(Dt,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-xs font-semibold text-slate-600 flex items-center",children:"Viewer"}),e.jsx(it,{className:"w-4 h-4 text-slate-400"})]}),e.jsxs("div",{className:"mt-3",children:[e.jsx("div",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:be}),e.jsx("div",{className:"text-xs font-medium text-slate-400 mt-1",children:"Akses terbatas"})]})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl shadow-2xs overflow-hidden",children:[e.jsxs("div",{className:"p-4 sm:p-5 border-b border-slate-100 flex flex-col lg:flex-row lg:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-6 border-b border-slate-100 lg:border-b-0 pb-3 lg:pb-0 overflow-x-auto custom-scrollbar",children:[e.jsxs("button",{onClick:()=>{S("semua"),R(1)},className:`text-xs font-bold whitespace-nowrap transition-all duration-200 relative pb-2 lg:pb-1 cursor-pointer ${o==="semua"?"text-[#EC167F] border-b-2 border-[#EC167F]":"text-slate-500 hover:text-slate-800"}`,children:["Semua Anggota (",te,")"]}),e.jsxs("button",{onClick:()=>{S("admin"),R(1)},className:`text-xs font-bold whitespace-nowrap transition-all duration-200 relative pb-2 lg:pb-1 cursor-pointer ${o==="admin"?"text-[#EC167F] border-b-2 border-[#EC167F]":"text-slate-500 hover:text-slate-800"}`,children:["Admin (",le,")"]}),e.jsxs("button",{onClick:()=>{S("staff"),R(1)},className:`text-xs font-bold whitespace-nowrap transition-all duration-200 relative pb-2 lg:pb-1 cursor-pointer ${o==="staff"?"text-[#EC167F] border-b-2 border-[#EC167F]":"text-slate-500 hover:text-slate-800"}`,children:["Staff / MUA (",pe,")"]}),e.jsxs("button",{onClick:()=>{S("viewer"),R(1)},className:`text-xs font-bold whitespace-nowrap transition-all duration-200 relative pb-2 lg:pb-1 cursor-pointer ${o==="viewer"?"text-[#EC167F] border-b-2 border-[#EC167F]":"text-slate-500 hover:text-slate-800"}`,children:["Viewer (",be,")"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-3",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>A(!f),className:"w-full sm:w-auto px-3.5 py-2 bg-white border border-slate-200/90 rounded-xl text-xs font-semibold text-slate-700 hover:bg-slate-50 flex items-center justify-between gap-2 shadow-2xs transition-all cursor-pointer",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ta,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:M})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400"})]}),f&&e.jsx("div",{className:"absolute left-0 sm:right-0 sm:left-auto mt-1 w-44 bg-white border border-slate-200 rounded-xl shadow-lg z-20 py-1 animate-in fade-in zoom-in-95",children:["Semua Peran","Admin","Staff / MUA","Viewer"].map(c=>e.jsxs("button",{onClick:()=>{C(c),A(!1),R(1)},className:`w-full text-left px-3.5 py-2 text-xs font-medium flex items-center justify-between hover:bg-slate-50 ${M===c?"text-[#EC167F] font-bold bg-pink-50/50":"text-slate-700"}`,children:[e.jsx("span",{children:c}),M===c&&e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F]"})]},c))})]}),e.jsxs("div",{className:"relative w-full sm:w-64",children:[e.jsx("input",{type:"text",value:u,onChange:c=>{b(c.target.value),R(1)},placeholder:"Cari nama atau email...",className:"w-full pl-3.5 pr-9 py-2 bg-white border border-slate-200/90 rounded-xl text-xs text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#EC167F] focus:ring-1 focus:ring-[#EC167F] transition-all"}),e.jsx(Gt,{className:"w-4 h-4 text-slate-400 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse min-w-[780px]",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/70 border-b border-slate-100 text-[11px] font-bold text-slate-500 uppercase tracking-wider",children:[e.jsx("th",{className:"px-5 py-3.5",children:"Anggota"}),e.jsx("th",{className:"px-5 py-3.5",children:"Peran"}),e.jsx("th",{className:"px-5 py-3.5",children:"Departemen / Posisi"}),e.jsx("th",{className:"px-5 py-3.5",children:"Kontak"}),e.jsx("th",{className:"px-5 py-3.5",children:"Status"}),e.jsx("th",{className:"px-5 py-3.5",children:"Terakhir Aktif"}),e.jsx("th",{className:"px-5 py-3.5 text-right",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:B.length===0?e.jsx("tr",{children:e.jsxs("td",{colSpan:7,className:"px-5 py-12 text-center text-slate-400 text-xs",children:[e.jsx(St,{className:"w-8 h-8 text-slate-300 mx-auto mb-2"}),"Tidak ada anggota tim yang cocok dengan kriteria pencarian atau filter."]})}):B.map(c=>e.jsxs("tr",{className:"hover:bg-slate-50/60 transition-colors group",children:[e.jsx("td",{className:"px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:c.avatar,alt:c.name,referrerPolicy:"no-referrer",className:"w-10 h-10 rounded-full object-cover border border-slate-200/80 shadow-2xs shrink-0",onError:F=>{F.target.style.display="none"}}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[e.jsx("span",{className:"font-bold text-xs sm:text-sm text-slate-900 truncate",children:c.name}),c.isOwner&&e.jsx("span",{className:"px-2 py-0.5 bg-pink-100/90 text-[#EC167F] text-[10px] font-extrabold rounded-full shrink-0",children:"Owner"})]}),e.jsx("div",{className:"text-[11px] text-slate-500 font-medium truncate mt-0.5",children:c.email})]})]})}),e.jsxs("td",{className:"px-5 py-4",children:[c.role==="Admin"&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 bg-pink-50 border border-pink-100/80 text-[#EC167F] text-xs font-extrabold rounded-lg",children:[e.jsx(_a,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Admin"})]}),c.role==="Staff / MUA"&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 border border-amber-100/80 text-amber-700 text-xs font-extrabold rounded-lg",children:[e.jsx(Na,{className:"w-3.5 h-3.5 text-amber-600"}),e.jsx("span",{children:"Staff / MUA"})]}),c.role==="Viewer"&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 bg-blue-50 border border-blue-100/80 text-blue-700 text-xs font-extrabold rounded-lg",children:[e.jsx(Dt,{className:"w-3.5 h-3.5 text-blue-600"}),e.jsx("span",{children:"Viewer"})]})]}),e.jsx("td",{className:"px-5 py-4 text-xs font-semibold text-slate-800",children:c.position}),e.jsx("td",{className:"px-5 py-4 text-xs font-medium font-mono text-slate-700",children:c.phone}),e.jsx("td",{className:"px-5 py-4",children:c.status==="Aktif"?e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 bg-emerald-50 text-emerald-700 border border-emerald-100 text-xs font-extrabold rounded-full",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),e.jsx("span",{children:"Aktif"})]}):e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 text-amber-700 border border-amber-100 text-xs font-extrabold rounded-full",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500"}),e.jsx("span",{children:"Tidak Aktif"})]})}),e.jsx("td",{className:"px-5 py-4 text-xs font-medium text-slate-600",children:c.lastActive}),e.jsxs("td",{className:"px-5 py-4 text-right relative",children:[e.jsx("button",{onClick:()=>T($===c.id?null:c.id),className:"p-1.5 hover:bg-slate-100 text-slate-400 hover:text-slate-700 rounded-lg transition-colors cursor-pointer",children:e.jsx(Ea,{className:"w-4 h-4"})}),$===c.id&&e.jsxs("div",{className:"absolute right-5 mt-1 w-44 bg-white border border-slate-200 rounded-xl shadow-lg z-30 py-1 text-left animate-in fade-in zoom-in-95",children:[e.jsxs("button",{onClick:()=>{D(c),T(null)},className:"w-full px-3.5 py-2 text-xs font-medium text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[e.jsx(Sa,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Edit Data Member"})]}),e.jsx("button",{onClick:()=>ie(c.id),className:"w-full px-3.5 py-2 text-xs font-medium text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:c.status==="Aktif"?e.jsxs(e.Fragment,{children:[e.jsx(ad,{className:"w-3.5 h-3.5 text-amber-500"}),e.jsx("span",{children:"Nonaktifkan Staf"})]}):e.jsxs(e.Fragment,{children:[e.jsx(c1,{className:"w-3.5 h-3.5 text-emerald-500"}),e.jsx("span",{children:"Aktifkan Staf"})]})}),!c.isOwner&&e.jsxs("button",{onClick:()=>me(c.id,c.name),className:"w-full px-3.5 py-2 text-xs font-semibold text-rose-600 hover:bg-rose-50 flex items-center gap-2 border-t border-slate-100 mt-1",children:[e.jsx(ka,{className:"w-3.5 h-3.5 text-rose-600"}),e.jsx("span",{children:"Hapus Anggota"})]})]})]})]},c.id))})]})}),e.jsxs("div",{className:"p-4 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsxs("div",{children:["Menampilkan ",e.jsxs("span",{className:"font-bold text-slate-800",children:[oe," - ",k]})," dari ",e.jsx("span",{className:"font-bold text-slate-800",children:J.length})," anggota"]}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{disabled:y===1,onClick:()=>R(c=>Math.max(c-1,1)),className:"p-1.5 border border-slate-200 rounded-lg text-slate-600 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer transition-colors",children:e.jsx(ra,{className:"w-4 h-4"})}),Array.from({length:fe}).map((c,F)=>{const v=F+1;return e.jsx("button",{onClick:()=>R(v),className:`w-8 h-8 rounded-lg font-bold text-xs flex items-center justify-center transition-all cursor-pointer ${y===v?"bg-[#EC167F] text-white shadow-2xs":"border border-slate-200 text-slate-700 hover:bg-slate-50"}`,children:v},v)}),e.jsx("button",{disabled:y>=fe,onClick:()=>R(c=>Math.min(c+1,fe)),className:"p-1.5 border border-slate-200 rounded-lg text-slate-600 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer transition-colors",children:e.jsx(it,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:W,onChange:c=>{G(Number(c.target.value)),R(1)},className:"appearance-none bg-white border border-slate-200 rounded-xl px-3 py-1.5 pr-7 text-xs font-semibold text-slate-700 focus:outline-none focus:border-[#EC167F] cursor-pointer",children:[e.jsx("option",{value:5,children:"5 / halaman"}),e.jsx("option",{value:10,children:"10 / halaman"}),e.jsx("option",{value:20,children:"20 / halaman"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]})]})]}),ae&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-lg w-full shadow-2xl overflow-hidden border border-slate-200/80 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(nl,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm sm:text-base",children:"Undang Anggota Tim Baru"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Kirimkan undangan akses ke email staf MUA atau admin studio Anda."})]})]}),e.jsx("button",{onClick:()=>xe(!1),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-200/60 transition-colors",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("form",{onSubmit:U,className:"p-6 space-y-4 text-xs",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Nama Lengkap Anggota ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"text",required:!0,value:Y.name,onChange:c=>se({...Y,name:c.target.value}),placeholder:"Contoh: Siti Rahmawati",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-semibold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Alamat Email ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"email",required:!0,value:Y.email,onChange:c=>se({...Y,email:c.target.value}),placeholder:"siti@vivazmakeup.com",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"No. WhatsApp / HP"}),e.jsx("input",{type:"text",value:Y.phone,onChange:c=>se({...Y,phone:c.target.value}),placeholder:"0812-3456-7890",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1.5",children:["Pilih Peran / Hak Akses ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsxs("label",{className:`p-2.5 border rounded-xl cursor-pointer transition-all flex flex-col items-center text-center gap-1 ${Y.role==="Admin"?"border-[#EC167F] bg-pink-50/60 ring-1 ring-[#EC167F]":"border-slate-200 hover:bg-slate-50"}`,children:[e.jsx("input",{type:"radio",name:"role",value:"Admin",checked:Y.role==="Admin",onChange:()=>se({...Y,role:"Admin"}),className:"sr-only"}),e.jsx(_a,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{className:"font-extrabold text-[#EC167F] text-xs",children:"Admin"}),e.jsx("span",{className:"text-[10px] text-slate-500 leading-tight",children:"Akses penuh sistem & laporan"})]}),e.jsxs("label",{className:`p-2.5 border rounded-xl cursor-pointer transition-all flex flex-col items-center text-center gap-1 ${Y.role==="Staff / MUA"?"border-amber-500 bg-amber-50/60 ring-1 ring-amber-500":"border-slate-200 hover:bg-slate-50"}`,children:[e.jsx("input",{type:"radio",name:"role",value:"Staff / MUA",checked:Y.role==="Staff / MUA",onChange:()=>se({...Y,role:"Staff / MUA"}),className:"sr-only"}),e.jsx(Na,{className:"w-4 h-4 text-amber-600"}),e.jsx("span",{className:"font-extrabold text-amber-700 text-xs",children:"Staff / MUA"}),e.jsx("span",{className:"text-[10px] text-slate-500 leading-tight",children:"Kelola jadwal & layanan rias"})]}),e.jsxs("label",{className:`p-2.5 border rounded-xl cursor-pointer transition-all flex flex-col items-center text-center gap-1 ${Y.role==="Viewer"?"border-blue-500 bg-blue-50/60 ring-1 ring-blue-500":"border-slate-200 hover:bg-slate-50"}`,children:[e.jsx("input",{type:"radio",name:"role",value:"Viewer",checked:Y.role==="Viewer",onChange:()=>se({...Y,role:"Viewer"}),className:"sr-only"}),e.jsx(Dt,{className:"w-4 h-4 text-blue-600"}),e.jsx("span",{className:"font-extrabold text-blue-700 text-xs",children:"Viewer"}),e.jsx("span",{className:"text-[10px] text-slate-500 leading-tight",children:"Lihat kalender & riwayat"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Departemen / Jabatan Posisi"}),e.jsx("input",{type:"text",value:Y.position,onChange:c=>se({...Y,position:c.target.value}),placeholder:"Contoh: MUA Senior, Hairdo Specialist, CS Studio",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-end gap-2.5",children:[e.jsx("button",{type:"button",onClick:()=>xe(!1),className:"px-4 py-2 border border-slate-200 rounded-xl font-bold text-slate-600 hover:bg-slate-100 transition-colors cursor-pointer",children:"Batal"}),e.jsxs("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-[#d0106e] text-white font-bold rounded-xl shadow-xs transition-all cursor-pointer flex items-center gap-1.5",children:[e.jsx(nl,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Kirim Undangan"})]})]})]})]})}),_&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full shadow-2xl overflow-hidden border border-slate-200/80 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/50",children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm",children:"Edit Anggota Tim"}),e.jsx("button",{onClick:()=>D(null),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-200/60 transition-colors",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("form",{onSubmit:Ne,className:"p-6 space-y-4 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nama Lengkap"}),e.jsx("input",{type:"text",value:_.name,onChange:c=>D({..._,name:c.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Email"}),e.jsx("input",{type:"email",value:_.email,onChange:c=>D({..._,email:c.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"No. HP / WA"}),e.jsx("input",{type:"text",value:_.phone,onChange:c=>D({..._,phone:c.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Peran"}),e.jsxs("select",{value:_.role,onChange:c=>D({..._,role:c.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Admin",children:"Admin"}),e.jsx("option",{value:"Staff / MUA",children:"Staff / MUA"}),e.jsx("option",{value:"Viewer",children:"Viewer"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Departemen / Posisi"}),e.jsx("input",{type:"text",value:_.position,onChange:c=>D({..._,position:c.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-end gap-2.5",children:[e.jsx("button",{type:"button",onClick:()=>D(null),className:"px-4 py-2 border border-slate-200 rounded-xl font-bold text-slate-600 hover:bg-slate-100",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-[#d0106e] text-white font-bold rounded-xl shadow-xs",children:"Simpan Perubahan"})]})]})]})})]})},X1=[{id:"inv1",code:"INV-001",name:"Make Over Powerstay Foundation",category:"Makeup",location:"Ruang Makeup 1",stock:45,unit:"pcs",buyPrice:85e3,status:"Tersedia",image:"https://images.unsplash.com/photo-1631729371254-42c2892f0e6e?auto=format&fit=crop&q=80&w=150"},{id:"inv2",code:"INV-002",name:"Makeup Brush Set 12 Pcs",category:"Alat Makeup",location:"Ruang Alat",stock:23,unit:"set",buyPrice:25e4,status:"Tersedia",image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=150"},{id:"inv3",code:"INV-003",name:"Wardah Exclusive Lipstick",category:"Makeup",location:"Ruang Makeup 1",stock:8,unit:"pcs",buyPrice:79e3,status:"Stok Menipis",image:"https://images.unsplash.com/photo-1586495777744-4413f21062fa?auto=format&fit=crop&q=80&w=150"},{id:"inv4",code:"INV-004",name:"L'Oréal Elnett Hairspray",category:"Hair Care",location:"Ruang Hair",stock:0,unit:"pcs",buyPrice:12e4,status:"Habis",image:"https://images.unsplash.com/photo-1608248597262-1262d14b1626?auto=format&fit=crop&q=80&w=150"},{id:"inv5",code:"INV-005",name:"FOCALLURE Eyeshadow Palette",category:"Makeup",location:"Ruang Makeup 2",stock:15,unit:"pcs",buyPrice:95e3,status:"Tersedia",image:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=150"},{id:"inv6",code:"INV-006",name:"Jepit Bulu Mata Premium",category:"Alat Makeup",location:"Ruang Alat",stock:4,unit:"pcs",buyPrice:35e3,status:"Stok Menipis",image:"https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&q=80&w=150"},{id:"inv7",code:"INV-007",name:"Skintific 5X Ceramide Moisturizer",category:"Skincare",location:"Ruang Skincare",stock:30,unit:"pcs",buyPrice:11e4,status:"Tersedia",image:"https://images.unsplash.com/photo-1556228720-195a672e8a03?auto=format&fit=crop&q=80&w=150"},{id:"inv8",code:"INV-008",name:"Maybelline Superstay Matte Ink",category:"Makeup",location:"Ruang Makeup 1",stock:18,unit:"pcs",buyPrice:105e3,status:"Tersedia",image:"https://images.unsplash.com/photo-1625093742435-6fa192b6fb1a?auto=format&fit=crop&q=80&w=150"},{id:"inv9",code:"INV-009",name:"Crown Pengantin Crystal Royal",category:"Aksesoris",location:"Ruang Aksesoris",stock:6,unit:"pcs",buyPrice:35e4,status:"Tersedia",image:"https://images.unsplash.com/photo-1535632066927-ab7c9ab60908?auto=format&fit=crop&q=80&w=150"},{id:"inv10",code:"INV-010",name:"Bulu Mata Palsu Premium (10 Pasang)",category:"Alat Makeup",location:"Ruang Alat",stock:2,unit:"box",buyPrice:65e3,status:"Stok Menipis",image:"https://images.unsplash.com/photo-1583241800698-e8ab01c85b27?auto=format&fit=crop&q=80&w=150"}],Z1=[{id:"cat1",name:"Makeup",color:"#EC167F",badgeBg:"bg-purple-100/80",badgeText:"text-purple-700",itemCount:48,totalValue:1245e4,description:"Kosmetik dekoratif wajah: Foundation, Concealer, Powder, Lipstick, Eyeshadow."},{id:"cat2",name:"Alat Makeup",color:"#3B82F6",badgeBg:"bg-blue-100/80",badgeText:"text-blue-700",itemCount:32,totalValue:62e5,description:"Aplikator & kuas rias: Brush set, Beauty blender, Eyelash curler, Cermin."},{id:"cat3",name:"Hair Care",color:"#EC167F",badgeBg:"bg-pink-100/80",badgeText:"text-pink-700",itemCount:18,totalValue:285e4,description:"Produk penataan & perawatan rambut: Hairspray, Vitamin, Catokan, Hairdryer."},{id:"cat4",name:"Skincare",color:"#10B981",badgeBg:"bg-emerald-100/80",badgeText:"text-emerald-700",itemCount:15,totalValue:31e5,description:"Persiapan kulit sebelum makeup: Toner, Serum, Moisturizer, Face Primer, Sunscreen."},{id:"cat5",name:"Aksesoris",color:"#F59E0B",badgeBg:"bg-amber-100/80",badgeText:"text-amber-700",itemCount:10,totalValue:45e5,description:"Hiasan & perhiasan pengantin: Mahkota crystal, Anting, Veils, Hijab crown."},{id:"cat6",name:"Kebaya & Busana",color:"#8B5CF6",badgeBg:"bg-indigo-100/80",badgeText:"text-indigo-700",itemCount:5,totalValue:15e6,description:"Koleksi gaun pengantin, kebaya akad, dan beskap keluarga."}],ej=({activeTab:h,triggerToast:j})=>{const[m,o]=d.useState(h==="inventaris_kategori"?"categories":"items");ld.useEffect(()=>{h==="inventaris_kategori"?o("categories"):h==="inventaris"&&o("items")},[h]);const[S,M]=d.useState(X1),[C,u]=d.useState(Z1),[b,f]=d.useState("Semua Kategori"),[A,y]=d.useState("Semua Lokasi"),[R,W]=d.useState("Semua Status"),[G,ae]=d.useState(""),[xe,$]=d.useState([]),[T,_]=d.useState(1),[D,Y]=d.useState(10),[se,te]=d.useState(null),[P,le]=d.useState(!1),[pe,be]=d.useState(null),[J,fe]=d.useState(!1),[B,oe]=d.useState(null),[k,U]=d.useState({code:"",name:"",category:"Makeup",location:"Ruang Makeup 1",stock:10,unit:"pcs",buyPrice:5e4,image:"https://images.unsplash.com/photo-1631729371254-42c2892f0e6e?auto=format&fit=crop&q=80&w=150"}),[ie,me]=d.useState({name:"",description:"",badgeBg:"bg-purple-100/80",badgeText:"text-purple-700"}),Ne=S.length,c=S.reduce((N,ge)=>N+ge.stock,0),F=S.filter(N=>N.stock>0&&N.stock<=10).length,v=S.filter(N=>N.stock===0).length,Z=S.reduce((N,ge)=>N+ge.stock*ge.buyPrice,0),re=N=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR",maximumFractionDigits:0}).format(N),ue=d.useMemo(()=>S.filter(N=>{if(b!=="Semua Kategori"&&N.category!==b||A!=="Semua Lokasi"&&N.location!==A||R!=="Semua Status"&&N.status!==R)return!1;if(G.trim()){const ge=G.toLowerCase(),Ae=N.name.toLowerCase().includes(ge),ze=N.code.toLowerCase().includes(ge),O=N.category.toLowerCase().includes(ge),Q=N.location.toLowerCase().includes(ge);if(!Ae&&!ze&&!O&&!Q)return!1}return!0}),[S,b,A,R,G]),ne=Math.ceil(ue.length/D)||1,Ce=d.useMemo(()=>{const N=(T-1)*D;return ue.slice(N,N+D)},[ue,T,D]),we=ue.length===0?0:(T-1)*D+1,ce=Math.min(T*D,ue.length),He=Ce.length>0&&Ce.every(N=>xe.includes(N.id)),Ye=()=>{if(He)$(N=>N.filter(ge=>!Ce.some(Ae=>Ae.id===ge)));else{const N=[...xe];Ce.forEach(ge=>{N.includes(ge.id)||N.push(ge.id)}),$(N)}},De=N=>{$(ge=>ge.includes(N)?ge.filter(Ae=>Ae!==N):[...ge,N])},ht=N=>{if(N.preventDefault(),!k.name.trim()){j("Mohon masukkan nama item!");return}const ge=k.stock===0?"Habis":k.stock<=10?"Stok Menipis":"Tersedia",Ae={id:`inv_${Date.now()}`,code:k.code||`INV-0${S.length+1}`,name:k.name,category:k.category,location:k.location,stock:Number(k.stock),unit:k.unit||"pcs",buyPrice:Number(k.buyPrice),status:ge,image:k.image||"https://images.unsplash.com/photo-1631729371254-42c2892f0e6e?auto=format&fit=crop&q=80&w=150"};M([Ae,...S]),le(!1),U({code:"",name:"",category:"Makeup",location:"Ruang Makeup 1",stock:10,unit:"pcs",buyPrice:5e4,image:"https://images.unsplash.com/photo-1631729371254-42c2892f0e6e?auto=format&fit=crop&q=80&w=150"}),j(`Item "${Ae.name}" berhasil ditambahkan!`)},_e=N=>{if(N.preventDefault(),!pe)return;const ge=pe.stock===0?"Habis":pe.stock<=10?"Stok Menipis":"Tersedia",Ae={...pe,status:ge};M(ze=>ze.map(O=>O.id===Ae.id?Ae:O)),be(null),j(`Data item "${Ae.name}" berhasil diperbarui.`)},rt=(N,ge)=>{confirm(`Apakah Anda yakin ingin menghapus "${ge}" dari inventaris?`)&&(M(Ae=>Ae.filter(ze=>ze.id!==N)),te(null),j(`"${ge}" telah dihapus.`))},pt=N=>{if(N.preventDefault(),!ie.name.trim()){j("Mohon masukkan nama kategori!");return}const ge={id:`cat_${Date.now()}`,name:ie.name,color:"#EC167F",badgeBg:ie.badgeBg,badgeText:ie.badgeText,itemCount:0,totalValue:0,description:ie.description||"Kategori produk inventaris MuaKita studio."};u([...C,ge]),fe(!1),me({name:"",description:"",badgeBg:"bg-purple-100/80",badgeText:"text-purple-700"}),j(`Kategori "${ge.name}" berhasil dibuat!`)};return e.jsxs("div",{className:"space-y-5 animate-fade-in pb-12",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-black text-slate-900 tracking-tight",children:"Manajemen Inventaris & Stok"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Kelola kosmetik, peralatan makeup, stok produk, dan kategori inventaris studio."})]}),e.jsxs("div",{className:"flex items-center gap-2 self-start md:self-auto flex-wrap",children:[e.jsxs("div",{className:"p-1 bg-slate-100 rounded-xl flex items-center gap-1 border border-slate-200/80",children:[e.jsxs("button",{onClick:()=>o("items"),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all flex items-center gap-1.5 cursor-pointer ${m==="items"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(Ps,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Daftar Item"})]}),e.jsxs("button",{onClick:()=>o("categories"),className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all flex items-center gap-1.5 cursor-pointer ${m==="categories"?"bg-white text-[#EC167F] shadow-2xs":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(za,{className:"w-3.5 h-3.5"}),e.jsxs("span",{children:["Kategori (",C.length,")"]})]})]}),m==="items"?e.jsxs("button",{onClick:()=>le(!0),className:"bg-[#EC167F] hover:bg-[#d0106e] text-white text-xs sm:text-sm font-bold px-4 py-2 rounded-xl flex items-center justify-center gap-2 shadow-sm shadow-pink-200 transition-all cursor-pointer",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Item"})]}):e.jsxs("button",{onClick:()=>fe(!0),className:"bg-[#EC167F] hover:bg-[#d0106e] text-white text-xs sm:text-sm font-bold px-4 py-2 rounded-xl flex items-center justify-center gap-2 shadow-sm shadow-pink-200 transition-all cursor-pointer",children:[e.jsx(Jc,{className:"w-4 h-4"}),e.jsx("span",{children:"Tambah Kategori"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3 sm:gap-3.5",children:[e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs flex flex-col justify-between",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-100 flex items-center justify-center text-[#EC167F]",children:e.jsx(ei,{className:"w-4.5 h-4.5"})})}),e.jsxs("div",{className:"mt-2.5",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Item"}),e.jsx("div",{className:"text-2xl font-black text-slate-900 tracking-tight mt-0.5",children:Ne}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block mt-0.5",children:"Semua item inventaris"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs flex flex-col justify-between",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("div",{className:"w-9 h-9 rounded-xl bg-purple-100 flex items-center justify-center text-purple-600",children:e.jsx(Ps,{className:"w-4.5 h-4.5"})})}),e.jsxs("div",{className:"mt-2.5",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Stok"}),e.jsx("div",{className:"text-2xl font-black text-slate-900 tracking-tight mt-0.5",children:c.toLocaleString("id-ID")}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block mt-0.5",children:"Semua item"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs flex flex-col justify-between",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("div",{className:"w-9 h-9 rounded-xl bg-amber-100 flex items-center justify-center text-amber-600",children:e.jsx(Sm,{className:"w-4.5 h-4.5"})})}),e.jsxs("div",{className:"mt-2.5",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Stok Menipis"}),e.jsx("div",{className:"text-2xl font-black text-slate-900 tracking-tight mt-0.5",children:F}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block mt-0.5",children:"Perlu restock"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs flex flex-col justify-between",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 flex items-center justify-center text-[#EC167F]",children:e.jsx(Eg,{className:"w-4.5 h-4.5"})})}),e.jsxs("div",{className:"mt-2.5",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Habis"}),e.jsx("div",{className:"text-2xl font-black text-slate-900 tracking-tight mt-0.5",children:v}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block mt-0.5",children:"Perlu segera diisi"})]})]}),e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl p-4 shadow-2xs flex flex-col justify-between",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-100 flex items-center justify-center text-emerald-600",children:e.jsx(Wn,{className:"w-4.5 h-4.5"})})}),e.jsxs("div",{className:"mt-2.5",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-500 block",children:"Total Nilai Stok"}),e.jsx("div",{className:"text-xl sm:text-2xl font-black text-slate-900 tracking-tight mt-0.5",children:re(Z)}),e.jsx("span",{className:"text-[10px] text-slate-400 font-medium block mt-0.5",children:"Berdasarkan harga beli"})]})]})]}),m==="items"&&e.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-2xl shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"p-4 border-b border-slate-100",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-3 items-center",children:[e.jsxs("div",{className:"lg:col-span-3",children:[e.jsx("label",{className:"block text-[11px] font-bold text-slate-600 mb-1",children:"Kategori"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:b,onChange:N=>{f(N.target.value),_(1)},className:"w-full bg-white border border-slate-200/90 rounded-xl px-3 py-2 pr-8 text-xs font-semibold text-slate-800 appearance-none focus:outline-none focus:border-[#EC167F] cursor-pointer shadow-2xs",children:[e.jsx("option",{value:"Semua Kategori",children:"Semua Kategori"}),C.map(N=>e.jsx("option",{value:N.name,children:N.name},N.id))]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{className:"lg:col-span-3",children:[e.jsx("label",{className:"block text-[11px] font-bold text-slate-600 mb-1",children:"Lokasi / Tempat"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:A,onChange:N=>{y(N.target.value),_(1)},className:"w-full bg-white border border-slate-200/90 rounded-xl px-3 py-2 pr-8 text-xs font-semibold text-slate-800 appearance-none focus:outline-none focus:border-[#EC167F] cursor-pointer shadow-2xs",children:[e.jsx("option",{value:"Semua Lokasi",children:"Semua Lokasi"}),e.jsx("option",{value:"Ruang Makeup 1",children:"Ruang Makeup 1"}),e.jsx("option",{value:"Ruang Makeup 2",children:"Ruang Makeup 2"}),e.jsx("option",{value:"Ruang Alat",children:"Ruang Alat"}),e.jsx("option",{value:"Ruang Hair",children:"Ruang Hair"}),e.jsx("option",{value:"Ruang Skincare",children:"Ruang Skincare"}),e.jsx("option",{value:"Ruang Aksesoris",children:"Ruang Aksesoris"})]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("label",{className:"block text-[11px] font-bold text-slate-600 mb-1",children:"Status"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:R,onChange:N=>{W(N.target.value),_(1)},className:"w-full bg-white border border-slate-200/90 rounded-xl px-3 py-2 pr-8 text-xs font-semibold text-slate-800 appearance-none focus:outline-none focus:border-[#EC167F] cursor-pointer shadow-2xs",children:[e.jsx("option",{value:"Semua Status",children:"Semua Status"}),e.jsx("option",{value:"Tersedia",children:"Tersedia"}),e.jsx("option",{value:"Stok Menipis",children:"Stok Menipis"}),e.jsx("option",{value:"Habis",children:"Habis"})]}),e.jsx(ye,{className:"w-4 h-4 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]}),e.jsxs("div",{className:"lg:col-span-3",children:[e.jsx("label",{className:"block text-[11px] font-bold text-slate-600 mb-1",children:"Pencarian"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",value:G,onChange:N=>{ae(N.target.value),_(1)},placeholder:"Cari nama item, kode, atau merek...",className:"w-full pl-3.5 pr-9 py-2 bg-white border border-slate-200/90 rounded-xl text-xs text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#EC167F] focus:ring-1 focus:ring-[#EC167F] shadow-2xs"}),e.jsx(Gt,{className:"w-4 h-4 text-slate-400 absolute right-3 top-2.5 pointer-events-none"})]})]}),e.jsx("div",{className:"lg:col-span-1 pt-0 sm:pt-4",children:e.jsxs("button",{onClick:()=>{f("Semua Kategori"),y("Semua Lokasi"),W("Semua Status"),ae("")},className:"w-full px-3 py-2 bg-white border border-slate-200/90 rounded-xl text-xs font-bold text-slate-700 hover:bg-slate-50 flex items-center justify-center gap-1.5 shadow-2xs cursor-pointer transition-colors",title:"Reset Filter",children:[e.jsx(Ta,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Filter"})]})})]})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse min-w-[880px]",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/70 border-b border-slate-100 text-[11px] font-bold text-slate-500 uppercase tracking-wider",children:[e.jsx("th",{className:"px-4 py-3.5 w-10 text-center",children:e.jsx("input",{type:"checkbox",checked:He,onChange:Ye,className:"w-4 h-4 rounded border-slate-300 text-[#EC167F] focus:ring-[#EC167F] cursor-pointer"})}),e.jsx("th",{className:"px-4 py-3.5",children:"Item"}),e.jsx("th",{className:"px-4 py-3.5",children:"Kategori"}),e.jsx("th",{className:"px-4 py-3.5",children:"Lokasi"}),e.jsx("th",{className:"px-4 py-3.5",children:"Stok"}),e.jsx("th",{className:"px-4 py-3.5",children:"Harga Beli"}),e.jsx("th",{className:"px-4 py-3.5",children:"Nilai Stok"}),e.jsx("th",{className:"px-4 py-3.5",children:"Status"}),e.jsx("th",{className:"px-4 py-3.5 text-right",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:Ce.length===0?e.jsx("tr",{children:e.jsxs("td",{colSpan:9,className:"px-5 py-12 text-center text-slate-400 text-xs",children:[e.jsx(Ps,{className:"w-8 h-8 text-slate-300 mx-auto mb-2"}),"Tidak ada item inventaris yang ditemukan."]})}):Ce.map(N=>{const ge=xe.includes(N.id),Ae=N.stock*N.buyPrice;return e.jsxs("tr",{className:`hover:bg-slate-50/60 transition-colors ${ge?"bg-pink-50/30":""}`,children:[e.jsx("td",{className:"px-4 py-3.5 text-center",children:e.jsx("input",{type:"checkbox",checked:ge,onChange:()=>De(N.id),className:"w-4 h-4 rounded border-slate-300 text-[#EC167F] focus:ring-[#EC167F] cursor-pointer"})}),e.jsx("td",{className:"px-4 py-3.5",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:N.image,alt:N.name,referrerPolicy:"no-referrer",className:"w-10 h-10 rounded-xl object-cover border border-slate-200/80 shadow-2xs shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-bold text-xs sm:text-sm text-slate-900 block truncate",children:N.name}),e.jsx("span",{className:"text-[10px] text-slate-400 font-mono font-medium block",children:N.code})]})]})}),e.jsxs("td",{className:"px-4 py-3.5",children:[N.category==="Makeup"&&e.jsx("span",{className:"px-2.5 py-1 bg-purple-100/70 text-purple-700 text-xs font-bold rounded-lg inline-block",children:"Makeup"}),N.category==="Alat Makeup"&&e.jsx("span",{className:"px-2.5 py-1 bg-blue-100/70 text-blue-700 text-xs font-bold rounded-lg inline-block",children:"Alat Makeup"}),N.category==="Hair Care"&&e.jsx("span",{className:"px-2.5 py-1 bg-pink-100/70 text-pink-700 text-xs font-bold rounded-lg inline-block",children:"Hair Care"}),N.category==="Skincare"&&e.jsx("span",{className:"px-2.5 py-1 bg-purple-100/70 text-purple-700 text-xs font-bold rounded-lg inline-block",children:"Skincare"}),N.category==="Aksesoris"&&e.jsx("span",{className:"px-2.5 py-1 bg-amber-100/70 text-amber-700 text-xs font-bold rounded-lg inline-block",children:"Aksesoris"}),!["Makeup","Alat Makeup","Hair Care","Skincare","Aksesoris"].includes(N.category)&&e.jsx("span",{className:"px-2.5 py-1 bg-slate-100 text-slate-700 text-xs font-bold rounded-lg inline-block",children:N.category})]}),e.jsx("td",{className:"px-4 py-3.5 text-xs font-semibold text-slate-800",children:N.location}),e.jsx("td",{className:"px-4 py-3.5 text-xs font-bold",children:N.stock===0?e.jsxs("span",{className:"text-rose-600 font-black",children:["0 ",N.unit]}):N.stock<=10?e.jsxs("span",{className:"text-rose-500 font-bold",children:[N.stock," ",N.unit]}):e.jsxs("span",{className:"text-slate-800",children:[N.stock," ",N.unit]})}),e.jsx("td",{className:"px-4 py-3.5 text-xs font-medium text-slate-700 font-mono",children:re(N.buyPrice)}),e.jsx("td",{className:"px-4 py-3.5 text-xs font-bold text-slate-900 font-mono",children:re(Ae)}),e.jsxs("td",{className:"px-4 py-3.5",children:[N.status==="Tersedia"&&e.jsx("span",{className:"px-2.5 py-1 bg-emerald-50 text-emerald-600 border border-emerald-100 text-[11px] font-bold rounded-lg inline-block",children:"Tersedia"}),N.status==="Stok Menipis"&&e.jsx("span",{className:"px-2.5 py-1 bg-amber-50 text-amber-600 border border-amber-100 text-[11px] font-bold rounded-lg inline-block",children:"Stok Menipis"}),N.status==="Habis"&&e.jsx("span",{className:"px-2.5 py-1 bg-rose-50 text-rose-600 border border-rose-100 text-[11px] font-bold rounded-lg inline-block",children:"Habis"})]}),e.jsxs("td",{className:"px-4 py-3.5 text-right relative",children:[e.jsxs("div",{className:"flex items-center justify-end gap-1",children:[e.jsx("button",{onClick:()=>be(N),className:"p-1.5 border border-slate-200 rounded-lg text-slate-500 hover:bg-slate-100 hover:text-slate-900 transition-colors cursor-pointer",title:"Edit Item",children:e.jsx(Sa,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>te(se===N.id?null:N.id),className:"p-1.5 border border-slate-200 rounded-lg text-slate-500 hover:bg-slate-100 hover:text-slate-900 transition-colors cursor-pointer",title:"Menu Opsi",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})})]}),se===N.id&&e.jsxs("div",{className:"absolute right-4 mt-1 w-40 bg-white border border-slate-200 rounded-xl shadow-lg z-30 py-1 text-left animate-in fade-in zoom-in-95",children:[e.jsxs("button",{onClick:()=>{const ze=prompt("Tambah berapa jumlah stok?","10");if(ze&&!isNaN(Number(ze))){const O=N.stock+Number(ze),Q=O===0?"Habis":O<=10?"Stok Menipis":"Tersedia";M(ve=>ve.map(We=>We.id===N.id?{...We,stock:O,status:Q}:We)),j(`Stok ${N.name} berhasil ditambah +${ze}`)}te(null)},className:"w-full px-3.5 py-2 text-xs font-semibold text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[e.jsx(Ls,{className:"w-3.5 h-3.5 text-emerald-600"}),e.jsx("span",{children:"Restock Stok"})]}),e.jsxs("button",{onClick:()=>rt(N.id,N.name),className:"w-full px-3.5 py-2 text-xs font-semibold text-rose-600 hover:bg-rose-50 flex items-center gap-2 border-t border-slate-100 mt-1",children:[e.jsx(ka,{className:"w-3.5 h-3.5 text-rose-600"}),e.jsx("span",{children:"Hapus Item"})]})]})]})]},N.id)})})]})}),e.jsxs("div",{className:"p-4 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsxs("div",{children:["Menampilkan ",e.jsxs("span",{className:"font-bold text-slate-800",children:[we," - ",ce]})," dari ",e.jsx("span",{className:"font-bold text-slate-800",children:ue.length})," item"]}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{disabled:T===1,onClick:()=>_(N=>Math.max(N-1,1)),className:"p-1.5 border border-slate-200 rounded-lg text-slate-600 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer transition-colors",children:e.jsx(ra,{className:"w-4 h-4"})}),Array.from({length:ne}).map((N,ge)=>{const Ae=ge+1;return e.jsx("button",{onClick:()=>_(Ae),className:`w-8 h-8 rounded-lg font-bold text-xs flex items-center justify-center transition-all cursor-pointer ${T===Ae?"bg-[#EC167F] text-white shadow-2xs":"border border-slate-200 text-slate-700 hover:bg-slate-50"}`,children:Ae},Ae)}),e.jsx("button",{disabled:T>=ne,onClick:()=>_(N=>Math.min(N+1,ne)),className:"p-1.5 border border-slate-200 rounded-lg text-slate-600 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer transition-colors",children:e.jsx(it,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:D,onChange:N=>{Y(Number(N.target.value)),_(1)},className:"appearance-none bg-white border border-slate-200 rounded-xl px-3 py-1.5 pr-7 text-xs font-semibold text-slate-700 focus:outline-none focus:border-[#EC167F] cursor-pointer",children:[e.jsx("option",{value:5,children:"5 / halaman"}),e.jsx("option",{value:10,children:"10 / halaman"}),e.jsx("option",{value:20,children:"20 / halaman"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]})]})]})]}),m==="categories"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-white border border-slate-200/80 rounded-2xl shadow-2xs flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-extrabold text-slate-900",children:"Daftar Kategori Inventaris Studio"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Kelompokkan produk dan peralatan berdasarkan tipe untuk mempermudah audit stok."})]}),e.jsxs("button",{onClick:()=>fe(!0),className:"bg-[#EC167F] hover:bg-[#d0106e] text-white text-xs font-bold px-4 py-2 rounded-xl flex items-center justify-center gap-2 shadow-2xs cursor-pointer self-start sm:self-auto",children:[e.jsx(Jc,{className:"w-4 h-4"}),e.jsx("span",{children:"+ Tambah Kategori Baru"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:C.map(N=>{const ge=S.filter(O=>O.category===N.name),Ae=ge.length||N.itemCount,ze=ge.reduce((O,Q)=>O+Q.stock*Q.buyPrice,0)||N.totalValue;return e.jsxs("div",{className:"bg-white border border-slate-200/90 rounded-2xl p-4.5 shadow-2xs hover:border-pink-300 transition-all flex flex-col justify-between group",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("span",{className:`px-3 py-1 rounded-lg text-xs font-extrabold ${N.badgeBg} ${N.badgeText}`,children:N.name}),e.jsxs("div",{className:"flex items-center gap-1 opacity-80 group-hover:opacity-100",children:[e.jsx("button",{onClick:()=>oe(N),className:"p-1 text-slate-400 hover:text-slate-800 rounded hover:bg-slate-100",title:"Edit Kategori",children:e.jsx(Sa,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>{confirm(`Hapus kategori "${N.name}"?`)&&(u(C.filter(O=>O.id!==N.id)),j(`Kategori "${N.name}" dihapus`))},className:"p-1 text-slate-400 hover:text-rose-600 rounded hover:bg-rose-50",title:"Hapus Kategori",children:e.jsx(ka,{className:"w-3.5 h-3.5"})})]})]}),e.jsx("p",{className:"text-xs text-slate-600 font-medium mb-4 line-clamp-2 leading-relaxed",children:N.description})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-between text-xs",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-medium",children:"Jumlah Produk"}),e.jsxs("span",{className:"font-extrabold text-slate-900",children:[Ae," item"]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-medium",children:"Nilai Total Stok"}),e.jsx("span",{className:"font-black text-[#EC167F] font-mono",children:re(ze)})]})]})]},N.id)})})]}),P&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-lg w-full shadow-2xl overflow-hidden border border-slate-200/80 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Ps,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm sm:text-base",children:"Tambah Item Inventaris Baru"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Masukkan informasi detail produk, stok awal, dan lokasi penyimpanan."})]})]}),e.jsx("button",{onClick:()=>le(!1),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-200/60 transition-colors",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("form",{onSubmit:ht,className:"p-6 space-y-3.5 text-xs",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[e.jsxs("div",{className:"sm:col-span-2",children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Nama Item ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"text",required:!0,value:k.name,onChange:N=>U({...k,name:N.target.value}),placeholder:"Contoh: Make Over Powder Foundation",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Kode SKU"}),e.jsx("input",{type:"text",value:k.code,onChange:N=>U({...k,code:N.target.value}),placeholder:"INV-011",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl font-mono text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Kategori ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("select",{value:k.category,onChange:N=>U({...k,category:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]",children:C.map(N=>e.jsx("option",{value:N.name,children:N.name},N.id))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Lokasi Penyimpanan ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("select",{value:k.location,onChange:N=>U({...k,location:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Ruang Makeup 1",children:"Ruang Makeup 1"}),e.jsx("option",{value:"Ruang Makeup 2",children:"Ruang Makeup 2"}),e.jsx("option",{value:"Ruang Alat",children:"Ruang Alat"}),e.jsx("option",{value:"Ruang Hair",children:"Ruang Hair"}),e.jsx("option",{value:"Ruang Skincare",children:"Ruang Skincare"}),e.jsx("option",{value:"Ruang Aksesoris",children:"Ruang Aksesoris"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Jumlah Stok ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"number",required:!0,min:0,value:k.stock,onChange:N=>U({...k,stock:Number(N.target.value)}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Satuan"}),e.jsxs("select",{value:k.unit,onChange:N=>U({...k,unit:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"pcs",children:"pcs"}),e.jsx("option",{value:"set",children:"set"}),e.jsx("option",{value:"box",children:"box"}),e.jsx("option",{value:"botol",children:"botol"}),e.jsx("option",{value:"paket",children:"paket"})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Harga Beli (Rp) ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"number",required:!0,min:0,value:k.buyPrice,onChange:N=>U({...k,buyPrice:Number(N.target.value)}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold font-mono focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"URL Foto Produk"}),e.jsx("input",{type:"text",value:k.image,onChange:N=>U({...k,image:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 text-[11px] focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-end gap-2.5",children:[e.jsx("button",{type:"button",onClick:()=>le(!1),className:"px-4 py-2 border border-slate-200 rounded-xl font-bold text-slate-600 hover:bg-slate-100",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-[#d0106e] text-white font-bold rounded-xl shadow-xs",children:"Simpan Item"})]})]})]})}),pe&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full shadow-2xl overflow-hidden border border-slate-200/80 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/50",children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm",children:"Edit Item Inventaris"}),e.jsx("button",{onClick:()=>be(null),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-200/60 transition-colors",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("form",{onSubmit:_e,className:"p-6 space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nama Item"}),e.jsx("input",{type:"text",value:pe.name,onChange:N=>be({...pe,name:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Kategori"}),e.jsx("select",{value:pe.category,onChange:N=>be({...pe,category:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]",children:C.map(N=>e.jsx("option",{value:N.name,children:N.name},N.id))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Lokasi"}),e.jsx("input",{type:"text",value:pe.location,onChange:N=>be({...pe,location:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Jumlah Stok (",pe.unit,")"]}),e.jsx("input",{type:"number",min:0,value:pe.stock,onChange:N=>be({...pe,stock:Number(N.target.value)}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Harga Beli (Rp)"}),e.jsx("input",{type:"number",min:0,value:pe.buyPrice,onChange:N=>be({...pe,buyPrice:Number(N.target.value)}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold font-mono focus:bg-white focus:outline-none focus:border-[#EC167F]"})]})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-end gap-2.5",children:[e.jsx("button",{type:"button",onClick:()=>be(null),className:"px-4 py-2 border border-slate-200 rounded-xl font-bold text-slate-600 hover:bg-slate-100",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-[#d0106e] text-white font-bold rounded-xl shadow-xs",children:"Simpan Perubahan"})]})]})]})}),J&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full shadow-2xl overflow-hidden border border-slate-200/80 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold",children:e.jsx(Jc,{className:"w-4 h-4"})}),e.jsx("div",{children:e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm",children:"Tambah Kategori Inventaris"})})]}),e.jsx("button",{onClick:()=>fe(!1),className:"p-1 text-slate-400 hover:text-slate-700 rounded-lg",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("form",{onSubmit:pt,className:"p-6 space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-slate-700 font-bold mb-1",children:["Nama Kategori ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsx("input",{type:"text",required:!0,value:ie.name,onChange:N=>me({...ie,name:N.target.value}),placeholder:"Contoh: Peralatan Lighting & Backdrop",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Deskripsi Kategori"}),e.jsx("textarea",{rows:3,value:ie.description,onChange:N=>me({...ie,description:N.target.value}),placeholder:"Keterangan jenis item yang ada dalam kategori ini...",className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-end gap-2.5",children:[e.jsx("button",{type:"button",onClick:()=>fe(!1),className:"px-4 py-2 border border-slate-200 rounded-xl font-bold text-slate-600 hover:bg-slate-100",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-[#d0106e] text-white font-bold rounded-xl shadow-xs",children:"Simpan Kategori"})]})]})]})}),B&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"bg-white rounded-2xl max-w-md w-full shadow-2xl overflow-hidden border border-slate-200/80 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/50",children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm",children:"Edit Kategori"}),e.jsx("button",{onClick:()=>oe(null),className:"p-1 text-slate-400 hover:text-slate-700",children:e.jsx(tt,{className:"w-5 h-5"})})]}),e.jsxs("form",{onSubmit:N=>{N.preventDefault(),u(ge=>ge.map(Ae=>Ae.id===B.id?B:Ae)),oe(null),j(`Kategori "${B.name}" berhasil diperbarui.`)},className:"p-6 space-y-3 text-xs",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Nama Kategori"}),e.jsx("input",{type:"text",value:B.name,onChange:N=>oe({...B,name:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-slate-700 font-bold mb-1",children:"Deskripsi"}),e.jsx("textarea",{rows:3,value:B.description,onChange:N=>oe({...B,description:N.target.value}),className:"w-full p-2.5 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"})]}),e.jsxs("div",{className:"pt-3 border-t border-slate-100 flex items-center justify-end gap-2.5",children:[e.jsx("button",{type:"button",onClick:()=>oe(null),className:"px-4 py-2 border border-slate-200 rounded-xl font-bold text-slate-600 hover:bg-slate-100",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-[#d0106e] text-white font-bold rounded-xl shadow-xs",children:"Simpan Perubahan"})]})]})]})})]})},tj=({triggerToast:h})=>{const[j,m]=d.useState([{id:"usr-001",name:"Reza Setiawan",username:"reza.setiawan",role:"Super Admin",tenantName:"-",email:"reza@muakita.com",phone:"0812-3456-7890",status:"Aktif",lastActive:"21 Mei 2025 10:24",createdAt:"10 Jan 2025 09:15",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-slate-900 text-white"},{id:"usr-002",name:"Dewi Lestari",username:"dewi.lestari",role:"Admin Tenant",tenantName:"Glow Bridal Studio",email:"dewi@glowbridal.com",phone:"0813-9876-5432",status:"Aktif",lastActive:"21 Mei 2025 09:58",createdAt:"15 Feb 2025 14:30",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-emerald-100 text-emerald-800"},{id:"usr-003",name:"Fahmi Rizky",username:"fahmi.rizky",role:"Owner / Tenant",tenantName:"Lovely Makeup Artist",email:"fahmi@lovelymua.com",phone:"0811-2233-4455",status:"Aktif",lastActive:"20 Mei 2025 16:20",createdAt:"18 Feb 2025 11:05",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-pink-100 text-pink-700"},{id:"usr-004",name:"Siti Nurhaliza",username:"siti.nurhaliza",role:"Admin Tenant",tenantName:"Cantik Salon & Beauty",email:"siti@cantiksalon.com",phone:"0857-1122-3344",status:"Aktif",lastActive:"20 Mei 2025 15:10",createdAt:"05 Mar 2025 10:00",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-[#10B981] text-white"},{id:"usr-005",name:"Budi Santoso",username:"budi.santoso",role:"Owner / Tenant",tenantName:"Aura Wedding Organizer",email:"budi@aurawedding.com",phone:"0812-7788-9900",status:"Aktif",lastActive:"19 Mei 2025 13:45",createdAt:"07 Mar 2025 09:20",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-amber-100 text-amber-800"},{id:"usr-006",name:"Mira Handayani",username:"mira.handayani",role:"Admin Tenant",tenantName:"Naya Makeup Studio",email:"mira@nayamua.com",phone:"0818-4455-6677",status:"Nonaktif",lastActive:"12 Mei 2025 08:30",createdAt:"12 Mar 2025 16:45",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-purple-100 text-purple-700"},{id:"usr-007",name:"Andi Wijaya",username:"andi.wijaya",role:"Owner / Tenant",tenantName:"Elegant MUA",email:"andi@elegantmua.com",phone:"0819-2233-1122",status:"Aktif",lastActive:"21 Mei 2025 07:50",createdAt:"20 Mar 2025 11:18",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-blue-100 text-blue-700"},{id:"usr-008",name:"Yuliana Putri",username:"yuliana.putri",role:"Admin Tenant",tenantName:"Beauty Classy",email:"yuli@beautyclassy.com",phone:"0812-6677-8899",status:"Aktif",lastActive:"18 Mei 2025 22:10",createdAt:"25 Mar 2025 13:40",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-rose-100 text-rose-700"},{id:"usr-009",name:"Rizky Maulana",username:"rizky.maulana",role:"Owner / Tenant",tenantName:"Test Tenant",email:"rizky@testtenant.com",phone:"0856-3344-5566",status:"Nonaktif",lastActive:"-",createdAt:"01 Apr 2025 10:10",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-orange-200 text-orange-900"},{id:"usr-010",name:"Tina Agustina",username:"tina.agustina",role:"Admin Tenant",tenantName:"Sample Tenant",email:"tina@sample.com",phone:"0813-1122-3344",status:"Aktif",lastActive:"17 Mei 2025 18:30",createdAt:"05 Apr 2025 15:55",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-teal-100 text-teal-800"}]),[o,S]=d.useState(j[0]),[M,C]=d.useState(["usr-001"]),[u,b]=d.useState("Semua Peran"),[f,A]=d.useState("Semua Status"),[y,R]=d.useState("Semua Tenant"),[W,G]=d.useState(""),[ae,xe]=d.useState("Informasi"),[$,T]=d.useState(null),[_,D]=d.useState(!1),[Y,se]=d.useState(""),[te,P]=d.useState(""),[le,pe]=d.useState(""),[be,J]=d.useState(""),[fe,B]=d.useState("Admin Tenant"),[oe,k]=d.useState("Glow Bridal Studio"),U=j.filter(v=>{const Z=u==="Semua Peran"||v.role===u,re=f==="Semua Status"||v.status===f,ue=y==="Semua Tenant"||v.tenantName===y,ne=W===""||v.name.toLowerCase().includes(W.toLowerCase())||v.username.toLowerCase().includes(W.toLowerCase())||v.email.toLowerCase().includes(W.toLowerCase());return Z&&re&&ue&&ne}),ie=()=>{M.length===U.length?C([]):C(U.map(v=>v.id))},me=(v,Z)=>{S(Z),M.includes(v)?C(M.filter(re=>re!==v)):C([...M,v])},Ne=v=>{if(v.preventDefault(),!Y||!le){h("Mohon lengkapi nama dan email pengguna");return}const Z={id:`usr-${String(Date.now()).slice(-3)}`,name:Y,username:te||Y.toLowerCase().replace(/\s+/g,"."),role:fe,tenantName:fe==="Super Admin"?"-":oe,email:le,phone:be||"0812-0000-0000",status:"Aktif",lastActive:"Baru saja",createdAt:"28 Mei 2025 09:00",timezone:"Asia/Jakarta (GMT+7)",language:"Bahasa Indonesia",avatarBg:"bg-pink-500 text-white"};m([Z,...j]),S(Z),D(!1),h(`Pengguna "${Z.name}" berhasil ditambahkan!`),se(""),P(""),pe(""),J("")},c=v=>{const Z=v.status==="Aktif"?"Nonaktif":"Aktif";m(re=>re.map(ue=>ue.id===v.id?{...ue,status:Z}:ue)),S({...v,status:Z}),h(`Status ${v.name} diubah menjadi ${Z}`)},F=v=>{m(Z=>Z.filter(re=>re.id!==v.id)),h(`Pengguna ${v.name} berhasil dihapus`),o.id===v.id&&j.length>1&&S(j.find(Z=>Z.id!==v.id)||j[0])};return e.jsxs("div",{className:"space-y-5 animate-in fade-in duration-200 text-slate-800 pb-12",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3",children:[e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-pink-500 flex items-center justify-center shrink-0 border border-pink-100",children:e.jsx(St,{className:"w-4.5 h-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Total User"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"1.248"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-1",children:[e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 18.6% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]}),e.jsx("svg",{className:"w-12 h-4 text-pink-500 stroke-current fill-none stroke-[2]",viewBox:"0 0 50 15",children:e.jsx("path",{d:"M0,12 L10,8 L20,13 L30,5 L40,9 L50,2"})})]})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center shrink-0 border border-purple-100",children:e.jsx(_a,{className:"w-4.5 h-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Super Admin"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"8"})]})]}),e.jsx("div",{className:"flex items-center justify-between pt-1",children:e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 0% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-blue-50 text-blue-600 flex items-center justify-center shrink-0 border border-blue-100",children:e.jsx(Na,{className:"w-4.5 h-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Admin Tenant"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"356"})]})]}),e.jsx("div",{className:"flex items-center justify-between pt-1",children:e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 12.4% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-amber-50 text-amber-600 flex items-center justify-center shrink-0 border border-amber-100",children:e.jsx(_s,{className:"w-4.5 h-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"Owner / Tenant"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"784"})]})]}),e.jsx("div",{className:"flex items-center justify-between pt-1",children:e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 19.8% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})})]}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col justify-between space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-teal-50 text-teal-600 flex items-center justify-center shrink-0 border border-teal-100",children:e.jsx(Na,{className:"w-4.5 h-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block truncate",children:"User Aktif (30 Hari)"}),e.jsx("span",{className:"text-base font-black text-slate-900 leading-tight block",children:"987"})]})]}),e.jsx("div",{className:"flex items-center justify-between pt-1",children:e.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-600 flex items-center gap-0.5",children:["↑ 21.3% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-4",children:[e.jsxs("div",{className:"bg-white p-3 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-wrap items-center justify-between gap-2.5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 flex-1 min-w-[280px]",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:u,onChange:v=>b(v.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Peran",children:"Semua Peran"}),e.jsx("option",{value:"Super Admin",children:"Super Admin"}),e.jsx("option",{value:"Admin Tenant",children:"Admin Tenant"}),e.jsx("option",{value:"Owner / Tenant",children:"Owner / Tenant"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:f,onChange:v=>A(v.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer",children:[e.jsx("option",{value:"Semua Status",children:"Semua Status"}),e.jsx("option",{value:"Aktif",children:"Aktif"}),e.jsx("option",{value:"Nonaktif",children:"Nonaktif"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:y,onChange:v=>R(v.target.value),className:"appearance-none bg-slate-50 border border-slate-200 text-slate-700 text-xs font-semibold py-2 pl-3 pr-8 rounded-xl focus:outline-none focus:border-pink-500 cursor-pointer max-w-[150px] truncate",children:[e.jsx("option",{value:"Semua Tenant",children:"Semua Tenant"}),e.jsx("option",{value:"Glow Bridal Studio",children:"Glow Bridal Studio"}),e.jsx("option",{value:"Lovely Makeup Artist",children:"Lovely Makeup Artist"}),e.jsx("option",{value:"Cantik Salon & Beauty",children:"Cantik Salon & Beauty"}),e.jsx("option",{value:"Aura Wedding Organizer",children:"Aura Wedding Organizer"}),e.jsx("option",{value:"Naya Makeup Studio",children:"Naya Makeup Studio"}),e.jsx("option",{value:"Elegant MUA",children:"Elegant MUA"}),e.jsx("option",{value:"Beauty Classy",children:"Beauty Classy"}),e.jsx("option",{value:"Test Tenant",children:"Test Tenant"}),e.jsx("option",{value:"Sample Tenant",children:"Sample Tenant"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-2.5 top-2.5 pointer-events-none"})]}),e.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-3 top-2.5"}),e.jsx("input",{type:"text",placeholder:"Cari nama, email, atau username...",value:W,onChange:v=>G(v.target.value),className:"w-full bg-slate-50 border border-slate-200 text-slate-800 placeholder-slate-400 text-xs font-medium py-2 pl-8 pr-3 rounded-xl focus:outline-none focus:border-pink-500"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>h("Filter pengguna diterapkan"),className:"px-3 py-2 bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold rounded-xl flex items-center gap-1.5 transition-colors cursor-pointer shadow-2xs",children:[e.jsx(Ta,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Filter"})]}),e.jsxs("button",{onClick:()=>h("Data pengguna berhasil di-export ke CSV"),className:"px-3 py-2 bg-white hover:bg-slate-50 border border-slate-200 text-slate-700 text-xs font-bold rounded-xl flex items-center gap-1.5 transition-colors cursor-pointer shadow-2xs",children:[e.jsx(Yl,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Export"})]}),e.jsxs("button",{onClick:()=>D(!0),className:"px-3.5 py-2 bg-[#EC167F] hover:bg-pink-600 text-white text-xs font-extrabold rounded-xl flex items-center gap-1.5 transition-all cursor-pointer shadow-sm active:scale-98",children:[e.jsx(ct,{className:"w-3.5 h-3.5 stroke-[3]"}),e.jsx("span",{children:"Tambah User"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left border-collapse",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50/70 border-b border-slate-100 text-[11px] font-bold text-slate-500 tracking-wider",children:[e.jsx("th",{className:"py-3 px-3 text-center w-10",children:e.jsx("input",{type:"checkbox",checked:M.length===U.length&&U.length>0,onChange:ie,className:"rounded border-slate-300 text-pink-600 focus:ring-pink-500 cursor-pointer"})}),e.jsx("th",{className:"py-3 px-3",children:"User"}),e.jsx("th",{className:"py-3 px-3",children:"Peran"}),e.jsx("th",{className:"py-3 px-3",children:"Tenant"}),e.jsx("th",{className:"py-3 px-3",children:"Email"}),e.jsx("th",{className:"py-3 px-3",children:"Status"}),e.jsx("th",{className:"py-3 px-3",children:"Terakhir Aktif"}),e.jsx("th",{className:"py-3 px-3",children:"Dibuat Pada"}),e.jsx("th",{className:"py-3 px-3 text-center",children:"Aksi"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs font-medium",children:U.map(v=>{const Z=o.id===v.id,re=M.includes(v.id);return e.jsxs("tr",{onClick:()=>S(v),className:`transition-colors cursor-pointer ${Z?"bg-pink-50/40 hover:bg-pink-50/60":"hover:bg-slate-50/80"}`,children:[e.jsx("td",{className:"py-3 px-3 text-center",onClick:ue=>ue.stopPropagation(),children:e.jsx("input",{type:"checkbox",checked:re,onChange:()=>me(v.id,v),className:"rounded border-slate-300 text-pink-600 focus:ring-pink-500 cursor-pointer"})}),e.jsx("td",{className:"py-3 px-3 min-w-[170px]",children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:`w-8 h-8 rounded-full ${v.avatarBg||"bg-slate-800 text-white"} font-extrabold text-[11px] flex items-center justify-center shrink-0`,children:v.name.charAt(0)}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block leading-tight truncate",children:v.name}),e.jsxs("span",{className:"text-[10px] text-slate-400 block truncate",children:["@",v.username]})]})]})}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-extrabold inline-block ${v.role==="Super Admin"?"bg-purple-100 text-purple-700":v.role==="Admin Tenant"?"bg-purple-100/80 text-purple-600":"bg-amber-100 text-amber-800"}`,children:v.role})}),e.jsx("td",{className:"py-3 px-3 min-w-[140px] text-slate-700 font-bold truncate",children:v.tenantName}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap text-slate-600 text-[11px]",children:v.email}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:e.jsxs("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-bold inline-flex items-center gap-1 ${v.status==="Aktif"?"bg-emerald-100 text-emerald-700":"bg-rose-100 text-rose-700"}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${v.status==="Aktif"?"bg-emerald-500":"bg-rose-500"}`}),v.status]})}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap text-[11px]",children:v.lastActive==="-"?e.jsx("span",{className:"text-slate-400",children:"-"}):e.jsxs("div",{children:[e.jsxs("span",{className:"font-bold text-slate-900 block leading-tight",children:[v.lastActive.split(" ")[0]," ",v.lastActive.split(" ")[1]," ",v.lastActive.split(" ")[2]]}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:v.lastActive.split(" ")[3]})]})}),e.jsx("td",{className:"py-3 px-3 whitespace-nowrap text-[11px]",children:e.jsxs("div",{children:[e.jsxs("span",{className:"font-bold text-slate-900 block leading-tight",children:[v.createdAt.split(" ")[0]," ",v.createdAt.split(" ")[1]," ",v.createdAt.split(" ")[2]]}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:v.createdAt.split(" ")[3]})]})}),e.jsx("td",{className:"py-3 px-3 text-center whitespace-nowrap",onClick:ue=>ue.stopPropagation(),children:e.jsxs("div",{className:"relative inline-block",children:[e.jsx("button",{onClick:()=>T($===v.id?null:v.id),className:"p-1.5 rounded-lg border border-slate-200 text-slate-400 hover:bg-slate-100 transition-colors cursor-pointer",children:e.jsx(Ea,{className:"w-3.5 h-3.5"})}),$===v.id&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-40 bg-white rounded-xl shadow-xl border border-slate-200 py-1.5 z-20 text-left text-xs animate-in fade-in zoom-in-95",children:[e.jsxs("button",{onClick:()=>{S(v),T(null)},className:"w-full px-3 py-1.5 text-slate-700 hover:bg-slate-50 flex items-center gap-2 font-medium cursor-pointer",children:[e.jsx(rs,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Lihat / Edit"})]}),e.jsxs("button",{onClick:()=>{c(v),T(null)},className:"w-full px-3 py-1.5 text-amber-700 hover:bg-amber-50 flex items-center gap-2 font-medium cursor-pointer",children:[e.jsx(ad,{className:"w-3.5 h-3.5 text-amber-500"}),e.jsx("span",{children:v.status==="Aktif"?"Nonaktifkan":"Aktifkan"})]}),e.jsxs("button",{onClick:()=>{F(v),T(null)},className:"w-full px-3 py-1.5 text-rose-600 hover:bg-rose-50 flex items-center gap-2 font-medium cursor-pointer",children:[e.jsx(ka,{className:"w-3.5 h-3.5 text-rose-500"}),e.jsx("span",{children:"Hapus User"})]})]})]})})]},v.id)})})]})}),e.jsxs("div",{className:"p-3 bg-slate-50/50 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-slate-500",children:[e.jsx("span",{children:"Menampilkan 1 - 10 dari 1.248 user"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-400 hover:bg-white transition-colors cursor-not-allowed",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsx("button",{className:"w-7 h-7 rounded-lg bg-[#EC167F] text-white font-bold flex items-center justify-center shadow-2xs",children:"1"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:"2"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:"3"}),e.jsx("span",{className:"text-slate-400 px-1",children:"..."}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:"125"}),e.jsx("button",{className:"w-7 h-7 rounded-lg border border-slate-200 flex items-center justify-center text-slate-600 hover:bg-white transition-colors",children:e.jsx(it,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{className:"appearance-none bg-white border border-slate-200 text-slate-700 text-xs font-semibold py-1 pl-2.5 pr-6 rounded-lg focus:outline-none",children:[e.jsx("option",{children:"10 / halaman"}),e.jsx("option",{children:"25 / halaman"}),e.jsx("option",{children:"50 / halaman"})]}),e.jsx(ye,{className:"w-3.5 h-3.5 text-slate-400 absolute right-1.5 top-1.5 pointer-events-none"})]})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs p-5 space-y-4 sticky top-4",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-100",children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900 tracking-wide uppercase",children:"Detail User"}),e.jsx("button",{onClick:()=>h("Tutup detail user"),className:"text-slate-400 hover:text-slate-600 transition-colors p-1 rounded-lg hover:bg-slate-100 cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-12 h-12 rounded-full ${o.avatarBg||"bg-slate-900 text-white"} font-black text-base flex items-center justify-center shrink-0 border-2 border-slate-100 shadow-2xs`,children:o.name.charAt(0)}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h4",{className:"text-sm font-black text-slate-900 truncate",children:o.name}),e.jsx("span",{className:`px-2 py-0.2 rounded-full text-[9px] font-bold ${o.status==="Aktif"?"bg-emerald-100 text-emerald-700":"bg-rose-100 text-rose-700"}`,children:o.status})]}),e.jsx("div",{children:e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-extrabold ${o.role==="Super Admin"?"bg-pink-100 text-[#EC167F]":o.role==="Admin Tenant"?"bg-purple-100 text-purple-700":"bg-amber-100 text-amber-800"}`,children:o.role})}),e.jsxs("div",{className:"space-y-0.5 pt-1 text-[11px] text-slate-500",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Ql,{className:"w-3 h-3 text-slate-400 shrink-0"}),e.jsx("span",{className:"truncate",children:o.email})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(va,{className:"w-3 h-3 text-slate-400 shrink-0"}),e.jsx("span",{children:o.phone})]})]})]})]}),e.jsx("div",{className:"flex items-center gap-4 border-b border-slate-100 text-xs font-extrabold pt-2",children:[{id:"Informasi",label:"Informasi"},{id:"Akses & Peran",label:"Akses & Peran"},{id:"Aktivitas",label:"Aktivitas"},{id:"Log",label:"Log"}].map(v=>e.jsxs("button",{onClick:()=>xe(v.id),className:`pb-2 transition-all relative cursor-pointer ${ae===v.id?"text-[#EC167F]":"text-slate-400 hover:text-slate-700"}`,children:[v.label,ae===v.id&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-[#EC167F] rounded-full"})]},v.id))}),ae==="Informasi"&&e.jsxs("div",{className:"space-y-2 text-xs pt-1",children:[e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Username"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.username})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Nama Lengkap"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.name})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Peran"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.role})]}),o.role!=="Super Admin"&&e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Tenant"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.tenantName})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Email"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.email})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"No. Telepon"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.phone})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Status"}),e.jsx("span",{className:"px-2 py-0.5 bg-emerald-100 text-emerald-700 rounded-md font-bold text-[10px]",children:o.status})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Tanggal Dibuat"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.createdAt})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Terakhir Aktif"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.lastActive})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Zona Waktu"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.timezone})]}),e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsx("span",{className:"text-slate-400 font-medium",children:"Bahasa"}),e.jsx("span",{className:"font-bold text-slate-900",children:o.language})]})]}),ae==="Akses & Peran"&&e.jsxs("div",{className:"space-y-3 text-xs pt-1",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Hak Akses Modul:"}),e.jsx("div",{className:"space-y-2",children:[{name:"Kelola Tenant & Paket",granted:!0},{name:"Pengaturan User & Role",granted:!0},{name:"Laporan Keuangan Platform",granted:o.role==="Super Admin"},{name:"CMS & Konten Website",granted:!0},{name:"Master Data Sistem",granted:o.role==="Super Admin"}].map((v,Z)=>e.jsxs("div",{className:"flex items-center justify-between p-2 rounded-xl bg-slate-50 border border-slate-100",children:[e.jsx("span",{className:"font-medium text-slate-700",children:v.name}),e.jsx("span",{className:`px-2 py-0.5 rounded-md text-[10px] font-bold ${v.granted?"bg-emerald-100 text-emerald-700":"bg-slate-200 text-slate-500"}`,children:v.granted?"Akses Penuh":"Terbatas"})]},Z))})]}),ae==="Aktivitas"&&e.jsxs("div",{className:"space-y-3 text-xs pt-1",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Aktivitas Terakhir:"}),e.jsx("div",{className:"space-y-2.5 relative pl-3 border-l-2 border-pink-200 ml-1",children:[{title:"Login ke platform",time:o.lastActive},{title:"Memperbarui profil pengguna",time:"19 Mei 2025, 14:20"},{title:"Mengakses menu Pembayaran",time:"18 Mei 2025, 10:15"}].map((v,Z)=>e.jsxs("div",{className:"relative space-y-0.5",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-[#EC167F] absolute -left-[17px] top-1"}),e.jsx("span",{className:"font-bold text-slate-900 block",children:v.title}),e.jsx("span",{className:"text-[10px] text-slate-400 block",children:v.time})]},Z))})]}),ae==="Log"&&e.jsxs("div",{className:"space-y-2 text-xs pt-1",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"System Logs:"}),e.jsxs("div",{className:"bg-slate-900 text-slate-200 p-3 rounded-xl font-mono text-[10px] space-y-1",children:[e.jsxs("p",{className:"text-emerald-400",children:["[INFO] User session started ID #",o.id]}),e.jsx("p",{className:"text-slate-400",children:"[LOG] IP 180.252.12.9 - Chrome MacOS"}),e.jsx("p",{className:"text-amber-400",children:"[AUTH] Token refreshed successfully"})]})]}),e.jsxs("div",{className:"space-y-2 pt-3 border-t border-slate-100",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Aksi Cepat"}),e.jsxs("button",{onClick:()=>h(`Edit pengguna ${o.name}`),className:"w-full py-2.5 bg-white hover:bg-slate-50 text-slate-800 font-extrabold text-xs rounded-xl border border-slate-200/90 transition-all flex items-center justify-center gap-2 cursor-pointer shadow-2xs",children:[e.jsx(rs,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Edit User"})]}),e.jsxs("button",{onClick:()=>h(`Link reset password telah dikirim ke ${o.email}`),className:"w-full py-2.5 bg-white hover:bg-slate-50 text-slate-800 font-extrabold text-xs rounded-xl border border-slate-200/90 transition-all flex items-center justify-center gap-2 cursor-pointer shadow-2xs",children:[e.jsx(kf,{className:"w-3.5 h-3.5 text-slate-500"}),e.jsx("span",{children:"Reset Password"})]}),e.jsxs("button",{onClick:()=>c(o),className:"w-full py-2.5 bg-amber-50/50 hover:bg-amber-100/60 text-amber-700 font-extrabold text-xs rounded-xl border border-amber-200 transition-all flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx(ad,{className:"w-3.5 h-3.5 text-amber-600"}),e.jsx("span",{children:o.status==="Aktif"?"Nonaktifkan User":"Aktifkan User"})]}),e.jsxs("button",{onClick:()=>F(o),className:"w-full py-2.5 bg-rose-50/50 hover:bg-rose-100/60 text-rose-600 font-extrabold text-xs rounded-xl border border-rose-200 transition-all flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx(ka,{className:"w-3.5 h-3.5 text-rose-500"}),e.jsx("span",{children:"Hapus User"})]})]})]})]}),_&&e.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in",children:e.jsxs("div",{className:"bg-white w-full max-w-md rounded-2xl border border-slate-200 shadow-2xl p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center",children:e.jsx(ct,{className:"w-4 h-4 stroke-[3]"})}),e.jsx("h3",{className:"text-sm font-black text-slate-900",children:"Tambah Pengguna Baru"})]}),e.jsx("button",{onClick:()=>D(!1),className:"p-1 rounded-lg text-slate-400 hover:text-slate-600 hover:bg-slate-100 cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})})]}),e.jsxs("form",{onSubmit:Ne,className:"space-y-3.5 text-xs",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"font-extrabold text-slate-700",children:["Nama Lengkap ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsx("input",{type:"text",placeholder:"Contoh: Sarah Azhari",value:Y,onChange:v=>se(v.target.value),className:"w-full bg-slate-50 border border-slate-200 p-2.5 rounded-xl text-xs font-medium focus:outline-none focus:border-pink-500 text-slate-900",required:!0})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-extrabold text-slate-700",children:"Username"}),e.jsx("input",{type:"text",placeholder:"sarah.azhari",value:te,onChange:v=>P(v.target.value),className:"w-full bg-slate-50 border border-slate-200 p-2.5 rounded-xl text-xs font-medium focus:outline-none focus:border-pink-500 text-slate-900"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-extrabold text-slate-700",children:"No. Telepon"}),e.jsx("input",{type:"text",placeholder:"0812345678",value:be,onChange:v=>J(v.target.value),className:"w-full bg-slate-50 border border-slate-200 p-2.5 rounded-xl text-xs font-medium focus:outline-none focus:border-pink-500 text-slate-900"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"font-extrabold text-slate-700",children:["Email ",e.jsx("span",{className:"text-pink-500",children:"*"})]}),e.jsx("input",{type:"email",placeholder:"sarah@muakita.com",value:le,onChange:v=>pe(v.target.value),className:"w-full bg-slate-50 border border-slate-200 p-2.5 rounded-xl text-xs font-medium focus:outline-none focus:border-pink-500 text-slate-900",required:!0})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-extrabold text-slate-700",children:"Peran / Role"}),e.jsxs("select",{value:fe,onChange:v=>B(v.target.value),className:"w-full bg-slate-50 border border-slate-200 p-2.5 rounded-xl text-xs font-medium focus:outline-none focus:border-pink-500 text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"Admin Tenant",children:"Admin Tenant"}),e.jsx("option",{value:"Owner / Tenant",children:"Owner / Tenant"}),e.jsx("option",{value:"Super Admin",children:"Super Admin"})]})]}),fe!=="Super Admin"&&e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"font-extrabold text-slate-700",children:"Tenant"}),e.jsxs("select",{value:oe,onChange:v=>k(v.target.value),className:"w-full bg-slate-50 border border-slate-200 p-2.5 rounded-xl text-xs font-medium focus:outline-none focus:border-pink-500 text-slate-900 cursor-pointer",children:[e.jsx("option",{value:"Glow Bridal Studio",children:"Glow Bridal Studio"}),e.jsx("option",{value:"Lovely Makeup Artist",children:"Lovely Makeup Artist"}),e.jsx("option",{value:"Cantik Salon & Beauty",children:"Cantik Salon & Beauty"}),e.jsx("option",{value:"Aura Wedding Organizer",children:"Aura Wedding Organizer"}),e.jsx("option",{value:"Naya Makeup Studio",children:"Naya Makeup Studio"}),e.jsx("option",{value:"Elegant MUA",children:"Elegant MUA"}),e.jsx("option",{value:"Beauty Classy",children:"Beauty Classy"})]})]}),e.jsxs("div",{className:"pt-2 flex items-center justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:()=>D(!1),className:"px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-extrabold text-xs rounded-xl cursor-pointer",children:"Batal"}),e.jsx("button",{type:"submit",className:"px-5 py-2 bg-[#EC167F] hover:bg-pink-600 text-white font-extrabold text-xs rounded-xl shadow-md cursor-pointer",children:"Simpan User"})]})]})]})})]})},aj=({activeTab:h,role:j,menus:m,triggerToast:o})=>{const[S,M]=d.useState(""),C=m.find(A=>A.id===h)||{label:h,icon:Ke},u=C.icon||Ke,f=(()=>{switch(h){case"promosi":return{title:"Promosi & Kode Voucher Platform",sub:"Kelola diskon, promo cashback, dan campaign pemasaran MuaKita",stats:[{label:"Voucher Aktif",value:"8 Kode",color:"text-[#EC167F]"},{label:"Total Klaim",value:"1.240 X",color:"text-purple-600"},{label:"Diskon Terpakai",value:"Rp 14.5Jt",color:"text-emerald-600"}],items:[{title:"Promo Launching MuaKita - Diskon 20%",code:"MUAKITA20",usage:"480/500",status:"Aktif"},{title:"Cashback Upgrade Pro Studio",code:"PROUPGRADE",usage:"120/200",status:"Aktif"},{title:"Diskon Khusus WO Baru",code:"NEWWO2025",usage:"45/100",status:"Aktif"}]};case"event":return{title:"Event Wedding & Proyek Klien",sub:"Daftar proyek pernikahan, moodboard makeup, dan rundown hari-H",stats:[{label:"Event Bulan Ini",value:"6 Event",color:"text-pink-600"},{label:"Resepsi Mendatang",value:"24 Mei 2025",color:"text-purple-600"},{label:"Vendor Terhubung",value:"12 Vendor",color:"text-blue-600"}],items:[{title:"Pernikahan Maya & Dimas (Griya Manten)",code:"WED-2025-05",usage:"Akad & Resepsi",status:"H-3 Hari"},{title:"Akad Nikah Clara & Farhan",code:"WED-2025-06",usage:"MUA Syar'i Look",status:"H-5 Hari"}]};case"jadwal":return{title:"Jadwal & Kalender Booking Studio",sub:"Visualisasi slot waktu makeup, tim standby, dan janji temu trial",stats:[{label:"Slot Terisi Sabtu",value:"100% Full",color:"text-[#EC167F]"},{label:"Slot Tersedia Minggu",value:"2 Slot",color:"text-emerald-600"},{label:"Trial Booking",value:"3 Klien",color:"text-blue-600"}],items:[{title:"06:00 - 08:30 WIB: Makeup Akad Maya Salsabila",code:"STUDIO-A",usage:"Lead MUA Maya",status:"Terjadwal"},{title:"09:00 - 11:00 WIB: Hairdo & Touchup Bridesmaid",code:"STUDIO-B",usage:"Stylist Rina",status:"Terjadwal"},{title:"13:00 - 15:00 WIB: Trial Makeup Lamaran Anisa",code:"STUDIO-A",usage:"Lead MUA Maya",status:"Terjadwal"}]};case"inventaris":return{title:"Inventaris Peralatan & Stock Makeup",sub:"Kelola stok foundation, bulu mata, persewaan gaun/kebaya & kebersihan kit",stats:[{label:"Total Item Kit",value:"148 Item",color:"text-slate-900"},{label:"Item Perlu Restock",value:"3 Item",color:"text-amber-600"},{label:"Koleksi Kebaya",value:"24 Gaun",color:"text-purple-600"}],items:[{title:"Foundation Estee Lauder Double Wear (Shade Bone)",code:"KOSM-001",usage:"Stok: 2 Botol",status:"Cukup"},{title:"Bulu Mata Artisan Pro #202 (Pack 10)",code:"KOSM-044",usage:"Stok: 1 Pack",status:"Perlu Restock"},{title:"Kebaya Pengantin Modern Rose Gold (Size M)",code:"GAUN-012",usage:"Disewa tgl 24 Mei",status:"Disewa"}]};case"tim":return{title:"Manajemen Tim MUA & Asisten Hairdo",sub:"Daftar staf, pembagian komisi per event, dan performa tim studio",stats:[{label:"Total Staf Studio",value:"5 Orang",color:"text-[#EC167F]"},{label:"Komisi Bulan Ini",value:"Rp 4.2Jt",color:"text-emerald-600"},{label:"Rating Tim",value:"4.95 / 5.0",color:"text-amber-500"}],items:[{title:"Siti Rahma (Hair Stylist Senior)",code:"STAF-01",usage:"Komisi 15% / Event",status:"Standby"},{title:"Dian Permata (Assistant MUA & Hijab Do)",code:"STAF-02",usage:"Komisi 10% / Event",status:"Standby"}]};default:return{title:`Modul Fitur: ${C.label}`,sub:`Kelola semua operasional dan data terpusat untuk kategori ${C.label}`,stats:[{label:"Status Fitur",value:"Aktif & Normal",color:"text-emerald-600"},{label:"Sync Server",value:"Realtime 100%",color:"text-blue-600"},{label:"Keamanan Data",value:"Encrypted",color:"text-purple-600"}],items:[{title:`Konfigurasi Utama ${C.label}`,code:`CFG-${h.toUpperCase()}-01`,usage:"Standar MuaKita",status:"Aktif"},{title:`Laporan & Analisis Data ${C.label}`,code:`REP-${h.toUpperCase()}-02`,usage:"Update Otomatis",status:"Aktif"}]}}})();return e.jsxs("div",{className:"space-y-4 animate-in fade-in duration-200",children:[e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"p-2.5 bg-pink-50 text-[#EC167F] rounded-xl font-bold",children:e.jsx(u,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"text-base font-extrabold text-slate-900",children:f.title}),e.jsxs("span",{className:"text-[9px] font-extrabold uppercase px-2 py-0.5 bg-slate-100 text-slate-600 rounded-md",children:["Route: /",h]})]}),e.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:f.sub})]})]}),e.jsxs("button",{onClick:()=>o(`Memproses tindakan pada modul ${C.label}`),className:"bg-[#EC167F] hover:bg-[#D41270] text-white text-xs font-bold px-3.5 py-2 rounded-xl shadow-xs transition-all flex items-center justify-center gap-1.5 cursor-pointer shrink-0",children:[e.jsx(ct,{className:"w-4 h-4"}),e.jsxs("span",{children:["Tambah Item ",C.label]})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:f.stats.map((A,y)=>e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs",children:[e.jsx("p",{className:"text-[11px] font-semibold text-slate-500",children:A.label}),e.jsx("h3",{className:`text-xl font-black mt-1 ${A.color}`,children:A.value}),e.jsx("span",{className:"text-[10px] font-bold text-slate-400 inline-block mt-1",children:"Terverifikasi sistem"})]},y))}),e.jsxs("div",{className:"bg-white p-3.5 rounded-2xl border border-slate-200/80 shadow-2xs flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"relative w-full sm:w-80",children:[e.jsx("input",{type:"text",placeholder:`Cari dalam ${C.label}...`,value:S,onChange:A=>M(A.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-slate-100 border border-slate-200 rounded-xl text-xs focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20"}),e.jsx(Gt,{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-2.5"})]}),e.jsxs("button",{onClick:()=>o("Filter data diterapkan"),className:"px-3 py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-xs rounded-xl flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Ta,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Filter"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/80 shadow-2xs overflow-hidden",children:[e.jsxs("div",{className:"p-3 border-b border-slate-100 flex items-center justify-between",children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900",children:"Daftar Component Modul"}),e.jsx("span",{className:"text-[11px] font-bold text-emerald-600 bg-emerald-50 px-2 py-0.5 rounded-full",children:"Fitur Siap Digunakan"})]}),e.jsx("div",{className:"divide-y divide-slate-100",children:f.items.filter(A=>A.title.toLowerCase().includes(S.toLowerCase())).map((A,y)=>e.jsxs("div",{className:"p-3.5 flex items-center justify-between hover:bg-slate-50/70 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-pink-50 text-[#EC167F] font-black text-xs flex items-center justify-center shrink-0",children:e.jsx(Ge,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-extrabold text-xs text-slate-900",children:A.title}),e.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-[10px] text-slate-400 font-mono",children:[e.jsx("span",{children:A.code})," • ",e.jsx("span",{className:"text-slate-600 font-sans",children:A.usage})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"px-2.5 py-1 bg-slate-100 text-slate-700 text-[10px] font-extrabold rounded-lg",children:A.status}),e.jsx("button",{onClick:()=>o(`Aksi dijalankan untuk ${A.title}`),className:"px-3 py-1 bg-[#EC167F] hover:bg-[#D41270] text-white text-[11px] font-bold rounded-lg transition-colors cursor-pointer",children:"Buka"})]})]},y))})]})]})},sj=({isOpen:h,onClose:j,onLogin:m})=>{const[o,S]=d.useState("owner"),[M,C]=d.useState("owner@rezaameliamua.com"),[u,b]=d.useState("••••••••");if(!h)return null;const f=y=>{S(y),C(y==="superadmin"?"admin@muakita.com":"owner@rezaameliamua.com")},A=y=>{y.preventDefault(),m(o)};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-900/60 backdrop-blur-xs p-4 animate-in fade-in duration-200",children:e.jsxs("div",{className:"bg-white rounded-3xl max-w-md w-full p-6 sm:p-7 shadow-2xl border border-slate-100 relative space-y-6 animate-in zoom-in-95 duration-200",onClick:y=>y.stopPropagation(),children:[e.jsx("button",{onClick:j,className:"absolute top-5 right-5 w-8 h-8 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-500 flex items-center justify-center transition-colors cursor-pointer",children:e.jsx(tt,{className:"w-4 h-4"})}),e.jsxs("div",{className:"text-center space-y-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-pink-50 border border-pink-100 text-[#EC167F] text-xs font-black",children:[e.jsx(Ke,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"MuaKita Platform Login"})]}),e.jsx("h2",{className:"text-2xl font-black text-slate-900 tracking-tight",children:"Masuk ke Dashboard"}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Pilih role akun dummy di bawah ini untuk mengakses sistem MuaKita"})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsx("label",{className:"text-xs font-bold text-slate-700 block",children:"Pilih Mode Akses (Demo):"}),e.jsxs("div",{className:"grid grid-cols-1 gap-2.5",children:[e.jsxs("button",{type:"button",onClick:()=>f("owner"),className:`p-3.5 rounded-2xl border text-left transition-all cursor-pointer flex items-start gap-3 relative ${o==="owner"?"bg-pink-50/80 border-[#EC167F] ring-2 ring-[#EC167F]/20 shadow-xs":"bg-slate-50 hover:bg-slate-100 border-slate-200/80 text-slate-700"}`,children:[e.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center shrink-0 ${o==="owner"?"bg-[#EC167F] text-white shadow-xs":"bg-slate-200 text-slate-600"}`,children:e.jsx(Na,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0 pr-6",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900",children:"Bisnis Owner / Studio MUA"}),e.jsx("span",{className:"px-1.5 py-0.5 rounded bg-pink-100 text-[#EC167F] font-black text-[9px]",children:"UTAMA"})]}),e.jsx("p",{className:"text-[11px] text-slate-500 mt-0.5 font-medium leading-relaxed",children:"Kelola booking, jadwal, invoice, CRM pelanggan, dan keuangan studio MUA Anda."})]}),o==="owner"&&e.jsx(Ge,{className:"w-5 h-5 text-[#EC167F] absolute top-3.5 right-3.5"})]}),e.jsxs("button",{type:"button",onClick:()=>f("superadmin"),className:`p-3.5 rounded-2xl border text-left transition-all cursor-pointer flex items-start gap-3 relative ${o==="superadmin"?"bg-purple-50/80 border-purple-600 ring-2 ring-purple-600/20 shadow-xs":"bg-slate-50 hover:bg-slate-100 border-slate-200/80 text-slate-700"}`,children:[e.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center shrink-0 ${o==="superadmin"?"bg-purple-600 text-white shadow-xs":"bg-slate-200 text-slate-600"}`,children:e.jsx(_a,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0 pr-6",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("h3",{className:"text-xs font-extrabold text-slate-900",children:"Super Admin Platform"}),e.jsx("span",{className:"px-1.5 py-0.5 rounded bg-purple-100 text-purple-700 font-black text-[9px]",children:"SAAS ADMIN"})]}),e.jsx("p",{className:"text-[11px] text-slate-500 mt-0.5 font-medium leading-relaxed",children:"Kelola daftar tenant studio, paket berlangganan, omset platform, & sistem."})]}),o==="superadmin"&&e.jsx(Ge,{className:"w-5 h-5 text-purple-600 absolute top-3.5 right-3.5"})]})]})]}),e.jsxs("form",{onSubmit:A,className:"space-y-3 pt-1",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(Ql,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3"}),e.jsx("input",{type:"email",value:M,onChange:y=>C(y.target.value),className:"w-full pl-10 pr-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20",required:!0})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 mb-1",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(Xc,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3"}),e.jsx("input",{type:"password",value:u,onChange:y=>b(y.target.value),className:"w-full pl-10 pr-3.5 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium focus:bg-white focus:outline-none focus:ring-2 focus:ring-pink-500/20",required:!0})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs pt-1",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer font-medium text-slate-600",children:[e.jsx("input",{type:"checkbox",defaultChecked:!0,className:"accent-[#EC167F] w-4 h-4 rounded"}),e.jsx("span",{children:"Ingat Sesi Saya"})]}),e.jsx("span",{className:"text-[#EC167F] font-bold hover:underline cursor-pointer",children:"Lupa Password?"})]}),e.jsxs("button",{type:"submit",className:"w-full py-3 px-4 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-md hover:shadow-lg transition-all flex items-center justify-center gap-2 cursor-pointer mt-4",children:[e.jsx(Jl,{className:"w-4 h-4"}),e.jsxs("span",{children:["Masuk ke Dashboard (",o==="superadmin"?"Super Admin":"Bisnis Owner",")"]}),e.jsx(Kt,{className:"w-4 h-4"})]})]}),e.jsx("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-200/80 text-[11px] text-slate-500 text-center font-medium",children:"🔒 Bebas akses instan tanpa verifikasi password tambahan untuk kemudahan pengujian."})]})})},lj=({onSelectPlan:h,onNavigate:j,onOpenLogin:m})=>{const[o,S]=d.useState("yearly"),[M,C]=d.useState("matrix"),[u,b]=d.useState(3),[f,A]=d.useState(!0),[y,R]=d.useState(!0),[W,G]=d.useState(!1),ae=o==="monthly"?99e3:79e3,xe=f?o==="monthly"?5e4:4e4:0,$=y?o==="monthly"?75e3:6e4:0,T=W?o==="monthly"?15e4:12e4:0,_=u*ae+xe+$+T,D=[{category:"Reservasi & Kalender Digital",items:[{name:"Kalender Booking Interaktif & Jadwal Real-time",starter:!0,pro:!0,biz:!0,ent:!0},{name:"Form Booking Publik Online (Link Bio IG)",starter:!0,pro:!0,biz:!0,ent:!0},{name:"Sistem Manajemen DP (Down Payment) & Pelunasan",starter:!0,pro:!0,biz:!0,ent:!0},{name:"Katalog Layanan & Pricelist Paket Custom",starter:!0,pro:!0,biz:!0,ent:!0},{name:"Sistem Anti Bentrok Jam & Kuota Slot",starter:!0,pro:!0,biz:!0,ent:!0}]},{category:"Otomatisasi & Lokasi (Maps API)",items:[{name:"Hitung Ongkos Transport Maps API Otomatis",starter:!1,pro:!0,biz:!0,ent:!0},{name:"Deteksi Jarak (KM) & Estimasi Waktu Tempuh",starter:!1,pro:!0,biz:!0,ent:!0},{name:"Notifikasi Otomatis WhatsApp Reminder Gateway",starter:!1,pro:"Optional",biz:!0,ent:!0},{name:"Kirim Invoice & Kwitansi Otomatis ke WA Klien",starter:!1,pro:!0,biz:!0,ent:!0}]},{category:"Tim & Keuangan Bisnis",items:[{name:"Laporan Keuangan, Arus Kas & Laba Rugi",starter:"Dasar",pro:"Lengkap",biz:"Advanced",ent:"Custom API"},{name:"Manajemen Tim & Pembagian Komisi Staff MUA",starter:!1,pro:!0,biz:!0,ent:!0},{name:"Rundown Acara Wedding & Event Checklist",starter:!1,pro:!0,biz:!0,ent:!0},{name:"Database Pelanggan & Catatan Preferences Klien",starter:!0,pro:!0,biz:!0,ent:!0},{name:"Manajemen Inventaris Kosmetik & Alert Stok",starter:!1,pro:!0,biz:!0,ent:!0},{name:"Multi-Cabang / Multi-Outlet Studio",starter:!1,pro:!1,biz:!0,ent:!0},{name:"Dedicated Account Manager & SLA 99.9%",starter:!1,pro:!1,biz:!1,ent:!0}]}];return e.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900 font-sans pb-20",children:[e.jsx("div",{className:"bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white pt-12 pb-20 px-4 sm:px-6 lg:px-8 border-b border-slate-800",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-500/20 text-pink-300 border border-pink-500/30 text-xs font-bold",children:[e.jsx(Ke,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Garansi Uang Kembali 30 Hari • Uji Coba Gratis 14 Hari"})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-black tracking-tight max-w-3xl mx-auto leading-tight",children:["Pilih Paket Langganan ",e.jsx("span",{className:"text-[#EC167F]",children:"MuaKita"})]}),e.jsx("p",{className:"text-sm sm:text-base text-slate-300 max-w-2xl mx-auto font-medium",children:"Satu-satunya sistem manajemen operasional MUA terpadu di Indonesia. Otomatiskan jadwal, faktur, hingga perhitungan ongkos transport."}),e.jsx("div",{className:"pt-6 flex items-center justify-center gap-4",children:e.jsxs("div",{className:"bg-slate-800/80 p-1.5 rounded-2xl border border-slate-700/80 inline-flex items-center gap-2 text-xs font-extrabold",children:[e.jsx("button",{onClick:()=>S("monthly"),className:`px-5 py-2 rounded-xl transition-all cursor-pointer ${o==="monthly"?"bg-[#EC167F] text-white shadow-md":"text-slate-400 hover:text-white"}`,children:"Tagihan Bulanan"}),e.jsxs("button",{onClick:()=>S("yearly"),className:`px-5 py-2 rounded-xl transition-all cursor-pointer flex items-center gap-2 ${o==="yearly"?"bg-[#EC167F] text-white shadow-md":"text-slate-400 hover:text-white"}`,children:[e.jsx("span",{children:"Tagihan Tahunan"}),e.jsx("span",{className:"px-2 py-0.5 rounded-md bg-emerald-500 text-slate-950 text-[10px] font-black",children:"Hemat 20%"})]})]})})]})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-2 border border-slate-200 shadow-lg mb-8 max-w-xl mx-auto flex items-center gap-2 text-xs font-extrabold",children:[e.jsxs("button",{onClick:()=>C("matrix"),className:`flex-1 py-3 px-4 rounded-xl transition-all cursor-pointer text-center flex items-center justify-center gap-2 ${M==="matrix"?"bg-slate-900 text-white shadow-md":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(jm,{className:"w-4 h-4"}),e.jsx("span",{children:"Matriks Perbandingan Fitur"})]}),e.jsxs("button",{onClick:()=>C("calculator"),className:`flex-1 py-3 px-4 rounded-xl transition-all cursor-pointer text-center flex items-center justify-center gap-2 ${M==="calculator"?"bg-[#EC167F] text-white shadow-md":"text-slate-600 hover:text-slate-900"}`,children:[e.jsx(Nm,{className:"w-4 h-4"}),e.jsx("span",{children:"Kalkulator Estimasi Kebutuhan"})]})]}),M==="matrix"?e.jsxs("div",{className:"space-y-12",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-3xl p-6 border border-slate-200 shadow-sm flex flex-col justify-between space-y-6 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"px-3 py-1 rounded-full bg-slate-100 text-slate-700 text-xs font-black uppercase tracking-wider",children:"Starter"}),e.jsx("h3",{className:"text-xl font-extrabold text-slate-900 mt-2",children:"Solo MUA"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1 font-medium",children:"Ideal untuk MUA freelancer / pemula yang ingin mengelola jadwal tanpa bentrok."})]}),e.jsxs("div",{className:"py-2 border-y border-slate-100",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Rp"}),e.jsx("span",{className:"text-3xl font-black text-slate-900",children:o==="yearly"?"119.000":"149.000"}),e.jsx("span",{className:"text-xs text-slate-500 font-medium",children:"/bulan"})]}),e.jsxs("span",{className:"text-[10px] text-slate-400 block mt-0.5",children:["Ditagihkan ",o==="yearly"?"tahunan":"bulanan"]})]}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-slate-700 font-medium",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"1 Studio & 1 Account Admin"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Kalender Reservasi Unlimited"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Form Booking Publik Klien"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Database Pelanggan & Catatan"})]})]})]}),e.jsx("button",{onClick:()=>h("Starter","owner"),className:"w-full py-3 bg-slate-100 hover:bg-slate-200 text-slate-900 font-extrabold rounded-2xl text-xs transition-all cursor-pointer",children:"Pilih Paket Starter"})]}),e.jsxs("div",{className:"bg-pink-50/40 rounded-3xl p-6 border-2 border-[#EC167F] shadow-xl flex flex-col justify-between space-y-6 relative hover:scale-[1.02] transition-all",children:[e.jsx("span",{className:"absolute -top-3.5 left-1/2 -translate-x-1/2 px-4 py-1 bg-[#EC167F] text-white text-[10px] font-black rounded-full uppercase tracking-wider shadow-md",children:"Paling Populer & Direkomendasikan"}),e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsxs("div",{children:[e.jsx("span",{className:"px-3 py-1 rounded-full bg-pink-100 text-[#EC167F] text-xs font-black uppercase tracking-wider",children:"Professional"}),e.jsx("h3",{className:"text-xl font-extrabold text-slate-900 mt-2",children:"Studio & Tim MUA"}),e.jsx("p",{className:"text-xs text-slate-600 mt-1 font-medium",children:"Untuk MUA profesional dengan tim/asisten yang butuh otomatisasi lokasi Google Maps."})]}),e.jsxs("div",{className:"py-2 border-y border-pink-200/60",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xs text-[#EC167F] font-bold",children:"Rp"}),e.jsx("span",{className:"text-3xl font-black text-slate-900",children:o==="yearly"?"239.000":"299.000"}),e.jsx("span",{className:"text-xs text-slate-500 font-medium",children:"/bulan"})]}),e.jsxs("span",{className:"text-[10px] text-slate-500 block mt-0.5",children:["Ditagihkan ",o==="yearly"?"tahunan (Hemat 20%)":"bulanan"]})]}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-slate-800 font-semibold",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-[#EC167F] shrink-0"}),e.jsx("span",{children:"Hitung Transport Maps API Otomatis"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-[#EC167F] shrink-0"}),e.jsx("span",{children:"Manajemen Tim & Komisi Staff"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-[#EC167F] shrink-0"}),e.jsx("span",{children:"Rundown Wedding & Event"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-[#EC167F] shrink-0"}),e.jsx("span",{children:"Laporan Keuangan & Cashflow"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-[#EC167F] shrink-0"}),e.jsx("span",{children:"WhatsApp Auto Reminder Gateway"})]})]})]}),e.jsx("button",{onClick:()=>h("Professional","owner"),className:"w-full py-3 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-2xl text-xs shadow-lg shadow-pink-500/30 transition-all cursor-pointer",children:"Coba Professional Gratis"})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-6 border border-slate-200 shadow-sm flex flex-col justify-between space-y-6 hover:shadow-xl transition-all",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"px-3 py-1 rounded-full bg-slate-100 text-slate-700 text-xs font-black uppercase tracking-wider",children:"Business"}),e.jsx("h3",{className:"text-xl font-extrabold text-slate-900 mt-2",children:"Beauty Salon & Multi-Branch"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1 font-medium",children:"Untuk salon kecantikan & studio MUA cabang banyak dengan analisis performa lengkap."})]}),e.jsxs("div",{className:"py-2 border-y border-slate-100",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Rp"}),e.jsx("span",{className:"text-3xl font-black text-slate-900",children:o==="yearly"?"399.000":"499.000"}),e.jsx("span",{className:"text-xs text-slate-500 font-medium",children:"/bulan"})]}),e.jsxs("span",{className:"text-[10px] text-slate-400 block mt-0.5",children:["Ditagihkan ",o==="yearly"?"tahunan":"bulanan"]})]}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-slate-700 font-medium",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Hingga 5 Cabang Studio"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Semua Fitur Professional"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Laporan Keuangan Advanced"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-emerald-600 shrink-0"}),e.jsx("span",{children:"Manajemen Stok Kosmetik"})]})]})]}),e.jsx("button",{onClick:()=>h("Business","owner"),className:"w-full py-3 bg-slate-100 hover:bg-slate-200 text-slate-900 font-extrabold rounded-2xl text-xs transition-all cursor-pointer",children:"Pilih Paket Business"})]}),e.jsxs("div",{className:"bg-slate-900 rounded-3xl p-6 text-white shadow-xl flex flex-col justify-between space-y-6 hover:shadow-2xl transition-all",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"px-3 py-1 rounded-full bg-slate-800 text-pink-300 border border-slate-700 text-xs font-black uppercase tracking-wider",children:"Enterprise"}),e.jsx("h3",{className:"text-xl font-extrabold text-white mt-2",children:"Franchise & Network"}),e.jsx("p",{className:"text-xs text-slate-300 mt-1 font-medium",children:"Solusi kustom untuk jaringan franchise klinik kecantikan dengan integrasi API khusus."})]}),e.jsxs("div",{className:"py-2 border-y border-slate-800",children:[e.jsx("span",{className:"text-3xl font-black text-white",children:"Custom"}),e.jsx("span",{className:"text-xs text-slate-400 block mt-0.5",children:"Sesuai kebutuhan cabang & API"})]}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-slate-300 font-medium",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-pink-400 shrink-0"}),e.jsx("span",{children:"Unlimited Cabang & Staff"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-pink-400 shrink-0"}),e.jsx("span",{children:"Custom Integrasi API & ERP"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-pink-400 shrink-0"}),e.jsx("span",{children:"Dedicated Account Manager"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ge,{className:"w-4 h-4 text-pink-400 shrink-0"}),e.jsx("span",{children:"SLA Uptime 99.9% + Support VIP"})]})]})]}),e.jsx("button",{onClick:()=>h("Enterprise","super_admin"),className:"w-full py-3 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-2xl text-xs transition-all cursor-pointer",children:"Hubungi Tim Enterprise"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl border border-slate-200 overflow-hidden shadow-sm space-y-0",children:[e.jsxs("div",{className:"p-6 bg-slate-900 text-white flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-extrabold",children:"Matriks Perbandingan Fitur Lengkap"}),e.jsx("p",{className:"text-xs text-slate-300 mt-0.5",children:"Detail setiap kemampuan sistem berdasarkan tipe paket"})]}),e.jsx("span",{className:"px-3 py-1 rounded-full bg-pink-500/20 text-pink-300 border border-pink-500/30 text-xs font-bold",children:"Update Terbaru 2025"})]}),D.map((Y,se)=>e.jsxs("div",{className:"border-t border-slate-200",children:[e.jsx("div",{className:"bg-slate-100/80 px-6 py-3 font-black text-xs text-slate-800 uppercase tracking-wider",children:Y.category}),e.jsx("div",{className:"divide-y divide-slate-100 text-xs",children:Y.items.map((te,P)=>e.jsxs("div",{className:"grid grid-cols-12 p-4 items-center hover:bg-slate-50 transition-colors",children:[e.jsx("div",{className:"col-span-5 sm:col-span-4 font-bold text-slate-900",children:te.name}),e.jsx("div",{className:"col-span-2 text-center",children:typeof te.starter=="boolean"?te.starter?e.jsx(Me,{className:"w-4 h-4 text-emerald-600 mx-auto stroke-[3]"}):e.jsx("span",{className:"text-slate-300",children:"—"}):e.jsx("span",{className:"font-bold text-slate-700",children:te.starter})}),e.jsx("div",{className:"col-span-2 text-center bg-pink-50/50 py-1 rounded-lg",children:typeof te.pro=="boolean"?te.pro?e.jsx(Me,{className:"w-4 h-4 text-[#EC167F] mx-auto stroke-[3]"}):e.jsx("span",{className:"text-slate-300",children:"—"}):e.jsx("span",{className:"font-extrabold text-[#EC167F]",children:te.pro})}),e.jsx("div",{className:"col-span-1 sm:col-span-2 text-center",children:typeof te.biz=="boolean"?te.biz?e.jsx(Me,{className:"w-4 h-4 text-emerald-600 mx-auto stroke-[3]"}):e.jsx("span",{className:"text-slate-300",children:"—"}):e.jsx("span",{className:"font-bold text-slate-700",children:te.biz})}),e.jsx("div",{className:"col-span-2 sm:col-span-2 text-center",children:typeof te.ent=="boolean"?te.ent?e.jsx(Me,{className:"w-4 h-4 text-emerald-600 mx-auto stroke-[3]"}):e.jsx("span",{className:"text-slate-300",children:"—"}):e.jsx("span",{className:"font-bold text-slate-700",children:te.ent})})]},P))})]},se))]})]}):e.jsxs("div",{className:"bg-white rounded-3xl p-8 border border-slate-200 shadow-xl max-w-4xl mx-auto space-y-8",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-[#EC167F] block",children:"KALKULATOR BIAYA"}),e.jsx("h2",{className:"text-2xl font-black text-slate-900 mt-1",children:"Hitung Estimasi Investasi MuaKita"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Atur jumlah tim MUA dan pilih add-on sesuai dengan kebutuhan operasional studio Anda."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-8 items-start",children:[e.jsxs("div",{className:"md:col-span-7 space-y-6",children:[e.jsxs("div",{className:"bg-slate-50 p-5 rounded-2xl border border-slate-200 space-y-4",children:[e.jsxs("div",{className:"flex justify-between items-center text-xs",children:[e.jsxs("label",{className:"font-black text-slate-800 flex items-center gap-2",children:[e.jsx(St,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Jumlah Anggota Tim / Asisten MUA"})]}),e.jsxs("span",{className:"px-3 py-1 bg-[#EC167F] text-white rounded-xl font-black text-xs shadow-2xs",children:[u," Pengguna"]})]}),e.jsx("input",{type:"range",min:1,max:20,value:u,onChange:Y=>b(parseInt(Y.target.value)),className:"w-full accent-[#EC167F] cursor-pointer"}),e.jsxs("div",{className:"flex justify-between text-[10px] text-slate-400 font-bold",children:[e.jsx("span",{children:"1 Solo MUA"}),e.jsx("span",{children:"10 Staff Studio"}),e.jsx("span",{children:"20+ Team Multi-Cabang"})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-xs font-black text-slate-900 uppercase tracking-wider",children:"Modul & Add-On Tambahan"}),e.jsxs("label",{className:"flex items-center justify-between p-4 bg-white border border-slate-200 rounded-2xl cursor-pointer hover:border-pink-300 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",checked:f,onChange:Y=>A(Y.target.checked),className:"w-4 h-4 accent-[#EC167F] rounded cursor-pointer"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-bold text-slate-900 block",children:"WhatsApp Auto Gateway"}),e.jsx("span",{className:"text-[10px] text-slate-500",children:"Notifikasi pengingat H-1 & invoice otomatis"})]})]}),e.jsxs("span",{className:"text-xs font-black text-[#EC167F]",children:["+Rp ",o==="yearly"?"40.000":"50.000"," ",e.jsx("span",{className:"text-[9px] text-slate-400 font-normal",children:"/bln"})]})]}),e.jsxs("label",{className:"flex items-center justify-between p-4 bg-white border border-slate-200 rounded-2xl cursor-pointer hover:border-pink-300 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",checked:y,onChange:Y=>R(Y.target.checked),className:"w-4 h-4 accent-[#EC167F] rounded cursor-pointer"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-bold text-slate-900 block",children:"Custom Domain Website (.com/.id)"}),e.jsx("span",{className:"text-[10px] text-slate-500",children:"Form booking dengan alamat website milik studio Anda"})]})]}),e.jsxs("span",{className:"text-xs font-black text-[#EC167F]",children:["+Rp ",o==="yearly"?"60.000":"75.000"," ",e.jsx("span",{className:"text-[9px] text-slate-400 font-normal",children:"/bln"})]})]}),e.jsxs("label",{className:"flex items-center justify-between p-4 bg-white border border-slate-200 rounded-2xl cursor-pointer hover:border-pink-300 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",checked:W,onChange:Y=>G(Y.target.checked),className:"w-4 h-4 accent-[#EC167F] rounded cursor-pointer"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-bold text-slate-900 block",children:"Modul Multi-Cabang Outlet"}),e.jsx("span",{className:"text-[10px] text-slate-500",children:"Kelola inventaris & keuangan beberapa lokasi"})]})]}),e.jsxs("span",{className:"text-xs font-black text-[#EC167F]",children:["+Rp ",o==="yearly"?"120.000":"150.000"," ",e.jsx("span",{className:"text-[9px] text-slate-400 font-normal",children:"/bln"})]})]})]})]}),e.jsxs("div",{className:"md:col-span-5 bg-gradient-to-br from-slate-900 to-slate-800 p-6 rounded-3xl text-white space-y-6 shadow-xl",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-pink-400 block",children:"Rincian Estimasi Biaya"}),e.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Rp"}),e.jsx("span",{className:"text-4xl font-black text-white",children:_.toLocaleString("id-ID")}),e.jsx("span",{className:"text-xs text-slate-400",children:"/ bulan"})]}),e.jsx("span",{className:"text-[11px] text-slate-300 block mt-1",children:o==="yearly"?"Ditagihkan tahunan (Hemat 20%)":"Ditagihkan bulanan"})]}),e.jsxs("div",{className:"space-y-2.5 border-t border-slate-700/80 pt-4 text-xs",children:[e.jsxs("div",{className:"flex justify-between text-slate-300",children:[e.jsxs("span",{children:[u," Lisensi Staff Studio"]}),e.jsxs("span",{children:["Rp ",(u*ae).toLocaleString("id-ID")]})]}),f&&e.jsxs("div",{className:"flex justify-between text-slate-300",children:[e.jsx("span",{children:"WhatsApp Auto Gateway"}),e.jsxs("span",{children:["Rp ",xe.toLocaleString("id-ID")]})]}),y&&e.jsxs("div",{className:"flex justify-between text-slate-300",children:[e.jsx("span",{children:"Custom Domain Studio"}),e.jsxs("span",{children:["Rp ",$.toLocaleString("id-ID")]})]}),W&&e.jsxs("div",{className:"flex justify-between text-slate-300",children:[e.jsx("span",{children:"Modul Multi-Cabang"}),e.jsxs("span",{children:["Rp ",T.toLocaleString("id-ID")]})]})]}),e.jsxs("div",{className:"pt-2",children:[e.jsxs("button",{onClick:()=>h("Custom Estimate","owner"),className:"w-full py-3.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl shadow-lg shadow-pink-500/30 transition-all flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx("span",{children:"Mulai Trial Gratis 14 Hari"}),e.jsx(Kt,{className:"w-4 h-4"})]}),e.jsx("span",{className:"text-[10px] text-slate-400 text-center block mt-3 font-medium",children:"Tanpa kartu kredit • Langsung aktif dalam 2 menit"})]})]})]})]})]})]})},nj=({onOpenLogin:h,onNavigate:j})=>{const[m,o]=d.useState("mua"),[S,M]=d.useState(""),[C,u]=d.useState("Semua Kota"),b=[{id:1,name:"Glow Bridal & Beauty Studio",owner:"Giselle & Team MUA",rating:4.9,reviews:148,city:"Jakarta Selatan",specialty:"Wedding & Engagement",priceFrom:"Rp 2.500.000",image:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=400",verified:!0,description:"Spesialis makeup pengantin tradisional & modern glam dengan riasan tahan hingga 18 jam."},{id:2,name:"LAVISH Beauty MUA",owner:"Anisa Putri, S.Sn",rating:4.8,reviews:94,city:"Bandung",specialty:"Sunda Siger & Modern Glam",priceFrom:"Rp 1.800.000",image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=400",verified:!0,description:"Pusat tata rias pengantin Sunda Siger authentic dengan koleksi kebaya mewah."},{id:3,name:"Bella Aesthetic Studio",owner:"Bella Safira",rating:4.9,reviews:210,city:"Surabaya",specialty:"Graduation & Photoshoot",priceFrom:"Rp 750.000",image:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=400",verified:!0,description:"Layanan makeup wisuda & prewedding outdoor hemat dengan perlengkapan higienis."},{id:4,name:"Flawless Beauty Artistry",owner:"Dewi Lestari",rating:4.7,reviews:76,city:"Medan",specialty:"Traditional & Airbrush",priceFrom:"Rp 1.500.000",image:"https://images.unsplash.com/photo-1526047932273-341f2a7631f9?auto=format&fit=crop&q=80&w=400",verified:!0,description:"Pelopor teknik airbrush makeup pengantin Batak & Melayu tanpa crack."},{id:5,name:"Aura Glamour Studio",owner:"Aura Kasih",rating:4.9,reviews:82,city:"Yogyakarta",specialty:"Paes Ageng & Jogja Putri",priceFrom:"Rp 2.200.000",image:"https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&q=80&w=400",verified:!0,description:"Tata rias pengantin gaya Jogja Paes Ageng lengkap dengan melati segar dan busana adat."},{id:6,name:"Aesthetic Touch Bali",owner:"Ni Made Ratna",rating:5,reviews:115,city:"Bali / Denpasar",specialty:"Destination Wedding",priceFrom:"Rp 3.000.000",image:"https://images.unsplash.com/photo-1500840218059-8dd35f3dfd65?auto=format&fit=crop&q=80&w=400",verified:!0,description:"Ahli rias pengantin internasional untuk cliffside wedding & beach engagement di Bali."}],f=[{id:101,title:"Professional Ring Light 18 Inch + Tripod 2M + Remote Control",brand:"Godox Beauty Pro",discount:"Diskon 20% Member MuaKita",originalPrice:"Rp 850.000",promoPrice:"Rp 680.000",rating:4.9,reviews:312,image:"https://images.unsplash.com/photo-1583001809873-a1284d5da086?auto=format&fit=crop&q=80&w=400"},{id:102,title:"Airbrush Makeup Kit Pro - Portable Silent Compressor 25PSI",brand:"Temptu Beauty",discount:"Cashback Rp 150rb",originalPrice:"Rp 3.200.000",promoPrice:"Rp 2.950.000",rating:4.9,reviews:88,image:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=400"},{id:103,title:"MUA Train Case Koper Makeup Kaca Lampu LED Bluetooth",brand:"Glad2Glow Pro",discount:"Gratis Ongkir Se-Indonesia",originalPrice:"Rp 2.100.000",promoPrice:"Rp 1.850.000",rating:4.8,reviews:164,image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=400"}];return e.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900 font-sans pb-20",children:[e.jsx("div",{className:"bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white pt-12 pb-20 px-4 sm:px-6 lg:px-8 border-b border-slate-800",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-500/20 text-pink-300 border border-pink-500/30 text-xs font-bold",children:[e.jsx(Fg,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Direktori MUA & Pasokan Peralatan Terverifikasi"})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-black tracking-tight max-w-3xl mx-auto leading-tight",children:["MuaKita ",e.jsx("span",{className:"text-[#EC167F]",children:"Beauty Marketplace"})]}),e.jsx("p",{className:"text-sm sm:text-base text-slate-300 max-w-2xl mx-auto font-medium",children:"Temukan studio MUA terbaik di kota Anda atau penuhi kebutuhan alat makeup, lighting, dan koper traincase dengan diskon khusus member."}),e.jsxs("div",{className:"pt-6 max-w-3xl mx-auto flex flex-col sm:flex-row gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Gt,{className:"w-4 h-4 absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Cari nama MUA, kota, atau alat makeup...",value:S,onChange:A=>M(A.target.value),className:"w-full bg-slate-800/90 border border-slate-700 text-white pl-11 pr-4 py-3 rounded-2xl text-xs focus:outline-none focus:border-[#EC167F] placeholder:text-slate-400"})]}),e.jsxs("select",{value:C,onChange:A=>u(A.target.value),className:"bg-slate-800/90 border border-slate-700 text-white px-4 py-3 rounded-2xl text-xs font-bold focus:outline-none focus:border-[#EC167F]",children:[e.jsx("option",{value:"Semua Kota",children:"Seluruh Indonesia"}),e.jsx("option",{value:"Jakarta",children:"Jakarta"}),e.jsx("option",{value:"Bandung",children:"Bandung"}),e.jsx("option",{value:"Surabaya",children:"Surabaya"}),e.jsx("option",{value:"Medan",children:"Medan"}),e.jsx("option",{value:"Yogyakarta",children:"Yogyakarta"}),e.jsx("option",{value:"Bali",children:"Bali / Denpasar"})]})]})]})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10 space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-2 border border-slate-200 shadow-md max-w-xl mx-auto flex items-center gap-2 text-xs font-extrabold",children:[e.jsx("button",{onClick:()=>o("mua"),className:`flex-1 py-3 px-4 rounded-xl transition-all cursor-pointer text-center ${m==="mua"?"bg-[#EC167F] text-white shadow-md":"text-slate-600 hover:text-slate-900"}`,children:"Direktori Studio MUA"}),e.jsx("button",{onClick:()=>o("products"),className:`flex-1 py-3 px-4 rounded-xl transition-all cursor-pointer text-center ${m==="products"?"bg-[#EC167F] text-white shadow-md":"text-slate-600 hover:text-slate-900"}`,children:"Peralatan & Tools Pro"})]}),m==="mua"?e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-black text-slate-900",children:"MUA Terverifikasi MuaKita"}),e.jsx("p",{className:"text-xs text-slate-500",children:"MUA terdaftar yang telah menggunakan sistem reservasi MuaKita"})]}),e.jsxs("button",{onClick:h,className:"px-4 py-2.5 bg-slate-900 hover:bg-slate-800 text-white rounded-xl text-xs font-extrabold transition-all cursor-pointer flex items-center gap-2 shadow-md",children:[e.jsx(ct,{className:"w-4 h-4 text-[#EC167F]"}),e.jsx("span",{children:"Daftarkan Studio Anda di Direktori"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.map(A=>e.jsxs("div",{className:"bg-white rounded-3xl border border-slate-200 overflow-hidden shadow-sm hover:shadow-xl transition-all flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"relative h-48 bg-slate-100",children:[e.jsx("img",{src:A.image,alt:A.name,className:"w-full h-full object-cover"}),A.verified&&e.jsxs("span",{className:"absolute top-3 right-3 bg-white/95 backdrop-blur-xs text-emerald-600 px-3 py-1 rounded-full text-[10px] font-black flex items-center gap-1 shadow-md",children:[e.jsx(Jl,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Verified MUA"})]})]}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-base font-extrabold text-slate-900",children:A.name}),e.jsxs("div",{className:"flex items-center gap-1 text-amber-500 font-extrabold text-xs",children:[e.jsx(Bt,{className:"w-3.5 h-3.5 fill-amber-400"}),e.jsx("span",{children:A.rating}),e.jsxs("span",{className:"text-[10px] text-slate-400 font-normal",children:["(",A.reviews,")"]})]})]}),e.jsx("span",{className:"text-xs text-slate-500 block font-medium mt-0.5",children:A.owner})]}),e.jsx("p",{className:"text-xs text-slate-600 font-medium line-clamp-2 leading-relaxed",children:A.description}),e.jsxs("div",{className:"flex flex-wrap gap-2 text-[10px] font-bold",children:[e.jsxs("span",{className:"px-2.5 py-1 bg-slate-100 text-slate-700 rounded-lg flex items-center gap-1",children:[e.jsx(Ut,{className:"w-3 h-3 text-[#EC167F]"}),e.jsx("span",{children:A.city})]}),e.jsxs("span",{className:"px-2.5 py-1 bg-pink-50 text-[#EC167F] rounded-lg flex items-center gap-1",children:[e.jsx(Ma,{className:"w-3 h-3"}),e.jsx("span",{children:A.specialty})]})]})]})]}),e.jsxs("div",{className:"p-5 pt-0 border-t border-slate-100 mt-2 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-medium uppercase tracking-wider",children:"Mulai Dari"}),e.jsx("span",{className:"text-sm font-black text-[#EC167F]",children:A.priceFrom})]}),e.jsxs("button",{onClick:h,className:"px-4 py-2 bg-slate-900 hover:bg-slate-800 text-white text-xs font-bold rounded-xl transition-all cursor-pointer flex items-center gap-1",children:[e.jsx("span",{children:"Form Booking"}),e.jsx(it,{className:"w-3.5 h-3.5"})]})]})]},A.id))})]}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-black text-slate-900",children:"Suplai & Peralatan MUA Pro"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Peralatan berkualitas dengan potongan harga khusus member MuaKita"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:f.map(A=>e.jsxs("div",{className:"bg-white rounded-3xl border border-slate-200 p-5 space-y-4 shadow-sm hover:shadow-xl transition-all flex flex-col justify-between",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"h-52 rounded-2xl overflow-hidden bg-slate-100 relative",children:[e.jsx("img",{src:A.image,alt:A.title,className:"w-full h-full object-cover"}),e.jsx("span",{className:"absolute top-3 left-3 bg-[#EC167F] text-white px-3 py-1 rounded-full text-[10px] font-black uppercase",children:A.discount})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs text-slate-400 font-extrabold block",children:A.brand}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900 leading-snug mt-1",children:A.title})]}),e.jsxs("div",{className:"flex items-baseline gap-2",children:[e.jsx("span",{className:"text-lg font-black text-[#EC167F]",children:A.promoPrice}),e.jsx("span",{className:"text-xs text-slate-400 line-through font-medium",children:A.originalPrice})]})]}),e.jsx("button",{onClick:h,className:"w-full py-3 bg-pink-50 hover:bg-pink-100 text-[#EC167F] font-extrabold rounded-2xl text-xs transition-all cursor-pointer",children:"Beli Dengan Diskon Member"})]},A.id))})]})]})]})},ij=({onNavigate:h})=>{const[j,m]=d.useState("semua"),[o,S]=d.useState(null),M=[{id:1,title:"Cara Menentukan Tarif MUA untuk Pemula di Tahun 2025 (Formula Akurat)",category:"Bisnis & Keuangan",readTime:"5 menit baca",date:"24 Jul 2025",author:"Ayu Lestari (Senior MUA & Business Coach)",image:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=600",excerpt:"Banyak MUA pemula bingung menentukan harga layanan makeup. Pelajari rumus menghitung biaya operasional, ongkos transport, dan margin keuntungan ideal.",content:`Menentukan tarif jasa Makeup Artist (MUA) kerap menjadi tantangan terbesar bagi MUA yang baru merintis bisnis. Jika memasang harga terlalu tinggi, calon klien berpotensi kabur. Sebaliknya, jika terlalu murah, Anda akan rugi di modal produk kosmetik dan waktu.

Berikut adalah formula sederhana menghitung tarif MUA:

1. Modal Bahan Produk (HPP per Wajah):
   Estimasi depresiasi / pemakaian kosmetik (misal: Rp 100.000)

2. Ongkos Transport & Aksesoris:
   Bensin, tol, bulu mata, hairnet (misal: Rp 75.000)

3. Biaya Tenaga Kerja (Jasa MUA):
   Sesuaikan dengan tingkat keahlian dan durasi pengerjaan (misal: Rp 300.000)

4. Margin Keuntungan Bisnis (30%):
   Diperlukan untuk tabungan peremajaan alat dan kas cadangan.

Total Tarif Ideal = (HPP + Transport + Jasa) x 1.3
Dengan MuaKita, seluruh perhitungan ini dapat dilakukan secara otomatis lewat fitur Katalog Layanan & Kalkulator Transport Google Maps API.`},{id:2,title:"5 Tips Mengatasi Klien Wedding yang Batal H-1 Tanpa Rugi DP",category:"Klien & Kontrak",readTime:"4 menit baca",date:"20 Jul 2025",author:"Tim Konsultan Hukum Bisnis Beauty",image:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=600",excerpt:"Sering menghadapi pembatalan sepihak? Ketahui pentingnya klausul Perjanjian DP dan aturan pembatalan otomatis di sistem booking MuaKita.",content:`Pembatalan reservasi oleh klien merupakan risiko nyata dalam bisnis makeup pengantin. Untuk melindungi bisnis MUA Anda, selalu terapkan 3 aturan emas ini:

1. Kebijakan DP Non-refundable (DP Tidak Dapat Dikembalikan):
   Jelaskan secara transparan kepada calon klien bahwa DP mengunci tanggal dan menolak klien lain pada jam yang sama.

2. Batas Peluncuran Jadwal Baru (Reschedule Maksimal H-14):
   Tentukan batas maksimal perubahan jadwal jika ada keadaan darurat.

3. Buat Surat Perjanjian Digital (E-Contract):
   Gunakan Form Booking Publik MuaKita yang mengharuskan klien mencentang kotak persetujuan Syarat & Ketentuan sebelum menyelesaikan DP.`},{id:3,title:"Strategi Promosi MUA di Instagram & TikTok yang Menghasilkan Inbound Booking",category:"Pemasaran & Sosmed",readTime:"6 menit baca",date:"15 Jul 2025",author:"Rian Setya (Social Media Specialist)",image:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=600",excerpt:"Tingkatkan impresi konten makeup Before-After dan pasang Link Booking MuaKita langsung di Bio Instagram Anda untuk konversi instan.",content:`Konten video Before-After merupakan penggerak utama kepercayaan calon pengantin.

Langkah Efektif Promosi Media Sosial:
- Gunakan ringlight dengan temperatur warna natural (4500K).
- Tampilkan detail tekstur kulit tanpa filter berlebihan agar terlihat profesional dan terpercaya.
- Sertakan tombol atau link form booking MuaKita di bio agar calon klien bisa langsung mengecek ketersediaan tanggal tanpa perlu chat bolak-balik via WhatsApp.`}];return e.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900 font-sans pb-20",children:[e.jsx("div",{className:"bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white pt-12 pb-20 px-4 sm:px-6 lg:px-8 border-b border-slate-800",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-500/20 text-pink-300 border border-pink-500/30 text-xs font-bold",children:[e.jsx(xb,{className:"w-3.5 h-3.5 text-[#EC167F]"}),e.jsx("span",{children:"Wawasan & Edukasi Bisnis Kecantikan"})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-black tracking-tight max-w-3xl mx-auto leading-tight",children:["Blog & Panduan ",e.jsx("span",{className:"text-[#EC167F]",children:"Bisnis MUA"})]}),e.jsx("p",{className:"text-sm sm:text-base text-slate-300 max-w-2xl mx-auto font-medium",children:"Strategi pemasaran, formula penetapan harga, pengelolaan manajemen tim, dan tips seputar operasional studio makeup."})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10",children:o?e.jsxs("div",{className:"bg-white rounded-3xl p-8 border border-slate-200 shadow-xl space-y-6 max-w-4xl mx-auto animate-in fade-in duration-200",children:[e.jsxs("button",{onClick:()=>S(null),className:"text-xs font-extrabold text-[#EC167F] hover:underline flex items-center gap-1.5 cursor-pointer",children:[e.jsx(ra,{className:"w-4 h-4"}),e.jsx("span",{children:"Kembali ke Daftar Artikel"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("span",{className:"px-3 py-1 rounded-full bg-pink-100 text-[#EC167F] text-xs font-black uppercase",children:o.category}),e.jsx("h1",{className:"text-2xl sm:text-3xl font-black text-slate-900 leading-snug",children:o.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs text-slate-500 font-medium pt-1 border-b border-slate-100 pb-4",children:[e.jsxs("span",{className:"flex items-center gap-1 text-slate-700 font-bold",children:[e.jsx(_s,{className:"w-3.5 h-3.5 text-[#EC167F]"}),o.author]}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ie,{className:"w-3.5 h-3.5"}),o.date]}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Vt,{className:"w-3.5 h-3.5"}),o.readTime]})]})]}),e.jsx("div",{className:"h-80 rounded-2xl overflow-hidden bg-slate-100",children:e.jsx("img",{src:o.image,alt:o.title,className:"w-full h-full object-cover"})}),e.jsx("div",{className:"prose prose-slate max-w-none text-sm leading-relaxed text-slate-700 font-medium bg-slate-50 p-6 rounded-2xl border border-slate-200 whitespace-pre-line",children:o.content})]}):e.jsxs("div",{className:"space-y-8",children:[e.jsx("div",{className:"flex items-center justify-center gap-2 overflow-x-auto py-2",children:["semua","Bisnis & Keuangan","Klien & Kontrak","Pemasaran & Sosmed"].map((C,u)=>e.jsx("button",{onClick:()=>m(C),className:`px-4 py-2 rounded-xl text-xs font-extrabold capitalize transition-all cursor-pointer whitespace-nowrap ${j===C?"bg-slate-900 text-white shadow-md":"bg-white text-slate-600 hover:bg-slate-100 border border-slate-200"}`,children:C==="semua"?"Semua Kategori":C},u))}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:M.map(C=>e.jsxs("div",{onClick:()=>S(C),className:"bg-white rounded-3xl border border-slate-200 overflow-hidden shadow-sm hover:shadow-xl transition-all flex flex-col justify-between cursor-pointer group",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"h-48 bg-slate-100 overflow-hidden relative",children:[e.jsx("img",{src:C.image,alt:C.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("span",{className:"absolute top-3 left-3 bg-white/95 backdrop-blur-xs text-slate-900 px-3 py-1 rounded-full text-[10px] font-extrabold shadow-sm",children:C.category})]}),e.jsxs("div",{className:"p-6 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-slate-400 font-medium",children:[e.jsx("span",{children:C.date}),e.jsx("span",{children:"•"}),e.jsx("span",{children:C.readTime})]}),e.jsx("h3",{className:"text-base font-extrabold text-slate-900 leading-snug group-hover:text-[#EC167F] transition-colors",children:C.title}),e.jsx("p",{className:"text-xs text-slate-500 line-clamp-3 leading-relaxed font-medium",children:C.excerpt})]})]}),e.jsxs("div",{className:"p-6 pt-0 text-xs font-black text-[#EC167F] flex items-center gap-1.5 group-hover:translate-x-1 transition-transform",children:[e.jsx("span",{children:"Baca Selengkapnya"}),e.jsx(Kt,{className:"w-4 h-4"})]})]},C.id))})]})})]})},rj=({onNavigate:h})=>{const[j,m]=d.useState(0),[o,S]=d.useState(""),[M,C]=d.useState(!1),[u,b]=d.useState({name:"",email:"",category:"Kendala Teknis",message:""}),f=[{q:"Apakah saya bisa mencoba MuaKita secara gratis?",a:"Ya! MuaKita memberikan uji coba gratis (Free Trial) selama 14 hari penuh tanpa memerlukan kartu kredit. Seluruh fitur Professional seperti kalender interaktif, hitung transport Google Maps, dan WhatsApp gateway dapat diakses langsung."},{q:"Bagaimana cara kerja fitur Hitung Ongkos Transport Otomatis?",a:"Anda hanya perlu menempelkan (paste) link Google Maps lokasi acara klien pada form reservasi. MuaKita terintegrasi langsung dengan Google Maps Distance Matrix API untuk menghitung jarak presisi (KM), perkiraan waktu tempuh, dan otomatis mengalikan tarif transport per KM yang telah Anda tentukan di menu Pengaturan."},{q:"Apakah MuaKita cocok untuk MUA Solo / Freelancer tanpa tim?",a:"Sangat cocok! Paket Starter dan Professional dirancang khusus agar MUA Solo dapat memiliki website booking profesional sendiri, merapikan jadwal dalam kalender digital, dan mengirimkan invoice otomatis ke WhatsApp klien tanpa harus rekap manual."},{q:"Apakah data reservasi dan keuangan studio saya aman?",a:"Data Anda dienkripsi dengan standar enkripsi bank (256-bit SSL) dan tersimpan secara aman di Google Cloud Platform dengan cadangan data (backup) harian otomatis."},{q:"Bisakah saya membatalkan langganan kapan saja?",a:"Tentu saja. Tidak ada ikatan kontrak jangka panjang. Anda dapat membatalkan atau mengubah paket langganan kapan pun langsung melalui menu Pengaturan Akun."}],A=y=>{y.preventDefault(),!(!u.name||!u.message)&&(C(!0),setTimeout(()=>{C(!1),b({name:"",email:"",category:"Kendala Teknis",message:""})},4e3))};return e.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900 font-sans pb-20",children:[e.jsx("div",{className:"bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white pt-12 pb-20 px-4 sm:px-6 lg:px-8 border-b border-slate-800",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-emerald-500/20 text-emerald-300 border border-emerald-500/30 text-xs font-bold",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),e.jsx("span",{children:"Pusat Bantuan & Support 24/7 • Tim Specialist Online"})]}),e.jsxs("h1",{className:"text-3xl sm:text-5xl font-black tracking-tight max-w-3xl mx-auto leading-tight",children:["Bagaimana Kami Bisa ",e.jsx("span",{className:"text-[#EC167F]",children:"Membantu Anda?"})]}),e.jsx("p",{className:"text-sm sm:text-base text-slate-300 max-w-2xl mx-auto font-medium",children:"Temukan jawaban cepat seputar penggunaan MuaKita atau konsultasikan kendala operasional studio Anda dengan spesialis support kami."})]})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10 space-y-12",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("a",{href:"https://wa.me/6281234567890?text=Halo%20Tim%20MuaKita,%20saya%20butuh%20bantuan%20mengenai%20layanan",target:"_blank",rel:"noopener noreferrer",className:"bg-white rounded-3xl p-6 border border-slate-200 shadow-sm hover:border-emerald-400 hover:shadow-xl transition-all flex flex-col justify-between space-y-4 group cursor-pointer",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-emerald-600 text-white flex items-center justify-center shadow-lg shadow-emerald-600/20 group-hover:scale-105 transition-transform",children:e.jsx(va,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-extrabold text-slate-900",children:"WhatsApp Support"}),e.jsx("span",{className:"text-xs text-emerald-600 font-bold block mt-0.5",children:"+62 812-3456-7890"})]})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Layanan respon cepat untuk bantuan setting & kendala harian dalam kurang dari 5 menit."}),e.jsxs("span",{className:"text-xs font-black text-emerald-600 group-hover:translate-x-1 transition-transform inline-flex items-center gap-1",children:[e.jsx("span",{children:"Chat WhatsApp Sekarang"}),e.jsx("span",{children:"→"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-6 border border-slate-200 shadow-sm space-y-4 flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-[#EC167F] text-white flex items-center justify-center shadow-lg shadow-pink-500/20",children:e.jsx(Ql,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-extrabold text-slate-900",children:"Email Official"}),e.jsx("span",{className:"text-xs text-[#EC167F] font-bold block mt-0.5",children:"muakitaofficial@gmail.com"})]})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Untuk pertanyaan kerjasama lisensi, paket custom franchise, dan perizinan khusus."}),e.jsx("span",{className:"text-xs font-bold text-slate-400",children:"Respon maksimal 1x24 jam kerja"})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-6 border border-slate-200 shadow-sm space-y-4 flex flex-col justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-slate-900 text-white flex items-center justify-center shadow-lg",children:e.jsx(h1,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-extrabold text-slate-900",children:"Bimbingan Setup 1-on-1"}),e.jsx("span",{className:"text-xs text-slate-500 font-bold block mt-0.5",children:"Sesi Zoom / Google Meet"})]})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Tim spesialis MuaKita akan mendampingi Anda mengatur katalog layanan & tarif transport."}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Gratis untuk seluruh pengguna Trial"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 border border-slate-200 shadow-sm space-y-6",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-[#EC167F] block",children:"PERTANYAAN UMUM"}),e.jsx("h2",{className:"text-2xl font-black text-slate-900 mt-1",children:"FAQ (Frequently Asked Questions)"}),e.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Jawaban atas pertanyaan yang paling sering diajukan oleh MUA pengguna MuaKita"})]}),e.jsx("div",{className:"space-y-3",children:f.map((y,R)=>{const W=j===R;return e.jsxs("div",{className:"border border-slate-200 rounded-2xl overflow-hidden bg-slate-50/50 transition-colors",children:[e.jsxs("button",{onClick:()=>m(W?null:R),className:"w-full p-5 text-left flex items-center justify-between gap-4 text-sm font-extrabold text-slate-900 hover:bg-slate-100 cursor-pointer",children:[e.jsx("span",{children:y.q}),W?e.jsx(Eb,{className:"w-5 h-5 text-[#EC167F] shrink-0"}):e.jsx(ye,{className:"w-5 h-5 text-slate-400 shrink-0"})]}),W&&e.jsx("div",{className:"px-5 pb-5 pt-2 text-xs text-slate-600 font-medium leading-relaxed border-t border-slate-200/60 bg-white",children:y.a})]},R)})})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 border border-slate-200 shadow-xl space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-black text-slate-900",children:"Kirim Tiket Bantuan / Bimbingan Setup"}),e.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Isi formulir di bawah jika Anda memerlukan bantuan teknis khusus atau usulan fitur baru."})]}),M?e.jsxs("div",{className:"p-6 bg-emerald-50 border border-emerald-200 text-emerald-900 rounded-2xl text-xs font-bold flex items-center gap-3 animate-in fade-in",children:[e.jsx(vm,{className:"w-6 h-6 text-emerald-600 shrink-0"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-black block text-emerald-950",children:"Pesan Tiket Berhasil Terkirim!"}),e.jsx("span",{className:"text-xs font-medium text-emerald-800",children:"Spesialis MuaKita akan menghubungi Anda melalui WhatsApp / Email dalam kurun waktu 1 jam."})]})]}):e.jsxs("form",{onSubmit:A,className:"space-y-4 text-xs",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Nama Studio / MUA"}),e.jsx("input",{type:"text",required:!0,placeholder:"Contoh: Glow Bridal Studio",value:u.name,onChange:y=>b({...u,name:y.target.value}),className:"w-full bg-slate-50 border border-slate-200 p-3 rounded-xl text-xs focus:outline-none focus:border-[#EC167F] focus:bg-white"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Kategori Pertanyaan"}),e.jsxs("select",{value:u.category,onChange:y=>b({...u,category:y.target.value}),className:"w-full bg-slate-50 border border-slate-200 p-3 rounded-xl text-xs focus:outline-none focus:border-[#EC167F] focus:bg-white font-bold",children:[e.jsx("option",{value:"Kendala Teknis",children:"Kendala Teknis & Aplikasi"}),e.jsx("option",{value:"Bimbingan Setup",children:"Bimbingan Setup Pertama Kali"}),e.jsx("option",{value:"Pertanyaan Paket",children:"Pertanyaan Paket & Pembayaran"}),e.jsx("option",{value:"Saran Fitur",children:"Saran / Usulan Fitur Baru"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"font-bold text-slate-700 block mb-1",children:"Pesan / Detail Bantuan"}),e.jsx("textarea",{rows:4,required:!0,placeholder:"Jelaskan pertanyaan atau kendala yang ingin dibantu oleh tim spesialis MuaKita...",value:u.message,onChange:y=>b({...u,message:y.target.value}),className:"w-full bg-slate-50 border border-slate-200 p-3 rounded-xl text-xs focus:outline-none focus:border-[#EC167F] focus:bg-white"})]}),e.jsxs("button",{type:"submit",className:"px-6 py-3 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-xl shadow-lg shadow-pink-500/20 transition-all flex items-center gap-2 cursor-pointer",children:[e.jsx(wr,{className:"w-4 h-4"}),e.jsx("span",{children:"Kirim Tiket Bantuan"})]})]})]})]})]})},oj=({onOpenLogin:h,onOpenDemo:j,onNavigateToPaket:m})=>{const[o,S]=d.useState("desktop"),[M,C]=d.useState("pink"),[u,b]=d.useState({profile:!0,services:!0,portfolio:!0,testimonials:!0,team:!0,wedding:!0,booking:!0}),[f,A]=d.useState(!1),y=ae=>{b(xe=>({...xe,[ae]:!xe[ae]}))},R=()=>{navigator.clipboard.writeText("https://glowbridal.muakita.com"),A(!0),setTimeout(()=>A(!1),2e3)},G={pink:{accent:"bg-[#EC167F]",accentText:"text-[#EC167F]",border:"border-[#EC167F]",badgeBg:"bg-pink-50 text-[#EC167F]",gradient:"from-pink-500 to-rose-600",heroBg:"bg-gradient-to-r from-pink-500/10 via-rose-50 to-pink-50/50"},gold:{accent:"bg-amber-600",accentText:"text-amber-600",border:"border-amber-500",badgeBg:"bg-amber-50 text-amber-700",gradient:"from-amber-500 to-yellow-600",heroBg:"bg-gradient-to-r from-amber-500/10 via-amber-50 to-orange-50/50"},rose:{accent:"bg-rose-500",accentText:"text-rose-500",border:"border-rose-400",badgeBg:"bg-rose-50 text-rose-600",gradient:"from-rose-400 to-pink-600",heroBg:"bg-gradient-to-r from-rose-500/10 via-rose-50 to-pink-50/50"},dark:{accent:"bg-purple-600",accentText:"text-purple-600",border:"border-purple-500",badgeBg:"bg-purple-50 text-purple-700",gradient:"from-purple-600 to-indigo-600",heroBg:"bg-gradient-to-r from-purple-900/10 via-purple-50 to-slate-100"}}[M];return e.jsxs("section",{id:"website-builder",className:"py-16 sm:py-24 bg-gradient-to-b from-white via-slate-50/70 to-pink-50/30 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-1/4 left-0 w-96 h-96 bg-pink-200/30 rounded-full blur-3xl pointer-events-none -translate-x-1/2"}),e.jsx("div",{className:"absolute bottom-10 right-0 w-96 h-96 bg-purple-200/30 rounded-full blur-3xl pointer-events-none translate-x-1/2"}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 space-y-12 sm:space-y-16",children:[e.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-100/90 text-[#EC167F] text-[11px] font-extrabold shadow-2xs",children:[e.jsx(mt,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"WEBSITE BUILDER TANPA CODING"}),e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#EC167F] animate-pulse"})]}),e.jsxs("h2",{className:"text-2xl sm:text-4xl lg:text-5xl font-black text-slate-900 tracking-tight leading-[1.15]",children:["Website MUA Profesional Anda, ",e.jsx("span",{className:"text-[#EC167F]",children:"Instan & Auto-Sync"})]}),e.jsx("p",{className:"text-xs sm:text-base text-slate-600 font-medium leading-relaxed max-w-2xl mx-auto",children:"Tampilkan portofolio karya, katalog harga, dan terima booking online 24/7 dengan website pribadi Anda sendiri. Tanpa perlu skill coding — langsung terhubung otomatis ke dashboard MuaKita."}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4 pt-2 text-[11px] font-bold text-slate-600",children:[e.jsxs("div",{className:"px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5",children:[e.jsx(Ge,{className:"w-3.5 h-3.5 text-emerald-500"}),e.jsx("span",{children:"0% Coding (Siap Pakai)"})]}),e.jsxs("div",{className:"px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5",children:[e.jsx(Ls,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Auto-Sync Real-time"})]}),e.jsxs("div",{className:"px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5",children:[e.jsx(mt,{className:"w-3.5 h-3.5 text-purple-500"}),e.jsx("span",{children:"Custom Domain (.com/.id)"})]}),e.jsxs("div",{className:"px-3 py-1 rounded-lg bg-white border border-slate-200 shadow-2xs flex items-center gap-1.5",children:[e.jsx(Sr,{className:"w-3.5 h-3.5 text-blue-500"}),e.jsx("span",{children:"Mobile Responsive"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl border border-slate-200/90 shadow-2xl overflow-hidden",children:[e.jsxs("div",{className:"bg-slate-900 text-white p-3 sm:p-4 flex flex-col sm:flex-row items-center justify-between gap-3 border-b border-slate-800",children:[e.jsxs("div",{className:"flex items-center gap-3 w-full sm:w-auto justify-between sm:justify-start",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-3 h-3 rounded-full bg-rose-500 inline-block"}),e.jsx("span",{className:"w-3 h-3 rounded-full bg-amber-500 inline-block"}),e.jsx("span",{className:"w-3 h-3 rounded-full bg-emerald-500 inline-block"})]}),e.jsxs("span",{className:"text-xs font-bold text-slate-300 flex items-center gap-1.5",children:[e.jsx(Ke,{className:"w-3.5 h-3.5 text-pink-400"}),e.jsx("span",{children:"Simulasi Live Website MUA"})]})]}),e.jsxs("div",{className:"flex items-center gap-1 bg-slate-800 p-1 rounded-xl text-xs font-bold w-full sm:w-auto justify-center",children:[e.jsxs("button",{onClick:()=>S("desktop"),className:`px-3 py-1.5 rounded-lg transition-all flex items-center gap-1.5 cursor-pointer ${o==="desktop"?"bg-[#EC167F] text-white shadow-2xs":"text-slate-400 hover:text-white"}`,children:[e.jsx(Sf,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tampilan Desktop"})]}),e.jsxs("button",{onClick:()=>S("mobile"),className:`px-3 py-1.5 rounded-lg transition-all flex items-center gap-1.5 cursor-pointer ${o==="mobile"?"bg-[#EC167F] text-white shadow-2xs":"text-slate-400 hover:text-white"}`,children:[e.jsx(Sr,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Tampilan HP"})]}),e.jsxs("button",{onClick:()=>S("builder"),className:`px-3 py-1.5 rounded-lg transition-all flex items-center gap-1.5 cursor-pointer ${o==="builder"?"bg-purple-600 text-white shadow-2xs":"text-slate-400 hover:text-white"}`,children:[e.jsx(pm,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Drag & Drop Builder"})]})]}),e.jsxs("div",{className:"hidden lg:flex items-center gap-2 bg-slate-800/80 px-3 py-1 rounded-lg text-[11px] font-mono text-slate-300 border border-slate-700",children:[e.jsx(Xc,{className:"w-3 h-3 text-emerald-400"}),e.jsx("span",{children:"www.glowbridalstudio.com"}),e.jsx("button",{onClick:R,className:"hover:text-white transition-colors cursor-pointer ml-1",title:"Salin Link Website",children:e.jsx(Ua,{className:"w-3 h-3 text-slate-400"})}),f&&e.jsx("span",{className:"text-[10px] text-emerald-400 font-sans font-bold",children:"Tersalin!"})]})]}),e.jsxs("div",{className:"bg-slate-100/60 p-4 sm:p-6 lg:p-8 min-h-[500px]",children:[o==="desktop"&&e.jsxs("div",{className:"max-w-5xl mx-auto bg-white rounded-2xl border border-slate-200/90 shadow-xl overflow-hidden transition-all duration-300",children:[e.jsxs("div",{className:"bg-slate-50 px-4 py-2 border-b border-slate-200 flex items-center justify-between text-xs text-slate-600",children:[e.jsxs("div",{className:"flex items-center gap-2 font-mono text-[11px] bg-white border border-slate-200 px-3 py-1 rounded-md text-slate-700 w-2/3 max-w-md",children:[e.jsx(Xc,{className:"w-3 h-3 text-emerald-600"}),e.jsx("span",{className:"truncate",children:"https://glowbridalstudio.com"}),e.jsx("span",{className:"ml-auto text-[9px] font-sans font-extrabold bg-emerald-100 text-emerald-800 px-1.5 rounded",children:"SSL Aktif"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-bold text-slate-500",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 inline-block"}),e.jsx("span",{children:"Auto-Sync Aktif"})]})]}),e.jsxs("header",{className:"bg-white border-b border-slate-100 px-6 py-3.5 flex items-center justify-between sticky top-0 z-10",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-[#EC167F] text-white font-black flex items-center justify-center text-xs shadow-xs",children:"GB"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-extrabold text-slate-900 text-sm leading-tight",children:"Glow Bridal Studio"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Professional MUA & Bridal Service"})]})]}),e.jsxs("nav",{className:"hidden md:flex items-center gap-6 text-xs font-bold text-slate-600",children:[e.jsx("a",{href:"#bio",className:"hover:text-[#EC167F] transition-colors",children:"Profil"}),e.jsx("a",{href:"#layanan",className:"hover:text-[#EC167F] transition-colors",children:"Layanan & Harga"}),e.jsx("a",{href:"#portofolio",className:"hover:text-[#EC167F] transition-colors",children:"Portofolio"}),e.jsx("a",{href:"#testimoni",className:"hover:text-[#EC167F] transition-colors",children:"Testimoni"}),e.jsx("a",{href:"#tim",className:"hover:text-[#EC167F] transition-colors",children:"Tim MUA"})]}),e.jsxs("button",{onClick:j,className:"px-4 py-2 bg-[#EC167F] text-white rounded-xl text-xs font-extrabold shadow-md hover:bg-[#D41270] transition-colors cursor-pointer flex items-center gap-1.5",children:[e.jsx(Ie,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Reservasi Online"})]})]}),e.jsxs("div",{className:"p-6 space-y-8",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden bg-gradient-to-r from-pink-500/10 via-rose-50 to-pink-50/50 p-6 sm:p-8 border border-pink-100 flex flex-col md:flex-row items-center justify-between gap-6",children:[e.jsxs("div",{className:"space-y-3 max-w-lg text-left",children:[e.jsx("span",{className:"px-2.5 py-1 rounded-full bg-pink-100 text-[#EC167F] text-[10px] font-black uppercase",children:"Official Website MUA"}),e.jsx("h3",{className:"text-2xl sm:text-3xl font-black text-slate-900 leading-tight",children:"Wujudkan Penampilan Impian di Hari Istimewa Anda"}),e.jsx("p",{className:"text-xs text-slate-600 font-medium leading-relaxed",children:"Spesialis Rias Pengantin Akad, Resepsi, Engagement, & Graduation. Menggunakan produk premium berkualitas tinggi untuk ketahanan hingga 16 jam."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 pt-1",children:[e.jsxs("button",{onClick:j,className:"px-5 py-2.5 bg-[#EC167F] text-white rounded-xl text-xs font-extrabold shadow-md hover:bg-[#D41270] transition-all cursor-pointer flex items-center gap-1.5",children:[e.jsx("span",{children:"Pilih Paket & Booking"}),e.jsx(Kt,{className:"w-3.5 h-3.5"})]}),e.jsxs("a",{href:"https://wa.me/628123456789",target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2.5 bg-white text-slate-800 border border-slate-200 rounded-xl text-xs font-extrabold hover:bg-slate-50 transition-colors flex items-center gap-1.5",children:[e.jsx(yr,{className:"w-3.5 h-3.5 text-emerald-600"}),e.jsx("span",{children:"Konsultasi WA"})]})]})]}),e.jsxs("div",{className:"relative shrink-0",children:[e.jsx("div",{className:"w-48 h-48 sm:w-56 sm:h-56 rounded-2xl bg-gradient-to-tr from-pink-400 to-purple-500 p-1 shadow-lg",children:e.jsxs("div",{className:"w-full h-full rounded-xl bg-slate-900 overflow-hidden relative group",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=600&q=80",alt:"Makeup Portfolio",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/80 via-transparent to-transparent p-3 flex flex-col justify-end text-white",children:[e.jsx("span",{className:"text-[10px] font-black text-pink-300",children:"Wedding Flawless Look"}),e.jsx("span",{className:"text-[9px] text-slate-300",children:"By Anisa Rahma (Owner)"})]})]})}),e.jsxs("div",{className:"absolute -bottom-3 -left-3 bg-white p-2 rounded-xl shadow-md border border-slate-100 text-[10px] font-bold text-slate-800 flex items-center gap-1.5",children:[e.jsx(Bt,{className:"w-3.5 h-3.5 text-amber-400 fill-amber-400"}),e.jsx("span",{children:"4.9/5.0 (150+ Ulasan)"})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Katalog Layanan & Harga"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Otomatis tersinkronisasi dari MuaKita Dashboard"})]}),e.jsx("span",{className:"text-[10px] font-extrabold bg-pink-50 text-[#EC167F] px-2.5 py-1 rounded-md",children:"3 Kategori Utama"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[e.jsxs("div",{className:"bg-slate-50/80 p-3.5 rounded-xl border border-slate-200/80 hover:border-pink-300 transition-all space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx("span",{className:"text-[10px] font-bold text-pink-600 bg-pink-100 px-2 py-0.5 rounded",children:"Wedding Akad"}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Rp 2.500.000"})]}),e.jsx("h5",{className:"font-bold text-slate-900 text-xs",children:"Rias Pengantin Akad Nikah"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Makeup Flawless 16 Jam, Hijab Do/Hair Do, Softlens, Touch up 1x."}),e.jsx("button",{onClick:j,className:"w-full py-1.5 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 font-extrabold text-[11px] rounded-lg transition-colors cursor-pointer",children:"Booking Sekarang"})]}),e.jsxs("div",{className:"bg-slate-50/80 p-3.5 rounded-xl border border-slate-200/80 hover:border-pink-300 transition-all space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx("span",{className:"text-[10px] font-bold text-purple-600 bg-purple-100 px-2 py-0.5 rounded",children:"Resepsi Grand"}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Rp 4.800.000"})]}),e.jsx("h5",{className:"font-bold text-slate-900 text-xs",children:"Paket Rias Pengantin Lengkap"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Makeup Pengantin (2x ganti baju), Makeup 2 Ibu, Touch up 2x, Free Melati."}),e.jsx("button",{onClick:j,className:"w-full py-1.5 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 font-extrabold text-[11px] rounded-lg transition-colors cursor-pointer",children:"Booking Sekarang"})]}),e.jsxs("div",{className:"bg-slate-50/80 p-3.5 rounded-xl border border-slate-200/80 hover:border-pink-300 transition-all space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx("span",{className:"text-[10px] font-bold text-emerald-600 bg-emerald-100 px-2 py-0.5 rounded",children:"Graduation/Party"}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Rp 450.000"})]}),e.jsx("h5",{className:"font-bold text-slate-900 text-xs",children:"Makeup Graduasi & Pesta"}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Natural Glam Look, Hair Do/Hijab Styling, Bulu Mata Premium."}),e.jsx("button",{onClick:j,className:"w-full py-1.5 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 font-extrabold text-[11px] rounded-lg transition-colors cursor-pointer",children:"Booking Sekarang"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[e.jsxs("div",{className:"md:col-span-7 bg-slate-900 text-white p-4 rounded-2xl space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-xs font-bold text-pink-400 flex items-center gap-1",children:[e.jsx(gr,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Galeri Portofolio Hasil Makeup"})]}),e.jsx("span",{className:"text-[10px] text-slate-400",children:"Terintegrasi Media Instagram"})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsxs("div",{className:"aspect-square rounded-lg overflow-hidden relative group",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=300&q=80",alt:"Makeup 1",className:"w-full h-full object-cover group-hover:scale-110 transition-transform"}),e.jsx("span",{className:"absolute bottom-1 left-1 bg-black/60 text-[8px] px-1 rounded text-white font-bold",children:"Akad Nikah"})]}),e.jsxs("div",{className:"aspect-square rounded-lg overflow-hidden relative group",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&w=300&q=80",alt:"Makeup 2",className:"w-full h-full object-cover group-hover:scale-110 transition-transform"}),e.jsx("span",{className:"absolute bottom-1 left-1 bg-black/60 text-[8px] px-1 rounded text-white font-bold",children:"Lamaran"})]}),e.jsxs("div",{className:"aspect-square rounded-lg overflow-hidden relative group",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=300&q=80",alt:"Makeup 3",className:"w-full h-full object-cover group-hover:scale-110 transition-transform"}),e.jsx("span",{className:"absolute bottom-1 left-1 bg-black/60 text-[8px] px-1 rounded text-white font-bold",children:"Resepsi"})]})]})]}),e.jsxs("div",{className:"md:col-span-5 bg-pink-50/60 p-4 rounded-2xl border border-pink-200/80 space-y-2.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-6 h-6 rounded-lg bg-[#EC167F] text-white flex items-center justify-center",children:e.jsx(Ie,{className:"w-3.5 h-3.5"})}),e.jsx("h5",{className:"font-extrabold text-slate-900 text-xs",children:"Form Booking Direct 24/7"})]}),e.jsx("p",{className:"text-[10px] text-slate-500",children:"Klien memilih tanggal, jam, dan paket — reservasi langsung masuk ke Kalender MuaKita & WA Anda."}),e.jsxs("div",{className:"space-y-1.5 text-[10px]",children:[e.jsx("input",{type:"text",readOnly:!0,value:"Nama: Siska Amalia",className:"w-full bg-white p-1.5 rounded border border-slate-200 font-medium"}),e.jsx("input",{type:"text",readOnly:!0,value:"Tanggal: 14 Agustus 2026 (08:00 WIB)",className:"w-full bg-white p-1.5 rounded border border-slate-200 font-medium"}),e.jsx("button",{onClick:j,className:"w-full py-2 bg-[#EC167F] text-white font-extrabold rounded-lg shadow-sm hover:bg-[#D41270] transition-colors cursor-pointer text-center block",children:"Kirim Reservasi Ke WA Studio"})]})]})]})]}),e.jsxs("div",{className:"bg-slate-50 px-6 py-3 border-t border-slate-200 text-[10px] text-slate-500 flex flex-col sm:flex-row items-center justify-between gap-2",children:[e.jsxs("span",{children:["© 2026 Glow Bridal Studio. Powered by ",e.jsx("strong",{className:"text-[#EC167F]",children:"MuaKita Website Builder"})]}),e.jsxs("div",{className:"flex items-center gap-3 font-bold text-slate-600",children:[e.jsx("span",{className:"hover:text-[#EC167F]",children:"Instagram"}),e.jsx("span",{className:"hover:text-[#EC167F]",children:"TikTok"}),e.jsx("span",{className:"hover:text-[#EC167F]",children:"WhatsApp"})]})]})]}),o==="mobile"&&e.jsxs("div",{className:"max-w-xs mx-auto bg-slate-900 rounded-[40px] p-3 shadow-2xl border-4 border-slate-800 relative",children:[e.jsx("div",{className:"w-28 h-4 bg-slate-800 rounded-full mx-auto mb-2 relative z-20"}),e.jsxs("div",{className:"bg-white rounded-[32px] overflow-hidden text-slate-900 text-left min-h-[480px] flex flex-col justify-between",children:[e.jsxs("div",{className:"bg-white px-4 py-2 border-b border-slate-100 flex items-center justify-between text-[10px] font-bold",children:[e.jsx("span",{className:"text-slate-900 font-black",children:"Glow Bridal MUA"}),e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-emerald-100 text-emerald-800 text-[8px]",children:"Online"})]}),e.jsxs("div",{className:"p-3 space-y-3 overflow-y-auto max-h-[380px]",children:[e.jsxs("div",{className:"text-center bg-gradient-to-b from-pink-50 to-white p-3 rounded-2xl border border-pink-100 space-y-2",children:[e.jsx("div",{className:"w-14 h-14 rounded-full bg-[#EC167F] text-white font-black text-sm flex items-center justify-center mx-auto shadow-md",children:"GB"}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-black text-slate-900 text-xs",children:"Glow Bridal Studio"}),e.jsx("p",{className:"text-[9px] text-slate-500 font-medium",children:"Professional MUA Jakarta & BSD"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-1 text-[9px] text-amber-500 font-bold",children:[e.jsx(Bt,{className:"w-3 h-3 fill-amber-400"}),e.jsx("span",{children:"4.9 (150+ Happy Brides)"})]})]}),e.jsxs("div",{className:"space-y-1.5 text-[10px] font-bold",children:[e.jsxs("button",{onClick:j,className:"w-full py-2 px-3 bg-[#EC167F] text-white rounded-xl flex items-center justify-between shadow-2xs cursor-pointer",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Ie,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Form Reservasi Online"})]}),e.jsx(it,{className:"w-3.5 h-3.5"})]}),e.jsxs("a",{href:"https://wa.me/628123456789",target:"_blank",rel:"noopener noreferrer",className:"w-full py-2 px-3 bg-emerald-50 text-emerald-800 border border-emerald-200 rounded-xl flex items-center justify-between cursor-pointer",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(yr,{className:"w-3.5 h-3.5 text-emerald-600"}),e.jsx("span",{children:"Chat WhatsApp Direct"})]}),e.jsx(it,{className:"w-3.5 h-3.5"})]}),e.jsxs("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",className:"w-full py-2 px-3 bg-slate-50 text-slate-800 border border-slate-200 rounded-xl flex items-center justify-between cursor-pointer",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(il,{className:"w-3.5 h-3.5 text-pink-600"}),e.jsx("span",{children:"Portofolio Instagram"})]}),e.jsx(it,{className:"w-3.5 h-3.5"})]})]}),e.jsxs("div",{className:"bg-slate-50 p-2.5 rounded-xl border border-slate-200/80 space-y-1.5 text-[10px]",children:[e.jsx("span",{className:"font-black text-slate-900 block",children:"Paket Populer Hari Ini"}),e.jsxs("div",{className:"flex justify-between items-center bg-white p-1.5 rounded border border-slate-200",children:[e.jsx("span",{children:"Rias Akad Nikah"}),e.jsx("strong",{className:"text-[#EC167F]",children:"Rp 2,5jt"})]}),e.jsxs("div",{className:"flex justify-between items-center bg-white p-1.5 rounded border border-slate-200",children:[e.jsx("span",{children:"Makeup Graduasi"}),e.jsx("strong",{className:"text-[#EC167F]",children:"Rp 450rb"})]})]})]}),e.jsxs("div",{className:"p-2 bg-slate-50 border-t border-slate-100 flex items-center justify-between gap-1 text-[9px] font-bold",children:[e.jsx("span",{className:"text-slate-400",children:"Link Bio & Web MUA"}),e.jsxs("button",{onClick:R,className:"px-2.5 py-1 bg-[#EC167F] text-white rounded-lg flex items-center gap-1 cursor-pointer",children:[e.jsx(Cr,{className:"w-2.5 h-2.5"}),e.jsx("span",{children:"Bagikan"})]})]})]})]}),o==="builder"&&e.jsxs("div",{className:"max-w-4xl mx-auto bg-white rounded-2xl border border-slate-200 shadow-xl p-4 sm:p-6 space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 border-b border-slate-100 pb-4",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-black text-purple-600 uppercase tracking-widest bg-purple-50 px-2 py-0.5 rounded",children:"NO-CODE EDITOR SIMULATION"}),e.jsx("h3",{className:"text-lg font-black text-slate-900",children:"Customizer & Builder Website MUA"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs font-extrabold text-slate-500",children:"Pilih Tema Color:"}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-slate-100 p-1 rounded-xl",children:[e.jsx("button",{onClick:()=>C("pink"),className:`w-6 h-6 rounded-full bg-[#EC167F] border-2 cursor-pointer transition-transform ${M==="pink"?"scale-110 border-slate-900":"border-transparent"}`,title:"Pink Glamour"}),e.jsx("button",{onClick:()=>C("gold"),className:`w-6 h-6 rounded-full bg-amber-500 border-2 cursor-pointer transition-transform ${M==="gold"?"scale-110 border-slate-900":"border-transparent"}`,title:"Luxury Gold"}),e.jsx("button",{onClick:()=>C("rose"),className:`w-6 h-6 rounded-full bg-rose-500 border-2 cursor-pointer transition-transform ${M==="rose"?"scale-110 border-slate-900":"border-transparent"}`,title:"Rose Elegance"}),e.jsx("button",{onClick:()=>C("dark"),className:`w-6 h-6 rounded-full bg-purple-700 border-2 cursor-pointer transition-transform ${M==="dark"?"scale-110 border-slate-900":"border-transparent"}`,title:"Royal Purple"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-6 items-start",children:[e.jsxs("div",{className:"md:col-span-5 space-y-3 bg-slate-50 p-4 rounded-2xl border border-slate-200",children:[e.jsxs("h4",{className:"font-black text-slate-900 text-xs flex items-center justify-between",children:[e.jsx("span",{children:"Komponen & Section Website"}),e.jsx("span",{className:"text-[10px] text-slate-400 font-normal",children:"Klik untuk ON/OFF"})]}),e.jsxs("div",{className:"space-y-2 text-xs font-bold text-slate-700",children:[e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Dt,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Profil & Bio Studio"})]}),e.jsx("input",{type:"checkbox",checked:u.profile,onChange:()=>y("profile"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(za,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Katalog Layanan & Harga"})]}),e.jsx("input",{type:"checkbox",checked:u.services,onChange:()=>y("services"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(gr,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Portofolio Photo/Video"})]}),e.jsx("input",{type:"checkbox",checked:u.portfolio,onChange:()=>y("portfolio"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Bt,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Testimoni Pelanggan"})]}),e.jsx("input",{type:"checkbox",checked:u.testimonials,onChange:()=>y("testimonials"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(St,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Tim & Asisten MUA"})]}),e.jsx("input",{type:"checkbox",checked:u.team,onChange:()=>y("team"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx($l,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Paket Wedding & Event"})]}),e.jsx("input",{type:"checkbox",checked:u.wedding,onChange:()=>y("wedding"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]}),e.jsxs("div",{className:"flex items-center justify-between p-2 bg-white rounded-xl border border-slate-200",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Ie,{className:"w-3.5 h-3.5 text-pink-500"}),e.jsx("span",{children:"Form Booking Online"})]}),e.jsx("input",{type:"checkbox",checked:u.booking,onChange:()=>y("booking"),className:"accent-[#EC167F] w-4 h-4 cursor-pointer"})]})]}),e.jsxs("div",{className:"pt-2 text-[10px] text-slate-500 italic bg-purple-50 p-2.5 rounded-xl border border-purple-100 flex items-center gap-1.5",children:[e.jsx(Qn,{className:"w-3.5 h-3.5 text-purple-600 shrink-0"}),e.jsx("span",{children:"Semua perubahan disimpan otomatis tanpa tombol Save!"})]})]}),e.jsxs("div",{className:"md:col-span-7 bg-white p-4 rounded-2xl border-2 border-slate-200 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:[e.jsx("span",{className:"text-xs font-black text-slate-800",children:"Live Preview Canvas"}),e.jsxs("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded ${G.badgeBg}`,children:["Tema: ",M.toUpperCase()]})]}),e.jsxs("div",{className:"space-y-2.5 text-xs",children:[u.profile&&e.jsxs("div",{className:`p-3 rounded-xl ${G.heroBg} border ${G.border} space-y-1 transition-all`,children:[e.jsx("span",{className:`text-[10px] font-extrabold ${G.accentText}`,children:"PROFIL BISNIS"}),e.jsx("h5",{className:"font-extrabold text-slate-900",children:"Glow Bridal MUA Studio"}),e.jsx("p",{className:"text-[11px] text-slate-600",children:"Layanan Make up Profesional untuk Wedding & Graduation"})]}),u.services&&e.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"KATALOG LAYANAN (3 Paket)"}),e.jsxs("div",{className:"flex justify-between font-bold text-[11px]",children:[e.jsx("span",{children:"Rias Pengantin Akad"}),e.jsx("span",{className:G.accentText,children:"Rp 2.500.000"})]})]}),u.portfolio&&e.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"PORTOFOLIO MAKEUP"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"w-10 h-10 rounded bg-pink-200 flex items-center justify-center text-[9px] font-bold",children:"Foto 1"}),e.jsx("div",{className:"w-10 h-10 rounded bg-pink-200 flex items-center justify-center text-[9px] font-bold",children:"Foto 2"}),e.jsx("div",{className:"w-10 h-10 rounded bg-pink-200 flex items-center justify-center text-[9px] font-bold",children:"Foto 3"})]})]}),u.testimonials&&e.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"TESTIMONI PELANGGAN"}),e.jsx("p",{className:"text-[10px] italic text-slate-600",children:'"Makeup-nya awet banget dari akad pagi sampai resepsi malam!" — Dita (Pengantin)'})]}),u.team&&e.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-200 space-y-1",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"TIM & SENIOR MUA"}),e.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-bold text-slate-700",children:[e.jsx("span",{children:"Anisa (Lead MUA)"})," • ",e.jsx("span",{children:"Rina (Hair Stylist)"})]})]}),u.booking&&e.jsxs("div",{className:`p-3 rounded-xl ${G.accent} text-white font-bold text-center text-xs flex items-center justify-center gap-2 shadow-sm`,children:[e.jsx(Ie,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Form Reservasi Online (Direct Booking)"})]})]})]})]})]})]})]}),e.jsx("div",{className:"bg-gradient-to-r from-slate-900 via-purple-950 to-slate-900 text-white rounded-3xl p-6 sm:p-8 border border-purple-900/50 shadow-2xl relative overflow-hidden",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-center",children:[e.jsxs("div",{className:"lg:col-span-7 space-y-3 text-left",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-pink-500/20 text-pink-300 text-[10px] font-extrabold border border-pink-500/30",children:[e.jsx(Ls,{className:"w-3 h-3 text-pink-400 animate-spin"}),e.jsx("span",{children:"INTEGRASI AUTO-SYNC SINKRONISASI DUA ARAH"})]}),e.jsxs("h3",{className:"text-xl sm:text-2xl lg:text-3xl font-black text-white leading-tight",children:["Update Data di Dashboard, Website ",e.jsx("span",{className:"text-pink-400",children:"Otomatis Berubah!"})]}),e.jsx("p",{className:"text-xs sm:text-sm text-slate-300 font-medium leading-relaxed",children:"Tidak perlu pusing edit manual atau bayar web developer lagi. Ketika Anda menambah paket baru, mengubah harga, atau meng-upload foto hasil makeup di MuaKita Dashboard, seluruh data di website publik Anda otomatis diperbarui detik itu juga."}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2 pt-2 text-[11px] font-bold text-slate-200",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-400 stroke-[3]"}),e.jsx("span",{children:"Katalog & Harga"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-400 stroke-[3]"}),e.jsx("span",{children:"Kalender Reservasi"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-400 stroke-[3]"}),e.jsx("span",{children:"Portofolio Makeup"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-400 stroke-[3]"}),e.jsx("span",{children:"Testimoni Klien"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-400 stroke-[3]"}),e.jsx("span",{children:"Notifikasi WhatsApp"})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-400 stroke-[3]"}),e.jsx("span",{children:"Metode Pembayaran"})]})]})]}),e.jsxs("div",{className:"lg:col-span-5 bg-slate-800/80 p-4 rounded-2xl border border-slate-700 space-y-3 text-center",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block",children:"ALUR KERJA OTOMATIS"}),e.jsxs("div",{className:"flex items-center justify-between text-xs font-extrabold gap-2",children:[e.jsxs("div",{className:"bg-slate-900 p-2.5 rounded-xl border border-pink-500/30 text-pink-300 w-1/3 text-center space-y-1",children:[e.jsx(pm,{className:"w-4 h-4 mx-auto text-pink-400"}),e.jsx("span",{className:"block text-[10px]",children:"Dashboard MuaKita"})]}),e.jsxs("div",{className:"flex-1 flex flex-col items-center",children:[e.jsx("span",{className:"text-[9px] font-mono text-emerald-400 font-bold",children:"1 Detik Sync"}),e.jsx("div",{className:"w-full h-0.5 bg-gradient-to-r from-pink-500 to-emerald-400 rounded-full"})]}),e.jsxs("div",{className:"bg-slate-900 p-2.5 rounded-xl border border-emerald-500/30 text-emerald-300 w-1/3 text-center space-y-1",children:[e.jsx(mt,{className:"w-4 h-4 mx-auto text-emerald-400"}),e.jsx("span",{className:"block text-[10px]",children:"Website Publik MUA"})]})]}),e.jsxs("div",{className:"bg-slate-900/90 p-2 rounded-xl text-[10px] text-slate-400 font-mono text-left space-y-0.5",children:[e.jsx("span",{className:"text-emerald-400 font-bold",children:"✓ Event Webhook Active"}),e.jsx("p",{children:"Status: All 7 modules synchronized and cached on CDN."})]})]})]})}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center max-w-2xl mx-auto space-y-2",children:[e.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-[#EC167F] block",children:"LENGKAP & DIDESAIN KHUSUS MUA"}),e.jsxs("h3",{className:"text-2xl sm:text-3xl font-black text-slate-900 tracking-tight",children:["Segala yang Anda Butuhkan dalam ",e.jsx("span",{className:"text-[#EC167F]",children:"Satu Website MUA"})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Dirancang khusus untuk memenuhi standar industri kecantikan, bridal studio, dan MUA profesional."})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(mt,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Profil Bisnis MUA Professional"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Tampilkan nama studio, bio branding, kontak resmi, alamat lengkap, lokasi Google Maps, dan jam operasional dengan tampilan eksklusif."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(za,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Katalog Layanan & Harga Transparan"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Sajikan daftar layanan (Bridal, Engagement, Graduation, Party) lengkap dengan rincian harga, estimasi durasi, dan item yang didapatkan."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(gr,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Portofolio Foto & Video HD"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Showcase galeri foto sebelum-sesudah (Before-After) dan video riasan beresolusi tinggi yang membuat calon pengantin terpukau."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Bt,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Testimoni & Rating Klien"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Tampilkan ulasan nyata dan bintang kepuasan dari para pengantin terdahulu untuk membangun kepercayaan calon klien baru."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(St,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Informasi Tim & Senior MUA"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Perkenalkan tim makeup artist, hair stylist, dan perias asisten lengkap dengan keahlian masing-masing (opsional untuk studio/tim)."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx($l,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Paket Wedding & Event Spesial"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Rincian paket rias pengantin lengkap dengan rundown acara, fasilitas gaun/aksesoris, dan opsi custom request untuk event besar."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Ie,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Form Reservasi Direct Online 24/7"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Menerima booking otomatis kapan saja tanpa perlu balas chat satu per satu. Slot jadwal langsung terkunci di kalender Anda."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Cr,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Bagikan ke Instagram, TikTok, & WA"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Link website cantik dan fleksibel untuk dicantumkan di Bio Instagram, TikTok Linktree, status WhatsApp, hingga QR Code kartu nama."})]}),e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200/90 shadow-2xs hover:border-pink-300 transition-all space-y-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Jl,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-slate-900 text-sm",children:"Custom Domain (.com / .id)"}),e.jsxs("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:["Gunakan nama domain sendiri seperti ",e.jsx("strong",{className:"text-slate-900",children:"www.namastudiomua.com"})," pada paket pilihan untuk kesan brand super premium."]})]})]})]}),e.jsxs("div",{className:"bg-gradient-to-r from-pink-500 via-[#EC167F] to-rose-600 rounded-3xl p-6 sm:p-10 text-white shadow-2xl relative overflow-hidden flex flex-col md:flex-row items-center justify-between gap-6 text-left",children:[e.jsxs("div",{className:"space-y-2 max-w-xl",children:[e.jsx("span",{className:"px-3 py-1 rounded-full bg-white/20 text-white text-[10px] font-black uppercase tracking-wider",children:"GRATIS TRIAL 14 HARI"}),e.jsx("h3",{className:"text-2xl sm:text-3xl font-black tracking-tight leading-tight",children:"Siap Memiliki Website MUA Profesional Pertama Anda?"}),e.jsx("p",{className:"text-xs sm:text-sm text-pink-100 font-medium leading-relaxed",children:"Buat website MUA Anda hanya dalam 3 menit. Tanpa butuh kartu kredit, tanpa perlu sewa web developer mahal."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-3 shrink-0 w-full md:w-auto",children:[e.jsxs("button",{onClick:h,className:"w-full sm:w-auto px-6 py-3.5 bg-white hover:bg-pink-50 text-[#EC167F] rounded-xl text-xs font-black shadow-lg hover:shadow-xl transition-all flex items-center justify-center gap-2 cursor-pointer group",children:[e.jsx("span",{children:"Buat Website MUA Anda Sekarang"}),e.jsx(Kt,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]}),e.jsxs("button",{onClick:j,className:"w-full sm:w-auto px-5 py-3.5 bg-black/20 hover:bg-black/30 text-white border border-white/30 rounded-xl text-xs font-bold transition-colors cursor-pointer flex items-center justify-center gap-2",children:[e.jsx(ed,{className:"w-3.5 h-3.5 fill-white"}),e.jsx("span",{children:"Lihat Template Website"})]})]})]})]})]})},cj=({onLogin:h})=>{const[j,m]=d.useState("home"),[o,S]=d.useState(!1),[M,C]=d.useState("monthly"),[u,b]=d.useState(!1),f=()=>{S(!0)},A=()=>{navigator.clipboard.writeText("https://maps.app.goo.gl/abcdefGhijk12345"),b(!0),setTimeout(()=>b(!1),2e3)},y=R=>{if(j!=="home")m("home"),setTimeout(()=>{const W=document.getElementById(R);W&&W.scrollIntoView({behavior:"smooth"})},100);else{const W=document.getElementById(R);W&&W.scrollIntoView({behavior:"smooth"})}};return e.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900 font-sans selection:bg-[#EC167F] selection:text-white",children:[e.jsx("header",{className:"sticky top-0 z-40 bg-white/95 backdrop-blur-md border-b border-slate-100 shadow-2xs",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-20 flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2.5 cursor-pointer group",onClick:()=>{m("home"),window.scrollTo({top:0,behavior:"smooth"})},children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-[#EC167F] flex items-center justify-center text-white font-black text-xl shadow-md shadow-pink-500/20 group-hover:scale-105 transition-transform",children:"M"}),e.jsxs("div",{children:[e.jsxs("span",{className:"text-xl font-black tracking-tight text-slate-900 block leading-none",children:["Mua",e.jsx("span",{className:"text-[#EC167F]",children:"Kita"})]}),e.jsx("span",{className:"text-[10px] font-bold text-slate-400 block mt-0.5",children:"Platform Manajemen Bisnis Beauty untuk MUA"})]})]}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-8 text-xs font-bold text-slate-600",children:[e.jsx("button",{onClick:()=>{m("home"),window.scrollTo({top:0,behavior:"smooth"})},className:`hover:text-[#EC167F] transition-colors cursor-pointer py-1 ${j==="home"?"text-[#EC167F] font-black border-b-2 border-[#EC167F]":""}`,children:"Beranda"}),e.jsx("button",{onClick:()=>y("fitur"),className:"hover:text-[#EC167F] transition-colors cursor-pointer py-1",children:"Fitur"}),e.jsxs("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:`hover:text-[#EC167F] transition-colors cursor-pointer py-1 flex items-center gap-1 ${j==="paket"?"text-[#EC167F] font-black border-b-2 border-[#EC167F]":""}`,children:[e.jsx("span",{children:"Paket"}),e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#EC167F]"})]}),e.jsx("button",{onClick:()=>{m("marketplace"),window.scrollTo({top:0,behavior:"smooth"})},className:`hover:text-[#EC167F] transition-colors cursor-pointer py-1 ${j==="marketplace"?"text-[#EC167F] font-black border-b-2 border-[#EC167F]":""}`,children:"Marketplace"}),e.jsx("button",{onClick:()=>{m("blog"),window.scrollTo({top:0,behavior:"smooth"})},className:`hover:text-[#EC167F] transition-colors cursor-pointer py-1 ${j==="blog"?"text-[#EC167F] font-black border-b-2 border-[#EC167F]":""}`,children:"Blog"}),e.jsx("button",{onClick:()=>{m("bantuan"),window.scrollTo({top:0,behavior:"smooth"})},className:`hover:text-[#EC167F] transition-colors cursor-pointer py-1 ${j==="bantuan"?"text-[#EC167F] font-black border-b-2 border-[#EC167F]":""}`,children:"Bantuan"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:f,className:"px-4 py-2 text-xs font-extrabold text-slate-700 hover:text-[#EC167F] transition-colors border border-slate-200 hover:border-pink-300 rounded-xl cursor-pointer",children:"Masuk"}),e.jsx("button",{onClick:()=>{m("demo"),window.scrollTo({top:0,behavior:"smooth"})},className:"px-5 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-md shadow-pink-500/20 hover:shadow-lg transition-all cursor-pointer flex items-center gap-1.5",children:e.jsx("span",{children:"Coba Gratis 14 Hari"})})]})]})}),j==="paket"&&e.jsx(lj,{onSelectPlan:(R,W)=>{W?h(W):S(!0)},onNavigate:R=>m(R),onOpenLogin:()=>S(!0)}),j==="marketplace"&&e.jsx(nj,{onOpenLogin:()=>S(!0),onNavigate:R=>m(R)}),j==="blog"&&e.jsx(ij,{onNavigate:R=>m(R)}),j==="bantuan"&&e.jsx(rj,{onNavigate:R=>m(R)}),j==="home"&&e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"relative pt-10 pb-16 lg:pt-16 lg:pb-20 overflow-hidden bg-gradient-to-b from-pink-50/40 via-slate-50 to-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 items-center",children:[e.jsxs("div",{className:"lg:col-span-5 space-y-5 text-left",children:[e.jsx("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-pink-100/80 text-[#EC167F] text-[11px] font-extrabold",children:e.jsx("span",{children:"Platform All-in-One untuk MUA Profesional"})}),e.jsxs("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 tracking-tight leading-[1.15]",children:["Kelola Bisnis MUA Lebih Mudah, ",e.jsx("span",{className:"text-[#EC167F]",children:"Fokus pada Karya"})]}),e.jsx("p",{className:"text-xs sm:text-sm text-slate-600 font-medium leading-relaxed",children:"MuaKita membantu MUA mengelola reservasi, pelanggan, layanan, tim, keuangan, hingga promosi dalam satu platform. Hemat waktu, tingkatkan booking, dan kelola bisnis seperti pro."}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-1 text-[11px] font-bold text-slate-700",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0",children:e.jsx(Ke,{className:"w-3.5 h-3.5"})}),e.jsx("span",{children:"Mudah Digunakan"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0",children:e.jsx(Jl,{className:"w-3.5 h-3.5"})}),e.jsx("span",{children:"Data Aman"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0",children:e.jsx(mt,{className:"w-3.5 h-3.5"})}),e.jsx("span",{children:"Akses di Mana Saja"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0",children:e.jsx(yr,{className:"w-3.5 h-3.5"})}),e.jsx("span",{children:"Support 24/7"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 pt-2",children:[e.jsxs("button",{onClick:f,className:"px-6 py-3.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold shadow-lg shadow-pink-500/25 hover:shadow-xl transition-all flex items-center gap-2 cursor-pointer group",children:[e.jsx("span",{children:"Coba Gratis 14 Hari"}),e.jsx(Kt,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]}),e.jsxs("button",{onClick:f,className:"px-5 py-3.5 bg-white hover:bg-slate-50 text-slate-800 border border-slate-200 rounded-xl text-xs font-extrabold shadow-2xs transition-colors flex items-center gap-2 cursor-pointer",children:[e.jsx("span",{children:"Lihat Demo"}),e.jsx("div",{className:"w-4 h-4 rounded-full bg-slate-900 text-white flex items-center justify-center",children:e.jsx(ed,{className:"w-2.5 h-2.5 fill-white ml-0.5"})})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-[11px] font-semibold text-slate-500 pt-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-3.5 h-3.5 rounded-full bg-slate-200 text-slate-600 font-bold flex items-center justify-center text-[9px]",children:"✕"}),e.jsx("span",{children:"Tanpa kartu kredit"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-pink-500"}),e.jsx("span",{children:"Setup cepat"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-pink-500"}),e.jsx("span",{children:"Batalkan kapan saja"})]})]})]}),e.jsx("div",{className:"lg:col-span-7",children:e.jsxs("div",{className:"rounded-2xl bg-white border border-slate-200/90 shadow-2xl overflow-hidden text-slate-800",children:[e.jsxs("div",{className:"bg-slate-50 px-4 py-2.5 border-b border-slate-100 flex items-center justify-between text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 font-black text-slate-900",children:[e.jsx("div",{className:"w-5 h-5 rounded-lg bg-[#EC167F] text-white flex items-center justify-center text-[10px]",children:"M"}),e.jsx("span",{children:"MuaKita"}),e.jsx("span",{className:"text-slate-300 font-normal",children:"|"}),e.jsx("span",{className:"text-slate-600 font-bold",children:"Dashboard"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-slate-500",children:[e.jsxs("span",{className:"bg-white border border-slate-200 px-2.5 py-1 rounded-lg text-slate-700 font-semibold flex items-center gap-1",children:["Periode: ",e.jsx("strong",{className:"text-slate-900",children:"30 Hari Terakhir"})]}),e.jsxs("div",{className:"flex items-center gap-1.5 font-bold text-slate-800",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center text-[10px] font-black",children:"GB"}),e.jsx("span",{className:"text-[11px]",children:"Glow Bridal Studio"})]})]})]}),e.jsxs("div",{className:"p-4 bg-slate-50/30 space-y-3.5",children:[e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2.5",children:[e.jsxs("div",{className:"bg-white p-3 rounded-xl border border-slate-200/80 space-y-1",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold block",children:"Total Reservasi"}),e.jsx("span",{className:"text-lg font-black text-slate-900 block leading-none",children:"128"}),e.jsxs("span",{className:"text-[9px] font-bold text-emerald-600 flex items-center gap-0.5",children:["↑ 18.2% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-xl border border-slate-200/80 space-y-1",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold block",children:"Pendapatan"}),e.jsx("span",{className:"text-base font-black text-slate-900 block leading-none",children:"Rp 24.560.000"}),e.jsxs("span",{className:"text-[9px] font-bold text-emerald-600 flex items-center gap-0.5",children:["↑ 34.6% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-xl border border-slate-200/80 space-y-1",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold block",children:"Pelanggan Baru"}),e.jsx("span",{className:"text-lg font-black text-slate-900 block leading-none",children:"56"}),e.jsxs("span",{className:"text-[9px] font-bold text-emerald-600 flex items-center gap-0.5",children:["↑ 12.4% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]}),e.jsxs("div",{className:"bg-white p-3 rounded-xl border border-slate-200/80 space-y-1",children:[e.jsx("span",{className:"text-[10px] text-slate-400 font-bold block",children:"Tingkat Konversi"}),e.jsx("span",{className:"text-lg font-black text-slate-900 block leading-none",children:"32.7%"}),e.jsxs("span",{className:"text-[9px] font-bold text-emerald-600 flex items-center gap-0.5",children:["↑ 8.3% ",e.jsx("span",{className:"text-slate-400 font-normal",children:"vs bulan lalu"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"sm:col-span-7 bg-white p-3 rounded-xl border border-slate-200/80 space-y-2",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Pendapatan"}),e.jsxs("div",{className:"h-28 w-full relative pt-1",children:[e.jsxs("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 300 90",preserveAspectRatio:"none",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"heroPinkGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#EC167F",stopOpacity:"0.2"}),e.jsx("stop",{offset:"100%",stopColor:"#EC167F",stopOpacity:"0"})]})}),e.jsx("path",{d:"M 0,70 Q 50,80 100,50 T 200,30 T 300,10 L 300,90 L 0,90 Z",fill:"url(#heroPinkGrad)"}),e.jsx("path",{d:"M 0,70 Q 50,80 100,50 T 200,30 T 300,10",fill:"none",stroke:"#EC167F",strokeWidth:"2.5"}),e.jsx("circle",{cx:"50",cy:"72",r:"3",fill:"#EC167F"}),e.jsx("circle",{cx:"100",cy:"50",r:"3",fill:"#EC167F"}),e.jsx("circle",{cx:"150",cy:"55",r:"3",fill:"#EC167F"}),e.jsx("circle",{cx:"200",cy:"30",r:"3",fill:"#EC167F"}),e.jsx("circle",{cx:"250",cy:"20",r:"3",fill:"#EC167F"}),e.jsx("circle",{cx:"300",cy:"10",r:"4",fill:"#EC167F",stroke:"#fff",strokeWidth:"2"})]}),e.jsxs("div",{className:"flex justify-between text-[8px] font-bold text-slate-400 mt-1",children:[e.jsx("span",{children:"Jan"}),e.jsx("span",{children:"Feb"}),e.jsx("span",{children:"Mar"}),e.jsx("span",{children:"Apr"}),e.jsx("span",{children:"Mei"}),e.jsx("span",{children:"Jun"}),e.jsx("span",{children:"Jul"})]})]})]}),e.jsxs("div",{className:"sm:col-span-5 bg-white p-3 rounded-xl border border-slate-200/80 space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[e.jsx("span",{className:"font-extrabold text-slate-900",children:"Reservasi Terbaru"}),e.jsx("span",{className:"text-[9px] font-bold text-[#EC167F] cursor-pointer",children:"Lihat semua"})]}),e.jsxs("div",{className:"space-y-1.5 text-[10px]",children:[e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-lg bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-5 h-5 rounded-full bg-pink-200 text-pink-700 font-extrabold flex items-center justify-center text-[8px]",children:"AP"}),e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-slate-900 block leading-tight",children:"Anisa Putri"}),e.jsx("span",{className:"text-[8px] text-slate-400",children:"Makeup Engagement"})]})]}),e.jsx("span",{className:"text-[8px] font-bold text-slate-500",children:"12 Jul • 08:00"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-lg bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-5 h-5 rounded-full bg-emerald-200 text-emerald-800 font-extrabold flex items-center justify-center text-[8px]",children:"DL"}),e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-slate-900 block leading-tight",children:"Dewi Lestari"}),e.jsx("span",{className:"text-[8px] text-slate-400",children:"Makeup Wedding"})]})]}),e.jsx("span",{className:"text-[8px] font-bold text-slate-500",children:"11 Jul • 11:00"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 rounded-lg bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-5 h-5 rounded-full bg-purple-200 text-purple-800 font-extrabold flex items-center justify-center text-[8px]",children:"SA"}),e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-slate-900 block leading-tight",children:"Siti Aisyah"}),e.jsx("span",{className:"text-[8px] text-slate-400",children:"Makeup Graduasi"})]})]}),e.jsx("span",{className:"text-[8px] font-bold text-slate-500",children:"10 Jul • 13:30"})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-12 gap-3",children:[e.jsxs("div",{className:"sm:col-span-7 bg-white p-3 rounded-xl border border-slate-200/80 space-y-1.5",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Jadwal Hari Ini"}),e.jsxs("div",{className:"space-y-1 text-[10px]",children:[e.jsxs("div",{className:"flex items-center justify-between p-1.5 bg-slate-50 rounded-lg",children:[e.jsx("span",{className:"font-mono text-slate-500 font-bold",children:"08.00"}),e.jsx("span",{className:"font-bold text-slate-800",children:"Makeup Wedding"}),e.jsx("span",{className:"text-slate-500",children:"Anisa Putri"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 bg-slate-50 rounded-lg",children:[e.jsx("span",{className:"font-mono text-slate-500 font-bold",children:"11.00"}),e.jsx("span",{className:"font-bold text-slate-800",children:"Makeup Engagement"}),e.jsx("span",{className:"text-slate-500",children:"Dewi Lestari"})]}),e.jsxs("div",{className:"flex items-center justify-between p-1.5 bg-slate-50 rounded-lg",children:[e.jsx("span",{className:"font-mono text-slate-500 font-bold",children:"14.00"}),e.jsx("span",{className:"font-bold text-slate-800",children:"Trial Makeup"}),e.jsx("span",{className:"text-slate-500",children:"Siti Aisyah"})]})]})]}),e.jsxs("div",{className:"sm:col-span-5 bg-white p-3 rounded-xl border border-slate-200/80 space-y-2",children:[e.jsx("span",{className:"text-[11px] font-extrabold text-slate-900 block",children:"Pemasukan vs Pengeluaran"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-full border-4 border-[#EC167F] border-t-purple-600 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"text-[8px] font-extrabold text-slate-700",children:"79%"})}),e.jsxs("div",{className:"space-y-1 text-[9px]",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-medium block",children:"Pemasukan"}),e.jsx("span",{className:"font-black text-[#EC167F]",children:"Rp 24.560.000"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-slate-400 font-medium block",children:"Pengeluaran"}),e.jsx("span",{className:"font-black text-purple-600",children:"Rp 6.240.000"})]})]})]})]})]})]})]})})]})})}),e.jsx("section",{className:"py-8 bg-white border-y border-slate-100",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 text-center space-y-5",children:[e.jsx("p",{className:"text-xs font-bold text-slate-500",children:"Dipercaya oleh 1.000+ MUA & beauty business di seluruh Indonesia"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-6 sm:gap-10 text-xs font-black tracking-wider text-slate-400 uppercase",children:[e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"GLOW Bridal Studio"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"LAVISH BEAUTY"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"Cantik SALON"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"BELLA AESTHETIC"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"FLAWLESS MUA"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"ELEGANT WEDDING"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"NATURAL BEAUTY"}),e.jsx("span",{className:"hover:text-slate-700 transition-colors",children:"ZAHRA MAKEUP"})]})]})}),e.jsx("section",{id:"fitur",className:"py-16 sm:py-20 bg-slate-50/50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-10",children:[e.jsxs("div",{className:"text-center max-w-2xl mx-auto space-y-2",children:[e.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-[#EC167F] block",children:"SEMUA DALAM SATU PLATFORM"}),e.jsxs("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-black text-slate-900 tracking-tight",children:["Fitur Lengkap untuk ",e.jsx("span",{className:"text-[#EC167F]",children:"Mengelola Bisnis MUA"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Ie,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Reservasi & Kalender"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Kelola jadwal, kalender, buat reservasi, form publik, dan daftar reservasi dengan mudah."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(St,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Manajemen Pelanggan"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Simpan data pelanggan, riwayat reservasi, catatan preferensi, dan tingkatkan loyalitas."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(kg,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Manajemen Layanan"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Kelola layanan, paket, harga, durasi, dan custom request sesuai kebutuhan bisnismu."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx($l,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Wedding Management"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Kelola event wedding, rundown, pembayaran, tim, dan detail klien dengan rapi."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(St,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Manajemen Tim"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Atur peran, jadwal, komisi, absensi, dan performa tim dalam satu sistem."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Mr,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Keuangan & Laporan"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Catat pemasukan, pengeluaran, laba, dan dapatkan laporan real-time yang akurat."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(fr,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Inventaris"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Kelola item & stok, kategori inventory, notifikasi stok menipis, dan riwayat penggunaan."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Vf,{className:"w-4.5 h-4.5"})}),e.jsx("span",{className:"px-2 py-0.5 rounded-full bg-pink-100 text-[#EC167F] text-[10px] font-black",children:"Baru"})]}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Pemasaran"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Kirim promo, kelola voucher, campaign, dan tingkatkan penjualan bisnismu."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(mt,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Website & Form Publik"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Miliki website profesional & form booking sendiri untuk tarik lebih banyak klien."})]}),e.jsxs("div",{className:"bg-white p-4 sm:p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5 hover:border-pink-200 transition-colors",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-pink-50 text-[#EC167F] flex items-center justify-center",children:e.jsx(Zn,{className:"w-4.5 h-4.5"})}),e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Pengaturan Lengkap"}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:"Atur profil & branding, jam buka, rekening bank, dan form publik sesuai kebutuhan."})]})]})]})}),e.jsx("section",{className:"py-16 sm:py-20 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 items-center",children:[e.jsxs("div",{className:"lg:col-span-5 space-y-5",children:[e.jsx("span",{className:"px-3 py-1 rounded-md bg-pink-100 text-[#EC167F] text-[10px] font-extrabold tracking-wider uppercase inline-block",children:"FITUR UNGGULAN"}),e.jsxs("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-black text-slate-900 tracking-tight leading-tight",children:[e.jsx("span",{className:"text-[#EC167F]",children:"Hitung Ongkos Transport Otomatis"})," dari Lokasi Klien"]}),e.jsx("p",{className:"text-xs sm:text-sm text-slate-600 font-medium leading-relaxed",children:"Masukkan link lokasi klien (Google Maps), sistem akan otomatis menghitung jarak, durasi, dan ongkos transport sesuai pengaturan yang Anda tetapkan."}),e.jsxs("div",{className:"space-y-3.5 pt-2 text-xs",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(Ut,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-extrabold text-slate-900",children:"Input Link Lokasi Klien"}),e.jsx("p",{className:"text-slate-500 font-medium text-[11px]",children:"Tempel link Google Maps, sistem baca lokasi otomatis."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(Vt,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-extrabold text-slate-900",children:"Hitung Otomatis"}),e.jsx("p",{className:"text-slate-500 font-medium text-[11px]",children:"Jarak & ongkos dihitung berdasarkan tarif per km Anda."})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-7 h-7 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(Ge,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-extrabold text-slate-900",children:"Transparan & Akurat"}),e.jsx("p",{className:"text-slate-500 font-medium text-[11px]",children:"Tampilkan rincian biaya transport ke klien dengan jelas."})]})]})]})]}),e.jsxs("div",{className:"lg:col-span-7 bg-slate-50 p-5 sm:p-6 rounded-3xl border border-slate-200/90 shadow-xl space-y-4",children:[e.jsx("h3",{className:"text-sm font-extrabold text-slate-900",children:"Hitung Ongkos Transport"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-[11px] font-bold text-slate-500 block",children:"Link Lokasi Klien"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"text",readOnly:!0,value:"https://maps.app.goo.gl/abcdefGhijk12345",className:"w-full bg-white border border-slate-200 p-2.5 rounded-xl text-xs font-mono text-slate-700 focus:outline-none"}),e.jsx("button",{onClick:A,className:"p-2.5 bg-white border border-slate-200 rounded-xl text-slate-500 hover:text-[#EC167F] transition-colors cursor-pointer shrink-0",title:"Salin Link",children:e.jsx(Qc,{className:"w-4 h-4"})})]}),u&&e.jsx("span",{className:"text-[10px] font-bold text-emerald-600 block pt-0.5",children:"Link tersalin!"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-1",children:[e.jsxs("div",{className:"space-y-2 text-xs",children:[e.jsx("span",{className:"font-extrabold text-slate-900 block border-b border-slate-200 pb-1",children:"Ringkasan Perhitungan"}),e.jsxs("div",{className:"flex justify-between py-1",children:[e.jsx("span",{className:"text-slate-500",children:"Jarak"}),e.jsx("span",{className:"font-bold text-slate-900",children:"18,6 km"})]}),e.jsxs("div",{className:"flex justify-between py-1",children:[e.jsx("span",{className:"text-slate-500",children:"Durasi"}),e.jsx("span",{className:"font-bold text-slate-900",children:"35 menit"})]}),e.jsxs("div",{className:"flex justify-between py-1",children:[e.jsx("span",{className:"text-slate-500",children:"Tarif per km"}),e.jsx("span",{className:"font-bold text-slate-900",children:"Rp 3.000"})]}),e.jsxs("div",{className:"flex justify-between py-1.5 border-t border-slate-200",children:[e.jsx("span",{className:"font-extrabold text-slate-900",children:"Ongkos Transport"}),e.jsx("span",{className:"font-black text-[#EC167F] text-sm",children:"Rp 55.800"})]})]}),e.jsxs("div",{className:"bg-blue-50/70 border border-blue-100 rounded-2xl p-3 relative min-h-[160px] flex flex-col justify-between overflow-hidden",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs("span",{className:"bg-white/90 backdrop-blur-xs px-2.5 py-1 rounded-lg text-[10px] font-extrabold text-slate-800 shadow-2xs",children:["18,6 km ",e.jsx("span",{className:"text-slate-400 font-normal",children:"/ 35 menit"})]})}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none px-6",children:e.jsx("svg",{className:"w-full h-24 stroke-blue-500 stroke-[3] fill-none",viewBox:"0 0 200 80",children:e.jsx("path",{d:"M 20,60 Q 80,10 180,20",strokeDasharray:"4 4"})})}),e.jsx("div",{className:"absolute bottom-4 left-4 z-10",children:e.jsx("div",{className:"w-6 h-6 rounded-full bg-[#EC167F] text-white flex items-center justify-center shadow-md",children:e.jsx(Ut,{className:"w-3.5 h-3.5"})})}),e.jsx("div",{className:"absolute top-4 right-4 z-10",children:e.jsx("div",{className:"w-7 h-7 rounded-full bg-rose-500 text-white flex items-center justify-center shadow-md animate-bounce",children:e.jsx(Ut,{className:"w-4 h-4"})})}),e.jsxs("div",{className:"bg-white p-2 rounded-xl border border-slate-200 text-[10px] space-y-0.5 z-10 mt-auto",children:[e.jsx("span",{className:"font-bold text-slate-900 block",children:"Lokasi Klien"}),e.jsx("span",{className:"text-slate-500 truncate block",children:"Jl. Sudirman No. 123, Jakarta Selatan"})]})]})]})]})]})})}),e.jsx(oj,{onOpenLogin:f,onOpenDemo:f,onNavigateToPaket:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})}}),e.jsx("section",{id:"paket",className:"py-16 sm:py-20 bg-slate-50/50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-10",children:[e.jsxs("div",{className:"text-center max-w-2xl mx-auto space-y-3",children:[e.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-[#EC167F] block",children:"PILIH PAKET YANG SESUAI"}),e.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-black text-slate-900 tracking-tight",children:"Paket Fleksibel untuk Setiap Tahap Bisnis Anda"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 pt-1.5",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 p-1 bg-slate-200/70 rounded-full text-xs font-bold",children:[e.jsx("button",{onClick:()=>C("monthly"),className:`px-4 py-1.5 rounded-full transition-all cursor-pointer ${M==="monthly"?"bg-white text-slate-900 shadow-2xs":"text-slate-600"}`,children:"Bulanan"}),e.jsxs("button",{onClick:()=>C("yearly"),className:`px-4 py-1.5 rounded-full transition-all cursor-pointer flex items-center gap-1.5 ${M==="yearly"?"bg-[#EC167F]":"text-slate-600"}`,children:[e.jsx("span",{children:"Tahunan"}),e.jsx("span",{className:"px-1.5 py-0.2 rounded-full bg-emerald-100 text-emerald-800 text-[9px] font-black",children:"Hemat 20%"})]})]}),e.jsxs("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:"px-4 py-2 bg-white hover:bg-pink-50 text-[#EC167F] border border-pink-200 rounded-full text-xs font-extrabold shadow-2xs transition-colors flex items-center gap-1.5 cursor-pointer",children:[e.jsx(Ke,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Bandingkan Semua Fitur & Kalkulator"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-5 items-stretch",children:[e.jsxs("div",{className:"bg-white p-5 rounded-3xl border border-slate-200/90 shadow-2xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:"Starter"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Untuk MUA pemula yang baru memulai."})]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Rp "}),e.jsx("span",{className:"text-2xl font-black text-slate-900",children:"149.000"}),e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:" /bulan"})]}),e.jsxs("div",{className:"space-y-2 pt-3 border-t border-slate-100 text-xs text-slate-700",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Reservasi & Kalender"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Manajemen Pelanggan"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Manajemen Layanan"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Laporan Dasar"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Support Chat"})]})]})]}),e.jsx("button",{onClick:f,className:"w-full py-2.5 bg-slate-50 hover:bg-slate-100 text-slate-800 font-extrabold text-xs rounded-xl border border-slate-200 transition-colors cursor-pointer",children:"Coba Gratis 14 Hari"})]}),e.jsxs("div",{className:"bg-white p-5 rounded-3xl border-2 border-[#EC167F] shadow-xl flex flex-col justify-between space-y-4 relative",children:[e.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-0.5 rounded-full bg-[#EC167F] text-white text-[9px] font-black tracking-wider uppercase shadow-2xs",children:"Paling Populer"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:"Professional"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Untuk MUA profesional yang ingin berkembang."})]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Rp "}),e.jsx("span",{className:"text-2xl font-black text-slate-900",children:"299.000"}),e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:" /bulan"})]}),e.jsxs("div",{className:"space-y-2 pt-3 border-t border-slate-100 text-xs text-slate-700",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Semua fitur Starter"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Manajemen Tim"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Keuangan & Laporan"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Inventaris"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Pemasaran (Promo & Voucher)"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Website & Form Publik"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-[#EC167F] stroke-[3]"}),e.jsx("span",{children:"Support Prioritas"})]})]})]}),e.jsx("button",{onClick:f,className:"w-full py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold text-xs rounded-xl transition-all cursor-pointer shadow-md shadow-pink-500/20",children:"Coba Gratis 14 Hari"})]}),e.jsxs("div",{className:"bg-white p-5 rounded-3xl border border-slate-200/90 shadow-2xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:"Business"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Untuk bisnis MUA dengan tim yang besar."})]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Rp "}),e.jsx("span",{className:"text-2xl font-black text-slate-900",children:"499.000"}),e.jsx("span",{className:"text-xs text-slate-400 font-bold",children:" /bulan"})]}),e.jsxs("div",{className:"space-y-2 pt-3 border-t border-slate-100 text-xs text-slate-700",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Semua fitur Professional"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Wedding Management"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Hitung Transport Otomatis"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Multi Lokasi/Outlet"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Integrasi WhatsApp"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Export Laporan Lengkap"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Support Prioritas"})]})]})]}),e.jsx("button",{onClick:f,className:"w-full py-2.5 bg-slate-50 hover:bg-slate-100 text-slate-800 font-extrabold text-xs rounded-xl border border-slate-200 transition-colors cursor-pointer",children:"Coba Gratis 14 Hari"})]}),e.jsxs("div",{className:"bg-white p-5 rounded-3xl border border-slate-200/90 shadow-2xs flex flex-col justify-between space-y-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-slate-900",children:"Enterprise"}),e.jsx("p",{className:"text-[11px] text-slate-500 font-medium",children:"Solusi khusus untuk bisnis skala besar."})]}),e.jsx("div",{className:"pt-2",children:e.jsx("span",{className:"text-2xl font-black text-slate-900",children:"Custom"})}),e.jsxs("div",{className:"space-y-2 pt-3 border-t border-slate-100 text-xs text-slate-700",children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Semua fitur Business"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Custom Fitur"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Dedicated Account Manager"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"Training & Onboarding"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{className:"w-3.5 h-3.5 text-pink-500 stroke-[3]"}),e.jsx("span",{children:"SLA & Support 24/7"})]})]})]}),e.jsx("button",{onClick:f,className:"w-full py-2.5 bg-slate-50 hover:bg-slate-100 text-slate-800 font-extrabold text-xs rounded-xl border border-slate-200 transition-colors cursor-pointer",children:"Hubungi Sales"})]})]})]})}),e.jsx("section",{className:"py-16 sm:py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8",children:[e.jsxs("div",{className:"flex items-end justify-between gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-[#EC167F] block",children:"APA KATA MEREKA"}),e.jsxs("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-black text-slate-900 tracking-tight",children:["Dipercaya oleh ",e.jsx("span",{className:"text-[#EC167F]",children:"MUA Professional"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsx("button",{className:"p-2 rounded-full border border-slate-200 text-slate-400 hover:text-slate-700 hover:bg-slate-50 cursor-pointer",children:e.jsx(ra,{className:"w-4 h-4"})}),e.jsx("button",{className:"p-2 rounded-full border border-slate-200 text-slate-400 hover:text-slate-700 hover:bg-slate-50 cursor-pointer",children:e.jsx(it,{className:"w-4 h-4"})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[e.jsxs("div",{className:"bg-slate-50/60 p-5 rounded-3xl border border-slate-200/80 space-y-4 flex flex-col justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("span",{className:"text-3xl text-pink-400 font-serif block leading-none",children:"“"}),e.jsx("p",{className:"text-xs text-slate-700 font-medium leading-relaxed",children:"MuaKita sangat membantu aku mengelola jadwal dan klien. Sekarang lebih terorganisir dan booking jadi lebih banyak!"})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=120",alt:"Dewi Lestari",className:"w-10 h-10 rounded-full object-cover ring-2 ring-pink-200 shrink-0"}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-900",children:"Dewi Lestari"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"MUA & Owner Dewi Makeup"}),e.jsx("div",{className:"text-amber-400 text-[10px] pt-0.5",children:"★★★★★"})]})]})]}),e.jsxs("div",{className:"bg-slate-50/60 p-5 rounded-3xl border border-slate-200/80 space-y-4 flex flex-col justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("span",{className:"text-3xl text-pink-400 font-serif block leading-none",children:"“"}),e.jsx("p",{className:"text-xs text-slate-700 font-medium leading-relaxed",children:"Fitur hitung ongkos transport otomatis bener-bener ngebantu banget. Klien lebih jelas dan aku lebih hemat waktu."})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=120",alt:"Ayu Permata",className:"w-10 h-10 rounded-full object-cover ring-2 ring-pink-200 shrink-0"}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-900",children:"Ayu Permata"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"MUA & Owner Ayu Beauty"}),e.jsx("div",{className:"text-amber-400 text-[10px] pt-0.5",children:"★★★★★"})]})]})]}),e.jsxs("div",{className:"bg-slate-50/60 p-5 rounded-3xl border border-slate-200/80 space-y-4 flex flex-col justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("span",{className:"text-3xl text-pink-400 font-serif block leading-none",children:"“"}),e.jsx("p",{className:"text-xs text-slate-700 font-medium leading-relaxed",children:"Semua ada di MuaKita, dari reservasi sampai laporan keuangan. Sangat worth it!"})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx("img",{src:"https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?auto=format&fit=crop&q=80&w=120",alt:"Rina Andini",className:"w-10 h-10 rounded-full object-cover ring-2 ring-pink-200 shrink-0"}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xs font-extrabold text-slate-900",children:"Rina Andini"}),e.jsx("span",{className:"text-[10px] text-slate-500 font-medium block",children:"MUA & Owner Rina Studio"}),e.jsx("div",{className:"text-amber-400 text-[10px] pt-0.5",children:"★★★★★"})]})]})]})]})]})}),e.jsx("section",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"bg-gradient-to-r from-[#EC167F] via-pink-600 to-rose-600 rounded-3xl p-6 sm:p-10 text-white shadow-xl relative overflow-hidden flex flex-col lg:flex-row items-center justify-between gap-8",children:[e.jsxs("div",{className:"space-y-3 max-w-xl text-center lg:text-left z-10",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-black tracking-tight leading-tight",children:"Siap Mengembangkan Bisnis MUA Anda?"}),e.jsx("p",{className:"text-xs sm:text-sm text-pink-100 font-medium",children:"Bergabung sekarang dan rasakan kemudahan mengelola bisnis dalam satu platform."})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 z-10 shrink-0",children:[e.jsx("button",{onClick:f,className:"px-6 py-3.5 bg-white text-[#EC167F] hover:bg-pink-50 rounded-xl text-xs font-black shadow-lg transition-all cursor-pointer",children:"Coba Gratis 14 Hari"}),e.jsxs("button",{onClick:f,className:"px-5 py-3.5 border border-white/80 hover:bg-white/10 text-white rounded-xl text-xs font-extrabold transition-all cursor-pointer flex items-center gap-2",children:[e.jsx("span",{children:"Lihat Demo"}),e.jsx(ed,{className:"w-3 h-3 fill-white"})]})]}),e.jsx("div",{className:"hidden lg:block shrink-0 relative w-48 h-32 -mr-4 -mb-10 pointer-events-none",children:e.jsx("img",{src:"https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=300",alt:"Beauty Artist",className:"w-full h-full object-cover rounded-2xl border-2 border-white/30 shadow-2xl"})})]})})}),e.jsx("footer",{className:"bg-white border-t border-slate-200/80 pt-12 pb-8 text-xs text-slate-600",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-10",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-8",children:[e.jsxs("div",{className:"md:col-span-1 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-[#EC167F] flex items-center justify-center text-white font-black text-sm shadow-2xs",children:"M"}),e.jsxs("span",{className:"text-base font-black text-slate-900 tracking-tight",children:["Mua",e.jsx("span",{className:"text-[#EC167F]",children:"Kita"})]})]}),e.jsx("p",{className:"text-[11px] text-slate-500 leading-relaxed font-medium",children:"Platform manajemen bisnis MUA all-in-one untuk membantu Anda tumbuh, terorganisir, dan sukses bersama klien."}),e.jsxs("div",{className:"flex items-center gap-3 text-slate-400 pt-1",children:[e.jsx(il,{className:"w-4 h-4 hover:text-[#EC167F] cursor-pointer transition-colors"}),e.jsx(va,{className:"w-4 h-4 hover:text-[#EC167F] cursor-pointer transition-colors"}),e.jsx(Mm,{className:"w-4 h-4 hover:text-[#EC167F] cursor-pointer transition-colors"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Produk"}),e.jsxs("ul",{className:"space-y-1.5 text-[11px] font-medium text-slate-500 cursor-pointer",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>y("fitur"),className:"hover:text-[#EC167F] text-left",children:"Fitur System"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>y("website-builder"),className:"hover:text-[#EC167F] text-left text-[#EC167F] font-bold",children:"Website Builder"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Paket Pricing"})}),e.jsx("li",{children:e.jsx("button",{onClick:f,className:"hover:text-[#EC167F] text-left",children:"Coba Gratis"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("marketplace"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Marketplace MUA"})})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Solusi"}),e.jsxs("ul",{className:"space-y-1.5 text-[11px] font-medium text-slate-500",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Untuk MUA Solo"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Untuk Studio & Tim"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Untuk Salon Kecantikan"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("paket"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Untuk Franchise Multi-Cabang"})})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Perusahaan"}),e.jsxs("ul",{className:"space-y-1.5 text-[11px] font-medium text-slate-500",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("home"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Tentang MuaKita"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("blog"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Blog & Panduan"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("marketplace"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Direktori MUA"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("bantuan"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Kontak & Support"})})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-extrabold text-slate-900 text-xs",children:"Bantuan"}),e.jsxs("ul",{className:"space-y-1.5 text-[11px] font-medium text-slate-500",children:[e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("bantuan"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Pusat Bantuan 24/7"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("bantuan"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"Panduan Setup 1-on-1"})}),e.jsx("li",{children:e.jsx("button",{onClick:()=>{m("bantuan"),window.scrollTo({top:0,behavior:"smooth"})},className:"hover:text-[#EC167F] text-left",children:"FAQ Sistem"})})]})]})]}),e.jsx("div",{className:"pt-6 border-t border-slate-100 flex flex-col sm:flex-row items-center justify-between gap-4 text-[11px] font-medium text-slate-400",children:e.jsx("p",{children:"© 2025 MuaKita. All rights reserved."})})]})})]}),e.jsx(sj,{isOpen:o,onClose:()=>S(!1),onLogin:R=>{S(!1),h(R)}})]})};function bm(h,j,m){if(h==="landing")return"#/landing";let o=m;return m==="create_reservation"?o="buat-reservasi":m==="form_publik"||m==="public_form"?o="form-publik":m==="kategori_layanan"||m==="layanan_kategori"||m==="kategori"?o="kategori-layanan":m==="reservasi_group"?o="reservasi":m==="layanan_group"?o="layanan":m==="pelanggan_group"?o="pelanggan":m==="website"||m==="website_dashboard"?o="website":m==="website_template"?o="website-template":m==="website_edit"?o="website-edit":m==="website_konten"?o="website-konten":m==="website_seo"?o="website-seo":m==="website_domain"?o="website-domain":m==="website_analytics"&&(o="website-analytics"),`#/${j}/${o}`}function fm(h){const j=h.replace(/^#\/?/,"").trim();if(!j||j==="landing"||j==="home")return{viewMode:"landing",role:"owner",activeTab:"dashboard"};const m=j.split("/");if(m[0]==="superadmin"){const M=m[1]||"dashboard";return{viewMode:"app",role:"superadmin",activeTab:Ic(M)}}if(m[0]==="owner"){const M=m[1]||"dashboard";return{viewMode:"app",role:"owner",activeTab:Ic(M)}}const o=m[0];return{viewMode:"app",role:["tenant","paket","pembayaran","promosi","master","cms","pengaturan_platform","log","admin","super_settings","analitik_global"].includes(o)?"superadmin":"owner",activeTab:Ic(o)}}function Ic(h){return h==="buat-reservasi"||h==="buat_reservasi"?"create_reservation":h==="form-publik"||h==="form_reservasi_publik"||h==="public_form"?"form_publik":h==="kategori-layanan"||h==="layanan_kategori"||h==="kategori"?"kategori_layanan":h==="reservasi_group"?"reservasi":h==="layanan_group"?"layanan":h==="pelanggan_group"?"pelanggan":h==="website-builder"||h==="website_builder"?"website_dashboard":h==="website-template"?"website_template":h==="website-edit"?"website_edit":h==="website-konten"?"website_konten":h==="website-seo"?"website_seo":h==="website-domain"?"website_domain":h==="website-analytics"?"website_analytics":h}function dj(){const h=fm(typeof window<"u"?window.location.hash:""),[j,m]=d.useState(h.viewMode),[o,S]=d.useState(h.role),[M,C]=d.useState(!1),[u,b]=d.useState(h.activeTab),f=d.useCallback((ne,Ce,we)=>{m(ne),S(Ce),b(we);const ce=bm(ne,Ce,we);window.location.hash!==ce&&(window.location.hash=ce)},[]),A=ne=>{f(ne,o,u)},y=ne=>{f(j,ne,u)},R=ne=>{f("app",o,ne)};d.useEffect(()=>{const ne=()=>{const Ce=fm(window.location.hash);m(Ce.viewMode),S(Ce.role),b(Ce.activeTab)};return window.location.hash||(window.location.hash=bm(h.viewMode,h.role,h.activeTab)),window.addEventListener("hashchange",ne),()=>window.removeEventListener("hashchange",ne)},[h]);const[W,G]=d.useState(!0),[ae,xe]=d.useState(""),[$,T]=d.useState(!1),[_,D]=d.useState(null),[Y,se]=d.useState("bulan"),[te,P]=d.useState(!1),[le,pe]=d.useState(!1),[be,J]=d.useState(""),[fe,B]=d.useState(""),[oe,k]=d.useState("Pro"),[U,ie]=d.useState(j1),[me,Ne]=d.useState(v1),c=ne=>{D(ne),setTimeout(()=>D(null),3e3)},F=ne=>{if(ne.preventDefault(),!be)return;const Ce=fe||`${be.toLowerCase().replace(/\s+/g,"")}.muakita.com`,we={id:String(Date.now()),name:be,domain:Ce,package:oe,revenue:0,growth:0,status:"Aktif",logoColor:"#EC167F"};ie([we,...U]),J(""),B(""),P(!1),c(`Tenant baru "${we.name}" berhasil didaftarkan!`)},v=ne=>{Ne([ne,...me]),c(`Reservasi untuk "${ne.name}" berhasil ditambahkan!`)},Z=d.useMemo(()=>ae?U.filter(ne=>ne.name.toLowerCase().includes(ae.toLowerCase())||ne.domain.toLowerCase().includes(ae.toLowerCase())||ne.package.toLowerCase().includes(ae.toLowerCase())):U,[U,ae]),re=o==="superadmin"?k1:y1,ue=()=>{A("landing"),c("Anda telah keluar (Logout). Kembali ke Landing Page.")};return j==="landing"?e.jsx(cj,{onLogin:ne=>{f("app",ne,"dashboard"),c(`Berhasil masuk sebagai ${ne==="superadmin"?"Super Admin":"Bisnis Owner"}`)}}):e.jsxs("div",{className:`flex h-screen w-full font-sans overflow-hidden ${$?"bg-slate-950 text-slate-100":"bg-[#F8FAFC] text-slate-900"}`,children:[e.jsx(w1,{message:_}),e.jsx(S1,{role:o,setRole:y,isSidebarOpen:W,setIsSidebarOpen:G,showRoleDropdown:M,setShowRoleDropdown:C,activeTab:u,setActiveTab:R,menus:re,triggerToast:c,onLogout:ue}),e.jsxs("div",{className:"flex-1 flex flex-col h-full min-w-0 overflow-hidden",children:[e.jsx(C1,{role:o,setRole:y,isSidebarOpen:W,setIsSidebarOpen:G,searchQuery:ae,setSearchQuery:xe,isDarkMode:$,setIsDarkMode:T,onOpenAddModal:()=>{o==="superadmin"?P(!0):R("create_reservation")},triggerToast:c,setActiveTab:R,onLogout:ue}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-3 sm:p-4 pb-16 sm:pb-4 space-y-3 custom-scrollbar",children:[o==="superadmin"&&u==="dashboard"&&e.jsx(M1,{tenants:U,filteredTenants:Z,activities:N1,chartPeriod:Y,setChartPeriod:se,setActiveTab:R,setShowAddTenantModal:P,triggerToast:c}),o==="owner"&&u==="dashboard"&&e.jsx(A1,{reservations:me,chartPeriod:Y,setChartPeriod:se,setActiveTab:R,setShowAddReservationModal:pe,triggerToast:c}),u==="tenant"&&e.jsx(F1,{tenants:U,onOpenAddModal:()=>P(!0),triggerToast:c}),u==="paket"&&e.jsx(P1,{triggerToast:c}),u==="pembayaran"&&e.jsx(L1,{triggerToast:c}),(u==="reservasi_kalender"||u==="kalender")&&e.jsx(U1,{onNavigateToCreate:()=>R("create_reservation"),triggerToast:c}),(u==="reservasi"||u==="reservasi_group"||u==="reservasi_daftar")&&e.jsx(z1,{reservations:me,onNavigateToCreate:()=>R("create_reservation"),triggerToast:c}),(u==="buat-reservasi"||u==="create_reservation")&&e.jsx(Am,{onSave:ne=>{Ne([ne,...me]),R("reservasi")},onCancel:()=>R("reservasi"),triggerToast:c}),(u==="form_publik"||u==="public_form"||u==="form_reservasi_publik")&&e.jsx($1,{triggerToast:c,onSaveReservation:ne=>{v(ne)}}),(u==="estimasi_transport"||u==="transport")&&e.jsx(J1,{onNavigateToCreateReservation:()=>R("create_reservation"),triggerToast:c}),(u==="layanan"||u==="layanan_group"||u==="tambah_layanan"||u==="layanan_tambah")&&e.jsx(H1,{initialSubView:u==="tambah_layanan"||u==="layanan_tambah"?"tambah":"katalog",triggerToast:c}),(u==="kategori_layanan"||u==="layanan_kategori"||u==="kategori")&&e.jsx(G1,{triggerToast:c}),(u==="pelanggan"||u==="pelanggan_group"||u==="pelanggan_tambah"||u==="tambah_pelanggan")&&e.jsx(q1,{initialSubView:u==="pelanggan_tambah"||u==="tambah_pelanggan"?"tambah":"daftar",onNavigateToCreateReservation:()=>R("create_reservation"),triggerToast:c}),(u==="keuangan"||u.startsWith("keuangan_"))&&e.jsx(V1,{activeTab:u,triggerToast:c}),(u==="website"||u.startsWith("website_"))&&e.jsx(I1,{activeTab:u,setActiveTab:R,triggerToast:c,onNavigateToPublicForm:()=>R("form_publik")}),(u==="tim"||u.startsWith("tim_"))&&e.jsx(Q1,{triggerToast:c}),(u==="inventaris"||u.startsWith("inventaris_"))&&e.jsx(ej,{activeTab:u,triggerToast:c}),(u==="pengaturan"||u.startsWith("pengaturan_"))&&e.jsx(Y1,{activeTab:u,setActiveTab:R,triggerToast:c}),(u==="admin"||u==="pengguna"||u==="manajemen_pengguna"||u==="user"||u==="users"||u.startsWith("pengguna_"))&&e.jsx(tj,{triggerToast:c}),u!=="dashboard"&&!u.startsWith("website")&&!u.startsWith("keuangan")&&!u.startsWith("pengaturan")&&!u.startsWith("tim")&&!u.startsWith("inventaris")&&!u.startsWith("pengguna")&&!["tenant","paket","pembayaran","reservasi","reservasi_group","reservasi_kalender","kalender","buat-reservasi","create_reservation","estimasi_transport","transport","form_publik","public_form","form_reservasi_publik","layanan","layanan_group","tambah_layanan","layanan_tambah","kategori_layanan","layanan_kategori","kategori","pelanggan","pelanggan_group","pelanggan_tambah","tambah_pelanggan","keuangan","keuangan_group","pengaturan","pengaturan_group","tim","tim_group","inventaris","inventaris_group","inventaris_kategori","admin","pengguna","manajemen_pengguna","user","users"].includes(u)&&e.jsx(aj,{activeTab:u,role:o,menus:re,triggerToast:c})]})]}),e.jsx(B1,{role:o,setRole:y,activeTab:u,setActiveTab:R,menus:re,onOpenAddModal:()=>{o==="superadmin"?P(!0):pe(!0)},triggerToast:c}),e.jsx(E1,{isOpen:te,onClose:()=>P(!1),onSubmit:F,tenantName:be,setTenantName:J,tenantDomain:fe,setTenantDomain:B,tenantPackage:oe,setTenantPackage:k}),e.jsx(T1,{isOpen:le,onClose:()=>pe(!1),onAdd:v})]})}Wp.createRoot(document.getElementById("root")).render(e.jsx(d.StrictMode,{children:e.jsx(dj,{})}));

Zerion Mini Shell 1.0