@saasbase-io/core-elements 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +221 -221
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/dist/types/core/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(e,t,o,s){function r(i){return i instanceof o?i:new o(function(n){n(i)})}return new(o||(o=Promise))(function(i,n){function l(b){try{h(s.next(b))}catch(f){n(f)}}function d(b){try{h(s.throw(b))}catch(f){n(f)}}function h(b){b.done?i(b.value):r(b.value).then(l,d)}h((s=s.apply(e,t||[])).next())})}class hr{constructor(){this.data=new Map}static get Instance(){return hr.instance||(hr.instance=new hr),hr.instance}get(t){return this.data.get(t)}set(t,o){this.data.set(t,o)}setConfig(t){this.data.set("config",t)}getConfig(){return this.data.get("config")}getApiBaseUrl(){const t=this.getConfig().domain;return t.startsWith("localhost")?`http://${t}`:`https://${t}`}remove(t){this.data.delete(t)}clear(){this.data.clear()}}const kt=hr.Instance;class Q extends Error{constructor(t,o,s){super(o),this.name="LoginflowError",this.code=t,this.details=s}}class ue{constructor(){}static get Instance(){return ue.instance||(ue.instance=new ue),ue.instance}request(t){return F(this,arguments,void 0,function*(o,s={}){const r=kt.getConfig(),i=`${kt.getApiBaseUrl()}${o}`,n=5e4,l=new AbortController,d=setTimeout(()=>l.abort(),n);try{const h=yield fetch(i,Object.assign(Object.assign({},s),{signal:l.signal,headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},r.apiKey&&{Authorization:`Bearer ${r.apiKey}`}),r.headers),s.headers)}));if(clearTimeout(d),!h.ok){const b=yield h.json().catch(()=>({}));throw new Q(b.code||"API_ERROR",b.message||`HTTP ${h.status}: ${h.statusText}`,b.details)}return yield h.json()}catch(h){throw clearTimeout(d),h instanceof Q?h:h instanceof Error?h.name==="AbortError"?new Q("TIMEOUT","Request timeout"):new Q("NETWORK_ERROR",h.message):new Q("UNKNOWN_ERROR","An unknown error occurred")}})}post(t,o){return F(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"POST",body:o?JSON.stringify(o):void 0})})}get(t){return F(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"GET"})})}}class pt{constructor(){this.AUTH_SESSION_STORAGE_KEY="saasbase_auth_session",this.refreshTimeoutId=null,this.refreshPromise=null}static get Instance(){return pt.instance||(pt.instance=new pt),pt.instance}setCurrentSession(t){localStorage.setItem(this.AUTH_SESSION_STORAGE_KEY,JSON.stringify(t))}getCurrentSession(){const t=this.getStoredSession();return t?this.isSessionExpired(t)?(this.clearSession(),null):(this.shouldRefreshToken(t)&&this.triggerBackgroundRefresh(t),t):null}isAuthenticated(){return this.getCurrentSession()!==null}getAuthenticatedUser(){const t=this.getCurrentSession();if(!t||!t.id_token)return null;const o=this.decodeJWT(t.id_token);return o||null}cleanup(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshPromise=null}clearSession(){localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY)}isSessionExpired(t){return!t||!t.expires_at?!0:Date.now()>=t.expires_at}cleanExpiredSession(){const t=this.getStoredSession();t&&this.isSessionExpired(t)&&this.clearSession()}getStoredSession(){const t=localStorage.getItem(this.AUTH_SESSION_STORAGE_KEY);if(!t)return null;try{return JSON.parse(t)}catch{return this.clearSession(),null}}decodeJWT(t){try{const s=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(s).split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(r)}catch{return null}}shouldRefreshToken(t){if(!t||!t.expires_at||!t.refresh_token)return!1;const o=Date.now(),s=t.expires_at,r=t.expires_in||3600,i=o+r*1e3*.2;return s<=i}scheduleTokenRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null);const t=this.getCurrentSession();if(!t||!t.expires_at||!t.refresh_token)return;const o=Date.now(),s=t.expires_at,r=t.expires_in||3600,i=s-o-r*1e3*.2;i>0&&(this.refreshTimeoutId=setTimeout(()=>{this.triggerBackgroundRefresh(t)},i))}triggerBackgroundRefresh(t){this.refreshPromise||t.refresh_token&&(this.refreshPromise=this.refreshTokens(t.refresh_token).then(o=>(o&&(this.setCurrentSession(o),this.scheduleTokenRefresh()),o)).catch(o=>(console.error("Background token refresh failed:",o),null)).finally(()=>{this.refreshPromise=null}))}refreshTokens(t){return F(this,void 0,void 0,function*(){try{const o=yield ue.Instance.post("/login-flow/v1/refresh",{refresh_token:t});return{id_token:o.id_token,access_token:o.access_token,refresh_token:o.refresh_token,expires_in:o.expires_in,expires_at:Date.now()+o.expires_in*1e3}}catch(o){return o instanceof Q?console.error("Token refresh failed:",o.message,o.details):console.error("Token refresh failed:",o),this.clearSession(),null}})}}class nl{constructor(t=sessionStorage){this.storage=t,this.FLOW_STATE_KEY="saasbase_loginflow_state",this.FLOW_EXPIRY_MS=540*1e3}getFlowState(){const t=this.storage.getItem(this.FLOW_STATE_KEY);if(!t)return null;try{const o=JSON.parse(t);return this.isExpired(o)?(this.clearFlowState(),null):o}catch{return this.clearFlowState(),null}}saveFlowState(t,o,s){const r=Date.now(),i=this.getFlowState(),n={flowType:t,flow_id:o,state:s.state,startedAt:(i==null?void 0:i.startedAt)||r,lastUpdatedAt:r,render_spec:s.render_spec};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(n))}restoreFromHistory(t){const o={flowType:t.flowType,flow_id:t.flow_id,state:t.state,startedAt:t.timestamp,lastUpdatedAt:t.timestamp,render_spec:void 0};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(o))}clearFlowState(){this.storage.removeItem(this.FLOW_STATE_KEY)}isExpired(t){return Date.now()-t.lastUpdatedAt>this.FLOW_EXPIRY_MS}get expiryMs(){return this.FLOW_EXPIRY_MS}}class Lo{static detect(t,o=window.location){const s=o.pathname.toLowerCase();return s.includes(t.signinUrl)?"signin":s.includes(t.signupUrl)?"signup":"custom"}}class al{constructor(){this.listeners=new Map}on(t,o){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(o)}off(t,o){var s;(s=this.listeners.get(t))===null||s===void 0||s.delete(o)}emit(t,o){const s=this.listeners.get(t);s&&s.forEach(r=>{try{r(o)}catch(i){console.error(`[FlowEventBus] Error in event handler for ${t}:`,i)}})}clear(){this.listeners.clear()}clearEvent(t){this.listeners.delete(t)}}class Kc{getNavigationType(){const t=performance.getEntriesByType("navigation");if(t.length>0)return t[0].type;const o=performance.navigation;if(o)switch(o.type){case 1:return"reload";case 2:return"back_forward";default:return"navigate"}return"navigate"}}class zi{constructor(t,o,s=window.location,r,i){this.httpClient=ue.Instance,this.redirectTimeoutId=null,this.eventHandlers=new Map([["switch_to_signin",this.handleSwitchToSignin.bind(this)],["switch_to_signup",this.handleSwitchToSignup.bind(this)]]);const n=kt.getConfig();if(!n.domain)throw new Q("CONFIG_ERROR","Domain is required");if(!n.clientId)throw new Q("CONFIG_ERROR","Client ID is required");if(!n.clientSecret)throw new Q("CONFIG_ERROR","Client Secret is required");this.flowId=t,this.location=s,this.flowStateManager=r||new nl,this.flowEventBus=o||new al,this.navigationTypeDetector=i||new Kc,pt.Instance.cleanExpiredSession(),pt.Instance.scheduleTokenRefresh()}static init(t,o,s,r,i){return F(this,void 0,void 0,function*(){const n=new zi(t,o,s,r,i),l=yield n.initializeFlowInternal();return{sdk:n,flowType:l.flowType,isResumed:l.isResumed,state:l.state,render_spec:l.render_spec,auth_result:l.auth_result}})}startFlow(t,o){return F(this,void 0,void 0,function*(){if(!o.client_id)throw new Q("VALIDATION_ERROR","Client ID is required");const s=`/login-flow/v1/${t}/start`;return this.executeFlowRequest(()=>this.httpClient.post(s,o),"START_FLOW_ERROR","Failed to start flow")})}resumeFlow(t){return F(this,void 0,void 0,function*(){const o=`/login-flow/v1/${t}/resume`;return this.executeFlowRequest(()=>this.httpClient.post(o),"RESUME_FLOW_ERROR","Failed to resume flow")})}processEvent(t,o){return F(this,void 0,void 0,function*(){if(!t.event)throw new Q("VALIDATION_ERROR","Event type is required");const s=this.eventHandlers.get(t.event);return s?yield s():yield this.processServerEvent(t,o)})}executeFlowRequest(t,o,s,r){return F(this,void 0,void 0,function*(){try{const i=yield t();return r&&(yield r(i)),this.processAuthResult(i.auth_result),i.redirection&&this.redirect(i.redirection),i}catch(i){throw i instanceof Q?i:new Q(o,s,i instanceof Error?{originalError:i.message,stack:i.stack}:i)}})}processServerEvent(t,o){return F(this,void 0,void 0,function*(){let s=this.flowStateManager.getFlowState();if(!s&&(console.warn("Flow state expired, restarting flow before processing event"),yield this.initializeFlowInternal(),s=this.flowStateManager.getFlowState(),!s))throw new Q("FLOW_RESTART_ERROR","Failed to restart flow - no flow state after initialization");const r=s.state,i=`/login-flow/v1/${s.flowType}/events`,n=yield this.executeFlowRequest(()=>this.httpClient.post(i,t),"PROCESS_EVENT_ERROR","Failed to process event",o);if(!n.auth_result){this.flowStateManager.saveFlowState(s.flowType,s.flow_id,n);const l=this.flowStateManager.getFlowState();if(l){const d=r!==n.state;this.flowEventBus.emit("flow:updated",{flowState:l,isNewStep:d})}}return n})}processAuthResult(t){if(t){const o={id_token:t.id_token,access_token:t.access_token,refresh_token:t.refresh_token,expires_in:t.expires_in,expires_at:Date.now()+t.expires_in*1e3};pt.Instance.setCurrentSession(o),pt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState(),this.reloadPage()}}initializeFlowInternal(){return F(this,void 0,void 0,function*(){const t=kt.getConfig(),o=Lo.detect(t,this.location);this.validateFlowType(o);const s=this.flowStateManager.getFlowState();return this.shouldResumeFlow(s,o)?yield this.resumeExistingFlow(s,o):yield this.startNewFlow(o)})}validateFlowType(t){if(t==="custom"&&!this.flowId)throw new Q("FLOW_ID_ERROR","Flow ID is required for custom flows")}shouldResumeFlow(t,o){if(!t)return!1;const r=new URLSearchParams(this.location.search).get("resume")==="true",i=this.navigationTypeDetector.getNavigationType();if(i==="navigate"&&!r)return this.flowStateManager.clearFlowState(),console.log(`Fresh navigation detected (type: ${i}), starting new flow`),!1;if(t.flowType!==o)return this.flowStateManager.clearFlowState(),console.log(`Flow type changed from ${t.flowType} to ${o}, starting new flow, flow_id: ${this.flowId}`),!1;if(o==="custom"&&t.flow_id!==this.flowId)return this.flowStateManager.clearFlowState(),console.log(`Custom flow ID changed, starting new flow, flow_id: ${this.flowId}`),!1;const n=r?"explicit resume=true":`navigation type: ${i}`;return console.log(`Resuming existing flow (${n})`),!0}resumeExistingFlow(t,o){return F(this,void 0,void 0,function*(){try{const s=yield this.resumeFlow(o);if(!s.auth_result){this.flowStateManager.saveFlowState(o,t.flow_id,s);const r=this.flowStateManager.getFlowState();r&&this.flowEventBus.emit("flow:resumed",{flowState:r})}return{flowType:o,isResumed:!0,state:s.state,render_spec:s.render_spec,auth_result:s.auth_result}}catch(s){return this.flowStateManager.clearFlowState(),console.warn("Failed to resume flow, starting fresh:",s),yield this.startNewFlow(o)}})}startNewFlow(t){return F(this,void 0,void 0,function*(){const o=kt.getConfig(),s={client_id:o.clientId,client_secret:o.clientSecret,origin_url:this.location.href,signin_url:o.signinUrl,signup_url:o.signupUrl,locale:o.locale||"en",flow_id:this.determineFlowId(t)},r=yield this.startFlow(t,s);if(!r.auth_result){this.flowStateManager.saveFlowState(t,s.flow_id,r);const i=this.flowStateManager.getFlowState();i&&this.flowEventBus.emit("flow:started",{flowState:i})}return{flowType:t,isResumed:!1,state:r.state,render_spec:r.render_spec,auth_result:r.auth_result}})}determineFlowId(t){switch(t){case"signin":return this.flowId||"signin-flow";case"signup":return this.flowId||"signup-flow";case"custom":if(!this.flowId)throw new Q("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}handleSwitchToSignin(){return F(this,void 0,void 0,function*(){const t=kt.getConfig();return this.redirect({url:t.signinUrl,redirect_delay:0}),{state:"End"}})}handleSwitchToSignup(){return F(this,void 0,void 0,function*(){const t=kt.getConfig();return this.redirect({url:t.signupUrl,redirect_delay:0}),{state:"End"}})}redirect(t){t.url&&(this.redirectTimeoutId!==null&&(console.log("Clearing existing redirect timeout before scheduling new redirect to:",t.url),clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.redirectTimeoutId=setTimeout(()=>{this.location.href=t.url},t.redirect_delay*1e3))}reloadPage(){setTimeout(()=>{this.location.reload()},0)}getEventBus(){return this.flowEventBus}cleanup(){this.redirectTimeoutId&&(clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.flowEventBus.clear()}}class Yc{constructor(t){this.delayMs=t,this.timerId=null}debounce(t){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{t(),this.timerId=null},this.delayMs)}cancel(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}isPending(){return this.timerId!==null}}class Zc{pushState(t,o,s){history.pushState(t,o,s)}replaceState(t,o,s){history.replaceState(t,o,s)}get state(){return history.state}}class Xc{constructor(t,o,s=!1,r=window.location,i,n){this.popstateListener=null,this.pageshowListener=null,this.isProcessing=!1,this.isHandlingNavigationEvent=!1,this.onFlowRestartNeeded=null,this.onFlowRestartNeeded=o,this.skipHistoryTracking=s,this.debouncer=new Yc(200),this.location=r,this.flowStateManager=i||new nl,this.historyAdapter=n||new Zc,this.subscribeToFlowEvents(t),this.initializeListener()}subscribeToFlowEvents(t){t.on("flow:started",this.handleFlowStart.bind(this)),t.on("flow:updated",this.handleFlowUpdate.bind(this)),t.on("flow:resumed",this.handleFlowResume.bind(this))}initializeListener(){this.popstateListener=t=>{console.log("[NavigationManager] popstate event received"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Debounce timeout fired, handling popstate"),this.handlePopState(t)})},this.pageshowListener=t=>{t.persisted&&(console.log("[NavigationManager] Page restored from bfcache"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Handling bfcache restoration"),this.handleBfcacheRestoration()}))},window.addEventListener("popstate",this.popstateListener),window.addEventListener("pageshow",this.pageshowListener)}handlePopState(t){return F(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing popstate, skipping");return}console.log("[NavigationManager] Starting popstate processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const o=t.state,s=this.flowStateManager.getFlowState(),r=kt.getConfig(),i=Lo.detect(r,this.location);if(o&&this.restoreHistoryStateToSession(o),this.shouldRestartFlow(o,s,i)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from history")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}handleBfcacheRestoration(){return F(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing bfcache restoration, skipping");return}console.log("[NavigationManager] Starting bfcache restoration processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const t=this.historyAdapter.state,o=this.flowStateManager.getFlowState(),s=kt.getConfig(),r=Lo.detect(s,this.location);if(t&&this.restoreHistoryStateToSession(t),this.shouldRestartFlow(t,o,r)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from bfcache")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}restoreHistoryStateToSession(t){console.log("[NavigationManager] Restoring history state to session storage:",t),this.flowStateManager.restoreFromHistory(t)}shouldRestartFlow(t,o,s){return t&&t.flowType!==s?(console.log("[NavigationManager] Flow type changed via navigation:",t.flowType,"→",s),this.flowStateManager.clearFlowState(),!0):t?Date.now()-t.timestamp>this.flowStateManager.expiryMs?(console.log("[NavigationManager] History state expired, clearing and restarting flow"),this.flowStateManager.clearFlowState(),!0):(console.log("[NavigationManager] Valid history state restored, triggering restart to resume flow"),!0):(console.log("[NavigationManager] No history state, skipping"),!1)}triggerFlowRestart(){return F(this,void 0,void 0,function*(){this.onFlowRestartNeeded&&(yield this.onFlowRestartNeeded())})}createHistoryState(t){return{flowType:t.flowType,flow_id:t.flow_id,state:t.state,timestamp:Date.now()}}updateBrowserHistory(t,o){if(this.skipHistoryTracking){console.log("[NavigationManager] Skipping history tracking (created from navigation)");return}const s=this.createHistoryState(t);try{o==="push"?(this.historyAdapter.pushState(s,"",this.location.href),console.log("[NavigationManager] Pushed state to history")):(this.historyAdapter.replaceState(s,"",this.location.href),console.log("[NavigationManager] Replaced state in history"))}catch(r){console.error("[NavigationManager] Failed to update history:",r)}}handleFlowStart(t){this.updateBrowserHistory(t.flowState,"replace")}handleFlowUpdate(t){const o=this.isHandlingNavigationEvent||!t.isNewStep?"replace":"push";this.updateBrowserHistory(t.flowState,o)}handleFlowResume(t){this.updateBrowserHistory(t.flowState,"replace")}destroy(){this.debouncer.cancel(),this.popstateListener&&(window.removeEventListener("popstate",this.popstateListener),this.popstateListener=null),this.pageshowListener&&(window.removeEventListener("pageshow",this.pageshowListener),this.pageshowListener=null),this.onFlowRestartNeeded=null}}let Ae=new AbortController;class Jc{constructor(){this.httpClient=ue.Instance,this.capabilities={webauthn:!1},this.capabilitiesDetected=!1}detectCapabilities(){return F(this,void 0,void 0,function*(){if(!this.capabilitiesDetected)try{if(typeof window.PublicKeyCredential=="function"?this.capabilities.webauthn=!0:this.capabilities.webauthn=!1,typeof PublicKeyCredential.getClientCapabilities=="function"){const t=yield PublicKeyCredential.getClientCapabilities();this.capabilities=Object.assign(Object.assign({},this.capabilities),t);return}typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(this.capabilities.userVerifyingPlatformAuthenticator=yield PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()),(PublicKeyCredential==null?void 0:PublicKeyCredential.isConditionalMediationAvailable)!==void 0&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"?this.capabilities.conditionalGet=yield PublicKeyCredential.isConditionalMediationAvailable():this.capabilities.conditionalGet=!1}finally{this.capabilitiesDetected=!0}})}fetchPublicKeyCredentialRequestOptions(t,o){return F(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/login/options",{conditional:o,flow_type:t})}catch(s){return console.error("error",s),null}})}fetchPublicKeyCredentialCreationOptions(t,o){return F(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/register/options",{conditional:o,flow_type:t})}catch(s){return console.error("error",s),null}})}startRegistration(t,o){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Ae.abort(),Ae=new AbortController;const s=this.toPublicKeyCredentialCreationOptions(t),r={signal:Ae.signal,publicKey:s};if(o){if(!this.isConditionalCreateAvailable())return console.error("Conditional create mediation not supported in this browser"),null;r.mediation="conditional"}try{const i=yield navigator.credentials.create(r);if(!i){console.error("no credential returned by authenticator");return}const{id:n,rawId:l,response:d,type:h}=i;let b;typeof d.getTransports=="function"&&(b=d.getTransports());let f;if(typeof d.getPublicKeyAlgorithm=="function")try{f=d.getPublicKeyAlgorithm()}catch(_){zs("getPublicKeyAlgorithm()",_)}let y;if(typeof d.getPublicKey=="function")try{const _=d.getPublicKey();_!==null&&(y=this.bufferToBase64URLString(_))}catch(_){zs("getPublicKey()",_)}let x;if(typeof d.getAuthenticatorData=="function")try{x=this.bufferToBase64URLString(d.getAuthenticatorData())}catch(_){zs("getAuthenticatorData()",_)}return{id:n,rawId:this.bufferToBase64URLString(l),response:{attestationObject:this.bufferToBase64URLString(d.attestationObject),clientDataJSON:this.bufferToBase64URLString(d.clientDataJSON),transports:b,publicKeyAlgorithm:f,publicKey:y,authenticatorData:x},type:h,clientExtensionResults:i.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(i.authenticatorAttachment)}}catch(i){const n=this.identifyAuthenticationError({error:i,options:r});return n instanceof Pe?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",i),null}})}startAuthentication(t,o){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialRequestOptionsJSON provided"),null;if(!this.isWebAuthnAvailable())return console.error("WebAuthn not supported in this browser"),null;Ae.abort(),Ae=new AbortController;const s=this.toPublicKeyCredentialRequestOptions(t),r={signal:Ae.signal,publicKey:s};if(o){if(!this.isConditionalGetAvailable())return console.error("Conditional mediation not supported in this browser"),null;r.mediation="conditional",r.publicKey&&(r.publicKey.allowCredentials=[])}try{const i=yield navigator.credentials.get(r);return this.toPublicKeyCredentialJSON(i)}catch(i){const n=this.identifyAuthenticationError({error:i,options:r});return n instanceof Pe?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",i),null}})}signalUnknownCredential(t,o){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalUnknownCredentialAvailable())try{yield PublicKeyCredential.signalUnknownCredential({rpId:t,credentialId:o})}catch(s){console.error("Failed to signal unknown credential:",s)}else console.warn("signalUnknownCredential not supported in this browser")})}signalCurrentUserDetails(t){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalCurrentUserDetailsAvailable())try{yield PublicKeyCredential.signalCurrentUserDetails(t)}catch(o){console.error("Failed to signal current user details:",o)}else console.warn("signalCurrentUserDetails not supported. Ask user to update manually.")})}toPublicKeyCredentialDescriptor(t){const{id:o}=t;return Object.assign(Object.assign({},t),{id:this.base64URLStringToBuffer(o),type:t.type,transports:t.transports})}toAuthenticatorAttachment(t){const o=["cross-platform","platform"];if(t&&!(o.indexOf(t)<0))return t}bufferToBase64URLString(t){const o=new Uint8Array(t);let s="";for(const i of o)s+=String.fromCharCode(i);return btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}base64URLStringToBuffer(t){const o=t.replace(/-/g,"+").replace(/_/g,"/"),s=(4-o.length%4)%4,r=o.padEnd(o.length+s,"="),i=atob(r),n=new ArrayBuffer(i.length),l=new Uint8Array(n);for(let d=0;d<i.length;d++)l[d]=i.charCodeAt(d);return n}toPublicKeyCredentialJSON(t){if(typeof t.toJSON=="function")return t.toJSON();const o=t.response;return{id:t.id,type:t.type,rawId:this.bufferToBase64URLString(t.rawId),authenticatorAttachment:this.toAuthenticatorAttachment(t.authenticatorAttachment),clientExtensionResults:t==null?void 0:t.getClientExtensionResults(),response:{clientDataJSON:this.bufferToBase64URLString(o.clientDataJSON),authenticatorData:this.bufferToBase64URLString(o.authenticatorData),signature:this.bufferToBase64URLString(o.signature),userHandle:o.userHandle?this.bufferToBase64URLString(o.userHandle):void 0}}}toPublicKeyCredentialCreationOptions(t){var o;if(typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const s={challenge:this.base64URLStringToBuffer(t.challenge),rp:{id:t.rp.id,name:t.rp.name},user:{displayName:t.user.displayName,id:this.base64URLStringToBuffer(t.user.id),name:t.user.name},pubKeyCredParams:t.pubKeyCredParams.map(r=>({alg:r.alg,type:r.type})),timeout:t.timeout};if(t.attestation&&(s.attestation=t.attestation),t.extensions!==void 0&&(s.extensions=t.extensions),t.authenticatorSelection){const r={};t.authenticatorSelection.authenticatorAttachment&&(r.authenticatorAttachment=t.authenticatorSelection.authenticatorAttachment),t.authenticatorSelection.requireResidentKey&&(r.requireResidentKey=t.authenticatorSelection.requireResidentKey),t.authenticatorSelection.residentKey&&(r.residentKey=t.authenticatorSelection.residentKey),t.authenticatorSelection.userVerification&&(r.userVerification=t.authenticatorSelection.userVerification),s.authenticatorSelection=r}return!((o=t.excludeCredentials)===null||o===void 0)&&o.length&&(s.excludeCredentials=t.excludeCredentials.map(r=>this.toPublicKeyCredentialDescriptor(r))),s}toPublicKeyCredentialRequestOptions(t){var o;if(typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const s={challenge:this.base64URLStringToBuffer(t.challenge)};return t.rpId!==void 0&&(s.rpId=t.rpId),t.timeout!==void 0&&(s.timeout=t.timeout),t.userVerification!==void 0&&(s.userVerification=t.userVerification),t.extensions!==void 0&&(s.extensions=t.extensions),!((o=t.allowCredentials)===null||o===void 0)&&o.length&&(s.allowCredentials=t.allowCredentials.map(r=>this.toPublicKeyCredentialDescriptor(r))),s}identifyAuthenticationError({error:t,options:o}){const{publicKey:s}=o;if(!s)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(o.signal instanceof AbortSignal)return new Pe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Pe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(Qc(r)){if(s.rpId!==r)return new Pe({message:`The RP ID "${s.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Pe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Pe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}isPublicKeyCredentialRequestOptionsJSON(t){return typeof t=="object"&&t!==null&&"challenge"in t}isWebAuthnAvailable(){return this.capabilities.webauthn}isSignalAllAcceptedCredentialsAvailable(){return!!this.capabilities.signalAllAcceptedCredentials}isSignalCurrentUserDetailsAvailable(){return!!this.capabilities.signalCurrentUserDetails}isSignalUnknownCredentialAvailable(){return!!this.capabilities.signalUnknownCredential}isConditionalGetAvailable(){return!!this.capabilities.conditionalGet}isConditionalCreateAvailable(){return!!this.capabilities.conditionalCreate}isHybridTransportAvailable(){return!!this.capabilities.hybridTransport}destroy(){Ae.abort()}}function zs(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
2
|
-
`,t)}class Pe extends Error{constructor({message:t,code:o,cause:s,name:r}){super(t),this.name=r??s.name,this.code=o}}function Qc(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(e,t,o,s){function r(i){return i instanceof o?i:new o(function(n){n(i)})}return new(o||(o=Promise))(function(i,n){function l(b){try{p(s.next(b))}catch(f){n(f)}}function d(b){try{p(s.throw(b))}catch(f){n(f)}}function p(b){b.done?i(b.value):r(b.value).then(l,d)}p((s=s.apply(e,t||[])).next())})}class pr{constructor(){this.data=new Map}static get Instance(){return pr.instance||(pr.instance=new pr),pr.instance}get(t){return this.data.get(t)}set(t,o){this.data.set(t,o)}setConfig(t){this.data.set("config",t)}getConfig(){return this.data.get("config")}getApiBaseUrl(){const t=this.getConfig().domain;return t.startsWith("localhost")?`http://${t}`:`https://${t}`}remove(t){this.data.delete(t)}clear(){this.data.clear()}}const kt=pr.Instance;class Q extends Error{constructor(t,o,s){super(o),this.name="LoginflowError",this.code=t,this.details=s}}class ue{constructor(){}static get Instance(){return ue.instance||(ue.instance=new ue),ue.instance}request(t){return F(this,arguments,void 0,function*(o,s={}){const r=kt.getConfig(),i=`${kt.getApiBaseUrl()}${o}`,n=5e4,l=new AbortController,d=setTimeout(()=>l.abort(),n);try{const p=yield fetch(i,Object.assign(Object.assign({},s),{signal:l.signal,headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},r.apiKey&&{Authorization:`Bearer ${r.apiKey}`}),r.headers),s.headers)}));if(clearTimeout(d),!p.ok){const b=yield p.json().catch(()=>({}));throw new Q(b.code||"API_ERROR",b.message||`HTTP ${p.status}: ${p.statusText}`,b.details)}return yield p.json()}catch(p){throw clearTimeout(d),p instanceof Q?p:p instanceof Error?p.name==="AbortError"?new Q("TIMEOUT","Request timeout"):new Q("NETWORK_ERROR",p.message):new Q("UNKNOWN_ERROR","An unknown error occurred")}})}post(t,o){return F(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"POST",body:o?JSON.stringify(o):void 0})})}get(t){return F(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"GET"})})}}class ht{constructor(){this.AUTH_SESSION_STORAGE_KEY="saasbase_auth_session",this.refreshTimeoutId=null,this.refreshPromise=null}static get Instance(){return ht.instance||(ht.instance=new ht),ht.instance}setCurrentSession(t){localStorage.setItem(this.AUTH_SESSION_STORAGE_KEY,JSON.stringify(t))}getCurrentSession(){const t=this.getStoredSession();return t?this.isSessionExpired(t)?(this.clearSession(),null):(this.shouldRefreshToken(t)&&this.triggerBackgroundRefresh(t),t):null}isAuthenticated(){return this.getCurrentSession()!==null}getAuthenticatedUser(){const t=this.getCurrentSession();if(!t||!t.id_token)return null;const o=this.decodeJWT(t.id_token);return o||null}cleanup(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshPromise=null}clearSession(){localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY)}isSessionExpired(t){return!t||!t.expires_at?!0:Date.now()>=t.expires_at}cleanExpiredSession(){const t=this.getStoredSession();t&&this.isSessionExpired(t)&&this.clearSession()}getStoredSession(){const t=localStorage.getItem(this.AUTH_SESSION_STORAGE_KEY);if(!t)return null;try{return JSON.parse(t)}catch{return this.clearSession(),null}}decodeJWT(t){try{const s=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(s).split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(r)}catch{return null}}shouldRefreshToken(t){if(!t||!t.expires_at||!t.refresh_token)return!1;const o=Date.now(),s=t.expires_at,r=t.expires_in||3600,i=o+r*1e3*.2;return s<=i}scheduleTokenRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null);const t=this.getCurrentSession();if(!t||!t.expires_at||!t.refresh_token)return;const o=Date.now(),s=t.expires_at,r=t.expires_in||3600,i=s-o-r*1e3*.2;i>0&&(this.refreshTimeoutId=setTimeout(()=>{this.triggerBackgroundRefresh(t)},i))}triggerBackgroundRefresh(t){this.refreshPromise||t.refresh_token&&(this.refreshPromise=this.refreshTokens(t.refresh_token).then(o=>(o&&(this.setCurrentSession(o),this.scheduleTokenRefresh()),o)).catch(o=>(console.error("Background token refresh failed:",o),null)).finally(()=>{this.refreshPromise=null}))}refreshTokens(t){return F(this,void 0,void 0,function*(){try{const o=yield ue.Instance.post("/login-flow/v1/refresh",{refresh_token:t});return{id_token:o.id_token,access_token:o.access_token,refresh_token:o.refresh_token,expires_in:o.expires_in,expires_at:Date.now()+o.expires_in*1e3}}catch(o){return o instanceof Q?console.error("Token refresh failed:",o.message,o.details):console.error("Token refresh failed:",o),this.clearSession(),null}})}}class nl{constructor(t=sessionStorage){this.storage=t,this.FLOW_STATE_KEY="saasbase_loginflow_state",this.FLOW_EXPIRY_MS=540*1e3}getFlowState(){const t=this.storage.getItem(this.FLOW_STATE_KEY);if(!t)return null;try{const o=JSON.parse(t);return this.isExpired(o)?(this.clearFlowState(),null):o}catch{return this.clearFlowState(),null}}saveFlowState(t,o,s){const r=Date.now(),i=this.getFlowState(),n={flowType:t,flow_id:o,state:s.state,startedAt:(i==null?void 0:i.startedAt)||r,lastUpdatedAt:r,render_spec:s.render_spec};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(n))}restoreFromHistory(t){const o={flowType:t.flowType,flow_id:t.flow_id,state:t.state,startedAt:t.timestamp,lastUpdatedAt:t.timestamp,render_spec:void 0};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(o))}clearFlowState(){this.storage.removeItem(this.FLOW_STATE_KEY)}isExpired(t){return Date.now()-t.lastUpdatedAt>this.FLOW_EXPIRY_MS}get expiryMs(){return this.FLOW_EXPIRY_MS}}class Lo{static detect(t,o=window.location){const s=o.pathname.toLowerCase();return s.includes(t.signinUrl)?"signin":s.includes(t.signupUrl)?"signup":"custom"}}class al{constructor(){this.listeners=new Map}on(t,o){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(o)}off(t,o){var s;(s=this.listeners.get(t))===null||s===void 0||s.delete(o)}emit(t,o){const s=this.listeners.get(t);s&&s.forEach(r=>{try{r(o)}catch(i){console.error(`[FlowEventBus] Error in event handler for ${t}:`,i)}})}clear(){this.listeners.clear()}clearEvent(t){this.listeners.delete(t)}}class Kc{getNavigationType(){const t=performance.getEntriesByType("navigation");if(t.length>0)return t[0].type;const o=performance.navigation;if(o)switch(o.type){case 1:return"reload";case 2:return"back_forward";default:return"navigate"}return"navigate"}}class zi{constructor(t,o,s=window.location,r,i){this.httpClient=ue.Instance,this.redirectTimeoutId=null,this.eventHandlers=new Map([["switch_to_signin",this.handleSwitchToSignin.bind(this)],["switch_to_signup",this.handleSwitchToSignup.bind(this)]]);const n=kt.getConfig();if(!n.domain)throw new Q("CONFIG_ERROR","Domain is required");if(!n.appId)throw new Q("CONFIG_ERROR","App ID is required");if(!n.clientSecret)throw new Q("CONFIG_ERROR","Client Secret is required");this.flowId=t,this.location=s,this.flowStateManager=r||new nl,this.flowEventBus=o||new al,this.navigationTypeDetector=i||new Kc,ht.Instance.cleanExpiredSession(),ht.Instance.scheduleTokenRefresh()}static init(t,o,s,r,i){return F(this,void 0,void 0,function*(){const n=new zi(t,o,s,r,i),l=yield n.initializeFlowInternal();return{sdk:n,flowType:l.flowType,isResumed:l.isResumed,state:l.state,render_spec:l.render_spec,auth_result:l.auth_result}})}startFlow(t,o){return F(this,void 0,void 0,function*(){if(!o.app_id)throw new Q("VALIDATION_ERROR","Client ID is required");const s=`/v1/auth-flow/${t}/start`;return this.executeFlowRequest(()=>this.httpClient.post(s,o),"START_FLOW_ERROR","Failed to start flow")})}resumeFlow(t){return F(this,void 0,void 0,function*(){const o=`/v1/auth-flow/${t}/resume`;return this.executeFlowRequest(()=>this.httpClient.post(o),"RESUME_FLOW_ERROR","Failed to resume flow")})}processEvent(t,o){return F(this,void 0,void 0,function*(){if(!t.event)throw new Q("VALIDATION_ERROR","Event type is required");const s=this.eventHandlers.get(t.event);return s?yield s():yield this.processServerEvent(t,o)})}executeFlowRequest(t,o,s,r){return F(this,void 0,void 0,function*(){try{const i=yield t();return r&&(yield r(i)),this.processAuthResult(i.auth_result),i.redirection&&this.redirect(i.redirection),i}catch(i){throw i instanceof Q?i:new Q(o,s,i instanceof Error?{originalError:i.message,stack:i.stack}:i)}})}processServerEvent(t,o){return F(this,void 0,void 0,function*(){let s=this.flowStateManager.getFlowState();if(!s&&(console.warn("Flow state expired, restarting flow before processing event"),yield this.initializeFlowInternal(),s=this.flowStateManager.getFlowState(),!s))throw new Q("FLOW_RESTART_ERROR","Failed to restart flow - no flow state after initialization");const r=s.state,i=`/v1/auth-flow/${s.flowType}/events`,n=yield this.executeFlowRequest(()=>this.httpClient.post(i,t),"PROCESS_EVENT_ERROR","Failed to process event",o);if(!n.auth_result){this.flowStateManager.saveFlowState(s.flowType,s.flow_id,n);const l=this.flowStateManager.getFlowState();if(l){const d=r!==n.state;this.flowEventBus.emit("flow:updated",{flowState:l,isNewStep:d})}}return n})}processAuthResult(t){if(t){const o={id_token:t.id_token,access_token:t.access_token,refresh_token:t.refresh_token,expires_in:t.expires_in,expires_at:Date.now()+t.expires_in*1e3};ht.Instance.setCurrentSession(o),ht.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState(),this.reloadPage()}}initializeFlowInternal(){return F(this,void 0,void 0,function*(){const t=kt.getConfig(),o=Lo.detect(t,this.location);this.validateFlowType(o);const s=this.flowStateManager.getFlowState();return this.shouldResumeFlow(s,o)?yield this.resumeExistingFlow(s,o):yield this.startNewFlow(o)})}validateFlowType(t){if(t==="custom"&&!this.flowId)throw new Q("FLOW_ID_ERROR","Flow ID is required for custom flows")}shouldResumeFlow(t,o){if(!t)return!1;const r=new URLSearchParams(this.location.search).get("resume")==="true",i=this.navigationTypeDetector.getNavigationType();if(i==="navigate"&&!r)return this.flowStateManager.clearFlowState(),console.log(`Fresh navigation detected (type: ${i}), starting new flow`),!1;if(t.flowType!==o)return this.flowStateManager.clearFlowState(),console.log(`Flow type changed from ${t.flowType} to ${o}, starting new flow, flow_id: ${this.flowId}`),!1;if(o==="custom"&&t.flow_id!==this.flowId)return this.flowStateManager.clearFlowState(),console.log(`Custom flow ID changed, starting new flow, flow_id: ${this.flowId}`),!1;const n=r?"explicit resume=true":`navigation type: ${i}`;return console.log(`Resuming existing flow (${n})`),!0}resumeExistingFlow(t,o){return F(this,void 0,void 0,function*(){try{const s=yield this.resumeFlow(o);if(!s.auth_result){this.flowStateManager.saveFlowState(o,t.flow_id,s);const r=this.flowStateManager.getFlowState();r&&this.flowEventBus.emit("flow:resumed",{flowState:r})}return{flowType:o,isResumed:!0,state:s.state,render_spec:s.render_spec,auth_result:s.auth_result}}catch(s){return this.flowStateManager.clearFlowState(),console.warn("Failed to resume flow, starting fresh:",s),yield this.startNewFlow(o)}})}startNewFlow(t){return F(this,void 0,void 0,function*(){const o=kt.getConfig(),s={app_id:o.appId,client_secret:o.clientSecret,origin_url:this.location.href,signin_url:o.signinUrl,signup_url:o.signupUrl,locale:o.locale||"en",flow_id:this.determineFlowId(t)},r=yield this.startFlow(t,s);if(!r.auth_result){this.flowStateManager.saveFlowState(t,s.flow_id,r);const i=this.flowStateManager.getFlowState();i&&this.flowEventBus.emit("flow:started",{flowState:i})}return{flowType:t,isResumed:!1,state:r.state,render_spec:r.render_spec,auth_result:r.auth_result}})}determineFlowId(t){switch(t){case"signin":return this.flowId||"signin-flow";case"signup":return this.flowId||"signup-flow";case"custom":if(!this.flowId)throw new Q("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}handleSwitchToSignin(){return F(this,void 0,void 0,function*(){const t=kt.getConfig();return this.redirect({url:t.signinUrl,redirect_delay:0}),{state:"End"}})}handleSwitchToSignup(){return F(this,void 0,void 0,function*(){const t=kt.getConfig();return this.redirect({url:t.signupUrl,redirect_delay:0}),{state:"End"}})}redirect(t){t.url&&(this.redirectTimeoutId!==null&&(console.log("Clearing existing redirect timeout before scheduling new redirect to:",t.url),clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.redirectTimeoutId=setTimeout(()=>{this.location.href=t.url},t.redirect_delay*1e3))}reloadPage(){setTimeout(()=>{this.location.reload()},0)}getEventBus(){return this.flowEventBus}cleanup(){this.redirectTimeoutId&&(clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.flowEventBus.clear()}}class Yc{constructor(t){this.delayMs=t,this.timerId=null}debounce(t){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{t(),this.timerId=null},this.delayMs)}cancel(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}isPending(){return this.timerId!==null}}class Zc{pushState(t,o,s){history.pushState(t,o,s)}replaceState(t,o,s){history.replaceState(t,o,s)}get state(){return history.state}}class Xc{constructor(t,o,s=!1,r=window.location,i,n){this.popstateListener=null,this.pageshowListener=null,this.isProcessing=!1,this.isHandlingNavigationEvent=!1,this.onFlowRestartNeeded=null,this.onFlowRestartNeeded=o,this.skipHistoryTracking=s,this.debouncer=new Yc(200),this.location=r,this.flowStateManager=i||new nl,this.historyAdapter=n||new Zc,this.subscribeToFlowEvents(t),this.initializeListener()}subscribeToFlowEvents(t){t.on("flow:started",this.handleFlowStart.bind(this)),t.on("flow:updated",this.handleFlowUpdate.bind(this)),t.on("flow:resumed",this.handleFlowResume.bind(this))}initializeListener(){this.popstateListener=t=>{console.log("[NavigationManager] popstate event received"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Debounce timeout fired, handling popstate"),this.handlePopState(t)})},this.pageshowListener=t=>{t.persisted&&(console.log("[NavigationManager] Page restored from bfcache"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Handling bfcache restoration"),this.handleBfcacheRestoration()}))},window.addEventListener("popstate",this.popstateListener),window.addEventListener("pageshow",this.pageshowListener)}handlePopState(t){return F(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing popstate, skipping");return}console.log("[NavigationManager] Starting popstate processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const o=t.state,s=this.flowStateManager.getFlowState(),r=kt.getConfig(),i=Lo.detect(r,this.location);if(o&&this.restoreHistoryStateToSession(o),this.shouldRestartFlow(o,s,i)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from history")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}handleBfcacheRestoration(){return F(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing bfcache restoration, skipping");return}console.log("[NavigationManager] Starting bfcache restoration processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const t=this.historyAdapter.state,o=this.flowStateManager.getFlowState(),s=kt.getConfig(),r=Lo.detect(s,this.location);if(t&&this.restoreHistoryStateToSession(t),this.shouldRestartFlow(t,o,r)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from bfcache")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}restoreHistoryStateToSession(t){console.log("[NavigationManager] Restoring history state to session storage:",t),this.flowStateManager.restoreFromHistory(t)}shouldRestartFlow(t,o,s){return t&&t.flowType!==s?(console.log("[NavigationManager] Flow type changed via navigation:",t.flowType,"→",s),this.flowStateManager.clearFlowState(),!0):t?Date.now()-t.timestamp>this.flowStateManager.expiryMs?(console.log("[NavigationManager] History state expired, clearing and restarting flow"),this.flowStateManager.clearFlowState(),!0):(console.log("[NavigationManager] Valid history state restored, triggering restart to resume flow"),!0):(console.log("[NavigationManager] No history state, skipping"),!1)}triggerFlowRestart(){return F(this,void 0,void 0,function*(){this.onFlowRestartNeeded&&(yield this.onFlowRestartNeeded())})}createHistoryState(t){return{flowType:t.flowType,flow_id:t.flow_id,state:t.state,timestamp:Date.now()}}updateBrowserHistory(t,o){if(this.skipHistoryTracking){console.log("[NavigationManager] Skipping history tracking (created from navigation)");return}const s=this.createHistoryState(t);try{o==="push"?(this.historyAdapter.pushState(s,"",this.location.href),console.log("[NavigationManager] Pushed state to history")):(this.historyAdapter.replaceState(s,"",this.location.href),console.log("[NavigationManager] Replaced state in history"))}catch(r){console.error("[NavigationManager] Failed to update history:",r)}}handleFlowStart(t){this.updateBrowserHistory(t.flowState,"replace")}handleFlowUpdate(t){const o=this.isHandlingNavigationEvent||!t.isNewStep?"replace":"push";this.updateBrowserHistory(t.flowState,o)}handleFlowResume(t){this.updateBrowserHistory(t.flowState,"replace")}destroy(){this.debouncer.cancel(),this.popstateListener&&(window.removeEventListener("popstate",this.popstateListener),this.popstateListener=null),this.pageshowListener&&(window.removeEventListener("pageshow",this.pageshowListener),this.pageshowListener=null),this.onFlowRestartNeeded=null}}let Ae=new AbortController;class Jc{constructor(){this.httpClient=ue.Instance,this.capabilities={webauthn:!1},this.capabilitiesDetected=!1}detectCapabilities(){return F(this,void 0,void 0,function*(){if(!this.capabilitiesDetected)try{if(typeof window.PublicKeyCredential=="function"?this.capabilities.webauthn=!0:this.capabilities.webauthn=!1,typeof PublicKeyCredential.getClientCapabilities=="function"){const t=yield PublicKeyCredential.getClientCapabilities();this.capabilities=Object.assign(Object.assign({},this.capabilities),t);return}typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(this.capabilities.userVerifyingPlatformAuthenticator=yield PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()),(PublicKeyCredential==null?void 0:PublicKeyCredential.isConditionalMediationAvailable)!==void 0&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"?this.capabilities.conditionalGet=yield PublicKeyCredential.isConditionalMediationAvailable():this.capabilities.conditionalGet=!1}finally{this.capabilitiesDetected=!0}})}fetchPublicKeyCredentialRequestOptions(t,o){return F(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/login/options",{conditional:o,flow_type:t})}catch(s){return console.error("error",s),null}})}fetchPublicKeyCredentialCreationOptions(t,o){return F(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/register/options",{conditional:o,flow_type:t})}catch(s){return console.error("error",s),null}})}startRegistration(t,o){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Ae.abort(),Ae=new AbortController;const s=this.toPublicKeyCredentialCreationOptions(t),r={signal:Ae.signal,publicKey:s};if(o){if(!this.isConditionalCreateAvailable())return console.error("Conditional create mediation not supported in this browser"),null;r.mediation="conditional"}try{const i=yield navigator.credentials.create(r);if(!i){console.error("no credential returned by authenticator");return}const{id:n,rawId:l,response:d,type:p}=i;let b;typeof d.getTransports=="function"&&(b=d.getTransports());let f;if(typeof d.getPublicKeyAlgorithm=="function")try{f=d.getPublicKeyAlgorithm()}catch(_){zs("getPublicKeyAlgorithm()",_)}let y;if(typeof d.getPublicKey=="function")try{const _=d.getPublicKey();_!==null&&(y=this.bufferToBase64URLString(_))}catch(_){zs("getPublicKey()",_)}let x;if(typeof d.getAuthenticatorData=="function")try{x=this.bufferToBase64URLString(d.getAuthenticatorData())}catch(_){zs("getAuthenticatorData()",_)}return{id:n,rawId:this.bufferToBase64URLString(l),response:{attestationObject:this.bufferToBase64URLString(d.attestationObject),clientDataJSON:this.bufferToBase64URLString(d.clientDataJSON),transports:b,publicKeyAlgorithm:f,publicKey:y,authenticatorData:x},type:p,clientExtensionResults:i.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(i.authenticatorAttachment)}}catch(i){const n=this.identifyAuthenticationError({error:i,options:r});return n instanceof Pe?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",i),null}})}startAuthentication(t,o){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialRequestOptionsJSON provided"),null;if(!this.isWebAuthnAvailable())return console.error("WebAuthn not supported in this browser"),null;Ae.abort(),Ae=new AbortController;const s=this.toPublicKeyCredentialRequestOptions(t),r={signal:Ae.signal,publicKey:s};if(o){if(!this.isConditionalGetAvailable())return console.error("Conditional mediation not supported in this browser"),null;r.mediation="conditional",r.publicKey&&(r.publicKey.allowCredentials=[])}try{const i=yield navigator.credentials.get(r);return this.toPublicKeyCredentialJSON(i)}catch(i){const n=this.identifyAuthenticationError({error:i,options:r});return n instanceof Pe?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",i),null}})}signalUnknownCredential(t,o){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalUnknownCredentialAvailable())try{yield PublicKeyCredential.signalUnknownCredential({rpId:t,credentialId:o})}catch(s){console.error("Failed to signal unknown credential:",s)}else console.warn("signalUnknownCredential not supported in this browser")})}signalCurrentUserDetails(t){return F(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalCurrentUserDetailsAvailable())try{yield PublicKeyCredential.signalCurrentUserDetails(t)}catch(o){console.error("Failed to signal current user details:",o)}else console.warn("signalCurrentUserDetails not supported. Ask user to update manually.")})}toPublicKeyCredentialDescriptor(t){const{id:o}=t;return Object.assign(Object.assign({},t),{id:this.base64URLStringToBuffer(o),type:t.type,transports:t.transports})}toAuthenticatorAttachment(t){const o=["cross-platform","platform"];if(t&&!(o.indexOf(t)<0))return t}bufferToBase64URLString(t){const o=new Uint8Array(t);let s="";for(const i of o)s+=String.fromCharCode(i);return btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}base64URLStringToBuffer(t){const o=t.replace(/-/g,"+").replace(/_/g,"/"),s=(4-o.length%4)%4,r=o.padEnd(o.length+s,"="),i=atob(r),n=new ArrayBuffer(i.length),l=new Uint8Array(n);for(let d=0;d<i.length;d++)l[d]=i.charCodeAt(d);return n}toPublicKeyCredentialJSON(t){if(typeof t.toJSON=="function")return t.toJSON();const o=t.response;return{id:t.id,type:t.type,rawId:this.bufferToBase64URLString(t.rawId),authenticatorAttachment:this.toAuthenticatorAttachment(t.authenticatorAttachment),clientExtensionResults:t==null?void 0:t.getClientExtensionResults(),response:{clientDataJSON:this.bufferToBase64URLString(o.clientDataJSON),authenticatorData:this.bufferToBase64URLString(o.authenticatorData),signature:this.bufferToBase64URLString(o.signature),userHandle:o.userHandle?this.bufferToBase64URLString(o.userHandle):void 0}}}toPublicKeyCredentialCreationOptions(t){var o;if(typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const s={challenge:this.base64URLStringToBuffer(t.challenge),rp:{id:t.rp.id,name:t.rp.name},user:{displayName:t.user.displayName,id:this.base64URLStringToBuffer(t.user.id),name:t.user.name},pubKeyCredParams:t.pubKeyCredParams.map(r=>({alg:r.alg,type:r.type})),timeout:t.timeout};if(t.attestation&&(s.attestation=t.attestation),t.extensions!==void 0&&(s.extensions=t.extensions),t.authenticatorSelection){const r={};t.authenticatorSelection.authenticatorAttachment&&(r.authenticatorAttachment=t.authenticatorSelection.authenticatorAttachment),t.authenticatorSelection.requireResidentKey&&(r.requireResidentKey=t.authenticatorSelection.requireResidentKey),t.authenticatorSelection.residentKey&&(r.residentKey=t.authenticatorSelection.residentKey),t.authenticatorSelection.userVerification&&(r.userVerification=t.authenticatorSelection.userVerification),s.authenticatorSelection=r}return!((o=t.excludeCredentials)===null||o===void 0)&&o.length&&(s.excludeCredentials=t.excludeCredentials.map(r=>this.toPublicKeyCredentialDescriptor(r))),s}toPublicKeyCredentialRequestOptions(t){var o;if(typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const s={challenge:this.base64URLStringToBuffer(t.challenge)};return t.rpId!==void 0&&(s.rpId=t.rpId),t.timeout!==void 0&&(s.timeout=t.timeout),t.userVerification!==void 0&&(s.userVerification=t.userVerification),t.extensions!==void 0&&(s.extensions=t.extensions),!((o=t.allowCredentials)===null||o===void 0)&&o.length&&(s.allowCredentials=t.allowCredentials.map(r=>this.toPublicKeyCredentialDescriptor(r))),s}identifyAuthenticationError({error:t,options:o}){const{publicKey:s}=o;if(!s)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(o.signal instanceof AbortSignal)return new Pe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Pe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(Qc(r)){if(s.rpId!==r)return new Pe({message:`The RP ID "${s.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Pe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Pe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}isPublicKeyCredentialRequestOptionsJSON(t){return typeof t=="object"&&t!==null&&"challenge"in t}isWebAuthnAvailable(){return this.capabilities.webauthn}isSignalAllAcceptedCredentialsAvailable(){return!!this.capabilities.signalAllAcceptedCredentials}isSignalCurrentUserDetailsAvailable(){return!!this.capabilities.signalCurrentUserDetails}isSignalUnknownCredentialAvailable(){return!!this.capabilities.signalUnknownCredential}isConditionalGetAvailable(){return!!this.capabilities.conditionalGet}isConditionalCreateAvailable(){return!!this.capabilities.conditionalCreate}isHybridTransportAvailable(){return!!this.capabilities.hybridTransport}destroy(){Ae.abort()}}function zs(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
2
|
+
`,t)}class Pe extends Error{constructor({message:t,code:o,cause:s,name:r}){super(t),this.name=r??s.name,this.code=o}}function Qc(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class hr{constructor(){this.configured=!1,this.loginflow=null,this.navigationManager=null,this.flowEventBus=null,this.webauthnService=null}static get Instance(){return hr.instance||(hr.instance=new hr),hr.instance}ensureConfigured(){if(!this.configured)throw new Q("NOT_CONFIGURED","Auth.configure() must be called before using Auth methods")}ensureLoginflowInitialized(){if(!this.loginflow)throw new Q("LOGINFLOW_NOT_INITIALIZED","Call Auth.startLoginflow() first")}startLoginflowInternal(t){return F(this,arguments,void 0,function*(o,s=!1){this.ensureConfigured(),this.webauthnService&&(console.log("[AuthService] Cleaning up and aborting ongoing webauthn flows"),this.webauthnService.destroy(),this.webauthnService=null),this.loginflow&&(console.log("[AuthService] Cleaning up old loginflow instance"),this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(console.log("[AuthService] Cleaning up old navigation manager instance"),this.navigationManager.destroy(),this.navigationManager=null),this.webauthnService=new Jc,this.webauthnService.detectCapabilities(),this.flowEventBus=new al,this.navigationManager=new Xc(this.flowEventBus,()=>F(this,void 0,void 0,function*(){console.log("[AuthService] Navigation restart triggered, restarting loginflow"),yield this.startLoginflowInternal(void 0,!1)}),s);const r=yield zi.init(o,this.flowEventBus),i=kt.getConfig();this.startPasskeyAuthentication(r.flowType,!0),this.loginflow=r.sdk;const n={flowType:r.flowType,isResumed:r.isResumed,state:r.state,render_spec:r.render_spec,auth_result:r.auth_result};return i.onFlowStateChange&&i.onFlowStateChange({eventType:r.isResumed?"flow_resumed":"flow_started",flowType:r.flowType,state:r.state,render_spec:r.render_spec,auth_result:r.auth_result,isResumed:r.isResumed}),n})}configure(t){if(!t.domain||!t.appId||!t.clientSecret)throw new Q("CONFIG_ERROR","domain, appId, and clientSecret are required");kt.setConfig(t),this.configured=!0}isAuthenticated(){return this.ensureConfigured(),ht.Instance.isAuthenticated()}getCurrentSession(){return this.ensureConfigured(),ht.Instance.getCurrentSession()}getAuthenticatedUser(){return this.ensureConfigured(),ht.Instance.getAuthenticatedUser()}startLoginflow(t){return F(this,void 0,void 0,function*(){return this.startLoginflowInternal(t,!1)})}processLoginflowEvent(t){return F(this,void 0,void 0,function*(){var o,s;this.ensureConfigured(),this.ensureLoginflowInitialized();const r=kt.getConfig(),i=Lo.detect(r,location);if(t.event==="signin_with_passkey"&&!(!((o=t.data)===null||o===void 0)&&o.credential_request)){const l=yield this.getPasskeyCredential(i,!1);if(!l||!l.cred)return console.error("no credential returned by browser"),{state:""};t.data={credential_request:l.cred}}if(t.event==="register_passkey"&&!(!((s=t.data)===null||s===void 0)&&s.conditional)){console.log("attempt to register a passkey");const l=yield this.createPasskeyCredential(i,!1);if(!l)return console.error("no credential created by browser"),{state:""};t.data={credential_creation_response:l,conditional:!1}}const n=yield this.loginflow.processEvent(t,l=>F(this,void 0,void 0,function*(){var d;if(!((d=l.data)===null||d===void 0)&&d.conditional_create_enabled){console.log("attempt to register a passkey conditionally");const p=yield this.registerPasskey(i,!0);p&&(p.render_spec=void 0,l.render_spec=void 0)}}));if(console.log("render spec",n.render_spec),r.onFlowStateChange){const l=sessionStorage.getItem("saasbase_loginflow_state");let d="custom";if(l)try{d=JSON.parse(l).flowType}catch(p){console.error("Failed to parse flow state:",p)}r.onFlowStateChange({eventType:"flow_updated",flowType:d,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result})}return n})}getPasskeyCredential(t,o){return F(this,void 0,void 0,function*(){var s,r;const i=yield(s=this.webauthnService)===null||s===void 0?void 0:s.fetchPublicKeyCredentialRequestOptions(t,o);if(!i)return console.error("failed to fetch public key request options"),null;try{return{cred:yield(r=this.webauthnService)===null||r===void 0?void 0:r.startAuthentication(i,o),options:i}}catch(n){return console.error("error starting authentication",n),null}})}startPasskeyAuthentication(t){return F(this,arguments,void 0,function*(o,s=!1){var r,i;const n=yield this.getPasskeyCredential(o,s);if(!n||!n.cred){console.error("no credential found");return}const{cred:l,options:d}=n;try{((r=(yield this.processLoginflowEvent({event:"signin_with_passkey",data:{credential_request:l}})).data)===null||r===void 0?void 0:r.error)==="CredentialNotFound"&&(d.rpId&&l.id?(i=this.webauthnService)===null||i===void 0||i.signalUnknownCredential(d.rpId,l.id):console.log("missing rpId or credential id for signalUnknownCredential"))}catch(p){console.error("failed to signin with passkey",p)}})}createPasskeyCredential(t,o){return F(this,void 0,void 0,function*(){var s,r;try{const i=yield(s=this.webauthnService)===null||s===void 0?void 0:s.fetchPublicKeyCredentialCreationOptions(t,o);if(!i){console.warn("no credential creation option returned by webauthn service"),console.log("skipping conditional passkey registration...");return}return(r=this.webauthnService)===null||r===void 0?void 0:r.startRegistration(i,o)}catch(i){console.log("error",i)}})}registerPasskey(t){return F(this,arguments,void 0,function*(o,s=!1){try{const r=yield this.createPasskeyCredential(o,s),i=yield this.processLoginflowEvent({event:"register_passkey",data:{credential_creation_response:r,conditional:s}});return console.log("passkey creation res",i),i}catch(r){console.log("error",r)}})}signOut(){this.ensureConfigured(),ht.Instance.clearSession(),ht.Instance.cleanup(),this.loginflow&&(this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(this.navigationManager.destroy(),this.navigationManager=null),this.flowEventBus&&(this.flowEventBus.clear(),this.flowEventBus=null),window.location.reload(),console.log("Refreshed the page to clear any in-memory state")}}const ct=hr.Instance;/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* @license
|
|
8
8
|
* Copyright 2017 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
|
-
*/const{is:rd,defineProperty:od,getOwnPropertyDescriptor:sd,getOwnPropertyNames:id,getOwnPropertySymbols:nd,getPrototypeOf:ad}=Object,
|
|
10
|
+
*/const{is:rd,defineProperty:od,getOwnPropertyDescriptor:sd,getOwnPropertyNames:id,getOwnPropertySymbols:nd,getPrototypeOf:ad}=Object,he=globalThis,Nn=he.trustedTypes,ld=Nn?Nn.emptyScript:"",js=he.reactiveElementPolyfillSupport,Qr=(e,t)=>e,Do={toAttribute(e,t){switch(t){case Boolean:e=e?ld:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Ni=(e,t)=>!rd(e,t),Mn={attribute:!0,type:String,converter:Do,reflect:!1,useDefault:!1,hasChanged:Ni};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),he.litPropertyMetadata??(he.litPropertyMetadata=new WeakMap);let ur=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Mn){if(o.state&&(o.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((o=Object.create(o)).wrapped=!0),this.elementProperties.set(t,o),!o.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,o);r!==void 0&&od(this.prototype,t,r)}}static getPropertyDescriptor(t,o,s){const{get:r,set:i}=sd(this.prototype,t)??{get(){return this[o]},set(n){this[o]=n}};return{get:r,set(n){const l=r==null?void 0:r.call(this);i==null||i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Mn}static _$Ei(){if(this.hasOwnProperty(Qr("elementProperties")))return;const t=ad(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Qr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qr("properties"))){const o=this.properties,s=[...id(o),...nd(o)];for(const r of s)this.createProperty(r,o[r])}const t=this[Symbol.metadata];if(t!==null){const o=litPropertyMetadata.get(t);if(o!==void 0)for(const[s,r]of o)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[o,s]of this.elementProperties){const r=this._$Eu(o,s);r!==void 0&&this._$Eh.set(r,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)o.unshift(Un(r))}else t!==void 0&&o.push(Un(t));return o}static _$Eu(t,o){const s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((o=>this.enableUpdating=o)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((o=>o(this)))}addController(t){var o;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)==null||o.call(t))}removeController(t){var o;(o=this._$EO)==null||o.delete(t)}_$E_(){const t=new Map,o=this.constructor.elementProperties;for(const s of o.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ed(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach((o=>{var s;return(s=o.hostConnected)==null?void 0:s.call(o)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((o=>{var s;return(s=o.hostDisconnected)==null?void 0:s.call(o)}))}attributeChangedCallback(t,o,s){this._$AK(t,s)}_$ET(t,o){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const n=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:Do).toAttribute(o,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,o){var i,n;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const l=s.getPropertyOptions(r),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((i=l.converter)==null?void 0:i.fromAttribute)!==void 0?l.converter:Do;this._$Em=r;const p=d.fromAttribute(o,l.type);this[r]=p??((n=this._$Ej)==null?void 0:n.get(r))??p,this._$Em=null}}requestUpdate(t,o,s){var r;if(t!==void 0){const i=this.constructor,n=this[t];if(s??(s=i.getPropertyOptions(t)),!((s.hasChanged??Ni)(n,o)||s.useDefault&&s.reflect&&n===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,o,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??o??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(o=void 0),this._$AL.set(t,o)),r===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r){const{wrapped:l}=n,d=this[i];l!==!0||this._$AL.has(i)||d===void 0||this.C(i,void 0,n,d)}}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(s=this._$EO)==null||s.forEach((r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)})),this.update(o)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(o)}willUpdate(t){}_$AE(t){var o;(o=this._$EO)==null||o.forEach((s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((o=>this._$ET(o,this[o])))),this._$EM()}updated(t){}firstUpdated(t){}};ur.elementStyles=[],ur.shadowRootOptions={mode:"open"},ur[Qr("elementProperties")]=new Map,ur[Qr("finalized")]=new Map,js==null||js({ReactiveElement:ur}),(he.reactiveElementVersions??(he.reactiveElementVersions=[])).push("2.1.1");/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright 2017 Google LLC
|
|
13
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
14
|
*/const to=globalThis,zo=to.trustedTypes,Fn=zo?zo.createPolicy("lit-html",{createHTML:e=>e}):void 0,dl="$lit$",de=`lit$${Math.random().toFixed(9).slice(2)}$`,ul="?"+de,cd=`<${ul}>`,ze=document,ro=()=>ze.createComment(""),oo=e=>e===null||typeof e!="object"&&typeof e!="function",Mi=Array.isArray,dd=e=>Mi(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Us=`[
|
|
15
15
|
\f\r]`,Wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bn=/-->/g,qn=/>/g,Ie=RegExp(`>|${Us}(?:([^\\s"'>=/]+)(${Us}*=${Us}*(?:[^
|
|
16
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Hn=/"/g,
|
|
16
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Hn=/"/g,pl=/^(?:script|style|textarea|title)$/i,hl=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),c=hl(1),yt=hl(2),je=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),Gn=new WeakMap,Le=ze.createTreeWalker(ze,129);function gl(e,t){if(!Mi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fn!==void 0?Fn.createHTML(t):t}const ud=(e,t)=>{const o=e.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=Wr;for(let l=0;l<o;l++){const d=e[l];let p,b,f=-1,y=0;for(;y<d.length&&(n.lastIndex=y,b=n.exec(d),b!==null);)y=n.lastIndex,n===Wr?b[1]==="!--"?n=Bn:b[1]!==void 0?n=qn:b[2]!==void 0?(pl.test(b[2])&&(r=RegExp("</"+b[2],"g")),n=Ie):b[3]!==void 0&&(n=Ie):n===Ie?b[0]===">"?(n=r??Wr,f=-1):b[1]===void 0?f=-2:(f=n.lastIndex-b[2].length,p=b[1],n=b[3]===void 0?Ie:b[3]==='"'?Hn:Vn):n===Hn||n===Vn?n=Ie:n===Bn||n===qn?n=Wr:(n=Ie,r=void 0);const x=n===Ie&&e[l+1].startsWith("/>")?" ":"";i+=n===Wr?d+cd:f>=0?(s.push(p),d.slice(0,f)+dl+d.slice(f)+de+x):d+de+(f===-2?l:x)}return[gl(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class so{constructor({strings:t,_$litType$:o},s){let r;this.parts=[];let i=0,n=0;const l=t.length-1,d=this.parts,[p,b]=ud(t,o);if(this.el=so.createElement(p,s),Le.currentNode=this.el.content,o===2||o===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=Le.nextNode())!==null&&d.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(dl)){const y=b[n++],x=r.getAttribute(f).split(de),_=/([.?@])?(.*)/.exec(y);d.push({type:1,index:i,name:_[2],strings:x,ctor:_[1]==="."?hd:_[1]==="?"?gd:_[1]==="@"?bd:is}),r.removeAttribute(f)}else f.startsWith(de)&&(d.push({type:6,index:i}),r.removeAttribute(f));if(pl.test(r.tagName)){const f=r.textContent.split(de),y=f.length-1;if(y>0){r.textContent=zo?zo.emptyScript:"";for(let x=0;x<y;x++)r.append(f[x],ro()),Le.nextNode(),d.push({type:2,index:++i});r.append(f[y],ro())}}}else if(r.nodeType===8)if(r.data===ul)d.push({type:2,index:i});else{let f=-1;for(;(f=r.data.indexOf(de,f+1))!==-1;)d.push({type:7,index:i}),f+=de.length-1}i++}}static createElement(t,o){const s=ze.createElement("template");return s.innerHTML=t,s}}function fr(e,t,o=e,s){var n,l;if(t===je)return t;let r=s!==void 0?(n=o._$Co)==null?void 0:n[s]:o._$Cl;const i=oo(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==i&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),i===void 0?r=void 0:(r=new i(e),r._$AT(e,o,s)),s!==void 0?(o._$Co??(o._$Co=[]))[s]=r:o._$Cl=r),r!==void 0&&(t=fr(e,r._$AS(e,t.values),r,s)),t}class pd{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??ze).importNode(o,!0);Le.currentNode=r;let i=Le.nextNode(),n=0,l=0,d=s[0];for(;d!==void 0;){if(n===d.index){let p;d.type===2?p=new mo(i,i.nextSibling,this,t):d.type===1?p=new d.ctor(i,d.name,d.strings,this,t):d.type===6&&(p=new md(i,this,t)),this._$AV.push(p),d=s[++l]}n!==(d==null?void 0:d.index)&&(i=Le.nextNode(),n++)}return Le.currentNode=ze,r}p(t){let o=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,o),o+=s.strings.length-2):s._$AI(t[o])),o++}}class mo{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,o,s,r){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=fr(this,t,o),oo(t)?t===I||t==null||t===""?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==je&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):dd(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==I&&oo(this._$AH)?this._$AA.nextSibling.data=t:this.T(ze.createTextNode(t)),this._$AH=t}$(t){var i;const{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=so.createElement(gl(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===r)this._$AH.p(o);else{const n=new pd(r,this),l=n.u(this.options);n.p(o),this.T(l),this._$AH=n}}_$AC(t){let o=Gn.get(t.strings);return o===void 0&&Gn.set(t.strings,o=new so(t)),o}k(t){Mi(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let s,r=0;for(const i of t)r===o.length?o.push(s=new mo(this.O(ro()),this.O(ro()),this,this.options)):s=o[r],s._$AI(i),r++;r<o.length&&(this._$AR(s&&s._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,o);t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var o;this._$AM===void 0&&(this._$Cv=t,(o=this._$AP)==null||o.call(this,t))}}class is{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,r,i){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=I}_$AI(t,o=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=fr(this,t,o,0),n=!oo(t)||t!==this._$AH&&t!==je,n&&(this._$AH=t);else{const l=t;let d,p;for(t=i[0],d=0;d<i.length-1;d++)p=fr(this,l[s+d],o,d),p===je&&(p=this._$AH[d]),n||(n=!oo(p)||p!==this._$AH[d]),p===I?t=I:t!==I&&(t+=(p??"")+i[d+1]),this._$AH[d]=p}n&&!r&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class hd extends is{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}class gd extends is{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==I)}}class bd extends is{constructor(t,o,s,r,i){super(t,o,s,r,i),this.type=5}_$AI(t,o=this){if((t=fr(this,t,o,0)??I)===je)return;const s=this._$AH,r=t===I&&s!==I||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==I&&(s===I||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,t):this._$AH.handleEvent(t)}}class md{constructor(t,o,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){fr(this,t)}}const Ns=to.litHtmlPolyfillSupport;Ns==null||Ns(so,mo),(to.litHtmlVersions??(to.litHtmlVersions=[])).push("3.3.1");const fd=(e,t,o)=>{const s=(o==null?void 0:o.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const i=(o==null?void 0:o.renderBefore)??null;s._$litPart$=r=new mo(t.insertBefore(ro(),i),i,void 0,o??{})}return r._$AI(e),r};/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2017 Google LLC
|
|
19
19
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @license
|
|
22
22
|
* Copyright 2017 Google LLC
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
-
*/const
|
|
24
|
+
*/const h=e=>(t,o)=>{o!==void 0?o.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
* @license
|
|
74
74
|
* Copyright 2021 Google LLC
|
|
75
75
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
76
|
-
*/let Rd=class extends Event{constructor(t,o){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=o}};class Kn extends kd{constructor(t,o,s){var r,i;super(o.context!==void 0?o.initialValue:s),this.onContextRequest=n=>{if(n.context!==this.context)return;const l=n.contextTarget??n.composedPath()[0];l!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,l,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;const l=new Set;for(const[d,{consumerHost:
|
|
76
|
+
*/let Rd=class extends Event{constructor(t,o){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=o}};class Kn extends kd{constructor(t,o,s){var r,i;super(o.context!==void 0?o.initialValue:s),this.onContextRequest=n=>{if(n.context!==this.context)return;const l=n.contextTarget??n.composedPath()[0];l!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,l,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;const l=new Set;for(const[d,{consumerHost:p}]of this.subscriptions)l.has(d)||(l.add(d),p.dispatchEvent(new wl(this.context,p,d,!0)));n.stopPropagation()},this.host=t,o.context!==void 0?this.context=o.context:this.context=o,this.attachListeners(),(i=(r=this.host).addController)==null||i.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Rd(this.context,this.host))}}/**
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2017 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2022 Google LLC
|
|
83
83
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
-
*/function Ct({context:e,subscribe:t}){return(o,s)=>{typeof s=="object"?s.addInitializer((function(){new Wn(this,{context:e,callback:r=>{o.set.call(this,r)},subscribe:t})})):o.constructor.addInitializer((r=>{new Wn(r,{context:e,callback:i=>{r[s]=i},subscribe:t})}))}}const Fs=new WeakMap,Od=ns(class extends yl{render(e){return I}update(e,[t]){var s;const o=t!==this.G;return o&&this.G!==void 0&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.G=t,this.ht=(s=e.options)==null?void 0:s.host,this.rt(this.ct=e.element)),I}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let o=Fs.get(t);o===void 0&&(o=new WeakMap,Fs.set(t,o)),o.get(this.G)!==void 0&&this.G.call(this.ht,void 0),o.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=Fs.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),lt={field:["rtg-flex rtg-w-input-space-w rtg-h-input-space-h","rtg-px-input-space-px rtg-py-input-space-py","rtg-rounded-input-radius rtg-border rtg-border-input-color-border file:rtg-border-0","focus-visible:rtg-outline-none focus-visible:rtg-ring-input-width-ring-focus focus-visible:rtg-ring-input-color-ring-focus focus-visible:rtg-border-input-color-border-focus","focus-within:rtg-ring-input-width-ring-focus focus-within:rtg-ring-input-color-ring-focus focus-within:rtg-border-input-color-border-focus","rtg-shadow-input-shadow rtg-transition-colors"],surface:["rtg-no-autofill-bg autofill:rtg-bg-input-color-bg rtg-bg-input-color-bg file:rtg-bg-input-color-bg disabled:rtg-opacity-input-opacity-disabled"],typography:["rtg-text-input-color-text rtg-text-input-font file:rtg-text-input-font placeholder:rtg-text-input-color-text-placeholder"],countrySelect:["rtg-w-input-tel-space-w","focus-within:rtg-outline-none"],visibilityToggle:["rtg-text-input-icon-color-text hover:rtg-text-input-icon-color-text-hover"]};function xl(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=xl(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function _l(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=xl(e))&&(s&&(s+=" "),s+=t);return s}const Bi="-",Ad=e=>{const t=Id(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{const i=r.split(Bi);return i[0]===""&&i.length!==1&&i.shift(),Cl(i,t)||Pd(r)},getConflictingClassGroupIds:(r,i)=>{const n=o[r]||[];return i&&s[r]?[...n,...s[r]]:n}}},Cl=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const s=e[0],r=t.nextPart.get(s),i=r?Cl(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(Bi);return(o=t.validators.find(({validator:l})=>l(n)))==null?void 0:o.classGroupId},Yn=/^\[(.+)\]$/,Pd=e=>{if(Yn.test(e)){const t=Yn.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Id=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return Ld(Object.entries(e.classGroups),o).forEach(([r,i])=>{Ks(i,s,r,t)}),s},Ks=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Zn(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Td(r)){Ks(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Ks(n,Zn(t,i),o,s)})})},Zn=(e,t)=>{let o=e;return t.split(Bi).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Td=e=>e.isThemeGetter,Ld=(e,t)=>t?e.map(([o,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[o,r]}):e,Dd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map;const r=(i,n)=>{o.set(i,n),t++,t>e&&(t=0,s=o,o=new Map)};return{get(i){let n=o.get(i);if(n!==void 0)return n;if((n=s.get(i))!==void 0)return r(i,n),n},set(i,n){o.has(i)?o.set(i,n):r(i,n)}}},Sl="!",zd=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let h=0,b=0,f;for(let w=0;w<l.length;w++){let E=l[w];if(h===0){if(E===r&&(s||l.slice(w,w+i)===t)){d.push(l.slice(b,w)),b=w+i;continue}if(E==="/"){f=w;continue}}E==="["?h++:E==="]"&&h--}const y=d.length===0?l:l.substring(b),x=y.startsWith(Sl),_=x?y.substring(1):y,C=f&&f>b?f-b:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},jd=e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},Ud=e=>({cache:Dd(e.cacheSize),parseClassName:zd(e),...Ad(e)}),Nd=/\s+/,Md=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(Nd);let l="";for(let d=n.length-1;d>=0;d-=1){const h=n[d],{modifiers:b,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:x}=o(h);let _=!!x,C=s(_?y.substring(0,x):y);if(!C){if(!_){l=h+(l.length>0?" "+l:l);continue}if(C=s(y),!C){l=h+(l.length>0?" "+l:l);continue}_=!1}const w=jd(b).join(":"),E=f?w+Sl:w,P=E+C;if(i.includes(P))continue;i.push(P);const q=r(C,_);for(let M=0;M<q.length;++M){const A=q[M];i.push(E+A)}l=h+(l.length>0?" "+l:l)}return l};function Fd(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=$l(t))&&(s&&(s+=" "),s+=o);return s}const $l=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=$l(e[s]))&&(o&&(o+=" "),o+=t);return o};function Bd(e,...t){let o,s,r,i=n;function n(d){const h=t.reduce((b,f)=>f(b),e());return o=Ud(h),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const h=s(d);if(h)return h;const b=Md(d,o);return r(d,b),b}return function(){return i(Fd.apply(null,arguments))}}const W=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},El=/^\[(?:([a-z-]+):)?(.+)\]$/i,qd=/^\d+\/\d+$/,Vd=new Set(["px","full","screen"]),Hd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Kd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>gr(e)||Vd.has(e)||qd.test(e),ne=e=>kr(e,"length",ou),gr=e=>!!e&&!Number.isNaN(Number(e)),Bs=e=>kr(e,"number",gr),Kr=e=>!!e&&Number.isInteger(Number(e)),Zd=e=>e.endsWith("%")&&gr(e.slice(0,-1)),z=e=>El.test(e),ae=e=>Hd.test(e),Xd=new Set(["length","size","percentage"]),Jd=e=>kr(e,Xd,kl),Qd=e=>kr(e,"position",kl),tu=new Set(["image","url"]),eu=e=>kr(e,tu,iu),ru=e=>kr(e,"",su),Yr=()=>!0,kr=(e,t,o)=>{const s=El.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},ou=e=>Gd.test(e)&&!Wd.test(e),kl=()=>!1,su=e=>Kd.test(e),iu=e=>Yd.test(e),nu=()=>{const e=W("colors"),t=W("spacing"),o=W("blur"),s=W("brightness"),r=W("borderColor"),i=W("borderRadius"),n=W("borderSpacing"),l=W("borderWidth"),d=W("contrast"),h=W("grayscale"),b=W("hueRotate"),f=W("invert"),y=W("gap"),x=W("gradientColorStops"),_=W("gradientColorStopPositions"),C=W("inset"),w=W("margin"),E=W("opacity"),P=W("padding"),q=W("saturate"),M=W("scale"),A=W("sepia"),Z=W("skew"),Y=W("space"),$t=W("translate"),st=()=>["auto","contain","none"],wt=()=>["auto","hidden","clip","visible","scroll"],Ft=()=>["auto",z,t],O=()=>[z,t],se=()=>["",Jt,ne],It=()=>["auto",gr,z],Et=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ht=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bt=()=>["start","end","center","between","around","evenly","stretch"],xt=()=>["","0",z],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[gr,z];return{cacheSize:500,separator:":",theme:{colors:[Yr],spacing:[Jt,ne],blur:["none","",ae,z],brightness:v(),borderColor:[e],borderRadius:["none","","full",ae,z],borderSpacing:O(),borderWidth:se(),contrast:v(),grayscale:xt(),hueRotate:v(),invert:xt(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Zd,ne],inset:Ft(),margin:Ft(),opacity:v(),padding:O(),saturate:v(),scale:v(),sepia:xt(),skew:v(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[ae]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Et(),z]}],overflow:[{overflow:wt()}],"overflow-x":[{"overflow-x":wt()}],"overflow-y":[{"overflow-y":wt()}],overscroll:[{overscroll:st()}],"overscroll-x":[{"overscroll-x":st()}],"overscroll-y":[{"overscroll-y":st()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kr,z]}],basis:[{basis:Ft()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:xt()}],shrink:[{shrink:xt()}],order:[{order:["first","last","none",Kr,z]}],"grid-cols":[{"grid-cols":[Yr]}],"col-start-end":[{col:["auto",{span:["full",Kr,z]},z]}],"col-start":[{"col-start":It()}],"col-end":[{"col-end":It()}],"grid-rows":[{"grid-rows":[Yr]}],"row-start-end":[{row:["auto",{span:[Kr,z]},z]}],"row-start":[{"row-start":It()}],"row-end":[{"row-end":It()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Bt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[ae]},ae]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ae,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bs]}],"font-family":[{font:[Yr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",gr,Bs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jt,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ht(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Jt,ne]}],"underline-offset":[{"underline-offset":["auto",Jt,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Et(),Qd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...ht(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:ht()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ht()]}],"outline-offset":[{"outline-offset":[Jt,z]}],"outline-w":[{outline:[Jt,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Jt,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ae,ru]}],"shadow-color":[{shadow:[Yr]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ae,z]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Kr,z]}],"translate-x":[{"translate-x":[$t]}],"translate-y":[{"translate-y":[$t]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Jt,ne,Bs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},au=Bd(nu);function u(...e){return au(_l(e))}var lu=Object.defineProperty,Rl=(e,t,o,s)=>{for(var r=void 0,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(t,o,r)||r);return r&&lu(t,o,r),r};class m extends ${constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.mutationObserver)==null||t.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(t=>{t==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),t==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(t)&&this.removeAttribute(t)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(o=>{this.getAttributesToExclude().includes(o.name)||(t[o.name]=o.value??"")}),t}isCustomPropertySet(t){const o=getComputedStyle(this).getPropertyValue(t).trim();return o!=="inherit"&&o.length>0}applyCustomClass(t,o,s=""){var r,i;let n="";t.some(l=>this.isCustomPropertySet(l))&&(n=s),n&&((i=(r=this.shadowRoot)==null?void 0:r.querySelector(o))==null||i.classList.add(n))}removeDuplicateContent(){var t;const o=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{var l;return n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&!((l=n.textContent)!=null&&l.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),s=new Map,r=[];let i;for(;i=o.nextNode();){let n;if(i.nodeType===Node.TEXT_NODE){const l=(t=i.textContent)==null?void 0:t.trim();if(!l)continue;n=`text:${l}`}else if(i instanceof HTMLElement){const l=Array.from(i.attributes).map(d=>`${d.name}=${d.value}`).sort().join(":");n=`element:${i.tagName}:${l}`}else continue;if(s.has(n)){const l=s.get(n);l&&l.parentNode&&r.push(l),s.set(n,i)}else s.set(n,i)}r.forEach(n=>{n.parentNode&&(console.log("Removing duplicate:",n),n.parentNode.removeChild(n))})}moveLightDomChildrenInto(t,o){let s;if(o&&o.length>0){s=o.filter(r=>this.contains(r)&&r!==t&&!r.contains(t));for(const r of s){const i=Array.from(t.childNodes).find(n=>{var l;return(l=n.isEqualNode)==null?void 0:l.call(n,r)});i&&t.removeChild(i)}}else s=Array.from(this.childNodes).filter(r=>r!==t&&!t.contains(r)&&!r.contains(t));for(const r of s)t.appendChild(r)}normalizeEnum(t,o,s){if(!t)return s;const r=Object.values(o),i=Object.keys(o);return r.includes(t)?t:i.includes(t)?o[t]:s}observeStyleAndClassSync(t){this.mutationObserver=new MutationObserver(o=>{for(const s of o)if(s.type==="attributes"){if(s.attributeName==="style"){const r=this.getAttribute("style")||"";r&&(this.customStyle=r,this.removeAttribute("style"))}if(s.attributeName==="class"){const r=this.getAttribute("class")||"";r&&(t.className=r,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}}Rl([a({type:String,reflect:!0})],m.prototype,"customClass");Rl([a({type:String,reflect:!0})],m.prototype,"customStyle");function qi(){const e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const o=(e+Math.random()*16)%16|0;return(t=="x"?o:o&3|8).toString(16)})}const Xn=cl`
|
|
84
|
+
*/function Ct({context:e,subscribe:t}){return(o,s)=>{typeof s=="object"?s.addInitializer((function(){new Wn(this,{context:e,callback:r=>{o.set.call(this,r)},subscribe:t})})):o.constructor.addInitializer((r=>{new Wn(r,{context:e,callback:i=>{r[s]=i},subscribe:t})}))}}const Fs=new WeakMap,Od=ns(class extends yl{render(e){return I}update(e,[t]){var s;const o=t!==this.G;return o&&this.G!==void 0&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.G=t,this.ht=(s=e.options)==null?void 0:s.host,this.rt(this.ct=e.element)),I}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let o=Fs.get(t);o===void 0&&(o=new WeakMap,Fs.set(t,o)),o.get(this.G)!==void 0&&this.G.call(this.ht,void 0),o.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=Fs.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),lt={field:["rtg-flex rtg-w-input-space-w rtg-h-input-space-h","rtg-px-input-space-px rtg-py-input-space-py","rtg-rounded-input-radius rtg-border rtg-border-input-color-border file:rtg-border-0","focus-visible:rtg-outline-none focus-visible:rtg-ring-input-width-ring-focus focus-visible:rtg-ring-input-color-ring-focus focus-visible:rtg-border-input-color-border-focus","focus-within:rtg-ring-input-width-ring-focus focus-within:rtg-ring-input-color-ring-focus focus-within:rtg-border-input-color-border-focus","rtg-shadow-input-shadow rtg-transition-colors"],surface:["rtg-no-autofill-bg autofill:rtg-bg-input-color-bg rtg-bg-input-color-bg file:rtg-bg-input-color-bg disabled:rtg-opacity-input-opacity-disabled"],typography:["rtg-text-input-color-text rtg-text-input-font file:rtg-text-input-font placeholder:rtg-text-input-color-text-placeholder"],countrySelect:["rtg-w-input-tel-space-w","focus-within:rtg-outline-none"],visibilityToggle:["rtg-text-input-icon-color-text hover:rtg-text-input-icon-color-text-hover"]};function xl(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=xl(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function _l(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=xl(e))&&(s&&(s+=" "),s+=t);return s}const Bi="-",Ad=e=>{const t=Id(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{const i=r.split(Bi);return i[0]===""&&i.length!==1&&i.shift(),Cl(i,t)||Pd(r)},getConflictingClassGroupIds:(r,i)=>{const n=o[r]||[];return i&&s[r]?[...n,...s[r]]:n}}},Cl=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const s=e[0],r=t.nextPart.get(s),i=r?Cl(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(Bi);return(o=t.validators.find(({validator:l})=>l(n)))==null?void 0:o.classGroupId},Yn=/^\[(.+)\]$/,Pd=e=>{if(Yn.test(e)){const t=Yn.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Id=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return Ld(Object.entries(e.classGroups),o).forEach(([r,i])=>{Ks(i,s,r,t)}),s},Ks=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Zn(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Td(r)){Ks(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Ks(n,Zn(t,i),o,s)})})},Zn=(e,t)=>{let o=e;return t.split(Bi).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Td=e=>e.isThemeGetter,Ld=(e,t)=>t?e.map(([o,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[o,r]}):e,Dd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map;const r=(i,n)=>{o.set(i,n),t++,t>e&&(t=0,s=o,o=new Map)};return{get(i){let n=o.get(i);if(n!==void 0)return n;if((n=s.get(i))!==void 0)return r(i,n),n},set(i,n){o.has(i)?o.set(i,n):r(i,n)}}},Sl="!",zd=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let p=0,b=0,f;for(let w=0;w<l.length;w++){let E=l[w];if(p===0){if(E===r&&(s||l.slice(w,w+i)===t)){d.push(l.slice(b,w)),b=w+i;continue}if(E==="/"){f=w;continue}}E==="["?p++:E==="]"&&p--}const y=d.length===0?l:l.substring(b),x=y.startsWith(Sl),_=x?y.substring(1):y,C=f&&f>b?f-b:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},jd=e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},Ud=e=>({cache:Dd(e.cacheSize),parseClassName:zd(e),...Ad(e)}),Nd=/\s+/,Md=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(Nd);let l="";for(let d=n.length-1;d>=0;d-=1){const p=n[d],{modifiers:b,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:x}=o(p);let _=!!x,C=s(_?y.substring(0,x):y);if(!C){if(!_){l=p+(l.length>0?" "+l:l);continue}if(C=s(y),!C){l=p+(l.length>0?" "+l:l);continue}_=!1}const w=jd(b).join(":"),E=f?w+Sl:w,P=E+C;if(i.includes(P))continue;i.push(P);const q=r(C,_);for(let M=0;M<q.length;++M){const A=q[M];i.push(E+A)}l=p+(l.length>0?" "+l:l)}return l};function Fd(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=$l(t))&&(s&&(s+=" "),s+=o);return s}const $l=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=$l(e[s]))&&(o&&(o+=" "),o+=t);return o};function Bd(e,...t){let o,s,r,i=n;function n(d){const p=t.reduce((b,f)=>f(b),e());return o=Ud(p),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const p=s(d);if(p)return p;const b=Md(d,o);return r(d,b),b}return function(){return i(Fd.apply(null,arguments))}}const W=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},El=/^\[(?:([a-z-]+):)?(.+)\]$/i,qd=/^\d+\/\d+$/,Vd=new Set(["px","full","screen"]),Hd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Kd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>gr(e)||Vd.has(e)||qd.test(e),ne=e=>kr(e,"length",ou),gr=e=>!!e&&!Number.isNaN(Number(e)),Bs=e=>kr(e,"number",gr),Kr=e=>!!e&&Number.isInteger(Number(e)),Zd=e=>e.endsWith("%")&&gr(e.slice(0,-1)),z=e=>El.test(e),ae=e=>Hd.test(e),Xd=new Set(["length","size","percentage"]),Jd=e=>kr(e,Xd,kl),Qd=e=>kr(e,"position",kl),tu=new Set(["image","url"]),eu=e=>kr(e,tu,iu),ru=e=>kr(e,"",su),Yr=()=>!0,kr=(e,t,o)=>{const s=El.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},ou=e=>Gd.test(e)&&!Wd.test(e),kl=()=>!1,su=e=>Kd.test(e),iu=e=>Yd.test(e),nu=()=>{const e=W("colors"),t=W("spacing"),o=W("blur"),s=W("brightness"),r=W("borderColor"),i=W("borderRadius"),n=W("borderSpacing"),l=W("borderWidth"),d=W("contrast"),p=W("grayscale"),b=W("hueRotate"),f=W("invert"),y=W("gap"),x=W("gradientColorStops"),_=W("gradientColorStopPositions"),C=W("inset"),w=W("margin"),E=W("opacity"),P=W("padding"),q=W("saturate"),M=W("scale"),A=W("sepia"),Z=W("skew"),Y=W("space"),$t=W("translate"),st=()=>["auto","contain","none"],wt=()=>["auto","hidden","clip","visible","scroll"],Ft=()=>["auto",z,t],O=()=>[z,t],se=()=>["",Jt,ne],It=()=>["auto",gr,z],Et=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pt=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bt=()=>["start","end","center","between","around","evenly","stretch"],xt=()=>["","0",z],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[gr,z];return{cacheSize:500,separator:":",theme:{colors:[Yr],spacing:[Jt,ne],blur:["none","",ae,z],brightness:v(),borderColor:[e],borderRadius:["none","","full",ae,z],borderSpacing:O(),borderWidth:se(),contrast:v(),grayscale:xt(),hueRotate:v(),invert:xt(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Zd,ne],inset:Ft(),margin:Ft(),opacity:v(),padding:O(),saturate:v(),scale:v(),sepia:xt(),skew:v(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[ae]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Et(),z]}],overflow:[{overflow:wt()}],"overflow-x":[{"overflow-x":wt()}],"overflow-y":[{"overflow-y":wt()}],overscroll:[{overscroll:st()}],"overscroll-x":[{"overscroll-x":st()}],"overscroll-y":[{"overscroll-y":st()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kr,z]}],basis:[{basis:Ft()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:xt()}],shrink:[{shrink:xt()}],order:[{order:["first","last","none",Kr,z]}],"grid-cols":[{"grid-cols":[Yr]}],"col-start-end":[{col:["auto",{span:["full",Kr,z]},z]}],"col-start":[{"col-start":It()}],"col-end":[{"col-end":It()}],"grid-rows":[{"grid-rows":[Yr]}],"row-start-end":[{row:["auto",{span:[Kr,z]},z]}],"row-start":[{"row-start":It()}],"row-end":[{"row-end":It()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Bt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[ae]},ae]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ae,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bs]}],"font-family":[{font:[Yr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",gr,Bs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jt,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Jt,ne]}],"underline-offset":[{"underline-offset":["auto",Jt,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Et(),Qd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...pt(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:pt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...pt()]}],"outline-offset":[{"outline-offset":[Jt,z]}],"outline-w":[{outline:[Jt,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Jt,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ae,ru]}],"shadow-color":[{shadow:[Yr]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ae,z]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Kr,z]}],"translate-x":[{"translate-x":[$t]}],"translate-y":[{"translate-y":[$t]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Jt,ne,Bs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},au=Bd(nu);function u(...e){return au(_l(e))}var lu=Object.defineProperty,Rl=(e,t,o,s)=>{for(var r=void 0,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(t,o,r)||r);return r&&lu(t,o,r),r};class m extends ${constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.mutationObserver)==null||t.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(t=>{t==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),t==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(t)&&this.removeAttribute(t)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(o=>{this.getAttributesToExclude().includes(o.name)||(t[o.name]=o.value??"")}),t}isCustomPropertySet(t){const o=getComputedStyle(this).getPropertyValue(t).trim();return o!=="inherit"&&o.length>0}applyCustomClass(t,o,s=""){var r,i;let n="";t.some(l=>this.isCustomPropertySet(l))&&(n=s),n&&((i=(r=this.shadowRoot)==null?void 0:r.querySelector(o))==null||i.classList.add(n))}removeDuplicateContent(){var t;const o=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{var l;return n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&!((l=n.textContent)!=null&&l.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),s=new Map,r=[];let i;for(;i=o.nextNode();){let n;if(i.nodeType===Node.TEXT_NODE){const l=(t=i.textContent)==null?void 0:t.trim();if(!l)continue;n=`text:${l}`}else if(i instanceof HTMLElement){const l=Array.from(i.attributes).map(d=>`${d.name}=${d.value}`).sort().join(":");n=`element:${i.tagName}:${l}`}else continue;if(s.has(n)){const l=s.get(n);l&&l.parentNode&&r.push(l),s.set(n,i)}else s.set(n,i)}r.forEach(n=>{n.parentNode&&(console.log("Removing duplicate:",n),n.parentNode.removeChild(n))})}moveLightDomChildrenInto(t,o){let s;if(o&&o.length>0){s=o.filter(r=>this.contains(r)&&r!==t&&!r.contains(t));for(const r of s){const i=Array.from(t.childNodes).find(n=>{var l;return(l=n.isEqualNode)==null?void 0:l.call(n,r)});i&&t.removeChild(i)}}else s=Array.from(this.childNodes).filter(r=>r!==t&&!t.contains(r)&&!r.contains(t));for(const r of s)t.appendChild(r)}normalizeEnum(t,o,s){if(!t)return s;const r=Object.values(o),i=Object.keys(o);return r.includes(t)?t:i.includes(t)?o[t]:s}observeStyleAndClassSync(t){this.mutationObserver=new MutationObserver(o=>{for(const s of o)if(s.type==="attributes"){if(s.attributeName==="style"){const r=this.getAttribute("style")||"";r&&(this.customStyle=r,this.removeAttribute("style"))}if(s.attributeName==="class"){const r=this.getAttribute("class")||"";r&&(t.className=r,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}}Rl([a({type:String,reflect:!0})],m.prototype,"customClass");Rl([a({type:String,reflect:!0})],m.prototype,"customStyle");function qi(){const e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const o=(e+Math.random()*16)%16|0;return(t=="x"?o:o&3|8).toString(16)})}const Xn=cl`
|
|
85
85
|
@font-face {
|
|
86
86
|
font-family: 'GeistSans';
|
|
87
87
|
|
|
@@ -2950,7 +2950,7 @@ body {
|
|
|
2950
2950
|
.wrapper {
|
|
2951
2951
|
display: block;
|
|
2952
2952
|
}
|
|
2953
|
-
`;let cu=Al;customElements.define("shadow-wrapper",cu);class du extends yl{constructor(){super(...arguments),this.prevData={}}render(t){return I}update(t,[o]){var s;this.element!==t.element&&(this.element=t.element),this.host=((s=t.options)===null||s===void 0?void 0:s.host)||this.element,this.apply(o),this.groom(o),this.prevData={...o}}apply(t){if(!t)return;const{prevData:o,element:s}=this;for(const r in t){const i=t[r];i!==o[r]&&(s[r]=i)}}groom(t){const{prevData:o,element:s}=this;if(o)for(const r in o)(!t||!(r in t)&&s[r]===o[r])&&(s[r]=void 0)}}class uu extends du{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const o in t){const s=t[o];s!==this.eventData[o]&&this.applyEvent(o,s)}}applyEvent(t,o){const{prevData:s,element:r}=this;this.eventData[t]=o,s[t]&&r.removeEventListener(t,this,o),r.addEventListener(t,this,o)}groom(t){const{prevData:o,element:s}=this;if(o)for(const r in o)(!t||!(r in t)&&s[r]===o[r])&&this.groomEvent(r,o[r])}groomEvent(t,o){const{element:s}=this;delete this.eventData[t],s.removeEventListener(t,this,o)}handleEvent(t){const o=this.eventData[t.type];typeof o=="function"?o.call(this.host,t):o.handleEvent(t)}disconnected(){const{eventData:t,element:o}=this;for(const s in t){const r=s.slice(1),i=t[s];o.removeEventListener(r,this,i)}}reconnected(){const{eventData:t,element:o}=this;for(const s in t){const r=s.slice(1),i=t[s];o.addEventListener(r,this,i)}}}class hu extends uu{apply(t){if(!t)return;const{prevData:o,element:s}=this;for(const r in t){const i=t[r];if(i===o[r])continue;const n=r.slice(1);switch(r[0]){case"@":this.eventData[n]=i,this.applyEvent(n,i);break;case".":s[n]=i;break;case"?":i?s.setAttribute(n,""):s.removeAttribute(n);break;default:i!=null?s.setAttribute(r,String(i)):s.removeAttribute(r);break}}}groom(t){const{prevData:o,element:s}=this;if(o)for(const r in o){const i=r.slice(1);if(!t||!(r in t)&&s[i]===o[r])switch(r[0]){case"@":this.groomEvent(i,o[r]);break;case".":s[i]=void 0;break;case"?":s.removeAttribute(i);break;default:s.removeAttribute(r);break}}}}const V=ns(hu),Jn=[{label:"AF",value:"AF",code:"+93"},{label:"AL",value:"AL",code:"+355"},{label:"DZ",value:"DZ",code:"+213"},{label:"AS",value:"AS",code:"+1684"},{label:"AD",value:"AD",code:"+376"},{label:"AO",value:"AO",code:"+244"},{label:"AI",value:"AI",code:"+1264"},{label:"AG",value:"AG",code:"+1268"},{label:"AR",value:"AR",code:"+54"},{label:"AM",value:"AM",code:"+374"},{label:"AW",value:"AW",code:"+297"},{label:"AU",value:"AU",code:"+61"},{label:"AT",value:"AT",code:"+43"},{label:"AZ",value:"AZ",code:"+994"},{label:"BS",value:"BS",code:"+1242"},{label:"BH",value:"BH",code:"+973"},{label:"BD",value:"BD",code:"+880"},{label:"BB",value:"BB",code:"+1246"},{label:"BY",value:"BY",code:"+375"},{label:"BE",value:"BE",code:"+32"},{label:"BZ",value:"BZ",code:"+501"},{label:"BJ",value:"BJ",code:"+229"},{label:"BM",value:"BM",code:"+1441"},{label:"BT",value:"BT",code:"+975"},{label:"BO",value:"BO",code:"+591"},{label:"BA",value:"BA",code:"+387"},{label:"BW",value:"BW",code:"+267"},{label:"BR",value:"BR",code:"+55"},{label:"IO",value:"IO",code:"+246"},{label:"VG",value:"VG",code:"+1284"},{label:"BN",value:"BN",code:"+673"},{label:"BG",value:"BG",code:"+359"},{label:"BF",value:"BF",code:"+226"},{label:"BI",value:"BI",code:"+257"},{label:"KH",value:"KH",code:"+855"},{label:"CM",value:"CM",code:"+237"},{label:"CA",value:"CA",code:"+1"},{label:"CV",value:"CV",code:"+238"},{label:"KY",value:"KY",code:"+1345"},{label:"CF",value:"CF",code:"+236"},{label:"TD",value:"TD",code:"+235"},{label:"CL",value:"CL",code:"+56"},{label:"CN",value:"CN",code:"+86"},{label:"CX",value:"CX",code:"+61"},{label:"CC",value:"CC",code:"+61"},{label:"CO",value:"CO",code:"+57"},{label:"KM",value:"KM",code:"+269"},{label:"CK",value:"CK",code:"+682"},{label:"CR",value:"CR",code:"+506"},{label:"HR",value:"HR",code:"+385"},{label:"CU",value:"CU",code:"+53"},{label:"CW",value:"CW",code:"+599"},{label:"CY",value:"CY",code:"+357"},{label:"CZ",value:"CZ",code:"+420"},{label:"CD",value:"CD",code:"+243"},{label:"DK",value:"DK",code:"+45"},{label:"DJ",value:"DJ",code:"+253"},{label:"DM",value:"DM",code:"+1767"},{label:"DO",value:"DO",code:"+1809"},{label:"DO",value:"DO",code:"+1829"},{label:"DO",value:"DO",code:"+1849"},{label:"TL",value:"TL",code:"+670"},{label:"EC",value:"EC",code:"+593"},{label:"EG",value:"EG",code:"+20"},{label:"SV",value:"SV",code:"+503"},{label:"GQ",value:"GQ",code:"+240"},{label:"ER",value:"ER",code:"+291"},{label:"EE",value:"EE",code:"+372"},{label:"ET",value:"ET",code:"+251"},{label:"FK",value:"FK",code:"+500"},{label:"FO",value:"FO",code:"+298"},{label:"FJ",value:"FJ",code:"+679"},{label:"FI",value:"FI",code:"+358"},{label:"FR",value:"FR",code:"+33"},{label:"PF",value:"PF",code:"+689"},{label:"GA",value:"GA",code:"+241"},{label:"GM",value:"GM",code:"+220"},{label:"GE",value:"GE",code:"+995"},{label:"DE",value:"DE",code:"+49"},{label:"GH",value:"GH",code:"+233"},{label:"GI",value:"GI",code:"+350"},{label:"GR",value:"GR",code:"+30"},{label:"GL",value:"GL",code:"+299"},{label:"GD",value:"GD",code:"+1473"},{label:"GU",value:"GU",code:"+1671"},{label:"GT",value:"GT",code:"+502"},{label:"GG",value:"GG",code:"+441481"},{label:"GN",value:"GN",code:"+224"},{label:"GW",value:"GW",code:"+245"},{label:"GY",value:"GY",code:"+592"},{label:"HT",value:"HT",code:"+509"},{label:"HN",value:"HN",code:"+504"},{label:"HK",value:"HK",code:"+852"},{label:"HU",value:"HU",code:"+36"},{label:"IS",value:"IS",code:"+354"},{label:"IN",value:"IN",code:"+91"},{label:"ID",value:"ID",code:"+62"},{label:"IR",value:"IR",code:"+98"},{label:"IQ",value:"IQ",code:"+964"},{label:"IE",value:"IE",code:"+353"},{label:"IM",value:"IM",code:"+441624"},{label:"IL",value:"IL",code:"+972"},{label:"IT",value:"IT",code:"+39"},{label:"CI",value:"CI",code:"+225"},{label:"JM",value:"JM",code:"+1876"},{label:"JP",value:"JP",code:"+81"},{label:"JE",value:"JE",code:"+441534"},{label:"JO",value:"JO",code:"+962"},{label:"KZ",value:"KZ",code:"+7"},{label:"KE",value:"KE",code:"+254"},{label:"KI",value:"KI",code:"+686"},{label:"XK",value:"XK",code:"+383"},{label:"KW",value:"KW",code:"+965"},{label:"KG",value:"KG",code:"+996"},{label:"LA",value:"LA",code:"+856"},{label:"LV",value:"LV",code:"+371"},{label:"LB",value:"LB",code:"+961"},{label:"LS",value:"LS",code:"+266"},{label:"LR",value:"LR",code:"+231"},{label:"LY",value:"LY",code:"+218"},{label:"LI",value:"LI",code:"+423"},{label:"LT",value:"LT",code:"+370"},{label:"LU",value:"LU",code:"+352"},{label:"MO",value:"MO",code:"+853"},{label:"MK",value:"MK",code:"+389"},{label:"MG",value:"MG",code:"+261"},{label:"MW",value:"MW",code:"+265"},{label:"MY",value:"MY",code:"+60"},{label:"MV",value:"MV",code:"+960"},{label:"ML",value:"ML",code:"+223"},{label:"MT",value:"MT",code:"+356"},{label:"MH",value:"MH",code:"+692"},{label:"MR",value:"MR",code:"+222"},{label:"MU",value:"MU",code:"+230"},{label:"YT",value:"YT",code:"+262"},{label:"MX",value:"MX",code:"+52"},{label:"FM",value:"FM",code:"+691"},{label:"MD",value:"MD",code:"+373"},{label:"MC",value:"MC",code:"+377"},{label:"MN",value:"MN",code:"+976"},{label:"ME",value:"ME",code:"+382"},{label:"MS",value:"MS",code:"+1664"},{label:"MA",value:"MA",code:"+212"},{label:"MZ",value:"MZ",code:"+258"},{label:"MM",value:"MM",code:"+95"},{label:"NA",value:"NA",code:"+264"},{label:"NR",value:"NR",code:"+674"},{label:"NP",value:"NP",code:"+977"},{label:"NL",value:"NL",code:"+31"},{label:"AN",value:"AN",code:"+599"},{label:"NC",value:"NC",code:"+687"},{label:"NZ",value:"NZ",code:"+64"},{label:"NI",value:"NI",code:"+505"},{label:"NE",value:"NE",code:"+227"},{label:"NG",value:"NG",code:"+234"},{label:"NU",value:"NU",code:"+683"},{label:"KP",value:"KP",code:"+850"},{label:"MP",value:"MP",code:"+1670"},{label:"NO",value:"NO",code:"+47"},{label:"OM",value:"OM",code:"+968"},{label:"PK",value:"PK",code:"+92"},{label:"PW",value:"PW",code:"+680"},{label:"PS",value:"PS",code:"+970"},{label:"PA",value:"PA",code:"+507"},{label:"PG",value:"PG",code:"+675"},{label:"PY",value:"PY",code:"+595"},{label:"PE",value:"PE",code:"+51"},{label:"PH",value:"PH",code:"+63"},{label:"PN",value:"PN",code:"+64"},{label:"PL",value:"PL",code:"+48"},{label:"PT",value:"PT",code:"+351"},{label:"PR",value:"PR",code:"+1787"},{label:"PR",value:"PR",code:"+1939"},{label:"QA",value:"QA",code:"+974"},{label:"CG",value:"CG",code:"+242"},{label:"RE",value:"RE",code:"+262"},{label:"RO",value:"RO",code:"+40"},{label:"RU",value:"RU",code:"+7"},{label:"RW",value:"RW",code:"+250"},{label:"BL",value:"BL",code:"+590"},{label:"SH",value:"SH",code:"+290"},{label:"KN",value:"KN",code:"+1869"},{label:"LC",value:"LC",code:"+1758"},{label:"MF",value:"MF",code:"+590"},{label:"PM",value:"PM",code:"+508"},{label:"VC",value:"VC",code:"+1784"},{label:"WS",value:"WS",code:"+685"},{label:"SM",value:"SM",code:"+378"},{label:"ST",value:"ST",code:"+239"},{label:"SA",value:"SA",code:"+966"},{label:"SN",value:"SN",code:"+221"},{label:"RS",value:"RS",code:"+381"},{label:"SC",value:"SC",code:"+248"},{label:"SL",value:"SL",code:"+232"},{label:"SG",value:"SG",code:"+65"},{label:"SX",value:"SX",code:"+1721"},{label:"SK",value:"SK",code:"+421"},{label:"SI",value:"SI",code:"+386"},{label:"SB",value:"SB",code:"+677"},{label:"SO",value:"SO",code:"+252"},{label:"ZA",value:"ZA",code:"+27"},{label:"KR",value:"KR",code:"+82"},{label:"SS",value:"SS",code:"+211"},{label:"ES",value:"ES",code:"+34"},{label:"LK",value:"LK",code:"+94"},{label:"SD",value:"SD",code:"+249"},{label:"SR",value:"SR",code:"+597"},{label:"SJ",value:"SJ",code:"+47"},{label:"SZ",value:"SZ",code:"+268"},{label:"SE",value:"SE",code:"+46"},{label:"CH",value:"CH",code:"+41"},{label:"SY",value:"SY",code:"+963"},{label:"TW",value:"TW",code:"+886"},{label:"TJ",value:"TJ",code:"+992"},{label:"TZ",value:"TZ",code:"+255"},{label:"TH",value:"TH",code:"+66"},{label:"TG",value:"TG",code:"+228"},{label:"TK",value:"TK",code:"+690"},{label:"TO",value:"TO",code:"+676"},{label:"TT",value:"TT",code:"+1868"},{label:"TN",value:"TN",code:"+216"},{label:"TR",value:"TR",code:"+90"},{label:"TM",value:"TM",code:"+993"},{label:"TC",value:"TC",code:"+1649"},{label:"TV",value:"TV",code:"+688"},{label:"VI",value:"VI",code:"+1340"},{label:"UG",value:"UG",code:"+256"},{label:"UA",value:"UA",code:"+380"},{label:"AE",value:"AE",code:"+971"},{label:"GB",value:"GB",code:"+44"},{label:"US",value:"US",code:"+1"},{label:"UY",value:"UY",code:"+598"},{label:"UZ",value:"UZ",code:"+998"},{label:"VU",value:"VU",code:"+678"},{label:"VA",value:"VA",code:"+379"},{label:"VE",value:"VE",code:"+58"},{label:"VN",value:"VN",code:"+84"},{label:"WF",value:"WF",code:"+681"},{label:"EH",value:"EH",code:"+212"},{label:"YE",value:"YE",code:"+967"},{label:"ZM",value:"ZM",code:"+260"},{label:"ZW",value:"ZW",code:"+263"}];function pu(){return yt` <svg
|
|
2953
|
+
`;let cu=Al;customElements.define("shadow-wrapper",cu);class du extends yl{constructor(){super(...arguments),this.prevData={}}render(t){return I}update(t,[o]){var s;this.element!==t.element&&(this.element=t.element),this.host=((s=t.options)===null||s===void 0?void 0:s.host)||this.element,this.apply(o),this.groom(o),this.prevData={...o}}apply(t){if(!t)return;const{prevData:o,element:s}=this;for(const r in t){const i=t[r];i!==o[r]&&(s[r]=i)}}groom(t){const{prevData:o,element:s}=this;if(o)for(const r in o)(!t||!(r in t)&&s[r]===o[r])&&(s[r]=void 0)}}class uu extends du{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const o in t){const s=t[o];s!==this.eventData[o]&&this.applyEvent(o,s)}}applyEvent(t,o){const{prevData:s,element:r}=this;this.eventData[t]=o,s[t]&&r.removeEventListener(t,this,o),r.addEventListener(t,this,o)}groom(t){const{prevData:o,element:s}=this;if(o)for(const r in o)(!t||!(r in t)&&s[r]===o[r])&&this.groomEvent(r,o[r])}groomEvent(t,o){const{element:s}=this;delete this.eventData[t],s.removeEventListener(t,this,o)}handleEvent(t){const o=this.eventData[t.type];typeof o=="function"?o.call(this.host,t):o.handleEvent(t)}disconnected(){const{eventData:t,element:o}=this;for(const s in t){const r=s.slice(1),i=t[s];o.removeEventListener(r,this,i)}}reconnected(){const{eventData:t,element:o}=this;for(const s in t){const r=s.slice(1),i=t[s];o.addEventListener(r,this,i)}}}class pu extends uu{apply(t){if(!t)return;const{prevData:o,element:s}=this;for(const r in t){const i=t[r];if(i===o[r])continue;const n=r.slice(1);switch(r[0]){case"@":this.eventData[n]=i,this.applyEvent(n,i);break;case".":s[n]=i;break;case"?":i?s.setAttribute(n,""):s.removeAttribute(n);break;default:i!=null?s.setAttribute(r,String(i)):s.removeAttribute(r);break}}}groom(t){const{prevData:o,element:s}=this;if(o)for(const r in o){const i=r.slice(1);if(!t||!(r in t)&&s[i]===o[r])switch(r[0]){case"@":this.groomEvent(i,o[r]);break;case".":s[i]=void 0;break;case"?":s.removeAttribute(i);break;default:s.removeAttribute(r);break}}}}const V=ns(pu),Jn=[{label:"AF",value:"AF",code:"+93"},{label:"AL",value:"AL",code:"+355"},{label:"DZ",value:"DZ",code:"+213"},{label:"AS",value:"AS",code:"+1684"},{label:"AD",value:"AD",code:"+376"},{label:"AO",value:"AO",code:"+244"},{label:"AI",value:"AI",code:"+1264"},{label:"AG",value:"AG",code:"+1268"},{label:"AR",value:"AR",code:"+54"},{label:"AM",value:"AM",code:"+374"},{label:"AW",value:"AW",code:"+297"},{label:"AU",value:"AU",code:"+61"},{label:"AT",value:"AT",code:"+43"},{label:"AZ",value:"AZ",code:"+994"},{label:"BS",value:"BS",code:"+1242"},{label:"BH",value:"BH",code:"+973"},{label:"BD",value:"BD",code:"+880"},{label:"BB",value:"BB",code:"+1246"},{label:"BY",value:"BY",code:"+375"},{label:"BE",value:"BE",code:"+32"},{label:"BZ",value:"BZ",code:"+501"},{label:"BJ",value:"BJ",code:"+229"},{label:"BM",value:"BM",code:"+1441"},{label:"BT",value:"BT",code:"+975"},{label:"BO",value:"BO",code:"+591"},{label:"BA",value:"BA",code:"+387"},{label:"BW",value:"BW",code:"+267"},{label:"BR",value:"BR",code:"+55"},{label:"IO",value:"IO",code:"+246"},{label:"VG",value:"VG",code:"+1284"},{label:"BN",value:"BN",code:"+673"},{label:"BG",value:"BG",code:"+359"},{label:"BF",value:"BF",code:"+226"},{label:"BI",value:"BI",code:"+257"},{label:"KH",value:"KH",code:"+855"},{label:"CM",value:"CM",code:"+237"},{label:"CA",value:"CA",code:"+1"},{label:"CV",value:"CV",code:"+238"},{label:"KY",value:"KY",code:"+1345"},{label:"CF",value:"CF",code:"+236"},{label:"TD",value:"TD",code:"+235"},{label:"CL",value:"CL",code:"+56"},{label:"CN",value:"CN",code:"+86"},{label:"CX",value:"CX",code:"+61"},{label:"CC",value:"CC",code:"+61"},{label:"CO",value:"CO",code:"+57"},{label:"KM",value:"KM",code:"+269"},{label:"CK",value:"CK",code:"+682"},{label:"CR",value:"CR",code:"+506"},{label:"HR",value:"HR",code:"+385"},{label:"CU",value:"CU",code:"+53"},{label:"CW",value:"CW",code:"+599"},{label:"CY",value:"CY",code:"+357"},{label:"CZ",value:"CZ",code:"+420"},{label:"CD",value:"CD",code:"+243"},{label:"DK",value:"DK",code:"+45"},{label:"DJ",value:"DJ",code:"+253"},{label:"DM",value:"DM",code:"+1767"},{label:"DO",value:"DO",code:"+1809"},{label:"DO",value:"DO",code:"+1829"},{label:"DO",value:"DO",code:"+1849"},{label:"TL",value:"TL",code:"+670"},{label:"EC",value:"EC",code:"+593"},{label:"EG",value:"EG",code:"+20"},{label:"SV",value:"SV",code:"+503"},{label:"GQ",value:"GQ",code:"+240"},{label:"ER",value:"ER",code:"+291"},{label:"EE",value:"EE",code:"+372"},{label:"ET",value:"ET",code:"+251"},{label:"FK",value:"FK",code:"+500"},{label:"FO",value:"FO",code:"+298"},{label:"FJ",value:"FJ",code:"+679"},{label:"FI",value:"FI",code:"+358"},{label:"FR",value:"FR",code:"+33"},{label:"PF",value:"PF",code:"+689"},{label:"GA",value:"GA",code:"+241"},{label:"GM",value:"GM",code:"+220"},{label:"GE",value:"GE",code:"+995"},{label:"DE",value:"DE",code:"+49"},{label:"GH",value:"GH",code:"+233"},{label:"GI",value:"GI",code:"+350"},{label:"GR",value:"GR",code:"+30"},{label:"GL",value:"GL",code:"+299"},{label:"GD",value:"GD",code:"+1473"},{label:"GU",value:"GU",code:"+1671"},{label:"GT",value:"GT",code:"+502"},{label:"GG",value:"GG",code:"+441481"},{label:"GN",value:"GN",code:"+224"},{label:"GW",value:"GW",code:"+245"},{label:"GY",value:"GY",code:"+592"},{label:"HT",value:"HT",code:"+509"},{label:"HN",value:"HN",code:"+504"},{label:"HK",value:"HK",code:"+852"},{label:"HU",value:"HU",code:"+36"},{label:"IS",value:"IS",code:"+354"},{label:"IN",value:"IN",code:"+91"},{label:"ID",value:"ID",code:"+62"},{label:"IR",value:"IR",code:"+98"},{label:"IQ",value:"IQ",code:"+964"},{label:"IE",value:"IE",code:"+353"},{label:"IM",value:"IM",code:"+441624"},{label:"IL",value:"IL",code:"+972"},{label:"IT",value:"IT",code:"+39"},{label:"CI",value:"CI",code:"+225"},{label:"JM",value:"JM",code:"+1876"},{label:"JP",value:"JP",code:"+81"},{label:"JE",value:"JE",code:"+441534"},{label:"JO",value:"JO",code:"+962"},{label:"KZ",value:"KZ",code:"+7"},{label:"KE",value:"KE",code:"+254"},{label:"KI",value:"KI",code:"+686"},{label:"XK",value:"XK",code:"+383"},{label:"KW",value:"KW",code:"+965"},{label:"KG",value:"KG",code:"+996"},{label:"LA",value:"LA",code:"+856"},{label:"LV",value:"LV",code:"+371"},{label:"LB",value:"LB",code:"+961"},{label:"LS",value:"LS",code:"+266"},{label:"LR",value:"LR",code:"+231"},{label:"LY",value:"LY",code:"+218"},{label:"LI",value:"LI",code:"+423"},{label:"LT",value:"LT",code:"+370"},{label:"LU",value:"LU",code:"+352"},{label:"MO",value:"MO",code:"+853"},{label:"MK",value:"MK",code:"+389"},{label:"MG",value:"MG",code:"+261"},{label:"MW",value:"MW",code:"+265"},{label:"MY",value:"MY",code:"+60"},{label:"MV",value:"MV",code:"+960"},{label:"ML",value:"ML",code:"+223"},{label:"MT",value:"MT",code:"+356"},{label:"MH",value:"MH",code:"+692"},{label:"MR",value:"MR",code:"+222"},{label:"MU",value:"MU",code:"+230"},{label:"YT",value:"YT",code:"+262"},{label:"MX",value:"MX",code:"+52"},{label:"FM",value:"FM",code:"+691"},{label:"MD",value:"MD",code:"+373"},{label:"MC",value:"MC",code:"+377"},{label:"MN",value:"MN",code:"+976"},{label:"ME",value:"ME",code:"+382"},{label:"MS",value:"MS",code:"+1664"},{label:"MA",value:"MA",code:"+212"},{label:"MZ",value:"MZ",code:"+258"},{label:"MM",value:"MM",code:"+95"},{label:"NA",value:"NA",code:"+264"},{label:"NR",value:"NR",code:"+674"},{label:"NP",value:"NP",code:"+977"},{label:"NL",value:"NL",code:"+31"},{label:"AN",value:"AN",code:"+599"},{label:"NC",value:"NC",code:"+687"},{label:"NZ",value:"NZ",code:"+64"},{label:"NI",value:"NI",code:"+505"},{label:"NE",value:"NE",code:"+227"},{label:"NG",value:"NG",code:"+234"},{label:"NU",value:"NU",code:"+683"},{label:"KP",value:"KP",code:"+850"},{label:"MP",value:"MP",code:"+1670"},{label:"NO",value:"NO",code:"+47"},{label:"OM",value:"OM",code:"+968"},{label:"PK",value:"PK",code:"+92"},{label:"PW",value:"PW",code:"+680"},{label:"PS",value:"PS",code:"+970"},{label:"PA",value:"PA",code:"+507"},{label:"PG",value:"PG",code:"+675"},{label:"PY",value:"PY",code:"+595"},{label:"PE",value:"PE",code:"+51"},{label:"PH",value:"PH",code:"+63"},{label:"PN",value:"PN",code:"+64"},{label:"PL",value:"PL",code:"+48"},{label:"PT",value:"PT",code:"+351"},{label:"PR",value:"PR",code:"+1787"},{label:"PR",value:"PR",code:"+1939"},{label:"QA",value:"QA",code:"+974"},{label:"CG",value:"CG",code:"+242"},{label:"RE",value:"RE",code:"+262"},{label:"RO",value:"RO",code:"+40"},{label:"RU",value:"RU",code:"+7"},{label:"RW",value:"RW",code:"+250"},{label:"BL",value:"BL",code:"+590"},{label:"SH",value:"SH",code:"+290"},{label:"KN",value:"KN",code:"+1869"},{label:"LC",value:"LC",code:"+1758"},{label:"MF",value:"MF",code:"+590"},{label:"PM",value:"PM",code:"+508"},{label:"VC",value:"VC",code:"+1784"},{label:"WS",value:"WS",code:"+685"},{label:"SM",value:"SM",code:"+378"},{label:"ST",value:"ST",code:"+239"},{label:"SA",value:"SA",code:"+966"},{label:"SN",value:"SN",code:"+221"},{label:"RS",value:"RS",code:"+381"},{label:"SC",value:"SC",code:"+248"},{label:"SL",value:"SL",code:"+232"},{label:"SG",value:"SG",code:"+65"},{label:"SX",value:"SX",code:"+1721"},{label:"SK",value:"SK",code:"+421"},{label:"SI",value:"SI",code:"+386"},{label:"SB",value:"SB",code:"+677"},{label:"SO",value:"SO",code:"+252"},{label:"ZA",value:"ZA",code:"+27"},{label:"KR",value:"KR",code:"+82"},{label:"SS",value:"SS",code:"+211"},{label:"ES",value:"ES",code:"+34"},{label:"LK",value:"LK",code:"+94"},{label:"SD",value:"SD",code:"+249"},{label:"SR",value:"SR",code:"+597"},{label:"SJ",value:"SJ",code:"+47"},{label:"SZ",value:"SZ",code:"+268"},{label:"SE",value:"SE",code:"+46"},{label:"CH",value:"CH",code:"+41"},{label:"SY",value:"SY",code:"+963"},{label:"TW",value:"TW",code:"+886"},{label:"TJ",value:"TJ",code:"+992"},{label:"TZ",value:"TZ",code:"+255"},{label:"TH",value:"TH",code:"+66"},{label:"TG",value:"TG",code:"+228"},{label:"TK",value:"TK",code:"+690"},{label:"TO",value:"TO",code:"+676"},{label:"TT",value:"TT",code:"+1868"},{label:"TN",value:"TN",code:"+216"},{label:"TR",value:"TR",code:"+90"},{label:"TM",value:"TM",code:"+993"},{label:"TC",value:"TC",code:"+1649"},{label:"TV",value:"TV",code:"+688"},{label:"VI",value:"VI",code:"+1340"},{label:"UG",value:"UG",code:"+256"},{label:"UA",value:"UA",code:"+380"},{label:"AE",value:"AE",code:"+971"},{label:"GB",value:"GB",code:"+44"},{label:"US",value:"US",code:"+1"},{label:"UY",value:"UY",code:"+598"},{label:"UZ",value:"UZ",code:"+998"},{label:"VU",value:"VU",code:"+678"},{label:"VA",value:"VA",code:"+379"},{label:"VE",value:"VE",code:"+58"},{label:"VN",value:"VN",code:"+84"},{label:"WF",value:"WF",code:"+681"},{label:"EH",value:"EH",code:"+212"},{label:"YE",value:"YE",code:"+967"},{label:"ZM",value:"ZM",code:"+260"},{label:"ZW",value:"ZW",code:"+263"}];function hu(){return yt` <svg
|
|
2954
2954
|
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
|
2955
2955
|
xmlns="http://www.w3.org/2000/svg"
|
|
2956
2956
|
width="24"
|
|
@@ -3145,7 +3145,7 @@ body {
|
|
|
3145
3145
|
${V(e)}
|
|
3146
3146
|
class="${u(lt.field,lt.typography,lt.surface,this.customClass)}"
|
|
3147
3147
|
/>
|
|
3148
|
-
`}};St([nt("input")],ft.prototype,"inputElement",2);St([a({type:Boolean})],ft.prototype,"disabled",2);St([a({type:String})],ft.prototype,"type",2);St([a({type:String})],ft.prototype,"placeholder",2);St([a({type:String})],ft.prototype,"defaultValue",2);St([a({type:String})],ft.prototype,"value",2);St([a({type:String,attribute:"data-key"})],ft.prototype,"dataKey",2);St([a({type:String})],ft.prototype,"country",2);St([a({type:String})],ft.prototype,"countryCode",2);St([a({type:String})],ft.prototype,"selectedLabel",2);St([k()],ft.prototype,"rawTelValue",2);St([k()],ft.prototype,"showPassword",2);ft=St([
|
|
3148
|
+
`}};St([nt("input")],ft.prototype,"inputElement",2);St([a({type:Boolean})],ft.prototype,"disabled",2);St([a({type:String})],ft.prototype,"type",2);St([a({type:String})],ft.prototype,"placeholder",2);St([a({type:String})],ft.prototype,"defaultValue",2);St([a({type:String})],ft.prototype,"value",2);St([a({type:String,attribute:"data-key"})],ft.prototype,"dataKey",2);St([a({type:String})],ft.prototype,"country",2);St([a({type:String})],ft.prototype,"countryCode",2);St([a({type:String})],ft.prototype,"selectedLabel",2);St([k()],ft.prototype,"rawTelValue",2);St([k()],ft.prototype,"showPassword",2);ft=St([h("rtg-input")],ft);const _u=["rtg-flex rtg-items-center rtg-gap-label-space-gap","rtg-text-label-font rtg-font-label-font-weight","rtg-select-none","group-data-[disabled=true]:rtg-pointer-events-none group-data-[disabled=true]:rtg-opacity-label-opacity-disabled","peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-label-opacity-disabled"];var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Pl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Su(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Cu(t,o,r),r};let Ys=class extends m{constructor(){super(...arguments),this.for=""}getAttributesToExclude(){return["for","data-testid","class"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
3149
3149
|
<label
|
|
3150
3150
|
${V(e)}
|
|
3151
3151
|
part="label"
|
|
@@ -3155,7 +3155,7 @@ body {
|
|
|
3155
3155
|
<slot></slot>
|
|
3156
3156
|
<!-- Render children without comments -->
|
|
3157
3157
|
</label>
|
|
3158
|
-
`}};Pl([a({type:String})],Ys.prototype,"for",2);Ys=Pl([
|
|
3158
|
+
`}};Pl([a({type:String})],Ys.prototype,"for",2);Ys=Pl([h("rtg-label")],Ys);const qs={root:["rtg-peer","rtg-shrink-0","rtg-size-checkbox-space-size","rtg-bg-checkbox-color-bg","rtg-rounded-checkbox-radius rtg-border-checkbox-width-border rtg-border-checkbox-color-border rtg-outline-none","rtg-shadow-checkbox-shadow","rtg-transition-shadow","data-[state=checked]:rtg-text-checkbox-color-text-checked","data-[state=checked]:rtg-bg-checkbox-color-bg-checked","data-[state=checked]:rtg-border-checkbox-color-border-checked","focus-visible:rtg-border-checkbox-color-border-focus","focus-visible:rtg-ring-checkbox-width-ring-focus focus-visible:rtg-ring-checkbox-color-ring-focus","disabled:rtg-opacity-checkbox-opacity-disabled","disabled:rtg-disabled:cursor-not-allowed","aria-invalid:rtg-border-checkbox-color-border-invalid","aria-invalid:rtg-ring-checkbox-width-ring-invalid aria-invalid:rtg-ring-checkbox-color-ring-invalid"],indicator:["rtg-grid rtg-place-content-center","rtg-text-current","rtg-transition-none"],icon:["rtg-size-checkbox-icon-space-size"]};var $u=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Rr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Eu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&$u(t,o,r),r};let be=class extends ${constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1}_onClick(e){e.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}createRenderRoot(){return this}render(){return c`
|
|
3159
3159
|
<button
|
|
3160
3160
|
part="checkbox"
|
|
3161
3161
|
data-testid="checkbox-atom"
|
|
@@ -3183,7 +3183,7 @@ body {
|
|
|
3183
3183
|
<polyline points="20 6 9 17 4 12"></polyline></svg
|
|
3184
3184
|
></span>`:I}
|
|
3185
3185
|
</button>
|
|
3186
|
-
`}};Rr([a({type:Boolean})],be.prototype,"disabled",2);Rr([a({type:Boolean})],be.prototype,"checked",2);Rr([a({type:String})],be.prototype,"type",2);Rr([a({type:String})],be.prototype,"value",2);Rr([a({type:Boolean})],be.prototype,"required",2);be=Rr([
|
|
3186
|
+
`}};Rr([a({type:Boolean})],be.prototype,"disabled",2);Rr([a({type:Boolean})],be.prototype,"checked",2);Rr([a({type:String})],be.prototype,"type",2);Rr([a({type:String})],be.prototype,"value",2);Rr([a({type:Boolean})],be.prototype,"required",2);be=Rr([h("rtg-checkbox")],be);const Vi={avatar:["rtg-relative rtg-overflow-hidden","rtg-flex rtg-shrink-0","rtg-size-avatar-space-size","rtg-rounded-avatar-radius"],avatarImage:["rtg-aspect-square","rtg-size-avatar-image-space-size"],avatarFallback:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-avatar-fallback-space-size","rtg-text-avatar-fallback-font-size rtg-font-avatar-fallback-font-weight rtg-text-avatar-fallback-color-text","rtg-bg-avatar-fallback-color-bg","rtg-rounded-avatar-fallback-radius"]};var ku=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,Il=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ru(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ku(t,o,r),r};let Zs=class extends m{createRenderRoot(){return this}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.observeStyleAndClassSync(this.spanElement),this.style.setProperty("width","100%"),this.style.setProperty("height","100%")}render(){const e=this.customStyle||"",t=this.customClass||"",o=this.getFilteredAttributes();return c`
|
|
3187
3187
|
<span
|
|
3188
3188
|
${V(o)}
|
|
3189
3189
|
class="${u(Vi.avatarFallback,t)}"
|
|
@@ -3192,7 +3192,7 @@ body {
|
|
|
3192
3192
|
>
|
|
3193
3193
|
<slot></slot>
|
|
3194
3194
|
</span>
|
|
3195
|
-
`}};Il([nt("span")],Zs.prototype,"spanElement",2);Zs=Il([
|
|
3195
|
+
`}};Il([nt("span")],Zs.prototype,"spanElement",2);Zs=Il([h("rtg-avatar-fallback")],Zs);var Ou=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,as=(e,t,o,s)=>{for(var r=s>1?void 0:s?Au(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Ou(t,o,r),r};let io=class extends m{constructor(){super(...arguments),this.alt="@shadcn",this.src="https://github.com/shadcn.png"}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.observeStyleAndClassSync(this.imgElement)}createRenderRoot(){return this}render(){const e=this.customStyle||"",t=this.customClass||"",o=this.getFilteredAttributes();return c`
|
|
3196
3196
|
<img
|
|
3197
3197
|
${V(o)}
|
|
3198
3198
|
part="avatar-image"
|
|
@@ -3201,7 +3201,7 @@ body {
|
|
|
3201
3201
|
src="${this.src}"
|
|
3202
3202
|
style="${e}"
|
|
3203
3203
|
/>
|
|
3204
|
-
`}};as([a({type:String})],io.prototype,"alt",2);as([a({type:String})],io.prototype,"src",2);as([nt("img")],io.prototype,"imgElement",2);io=as([
|
|
3204
|
+
`}};as([a({type:String})],io.prototype,"alt",2);as([a({type:String})],io.prototype,"src",2);as([nt("img")],io.prototype,"imgElement",2);io=as([h("rtg-avatar-image")],io);var Pu=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,Tl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Iu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Pu(t,o,r),r};let Xs=class extends m{createRenderRoot(){return this}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.moveLightDomChildrenInto(this.spanElement),this.removeParentAttributes(),this.observeStyleAndClassSync(this.spanElement)}render(){const e=this.customStyle||"",t=this.customClass||"",o=this.getFilteredAttributes();return c`
|
|
3205
3205
|
<span
|
|
3206
3206
|
${V(o)}
|
|
3207
3207
|
part="avatar"
|
|
@@ -3209,9 +3209,9 @@ body {
|
|
|
3209
3209
|
style="${e}"
|
|
3210
3210
|
>
|
|
3211
3211
|
</span>
|
|
3212
|
-
`}};Tl([nt("span")],Xs.prototype,"spanElement",2);Xs=Tl([
|
|
3212
|
+
`}};Tl([nt("span")],Xs.prototype,"spanElement",2);Xs=Tl([h("rtg-avatar")],Xs);const Qn={host:["rtg-block rtg-relative rtg-w-full"],self:["rtg-absolute rtg-inset-0"]};var Tu=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Ll=(e,t,o,s)=>{for(var r=s>1?void 0:s?Lu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Tu(t,o,r),r};let Js=class extends ${constructor(){super(...arguments),this.ratio=1/1,this._userClass="",this._userStyle=""}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._userClass=this.getAttribute("class")??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=u(this.className,Qn.host)}updated(e){e.has("ratio")&&(this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%")}firstUpdated(){var e;this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%";const t=this.querySelector(".aspect-ratio");if(t){if(this._userClass&&(t.className=u(t.className,this._userClass)),this._userStyle){const o=(e=t.getAttribute("style"))==null?void 0:e.trim(),s=this._userStyle.trim();t.setAttribute("style",[o,s].filter(Boolean).join("; "))}Array.from(this.childNodes).forEach(o=>{o!==t&&t.appendChild(o)})}}render(){return c`
|
|
3213
3213
|
<div class="${u("aspect-ratio",Qn.self)}"></div>
|
|
3214
|
-
`}};Ll([a({type:Number,reflect:!0})],Js.prototype,"ratio",2);Js=Ll([
|
|
3214
|
+
`}};Ll([a({type:Number,reflect:!0})],Js.prototype,"ratio",2);Js=Ll([h("rtg-aspect-ratio")],Js);const ta=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ea=_l,fo=(e,t)=>o=>{var s;if((t==null?void 0:t.variants)==null)return ea(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,n=Object.keys(r).map(p=>{const b=o==null?void 0:o[p],f=i==null?void 0:i[p];if(b===null)return null;const y=ta(b)||ta(f);return r[p][y]}),l=o&&Object.entries(o).reduce((p,b)=>{let[f,y]=b;return y===void 0||(p[f]=y),p},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,b)=>{let{class:f,className:y,...x}=b;return Object.entries(x).every(_=>{let[C,w]=_;return Array.isArray(w)?w.includes({...i,...l}[C]):{...i,...l}[C]===w})?[...p,f,y]:p},[]);return ea(e,n,d,o==null?void 0:o.class,o==null?void 0:o.className)},Du=fo(["rtg-overflow-hidden","rtg-inline-flex rtg-shrink-0 rtg-gap-badge-space-gap rtg-justify-center rtg-items-center","rtg-px-badge-space-px rtg-py-badge-space-py","rtg-w-badge-space-w","rtg-text-badge-font-size rtg-font-badge-font-weight rtg-whitespace-nowrap","rtg-rounded-badge-radius rtg-border-badge-width-border","rtg-transition-[color,box-shadow]","focus-visible:rtg-border-badge-color-border-focus focus-visible:rtg-ring-badge-width-ring-focus","aria-invalid:rtg-border-badge-color-border-invalid aria-invalid:rtg-ring-badge-width-ring-invalid aria-invalid:rtg-ring-badge-color-ring-invalid","[&_svg]:rtg-size-badge-icon-space-size [&_svg]:rtg-pointer-events-none","[&>a]:rtg-inline-flex [&>a]:rtg-items-center [&>a]:rtg-gap-badge-space-gap [&>a]:rtg-no-underline [&>a]:rtg-text-inherit"],{variants:{variant:{default:["rtg-border-badge-default-color-border","rtg-bg-badge-default-color-bg rtg-text-badge-default-color-text","has-[a:hover]:rtg-bg-badge-default-color-bg-hover","focus-visible:rtg-ring-badge-default-color-ring-focus"],secondary:["rtg-border-badge-secondary-color-border","rtg-bg-badge-secondary-color-bg rtg-text-badge-secondary-color-text","has-[a:hover]:rtg-bg-badge-secondary-color-bg-hover","focus-visible:rtg-ring-badge-secondary-color-ring-focus"],destructive:["rtg-border-badge-destructive-color-border","rtg-bg-badge-destructive-color-bg rtg-text-badge-destructive-color-text","has-[a:hover]:rtg-bg-badge-destructive-color-bg-hover","focus-visible:rtg-ring-badge-destructive-color-ring-focus"],outline:["rtg-border-badge-outline-color-border","rtg-text-badge-outline-color-text","has-[a:hover]:rtg-bg-badge-outline-color-bg-hover has-[a:hover]:rtg-text-badge-outline-color-text-hover","focus-visible:rtg-ring-badge-outline-color-ring-focus"]}},defaultVariants:{variant:"default"}});var zu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,Hi=(e,t,o,s)=>{for(var r=s>1?void 0:s?ju(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&zu(t,o,r),r};let vr=class extends m{constructor(){super(...arguments),this.variant="default",this.id="rtg-badge-id",this._children=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._children=Array.from(this.childNodes)}render(){const e=this.getFilteredAttributes();return c`
|
|
3215
3215
|
<div
|
|
3216
3216
|
${V(e)}
|
|
3217
3217
|
id="${this.id}"
|
|
@@ -3221,7 +3221,7 @@ body {
|
|
|
3221
3221
|
>
|
|
3222
3222
|
${this._children}
|
|
3223
3223
|
</div>
|
|
3224
|
-
`}};vr.badgeVariants=Du;Hi([a({type:String})],vr.prototype,"variant",2);Hi([a({type:String})],vr.prototype,"id",2);vr=Hi([
|
|
3224
|
+
`}};vr.badgeVariants=Du;Hi([a({type:String})],vr.prototype,"variant",2);Hi([a({type:String})],vr.prototype,"id",2);vr=Hi([h("rtg-badge")],vr);const Uu=fo(["rtg-relative rtg-grid rtg-grid-cols-alert-grid-cols rtg-items-start","has-[>svg]:rtg-grid-cols-alert-grid-cols-has-icon","rtg-gap-y-alert-space-gap-y","has-[>svg]:rtg-gap-x-alert-space-gap-x-has-icon","rtg-px-alert-space-px rtg-py-alert-space-py","rtg-w-alert-space-w","rtg-rounded-alert-radius rtg-border-alert-width-border","[&>svg]:rtg-size-alert-icon-space-size [&>svg]:rtg-translate-y-alert-icon-space-translate-y"],{variants:{variant:{default:["rtg-bg-alert-default-color-bg rtg-border-alert-default-color-border","[&>svg]:rtg-text-alert-default-icon-color-text","[&>.alert-title]:rtg-text-alert-title-default-color-text","[&>.alert-description]:rtg-text-alert-description-default-color-text"],brand:["rtg-bg-alert-brand-color-bg rtg-border-alert-brand-color-border","[&>svg]:rtg-text-alert-brand-icon-color-text","[&>.alert-title]:rtg-text-alert-title-brand-color-text","[&>.alert-description]:rtg-text-alert-description-brand-color-text"],destructive:["rtg-bg-alert-destructive-color-bg rtg-border-alert-destructive-color-border","[&>svg]:rtg-text-alert-destructive-icon-color-text","[&>.alert-title]:rtg-text-alert-title-destructive-color-text","[&>.alert-description]:rtg-text-alert-description-destructive-color-text"],success:["rtg-bg-alert-success-color-bg rtg-border-alert-success-color-border","[&>svg]:rtg-text-alert-success-icon-color-text","[&>.alert-title]:rtg-text-alert-title-success-color-text","[&>.alert-description]:rtg-text-alert-description-success-color-text"],warning:["rtg-bg-alert-warning-color-bg rtg-border-alert-warning-color-border","[&>svg]:rtg-text-alert-warning-icon-color-text","[&>.alert-title]:rtg-text-alert-title-warning-color-text","[&>.alert-description]:rtg-text-alert-description-warning-color-text"],info:["rtg-bg-alert-info-color-bg rtg-border-alert-info-color-border","[&>svg]:rtg-text-alert-info-icon-color-text","[&>.alert-title]:rtg-text-alert-title-info-color-text","[&>.alert-description]:rtg-text-alert-description-info-color-text"],"brand-tonal":["rtg-bg-alert-brand-tonal-color-bg rtg-border-alert-brand-tonal-color-border","[&>svg]:rtg-text-alert-brand-icon-color-text","[&>.alert-title]:rtg-text-alert-title-brand-color-text","[&>.alert-description]:rtg-text-alert-description-brand-color-text"],"destructive-tonal":["rtg-bg-alert-destructive-tonal-color-bg rtg-border-alert-destructive-tonal-color-border","[&>svg]:rtg-text-alert-destructive-icon-color-text","[&>.alert-title]:rtg-text-alert-title-destructive-color-text","[&>.alert-description]:rtg-text-alert-description-destructive-color-text"],"success-tonal":["rtg-bg-alert-success-tonal-color-bg rtg-border-alert-success-tonal-color-border","[&>svg]:rtg-text-alert-success-icon-color-text","[&>.alert-title]:rtg-text-alert-title-success-color-text","[&>.alert-description]:rtg-text-alert-description-success-color-text"],"warning-tonal":["rtg-bg-alert-warning-tonal-color-bg rtg-border-alert-warning-tonal-color-border","[&>svg]:rtg-text-alert-warning-icon-color-text","[&>.alert-title]:rtg-text-alert-title-warning-color-text","[&>.alert-description]:rtg-text-alert-description-warning-color-text"],"info-tonal":["rtg-bg-alert-info-tonal-color-bg rtg-border-alert-info-tonal-color-border","[&>svg]:rtg-text-alert-info-icon-color-text","[&>.alert-title]:rtg-text-alert-title-info-color-text","[&>.alert-description]:rtg-text-alert-description-info-color-text"]}},defaultVariants:{variant:"default"}}),Ao={alert:Uu,alertTitle:["rtg-col-start-2","rtg-min-h-alert-title-space-min-h","rtg-text-alert-title-font-size rtg-font-alert-title-font-weight rtg-line-clamp-1"],alertDescription:["rtg-grid rtg-col-start-2 rtg-gap-alert-description-space-gap rtg-justify-items-start","rtg-text-alert-description-font-size rtg-font-alert-description-font-weight"]};var Nu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,vo=(e,t,o,s)=>{for(var r=s>1?void 0:s?Mu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Nu(t,o,r),r};let Ue=class extends m{constructor(){super(...arguments),this.title="",this.message="",this.icon="",this.variant="default"}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[role=alert]")}get alertClasses(){return Ao.alert({variant:this.variant})}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.removeParentAttributes(),this.observeStyleAndClassSync(this._containerElement)}render(){const e=this.customStyle||"",t=this.customClass||"";return c`
|
|
3225
3225
|
<div
|
|
3226
3226
|
class="${u(this.alertClasses,this.className,t)}"
|
|
3227
3227
|
style="${e}"
|
|
@@ -3241,7 +3241,7 @@ body {
|
|
|
3241
3241
|
${this.message}
|
|
3242
3242
|
</div>`:""}
|
|
3243
3243
|
</div>
|
|
3244
|
-
`}};Ue.alertVariants=Ao.alert;vo([a({type:String})],Ue.prototype,"title",2);vo([a({type:String})],Ue.prototype,"message",2);vo([a({type:String})],Ue.prototype,"icon",2);vo([a({type:String})],Ue.prototype,"variant",2);Ue=vo([
|
|
3244
|
+
`}};Ue.alertVariants=Ao.alert;vo([a({type:String})],Ue.prototype,"title",2);vo([a({type:String})],Ue.prototype,"message",2);vo([a({type:String})],Ue.prototype,"icon",2);vo([a({type:String})],Ue.prototype,"variant",2);Ue=vo([h("rtg-alert")],Ue);const Fu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Bu(e){const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function qu(e){const t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),o=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),s=e.getDate(),r=e.getFullYear();return`${t}, ${o} ${s}${Bu(s)}, ${r}`}const br=fo(["rtg-inline-flex rtg-items-center rtg-justify-center rtg-shrink-0","rtg-text-button-font-size rtg-font-button-font-weight rtg-whitespace-nowrap","rtg-rounded-button-radius rtg-outline-none","rtg-transition-all","disabled:rtg-opacity-button-opacity-disabled disabled:rtg-pointer-events-none","focus-visible:rtg-border-button-width-border-focus focus-visible:rtg-border-button-color-border-focus focus-visible:rtg-ring-button-width-ring-focus","aria-invalid:rtg-border-button-width-border-invalid aria-invalid:rtg-border-button-color-border-invalid","aria-invalid:rtg-ring-button-width-ring-invalid aria-invalid:rtg-ring-button-color-ring-invalid",'[&_svg]:rtg-pointer-events-none [&_svg:not([class*="rtg-size-"])]:rtg-size-button-icon-space-size [&_svg]:rtg-shrink-0'],{variants:{variant:{default:["rtg-bg-button-default-color-bg rtg-text-button-default-color-text","hover:rtg-bg-button-default-color-bg-hover","focus-visible:rtg-ring-button-default-color-ring-focus"],destructive:["rtg-bg-button-destructive-color-bg rtg-text-button-destructive-color-text","hover:rtg-bg-button-destructive-color-bg-hover","focus-visible:rtg-ring-button-destructive-color-ring-focus"],outline:["rtg-bg-button-outline-color-bg rtg-text-button-outline-color-text","rtg-border-button-outline-width-border rtg-border-button-outline-color-border","rtg-shadow-button-outline-shadow","hover:rtg-bg-button-outline-color-bg-hover hover:rtg-text-button-outline-color-text-hover","focus-visible:rtg-ring-button-outline-color-ring-focus"],secondary:["rtg-bg-button-secondary-color-bg rtg-text-button-secondary-color-text","hover:rtg-bg-button-secondary-color-bg-hover","focus-visible:rtg-ring-button-secondary-color-ring-focus"],ghost:["rtg-text-button-ghost-color-text","hover:rtg-bg-button-ghost-color-bg-hover hover:rtg-text-button-ghost-color-text-hover","focus-visible:rtg-ring-button-ghost-color-ring-focus"],link:["rtg-text-button-link-color-text rtg-underline-offset-4","hover:rtg-underline","focus-visible:rtg-ring-button-link-color-ring-focus"]},size:{default:["rtg-h-button-space-h-default","rtg-gap-button-space-gap-default rtg-px-button-space-px-default rtg-py-button-space-py-default","has-[>svg]:rtg-px-button-space-px-default-has-icon"],sm:["rtg-h-button-space-h-sm","rtg-gap-button-space-gap-sm rtg-px-button-space-px-sm","has-[>svg]:rtg-px-button-space-px-sm-has-icon"],lg:["rtg-h-button-space-h-lg","rtg-gap-button-space-gap-lg rtg-px-button-space-px-lg","has-[>svg]:rtg-px-button-space-px-lg-has-icon"],icon:"rtg-size-button-space-size-icon","icon-sm":"rtg-size-button-space-size-icon-sm","icon-lg":"rtg-size-button-space-size-icon-lg"}},defaultVariants:{variant:"default",size:"default"}}),H={host:["rtg-contents"],root:["group/calendar","rtg-relative","rtg-p-calendar-space-p","rtg-w-fit","rtg-bg-calendar-color-bg"],months:["rtg-flex rtg-relative","rtg-flex-col md:rtg-flex-row rtg-gap-calendar-months-space-gap"],nav:["rtg-flex rtg-absolute rtg-top-0 rtg-inset-x-0","rtg-gap-calendar-nav-space-gap rtg-justify-between rtg-items-center","rtg-w-full"],month:["rtg-flex","rtg-flex-col rtg-gap-calendar-month-space-gap","rtg-w-full"],buttonPrevious:[u(br({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[u(br({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-next-opacity-disabled"],chevron:["rtg-size-calendar-chevron-space-size"],monthCaption:["rtg-flex rtg-justify-center rtg-items-center","rtg-px-calendar-month-caption-space-px","rtg-w-full rtg-h-calendar-month-caption-space-h"],captionLabel:["rtg-text-calendar-caption-label-font rtg-font-calendar-caption-label-font-weight","rtg-select-none"],monthGrid:["rtg-w-full","rtg-border-collapse"],weekdays:["rtg-flex"],weekday:["rtg-flex-1","rtg-text-calendar-weekday-font rtg-font-calendar-weekday-font-weight rtg-text-calendar-weekday-color-text","rtg-rounded-calendar-weekday-radius","rtg-select-none"],weeks:[""],week:["rtg-flex","rtg-mt-calendar-week-space-mt","rtg-w-full"],day:{base:["group/day","rtg-aspect-square rtg-relative","rtg-w-full rtg-h-full","rtg-p-calendar-day-space-p","rtg-text-center","rtg-select-none"],today:["rtg-bg-calendar-day-today-color-bg","rtg-rounded-calendar-day-radius"],selected:{common:["rtg-bg-calendar-day-color-bg-selected"],single:["rtg-rounded-calendar-day-radius"],range:{start:["rtg-rounded-l-calendar-day-radius"],middle:["rtg-rounded-none"],end:["rtg-rounded-r-calendar-day-radius"]}},index:{first:["rtg-rounded-l-calendar-day-radius"],last:["rtg-rounded-r-calendar-day-radius"]}},dayButton:{base:[br({variant:"ghost",size:"icon"}),"rtg-aspect-square rtg-flex","rtg-flex-col rtg-gap-calendar-day-button-space-gap","rtg-size-auto rtg-w-full rtg-min-w-calendar-day-button-space-min-w","rtg-text-calendar-day-button-font rtg-font-calendar-day-button-font-weight","disabled:rtg-text-calendar-day-button-color-text-disabled disabled:rtg-opacity-calendar-day-button-opacity-disabled","data-[selected-single=true]:rtg-text-calendar-day-button-color-text-single-selected data-[selected-single=true]:rtg-bg-calendar-day-button-color-bg-single-selected","data-[range-start=true]:rtg-text-calendar-day-button-color-text-range-start data-[range-start=true]:rtg-bg-calendar-day-button-color-bg-range-start","data-[range-middle=true]:rtg-text-calendar-day-button-color-text-range-middle data-[range-middle=true]:rtg-bg-calendar-day-button-color-bg-range-middle","data-[range-end=true]:rtg-text-calendar-day-button-color-text-range-end data-[range-end=true]:rtg-bg-calendar-day-button-color-bg-range-end","[&>span]:rtg-text-calendar-day-button-span-font [&>span]:rtg-opacity-calendar-day-button-span-opacity","group-data-[focused=true]/day:rtg-relative group-data-[focused=true]/day:rtg-z-10","group-data-[focused=true]/day:rtg-border-calendar-day-width-border-focus group-data-[focused=true]/day:rtg-border-calendar-day-color-border-focus","group-data-[focused=true]/day:rtg-ring-calendar-day-width-ring-focus group-data-[focused=true]/day:rtg-ring-calendar-day-color-ring-focus"],outside:["rtg-text-calendar-day-button-outside-color-text"],today:["rtg-text-calendar-day-button-today-color-text","rtg-bg-calendar-day-button-today-color-bg"]}};var Vu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,yo=(e,t,o,s)=>{for(var r=s>1?void 0:s?Hu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Vu(t,o,r),r};let yr=class extends ${constructor(){super(...arguments),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.mode="single",this._userClass="",this._userStyle=""}getDaysInMonth(e,t){return new Date(e,t+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,t){if(!t){const o=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);o.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=o,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=o,this.selectedEndDate=null):o>=this.selectedStartDate?this.selectedEndDate=o:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=o)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(e,t){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:t?e>this.selectedStartDate&&e<this.selectedEndDate:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._userClass=((e=this.getAttribute("class"))==null?void 0:e.replace(u(H.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=u(H.host)}firstUpdated(e){var t;const o=this.querySelector(".calendar");if(o&&(this._userClass&&(o.className=u("calendar",H.root,this._userClass)),this._userStyle)){const s=(t=o.getAttribute("style"))==null?void 0:t.trim(),r=this._userStyle.trim();o.setAttribute("style",[s,r].filter(Boolean).join("; "))}}render(){const e=this.currentDate.getFullYear(),t=this.currentDate.getMonth(),o=this.getDaysInMonth(e,t),s=new Date(e,t,1).getDay(),r=new Date(e,t,0).getDate(),i=[];for(let p=s-1;p>=0;p--)i.push({day:String(r-p),month:t-1,isOutside:!0});for(let p=1;p<=o;p++)i.push({day:String(p),month:t,isOutside:!1});const n=i.length%7;if(n!==0){const p=7-n;for(let b=1;b<=p;b++)i.push({day:String(b),month:t+1,isOutside:!0})}const l=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"}),d=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"});return c`
|
|
3245
3245
|
<div
|
|
3246
3246
|
class=${u("calendar",H.root,this._userClass)}
|
|
3247
3247
|
data-slot="calendar"
|
|
@@ -3315,20 +3315,20 @@ body {
|
|
|
3315
3315
|
>
|
|
3316
3316
|
<thead aria-hidden="true">
|
|
3317
3317
|
<tr class=${u("calendar-weekdays",H.weekdays)}>
|
|
3318
|
-
${Fu.map(
|
|
3318
|
+
${Fu.map(p=>c`
|
|
3319
3319
|
<th
|
|
3320
3320
|
class=${u("calendar-weekday",H.weekday)}
|
|
3321
3321
|
scope="col"
|
|
3322
|
-
aria-label=${
|
|
3322
|
+
aria-label=${p}
|
|
3323
3323
|
>
|
|
3324
|
-
${
|
|
3324
|
+
${p.slice(0,2)}
|
|
3325
3325
|
</th>
|
|
3326
3326
|
`)}
|
|
3327
3327
|
</tr>
|
|
3328
3328
|
</thead>
|
|
3329
3329
|
|
|
3330
3330
|
<tbody class=${u("calendar-weeks",H.weeks)}>
|
|
3331
|
-
${Array.from({length:Math.ceil(i.length/7)},(
|
|
3331
|
+
${Array.from({length:Math.ceil(i.length/7)},(p,b)=>c`
|
|
3332
3332
|
<tr class=${u("calendar-week",H.week)}>
|
|
3333
3333
|
${i.slice(b*7,(b+1)*7).map((f,y)=>{var x,_,C;const w=new Date(this.currentDate.getFullYear(),f.month,Number(f.day)),E=!1,P=w.toDateString()===new Date().toDateString(),q=this.mode==="range"&&w.toDateString()===((x=this.selectedStartDate)==null?void 0:x.toDateString()),M=this.mode==="range"&&this.isDayInRange(w,!0),A=this.mode==="range"&&w.toDateString()===((_=this.selectedEndDate)==null?void 0:_.toDateString()),Z=this.mode==="single"&&w.toDateString()===((C=this.selectedStartDate)==null?void 0:C.toDateString()),Y=Z||q||M||A,$t=y===0,st=y===6;let wt=P?"Today, ":"";return wt+=qu(w),wt+=Y?", selected":"",c`
|
|
3334
3334
|
<td
|
|
@@ -3370,21 +3370,21 @@ body {
|
|
|
3370
3370
|
</div>
|
|
3371
3371
|
</div>
|
|
3372
3372
|
</div>
|
|
3373
|
-
`}};yo([a({type:Object})],yr.prototype,"currentDate",2);yo([a({type:Object})],yr.prototype,"selectedStartDate",2);yo([a({type:Object})],yr.prototype,"selectedEndDate",2);yo([a({type:String})],yr.prototype,"mode",2);yr=yo([
|
|
3373
|
+
`}};yo([a({type:Object})],yr.prototype,"currentDate",2);yo([a({type:Object})],yr.prototype,"selectedStartDate",2);yo([a({type:Object})],yr.prototype,"selectedEndDate",2);yo([a({type:String})],yr.prototype,"mode",2);yr=yo([h("rtg-calendar")],yr);const Gi={root:["rtg-relative"],trigger:[""],content:["rtg-absolute rtg-z-50","rtg-p-popover-content-space-p","rtg-w-popover-content-space-w","rtg-text-popover-content-color-text","rtg-bg-popover-content-color-bg","rtg-rounded-popover-content-radius rtg-border-popover-content-width-border rtg-border-popover-content-color-border rtg-outline-hidden","rtg-shadow-popover-content-shadow",'data-[state="open"]:rtg-block data-[state="closed"]:rtg-hidden','data-[state="open"]:rtg-animate-in data-[state="open"]:rtg-fade-in-0 data-[state="open"]:rtg-zoom-in-95','data-[state="closed"]:rtg-animate-out data-[state="closed"]:rtg-fade-out-0 data-[state="closed"]:rtg-zoom-out-95',"rtg-translate-y-0.5"]};var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,wo=(e,t,o,s)=>{for(var r=s>1?void 0:s?Wu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Gu(t,o,r),r};let wr=class extends m{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.state="closed"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof no);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(e){const t=this._popover;t&&!t.contains(e.target)&&(t.isOpen=!1)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var t;(t=this._popover)!=null&&t.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(e){e.stopPropagation()}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
3374
3374
|
<div
|
|
3375
3375
|
part="popover-content"
|
|
3376
3376
|
data-state=${this.state}
|
|
3377
3377
|
class=${u(Gi.content,this.className)}
|
|
3378
3378
|
@click="${this.preventClickPropagation}"
|
|
3379
3379
|
></div>
|
|
3380
|
-
`}};wo([a({type:Boolean})],wr.prototype,"enableDefaultStyle",2);wo([a({type:Boolean})],wr.prototype,"styleContent",2);wo([a({type:String})],wr.prototype,"side",2);wo([a({attribute:"data-state",type:String})],wr.prototype,"state",2);wr=wo([
|
|
3380
|
+
`}};wo([a({type:Boolean})],wr.prototype,"enableDefaultStyle",2);wo([a({type:Boolean})],wr.prototype,"styleContent",2);wo([a({type:String})],wr.prototype,"side",2);wo([a({attribute:"data-state",type:String})],wr.prototype,"state",2);wr=wo([h("rtg-popover-content")],wr);var Ku=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ra=class extends m{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof no);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{this.handleClick(),t.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return c`
|
|
3381
3381
|
<div
|
|
3382
3382
|
part="popover-trigger"
|
|
3383
3383
|
class=${u(Gi.trigger,this.className)}
|
|
3384
3384
|
></div>
|
|
3385
|
-
`}};ra=Ku([
|
|
3385
|
+
`}};ra=Ku([h("rtg-popover-trigger")],ra);var Yu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Dl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Zu(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Yu(t,o,r),r};let no=class extends m{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=popover]")}get _contentElement(){return this.querySelector("rtg-popover-content")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){this._contentElement.state=this.isOpen?"open":"closed",this._contentElement.requestUpdate()}render(){return c`
|
|
3386
3386
|
<div part="popover" class=${u(Gi.root,this.className)}></div>
|
|
3387
|
-
`}};Dl([k()],no.prototype,"isOpen",2);no=Dl([
|
|
3387
|
+
`}};Dl([k()],no.prototype,"isOpen",2);no=Dl([h("rtg-popover")],no);const Ro={root:[""],trigger:[""],triggerButton:[br({variant:"outline"}).replace("rtg-justify-center",""),"rtg-justify-start","rtg-w-date-picker-trigger-button-space-w","rtg-text-left rtg-font-date-picker-trigger-button-font-weight","data-[empty=true]:rtg-text-date-picker-trigger-button-color-text-empty"],content:["rtg-p-date-picker-content-space-p","rtg-w-auto"]};var Xu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,zl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ju(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Xu(t,o,r),r};let Qs=class extends ${constructor(){super(...arguments),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return c`
|
|
3388
3388
|
<rtg-popover
|
|
3389
3389
|
class=${u("date-picker",Ro.root,this.className)}
|
|
3390
3390
|
@date-selected=${this.handleDateSelected}
|
|
@@ -3427,7 +3427,7 @@ body {
|
|
|
3427
3427
|
<rtg-calendar mode="single"></rtg-calendar>
|
|
3428
3428
|
</rtg-popover-content>
|
|
3429
3429
|
</rtg-popover>
|
|
3430
|
-
`}};zl([a({type:Object})],Qs.prototype,"selectedDate",2);Qs=zl([
|
|
3430
|
+
`}};zl([a({type:Object})],Qs.prototype,"selectedDate",2);Qs=zl([h("rtg-date-picker")],Qs);const ao={base:[""],item:["rtg-border-b-accordion-item-width-border rtg-border-b-accordion-item-color-border"],trigger:["rtg-flex rtg-flex-1 rtg-gap-accordion-trigger-space-gap rtg-justify-between rtg-items-start","rtg-py-accordion-trigger-space-py","rtg-w-accordion-trigger-space-w","rtg-rounded-accordion-trigger-radius rtg-outline-none","rtg-text-accordion-trigger-font rtg-font-accordion-trigger-font-weight rtg-text-left","rtg-transition-all","hover:rtg-underline","focus-visible:rtg-border-accordion-trigger-width-border-focus focus-visible:rtg-border-accordion-trigger-color-border-focus","focus-visible:rtg-ring-accordion-trigger-width-ring-focus focus-visible:rtg-ring-accordion-trigger-color-ring-focus","disabled:rtg-pointer-events-none disabled:rtg-opacity-50","[&[data-state=open]>svg]:rtg-rotate-180"],chevron:["rtg-shrink-0","rtg-size-accordion-trigger-icon-space-size","rtg-text-accordion-trigger-icon-color-text","rtg-translate-y-0.5 rtg-transition-transform rtg-duration-200","rtg-pointer-events-none"],content:["rtg-overflow-hidden","rtg-text-accordion-content-font rtg-font-accordion-content-font-weight","data-[state=closed]:rtg-h-accordion-content-space-h-closed","data-[state=closed]:rtg-animate-accordion-content-animate-closed","data-[state=open]:rtg-animate-accordion-content-animate-open","data-[state=open]:rtg-h-fit","[&>div]:rtg-pt-accordion-content-div-space-pt [&>div]:rtg-pb-accordion-content-div-space-pb"]};var Qu=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ti=class extends m{constructor(){super(...arguments),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof xr);)e=e.parentElement;return e}get _item(){let e=this.parentElement;for(;e&&!(e instanceof Vt);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var e;const t=this.hasActiveState();return c`
|
|
3431
3431
|
<div
|
|
3432
3432
|
part="accordion-content"
|
|
3433
3433
|
role="region"
|
|
@@ -3438,7 +3438,7 @@ body {
|
|
|
3438
3438
|
>
|
|
3439
3439
|
<div>${Fi(((e=this.textContent)==null?void 0:e.trim())||"")}</div>
|
|
3440
3440
|
</div>
|
|
3441
|
-
`}};ti=Qu([
|
|
3441
|
+
`}};ti=Qu([h("rtg-accordion-content")],ti);var tp=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Wi=(e,t,o,s)=>{for(var r=s>1?void 0:s?ep(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&tp(t,o,r),r};let Vt=class extends m{constructor(){super(...arguments),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=e=>{const t=e.target.closest("rtg-accordion-trigger");!t||!this._accordion||(e.preventDefault(),e.stopPropagation(),this._accordion.raiseEvent(this.value),t.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof xr);)e=e.parentElement;return e}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(e=>e instanceof ei||e instanceof ti)}render(){var e;const t=(e=this._accordion)==null?void 0:e.selectedItems.includes(this.value),o=this._initialChildren.length?this._initialChildren:this.filterChildren();return c`
|
|
3442
3442
|
<div
|
|
3443
3443
|
data-state=${t?"open":"closed"}
|
|
3444
3444
|
class="${u(ao.item,this.className)}"
|
|
@@ -3449,7 +3449,7 @@ body {
|
|
|
3449
3449
|
>
|
|
3450
3450
|
${o}
|
|
3451
3451
|
</div>
|
|
3452
|
-
`}};Wi([a({type:String})],Vt.prototype,"value",2);Wi([a({type:Number})],Vt.prototype,"tabindex",2);Vt=Wi([
|
|
3452
|
+
`}};Wi([a({type:String})],Vt.prototype,"value",2);Wi([a({type:Number})],Vt.prototype,"tabindex",2);Vt=Wi([h("rtg-accordion-item")],Vt);var rp=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ei=class extends m{get _item(){let e=this.parentElement;for(;e&&!(e instanceof Vt);)e=e.parentElement;return e}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof xr);)e=e.parentElement;return e}getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var e;const t=this.hasActiveState();return c`
|
|
3453
3453
|
<button
|
|
3454
3454
|
type="button"
|
|
3455
3455
|
part="accordion-trigger"
|
|
@@ -3478,7 +3478,7 @@ body {
|
|
|
3478
3478
|
<path d="m6 9 6 6 6-6" />
|
|
3479
3479
|
</svg>
|
|
3480
3480
|
</button>
|
|
3481
|
-
`}};ei=
|
|
3481
|
+
`}};ei=rp([h("rtg-accordion-trigger")],ei);var Te=(e=>(e.MULTIPLE="multiple",e.SINGLE="single",e))(Te||{}),op=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,jl=(e,t,o,s)=>{for(var r=s>1?void 0:s?sp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&op(t,o,r),r};let xr=class extends m{constructor(){super(...arguments),this.type=Te.MULTIPLE,this.selectedItems=[],this._initialChildren=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._initialChildren=Array.from(this.children).filter(e=>e instanceof Vt)}willUpdate(e){e.has("type")&&(this.type===Te.SINGLE&&this.selectedItems.length>1&&(this.selectedItems=this.selectedItems.slice(0,1)),this._initialChildren.forEach(t=>{t instanceof Vt&&t.requestUpdate()}))}updated(e){e.has("type")&&this._initialChildren.forEach(t=>{t instanceof Vt&&t.requestUpdate()})}setSelectedItems(e){const t=this.selectedItems.indexOf(e);if(t>-1)if(this.type===Te.SINGLE)this.selectedItems=[];else if(this.type===Te.MULTIPLE)this.selectedItems.splice(t,1);else throw new Error("Invalid accordion type");else if(this.type===Te.SINGLE)this.selectedItems=[e];else if(this.type===Te.MULTIPLE)this.selectedItems.push(e);else throw new Error("Invalid accordion type")}raiseEvent(e){this.setSelectedItems(e),this.dispatchEvent(new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}}))}render(){const e=this._initialChildren.length?this._initialChildren:Array.from(this.children).filter(t=>t instanceof Vt);return c`
|
|
3482
3482
|
<div
|
|
3483
3483
|
data-orientation="vertical"
|
|
3484
3484
|
${V(this.getFilteredAttributes())}
|
|
@@ -3487,7 +3487,7 @@ body {
|
|
|
3487
3487
|
>
|
|
3488
3488
|
${e}
|
|
3489
3489
|
</div>
|
|
3490
|
-
`}};jl([a({type:String})],xr.prototype,"type",2);xr=jl([
|
|
3490
|
+
`}};jl([a({type:String})],xr.prototype,"type",2);xr=jl([h("rtg-accordion")],xr);const oa={root:["rtg-relative rtg-overflow-hidden","rtg-w-progress-space-w rtg-h-progress-space-h","rtg-bg-progress-color-bg","rtg-rounded-progress-radius"],indicator:["rtg-flex-1","rtg-w-progress-indicator-space-w rtg-h-progress-indicator-space-h","rtg-bg-progress-indicator-color-bg","rtg-transition-all"]};var ip=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Ul=(e,t,o,s)=>{for(var r=s>1?void 0:s?np(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ip(t,o,r),r};let ri=class extends ${constructor(){super(...arguments),this.value=15}createRenderRoot(){return this}render(){return c`
|
|
3491
3491
|
<div
|
|
3492
3492
|
part="progress"
|
|
3493
3493
|
aria-valuenow="${this.value}"
|
|
@@ -3505,7 +3505,7 @@ body {
|
|
|
3505
3505
|
style="transform: translateX(-${100-(this.value||0)}%);"
|
|
3506
3506
|
></div>
|
|
3507
3507
|
</div>
|
|
3508
|
-
`}};Ul([a({type:Number})],ri.prototype,"value",2);ri=Ul([
|
|
3508
|
+
`}};Ul([a({type:Number})],ri.prototype,"value",2);ri=Ul([h("rtg-progress")],ri);var ap=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,Je=(e,t,o,s)=>{for(var r=s>1?void 0:s?lp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ap(t,o,r),r};let jt=class extends m{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}createRenderRoot(){return this}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid","custom-class"]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(){this.moveLightDomChildrenInto(this.buttonElement),this.removeParentAttributes(),this.observeStyleAndClassSync(this.buttonElement)}updated(e){this.removeParentAttributes()}render(){const e=this.getFilteredAttributes(),t=this.customStyle||"",o=this.customClass||"";return c`
|
|
3509
3509
|
<button
|
|
3510
3510
|
part="button"
|
|
3511
3511
|
type="${this.type}"
|
|
@@ -3515,43 +3515,43 @@ body {
|
|
|
3515
3515
|
style="${t}"
|
|
3516
3516
|
@click="${this.click}"
|
|
3517
3517
|
></button>
|
|
3518
|
-
`}};jt.buttonVariants=br;Je([a({type:Function})],jt.prototype,"click",2);Je([a({type:Boolean})],jt.prototype,"disabled",2);Je([a({type:String})],jt.prototype,"type",2);Je([a({type:String})],jt.prototype,"variant",2);Je([a({type:String})],jt.prototype,"size",2);Je([nt("button")],jt.prototype,"buttonElement",2);jt=Je([
|
|
3518
|
+
`}};jt.buttonVariants=br;Je([a({type:Function})],jt.prototype,"click",2);Je([a({type:Boolean})],jt.prototype,"disabled",2);Je([a({type:String})],jt.prototype,"type",2);Je([a({type:String})],jt.prototype,"variant",2);Je([a({type:String})],jt.prototype,"size",2);Je([nt("button")],jt.prototype,"buttonElement",2);jt=Je([h("rtg-button")],jt);const Or={card:["rtg-flex","rtg-flex-col rtg-gap-card-space-gap","rtg-py-card-space-py","rtg-text-card-color-text","rtg-bg-card-color-bg","rtg-rounded-card-radius rtg-border-card-width-border rtg-border-card-color-border","rtg-shadow-card-shadow"],cardHeader:["@container/rtg-card-header","rtg-grid","rtg-grid-rows-[auto_auto] rtg-auto-rows-min rtg-gap-card-header-space-gap rtg-items-start","rtg-px-card-header-space-px [.rtg-border-b]:rtg-pb-card-header-space-pb-has-border-b"],cardTitle:["rtg-text-card-title-font rtg-font-card-title-font-weight"],cardDescription:["rtg-text-card-description-font rtg-font-card-description-font-weight rtg-text-card-description-color-text"],cardContent:["rtg-px-card-content-space-px"],cardFooter:["rtg-flex rtg-items-center","rtg-px-card-footer-space-px [.rtg-border-t]:rtg-pt-card-footer-space-pt-has-border-t"]};var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,Nl=(e,t,o,s)=>{for(var r=s>1?void 0:s?dp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&cp(t,o,r),r};let oi=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement),this.observeStyleAndClassSync(this.wrapperDivElement)}render(){const e=this.customStyle||"",t=this.customClass||"";return c`
|
|
3519
3519
|
<div
|
|
3520
3520
|
class=${u(Or.cardContent,t)}
|
|
3521
3521
|
style=${e}
|
|
3522
3522
|
part="card-content"
|
|
3523
3523
|
></div>
|
|
3524
|
-
`}};Nl([nt("div")],oi.prototype,"wrapperDivElement",2);oi=Nl([
|
|
3524
|
+
`}};Nl([nt("div")],oi.prototype,"wrapperDivElement",2);oi=Nl([h("rtg-card-content")],oi);var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,Ml=(e,t,o,s)=>{for(var r=s>1?void 0:s?pp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&up(t,o,r),r};let si=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement),this.observeStyleAndClassSync(this.wrapperDivElement)}render(){const e=this.customStyle||"",t=this.customClass||"";return c`
|
|
3525
3525
|
<div
|
|
3526
3526
|
class=${u(Or.cardDescription,t)}
|
|
3527
3527
|
style=${e}
|
|
3528
3528
|
part="card-description"
|
|
3529
3529
|
></div>
|
|
3530
|
-
`}};Ml([nt("div")],si.prototype,"wrapperDivElement",2);si=Ml([
|
|
3530
|
+
`}};Ml([nt("div")],si.prototype,"wrapperDivElement",2);si=Ml([h("rtg-card-description")],si);var hp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,Fl=(e,t,o,s)=>{for(var r=s>1?void 0:s?gp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&hp(t,o,r),r};let ii=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement),this.observeStyleAndClassSync(this.wrapperDivElement)}render(){const e=this.customStyle||"",t=this.customClass||"";return c`
|
|
3531
3531
|
<div
|
|
3532
3532
|
class=${u(Or.cardFooter,t)}
|
|
3533
3533
|
style=${e}
|
|
3534
3534
|
part="card-footer"
|
|
3535
3535
|
></div>
|
|
3536
|
-
`}};Fl([nt("div")],ii.prototype,"wrapperDivElement",2);ii=Fl([
|
|
3536
|
+
`}};Fl([nt("div")],ii.prototype,"wrapperDivElement",2);ii=Fl([h("rtg-card-footer")],ii);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Bl=(e,t,o,s)=>{for(var r=s>1?void 0:s?mp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&bp(t,o,r),r};let ni=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement),this.observeStyleAndClassSync(this.wrapperDivElement)}render(){const e=this.customStyle||"",t=this.customClass||"";return c`
|
|
3537
3537
|
<div
|
|
3538
3538
|
class=${u(Or.cardHeader,t)}
|
|
3539
3539
|
style=${e}
|
|
3540
3540
|
part="card-header"
|
|
3541
3541
|
></div>
|
|
3542
|
-
`}};Bl([nt("div")],ni.prototype,"wrapperDivElement",2);ni=Bl([
|
|
3542
|
+
`}};Bl([nt("div")],ni.prototype,"wrapperDivElement",2);ni=Bl([h("rtg-card-header")],ni);var fp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,ql=(e,t,o,s)=>{for(var r=s>1?void 0:s?vp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&fp(t,o,r),r};let ai=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement),this.observeStyleAndClassSync(this.wrapperDivElement)}render(){const e=this.customStyle||"",t=this.customClass||"";return c`
|
|
3543
3543
|
<div
|
|
3544
3544
|
class=${u(Or.cardTitle,t)}
|
|
3545
3545
|
style=${e}
|
|
3546
3546
|
part="card-title"
|
|
3547
3547
|
></div>
|
|
3548
|
-
`}};ql([nt("div")],ai.prototype,"wrapperDivElement",2);ai=ql([
|
|
3548
|
+
`}};ql([nt("div")],ai.prototype,"wrapperDivElement",2);ai=ql([h("rtg-card-title")],ai);var yp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Vl=(e,t,o,s)=>{for(var r=s>1?void 0:s?wp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&yp(t,o,r),r};let li=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement),this.observeStyleAndClassSync(this.wrapperDivElement)}render(){const e=this.customStyle||"",t=this.customClass||"",o=this.getFilteredAttributes();return c`<div
|
|
3549
3549
|
${V(o)}
|
|
3550
3550
|
part="card"
|
|
3551
3551
|
class=${u(Or.card,t)}
|
|
3552
3552
|
style="${e}"
|
|
3553
3553
|
id="rtg-card-id"
|
|
3554
|
-
></div>`}};Vl([nt("#rtg-card-id")],li.prototype,"wrapperDivElement",2);li=Vl([
|
|
3554
|
+
></div>`}};Vl([nt("#rtg-card-id")],li.prototype,"wrapperDivElement",2);li=Vl([h("rtg-card")],li);const _t={root:["rtg-relative rtg-mx-carousel-space-mx rtg-h-carousel-space-h rtg-w-carousel-space-w"],viewport:["rtg-w-carousel-viewport-space-w rtg-h-carousel-viewport-space-h rtg-overflow-hidden"],slidesWrapper:{base:["rtg-flex rtg-transition-transform rtg-duration-carousel-transition-duration rtg-ease-carousel-transition-timing-function"],orientation:{horizontal:["rtg-flex-row"],vertical:["rtg-flex-col"]}},slide:{base:["rtg-min-w-0 rtg-basis-carousel-slide-basis rtg-h-carousel-slide-space-h rtg-flex-shrink-0 rtg-flex-grow-0 rtg-transition-transform rtg-duration-carousel-transition-duration rtg-px-carousel-slide-space-px rtg-py-carousel-slide-space-py"],size:{true:["lg:rtg-basis-carousel-slide-size-basis-lg lg:rtg-h-carousel-slide-size-space-h-lg md:rtg-basis-carousel-slide-size-basis-md md:rtg-h-carousel-slide-size-space-h-md"],false:[""]}},controls:{base:["rtg-absolute rtg-z-10 rtg-flex"],orientation:{horizontal:["rtg-top-carousel-control-horizontal-space-top rtg-left-carousel-control-horizontal-space-left rtg-right-carousel-control-horizontal-space-right rtg-justify-between"],vertical:["rtg-w-carousel-control-vertical-space-w rtg-h-carousel-control-vertical-space-h rtg-top-0 rtg-flex-col rtg-justify-between rtg-items-center"]}},controlButton:{base:["rtg-bg-carousel-button-color-bg rtg-text-carousel-button-color-text rtg-border-none rtg-px-carousel-button-space-px rtg-py-carousel-button-space-py rtg-cursor-pointer rtg-z-10 rtg-rounded-carousel-button-radius rtg-w-carousel-button-space-w rtg-h-carousel-button-space-h rtg-flex rtg-items-center rtg-justify-center hover:rtg-bg-carousel-button-color-bg-hover disabled:rtg-opacity-carousel-button-opacity-disabled"],orientation:{verticalPrev:["rtg-relative rtg-top-carousel-button-vertical-prev-space-top rtg-rotate-90"],verticalNext:["rtg-relative rtg-top-carousel-button-vertical-next-space-top rtg-rotate-90"]}}};var xp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Ar=(e,t,o,s)=>{for(var r=s>1?void 0:s?_p(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&xp(t,o,r),r};let Ne=class extends ${constructor(){super(...arguments),this.currentIndex=0,this.items=[],this.orientation="horizontal",this.size=!1,this.handleResize=()=>{this.updateSlides(),this.currentIndex=0,this.querySelectorAll(".slide").forEach(e=>{e.className=this.getSlideClasses()})}}createRenderRoot(){return this}firstUpdated(){this.restructureSlides()}restructureSlides(){const e=this.querySelector(".slides");if(e)for(let t=0;t<this.items.length;t++){const o=`slide-${t}`,s=this.querySelector(`[slot="${o}"]`);if(s&&s.parentElement!==e){const r=document.createElement("div");r.className=this.getSlideClasses(),e.appendChild(r),r.appendChild(s)}}}getSlideClasses(){return u(_t.slide.base,this.size?_t.slide.size.true:_t.slide.size.false)}nextSlide(){this.currentIndex<this.items.length-1&&(this.currentIndex+=1,this.updateSlides())}prevSlide(){this.currentIndex>0&&(this.currentIndex-=1,this.updateSlides())}updateSlides(){let e;this.size?window.innerWidth>=1024?e=33.3333:window.innerWidth>=768?e=50:e=100:e=100;const t=this.orientation==="vertical"?100/this.items.length:100;this.slides&&(this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*e}%)`:`translateY(-${this.currentIndex*t}%)`)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}render(){const e=this.currentIndex===0,t=this.size?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,o=this.currentIndex>=this.items.length-t,s=u(_t.slidesWrapper.base,_t.slidesWrapper.orientation[this.orientation]),r=u(_t.controls.base,_t.controls.orientation[this.orientation]),i=u(_t.controlButton.base,this.orientation==="vertical"&&_t.controlButton.orientation.verticalPrev),n=u(_t.controlButton.base,this.orientation==="vertical"&&_t.controlButton.orientation.verticalNext);return c`
|
|
3555
3555
|
<div
|
|
3556
3556
|
part="rtg-carousel"
|
|
3557
3557
|
class="${u(_t.root,this.className)}"
|
|
@@ -3580,7 +3580,7 @@ body {
|
|
|
3580
3580
|
</div>
|
|
3581
3581
|
</div>
|
|
3582
3582
|
</div>
|
|
3583
|
-
`}};Ar([a({type:Number})],Ne.prototype,"currentIndex",2);Ar([a({type:Array})],Ne.prototype,"items",2);Ar([a({type:String})],Ne.prototype,"orientation",2);Ar([a({type:Boolean})],Ne.prototype,"size",2);Ar([nt(".slides")],Ne.prototype,"slides",2);Ne=Ar([
|
|
3583
|
+
`}};Ar([a({type:Number})],Ne.prototype,"currentIndex",2);Ar([a({type:Array})],Ne.prototype,"items",2);Ar([a({type:String})],Ne.prototype,"orientation",2);Ar([a({type:Boolean})],Ne.prototype,"size",2);Ar([nt(".slides")],Ne.prototype,"slides",2);Ne=Ar([h("rtg-carousel")],Ne);const Pr={empty:["rtg-py-combo-box-empty-space-py","rtg-text-center","rtg-text-combo-box-empty-font"],group:{base:["rtg-pointer-events-none","rtg-invisible","rtg-absolute","rtg-z-50","rtg-mt-combo-box-group-space-mt","rtg-max-h-combo-box-group-space-max-h","rtg-w-combo-box-group-space-w","rtg-origin-top","rtg-scale-y-0","rtg-transform","rtg-overflow-hidden","rtg-overflow-y-auto","rtg-rounded-combo-box-group-radius","rtg-border-combo-box-group-width-border","rtg-border-combo-box-group-color-border","rtg-bg-combo-box-group-color-bg","rtg-px-combo-box-group-space-px","rtg-py-combo-box-group-space-py","rtg-opacity-0","rtg-shadow-combo-box-group-shadow","rtg-transition-opacity","rtg-duration-combo-box-group-transition-duration","rtg-ease-combo-box-group-transition-timing-function","[&::-webkit-scrollbar]:rtg-w-0"]},input:["rtg-flex","rtg-h-combo-box-input-space-h","rtg-w-combo-box-input-space-w","rtg-rounded-combo-box-input-radius","rtg-border-0","rtg-bg-combo-box-input-color-bg","rtg-px-combo-box-input-space-px","rtg-py-combo-box-input-space-py","rtg-text-combo-box-input-font","rtg-text-combo-box-input-color-text","rtg-shadow-none","placeholder:rtg-text-combo-box-input-color-text-placeholder","focus:rtg-outline-none","focus-visible:rtg-ring-0"],trigger:{base:["rtg-z-20","rtg-flex","rtg-h-combo-box-trigger-space-h","rtg-flex-row-reverse","rtg-items-center","rtg-justify-between","rtg-rounded-combo-box-trigger-radius","rtg-border-combo-box-trigger-width-border","rtg-border-combo-box-trigger-color-border","rtg-bg-combo-box-trigger-color-bg","rtg-px-combo-box-trigger-space-px","rtg-py-combo-box-trigger-space-py","rtg-text-combo-box-trigger-font","focus:rtg-outline-none","focus:rtg-ring-combo-box-trigger-width-ring-focus","focus:rtg-ring-combo-box-trigger-color-ring-focus","focus:rtg-ring-offset-combo-box-trigger-width-ring-offset-focus","disabled:rtg-cursor-not-allowed","disabled:rtg-opacity-combo-box-trigger-opacity-disabled"]},value:["rtg-line-clamp-1","rtg-flex","rtg-w-combo-box-value-space-w"],item:{base:["rtg-flex","rtg-w-combo-box-item-space-w","rtg-cursor-pointer","rtg-flex-row-reverse","rtg-items-center","rtg-justify-between","rtg-rounded-combo-box-item-radius","rtg-px-combo-box-item-space-px","rtg-py-combo-box-item-space-py","hover:rtg-bg-accent","focus:rtg-bg-combo-box-item-color-bg-hover","focus:rtg-outline-none"]}};var Cp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Hl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Sp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Cp(t,o,r),r};let ci=class extends m{constructor(){super(...arguments),this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(e=>{var t;e.uuid!==((t=this._comboBox)==null?void 0:t.uuid)&&(e.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)}}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof vt);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",t=>{t.stopPropagation()})}render(){return c`
|
|
3584
3584
|
<button
|
|
3585
3585
|
type="button"
|
|
3586
3586
|
part="combo-box-trigger-button"
|
|
@@ -3591,21 +3591,21 @@ body {
|
|
|
3591
3591
|
data-radix-collection-item=""
|
|
3592
3592
|
@click=${this.handleClick}
|
|
3593
3593
|
>
|
|
3594
|
-
${
|
|
3594
|
+
${hu()}
|
|
3595
3595
|
</button>
|
|
3596
|
-
`}};Hl([nt("button")],ci.prototype,"buttonElement",2);ci=Hl([
|
|
3596
|
+
`}};Hl([nt("button")],ci.prototype,"buttonElement",2);ci=Hl([h("rtg-combo-box-trigger")],ci);var $p=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Gl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ep(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&$p(t,o,r),r};let di=class extends ${constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(e=>{var t;e.uuid!==((t=this._comboBox)==null?void 0:t.uuid)&&(e.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof vt);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",t=>{t.stopPropagation()})}createRenderRoot(){return this}render(){return c`
|
|
3597
3597
|
<span
|
|
3598
3598
|
part="combo-box-value"
|
|
3599
3599
|
class="${u(Pr.value,this.className)}"
|
|
3600
3600
|
@click=${this.handleClick}
|
|
3601
3601
|
>${this.renderLabel()}</span
|
|
3602
3602
|
>
|
|
3603
|
-
`}};Gl([a({type:String})],di.prototype,"placeholder",2);di=Gl([
|
|
3603
|
+
`}};Gl([a({type:String})],di.prototype,"placeholder",2);di=Gl([h("rtg-combo-box-value")],di);var ui=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(ui||{});const sa={common:["rtg-bg-separator-color-bg rtg-shrink-0"],horizontal:["rtg-w-separator-horizontal-space-w rtg-h-separator-horizontal-space-h"],vertical:["rtg-w-separator-vertical-space-w rtg-h-separator-vertical-space-h"]};var kp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,Wl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Rp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&kp(t,o,r),r};let pi=class extends m{constructor(){super(...arguments),this.orientation=ui.HORIZONTAL}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}updated(e){var t;(t=super.updated)==null||t.call(this,e),this.orientation===ui.VERTICAL&&(this.style.height="100%")}render(){const e=this.getFilteredAttributes();return c` <div
|
|
3604
3604
|
part="separator"
|
|
3605
3605
|
${V(e)}
|
|
3606
3606
|
class=${u(sa.common,sa[this.orientation],this.className)}
|
|
3607
3607
|
role="none"
|
|
3608
|
-
></div>`}};Wl([a({type:String})],
|
|
3608
|
+
></div>`}};Wl([a({type:String})],pi.prototype,"orientation",2);pi=Wl([h("rtg-separator")],pi);var Op=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,xo=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ap(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Op(t,o,r),r};let Me=class extends m{constructor(){super(...arguments),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=e=>{var t,o;e.detail.isOpen!==((t=this._comboBox)==null?void 0:t.isOpen)&&this.requestUpdate(),e.detail.isOpen&&(o=this._comboBox)!=null&&o.selectedValue&&(this.focusedIndex=this.comboBoxItems.findIndex(s=>{var r;return s.getAttribute("value")===((r=this._comboBox)==null?void 0:r.selectedValue)}),this.requestUpdate())},this.handleKeyDown=e=>{var t;if(!((t=this._comboBox)!=null&&t.isOpen))return;e.preventDefault();const o=this.filteredItems;switch(e.key){case"ArrowDown":if(o.length===0)return;this.focusedIndex=(this.focusedIndex+1)%o.length;break;case"ArrowUp":if(o.length===0)return;this.focusedIndex=(this.focusedIndex-1+o.length)%o.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<o.length){const s=o[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:s}}))}break}},this.handleMouseOver=(e,t)=>{e.preventDefault(),this.focusedIndex=t},this.onSelectedValue=(e,t)=>{this.focusedIndex=t,this.selectedValue=e},this.boundHandleComboBoxStateChanged=this.handleComboBoxStateChanged.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this)}get comboBoxItems(){return Array.from(this.querySelectorAll('[data-managed="true"][tag="rtg-combo-box-item"], rtg-combo-box-item')).filter(e=>e.hasAttribute("value"))}get comboBoxInput(){return this.querySelector("rtg-combo-box-input")}get comboBoxEmpty(){return this.querySelector("rtg-combo-box-empty")}get hasResults(){return!this.filteredItems.length}get filteredItems(){var e;const t=(e=this.searchKey)==null?void 0:e.toLowerCase();return this.comboBoxItems.filter(o=>{var s;return(s=o.getAttribute("value"))==null?void 0:s.toLowerCase().includes(t)})}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof vt);)e=e.parentElement;return e}handleComboBoxStateChanged(e){var t;const{isOpen:o,targetComboBoxId:s}=e.detail;if(this.isOpen=o,s!==((t=this._comboBox)==null?void 0:t.uuid))return;const r=this.renderRoot.querySelector('[part="select-group"]');r&&(o?(clearTimeout(r._hideTimeout),r.classList.remove("rtg-scale-y-0","rtg-opacity-0"),r.classList.add("rtg-scale-y-100","rtg-opacity-100"),r.classList.remove("rtg-invisible","rtg-pointer-events-none"),r.classList.add("rtg-visible","rtg-pointer-events-auto")):(r.classList.remove("rtg-opacity-100"),r.classList.add("rtg-opacity-0"),r._hideTimeout=setTimeout(()=>{r.classList.remove("rtg-visible","rtg-pointer-events-auto","rtg-scale-y-100"),r.classList.add("rtg-invisible","rtg-pointer-events-none","rtg-scale-y-0")},300)))}moveChildren(){const e=this.renderRoot.querySelector('[part="select-group"]');if(!e)return;const t={top:e.querySelector("#topSlot"),empty:e.querySelector("#emptySlot"),list:e.querySelector("#listSlot")},o={"rtg-combo-box-input":"top","rtg-combo-box-empty":"empty","rtg-combo-box-item":"list"};Array.from(this.children).forEach(s=>{var r;const i=s.tagName.toLowerCase(),n=o[i];n&&(s.setAttribute("data-managed","true"),(r=t[n])==null||r.appendChild(s))})}renderFilteredItems(){return this.comboBoxItems.forEach(e=>e.setAttribute("hidden","true")),this.filteredItems.map((e,t)=>{var o;const s=e.getAttribute("value")??"",r=t===this.focusedIndex,i=s.toLowerCase()===((o=this._comboBox)==null?void 0:o.selectedValue.toLowerCase());return c`
|
|
3609
3609
|
<rtg-combo-box-item
|
|
3610
3610
|
@mouseover="${n=>this.handleMouseOver(n,t)}"
|
|
3611
3611
|
.value=${s}
|
|
@@ -3632,7 +3632,7 @@ body {
|
|
|
3632
3632
|
${this.renderFilteredItems()}
|
|
3633
3633
|
</div>
|
|
3634
3634
|
</div>
|
|
3635
|
-
`}};xo([k()],Me.prototype,"searchKey",2);xo([k()],Me.prototype,"focusedIndex",2);xo([k()],Me.prototype,"selectedValue",2);xo([k()],Me.prototype,"isOpen",2);Me=xo([
|
|
3635
|
+
`}};xo([k()],Me.prototype,"searchKey",2);xo([k()],Me.prototype,"focusedIndex",2);xo([k()],Me.prototype,"selectedValue",2);xo([k()],Me.prototype,"isOpen",2);Me=xo([h("rtg-combo-box-group")],Me);var Pp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,Mt=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ip(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Pp(t,o,r),r};let At=class extends m{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(e,t)=>{},this.onMouseOver=(e,t)=>{},this.handleClick=e=>{this.onSelect(this.value,this.selectItemIndex),e.stopPropagation();const t=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(t)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
3636
3636
|
<div
|
|
3637
3637
|
${V(e)}
|
|
3638
3638
|
@click=${this.handleClick}
|
|
@@ -3648,7 +3648,7 @@ body {
|
|
|
3648
3648
|
${gu()}
|
|
3649
3649
|
</span>
|
|
3650
3650
|
</div>
|
|
3651
|
-
`}};Mt([a({type:String})],At.prototype,"value",2);Mt([a({type:String})],At.prototype,"key",2);Mt([a({type:Number})],At.prototype,"tabindex",2);Mt([a({type:Boolean})],At.prototype,"isSelected",2);Mt([a({type:Boolean})],At.prototype,"isFocus",2);Mt([a({type:String})],At.prototype,"class",2);Mt([a({type:Number})],At.prototype,"selectItemIndex",2);Mt([a({type:Function})],At.prototype,"onSelect",2);Mt([a({type:Function})],At.prototype,"onMouseOver",2);Mt([nt("#rtg-combo-box-item")],At.prototype,"itemDivContainer",2);At=Mt([
|
|
3651
|
+
`}};Mt([a({type:String})],At.prototype,"value",2);Mt([a({type:String})],At.prototype,"key",2);Mt([a({type:Number})],At.prototype,"tabindex",2);Mt([a({type:Boolean})],At.prototype,"isSelected",2);Mt([a({type:Boolean})],At.prototype,"isFocus",2);Mt([a({type:String})],At.prototype,"class",2);Mt([a({type:Number})],At.prototype,"selectItemIndex",2);Mt([a({type:Function})],At.prototype,"onSelect",2);Mt([a({type:Function})],At.prototype,"onMouseOver",2);Mt([nt("#rtg-combo-box-item")],At.prototype,"itemDivContainer",2);At=Mt([h("rtg-combo-box-item")],At);var Tp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Ki=(e,t,o,s)=>{for(var r=s>1?void 0:s?Lp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Tp(t,o,r),r};let No=class extends ${constructor(){super(...arguments),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof Me);)e=e.parentElement;return e}handleSearch(e){e.stopPropagation();const t=e.target;this.searchValue=t.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(e){e.stopPropagation()}createRenderRoot(){return this}render(){return c`
|
|
3652
3652
|
<div class="rtg-flex rtg-items-center rtg-px-2">
|
|
3653
3653
|
${bu()}
|
|
3654
3654
|
<input
|
|
@@ -3666,28 +3666,28 @@ body {
|
|
|
3666
3666
|
@keydown="${this.handleKeyDown}"
|
|
3667
3667
|
/>
|
|
3668
3668
|
</div>
|
|
3669
|
-
`}};Ki([a({type:String})],No.prototype,"placeholder",2);Ki([k()],No.prototype,"searchValue",2);No=Ki([
|
|
3669
|
+
`}};Ki([a({type:String})],No.prototype,"placeholder",2);Ki([k()],No.prototype,"searchValue",2);No=Ki([h("rtg-combo-box-input")],No);var Dp=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ia=class extends m{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return c`
|
|
3670
3670
|
<div
|
|
3671
3671
|
class="${u(Pr.empty,this.className)}"
|
|
3672
3672
|
role="presentation"
|
|
3673
3673
|
>
|
|
3674
3674
|
${Array.from(this.childNodes)[0].textContent}
|
|
3675
3675
|
</div>
|
|
3676
|
-
`}};ia=
|
|
3676
|
+
`}};ia=Dp([h("rtg-combo-box-empty")],ia);var zp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Zt=(e,t,o,s)=>{for(var r=s>1?void 0:s?jp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&zp(t,o,r),r};let vt=class extends m{constructor(){super(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=qi(),this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector("[data-combo-box-uuid]"),s=e.target;if(!s.tagName.includes("RTG-COMBO")&&!(s.shadowRoot&&s.shadowRoot.innerHTML.includes(o==null?void 0:o.innerHTML))){if(this.isOpen&&!o||!(o!=null&&o.contains(s)))this.isOpen=!1;else if(!(s!=null&&s.firstElementChild))return}}}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",e=>{this.isOpen&&(this.selectedValue=e.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.parentDiveElement),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(t=>t.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.has("isOpen")&&(this.dispatchEvent(new CustomEvent("rtg-combo-box-state-changed",{detail:{isOpen:this.isOpen,targetComboBoxId:this.uuid},bubbles:!0,composed:!0})),this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}selectItem(e){const t=e.target;if(t instanceof HTMLElement){const o=t.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}render(){return c`
|
|
3677
3677
|
<div
|
|
3678
3678
|
class="${u("rtg-relative",this.className)}"
|
|
3679
3679
|
data-hs-combo-box=""
|
|
3680
3680
|
data-combo-box-uuid=${this.uuid}
|
|
3681
3681
|
part="combo-box"
|
|
3682
3682
|
></div>
|
|
3683
|
-
`}};Zt([a({type:Boolean})],vt.prototype,"isOpen",2);Zt([k()],vt.prototype,"selectedValue",2);Zt([k()],vt.prototype,"searchTerm",2);Zt([k()],vt.prototype,"focusedIndex",2);Zt([k()],vt.prototype,"filteredItems",2);Zt([k()],vt.prototype,"uuid",2);Zt([a({type:String})],vt.prototype,"label",2);Zt([a({type:Array})],vt.prototype,"items",2);Zt([nt('[part="combo-box"]')],vt.prototype,"parentDiveElement",2);vt=Zt([
|
|
3683
|
+
`}};Zt([a({type:Boolean})],vt.prototype,"isOpen",2);Zt([k()],vt.prototype,"selectedValue",2);Zt([k()],vt.prototype,"searchTerm",2);Zt([k()],vt.prototype,"focusedIndex",2);Zt([k()],vt.prototype,"filteredItems",2);Zt([k()],vt.prototype,"uuid",2);Zt([a({type:String})],vt.prototype,"label",2);Zt([a({type:Array})],vt.prototype,"items",2);Zt([nt('[part="combo-box"]')],vt.prototype,"parentDiveElement",2);vt=Zt([h("rtg-combo-box")],vt);const Yi={root:[""],trigger:[""],content:["rtg-fixed rtg-z-50","rtg-p-hover-card-content-space-p","rtg-w-hover-card-content-space-w","rtg-text-hover-card-content-color-text","rtg-bg-hover-card-content-color-bg","rtg-rounded-hover-card-content-radius rtg-border-hover-card-content-width-border rtg-border-hover-card-content-color-border rtg-outline-hidden","rtg-shadow-hover-card-content-shadow","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95","data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2"]};var Up=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Zi=(e,t,o,s)=>{for(var r=s>1?void 0:s?Np(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Up(t,o,r),r};let Mo=class extends m{constructor(){super(...arguments),this.state="closed",this.isOpen=!1,this.onStateChange=e=>{const t=e.detail.isOpen;this.state=t?"open":"closed"},this.handlePointerLeaveCheck=e=>{this.contains(e.relatedTarget)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("hover-card-state-change",this.onStateChange),this.addEventListener("mouseenter",this.handlePointerLeaveCheck),this.addEventListener("mouseleave",this.handlePointerLeaveCheck)}disconnectedCallback(){document.removeEventListener("hover-card-state-change",this.onStateChange),this.removeEventListener("mouseenter",this.handlePointerLeaveCheck),this.removeEventListener("mouseleave",this.handlePointerLeaveCheck),super.disconnectedCallback()}updated(e){super.updated(e),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#rtg-hover-card-content"))}render(){return c`
|
|
3684
3684
|
<div
|
|
3685
3685
|
id="rtg-hover-card-content"
|
|
3686
3686
|
part="hover-card-content"
|
|
3687
3687
|
class=${u(Yi.content,this.className)}
|
|
3688
3688
|
style="display: ${this.isOpen?"block":"none"};"
|
|
3689
3689
|
></div>
|
|
3690
|
-
`}};Zi([a({attribute:"data-state",type:String})],Mo.prototype,"state",2);Zi([k()],Mo.prototype,"isOpen",2);Mo=Zi([
|
|
3690
|
+
`}};Zi([a({attribute:"data-state",type:String})],Mo.prototype,"state",2);Zi([k()],Mo.prototype,"isOpen",2);Mo=Zi([h("rtg-hover-card-content")],Mo);var Mp=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let na=class extends m{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return c`
|
|
3691
3691
|
<div
|
|
3692
3692
|
id="rtg-hover-card-trigger"
|
|
3693
3693
|
part="rtg-hover-card-trigger"
|
|
@@ -3695,13 +3695,13 @@ body {
|
|
|
3695
3695
|
>
|
|
3696
3696
|
${Array.from(this.children)}
|
|
3697
3697
|
</div>
|
|
3698
|
-
`}};na=
|
|
3698
|
+
`}};na=Mp([h("rtg-hover-card-trigger")],na);var Fp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,Kl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Bp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Fp(t,o,r),r};let hi=class extends m{constructor(){super(...arguments),this.isOpen=!1,this.hoverTimeout=null,this.openCard=()=>{var e;this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.isOpen||(this.isOpen=!0,(e=this._content)==null||e.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!0}})))},this.closeCard=()=>{this.hoverTimeout=setTimeout(()=>{var e;this.isOpen=!1,(e=this._content)==null||e.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!1}}))},150)}}get _containerElement(){return this.renderRoot.querySelector("#rtg-hover-card-container")}get _content(){return this.renderRoot.querySelector("rtg-hover-card-content")}get _trigger(){return this.renderRoot.querySelector("rtg-hover-card-trigger")}getAttributesToExclude(){return[]}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){const e=this._trigger,t=this._content;e==null||e.removeEventListener("mouseenter",this.openCard),e==null||e.removeEventListener("mouseleave",this.closeCard),t==null||t.removeEventListener("mouseenter",this.openCard),t==null||t.removeEventListener("mouseleave",this.closeCard),this.hoverTimeout&&clearTimeout(this.hoverTimeout),super.disconnectedCallback()}createRenderRoot(){return this}firstUpdated(e){const t=this._containerElement;this.moveLightDomChildrenInto(t);const o=this._trigger,s=this._content;o==null||o.addEventListener("mouseenter",this.openCard),o==null||o.addEventListener("mouseleave",this.closeCard),s==null||s.addEventListener("mouseenter",this.openCard),s==null||s.addEventListener("mouseleave",this.closeCard)}render(){return c`
|
|
3699
3699
|
<div
|
|
3700
3700
|
id="rtg-hover-card-container"
|
|
3701
3701
|
part="hover-card"
|
|
3702
3702
|
class=${u(Yi.root,this.className)}
|
|
3703
3703
|
></div>
|
|
3704
|
-
`}};Kl([k()],
|
|
3704
|
+
`}};Kl([k()],hi.prototype,"isOpen",2);hi=Kl([h("rtg-hover-card")],hi);const Ht={root:["rtg-flex rtg-overflow-hidden","rtg-flex-col","rtg-w-command-space-w rtg-h-command-space-h","rtg-text-command-color-text","rtg-bg-command-color-bg","rtg-rounded-command-radius"],input:{wrapper:["rtg-flex","rtg-gap-command-input-wrapper-space-gap rtg-items-center","rtg-px-command-input-wrapper-space-px","rtg-h-command-input-wrapper-space-h","rtg-border-b-command-input-wrapper-width-border rtg-border-b-command-input-wrapper-color-border"],icon:["rtg-shrink-0","rtg-size-command-input-icon-space-size","rtg-opacity-command-input-icon-opacity"],input:["rtg-flex","rtg-py-command-input-space-py","rtg-w-command-input-space-w rtg-h-command-input-space-h","rtg-text-command-input-font","rtg-bg-command-input-color-bg","rtg-rounded-command-input-radius rtg-outline-hidden","focus:rtg-outline-none","disabled:rtg-opacity-command-input-opacity-disabled disabled:rtg-cursor-not-allowed","placeholder:rtg-text-command-input-placeholder-color-text"]},list:["rtg-overflow-x-hidden rtg-overflow-y-auto","rtg-max-h-command-list-space-max-h","rtg-scroll-py-1"],empty:["rtg-py-command-empty-space-py","rtg-text-command-empty-font rtg-text-center"],group:["rtg-overflow-hidden","rtg-p-command-group-space-p","rtg-text-command-group-color-text"],heading:["rtg-px-command-heading-space-px rtg-py-command-heading-space-py","rtg-text-command-heading-font rtg-font-command-heading-font-weight rtg-text-command-heading-color-text"],separator:["rtg-command-separator-space-mx","rtg-h-command-separator-space-h","rtg-bg-command-separator-color-bg"],item:["rtg-flex rtg-relative","rtg-gap-command-item-space-gap rtg-items-center","rtg-px-command-item-space-px rtg-py-command-item-space-py","rtg-text-command-item-font","rtg-rounded-command-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","hover:rtg-text-command-item-color-text-hover hover:rtg-bg-command-item-color-bg-hover","aria-selected:rtg-text-command-item-color-text-selected aria-selected:rtg-bg-command-item-color-bg-selected",'data-[disabled="true"]:rtg-opacity-command-item-opacity-disabled data-[disabled="true"]:rtg-pointer-events-none','[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-command-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-command-item-icon-color-text [&_svg]:rtg-pointer-events-none']};var qp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,Xi=(e,t,o,s)=>{for(var r=s>1?void 0:s?Vp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&qp(t,o,r),r};let Fe=class extends m{constructor(){super(...arguments),this._id="",this._hidden="true"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}e${Fe._counter++}`:this._id=`rtgcmdrxlxe${Fe._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return c`
|
|
3705
3705
|
<div
|
|
3706
3706
|
rtgcmd-empty
|
|
3707
3707
|
id="${this.identifier}"
|
|
@@ -3709,7 +3709,7 @@ body {
|
|
|
3709
3709
|
role="presentation"
|
|
3710
3710
|
class=${u(Ht.empty,this._hidden==="true"&&"rtg-hidden",this.className)}
|
|
3711
3711
|
></div>
|
|
3712
|
-
`}};Fe._counter=0;Xi([a({type:String})],Fe.prototype,"_id",2);Xi([a({attribute:"aria-hidden",type:String})],Fe.prototype,"_hidden",2);Fe=Xi([
|
|
3712
|
+
`}};Fe._counter=0;Xi([a({type:String})],Fe.prototype,"_id",2);Xi([a({attribute:"aria-hidden",type:String})],Fe.prototype,"_hidden",2);Fe=Xi([h("rtg-command-empty")],Fe);var Hp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,ls=(e,t,o,s)=>{for(var r=s>1?void 0:s?Gp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Hp(t,o,r),r};let me=class extends m{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get itemsContainerElement(){return this.querySelector(`#${this.identifier}g`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}g${me._counter++}`:this._id=`rtgcmdrxlxg${me._counter++}`,this._id}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){const t=this.itemsContainerElement;if(t){for(;t.firstChild;)t.removeChild(t.firstChild);this.moveLightDomChildrenInto(t)}}render(){return c`
|
|
3713
3713
|
<div
|
|
3714
3714
|
rtgcmd-group
|
|
3715
3715
|
id="${this.identifier}"
|
|
@@ -3732,7 +3732,7 @@ body {
|
|
|
3732
3732
|
aria-labelledby="${this.identifier}h"
|
|
3733
3733
|
></div>
|
|
3734
3734
|
</div>
|
|
3735
|
-
`}};me._counter=0;ls([a({type:String})],me.prototype,"heading",2);ls([a({attribute:"id",type:String})],me.prototype,"_id",2);ls([a({attribute:"aria-hidden",type:String})],me.prototype,"_hidden",2);me=ls([
|
|
3735
|
+
`}};me._counter=0;ls([a({type:String})],me.prototype,"heading",2);ls([a({attribute:"id",type:String})],me.prototype,"_id",2);ls([a({attribute:"aria-hidden",type:String})],me.prototype,"_hidden",2);me=ls([h("rtg-command-group")],me);var Wp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Ji=(e,t,o,s)=>{for(var r=s>1?void 0:s?Kp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Wp(t,o,r),r};let Fo=class extends ${constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const e=this.parentElement;if(e){let t=!0;const o=e.querySelectorAll("rtg-command-group");o&&o.forEach(r=>{var i,n;let l=!0;const d=r.querySelectorAll("rtg-command-item");d&&d.forEach(b=>{(b.value||"").toLowerCase().includes(this._value.toLowerCase())?(l=!1,t=!1,b._hidden="false"):b._hidden="true"}),r._hidden=l?"true":"false";let p=r.previousElementSibling;p&&(p._hidden=l||((i=p.previousElementSibling)==null?void 0:i.getAttribute("aria-hidden"))==="true"?"true":"false"),p=r.nextElementSibling,p&&(p._hidden=l||((n=p.nextElementSibling)==null?void 0:n.getAttribute("aria-hidden"))==="true"?"true":"false")});const s=e.querySelector("rtg-command-empty");s&&s.setAttribute("aria-hidden",t?"false":"true")}}handleChange(e){const t=e.target;t&&(this._value=t.value,this.filterItems())}createRenderRoot(){return this}render(){return c`
|
|
3736
3736
|
<div
|
|
3737
3737
|
part="command-input"
|
|
3738
3738
|
class=${u(Ht.input.wrapper,this.className)}
|
|
@@ -3773,7 +3773,7 @@ body {
|
|
|
3773
3773
|
class=${u(Ht.input.input)}
|
|
3774
3774
|
/>
|
|
3775
3775
|
</div>
|
|
3776
|
-
`}};Ji([a({type:String})],Fo.prototype,"placeholder",2);Ji([a({attribute:"value",type:String})],Fo.prototype,"_value",2);Fo=Ji([
|
|
3776
|
+
`}};Ji([a({type:String})],Fo.prototype,"placeholder",2);Ji([a({attribute:"value",type:String})],Fo.prototype,"_value",2);Fo=Ji([h("rtg-command-input")],Fo);var Yp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,Ir=(e,t,o,s)=>{for(var r=s>1?void 0:s?Zp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Yp(t,o,r),r};let Gt=class extends m{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="false",this.onSelect=()=>{},this.disabled="false"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}li${Gt._counter++}`:this._id=`rtgcmdrxgxli${Gt._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}updated(e){}render(){return c`
|
|
3777
3777
|
<div
|
|
3778
3778
|
rtgcmd-item
|
|
3779
3779
|
id="${this.identifier}"
|
|
@@ -3790,7 +3790,7 @@ body {
|
|
|
3790
3790
|
@click="${this.onSelect}"
|
|
3791
3791
|
class=${u(Ht.item,this._hidden==="true"&&"rtg-hidden",this.className)}
|
|
3792
3792
|
></div>
|
|
3793
|
-
`}};Gt._counter=0;Ir([a({type:String})],Gt.prototype,"_id",2);Ir([a({attribute:"aria-hidden",type:String})],Gt.prototype,"_hidden",2);Ir([a({type:Function})],Gt.prototype,"onSelect",2);Ir([a({attribute:"data-value",type:String}),a({type:Boolean})],Gt.prototype,"containerElement",1);Ir([a({attribute:"data-disabled",type:String})],Gt.prototype,"disabled",2);Gt=Ir([
|
|
3793
|
+
`}};Gt._counter=0;Ir([a({type:String})],Gt.prototype,"_id",2);Ir([a({attribute:"aria-hidden",type:String})],Gt.prototype,"_hidden",2);Ir([a({type:Function})],Gt.prototype,"onSelect",2);Ir([a({attribute:"data-value",type:String}),a({type:Boolean})],Gt.prototype,"containerElement",1);Ir([a({attribute:"data-disabled",type:String})],Gt.prototype,"disabled",2);Gt=Ir([h("rtg-command-item")],Gt);var Xp=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let aa=class extends m{get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}l`:"rtgcmdrxl"}get containerElement(){return this.querySelector("div[rtgcmd-list]")}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return c`
|
|
3794
3794
|
<div
|
|
3795
3795
|
rtgcmd-list
|
|
3796
3796
|
id="${this.identifier}"
|
|
@@ -3800,7 +3800,7 @@ body {
|
|
|
3800
3800
|
>
|
|
3801
3801
|
<div></div>
|
|
3802
3802
|
</div>
|
|
3803
|
-
`}};aa=
|
|
3803
|
+
`}};aa=Xp([h("rtg-command-list")],aa);var Jp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Qi=(e,t,o,s)=>{for(var r=s>1?void 0:s?Qp(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Jp(t,o,r),r};let Be=class extends ${constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.getAttribute("id")}s${Be._counter++}`:this._id=`rtgcmdrxlxs${Be._counter++}`,this._id}createRenderRoot(){return this}render(){return c`${this._hidden==="true"?I:c`
|
|
3804
3804
|
<div
|
|
3805
3805
|
rtgcmd-separator
|
|
3806
3806
|
id="${this.identifier}"
|
|
@@ -3808,7 +3808,7 @@ body {
|
|
|
3808
3808
|
role="separator"
|
|
3809
3809
|
class=${u(Ht.separator,this.className)}
|
|
3810
3810
|
></div>
|
|
3811
|
-
`}`}};Be._counter=0;Qi([a({type:String})],Be.prototype,"_id",2);Qi([a({attribute:"aria-hidden",type:String})],Be.prototype,"_hidden",2);Be=Qi([
|
|
3811
|
+
`}`}};Be._counter=0;Qi([a({type:String})],Be.prototype,"_id",2);Qi([a({attribute:"aria-hidden",type:String})],Be.prototype,"_hidden",2);Be=Qi([h("rtg-command-separator")],Be);var th=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let la=class extends m{get containerElement(){return this.querySelector("div[rtgcmd-root]")}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}createRenderRoot(){return this}firstUpdated(e){this.removeParentAttributes(),this.moveLightDomChildrenInto(this.containerElement),this.containerElement&&this.observeStyleAndClassSync(this.containerElement)}render(){const e=this.customClass||"",t=this.customStyle||"";return c`
|
|
3812
3812
|
<div
|
|
3813
3813
|
part="command"
|
|
3814
3814
|
class="${u(Ht.root,e)}"
|
|
@@ -3816,7 +3816,7 @@ body {
|
|
|
3816
3816
|
id="rtgcmdr1"
|
|
3817
3817
|
rtgcmd-root
|
|
3818
3818
|
></div>
|
|
3819
|
-
`}};la=
|
|
3819
|
+
`}};la=th([h("rtg-command")],la);const gt={root:[""],content:["rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-p-context-menu-content-space-p","rtg-min-w-context-menu-content-space-min-w","rtg-text-context-menu-content-color-text","rtg-bg-context-menu-content-color-bg","rtg-rounded-context-menu-content-radius rtg-border-context-menu-content-width-border rtg-border-context-menu-content-color-border","rtg-shadow-context-menu-content-shadow","rtg-translate-y-0.5","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],group:[""],item:["rtg-flex rtg-relative","rtg-gap-context-menu-item-space-gap rtg-items-center","rtg-px-context-menu-item-space-px rtg-py-context-menu-item-space-py","rtg-text-context-menu-item-font","rtg-rounded-context-menu-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","hover:rtg-bg-context-menu-item-color-bg-hover hover:rtg-text-context-menu-item-color-text-hover","focus:rtg-bg-context-menu-item-color-bg-focus focus:rtg-text-context-menu-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-context-menu-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-context-menu-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-context-menu-checkbox-item-space-gap rtg-items-center","rtg-pl-context-menu-checkbox-item-space-pl rtg-pr-context-menu-checkbox-item-space-pr rtg-py-context-menu-checkbox-item-space-py","rtg-text-context-menu-checkbox-item-font","rtg-rounded-context-menu-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-context-menu-checkbox-item-color-bg-focus aria-selected:rtg-text-context-menu-checkbox-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-context-menu-checkbox-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-context-menu-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-context-menu-radio-item-space-gap rtg-items-center","rtg-pl-context-menu-radio-item-space-pl rtg-pr-context-menu-radio-item-space-pr rtg-py-context-menu-radio-item-space-py","rtg-text-context-menu-radio-item-font","rtg-rounded-context-menu-radio-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-context-menu-radio-item-color-bg-focus aria-selected:rtg-text-context-menu-radio-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-context-menu-radio-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-context-menu-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-context-menu-label-space-px rtg-py-context-menu-label-space-py","rtg-text-context-menu-label-font rtg-font-context-menu-label-font-weight"],separator:["rtg-mx-context-menu-separator-space-mx rtg-my-context-menu-separator-space-my","rtg-h-context-menu-separator-space-h","rtg-bg-context-menu-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-context-menu-shortcut-font rtg-text-context-menu-shortcut-color-text"]};var eh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Tr=(e,t,o,s)=>{for(var r=s>1?void 0:s?rh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&eh(t,o,r),r};let qe=class extends m{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-checkbox-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3820
3820
|
<div
|
|
3821
3821
|
rtgcmd-item
|
|
3822
3822
|
part="context-menu-checkbox"
|
|
@@ -3851,12 +3851,12 @@ body {
|
|
|
3851
3851
|
</span>
|
|
3852
3852
|
<div part="context-menu-checkbox-item-container"></div>
|
|
3853
3853
|
</div>
|
|
3854
|
-
`}};Tr([a({type:String})],qe.prototype,"_id",2);Tr([a({attribute:"data-value",type:String})],qe.prototype,"value",1);Tr([a({type:Boolean})],qe.prototype,"selected",2);Tr([a({type:Boolean})],qe.prototype,"checked",2);Tr([a({attribute:"data-disabled",type:Boolean})],qe.prototype,"disabled",2);qe=Tr([
|
|
3854
|
+
`}};Tr([a({type:String})],qe.prototype,"_id",2);Tr([a({attribute:"data-value",type:String})],qe.prototype,"value",1);Tr([a({type:Boolean})],qe.prototype,"selected",2);Tr([a({type:Boolean})],qe.prototype,"checked",2);Tr([a({attribute:"data-disabled",type:Boolean})],qe.prototype,"disabled",2);qe=Tr([h("rtg-context-menu-checkbox-item")],qe);var oh=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,Yl=(e,t,o,s)=>{for(var r=s>1?void 0:s?sh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&oh(t,o,r),r};let gi=class extends m{constructor(){super(),this.isOpen=!1,this.handleClickOutside=this.handleClickOutside.bind(this)}get _containerElement(){return this.querySelector("div[part=context-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleClickOutside(e){const t=this==null?void 0:this.querySelector("button");!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&requestAnimationFrame(()=>{this._containerElement.style.display="none",this._containerElement.style.position="absolute",this._containerElement.dataset.state="closed",this.isOpen=!1})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3855
3855
|
<div
|
|
3856
3856
|
part="context-menu-content"
|
|
3857
3857
|
class=${u(gt.content,this.className)}
|
|
3858
3858
|
></div>
|
|
3859
|
-
`}};Yl([k()],gi.prototype,"isOpen",2);gi=Yl([
|
|
3859
|
+
`}};Yl([k()],gi.prototype,"isOpen",2);gi=Yl([h("rtg-context-menu-content")],gi);var ih=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,Zl=(e,t,o,s)=>{for(var r=s>1?void 0:s?nh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ih(t,o,r),r};let bi=class extends m{constructor(){super(...arguments),this.heading=""}get _containerElement(){return this.querySelector("div[ rtgcontext-group-items]")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3860
3860
|
<div
|
|
3861
3861
|
rtgcmd-group
|
|
3862
3862
|
part="context-menu-group"
|
|
@@ -3869,7 +3869,7 @@ body {
|
|
|
3869
3869
|
|
|
3870
3870
|
<div rtgcontext-group-items role="group"></div>
|
|
3871
3871
|
</div>
|
|
3872
|
-
`}};Zl([a({type:String})],bi.prototype,"heading",2);bi=Zl([
|
|
3872
|
+
`}};Zl([a({type:String})],bi.prototype,"heading",2);bi=Zl([h("rtg-context-menu-group")],bi);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,tn=(e,t,o,s)=>{for(var r=s>1?void 0:s?lh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ah(t,o,r),r};let Bo=class extends m{constructor(){super(...arguments),this.disabled=!1}get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return c`
|
|
3873
3873
|
<div
|
|
3874
3874
|
part="context-menu-item"
|
|
3875
3875
|
role="option"
|
|
@@ -3877,7 +3877,7 @@ body {
|
|
|
3877
3877
|
?data-disabled=${this.disabled}
|
|
3878
3878
|
class=${u(gt.item,this.className)}
|
|
3879
3879
|
></div>
|
|
3880
|
-
`}};tn([a({attribute:"data-value",type:String})],Bo.prototype,"value",1);tn([a({attribute:"data-disabled",type:Boolean})],Bo.prototype,"disabled",2);Bo=tn([
|
|
3880
|
+
`}};tn([a({attribute:"data-value",type:String})],Bo.prototype,"value",1);tn([a({attribute:"data-disabled",type:Boolean})],Bo.prototype,"disabled",2);Bo=tn([h("rtg-context-menu-item")],Bo);var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,Lr=(e,t,o,s)=>{for(var r=s>1?void 0:s?dh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ch(t,o,r),r};let Ve=class extends m{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3881
3881
|
<div
|
|
3882
3882
|
rtgcmd-item
|
|
3883
3883
|
part="context-menu-radio"
|
|
@@ -3910,49 +3910,49 @@ body {
|
|
|
3910
3910
|
</span>
|
|
3911
3911
|
<div part="context-menu-radio-item-container"></div>
|
|
3912
3912
|
</div>
|
|
3913
|
-
`}};Lr([a({type:String})],Ve.prototype,"_id",2);Lr([a({attribute:"data-value",type:String})],Ve.prototype,"value",1);Lr([a({type:Boolean})],Ve.prototype,"selected",2);Lr([a({type:Boolean})],Ve.prototype,"checked",2);Lr([a({attribute:"data-disabled",type:Boolean})],Ve.prototype,"disabled",2);Ve=Lr([
|
|
3913
|
+
`}};Lr([a({type:String})],Ve.prototype,"_id",2);Lr([a({attribute:"data-value",type:String})],Ve.prototype,"value",1);Lr([a({type:Boolean})],Ve.prototype,"selected",2);Lr([a({type:Boolean})],Ve.prototype,"checked",2);Lr([a({attribute:"data-disabled",type:Boolean})],Ve.prototype,"disabled",2);Ve=Lr([h("rtg-context-menu-radio-item")],Ve);var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Xl=(e,t,o,s)=>{for(var r=s>1?void 0:s?ph(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&uh(t,o,r),r};let mi=class extends ${constructor(){super(...arguments),this._id=""}createRenderRoot(){return this}render(){return c`
|
|
3914
3914
|
<div
|
|
3915
3915
|
rtgcmd-separator
|
|
3916
3916
|
part="context-menu-separator"
|
|
3917
3917
|
role="separator"
|
|
3918
3918
|
class=${u(gt.separator,this.className)}
|
|
3919
3919
|
></div>
|
|
3920
|
-
`}};Xl([a({type:String})],mi.prototype,"_id",2);mi=Xl([
|
|
3920
|
+
`}};Xl([a({type:String})],mi.prototype,"_id",2);mi=Xl([h("rtg-context-menu-separator")],mi);var hh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ca=class extends m{get _containerElement(){return this.querySelector("span[part=context-menu-shortcut]")}getAttributesToExclude(){return[]}createRenderRoot(){return this.classList=u(gt.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3921
3921
|
<span
|
|
3922
3922
|
part="context-menu-shortcut"
|
|
3923
3923
|
class=${u(gt.shortcut,this.className)}
|
|
3924
3924
|
>
|
|
3925
3925
|
</span>
|
|
3926
|
-
`}};ca=
|
|
3926
|
+
`}};ca=hh([h("rtg-context-menu-shortcut")],ca);var gh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let da=class extends ${createRenderRoot(){return this}render(){return c``}};da=gh([h("rtg-context-menu-trigger")],da);var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,Jl=(e,t,o,s)=>{for(var r=s>1?void 0:s?mh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&bh(t,o,r),r};let fi=class extends m{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{const t=e.target;this!=null&&this.contains(t)||(this.isOpen=!1)}}get _containerElement(){return this.querySelector("div[part=context-menu]")}get _triggerElement(){return this.querySelector("rtg-context-menu-trigger")}get _content(){return this==null?void 0:this.querySelector("div[part=context-menu-content]")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected),this.addEventListener("close-context-menu",()=>{this.isOpen=!1,requestAnimationFrame(()=>{const e=this._content;e&&(e.style.display="none")})})}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();const{clientX:t,clientY:o}=e,s=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const r=this._content;r&&(r.style.display="",r.style.position="absolute",r.style.left=`${t-s.left}px`,r.style.top=`${o-s.top}px`,r.dataset.state="open",this.isOpen=!0)})}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}getAttributesToExclude(){return[]}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._triggerElement)==null||t.addEventListener("contextmenu",o=>{this.toggleDropdown(o)}),this.style.position="relative"}createRenderRoot(){return this}render(){return c`
|
|
3927
3927
|
<div
|
|
3928
3928
|
part="context-menu"
|
|
3929
3929
|
class=${u(gt.root,this.className)}
|
|
3930
3930
|
></div>
|
|
3931
|
-
`}};Jl([k()],fi.prototype,"isOpen",2);fi=Jl([
|
|
3931
|
+
`}};Jl([k()],fi.prototype,"isOpen",2);fi=Jl([h("rtg-context-menu")],fi);var fh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ua=class extends m{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let e=this.parentElement;for(;e&&!(e instanceof qo);)e=e.parentElement;return e}onTrigger(){const e=this._collapsible;e&&(e.open=!e.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){const e=this.getFilteredAttributes();return c`
|
|
3932
3932
|
<div
|
|
3933
3933
|
@click=${this.onTrigger}
|
|
3934
3934
|
${V(e)}
|
|
3935
3935
|
part="collapsible-trigger"
|
|
3936
3936
|
></div>
|
|
3937
|
-
`}};ua=
|
|
3937
|
+
`}};ua=fh([h("rtg-collapsible-trigger")],ua);var vh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let pa=class extends m{constructor(){super(...arguments),this._toggleHandler=e=>{const t=e;requestAnimationFrame(()=>{const o=this._containerElement;o&&(o.style.display=t.detail.open?"block":"none")})}}get _containerElement(){return this.querySelector("div[part=collapsible-content]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[""]}connectedCallback(){super.connectedCallback(),this.addEventListener("toggle-collapsible-content",this._toggleHandler)}disconnectedCallback(){this.removeEventListener("toggle-collapsible-content",this._toggleHandler),super.disconnectedCallback()}render(){const e=this.getFilteredAttributes();return c`
|
|
3938
3938
|
<div
|
|
3939
3939
|
${V(e)}
|
|
3940
3940
|
class="${u("",this.className)}"
|
|
3941
3941
|
style="display: none;--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
|
3942
3942
|
part="collapsible-content"
|
|
3943
3943
|
></div>
|
|
3944
|
-
`}};
|
|
3944
|
+
`}};pa=vh([h("rtg-collapsible-content")],pa);var yh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,Ql=(e,t,o,s)=>{for(var r=s>1?void 0:s?wh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&yh(t,o,r),r};let qo=class extends m{constructor(){super(...arguments),this.open=!1,this._clickHandler=()=>{var e;(e=this.querySelector("rtg-collapsible-content"))==null||e.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}connectedCallback(){super.connectedCallback(),this.addEventListener("click-collapsible-event",this._clickHandler)}disconnectedCallback(){this.removeEventListener("click-collapsible-event",this._clickHandler),super.disconnectedCallback()}render(){const e=this.getFilteredAttributes();return c`
|
|
3945
3945
|
<div
|
|
3946
3946
|
${V(e)}
|
|
3947
3947
|
class="${u("",this.className)}"
|
|
3948
3948
|
part="collapsible"
|
|
3949
3949
|
></div>
|
|
3950
|
-
`}};Ql([a({type:Boolean})],qo.prototype,"open",2);qo=Ql([
|
|
3950
|
+
`}};Ql([a({type:Boolean})],qo.prototype,"open",2);qo=Ql([h("rtg-collapsible")],qo);const Lt={root:[""],trigger:[""],close:[""],overlay:["rtg-fixed rtg-inset-0 rtg-z-50","rtg-bg-dialog-overlay-color-bg","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0"],content:{base:["rtg-fixed rtg-top-[50%] rtg-left-[50%] rtg-z-50","rtg-grid rtg-gap-dialog-content-space-gap","rtg-p-dialog-content-space-p","rtg-w-dialog-content-space-w rtg-max-w-dialog-content-space-max-w-sm sm:rtg-max-w-dialog-content-space-max-w","rtg-bg-dialog-content-color-bg","rtg-rounded-dialog-content-radius rtg-border-dialog-content-width-border rtg-border-dialog-content-color-border rtg-outline-none","rtg-shadow-dialog-content-shadow","rtg-duration-200","rtg-translate-x-[-50%] rtg-translate-y-[-50%]","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],close:{base:["rtg-absolute rtg-top-4 rtg-right-4","rtg-rounded-dialog-close-radius","rtg-ring-offset-dialog-close-color-ring-offset rtg-opacity-dialog-close-opacity","rtg-transition-opacity","hover:rtg-opacity-dialog-close-opacity-hover","focus:rtg-ring-dialog-close-width-ring-focus focus:rtg-ring-dialog-close-color-ring-focus focus:rtg-ring-offset-dialog-close-width-ring-offset focus:rtg-outline-hidden","disabled:rtg-pointer-events-none","data-[state=open]:rtg-bg-dialog-close-color-bg data-[state=open]:rtg-text-dialog-close-color-text"],icon:["rtg-shrink-0","rtg-size-dialog-close-icon-space-size","rtg-pointer-events-none"]}},header:["rtg-flex rtg-flex-col rtg-gap-dialog-header-space-gap","rtg-text-center","sm:rtg-text-left"],footer:["rtg-flex rtg-flex-col-reverse rtg-gap-dialog-footer-space-gap","sm:rtg-flex-row sm:rtg-justify-end"],title:["rtg-text-dialog-title-font rtg-font-dialog-title-font-weight"],description:["rtg-text-dialog-description-font rtg-font-dialog-description-font-weight rtg-text-dialog-description-color-text"]};var xh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};const _h="closed";let ha=class extends m{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof _r)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-close]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",()=>{const t=this._dialog;t&&(t.dataset.state=_h)})}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
3951
3951
|
<div
|
|
3952
3952
|
part="dialog-close"
|
|
3953
3953
|
class=${u(Lt.close,this.className)}
|
|
3954
3954
|
></div>
|
|
3955
|
-
`}};
|
|
3955
|
+
`}};ha=xh([h("rtg-dialog-close")],ha);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,en=(e,t,o,s)=>{for(var r=s>1?void 0:s?Sh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Ch(t,o,r),r};const Vs="closed";let Vo=class extends m{constructor(){super(...arguments),this.state=Vs,this.showCloseButton=!1,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=Vs)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof _r)return e;e=e.parentElement}return e}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===Vs?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return c`
|
|
3956
3956
|
<div
|
|
3957
3957
|
rtgdlg-content
|
|
3958
3958
|
part="dialog-content"
|
|
@@ -3986,12 +3986,12 @@ body {
|
|
|
3986
3986
|
</button>
|
|
3987
3987
|
`:""}
|
|
3988
3988
|
</div>
|
|
3989
|
-
`}};en([a({attribute:"data-state",type:String})],Vo.prototype,"state",2);en([a({attribute:"show-close-button",type:Boolean})],Vo.prototype,"showCloseButton",2);Vo=en([
|
|
3989
|
+
`}};en([a({attribute:"data-state",type:String})],Vo.prototype,"state",2);en([a({attribute:"show-close-button",type:Boolean})],Vo.prototype,"showCloseButton",2);Vo=en([h("rtg-dialog-content")],Vo);var $h=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ga=class extends m{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3990
3990
|
<div
|
|
3991
3991
|
part="dialog-footer"
|
|
3992
3992
|
class=${u(Lt.footer,this.className)}
|
|
3993
3993
|
></div>
|
|
3994
|
-
`}};ga=$
|
|
3994
|
+
`}};ga=$h([h("rtg-dialog-footer")],ga);var Eh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,rn=(e,t,o,s)=>{for(var r=s>1?void 0:s?kh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Eh(t,o,r),r};let Ho=class extends ${constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return c`
|
|
3995
3995
|
<div
|
|
3996
3996
|
part="dialog-header"
|
|
3997
3997
|
class=${u(Lt.header,this.className)}
|
|
@@ -4002,25 +4002,25 @@ body {
|
|
|
4002
4002
|
${this.description}
|
|
4003
4003
|
</p>
|
|
4004
4004
|
</div>
|
|
4005
|
-
`}};rn([a({attribute:"title",type:String})],Ho.prototype,"_title",2);rn([a({type:String})],Ho.prototype,"description",2);Ho=rn([
|
|
4005
|
+
`}};rn([a({attribute:"title",type:String})],Ho.prototype,"_title",2);rn([a({type:String})],Ho.prototype,"description",2);Ho=rn([h("rtg-dialog-header")],Ho);var Rh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ba=class extends ${createRenderRoot(){return this}render(){return c`
|
|
4006
4006
|
<div
|
|
4007
4007
|
part="dialog-overly"
|
|
4008
4008
|
class=${u(Lt.overlay,this.className)}
|
|
4009
4009
|
></div>
|
|
4010
|
-
`}};ba=
|
|
4010
|
+
`}};ba=Rh([h("rtg-dialog-overlay")],ba);var Oh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};const Ah="open";let ma=class extends m{constructor(){super(...arguments),this.handleClick=()=>{const e=this._dialog;e&&(e.dataset.state=Ah)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof _r)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return c`
|
|
4011
4011
|
<div
|
|
4012
4012
|
part="dialog-trigger"
|
|
4013
4013
|
class=${u(Lt.trigger,this.className)}
|
|
4014
4014
|
></div>
|
|
4015
|
-
`}};ma=
|
|
4015
|
+
`}};ma=Oh([h("rtg-dialog-trigger")],ma);var Ph=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,tc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ih(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Ph(t,o,r),r};const Th="open",Lh="closed";let _r=class extends m{constructor(){super(...arguments),this.state=Lh}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){return this.querySelector("rtg-dialog-content")||null}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.state)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return c`
|
|
4016
4016
|
<div
|
|
4017
4017
|
rtgdlg-root
|
|
4018
4018
|
part="dialog"
|
|
4019
4019
|
class=${u(Lt.root,this.className)}
|
|
4020
4020
|
>
|
|
4021
|
-
${this.state===
|
|
4021
|
+
${this.state===Th?c` <rtg-dialog-overlay></rtg-dialog-overlay>`:I}
|
|
4022
4022
|
</div>
|
|
4023
|
-
`}};tc([a({attribute:"data-state",type:String})],_r.prototype,"state",2);_r=tc([
|
|
4023
|
+
`}};tc([a({attribute:"data-state",type:String})],_r.prototype,"state",2);_r=tc([h("rtg-dialog")],_r);const fa={root:["rtg-inline-flex","rtg-shrink-0 rtg-items-center","rtg-w-switch-space-w rtg-h-switch-space-h","rtg-rounded-switch-radius rtg-border-switch-width-border rtg-border-switch-color-border rtg-outline-none","rtg-shadow-switch-shadow","rtg-transition-all","focus-visible:rtg-border-switch-color-border-focus focus-visible:rtg-ring-switch-width-ring-focus focus-visible:rtg-ring-switch-color-ring-focus",'data-[state="checked"]:rtg-bg-switch-color-bg-checked data-[state="unchecked"]:rtg-bg-switch-color-bg-unchecked','data-[disabled="true"]:rtg-opacity-switch-opacity-disabled data-[disabled="true"]:rtg-cursor-not-allowed'],thumb:["rtg-pointer-events-none","rtg-block","rtg-size-switch-thumb-space-size","rtg-rounded-switch-thumb-radius","rtg-ring-0","rtg-transition-transform",'data-[state="checked"]:rtg-bg-switch-thumb-color-bg-checked data-[state="unchecked"]:rtg-bg-switch-thumb-color-bg-unchecked','data-[state="checked"]:rtg-translate-x-[calc(100%-2px)] data-[state="unchecked"]:rtg-translate-x-0']};var Dh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,on=(e,t,o,s)=>{for(var r=s>1?void 0:s?zh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Dh(t,o,r),r};let Go=class extends ${constructor(){super(...arguments),this.disabled="false",this.state="unchecked"}_toggleChecked(){this.disabled==="false"&&(this.state=this.state==="checked"?"unchecked":"checked",this.dispatchEvent(new CustomEvent("change",{detail:this.state})))}createRenderRoot(){return this.classList="rtg-w-switch-space-w rtg-h-switch-space-h",this}render(){return c`
|
|
4024
4024
|
<div
|
|
4025
4025
|
part="switch"
|
|
4026
4026
|
role="switch"
|
|
@@ -4036,7 +4036,7 @@ body {
|
|
|
4036
4036
|
class=${u(fa.thumb)}
|
|
4037
4037
|
></div>
|
|
4038
4038
|
</div>
|
|
4039
|
-
`}};on([a({attribute:"data-disabled",type:String})],Go.prototype,"disabled",2);on([a({attribute:"data-state",type:String})],Go.prototype,"state",2);Go=on([
|
|
4039
|
+
`}};on([a({attribute:"data-disabled",type:String})],Go.prototype,"disabled",2);on([a({attribute:"data-state",type:String})],Go.prototype,"state",2);Go=on([h("rtg-switch")],Go);const bt={root:[""],content:["rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-p-dropdown-menu-content-space-p","rtg-min-w-dropdown-menu-content-space-min-w","rtg-text-dropdown-menu-content-color-text","rtg-bg-dropdown-menu-content-color-bg","rtg-rounded-dropdown-menu-content-radius rtg-border-dropdown-menu-content-width-border rtg-border-dropdown-menu-content-color-border","rtg-shadow-dropdown-menu-content-shadow","rtg-translate-y-0.5","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],group:[""],item:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-item-space-gap rtg-items-center","rtg-px-dropdown-menu-item-space-px rtg-py-dropdown-menu-item-space-py","rtg-text-dropdown-menu-item-font","rtg-rounded-dropdown-menu-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","hover:rtg-bg-dropdown-menu-item-color-bg-hover hover:rtg-text-dropdown-menu-item-color-text-hover","focus:rtg-bg-dropdown-menu-item-color-bg-focus focus:rtg-text-dropdown-menu-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-dropdown-menu-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-dropdown-menu-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-checkbox-item-space-gap rtg-items-center","rtg-pl-dropdown-menu-checkbox-item-space-pl rtg-pr-dropdown-menu-checkbox-item-space-pr rtg-py-dropdown-menu-checkbox-item-space-py","rtg-text-dropdown-menu-checkbox-item-font","rtg-rounded-dropdown-menu-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-dropdown-menu-checkbox-item-color-bg-focus aria-selected:rtg-text-dropdown-menu-checkbox-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-dropdown-menu-checkbox-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-dropdown-menu-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-radio-item-space-gap rtg-items-center","rtg-pl-dropdown-menu-radio-item-space-pl rtg-pr-dropdown-menu-radio-item-space-pr rtg-py-dropdown-menu-radio-item-space-py","rtg-text-dropdown-menu-radio-item-font","rtg-rounded-dropdown-menu-radio-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-dropdown-menu-radio-item-color-bg-focus aria-selected:rtg-text-dropdown-menu-radio-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-dropdown-menu-radio-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-dropdown-menu-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-dropdown-menu-label-space-px rtg-py-dropdown-menu-label-space-py","rtg-text-dropdown-menu-label-font rtg-font-dropdown-menu-label-font-weight"],separator:["rtg-mx-dropdown-menu-separator-space-mx rtg-my-dropdown-menu-separator-space-my","rtg-h-dropdown-menu-separator-space-h","rtg-bg-dropdown-menu-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-dropdown-menu-shortcut-font rtg-text-dropdown-menu-shortcut-color-text"]};var jh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,Dr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Uh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&jh(t,o,r),r};let He=class extends m{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof rt);)e=e.parentElement;return e}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4040
4040
|
<div
|
|
4041
4041
|
rtgcmd-item
|
|
4042
4042
|
part="dropdown-menu-item"
|
|
@@ -4073,13 +4073,13 @@ body {
|
|
|
4073
4073
|
</span>
|
|
4074
4074
|
<div part="dropdown-menu-checkbox-item-container"></div>
|
|
4075
4075
|
</div>
|
|
4076
|
-
`}};Dr([a({type:String})],He.prototype,"_id",2);Dr([a({attribute:"data-value",type:String})],He.prototype,"value",1);Dr([a({type:Boolean})],He.prototype,"selected",2);Dr([a({type:Boolean})],He.prototype,"checked",2);Dr([a({attribute:"data-disabled",type:Boolean})],He.prototype,"disabled",2);He=Dr([
|
|
4076
|
+
`}};Dr([a({type:String})],He.prototype,"_id",2);Dr([a({attribute:"data-value",type:String})],He.prototype,"value",1);Dr([a({type:Boolean})],He.prototype,"selected",2);Dr([a({type:Boolean})],He.prototype,"checked",2);Dr([a({attribute:"data-disabled",type:Boolean})],He.prototype,"disabled",2);He=Dr([h("rtg-dropdown-menu-checkbox-item")],He);const sn="closed";var Nh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,nn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Mh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Nh(t,o,r),r};let Wo=class extends m{constructor(){super(...arguments),this.state=sn,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof rt);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4077
4077
|
<div
|
|
4078
4078
|
part="dropdown-menu-content"
|
|
4079
4079
|
style="display: ${this.isOpen?"block":"none"};"
|
|
4080
4080
|
class=${u(bt.content,this.className)}
|
|
4081
4081
|
></div>
|
|
4082
|
-
`}};nn([a({attribute:"data-state",type:String})],Wo.prototype,"state",2);nn([k()],Wo.prototype,"isOpen",2);Wo=nn([
|
|
4082
|
+
`}};nn([a({attribute:"data-state",type:String})],Wo.prototype,"state",2);nn([k()],Wo.prototype,"isOpen",2);Wo=nn([h("rtg-dropdown-menu-content")],Wo);var Fh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,cs=(e,t,o,s)=>{for(var r=s>1?void 0:s?Bh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Fh(t,o,r),r};let lo=class extends m{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`${this._hidden==="true"?I:c`
|
|
4083
4083
|
<div
|
|
4084
4084
|
rtgcmd-group
|
|
4085
4085
|
part="dropdown-menu-group"
|
|
@@ -4092,7 +4092,7 @@ body {
|
|
|
4092
4092
|
|
|
4093
4093
|
<div rtgcmd-group-items role="group"></div>
|
|
4094
4094
|
</div>
|
|
4095
|
-
`}`}};cs([a({type:String})],lo.prototype,"heading",2);cs([a({attribute:"id",type:String})],lo.prototype,"_id",2);cs([a({attribute:"aria-hidden",type:String})],lo.prototype,"_hidden",2);lo=cs([
|
|
4095
|
+
`}`}};cs([a({type:String})],lo.prototype,"heading",2);cs([a({attribute:"id",type:String})],lo.prototype,"_id",2);cs([a({attribute:"aria-hidden",type:String})],lo.prototype,"_hidden",2);lo=cs([h("rtg-dropdown-menu-group")],lo);var qh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,zr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Vh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&qh(t,o,r),r};let Ge=class extends m{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof rt);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c` ${this._hidden==="true"?I:c`
|
|
4096
4096
|
<div
|
|
4097
4097
|
rtgcmd-item
|
|
4098
4098
|
part="dropdown-menu-item"
|
|
@@ -4108,7 +4108,7 @@ body {
|
|
|
4108
4108
|
@click="${this.handleClickDefault}"
|
|
4109
4109
|
class=${u(bt.item,this.className)}
|
|
4110
4110
|
></div>
|
|
4111
|
-
`}`}};zr([a({type:String})],Ge.prototype,"_id",2);zr([a({attribute:"aria-hidden",type:String})],Ge.prototype,"_hidden",2);zr([a({attribute:"data-value",type:String})],Ge.prototype,"value",1);zr([a({type:Boolean})],Ge.prototype,"selected",2);zr([a({attribute:"data-disabled",type:Boolean})],Ge.prototype,"disabled",2);Ge=zr([
|
|
4111
|
+
`}`}};zr([a({type:String})],Ge.prototype,"_id",2);zr([a({attribute:"aria-hidden",type:String})],Ge.prototype,"_hidden",2);zr([a({attribute:"data-value",type:String})],Ge.prototype,"value",1);zr([a({type:Boolean})],Ge.prototype,"selected",2);zr([a({attribute:"data-disabled",type:Boolean})],Ge.prototype,"disabled",2);Ge=zr([h("rtg-dropdown-menu-item")],Ge);var Hh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Qe=(e,t,o,s)=>{for(var r=s>1?void 0:s?Gh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Hh(t,o,r),r};let fe=class extends m{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-radio-item-container]")}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4112
4112
|
<div
|
|
4113
4113
|
rtgcmd-item
|
|
4114
4114
|
part="dropdown-menu-radio"
|
|
@@ -4143,27 +4143,27 @@ body {
|
|
|
4143
4143
|
</span>
|
|
4144
4144
|
<div part="dropdown-menu-radio-item-container"></div>
|
|
4145
4145
|
</div>
|
|
4146
|
-
`}};Qe([a({type:String})],fe.prototype,"_id",2);Qe([a({attribute:"aria-hidden",type:String})],fe.prototype,"_hidden",2);Qe([a({attribute:"data-value",type:String})],fe.prototype,"value",1);Qe([a({type:Boolean})],fe.prototype,"selected",2);Qe([a({type:Boolean})],fe.prototype,"checked",2);Qe([a({attribute:"data-disabled",type:Boolean})],fe.prototype,"disabled",2);fe=Qe([
|
|
4146
|
+
`}};Qe([a({type:String})],fe.prototype,"_id",2);Qe([a({attribute:"aria-hidden",type:String})],fe.prototype,"_hidden",2);Qe([a({attribute:"data-value",type:String})],fe.prototype,"value",1);Qe([a({type:Boolean})],fe.prototype,"selected",2);Qe([a({type:Boolean})],fe.prototype,"checked",2);Qe([a({attribute:"data-disabled",type:Boolean})],fe.prototype,"disabled",2);fe=Qe([h("rtg-dropdown-menu-radio-item")],fe);var Wh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let va=class extends m{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`<div
|
|
4147
4147
|
rtgcmd-separator
|
|
4148
4148
|
part="dropdown-menu-seperator"
|
|
4149
4149
|
role="separator"
|
|
4150
4150
|
class=${u(bt.separator,this.className)}
|
|
4151
|
-
></div>`}};va=
|
|
4151
|
+
></div>`}};va=Wh([h("rtg-dropdown-menu-separator")],va);var Kh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ya=class extends m{get _containerElement(){return this.querySelector("span[part=dropdown-menu-shortcut]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this.classList=u(bt.shortcut),this}render(){return c`
|
|
4152
4152
|
<span
|
|
4153
4153
|
part="dropdown-menu-shortcut"
|
|
4154
4154
|
class=${u(bt.shortcut,this.className)}
|
|
4155
4155
|
>
|
|
4156
4156
|
</span>
|
|
4157
|
-
`}};ya=
|
|
4157
|
+
`}};ya=Kh([h("rtg-dropdown-menu-shortcut")],ya);var Yh=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let wa=class extends ${createRenderRoot(){return this}render(){return c``}};wa=Yh([h("rtg-dropdown-menu-trigger")],wa);var Zh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,ec=(e,t,o,s)=>{for(var r=s>1?void 0:s?Xh(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Zh(t,o,r),r};let rt=class extends m{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var t,o;const s=e.target;!((t=this._containerElement)!=null&&t.contains(s))&&!((o=this._triggerElement)!=null&&o.contains(s))&&(this.isOpen=!1,rt._openInstance===this&&(rt._openInstance=null))}}get _triggerElement(){return this.querySelector("rtg-dropdown-menu-trigger")}get _containerElement(){return this.querySelector("div[part=dropdown-menu]")}get _content(){return this.querySelector("rtg-dropdown-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}toggleDropdown(e){e.stopPropagation();const t=this.isOpen;this.isOpen=!this.isOpen,this.isOpen?(rt._openInstance&&rt._openInstance!==this&&(rt._openInstance.isOpen=!1),rt._openInstance=this):t&&rt._openInstance===this&&(rt._openInstance=null)}disconnectedCallback(){rt._openInstance===this&&(rt._openInstance=null),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._triggerElement)==null||t.addEventListener("click",o=>this.toggleDropdown(o))}_handleRadioSelected(e){this.isOpen=!1,this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}createRenderRoot(){return this}render(){return c`
|
|
4158
4158
|
<div
|
|
4159
4159
|
part="dropdown-menu"
|
|
4160
4160
|
class=${u(bt.root,this.className)}
|
|
4161
4161
|
></div>
|
|
4162
|
-
`}};rt._openInstance=null;ec([k()],rt.prototype,"isOpen",2);rt=ec([
|
|
4162
|
+
`}};rt._openInstance=null;ec([k()],rt.prototype,"isOpen",2);rt=ec([h("rtg-dropdown-menu")],rt);const Jh=["rtg-flex","rtg-min-h-textarea-space-min-h rtg-w-textarea-space-w rtg-px-textarea-space-px rtg-py-textarea-space-py","rtg-rounded-textarea-radius rtg-border rtg-border-textarea-color-border","rtg-bg-textarea-color-bg rtg-text-textarea-font rtg-text-textarea-color-text placeholder:rtg-text-textarea-color-text-placeholder","focus-visible:rtg-outline-none focus-visible:rtg-ring-textarea-width-ring-focus focus-visible:rtg-ring-textarea-color-ring-focus focus-visible:rtg-ring-offset-textarea-width-ring-offset-focus","disabled:rtg-cursor-not-allowed disabled:rtg-opacity-textarea-opacity-disabled"];var Qh=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,tr=(e,t,o,s)=>{for(var r=s>1?void 0:s?tg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Qh(t,o,r),r};let ve=class extends m{constructor(){super(),this.disabled=!1,this.placeholder="",this.defaultValue="",this.rows=4,this.cols=50,this.value="",this.value=this.value||this.defaultValue}firstUpdated(e){this.value=this.defaultValue}handleInputChange(e){const t=e.target;this.value=t.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
4163
4163
|
<textarea
|
|
4164
4164
|
part="textarea"
|
|
4165
4165
|
${V(e)}
|
|
4166
|
-
class="${u(
|
|
4166
|
+
class="${u(Jh,this.className)}"
|
|
4167
4167
|
placeholder="${this.placeholder}"
|
|
4168
4168
|
.value=${this.value}
|
|
4169
4169
|
.rows=${this.rows}
|
|
@@ -4171,7 +4171,7 @@ body {
|
|
|
4171
4171
|
?disabled=${this.disabled}
|
|
4172
4172
|
@change="${this.handleInputChange}"
|
|
4173
4173
|
></textarea>
|
|
4174
|
-
`}};tr([a({type:Boolean})],ve.prototype,"disabled",2);tr([a({type:String})],ve.prototype,"placeholder",2);tr([a({type:String})],ve.prototype,"defaultValue",2);tr([a({type:Number})],ve.prototype,"rows",2);tr([a({type:Number})],ve.prototype,"cols",2);tr([a({type:String})],ve.prototype,"value",2);ve=tr([
|
|
4174
|
+
`}};tr([a({type:Boolean})],ve.prototype,"disabled",2);tr([a({type:String})],ve.prototype,"placeholder",2);tr([a({type:String})],ve.prototype,"defaultValue",2);tr([a({type:Number})],ve.prototype,"rows",2);tr([a({type:Number})],ve.prototype,"cols",2);tr([a({type:String})],ve.prototype,"value",2);ve=tr([h("rtg-textarea")],ve);const Jr={root:["rtg-grid","rtg-gap-radio-group-space-gap"],item:{wrapper:["rtg-inline-flex","rtg-justify-center rtg-items-center","rtg-size-radio-group-item-space-size"],item:["rtg-aspect-square","rtg-shrink-0","rtg-size-radio-group-item-space-size","rtg-bg-radio-group-item-color-bg","rtg-rounded-radio-group-item-radius rtg-border-radio-group-item-width-border rtg-border-radio-group-item-color-border rtg-outline-none","rtg-shadow-radio-group-item-shadow","rtg-transition-[color,box-shadow]","focus-visible:rtg-border-radio-group-item-color-border-focus focus-visible:rtg-ring-radio-group-item-width-ring-focus focus-visible:rtg-ring-radio-group-item-color-ring-focus","disabled:rtg-opacity-radio-group-item-opacity-disabled disabled:rtg-cursor-not-allowed","aria-invalid:rtg-border-radio-group-item-color-border-invalid aria-invalid:rtg-ring-radio-group-item-width-ring-invalid aria-invalid:rtg-ring-radio-group-item-color-ring-invalid"],indicator:["rtg-flex rtg-relative","rtg-justify-center rtg-items-center"],icon:["rtg-absolute rtg-top-1/2 rtg-left-1/2","rtg-size-radio-group-indicator-space-size","rtg--translate-x-1/2 rtg--translate-y-1/2","rtg-fill-radio-group-indicator-color-fill"]}},eg="unChecked";var rg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,ke=(e,t,o,s)=>{for(var r=s>1?void 0:s?og(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&rg(t,o,r),r};let te=class extends m{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=eg,this.disabled=!1,this.invalid=!1}get _containerElement(){return this.querySelector("button[part=radio-group-item]")}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this.classList=u(Jr.item.wrapper),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4175
4175
|
<button
|
|
4176
4176
|
type="button"
|
|
4177
4177
|
part="radio-group-item"
|
|
@@ -4207,18 +4207,18 @@ body {
|
|
|
4207
4207
|
</svg>
|
|
4208
4208
|
</span>`:I}
|
|
4209
4209
|
</button>
|
|
4210
|
-
`}};ke([a({type:Boolean,reflect:!0})],te.prototype,"checked",2);ke([a({type:Number})],te.prototype,"tabindex",2);ke([a({type:String})],te.prototype,"value",2);ke([a({type:String})],te.prototype,"id",2);ke([a({attribute:"data-state",type:String})],te.prototype,"state",2);ke([a({type:Boolean})],te.prototype,"disabled",2);ke([a({attribute:"aria-invalid",type:Boolean})],te.prototype,"invalid",2);te=ke([
|
|
4210
|
+
`}};ke([a({type:Boolean,reflect:!0})],te.prototype,"checked",2);ke([a({type:Number})],te.prototype,"tabindex",2);ke([a({type:String})],te.prototype,"value",2);ke([a({type:String})],te.prototype,"id",2);ke([a({attribute:"data-state",type:String})],te.prototype,"state",2);ke([a({type:Boolean})],te.prototype,"disabled",2);ke([a({attribute:"aria-invalid",type:Boolean})],te.prototype,"invalid",2);te=ke([h("rtg-radio-group-item")],te);var sg=Object.defineProperty,ig=Object.getOwnPropertyDescriptor,rc=(e,t,o,s)=>{for(var r=s>1?void 0:s?ig(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&sg(t,o,r),r};let vi=class extends m{constructor(){super(...arguments),this.defaultValue=""}get _containerElement(){return this.querySelector("div[part=radio-group]")}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return this.querySelectorAll("rtg-radio-group-item").forEach(e=>{e.checked=e.value==this.defaultValue}),c`
|
|
4211
4211
|
<div
|
|
4212
4212
|
part="radio-group"
|
|
4213
4213
|
class=${u(Jr.root,this.className)}
|
|
4214
4214
|
></div>
|
|
4215
|
-
`}};rc([a({type:String})],vi.prototype,"defaultValue",2);vi=rc([
|
|
4215
|
+
`}};rc([a({type:String})],vi.prototype,"defaultValue",2);vi=rc([h("rtg-radio-group")],vi);const Dt={root:["rtg-flex","rtg-justify-center","rtg-mx-auto","rtg-w-full"],content:["rtg-flex","rtg-flex-row rtg-gap-pagination-content-space-gap rtg-items-center"],item:[""],link:br,previous:{base:["rtg-gap-pagination-previous-space-gap","rtg-px-pagination-previous-space-px sm:rtg-pl-pagination-previous-space-px"],span:["rtg-hidden sm:rtg-block"]},next:{base:["rtg-gap-pagination-next-space-gap","rtg-px-pagination-next-space-px sm:rtg-pr-pagination-next-space-px"],span:["rtg-hidden sm:rtg-block"]},ellipsis:{base:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-pagination-ellipsis-space-size"],icon:["rtg-size-pagination-ellipsis-icon-space-size"],span:["rtg-sr-only"]}};var ng=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let xa=class extends m{get _containerElement(){return this.querySelector("ul[part=pagination-content]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4216
4216
|
<ul
|
|
4217
4217
|
data-slot="pagination-content"
|
|
4218
4218
|
part="pagination-content"
|
|
4219
4219
|
class=${u(Dt.content,this.className)}
|
|
4220
4220
|
></ul>
|
|
4221
|
-
`}};xa=ng([
|
|
4221
|
+
`}};xa=ng([h("rtg-pagination-content")],xa);var ag=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let _a=class extends m{get _containerElement(){return this.querySelector("span[part=pagination-ellipsis]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4222
4222
|
<span
|
|
4223
4223
|
aria-hidden
|
|
4224
4224
|
data-slot="pagination-ellipsis"
|
|
@@ -4244,7 +4244,7 @@ body {
|
|
|
4244
4244
|
|
|
4245
4245
|
<span class=${u(Dt.ellipsis.span)}>More pages</span>
|
|
4246
4246
|
</span>
|
|
4247
|
-
`}};_a=ag([
|
|
4247
|
+
`}};_a=ag([h("rtg-pagination-ellipsis")],_a);var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,_o=(e,t,o,s)=>{for(var r=s>1?void 0:s?cg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&lg(t,o,r),r};let We=class extends m{constructor(){super(...arguments),this.state="close",this.isActive=!1,this.size="icon",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return c`
|
|
4248
4248
|
<a
|
|
4249
4249
|
aria-current=${this.isActive?"page":void 0}
|
|
4250
4250
|
data-slot="pagination-link"
|
|
@@ -4255,14 +4255,14 @@ body {
|
|
|
4255
4255
|
class=${u(Dt.link({variant:this.isActive?"outline":"ghost",size:this.size}),this.className)}
|
|
4256
4256
|
>
|
|
4257
4257
|
</a>
|
|
4258
|
-
`}};_o([a({attribute:"data-state",type:String})],We.prototype,"state",2);_o([a({type:Boolean})],We.prototype,"isActive",2);_o([a({type:String})],We.prototype,"size",2);_o([a({type:String})],We.prototype,"href",2);We=_o([
|
|
4258
|
+
`}};_o([a({attribute:"data-state",type:String})],We.prototype,"state",2);_o([a({type:Boolean})],We.prototype,"isActive",2);_o([a({type:String})],We.prototype,"size",2);_o([a({type:String})],We.prototype,"href",2);We=_o([h("rtg-pagination-link")],We);var dg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,an=(e,t,o,s)=>{for(var r=s>1?void 0:s?ug(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&dg(t,o,r),r};let Ko=class extends m{constructor(){super(...arguments),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var e;const t=(e=this._containerElement)==null?void 0:e.children;if(t){for(let o=0;o<t.length;o++)if(t[o]instanceof We)return t[o]}return null}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("rtg-pagination-item").forEach(t=>{t!==this&&(t.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var e;this.moveLightDomChildrenInto(this._containerElement);const t=(e=this._containerElement)==null?void 0:e.children,o=[];for(let s=0;s<t.length-1;s+=1){const r=t[s],i=crypto.randomUUID();o.push(i),r.dataset.pairId=i}this.uniqueIds=o,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return c`
|
|
4259
4259
|
<li
|
|
4260
4260
|
data-slot="pagination-item"
|
|
4261
4261
|
part="pagination-item"
|
|
4262
4262
|
class=${u(Dt.item,this.className)}
|
|
4263
4263
|
@click="${this.handleClick}"
|
|
4264
4264
|
></li>
|
|
4265
|
-
`}};an([k()],Ko.prototype,"uniqueIds",2);an([a({type:Boolean})],Ko.prototype,"isActive",2);Ko=an([
|
|
4265
|
+
`}};an([k()],Ko.prototype,"uniqueIds",2);an([a({type:Boolean})],Ko.prototype,"isActive",2);Ko=an([h("rtg-pagination-item")],Ko);var pg=Object.defineProperty,hg=Object.getOwnPropertyDescriptor,oc=(e,t,o,s)=>{for(var r=s>1?void 0:s?hg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&pg(t,o,r),r};let yi=class extends m{constructor(){super(...arguments),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4266
4266
|
<rtg-pagination-link
|
|
4267
4267
|
aria-label="Go to next page"
|
|
4268
4268
|
size="default"
|
|
@@ -4288,7 +4288,7 @@ body {
|
|
|
4288
4288
|
|
|
4289
4289
|
<div part="pagination-next"></div>
|
|
4290
4290
|
</rtg-pagination-link>
|
|
4291
|
-
`}};oc([a({type:String})],yi.prototype,"href",2);yi=oc([
|
|
4291
|
+
`}};oc([a({type:String})],yi.prototype,"href",2);yi=oc([h("rtg-pagination-next")],yi);var gg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,sc=(e,t,o,s)=>{for(var r=s>1?void 0:s?bg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&gg(t,o,r),r};let wi=class extends m{constructor(){super(...arguments),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-previous]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4292
4292
|
<rtg-pagination-link
|
|
4293
4293
|
aria-label="Go to previous page"
|
|
4294
4294
|
size="default"
|
|
@@ -4314,7 +4314,7 @@ body {
|
|
|
4314
4314
|
|
|
4315
4315
|
<div part="pagination-previous"></div>
|
|
4316
4316
|
</rtg-pagination-link>
|
|
4317
|
-
`}};sc([a({type:String})],wi.prototype,"href",2);wi=sc([
|
|
4317
|
+
`}};sc([a({type:String})],wi.prototype,"href",2);wi=sc([h("rtg-pagination-previous")],wi);var mg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ca=class extends m{get _containerElement(){return this.querySelector("nav[part=pagination]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4318
4318
|
<nav
|
|
4319
4319
|
role="navigation"
|
|
4320
4320
|
aria-label="pagination"
|
|
@@ -4322,12 +4322,12 @@ body {
|
|
|
4322
4322
|
part="pagination"
|
|
4323
4323
|
class=${u(Dt.root,this.className)}
|
|
4324
4324
|
></nav>
|
|
4325
|
-
`}};Ca=mg([
|
|
4325
|
+
`}};Ca=mg([h("rtg-pagination")],Ca);const qt={open:"open",closed:"closed"},Wt={root:[""],trigger:[""],close:[""],overlay:["rtg-fixed rtg-inset-0 rtg-z-50","rtg-bg-drawer-overlay-color-bg","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0"],content:{base:["rtg-fixed rtg-inset-x-0 rtg-bottom-0 rtg-z-50","rtg-flex rtg-flex-col","rtg-mt-drawer-content-space-mt","rtg-h-auto rtg-max-h-[80vh]","rtg-bg-drawer-content-color-bg","rtg-rounded-t-drawer-content-radius rtg-border-t-drawer-content-width-border rtg-border-t-drawer-content-color-border"],thumb:["rtg-shrink-0","rtg-mx-auto rtg-mt-drawer-thumb-space-mt","rtg-w-drawer-thumb-space-w rtg-h-drawer-thumb-space-h","rtg-bg-drawer-thumb-color-bg","rtg-rounded-drawer-thumb-radius"]},header:["rtg-flex rtg-flex-col rtg-gap-drawer-header-space-gap-sm md:rtg-gap-drawer-header-space-gap","rtg-p-drawer-header-space-p","rtg-text-center"],footer:["rtg-flex rtg-flex-col rtg-gap-drawer-footer-space-gap","rtg-p-drawer-footer-space-p rtg-mt-auto"],title:["rtg-text-drawer-title-font rtg-font-drawer-title-font-weight rtg-text-drawer-title-color-text"],description:["rtg-text-drawer-description-font rtg-font-drawer-description-font-weight rtg-text-drawer-description-color-text"]};var fg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Sa=class extends m{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof co)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;const t=this._containerElement;if(t){this.moveLightDomChildrenInto(t);const o=t.querySelector("button, [data-close], [role=button]");o&&o.addEventListener("click",s=>{s.stopPropagation();const r=this._drawer;r&&(r.dataset.state=qt.closed)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
4326
4326
|
<div
|
|
4327
4327
|
part="drawer-close"
|
|
4328
4328
|
class=${u(Wt.close,this.className)}
|
|
4329
4329
|
></div>
|
|
4330
|
-
`}};Sa=fg([
|
|
4330
|
+
`}};Sa=fg([h("rtg-drawer-close")],Sa);var vg=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,ic=(e,t,o,s)=>{for(var r=s>1?void 0:s?yg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&vg(t,o,r),r};let xi=class extends m{constructor(){super(...arguments),this.state=qt.closed}connectedCallback(){super.connectedCallback();const e=document.createElement("style");e.textContent=`
|
|
4331
4331
|
@keyframes slideInUp {
|
|
4332
4332
|
from { transform: translateY(100%); }
|
|
4333
4333
|
to { transform: translateY(0); }
|
|
@@ -4356,37 +4356,37 @@ body {
|
|
|
4356
4356
|
<div part="drawer-thumb" class=${u(Wt.content.thumb)}></div>
|
|
4357
4357
|
<div part="drawer-content-slot"></div>
|
|
4358
4358
|
</div>
|
|
4359
|
-
`}};ic([a({attribute:"data-state",type:String})],xi.prototype,"state",2);xi=ic([
|
|
4359
|
+
`}};ic([a({attribute:"data-state",type:String})],xi.prototype,"state",2);xi=ic([h("rtg-drawer-content")],xi);var wg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let $a=class extends m{get _containerElement(){return this.querySelector("p[part=drawer-description")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4360
4360
|
<p
|
|
4361
4361
|
part="drawer-description"
|
|
4362
4362
|
class=${u(Wt.description,this.className)}
|
|
4363
4363
|
></p>
|
|
4364
|
-
`}};$a=wg([
|
|
4364
|
+
`}};$a=wg([h("rtg-drawer-description")],$a);var xg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ea=class extends m{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4365
4365
|
<div
|
|
4366
4366
|
part="drawer-footer"
|
|
4367
4367
|
class=${u(Wt.footer,this.className)}
|
|
4368
4368
|
></div>
|
|
4369
|
-
`}};Ea=xg([
|
|
4369
|
+
`}};Ea=xg([h("rtg-drawer-footer")],Ea);var _g=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ka=class extends m{get _containerElement(){return this.querySelector("div[part=drawer-header")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4370
4370
|
<div
|
|
4371
4371
|
part="drawer-header"
|
|
4372
4372
|
class=${u(Wt.header,this.className)}
|
|
4373
4373
|
></div>
|
|
4374
|
-
`}};ka=_g([
|
|
4374
|
+
`}};ka=_g([h("rtg-drawer-header")],ka);var Cg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ra=class extends ${createRenderRoot(){return this}render(){return c`
|
|
4375
4375
|
<div
|
|
4376
4376
|
part="drawer-overly"
|
|
4377
4377
|
class=${u(Wt.overlay,this.className)}
|
|
4378
4378
|
></div>
|
|
4379
|
-
`}};Ra=Cg([
|
|
4379
|
+
`}};Ra=Cg([h("rtg-drawer-overlay")],Ra);var Sg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Oa=class extends m{get _containerElement(){return this.querySelector("h2[part=drawer-title")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4380
4380
|
<h2
|
|
4381
4381
|
part="drawer-title"
|
|
4382
4382
|
class=${u(Wt.title,this.className)}
|
|
4383
4383
|
></h2>
|
|
4384
|
-
`}};Oa=Sg([
|
|
4384
|
+
`}};Oa=Sg([h("rtg-drawer-title")],Oa);var $g=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Aa=class extends m{constructor(){super(...arguments),this.handleClick=()=>{const e=this._drawer;e&&(e.dataset.state=qt.open)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof co)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return c`
|
|
4385
4385
|
<div
|
|
4386
4386
|
part="drawer-trigger"
|
|
4387
4387
|
class=${u(Wt.trigger,this.className)}
|
|
4388
4388
|
></div>
|
|
4389
|
-
`}};Aa=$g([
|
|
4389
|
+
`}};Aa=$g([h("rtg-drawer-trigger")],Aa);var Eg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,nc=(e,t,o,s)=>{for(var r=s>1?void 0:s?kg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Eg(t,o,r),r};let co=class extends m{constructor(){super(...arguments),this.state=qt.closed,this.handleOutsideClick=e=>{const t=this._content;this.state===qt.open&&t&&(t.contains(e.target)||(this.state=qt.closed,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){return this.querySelector("rtg-drawer-content")||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.state),e.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===qt.open?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return c`
|
|
4390
4390
|
<div
|
|
4391
4391
|
rtgdlg-root
|
|
4392
4392
|
part="drawer"
|
|
@@ -4394,7 +4394,7 @@ body {
|
|
|
4394
4394
|
>
|
|
4395
4395
|
${this.state===qt.open?c` <rtg-drawer-overlay></rtg-drawer-overlay>`:I}
|
|
4396
4396
|
</div>
|
|
4397
|
-
`}};nc([a({attribute:"data-state",type:String})],co.prototype,"state",2);co=nc([
|
|
4397
|
+
`}};nc([a({attribute:"data-state",type:String})],co.prototype,"state",2);co=nc([h("rtg-drawer")],co);class Rg{constructor(){this.state={isOpen:!1,selectedValue:"",selectedText:""},this.listeners=new Set}subscribe(t){this.listeners.add(t)}unsubscribe(t){this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t())}get isOpen(){return this.state.isOpen}get selectedValue(){return this.state.selectedValue}get selectedText(){return this.state.selectedText}open(){this.state.isOpen||(this.state.isOpen=!0,this.notify())}close(){this.state.isOpen&&(this.state.isOpen=!1,this.notify())}toggle(){this.state.isOpen=!this.state.isOpen,this.notify()}select(t,o,s){this.state.selectedValue=t,this.state.selectedText=o,this.state.isOpen=!1,this.notify()}}const zt={root:[""],value:["rtg-flex","rtg-gap-select-value-space-gap rtg-items-center","rtg-line-clamp-1"],trigger:{trigger:["rtg-flex","rtg-gap-select-trigger-space-gap rtg-justify-between rtg-items-center","rtg-px-select-trigger-space-px rtg-py-select-trigger-space-py","rtg-w-fit rtg-h-select-trigger-space-h","rtg-text-select-trigger-font rtg-whitespace-nowrap","rtg-bg-select-trigger-color-bg","rtg-rounded-select-trigger-radius rtg-border-select-trigger-width-border rtg-border-select-trigger-color-border rtg-outline-none","rtg-shadow-select-trigger-shadow","rtg-transition-[color,box-shadow]","hover:rtg-bg-select-trigger-color-bg-hover","focus-visible:rtg-border-select-trigger-color-border-focus focus-visible:rtg-ring-select-trigger-width-ring-focus focus-visible:rtg-ring-select-trigger-color-ring-focus","disabled:rtg-opacity-select-trigger-opacity-disabled disabled:rtg-cursor-not-allowed","aria-invalid:rtg-border-select-trigger-color-border-invalid aria-invalid:rtg-ring-select-trigger-width-ring-invalid aria-invalid:rtg-ring-select-trigger-color-ring-invalid","data-[placeholder]:rtg-text-select-trigger-placeholder-color-text"],icon:["rtg-shrink-0","rtg-size-select-trigger-icon-space-size","rtg-text-select-trigger-icon-color-text","rtg-opacity-select-trigger-icon-opacity","rtg-pointer-events-none"]},content:{content:["rtg-absolute rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-w-fit","rtg-text-select-content-color-text","rtg-bg-select-content-color-bg","rtg-rounded-select-content-radius rtg-border-select-content-width-border rtg-border-select-content-color-border","rtg-shadow-select-content-shadow","rtg-slide-in-from-top-2","rtg-translate-y-1","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],viewport:["rtg-p-select-content-viewport-space-p","rtg-w-full","rtg-scroll-my-1"]},label:["rtg-px-select-label-space-px rtg-py-select-label-space-py","rtg-text-select-label-font rtg-text-select-label-color-text"],item:{item:["rtg-flex rtg-relative","rtg-gap-select-item-space-gap rtg-items-center","rtg-pl-select-item-space-pl rtg-pr-select-item-space-pr rtg-py-select-item-space-py","rtg-w-full","rtg-text-select-item-font","rtg-rounded-select-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","hover:rtg-text-select-item-color-text-hover hover:rtg-bg-select-item-color-bg-hover","focus:rtg-text-select-item-color-text-focus focus:rtg-bg-select-item-color-bg-focus","data-[disabled]:rtg-opacity-select-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-right-2","rtg-justify-center rtg-items-center","rtg-size-select-item-indicator-space-size"],icon:["rtg-shrink-0","rtg-size-select-item-icon-space-size","rtg-text-select-item-icon-color-text","rtg-pointer-events-none"]},separator:["rtg-mx-select-separator-space-mx rtg-my-select-separator-space-my","rtg-h-select-separator-space-h","rtg-bg-select-separator-color-bg","rtg-pointer-events-none"]};var Og=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,ac=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ag(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Og(t,o,r),r};let _i=class extends m{constructor(){super(...arguments),this.focusedIndex=0,this.childrenArray=[],this.onStoreChange=()=>{const e=this._containerElement;e&&(e.style.display=this._select.selectStore.isOpen?"block":"none",this._contentDiv&&(this._contentDiv.style.display=this._select.selectStore.isOpen?"block":"none",this._select.selectStore.isOpen&&requestAnimationFrame(()=>{this.updateTriggerWidth()}))),this._select.selectStore.isOpen&&this._select.selectStore.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(t=>t.value===this._select.selectStore.selectedValue)),this.updateFocusedItem(),this.requestUpdate()},this.handleKeyDown=e=>{var t;if(this._select.selectStore.isOpen)switch(e.preventDefault(),e.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length,this.updateFocusedItem();break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length,this.updateFocusedItem();break;case"Enter":const o=this.childrenArray[this.focusedIndex],s=o.value,r=((t=o.textContent)==null?void 0:t.trim())||"";this._select.selectStore.select(s,r);break}}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Cr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange),document.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}getTriggerButton(){const e=this._select;return e?e.querySelector("button[part=select-trigger]"):null}updateTriggerWidth(){const e=this.getTriggerButton(),t=this._contentDiv;if(e&&t){const o=e.offsetWidth;if(o>0){const s=Math.max(128,o);t.style.setProperty("--select-trigger-width",`${o}px`),t.style.setProperty("min-width",`${s}px`)}}}get _containerElement(){return this.querySelector("div[part=select-viewport]")}get _contentDiv(){return this.querySelector("div[data-slot=select-content]")}firstUpdated(){const e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="rtg-select-item");this.childrenArray=e,e.forEach((t,o)=>{t.tabIndex=o,t.selectItemIndex=o,t.isFocus=o===this.focusedIndex||t.value===this._select.selectStore.selectedValue,t.addEventListener("mouseover",s=>this.handleMouseOver(s,o))}),this.moveLightDomChildrenInto(this._containerElement),requestAnimationFrame(()=>{this.updateTriggerWidth()})}updateFocusedItem(){this.childrenArray.forEach((e,t)=>{var o;e.isFocus=t===this.focusedIndex,(o=e.requestUpdate)==null||o.call(e)})}handleMouseOver(e,t){e.preventDefault(),this.focusedIndex=t}createRenderRoot(){return this}render(){return c`
|
|
4398
4398
|
<div
|
|
4399
4399
|
part="select-group"
|
|
4400
4400
|
data-slot="select-content"
|
|
@@ -4406,7 +4406,7 @@ body {
|
|
|
4406
4406
|
class=${u(zt.content.viewport)}
|
|
4407
4407
|
></div>
|
|
4408
4408
|
</div>
|
|
4409
|
-
`}};ac([k()],_i.prototype,"focusedIndex",2);_i=ac([
|
|
4409
|
+
`}};ac([k()],_i.prototype,"focusedIndex",2);_i=ac([h("rtg-select-group")],_i);var Pg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,er=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ig(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Pg(t,o,r),r};let ye=class extends m{constructor(){super(...arguments),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(e,t)=>{},this.class="",this._onStoreChange=()=>{var e,t;this.isSelected=this.value.toLowerCase()===((t=(e=this._select.selectStore.selectedValue)==null?void 0:e.toLowerCase)==null?void 0:t.call(e)),this.requestUpdate()},this.handleClick=e=>{e.stopPropagation();const t=this.getTextContent();this._select.selectStore.select(this.value,t),this.onSelect(this.value,this.selectItemIndex),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Cr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}getTextContent(){var e;const t=this._containerElement;if(t&&t.textContent)return t.textContent.trim();const o=this.querySelector("[part=select-item-indicator]"),s=this.cloneNode(!0);if(o){const r=s.querySelector("[part=select-item-indicator]");r==null||r.remove()}return((e=s.textContent)==null?void 0:e.trim())||""}render(){const e=this.getFilteredAttributes();return c`
|
|
4410
4410
|
<div
|
|
4411
4411
|
${V(e)}
|
|
4412
4412
|
part="select-item"
|
|
@@ -4440,12 +4440,12 @@ body {
|
|
|
4440
4440
|
|
|
4441
4441
|
<div part="select-item-container"></div>
|
|
4442
4442
|
</div>
|
|
4443
|
-
`}};er([a()],ye.prototype,"value",2);er([a()],ye.prototype,"isSelected",2);er([a()],ye.prototype,"isFocus",2);er([a()],ye.prototype,"selectItemIndex",2);er([a({type:Function})],ye.prototype,"onSelect",2);er([a()],ye.prototype,"class",2);ye=er([
|
|
4443
|
+
`}};er([a()],ye.prototype,"value",2);er([a()],ye.prototype,"isSelected",2);er([a()],ye.prototype,"isFocus",2);er([a()],ye.prototype,"selectItemIndex",2);er([a({type:Function})],ye.prototype,"onSelect",2);er([a()],ye.prototype,"class",2);ye=er([h("rtg-select-item")],ye);var Tg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Pa=class extends m{get _containerElement(){return this.querySelector("div[part=select-label]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return c`
|
|
4444
4444
|
<div
|
|
4445
4445
|
part="select-label"
|
|
4446
4446
|
class=${u(zt.label,this.className)}
|
|
4447
4447
|
></div>
|
|
4448
|
-
`}};Pa=Tg([
|
|
4448
|
+
`}};Pa=Tg([h("rtg-select-label")],Pa);var Lg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,ln=(e,t,o,s)=>{for(var r=s>1?void 0:s?Dg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Lg(t,o,r),r};let Yo=class extends m{constructor(){super(...arguments),this.state=sn,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return c`
|
|
4449
4449
|
<div
|
|
4450
4450
|
part="select-list"
|
|
4451
4451
|
class="${u("rtg-absolute rtg-z-50 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-lg rtg-border rtg-border-input rtg-bg-background p-1 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]:rtg-bg-accent [&::-webkit-scrollbar-track]:rtg-bg-gray-100 [&::-webkit-scrollbar]:rtg-w-2",this.className)}"
|
|
@@ -4453,14 +4453,14 @@ body {
|
|
|
4453
4453
|
data-state="${this.state}"
|
|
4454
4454
|
style="display: ${this.isOpen?"block":"none"}; top:115%"
|
|
4455
4455
|
></div>
|
|
4456
|
-
`}};ln([a({attribute:"data-state",type:String})],Yo.prototype,"state",2);ln([k()],Yo.prototype,"isOpen",2);Yo=ln([
|
|
4456
|
+
`}};ln([a({attribute:"data-state",type:String})],Yo.prototype,"state",2);ln([k()],Yo.prototype,"isOpen",2);Yo=ln([h("rtg-select-list")],Yo);var zg=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,cn=(e,t,o,s)=>{for(var r=s>1?void 0:s?jg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&zg(t,o,r),r};let Zo=class extends ${constructor(){super(...arguments),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return c`
|
|
4457
4457
|
<div
|
|
4458
4458
|
rtgcmd-separator
|
|
4459
4459
|
part="select-separator"
|
|
4460
4460
|
role="separator"
|
|
4461
4461
|
class=${u(zt.separator,this.className)}
|
|
4462
4462
|
></div>
|
|
4463
|
-
`}};cn([a({type:String})],Zo.prototype,"_id",2);cn([a({attribute:"aria-hidden",type:String})],Zo.prototype,"_hidden",2);Zo=cn([
|
|
4463
|
+
`}};cn([a({type:String})],Zo.prototype,"_id",2);cn([a({attribute:"aria-hidden",type:String})],Zo.prototype,"_hidden",2);Zo=cn([h("rtg-select-separator")],Zo);var Ug=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ia=class extends m{constructor(){super(...arguments),this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=e=>{e.stopPropagation(),this._select&&this._select.selectStore.toggle()}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Cr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),this.classObserver=new MutationObserver(()=>{this.requestUpdate()}),this.classObserver.observe(this,{attributes:!0,attributeFilter:["class"]})}disconnectedCallback(){var e;this._select.selectStore.unsubscribe(this.onStoreChange),(e=this.classObserver)==null||e.disconnect()}get _containerElement(){return this.querySelector("span[part=select-trigger-container]")}firstUpdated(e){var t;super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",this.handleClick)}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}getClassAttribute(){const e=this.getAttribute("class")||"",t=this.customClass||"",o=this.className||"";return e||t||o||""}filterConflictingWidthClasses(e,t){const o=/rtg-w-[\w-[\]]+/;return o.test(t)?e.map(s=>s.split(/\s+/).filter(r=>!o.test(r)).join(" ")):e}render(){const e=this.getClassAttribute(),t=this.filterConflictingWidthClasses(zt.trigger.trigger,e);return c`
|
|
4464
4464
|
<button
|
|
4465
4465
|
type="button"
|
|
4466
4466
|
part="select-trigger"
|
|
@@ -4488,17 +4488,17 @@ body {
|
|
|
4488
4488
|
<path d="m6 9 6 6 6-6" />
|
|
4489
4489
|
</svg>
|
|
4490
4490
|
</button>
|
|
4491
|
-
`}};Ia=Ug([
|
|
4491
|
+
`}};Ia=Ug([h("rtg-select-trigger")],Ia);var Ng=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,lc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Mg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Ng(t,o,r),r};let Ci=class extends m{constructor(){super(...arguments),this.placeholder="select a value",this.onStoreChange=()=>{this.requestUpdate()},this.renderLabel=()=>{if(this._select&&this._select.selectStore.selectedValue.length>0){const e=this._select.selectStore.selectedText;return e.length>0?e:this._select.selectStore.selectedValue}return this.placeholder}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Cr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange)}firstUpdated(e){super.firstUpdated(e)}createRenderRoot(){return this}render(){return c`
|
|
4492
4492
|
<span part="select-value" class=${u(zt.value,this.className)}>
|
|
4493
4493
|
${this.renderLabel()}
|
|
4494
4494
|
</span>
|
|
4495
|
-
`}};lc([a({type:String})],Ci.prototype,"placeholder",2);Ci=lc([
|
|
4495
|
+
`}};lc([a({type:String})],Ci.prototype,"placeholder",2);Ci=lc([h("rtg-select-value")],Ci);var Fg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Cr=class extends m{constructor(){super(...arguments),this.uuid=qi(),this.selectStore=new Rg,this.handleClickOutside=e=>{const t=this.querySelector("[data-select-uuid]"),o=e.target;t!=null&&t.contains(o)||this.selectStore.close()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){const e=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(e)}createRenderRoot(){return this}render(){return c`
|
|
4496
4496
|
<div
|
|
4497
4497
|
part="select"
|
|
4498
4498
|
data-select-uuid=${this.uuid}
|
|
4499
4499
|
class=${u(zt.root,this.className)}
|
|
4500
4500
|
></div>
|
|
4501
|
-
`}};Cr=Fg([
|
|
4501
|
+
`}};Cr=Fg([h("rtg-select")],Cr);const Co={viewportRoot:["rtg-fixed rtg-top-0 rtg-z-[100] rtg-flex rtg-max-h-screen rtg-w-toast-viewport-root-space-w rtg-flex-col-reverse rtg-px-toast-viewport-root-space-px rtg-py-toast-viewport-root-space-py sm:rtg-bottom-0 sm:rtg-right-0 sm:rtg-top-auto sm:rtg-flex-col md:rtg-max-w-toast-viewport-root-space-w-md"],viewportItem:{base:["group rtg-pointer-events-auto rtg-relative rtg-flex rtg-w-toast-viewport-item-space-w rtg-items-center rtg-justify-between rtg-gap-toast-viewport-item-space-gap rtg-overflow-hidden rtg-rounded-toast-viewport-item-radius rtg-px-toast-viewport-item-space-px rtg-py-toast-viewport-item-space-py rtg-shadow-toast-viewport-item-shadow rtg-transition-all","data-[swipe=cancel]:rtg-translate-x-0","data-[swipe=end]:rtg-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:rtg-translate-x-[var(--radix-toast-swipe-move-x)]","data-[swipe=move]:rtg-transition-none","data-[state=open]:rtg-animate-toast-animate-in","data-[state=closed]:rtg-animate-toast-animate-out","data-[swipe=end]:rtg-animate-toast-animate-out","data-[state=closed]:rtg-opacity-80","data-[state=open]:rtg-translate-y-toast-viewport-item-translate-y-enter-desktop","data-[state=open]:sm:rtg-translate-y-toast-viewport-item-translate-y-enter-mobile","data-[state=closed]:rtg-translate-x-toast-viewport-item-translate-x-exit"],variants:{default:["rtg-border rtg-border-toast-viewport-default-color-border rtg-bg-toast-viewport-default-color-bg rtg-text-toast-viewport-default-color-text"],destructive:["rtg-bg-toast-viewport-destructive-color-bg rtg-text-toast-viewport-destructive-color-text"]}},action:{base:["rtg-text-toast-action-font rtg-font-toast-action-font-weight rtg-text-toast-action-color-text","rtg-h-toast-action-space-h rtg-px-toast-action-space-px rtg-py-toast-action-space-py","rtg-inline-flex rtg-border rtg-border-toast-action-color-border rtg-shrink-0 rtg-items-center rtg-justify-center rtg-rounded-toast-action-radius rtg-transition-colors","focus:rtg-outline-none focus:rtg-ring-toast-action-width-ring-focus focus:rtg-ring-toast-action-color-ring-focus","disabled:rtg-pointer-events-none disabled:rtg-opacity-toast-action-opacity-disabled"],variants:{default:["rtg-bg-toast-action-default-color-bg hover:rtg-bg-toast-action-default-color-bg-hover"],destructive:["rtg-bg-toast-action-destructive-color-bg hover:rtg-bg-toast-action-destructive-color-bg-hover rtg-text-toast-action-destructive-color-text focus:rtg-ring-toast-action-destructive-color-ring-focus"]}},title:["rtg-text-toast-title-font rtg-font-toast-title-font-weight [&+div]:rtg-text-toast-title-font"],description:["rtg-text-toast-description-font rtg-opacity-toast-description-opacity"]};var Bg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,dn=(e,t,o,s)=>{for(var r=s>1?void 0:s?qg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Bg(t,o,r),r};const Ta="closed";let Ke=class extends m{constructor(){super(...arguments),this.variant="default",this.state=Ta}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c` <ol
|
|
4502
4502
|
part="toast-view-port"
|
|
4503
4503
|
tabindex="-1"
|
|
4504
4504
|
@click="${e=>e.stopPropagation()}"
|
|
@@ -4516,32 +4516,32 @@ body {
|
|
|
4516
4516
|
data-radix-collection-item=""
|
|
4517
4517
|
style="user-select: none; touch-action: none;"
|
|
4518
4518
|
></li>
|
|
4519
|
-
</ol>`}};Ke.toastVariants=Co.viewportItem;dn([a({type:String})],Ke.prototype,"variant",2);dn([a({attribute:"data-state",type:String})],Ke.prototype,"state",2);Ke=dn([
|
|
4519
|
+
</ol>`}};Ke.toastVariants=Co.viewportItem;dn([a({type:String})],Ke.prototype,"variant",2);dn([a({attribute:"data-state",type:String})],Ke.prototype,"state",2);Ke=dn([h("rtg-toast-view-port")],Ke);var Vg=Object.defineProperty,Hg=Object.getOwnPropertyDescriptor,cc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Hg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Vg(t,o,r),r};let Sr=class extends m{constructor(){super(...arguments),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){const e=this.getAttributesToExclude(),t={};for(const o of this.attributes)e.includes(o.name)||(t[o.name]=o.value);return t}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
4520
4520
|
<button
|
|
4521
4521
|
${V(e)}
|
|
4522
4522
|
part="toast-action"
|
|
4523
4523
|
type="button"
|
|
4524
4524
|
class="${u(Sr.toastVariants.base,Sr.toastVariants.variants[this.variant],this.className,"rtg-w-max")}"
|
|
4525
4525
|
></button>
|
|
4526
|
-
`}};Sr.toastVariants=Co.action;cc([a({type:String})],Sr.prototype,"variant",2);Sr=cc([
|
|
4526
|
+
`}};Sr.toastVariants=Co.action;cc([a({type:String})],Sr.prototype,"variant",2);Sr=cc([h("rtg-toast-action")],Sr);var Gg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let La=class extends m{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4527
4527
|
<div
|
|
4528
4528
|
class="${u(Co.description,this.className)}"
|
|
4529
4529
|
part="toast-description"
|
|
4530
4530
|
>
|
|
4531
4531
|
<slot></slot>
|
|
4532
4532
|
</div>
|
|
4533
|
-
`}};La=Gg([
|
|
4533
|
+
`}};La=Gg([h("rtg-toast-description")],La);var Wg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Da=class extends m{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4534
4534
|
<div
|
|
4535
4535
|
part="toast-title"
|
|
4536
4536
|
class="${u(Co.title,this.className)}"
|
|
4537
4537
|
></div>
|
|
4538
|
-
`}};Da=Wg([
|
|
4538
|
+
`}};Da=Wg([h("rtg-toast-title")],Da);var Kg=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let za=class extends m{constructor(){super(),this.handleClick=this.handleClick.bind(this)}get _containerElement(){return this.querySelector("div[part=toast-trigger]")}get _toast(){let e=this.parentElement;for(;e&&!(e instanceof Xo);)e=e.parentElement;return e}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}handleClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return c`
|
|
4539
4539
|
<div
|
|
4540
4540
|
@click=${this.handleClick}
|
|
4541
4541
|
part="toast-trigger"
|
|
4542
4542
|
class="${u(this.className)}"
|
|
4543
4543
|
></div>
|
|
4544
|
-
`}};za=Kg([
|
|
4544
|
+
`}};za=Kg([h("rtg-toast-trigger")],za);var Yg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,dc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Zg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Yg(t,o,r),r};let Xo=class extends m{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=toast]")}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1}),this.addEventListener("open-toast",()=>{this.isOpen=!0})}get _content(){return this.querySelector("rtg-toast-view-port")}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return c` <div class="${u("",this.className)}" part="toast"></div> `}};dc([k()],Xo.prototype,"isOpen",2);Xo=dc([h("rtg-toast")],Xo);const Po={list:{base:["rtg-items-center rtg-justify-center rtg-rounded-tab-list-radius rtg-bg-tab-list-color-bg rtg-px-tab-list-space-px rtg-py-tab-list-space-py rtg-text-tab-list-color-text"],orientation:{horizontal:["rtg-flex rtg-w-tab-list-horizontal-space-w rtg-h-tab-list-horizontal-space-h [&>*]:rtg-flex-1 [&>*]:rtg-grow [&>*]:rtg-basis-0"],vertical:["rtg-w-tab-list-vertical-space-w rtg-h-tab-list-vertical-space-h"]}},trigger:{base:["rtg-w-tab-trigger-space-w rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-tab-trigger-radius rtg-px-tab-trigger-space-px rtg-py-tab-trigger-space-py rtg-text-tab-trigger-font rtg-font-tab-trigger-font-weight rtg-ring-none rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-tab-trigger-width-ring-focus focus-visible:rtg-ring-tab-trigger-color-ring-focus focus-visible:rtg-ring-offset-trigger-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-tab-trigger-opacity-disabled data-[state=active]:rtg-bg-tab-trigger-color-bg-active data-[state=active]:rtg-text-tab-trigger-color-text-active data-[state=active]:rtg-shadow-tab-trigger-shadow-active"]}};var Xg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,un=(e,t,o,s)=>{for(var r=s>1?void 0:s?Jg(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Xg(t,o,r),r};let uo=class extends m{constructor(){super(...arguments),this.tabindex=0,this.orientation="horizontal"}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof we);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=tab-list]")}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}connectedCallback(){var e;super.connectedCallback(),(e=this._tab)==null||e.addEventListener("tab-change",t=>{this.changeTabs(t.detail.selectedValue)})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}changeTabs(e){const t=this.getChildren();t.length>0&&t.forEach(o=>{if(o instanceof HTMLElement){const s=o.querySelector("button");s&&s!=null&&s.value&&(s.value.trim().toLowerCase()===e.trim().toLowerCase()?(s.setAttribute("aria-selected","true"),s.setAttribute("data-state","active")):(s.setAttribute("aria-selected","false"),s.setAttribute("data-state","inactive")))}})}getChildren(){return this.querySelectorAll("rtg-tab-trigger > div[part=tab-trigger]")||[]}createRenderRoot(){return this}firstUpdated(e){this.observeStyleAndClassSync(this._containerElement),this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes(),t=this.customStyle||"",o=this.customClass||"",s=u(this.customClass,this.orientation==="vertical"?Po.list.orientation.vertical:Po.list.orientation.horizontal,Po.list.base,o);return c`
|
|
4545
4545
|
<div
|
|
4546
4546
|
${V(e)}
|
|
4547
4547
|
part="tab-list"
|
|
@@ -4553,7 +4553,7 @@ body {
|
|
|
4553
4553
|
class=${s}
|
|
4554
4554
|
style="${t}"
|
|
4555
4555
|
></div>
|
|
4556
|
-
`}};un([a({type:Number})],uo.prototype,"tabindex",2);un([a({type:String})],uo.prototype,"orientation",2);uo=un([
|
|
4556
|
+
`}};un([a({type:Number})],uo.prototype,"tabindex",2);un([a({type:String})],uo.prototype,"orientation",2);uo=un([h("rtg-tab-list")],uo);var Qg=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,ds=(e,t,o,s)=>{for(var r=s>1?void 0:s?tb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Qg(t,o,r),r};let po=class extends m{constructor(){super(...arguments),this.defaultValue="",this.value="",this.handleClick=e=>{var t;e.preventDefault(),this.dispatchEvent(new CustomEvent("tab-trigger-click",{bubbles:!0,composed:!0,detail:{value:this.value}}));const o=e.target,s=(t=this.shadowRoot)==null?void 0:t.querySelector("button");if(s&&s.click(),o instanceof HTMLButtonElement){const r=o.getAttribute("value")??"";this.defaultValue=r,this._tab&&(this._tab.defaultValue=r,this._tab.raiseEvent()),this.onClickCallback&&this.onClickCallback(r)}}}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof we);)e=e.parentElement;return e}get _tabList(){let e=this.parentElement;for(;e&&!(e instanceof uo);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("button[part=tab-trigger-button]")}firstUpdated(e){super.firstUpdated(e),this.observeStyleAndClassSync(this._containerElement),this.moveLightDomChildrenInto(this._containerElement),this._tab&&(this.defaultValue=this._tab.defaultValue)}getAttributesToExclude(){return["value","defaultValue","data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}createRenderRoot(){return this}get orientation(){var e;return((e=this._tab)==null?void 0:e.orientation)??"horizontal"}render(){const e=this.customStyle||"",t=this.customClass||"",o=this.getFilteredAttributes();return c`
|
|
4557
4557
|
<div
|
|
4558
4558
|
part="tab-trigger"
|
|
4559
4559
|
role="tablist"
|
|
@@ -4580,13 +4580,13 @@ body {
|
|
|
4580
4580
|
@click=${this.handleClick}
|
|
4581
4581
|
></button>
|
|
4582
4582
|
</div>
|
|
4583
|
-
`}};ds([a({type:String})],
|
|
4583
|
+
`}};ds([a({type:String})],po.prototype,"defaultValue",2);ds([a({type:String})],po.prototype,"value",2);ds([a({type:Function})],po.prototype,"onClickCallback",2);po=ds([h("rtg-tab-trigger")],po);var eb=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,pn=(e,t,o,s)=>{for(var r=s>1?void 0:s?rb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&eb(t,o,r),r};let Jo=class extends m{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof we);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=tab-content]")}updated(e){super.updated(e)}connectedCallback(){var e;super.connectedCallback(),(e=this._tab)==null||e.addEventListener("tab-change",t=>{this.selectedValue=t.detail.selectedValue,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}createRenderRoot(){return this}firstUpdated(e){this.observeStyleAndClassSync(this._containerElement),this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}render(){const e=this.customStyle||"",t=this.customClass||"",o=this._tab&&this._tab.defaultValue.toLocaleLowerCase()===this.value.toLocaleLowerCase(),s=u(o?"rtg-block":"rtg-hidden",this.customClass,t);return c`
|
|
4584
4584
|
<div
|
|
4585
4585
|
class=${s}
|
|
4586
4586
|
style="${e}"
|
|
4587
4587
|
part="tab-content"
|
|
4588
4588
|
></div>
|
|
4589
|
-
`}};
|
|
4589
|
+
`}};pn([a({type:String})],Jo.prototype,"value",2);pn([k()],Jo.prototype,"selectedValue",2);Jo=pn([h("rtg-tab-content")],Jo);var ob=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,us=(e,t,o,s)=>{for(var r=s>1?void 0:s?sb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ob(t,o,r),r};let we=class extends m{constructor(){super(...arguments),this.defaultValue="",this.tabindex=0,this.orientation="horizontal"}get _containerElement(){return this.querySelector("div[part=tab]")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(e){super.updated(e),this.raiseEvent()}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}raiseEvent(){const e=new CustomEvent("tab-change",{bubbles:!0,composed:!0,detail:{selectedValue:this.defaultValue}});this.dispatchEvent(e)}createRenderRoot(){return this}firstUpdated(e){this.observeStyleAndClassSync(this._containerElement),this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.customStyle||"",t=this.customClass||"",o=this.getFilteredAttributes(),s=u(this.orientation==="vertical"?"rtg-flex rtg-flex-row":"rtg-flex rtg-flex-col",t);return c`
|
|
4590
4590
|
<div
|
|
4591
4591
|
${V(o)}
|
|
4592
4592
|
part="tab"
|
|
@@ -4597,7 +4597,7 @@ body {
|
|
|
4597
4597
|
style="${e}"
|
|
4598
4598
|
tabindex=${this.tabindex}
|
|
4599
4599
|
></div>
|
|
4600
|
-
`}};us([a({type:String})],we.prototype,"defaultValue",2);us([a({type:Number})],we.prototype,"tabindex",2);us([a({type:String})],we.prototype,"orientation",2);we=us([
|
|
4600
|
+
`}};us([a({type:String})],we.prototype,"defaultValue",2);us([a({type:Number})],we.prototype,"tabindex",2);us([a({type:String})],we.prototype,"orientation",2);we=us([h("rtg-tab")],we);var Io=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(Io||{}),To=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(To||{});const ib=fo("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-toggle-radius rtg-text-toggle-font rtg-font-toggle-font-weight rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-toggle-width-ring-focus focus-visible:rtg-ring-toggle-color-ring-focus focus-visible:rtg-ring-offset-toggle-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-toggle-opacity-disabled data-[state=on]:rtg-bg-toggle-color-bg-on data-[state=on]:rtg-text-toggle-color-text-on rtg-bg-transparent",{variants:{variant:{default:"hover:rtg-bg-toggle-default-color-bg-hover hover:rtg-text-toggle-default-color-text-hover",outline:"rtg-border rtg-border-toggle-outline-color-border hover:rtg-bg-toggle-outline-color-bg-hover hover:rtg-text-toggle-outline-color-text-hover"},size:{sm:"rtg-h-toggle-space-h-sm rtg-px-toggle-space-px-sm",md:"rtg-h-toggle-space-h-md rtg-px-toggle-space-px-md",lg:"rtg-h-toggle-space-h-lg rtg-px-toggle-space-px-lg"}}});var nb=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,jr=(e,t,o,s)=>{for(var r=s>1?void 0:s?ab(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&nb(t,o,r),r};let ee=class extends m{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=To.DEFAULT,this.size=Io.SMALL}willUpdate(e){e.has("variant")&&(this.variant=this.normalizeEnum(this.variant,To,To.DEFAULT)),e.has("size")&&(this.size=this.normalizeEnum(this.size,Io,Io.SMALL))}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return c`
|
|
4601
4601
|
<button
|
|
4602
4602
|
type="button"
|
|
4603
4603
|
part="toggle"
|
|
@@ -4610,7 +4610,7 @@ body {
|
|
|
4610
4610
|
?disabled=${this.disabled}
|
|
4611
4611
|
${V(e)}
|
|
4612
4612
|
></button>
|
|
4613
|
-
`}};ee.toggleVariants=ib;jr([a({type:Boolean})],ee.prototype,"disabled",2);jr([a({attribute:!0,type:Boolean,reflect:!0})],ee.prototype,"checked",2);jr([a({attribute:!0,type:Boolean,reflect:!0})],ee.prototype,"required",2);jr([a({attribute:!0,type:String})],ee.prototype,"variant",2);jr([a({attribute:!0,type:String})],ee.prototype,"size",2);ee=jr([
|
|
4613
|
+
`}};ee.toggleVariants=ib;jr([a({type:Boolean})],ee.prototype,"disabled",2);jr([a({attribute:!0,type:Boolean,reflect:!0})],ee.prototype,"checked",2);jr([a({attribute:!0,type:Boolean,reflect:!0})],ee.prototype,"required",2);jr([a({attribute:!0,type:String})],ee.prototype,"variant",2);jr([a({attribute:!0,type:String})],ee.prototype,"size",2);ee=jr([h("rtg-toggle")],ee);var Qo=(e=>(e.MULTIPLE="multiple",e.SINGLE="single",e))(Qo||{}),ts=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(ts||{}),es=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(es||{});const lb=fo("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-toggle-group-item-radius rtg-text-toggle-group-item-font rtg-font-toggle-group-item-font-weight rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-toggle-group-item-width-ring-focus focus-visible:rtg-ring-toggle-group-item-color-ring-focus focus-visible:rtg-ring-offset-toggle-group-item-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-toggle-group-item-opacity-disabled data-[state=on]:rtg-bg-toggle-group-item-color-bg-on data-[state=on]:rtg-text-toggle-group-item-color-text-on rtg-bg-transparent",{variants:{variant:{default:"hover:rtg-bg-toggle-group-item-default-color-bg-hover hover:rtg-text-toggle-group-item-default-color-text-hover",outline:"rtg-border rtg-border-toggle-group-item-outline-color-border hover:rtg-bg-toggle-group-item-outline-color-bg-hover hover:rtg-text-toggle-group-item-outline-color-text-hover"},size:{sm:"rtg-h-toggle-group-item-space-h-sm rtg-px-toggle-group-item-space-px-sm",md:"rtg-h-toggle-group-item-space-h-md rtg-px-toggle-group-item-space-px-md",lg:"rtg-h-toggle-group-item-space-h-lg rtg-px-toggle-group-item-space-px-lg"}}}),cb="rtg-flex rtg-items-center rtg-justify-center rtg-gap-toggle-group-space-gap";var db=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,rr=(e,t,o,s)=>{for(var r=s>1?void 0:s?ub(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&db(t,o,r),r};let Kt=class extends m{constructor(){super(),this.checked=!1,this.id=qi(),this.variant=ts.DEFAULT,this.size=es.SMALL,this.disabled=!1,this.type=Qo.SINGLE,this.variant=ts.DEFAULT,this.size=es.SMALL}get _parent(){let e=this.parentElement;for(;e&&!(e instanceof re);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var e;return Array.from(((e=this.parentElement)==null?void 0:e.children)||[]).filter(t=>t!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(e){this.syncFromParent(),this.moveLightDomChildrenInto(this._containerElement)}syncFromParent(){const e=this._parent;if(!e)return;this.variant!==e.variant&&(this.variant=e.variant),this.size!==e.size&&(this.size=e.size);const t=e.selectedItems.includes(this.id);this.checked!==t&&(this.checked=t),this.type!==e.type&&(this.type=e.type)}syncSelection(){const e=this._parent;if(!e)return;const t=e.selectedItems.includes(this.id);this.checked!==t&&(this.checked=t)}toggleSelection(e){if(this.disabled||!this._parent)return;const t=this._parent,o=t.selectedItems.indexOf(e);this.type===Qo.SINGLE?(o!==-1?t.selectedItems.splice(o,1):t.selectedItems[0]=e,this._siblings.forEach(s=>s.syncSelection())):o!==-1?t.selectedItems.splice(o,1):t.selectedItems.push(e),this.syncSelection()}render(){return console.log({variant:this.variant,size:this.size,className:this.className}),c`
|
|
4614
4614
|
<button
|
|
4615
4615
|
part="toggle-group-item"
|
|
4616
4616
|
id=${this.id}
|
|
@@ -4621,7 +4621,7 @@ body {
|
|
|
4621
4621
|
?disabled=${this.disabled}
|
|
4622
4622
|
@click=${()=>this.toggleSelection(this.id)}
|
|
4623
4623
|
></button>
|
|
4624
|
-
`}};Kt.toggleGroupVariants=lb;rr([a({attribute:!0,type:Boolean,reflect:!0})],Kt.prototype,"checked",2);rr([a({attribute:!0,type:String,reflect:!0})],Kt.prototype,"id",2);rr([a()],Kt.prototype,"variant",2);rr([a()],Kt.prototype,"size",2);rr([a({type:Boolean})],Kt.prototype,"disabled",2);rr([a({type:String})],Kt.prototype,"type",2);Kt=rr([
|
|
4624
|
+
`}};Kt.toggleGroupVariants=lb;rr([a({attribute:!0,type:Boolean,reflect:!0})],Kt.prototype,"checked",2);rr([a({attribute:!0,type:String,reflect:!0})],Kt.prototype,"id",2);rr([a()],Kt.prototype,"variant",2);rr([a()],Kt.prototype,"size",2);rr([a({type:Boolean})],Kt.prototype,"disabled",2);rr([a({type:String})],Kt.prototype,"type",2);Kt=rr([h("rtg-toggle-group-item")],Kt);var pb=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,or=(e,t,o,s)=>{for(var r=s>1?void 0:s?hb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&pb(t,o,r),r};let re=class extends m{constructor(){super(...arguments),this.disabled=!1,this.type=Qo.SINGLE,this.required=!1,this.variant=ts.DEFAULT,this.size=es.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement)}updated(e){(e.has("variant")||e.has("size")||e.has("disabled")||e.has("type"))&&this.querySelectorAll("rtg-toggle-group-item").forEach(t=>{t.variant=this.variant,t.size=this.size,t.disabled=this.disabled,t.type=this.type})}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return console.log({variant:this.variant,size:this.size,className:this.className}),c`
|
|
4625
4625
|
<div
|
|
4626
4626
|
part="toggle-group"
|
|
4627
4627
|
role="group"
|
|
@@ -4629,15 +4629,15 @@ body {
|
|
|
4629
4629
|
class="${u(cb,this.className)}"
|
|
4630
4630
|
?disable="${this.disabled}"
|
|
4631
4631
|
></div>
|
|
4632
|
-
`}};or([a({type:Boolean})],re.prototype,"disabled",2);or([a({type:String})],re.prototype,"type",2);or([a({attribute:!0,type:Boolean,reflect:!0})],re.prototype,"required",2);or([a()],re.prototype,"variant",2);or([a()],re.prototype,"size",2);or([a({type:Array})],re.prototype,"selectedItems",2);re=or([
|
|
4632
|
+
`}};or([a({type:Boolean})],re.prototype,"disabled",2);or([a({type:String})],re.prototype,"type",2);or([a({attribute:!0,type:Boolean,reflect:!0})],re.prototype,"required",2);or([a()],re.prototype,"variant",2);or([a()],re.prototype,"size",2);or([a({type:Array})],re.prototype,"selectedItems",2);re=or([h("rtg-toggle-group")],re);const pe={base:["rtg-flex rtg-gap-input-otp-space-gap rtg-items-center","disabled:rtg-cursor-not-allowed","has-disabled:rtg-opacity-input-otp-opacity-disabled"],group:{common:["rtg-flex rtg-items-center"],withSpacing:["rtg-gap-input-otp-space-gap"]},slot:{common:["rtg-relative","rtg-flex rtg-justify-center rtg-items-center","rtg-size-input-otp-slot-space-size","rtg-text-input-otp-slot-font rtg-font-input-otp-slot-font-weight rtg-text-center","rtg-bg-input-otp-slot-color-bg","rtg-border-input-otp-slot-color-border rtg-border-y-input-otp-slot-width-border rtg-border-r-input-otp-slot-width-border rtg-outline-none","rtg-shadow-input-otp-slot-shadow","rtg-transition-all","focus:rtg-z-10","focus:rtg-border-input-otp-slot-color-border-focus","focus:rtg-ring-input-otp-slot-width-ring-focus focus:rtg-ring-input-otp-slot-color-ring-focus","aria-invalid:rtg-border-input-otp-slot-color-border-invalid","focus:aria-invalid:rtg-border-input-otp-slot-color-border-invalid","focus:aria-invalid:rtg-ring-input-otp-slot-color-ring-invalid"],first:["rtg-rounded-l-input-otp-slot-radius rtg-border-l-input-otp-slot-width-border"],last:["rtg-rounded-r-input-otp-slot-radius"],withSpacing:["rtg-border-l-input-otp-slot-width-border rtg-rounded-input-otp-slot-radius"]},separator:["rtg-text-input-otp-separator-color-text","[&>svg]:rtg-size-input-otp-separator-space-size"]};var gb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,uc=(e,t,o,s)=>{for(var r=s>1?void 0:s?bb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&gb(t,o,r),r};let Si=class extends m{constructor(){super(...arguments),this.click=()=>{},this.childrenArray=[]}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof xe);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=input-otp-group")}getAttributesToExclude(){return[]}firstUpdated(e){super.firstUpdated(e),this.childrenArray=Array.from(this.children),this.childrenArray.forEach((t,o)=>{t.isFirst=o===0,t.isLast=o===this.childrenArray.length-1}),this.moveLightDomChildrenInto(this._containerElement),this.requestUpdate()}createRenderRoot(){return this}render(){var e;return c`
|
|
4633
4633
|
<div
|
|
4634
4634
|
part="input-otp-group"
|
|
4635
|
-
class=${u(
|
|
4635
|
+
class=${u(pe.group.common,((e=this._inputOtp)==null?void 0:e.variant)==="with_spacing"?pe.group.withSpacing:"",this.className)}
|
|
4636
4636
|
></div>
|
|
4637
|
-
`}};uc([a({type:Function})],Si.prototype,"click",2);Si=uc([
|
|
4637
|
+
`}};uc([a({type:Function})],Si.prototype,"click",2);Si=uc([h("rtg-input-otp-group")],Si);var mb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,pc=(e,t,o,s)=>{for(var r=s>1?void 0:s?fb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&mb(t,o,r),r};let $i=class extends ${constructor(){super(...arguments),this.index=0}createRenderRoot(){return this}render(){return c`
|
|
4638
4638
|
<div
|
|
4639
4639
|
role="separator"
|
|
4640
|
-
class=${u(
|
|
4640
|
+
class=${u(pe.separator,this.className)}
|
|
4641
4641
|
>
|
|
4642
4642
|
<svg
|
|
4643
4643
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4652,7 +4652,7 @@ body {
|
|
|
4652
4652
|
<path d="M5 12h14" />
|
|
4653
4653
|
</svg>
|
|
4654
4654
|
</div>
|
|
4655
|
-
`}};
|
|
4655
|
+
`}};pc([a({type:Number})],$i.prototype,"index",2);$i=pc([h("rtg-input-otp-separator")],$i);var vb=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,Ur=(e,t,o,s)=>{for(var r=s>1?void 0:s?yb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&vb(t,o,r),r};let Ye=class extends m{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof xe);)e=e.parentElement;return e}firstUpdated(e){const t=this._inputOtp;if(!t)return;const o=t.variant,s=this.index,r=t.maxLength;let i=!1;o==="with_separator"?i=s%2===1||s===r-1:o==="simple"?i=s%3===2||s===r-1:i=s===r-1,this.isLast=i,t.inputes.push({index:t.inputes.length,value:"",isSelected:!1,userIndex:s}),t.addEventListener("focus",n=>{const l=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);l&&(l.focus(),n.detail.eventType==="changes"&&(l.value=""))})}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("focus",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const t=this._inputOtp;if(!t)return;const o=t.inputes.findIndex(r=>r.value===""),s=this.index;if(o!==-1&&s>o){e.preventDefault(),e.stopImmediatePropagation();const r=o;t.raiseEvent(r,"focus")}else t.raiseEvent(s,"focus")}handleInputChange(e){var t;const o=e.target;if(new RegExp(/^\d+$/).test(o.value)){const s=this._inputOtp;if(s){let r=s.inputes.findIndex(i=>i.index===this.index);s.inputes[r]={...s.inputes[r],value:o.value,isSelected:!1},(t=s.checkIfCompleteAndSubmit)==null||t.call(s),r+1<s.inputes.length&&s.raiseEvent(r+1,"changes")}}else o.value=""}handleKeyDown(e){const t=e.target,o=this._inputOtp;if(!o)return;const s=o.inputes.findIndex(r=>r.index===this.index);switch(e.key){case"Backspace":{e.preventDefault();const r=t.value==="",i=o.inputes.find(p=>p.value===""),n=i!==void 0?o.inputes.indexOf(i):o.inputes.length;if(r&&s>=n){s>0&&o.raiseEvent(s-1,"focus");return}o.inputes[s].value="",t.value="";for(let p=s;p<o.inputes.length-1;p++){o.inputes[p].value=o.inputes[p+1].value;const b=o.querySelector(`input[name="input-${o.inputes[p].index}"]`);b&&(b.value=o.inputes[p].value)}const l=o.inputes[o.inputes.length-1];l.value="";const d=o.querySelector(`input[name="input-${l.index}"]`);d&&(d.value=""),o.raiseEvent(s,"focus");break}case"ArrowLeft":e.preventDefault(),s>0&&o.raiseEvent(s-1,"focus");break;case"ArrowRight":e.preventDefault(),s<o.maxLength-1&&o.raiseEvent(s+1,"focus");break}}handlePaste(e){var t,o;e.preventDefault();const s=this._inputOtp;if(!s)return;const r=(((t=e.clipboardData)==null?void 0:t.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(r.length===0)return;const i=s.inputes.findIndex(d=>d.index===this.index),n=s.maxLength-i;r.splice(n);for(let d=0;d<r.length;d++){const p=i+d;if(p>=s.maxLength)break;s.inputes[p].value=r[d];const b=s.querySelector(`input[name="input-${p}"]`);b&&(b.value=r[d])}(o=s.checkIfCompleteAndSubmit)==null||o.call(s);const l=i+r.length;l<s.maxLength&&s.raiseEvent(l,"focus")}createRenderRoot(){return this}render(){var e;return c`
|
|
4656
4656
|
<input
|
|
4657
4657
|
part="input-otp-slot"
|
|
4658
4658
|
auto-complete="one-time-code"
|
|
@@ -4666,14 +4666,14 @@ body {
|
|
|
4666
4666
|
@input=${this.handleInputChange}
|
|
4667
4667
|
@keydown=${this.handleKeyDown}
|
|
4668
4668
|
@paste=${this.handlePaste}
|
|
4669
|
-
class=${u(
|
|
4669
|
+
class=${u(pe.slot.common,this.className,this.isFirst?pe.slot.first:"",this.isLast?pe.slot.last:"",((e=this._inputOtp)==null?void 0:e.variant)==="with_spacing"?pe.slot.withSpacing:"")}
|
|
4670
4670
|
/>
|
|
4671
|
-
`}};Ur([a({type:Function})],Ye.prototype,"click",2);Ur([a({type:Number})],Ye.prototype,"index",2);Ur([a({type:Boolean})],Ye.prototype,"isFirst",2);Ur([a({type:Boolean})],Ye.prototype,"isLast",2);Ur([a({type:String})],Ye.prototype,"value",2);Ye=Ur([
|
|
4671
|
+
`}};Ur([a({type:Function})],Ye.prototype,"click",2);Ur([a({type:Number})],Ye.prototype,"index",2);Ur([a({type:Boolean})],Ye.prototype,"isFirst",2);Ur([a({type:Boolean})],Ye.prototype,"isLast",2);Ur([a({type:String})],Ye.prototype,"value",2);Ye=Ur([h("rtg-input-otp-slot")],Ye);var wb=Object.defineProperty,xb=Object.getOwnPropertyDescriptor,So=(e,t,o,s)=>{for(var r=s>1?void 0:s?xb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&wb(t,o,r),r};let xe=class extends m{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="digits_only",this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,t="changes",o=1/0){const s=new CustomEvent("focus",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:t,customIndex:o}});this.dispatchEvent(s)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}checkIfCompleteAndSubmit(){if(this.inputes.every(e=>e.value!=="")){const e=this.inputes.map(o=>o.value).join(""),t=new CustomEvent("otp-complete",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}}render(){return c`
|
|
4672
4672
|
<div
|
|
4673
4673
|
part="input-otp"
|
|
4674
|
-
class=${u(
|
|
4674
|
+
class=${u(pe.base,this.className)}
|
|
4675
4675
|
></div>
|
|
4676
|
-
`}};So([a()],xe.prototype,"maxLength",2);So([a()],xe.prototype,"onChange",2);So([a()],xe.prototype,"pin",2);So([a()],xe.prototype,"variant",2);xe=So([
|
|
4676
|
+
`}};So([a()],xe.prototype,"maxLength",2);So([a()],xe.prototype,"onChange",2);So([a()],xe.prototype,"pin",2);So([a()],xe.prototype,"variant",2);xe=So([h("rtg-input-otp")],xe);const Nr={list:["rtg-flex rtg-flex-wrap rtg-gap-breadcrumb-list-space-gap-sm sm:rtg-gap-breadcrumb-list-space-gap rtg-items-center","rtg-text-breadcrumb-list-font rtg-font-breadcrumb-list-font-weight rtg-text-breadcrumb-list-color-text rtg-break-words"],item:["rtg-inline-flex rtg-gap-breadcrumb-item-space-gap rtg-items-center"],link:["rtg-transition-colors","hover:rtg-text-breadcrumb-link-color-text-hover"],page:["rtg-font-breadcrumb-page-font-weight rtg-text-breadcrumb-page-color-text"],separator:["[&>svg]:rtg-size-breadcrumb-separator-icon-space-size"],ellipsis:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-breadcrumb-ellipsis-space-size","[&>svg]:rtg-size-breadcrumb-ellipsis-icon-space-size"]};var _b=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let ja=class extends m{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
4677
4677
|
<span
|
|
4678
4678
|
${V(e)}
|
|
4679
4679
|
id="rtg-bread-crumb-ellipsis"
|
|
@@ -4697,14 +4697,14 @@ body {
|
|
|
4697
4697
|
<circle cx="5" cy="12" r="1" />
|
|
4698
4698
|
</svg>
|
|
4699
4699
|
</span>
|
|
4700
|
-
`}};ja=_b([
|
|
4700
|
+
`}};ja=_b([h("rtg-bread-crumb-ellipsis")],ja);var Cb=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ua=class extends m{get _containerElement(){return this.querySelector("li[part=breadcrumb-item]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return c`
|
|
4701
4701
|
<li
|
|
4702
4702
|
${V(e)}
|
|
4703
4703
|
id="rtg-bread-crumb-item"
|
|
4704
4704
|
class="${u(Nr.item,this.className)}"
|
|
4705
4705
|
part="breadcrumb-item"
|
|
4706
4706
|
></li>
|
|
4707
|
-
`}};Ua=Cb([
|
|
4707
|
+
`}};Ua=Cb([h("rtg-bread-crumb-item")],Ua);var Sb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,hc=(e,t,o,s)=>{for(var r=s>1?void 0:s?$b(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Sb(t,o,r),r};let Ei=class extends m{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=breadcrumb-link]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return c`
|
|
4708
4708
|
<a
|
|
4709
4709
|
${V(e)}
|
|
4710
4710
|
id="rtg-bread-crumb-link"
|
|
@@ -4713,14 +4713,14 @@ body {
|
|
|
4713
4713
|
part="breadcrumb-link"
|
|
4714
4714
|
>
|
|
4715
4715
|
</a>
|
|
4716
|
-
`}};
|
|
4716
|
+
`}};hc([a({type:String})],Ei.prototype,"href",2);Ei=hc([h("rtg-bread-crumb-link")],Ei);var Eb=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Na=class extends m{get _containerElement(){return this.querySelector("ol[part=breadcrumb-list]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return c`
|
|
4717
4717
|
<ol
|
|
4718
4718
|
${V(e)}
|
|
4719
4719
|
id="rtg-bread-crumb-list"
|
|
4720
4720
|
class="${u(Nr.list,this.className)}"
|
|
4721
4721
|
part="breadcrumb-list"
|
|
4722
4722
|
></ol>
|
|
4723
|
-
`}};Na=Eb([
|
|
4723
|
+
`}};Na=Eb([h("rtg-bread-crumb-list")],Na);var kb=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ma=class extends m{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
4724
4724
|
<li
|
|
4725
4725
|
${V(e)}
|
|
4726
4726
|
id="rtg-bread-crumb-separator"
|
|
@@ -4742,7 +4742,7 @@ body {
|
|
|
4742
4742
|
<path d="m9 18 6-6-6-6" />
|
|
4743
4743
|
</svg>
|
|
4744
4744
|
</li>
|
|
4745
|
-
`}};Ma=kb([
|
|
4745
|
+
`}};Ma=kb([h("rtg-bread-crumb-separator")],Ma);var Rb=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Fa=class extends m{get _containerElement(){return this.querySelector("span[part=breadcrumb-text]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return c`
|
|
4746
4746
|
<span
|
|
4747
4747
|
${V(e)}
|
|
4748
4748
|
id="rtg-bread-crumb-text"
|
|
@@ -4752,14 +4752,14 @@ body {
|
|
|
4752
4752
|
part="breadcrumb-text"
|
|
4753
4753
|
>
|
|
4754
4754
|
</span>
|
|
4755
|
-
`}};Fa=Rb([
|
|
4755
|
+
`}};Fa=Rb([h("rtg-bread-crumb-text")],Fa);var Ob=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ba=class extends m{get _containerElement(){return this.querySelector("nav[part=breadcrumb]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return c`
|
|
4756
4756
|
<nav
|
|
4757
4757
|
${V(e)}
|
|
4758
4758
|
part="breadcrumb"
|
|
4759
4759
|
class="${u(this.className)}"
|
|
4760
4760
|
aria-label="breadcrumb"
|
|
4761
4761
|
></nav>
|
|
4762
|
-
`}};Ba=Ob([
|
|
4762
|
+
`}};Ba=Ob([h("rtg-bread-crumb")],Ba);const Ze={content:["rtg-absolute","rtg-top-navigation-menu-content-space-top","rtg-flex","rtg-justify-center"],menu:["rtg-relative","rtg-z-10","rtg-flex","rtg-max-w-navigation-menu-space-max-w","rtg-flex-1","rtg-items-center","rtg-justify-center"],menuList:["rtg-flex","rtg-flex-1","rtg-list-none","rtg-items-center","rtg-justify-center","rtg-space-x-navigation-menu-list-space-x","group"],menuItem:["rtg-flex","rtg-cursor-pointer","rtg-items-center","rtg-rounded-navigation-menu-item-radius","rtg-bg-navigation-menu-item-color-bg","rtg-py-navigation-menu-list-space-py","rtg-px-navigation-menu-list-space-px","hover:rtg-bg-navigation-menu-item-color-bg-hover","focus:rtg-shadow-navigation-menu-item-shadow-focus"],menuItemIcon:["lucide","lucide-chevron-down","rtg-relative","rtg-ml-navigation-menu-item-icon-space-ml","rtg-h-navigation-menu-item-icon-space-h","rtg-w-navigation-menu-item-icon-space-w","rtg-transition-transform","rtg-duration-navigation-menu-item-icon-transition-duration"],link:["rtg-flex","rtg-h-navigation-menu-link-space-h","rtg-bg-navigation-menu-link-color-bg","hover:rtg-bg-navigation-menu-link-color-bg-hover","rtg-rounded-navigation-menu-link-radius","rtg-px-navigation-menu-link-space-px","rtg-py-navigation-menu-link-space-py","rtg-w-navigation-menu-link-space-w","rtg-select-none","rtg-flex-col","rtg-justify-end","rtg-no-underline","rtg-outline-none"],contentContainer:["rtg-bg-navigation-menu-content-container-color-bg","origin-top-center","rtg-relative","rtg-mt-navigation-menu-content-container-space-mt","rtg-w-navigation-menu-content-container-space-w","rtg-overflow-hidden","rtg-rounded-navigation-menu-content-container-radius","rtg-border-navigation-menu-content-container-width-border","rtg-border-navigation-menu-content-container-color-border","rtg-navigation-menu-content-container-shadow"]};var Ab=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let qa=class extends m{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4763
4763
|
<div class="${u("relative",this.className)}">
|
|
4764
4764
|
<ul
|
|
4765
4765
|
part="navigation-menu-list"
|
|
@@ -4769,7 +4769,7 @@ body {
|
|
|
4769
4769
|
></ul>
|
|
4770
4770
|
<div></div>
|
|
4771
4771
|
</div>
|
|
4772
|
-
`}};qa=Ab([
|
|
4772
|
+
`}};qa=Ab([h("rtg-navigation-menu-list")],qa);var Pb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Mr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ib(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Pb(t,o,r),r};let _e=class extends m{constructor(){super(...arguments),this.value="",this.navigationLink=!0,this.isOpen=!1,this.uniqueIds=[],this.isHovering=!1,this.handleClickOutside=e=>{const t=e.target;this.contains(t)||(this.isOpen=!1)}}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}firstUpdated(){this.moveLightDomChildrenInto(this.querySelector("div[part=content-slot]"),[this._content]),this.moveLightDomChildrenInto(this.querySelector("div[part=button-slot]"),[this._button])}closeAllMenus(){document.querySelectorAll("rtg-navigation-menu-item").forEach(e=>{e.isOpen=!1,e.isHovering=!1})}toggleMenubar(e){e.stopPropagation(),document.querySelectorAll("rtg-navigation-menu-item").forEach(t=>{t!==this&&(t.isOpen=!1)}),this.isOpen=!this.isOpen}get _content(){return this.querySelector("rtg-navigation-menu-content")}get _button(){return this.querySelector("rtg-navigation-menu-trigger")}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleHover(){this.closeAllMenus(),this.isHovering||(this.isHovering=!0,this.isOpen=!0)}handleMouseLeave(){this.isHovering=!1,this.isOpen=!1}createRenderRoot(){return this}render(){return c`
|
|
4773
4773
|
<li
|
|
4774
4774
|
@mouseenter="${this.handleHover}"
|
|
4775
4775
|
@mouseleave="${this.handleMouseLeave}"
|
|
@@ -4799,7 +4799,7 @@ body {
|
|
|
4799
4799
|
</div>
|
|
4800
4800
|
<div part="content-slot" style="position:absolute"></div>`:""}
|
|
4801
4801
|
</li>
|
|
4802
|
-
`}};Mr([a({type:String})],_e.prototype,"value",2);Mr([a({type:Boolean})],_e.prototype,"navigationLink",2);Mr([k()],_e.prototype,"isOpen",2);Mr([k()],_e.prototype,"uniqueIds",2);Mr([k()],_e.prototype,"isHovering",2);_e=Mr([
|
|
4802
|
+
`}};Mr([a({type:String})],_e.prototype,"value",2);Mr([a({type:Boolean})],_e.prototype,"navigationLink",2);Mr([k()],_e.prototype,"isOpen",2);Mr([k()],_e.prototype,"uniqueIds",2);Mr([k()],_e.prototype,"isHovering",2);_e=Mr([h("rtg-navigation-menu-item")],_e);var Tb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,$o=(e,t,o,s)=>{for(var r=s>1?void 0:s?Lb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Tb(t,o,r),r};let $r=class extends m{constructor(){super(...arguments),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof _e);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=navigation-menu-content-container]")}getAttributesToExclude(){return["data-testid"]}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return c`
|
|
4803
4803
|
<div
|
|
4804
4804
|
class="${u(Ze.content,this.className)}"
|
|
4805
4805
|
style="display: ${this.isOpen?"block":"none"};top:0px;left:0px;"
|
|
@@ -4819,7 +4819,7 @@ body {
|
|
|
4819
4819
|
></div>
|
|
4820
4820
|
</div>
|
|
4821
4821
|
</div>
|
|
4822
|
-
`}};$o([a({attribute:"data-state",type:String})],$r.prototype,"state",2);$o([a({type:String})],$r.prototype,"id",2);$o([a({type:String})],$r.prototype,"side",2);$o([k()],$r.prototype,"isOpen",2);$r=$o([
|
|
4822
|
+
`}};$o([a({attribute:"data-state",type:String})],$r.prototype,"state",2);$o([a({type:String})],$r.prototype,"id",2);$o([a({type:String})],$r.prototype,"side",2);$o([k()],$r.prototype,"isOpen",2);$r=$o([h("rtg-navigation-menu-content")],$r);var Db=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,gc=(e,t,o,s)=>{for(var r=s>1?void 0:s?zb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Db(t,o,r),r};let ki=class extends m{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4823
4823
|
<a
|
|
4824
4824
|
part="navigation-menu-link"
|
|
4825
4825
|
class="${u(Ze.link,this.className)}"
|
|
@@ -4829,9 +4829,9 @@ body {
|
|
|
4829
4829
|
tabindex="-1"
|
|
4830
4830
|
>
|
|
4831
4831
|
</a>
|
|
4832
|
-
`}};gc([a({type:String})],ki.prototype,"href",2);ki=gc([
|
|
4832
|
+
`}};gc([a({type:String})],ki.prototype,"href",2);ki=gc([h("rtg-navigation-menu-link")],ki);var jb=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Va=class extends m{get _containerElement(){return this.querySelector("div[part=navigation-menu-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return c`
|
|
4833
4833
|
<div part="navigation-menu-trigger" class="${u(this.className)}"></div>
|
|
4834
|
-
`}};Va=jb([
|
|
4834
|
+
`}};Va=jb([h("rtg-navigation-menu-trigger")],Va);var Ub=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ha=class extends m{get _containerElement(){return this.querySelector("nav[part=navigation-menu]")}createRenderRoot(){return this}firstUpdated(e){}render(){return c`
|
|
4835
4835
|
<nav
|
|
4836
4836
|
part="navigation-menu"
|
|
4837
4837
|
aria-label="Main"
|
|
@@ -4839,7 +4839,7 @@ body {
|
|
|
4839
4839
|
dir="ltr"
|
|
4840
4840
|
class="${u(Ze.menu,this.className)}"
|
|
4841
4841
|
></nav>
|
|
4842
|
-
`}};Ha=Ub([
|
|
4842
|
+
`}};Ha=Ub([h("rtg-navigation-menu")],Ha);const it={root:["rtg-flex","rtg-gap-menubar-space-gap rtg-items-center","rtg-p-menubar-space-p","rtg-h-menubar-space-h","rtg-bg-menubar-color-bg","rtg-rounded-menubar-radius rtg-border-menubar-width-border rtg-border-menubar-color-border","rtg-shadow-menubar-shadow"],menu:[""],group:[""],trigger:["rtg-flex","rtg-items-center","rtg-px-menubar-trigger-space-px rtg-py-menubar-trigger-space-py","rtg-text-menubar-trigger-font rtg-font-menubar-trigger-font-weight","rtg-rounded-menubar-trigger-radius rtg-outline-hidden","rtg-select-none","focus:rtg-text-menubar-trigger-color-text-focus focus:rtg-bg-menubar-trigger-color-bg-focus","hover:rtg-text-menubar-trigger-color-text-active hover:rtg-bg-menubar-trigger-color-bg-active"],content:["rtg-absolute rtg-overflow-hidden rtg-z-50","rtg-p-menubar-content-space-p","rtg-min-w-menubar-content-space-min-w","rtg-text-menubar-content-color-text","rtg-bg-menubar-content-color-bg","rtg-rounded-menubar-content-radius rtg-border-menubar-content-width-border rtg-border-menubar-content-color-border","rtg-shadow-menubar-content-shadow","rtg-translate-y-2","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],item:["rtg-flex rtg-relative","rtg-gap-menubar-item-space-gap rtg-items-center","rtg-px-menubar-item-space-px rtg-py-menubar-item-space-py","rtg-text-menubar-item-font","rtg-rounded-menubar-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-item-color-text-active aria-selected:rtg-bg-menubar-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-menubar-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-menubar-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-menubar-checkbox-item-space-gap rtg-items-center","rtg-pl-menubar-checkbox-item-space-pl rtg-pr-menubar-checkbox-item-space-pr rtg-py-menubar-checkbox-item-space-py","rtg-text-menubar-checkbox-item-font","rtg-rounded-menubar-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-checkbox-item-color-text-active aria-selected:rtg-bg-menubar-checkbox-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-menubar-checkbox-item-indicator-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-menubar-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-menubar-radio-item-space-gap rtg-items-center","rtg-pl-menubar-radio-item-space-pl rtg-pr-menubar-radio-item-space-pr rtg-py-menubar-radio-item-space-py","rtg-text-menubar-radio-item-font","rtg-rounded-menubar-radio-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-radio-item-color-text-active aria-selected:rtg-bg-menubar-radio-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-menubar-radio-item-indicator-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-menubar-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-menubar-label-space-px rtg-py-menubar-label-space-py","rtg-text-menubar-label-font rtg-font-menubar-label-font-weight"],separator:["rtg-mx-menubar-separator-space-mx rtg-my-menubar-separator-space-my","rtg-h-menubar-separator-space-h","rtg-bg-menubar-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-menubar-shortcut-font rtg-text-menubar-shortcut-color-text"]};var Nb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,sr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Mb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Nb(t,o,r),r};let Ut=class extends m{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-checkbox-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var e,t;if(this._id!=="")return this._id;const o=(t=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("div[rtgcmd-group]");return o?this._id=`${o.getAttribute("id")}li${Ut._counter++}`:this._id=`rtgcmdrxgxli${Ut._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return c`
|
|
4843
4843
|
<div
|
|
4844
4844
|
part="menubar-checkbox-item"
|
|
4845
4845
|
class=${u(it.checkboxItem.base,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
|
|
@@ -4874,7 +4874,7 @@ body {
|
|
|
4874
4874
|
`:I}
|
|
4875
4875
|
</span>
|
|
4876
4876
|
</div>
|
|
4877
|
-
`}};Ut._counter=0;sr([a({type:String})],Ut.prototype,"_id",2);sr([a({attribute:"aria-hidden",type:String})],Ut.prototype,"_hidden",2);sr([a({attribute:"data-value",type:String})],Ut.prototype,"value",1);sr([a({type:Boolean})],Ut.prototype,"selected",2);sr([a({type:Boolean})],Ut.prototype,"checked",2);sr([a({type:Boolean})],Ut.prototype,"disabled",2);Ut=sr([
|
|
4877
|
+
`}};Ut._counter=0;sr([a({type:String})],Ut.prototype,"_id",2);sr([a({attribute:"aria-hidden",type:String})],Ut.prototype,"_hidden",2);sr([a({attribute:"data-value",type:String})],Ut.prototype,"value",1);sr([a({type:Boolean})],Ut.prototype,"selected",2);sr([a({type:Boolean})],Ut.prototype,"checked",2);sr([a({type:Boolean})],Ut.prototype,"disabled",2);Ut=sr([h("rtg-menubar-checkbox-item")],Ut);var Fb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Fr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Bb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Fb(t,o,r),r};let Ce=class extends m{constructor(){super(...arguments),this.isOpen=!1,this.uniqueIds=[],this.selectedMenu="",this.isHovering=!1,this.id="",this.closeTimeout=null,this.toggleMenubar=e=>{e.stopPropagation(),document.querySelectorAll("rtg-menubar-menu").forEach(t=>{t!==this&&(t.isOpen=!1)}),this.isOpen=!this.isOpen},this.handleClickOutside=e=>{const t=e.target;this.contains(t)||(this.isOpen=!1)},this.handleMenuMouseEnter=()=>{this.clearCloseTimeout(),this.closeAllMenus(),this.isOpen=!0,this.isHovering=!0},this.handleMenuMouseLeave=e=>{const t=e.relatedTarget;if(this.isDescendant(t,"rtg-menubar-content")){this.clearCloseTimeout();return}this.scheduleClose()}}get _content(){return this.querySelector("rtg-menubar-content")}get _button(){return this.querySelector("rtg-menubar-trigger")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),this.clearCloseTimeout(),super.disconnectedCallback()}clearCloseTimeout(){this.closeTimeout!==null&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}updated(e){super.updated(e);const t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-menubar-radio-item").forEach(t=>{const o=t;t!==e.target&&(o.checked=!1)})}firstUpdated(){this.setupContentListeners();const e=this.querySelector("div[part=menubar-menu-slot]"),t=this.querySelector("div[part=button-slot]");e&&this._content&&e.appendChild(this._content),t&&this._button&&t.appendChild(this._button)}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}closeAllMenus(){document.querySelectorAll("rtg-menubar-menu").forEach(e=>{e.isOpen=!1,e.isHovering=!1})}scheduleClose(){this.clearCloseTimeout(),this.closeTimeout=window.setTimeout(()=>{this.isOpen=!1,this.isHovering=!1,this.closeTimeout=null},150)}isDescendant(e,t){let o=e.parentElement;for(;o;){if(o.tagName.toLowerCase()===t.toLowerCase())return!0;o=o.parentElement}return!1}setupContentListeners(){const e=this._content;e&&(e.addEventListener("mouseenter",()=>{this.clearCloseTimeout(),this.isOpen=!0}),e.addEventListener("mouseleave",()=>{this.scheduleClose()}))}render(){return c`
|
|
4878
4878
|
<div class=${u(it.menu,this.className)}>
|
|
4879
4879
|
<div
|
|
4880
4880
|
id="${this.id}"
|
|
@@ -4893,7 +4893,7 @@ body {
|
|
|
4893
4893
|
|
|
4894
4894
|
<div part="menubar-menu-slot"></div>
|
|
4895
4895
|
</div>
|
|
4896
|
-
`}};Fr([k()],Ce.prototype,"isOpen",2);Fr([k()],Ce.prototype,"uniqueIds",2);Fr([k()],Ce.prototype,"selectedMenu",2);Fr([k()],Ce.prototype,"isHovering",2);Fr([a({type:String})],Ce.prototype,"id",2);Ce=Fr([
|
|
4896
|
+
`}};Fr([k()],Ce.prototype,"isOpen",2);Fr([k()],Ce.prototype,"uniqueIds",2);Fr([k()],Ce.prototype,"selectedMenu",2);Fr([k()],Ce.prototype,"isHovering",2);Fr([a({type:String})],Ce.prototype,"id",2);Ce=Fr([h("rtg-menubar-menu")],Ce);var qb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,Eo=(e,t,o,s)=>{for(var r=s>1?void 0:s?Vb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&qb(t,o,r),r};let Er=class extends m{constructor(){super(...arguments),this.state=sn,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof Ce);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}render(){return c`
|
|
4897
4897
|
<div
|
|
4898
4898
|
class=${u(it.content,this.className)}
|
|
4899
4899
|
id="${this.id}"
|
|
@@ -4907,7 +4907,7 @@ body {
|
|
|
4907
4907
|
dir="ltr"
|
|
4908
4908
|
style="display: ${this.isOpen?"block":"none"};"
|
|
4909
4909
|
></div>
|
|
4910
|
-
`}};Eo([a({attribute:"data-state",type:String})],Er.prototype,"state",2);Eo([a({type:String})],Er.prototype,"id",2);Eo([a({type:String})],Er.prototype,"side",2);Eo([k()],Er.prototype,"isOpen",2);Er=Eo([
|
|
4910
|
+
`}};Eo([a({attribute:"data-state",type:String})],Er.prototype,"state",2);Eo([a({type:String})],Er.prototype,"id",2);Eo([a({type:String})],Er.prototype,"side",2);Eo([k()],Er.prototype,"isOpen",2);Er=Eo([h("rtg-menubar-content")],Er);var Hb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,ps=(e,t,o,s)=>{for(var r=s>1?void 0:s?Gb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Hb(t,o,r),r};let Se=class extends m{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-group-slot]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var e,t;if(this._id!=="")return this._id;const o=(t=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("div[rtgcmd-list]");return o?this._id=`${o.getAttribute("id")}g${Se._counter++}`:this._id=`rtgcmdrxlxg${Se._counter++}`,this._id}render(){return c`${this._hidden==="true"?I:c`
|
|
4911
4911
|
<div
|
|
4912
4912
|
class=${u(it.group,this.className)}
|
|
4913
4913
|
id="${this.identifier}"
|
|
@@ -4928,7 +4928,7 @@ body {
|
|
|
4928
4928
|
aria-labelledby="${this.identifier}h"
|
|
4929
4929
|
></div>
|
|
4930
4930
|
</div>
|
|
4931
|
-
`}`}};Se._counter=0;
|
|
4931
|
+
`}`}};Se._counter=0;ps([a({type:String})],Se.prototype,"heading",2);ps([a({attribute:"id",type:String})],Se.prototype,"_id",2);ps([a({attribute:"aria-hidden",type:String})],Se.prototype,"_hidden",2);Se=ps([h("rtg-menubar-group")],Se);var Wb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,Br=(e,t,o,s)=>{for(var r=s>1?void 0:s?Kb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Wb(t,o,r),r};let Yt=class extends m{constructor(){super(...arguments),this._id="",this._hidden="",this.disabled=!1,this.selected=!1}get _containerElement(){return this.querySelector("div[part=menubar-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var e,t;if(this._id!=="")return this._id;const o=(t=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("div[rtgcmd-group]");return o?this._id=`${o.getAttribute("id")}li${Yt._counter++}`:this._id=`rtgcmdrxgxli${Yt._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return c` ${this._hidden==="true"?I:c`
|
|
4932
4932
|
<div
|
|
4933
4933
|
part="menubar-item"
|
|
4934
4934
|
class=${u(it.item,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
|
|
@@ -4942,7 +4942,7 @@ body {
|
|
|
4942
4942
|
id="${this.identifier}"
|
|
4943
4943
|
aria-hidden="${this.hidden}"
|
|
4944
4944
|
></div>
|
|
4945
|
-
`}`}};Yt._counter=0;Br([a({type:String})],Yt.prototype,"_id",2);Br([a({attribute:"aria-hidden",type:String})],Yt.prototype,"_hidden",2);Br([a({type:Boolean})],Yt.prototype,"disabled",2);Br([a({attribute:"data-value",type:String})],Yt.prototype,"value",1);Br([a({type:Boolean})],Yt.prototype,"selected",2);Yt=Br([
|
|
4945
|
+
`}`}};Yt._counter=0;Br([a({type:String})],Yt.prototype,"_id",2);Br([a({attribute:"aria-hidden",type:String})],Yt.prototype,"_hidden",2);Br([a({type:Boolean})],Yt.prototype,"disabled",2);Br([a({attribute:"data-value",type:String})],Yt.prototype,"value",1);Br([a({type:Boolean})],Yt.prototype,"selected",2);Yt=Br([h("rtg-menubar-item")],Yt);var Yb=Object.defineProperty,Zb=Object.getOwnPropertyDescriptor,ir=(e,t,o,s)=>{for(var r=s>1?void 0:s?Zb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Yb(t,o,r),r};let Nt=class extends m{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-radio-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var e,t;if(this._id!=="")return this._id;const o=(t=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("div[rtgcmd-group]");return o?this._id=`${o.getAttribute("id")}li${Nt._counter++}`:this._id=`rtgcmdrxgxli${Nt._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return c`
|
|
4946
4946
|
<div
|
|
4947
4947
|
part="menubar-radio-item"
|
|
4948
4948
|
class=${u(it.radioItem.base,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
|
|
@@ -4975,7 +4975,7 @@ body {
|
|
|
4975
4975
|
</svg>`:I}
|
|
4976
4976
|
</span>
|
|
4977
4977
|
</div>
|
|
4978
|
-
`}};Nt._counter=0;ir([a({type:String})],Nt.prototype,"_id",2);ir([a({attribute:"aria-hidden",type:String})],Nt.prototype,"_hidden",2);ir([a({attribute:"data-value",type:String})],Nt.prototype,"value",1);ir([a({type:Boolean})],Nt.prototype,"selected",2);ir([a({type:Boolean})],Nt.prototype,"checked",2);ir([a({type:Boolean})],Nt.prototype,"disabled",2);Nt=ir([
|
|
4978
|
+
`}};Nt._counter=0;ir([a({type:String})],Nt.prototype,"_id",2);ir([a({attribute:"aria-hidden",type:String})],Nt.prototype,"_hidden",2);ir([a({attribute:"data-value",type:String})],Nt.prototype,"value",1);ir([a({type:Boolean})],Nt.prototype,"selected",2);ir([a({type:Boolean})],Nt.prototype,"checked",2);ir([a({type:Boolean})],Nt.prototype,"disabled",2);Nt=ir([h("rtg-menubar-radio-item")],Nt);var Xb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,hn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Jb(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Xb(t,o,r),r};let Xe=class extends m{constructor(){super(...arguments),this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-separator]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}get identifier(){var e;if(this._id!=="")return this._id;const t=(e=this.parentElement)==null?void 0:e.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}s${Xe._counter++}`:this._id=`rtgcmdrxlxs${Xe._counter++}`,this._id}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`${this._hidden==="true"?I:c`
|
|
4979
4979
|
<div
|
|
4980
4980
|
class=${u(it.separator,this.className)}
|
|
4981
4981
|
id="${this.identifier}"
|
|
@@ -4983,20 +4983,20 @@ body {
|
|
|
4983
4983
|
part="menubar-separator"
|
|
4984
4984
|
rtgcmd-separator
|
|
4985
4985
|
></div>
|
|
4986
|
-
`}`}};Xe._counter=0;
|
|
4986
|
+
`}`}};Xe._counter=0;hn([a({type:String})],Xe.prototype,"_id",2);hn([a({attribute:"aria-hidden",type:String})],Xe.prototype,"_hidden",2);Xe=hn([h("rtg-menubar-separator")],Xe);var Qb=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ga=class extends m{get _containerElement(){return this.querySelector("span[part=menubar-shortcut]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this.classList=u(it.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4987
4987
|
<span
|
|
4988
4988
|
class=${u(it.shortcut,this.className)}
|
|
4989
4989
|
part="menubar-shortcut"
|
|
4990
4990
|
>
|
|
4991
4991
|
</span>
|
|
4992
|
-
`}};Ga=Qb([
|
|
4992
|
+
`}};Ga=Qb([h("rtg-menubar-shortcut")],Ga);var tm=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Wa=class extends m{get _containerElement(){return this.querySelector("button[part=menubar-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return c`
|
|
4993
4993
|
<button
|
|
4994
4994
|
class=${u(it.trigger,this.className)}
|
|
4995
4995
|
type="button"
|
|
4996
4996
|
role="menuitem"
|
|
4997
4997
|
part="menubar-trigger"
|
|
4998
4998
|
></button>
|
|
4999
|
-
`}};Wa=tm([
|
|
4999
|
+
`}};Wa=tm([h("rtg-menubar-trigger")],Wa);var em=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ka=class extends m{get _containerElement(){return this.querySelector("div[part=menubar]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
5000
5000
|
<div
|
|
5001
5001
|
role="menubar"
|
|
5002
5002
|
part="menubar"
|
|
@@ -5004,7 +5004,7 @@ body {
|
|
|
5004
5004
|
tabindex="0"
|
|
5005
5005
|
data-orientation="horizontal"
|
|
5006
5006
|
></div>
|
|
5007
|
-
`}};Ka=em([
|
|
5007
|
+
`}};Ka=em([h("rtg-menubar")],Ka);const et={preview:["rtg-flex rtg-bg-table-preview-color-bg rtg-w-table-preview-space-w rtg-items-center rtg-justify-center rtg-px-table-preview-space-px rtg-py-table-preview-space-py"],container:["rtg-relative rtg-w-table-container-space-w rtg-overflow-auto"],table:["rtg-w-table-space-w rtg-caption-bottom rtg-text-table-font"],caption:["rtg-mt-table-caption-space-mt rtg-text-table-caption-font rtg-text-table-caption-color-text"],head:{root:["[&_tr]:rtg-border-table-head-color-border [&_tr]:rtg-border-b-table-head-width-border"],row:["rtg-border-b-table-head-width-border rtg-border-table-head-color-border rtg-transition-colors hover:rtg-bg-table-head-row-color-bg-hover"],cell:{base:["rtg-h-table-head-cell-space-h rtg-px-table-head-cell-space-px rtg-align-middle rtg-font-table-head-cell-font-weight rtg-text-table-head-cell-color-text"],align:{left:"rtg-text-left",right:"rtg-text-right"}}},body:{root:["[&_tr:last-child]:rtg-border-0"],row:["rtg-border-b-table-body-width-border rtg-border-table-body-color-border rtg-transition-colors hover:rtg-bg-table-body-row-color-bg-hover"],cell:{base:["rtg-px-table-body-cell-space-px rtg-py-table-body-cell-space-py rtg-align-middle"],align:{right:"rtg-text-right"}}},footer:{root:["rtg-border-t-table-footer-width-border rtg-border-table-footer-color-border rtg-bg-table-footer-color-bg rtg-font-table-footer-font-weight [&>tr]:rtg-last:border-b-0"],row:["rtg-border-b-table-footer-width-border rtg-border-table-footer-color-border rtg-transition-colors hover:rtg-bg-table-footer-row-color-bg-hover"],cell:{base:["rtg-px-table-footer-cell-space-px rtg-py-table-footer-cell-space-py rtg-align-middle"],align:{right:"rtg-text-right"}}}};var rm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,hs=(e,t,o,s)=>{for(var r=s>1?void 0:s?om(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&rm(t,o,r),r};let ho=class extends m{constructor(){super(...arguments),this.dataTable=[],this.footerData=[],this.captionText=""}get _containerElement(){return this.querySelector("table[part=table]")}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var e;const t=(e=this.dataTable)==null?void 0:e[0];return t?Object.keys(t).filter(o=>o!=="id"):[]}capitalizeLabel(e){return e.charAt(0).toUpperCase()+e.slice(1)}render(){const e=this.columnKeys;return c`
|
|
5008
5008
|
<div class=${u(et.preview)}>
|
|
5009
5009
|
<div class=${u(et.container)}>
|
|
5010
5010
|
<table part="table" class=${u(et.table)}>
|
|
@@ -5059,44 +5059,44 @@ body {
|
|
|
5059
5059
|
</table>
|
|
5060
5060
|
</div>
|
|
5061
5061
|
</div>
|
|
5062
|
-
`}};
|
|
5062
|
+
`}};hs([a({type:Array})],ho.prototype,"dataTable",2);hs([a({type:Array})],ho.prototype,"footerData",2);hs([a({type:String})],ho.prototype,"captionText",2);ho=hs([h("rtg-table")],ho);class bc{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:t,defaultValue:o="",validator:s}){t in this.values||(this.values[t]=o),s&&(this.validators[t]=s)}unregisterField(t){delete this.values[t],delete this.errors[t],delete this.validators[t]}setValue(t,o){t in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${t}"`),this.values[t]=o,this.validateField(t),this.notify()}getValue(t){return this.values[t]}getError(t){return this.errors[t]??null}validateField(t){const o=this.validators[t],s=this.values[t],r=o?o(s):null;return this.errors[t]=r,this.notify(),!r}validateAll(){let t=!0;return Object.keys(this.validators).forEach(o=>{this.validateField(o)||(t=!1)}),t}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}notify(){this.subscribers.forEach(t=>t())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}}const ko="rtg-form-context";var sm=Object.defineProperty,im=Object.getOwnPropertyDescriptor,mc=(e,t,o,s)=>{for(var r=s>1?void 0:s?im(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&sm(t,o,r),r};let Ri=class extends m{constructor(){super(...arguments),this.form=new bc,this.handleSubmit=e=>{if(e.preventDefault(),this.form.validateAll()){const t=this.form.getValues();alert(JSON.stringify(t,null,2))}}}createRenderRoot(){return this}async firstUpdated(e){await this.updateComplete,Array.from(this.childNodes).forEach(t=>{t!==this.formElement&&this.formElement.appendChild(t)}),this.querySelectorAll("rtg-form-field").forEach(t=>{const o=t.getAttribute("name"),s=t.validators,r=s==null?void 0:s[0];this.form.registerField({name:o,validator:r})})}render(){return c`
|
|
5063
5063
|
<form
|
|
5064
5064
|
part="form-controller"
|
|
5065
5065
|
class="${u("",this.className)}"
|
|
5066
5066
|
@submit=${this.handleSubmit}
|
|
5067
5067
|
${Od(e=>this.formElement=e)}
|
|
5068
5068
|
></form>
|
|
5069
|
-
`}};mc([k(),Ee({context:ko})],Ri.prototype,"form",2);Ri=mc([
|
|
5069
|
+
`}};mc([k(),Ee({context:ko})],Ri.prototype,"form",2);Ri=mc([h("rtg-form-controller")],Ri);const fc="rtg-form-item-context",nm="rtg-space-form-space-y",am="rtg-text-form-description-font rtg-text-form-description-color-text rtg-mt-form-description-space-mt",lm="rtg-space-y-form-field-space-y",cm="rtg-space-y-form-item-space-y",dm="rtg-text-form-label-font rtg-mb-form-label-space-mb rtg-font-form-label-font-weight rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-form-label-opacity-peer-disabled",um="rtg-text-form-label-color-text-error",pm="rtg-text-form-message-font-size rtg-text-form-message-color-text";var hm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,vc=(e,t,o,s)=>{for(var r=s>1?void 0:s?gm(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&hm(t,o,r),r};let Oi=class extends m{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return c`
|
|
5070
5070
|
<p
|
|
5071
5071
|
id="${this.itemContext.id}-description"
|
|
5072
5072
|
part="form-description"
|
|
5073
5073
|
class="${u(am,this.className)}"
|
|
5074
5074
|
></p>
|
|
5075
|
-
`}};vc([Ct({context:fc})],Oi.prototype,"itemContext",2);Oi=vc([
|
|
5075
|
+
`}};vc([Ct({context:fc})],Oi.prototype,"itemContext",2);Oi=vc([h("rtg-form-description")],Oi);const bm="rtg-form-field-context";var mm=Object.defineProperty,fm=Object.getOwnPropertyDescriptor,qr=(e,t,o,s)=>{for(var r=s>1?void 0:s?fm(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&mm(t,o,r),r};let oe=class extends m{constructor(){super(...arguments),this.name="",this.validators=[],this.defaultValue="",this.fieldName="",this.registered=!1}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-field]")}updated(){var e;if(this.registered||!this.form||!this.name||!Array.isArray(this.validators)||this.validators.length===0)return;const t=s=>{for(const r of this.validators){const i=r(s);if(i)return i}return null};this.form.registerField({name:this.name,validator:t,defaultValue:this.defaultValue}),this.registered=!0,this.moveLightDomChildrenInto(this._container);const o=(e=this._container)==null?void 0:e.querySelector("input, textarea, select");o&&(this.defaultValue!==void 0&&(o.value=this.defaultValue),o.addEventListener("input",()=>{this.form.setValue(this.name,o.value)}))}disconnectedCallback(){var e;super.disconnectedCallback(),this.isConnected||(e=this.form)==null||e.unregisterField(this.name)}render(){return c`<div
|
|
5076
5076
|
part="form-field"
|
|
5077
5077
|
class="${u(lm,this.className)}"
|
|
5078
|
-
></div>`}};qr([Ct({context:ko})],oe.prototype,"form",2);qr([a({type:String})],oe.prototype,"name",2);qr([a({type:Array})],oe.prototype,"validators",2);qr([a({type:String})],oe.prototype,"defaultValue",2);qr([Ee({context:bm})],oe.prototype,"fieldName",2);oe=qr([
|
|
5078
|
+
></div>`}};qr([Ct({context:ko})],oe.prototype,"form",2);qr([a({type:String})],oe.prototype,"name",2);qr([a({type:Array})],oe.prototype,"validators",2);qr([a({type:String})],oe.prototype,"defaultValue",2);qr([Ee({context:bm})],oe.prototype,"fieldName",2);oe=qr([h("rtg-form-field")],oe);var vm=Object.defineProperty,ym=Object.getOwnPropertyDescriptor,yc=(e,t,o,s)=>{for(var r=s>1?void 0:s?ym(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&vm(t,o,r),r};let Ai=class extends m{constructor(){super(...arguments),this._generatedId=crypto.randomUUID(),this.itemContext={id:this._generatedId}}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-item]")}firstUpdated(){this.moveLightDomChildrenInto(this._container)}render(){return c`<div
|
|
5079
5079
|
part="form-item"
|
|
5080
5080
|
class="${u(cm,this.className)}"
|
|
5081
|
-
></div>`}};yc([Ee({context:fc})],Ai.prototype,"itemContext",2);Ai=yc([
|
|
5081
|
+
></div>`}};yc([Ee({context:fc})],Ai.prototype,"itemContext",2);Ai=yc([h("rtg-form-item")],Ai);var wm=Object.defineProperty,xm=Object.getOwnPropertyDescriptor,gn=(e,t,o,s)=>{for(var r=s>1?void 0:s?xm(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&wm(t,o,r),r};let rs=class extends m{constructor(){super(...arguments),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof oe);)e=e.parentElement;return e}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();const e=this._field.name;this.hasError=!!this.form.getError(e),this.unsubscribe=this.form.subscribe(()=>{const t=this.form.getError(e);this.hasError=!!t,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return c`
|
|
5082
5082
|
<label
|
|
5083
5083
|
part="form-label"
|
|
5084
5084
|
for="${this._field.name}"
|
|
5085
5085
|
class="${u(dm,this.hasError&&um,this.className)}"
|
|
5086
5086
|
></label>
|
|
5087
|
-
`}};gn([Ct({context:ko})],rs.prototype,"form",2);gn([k()],rs.prototype,"hasError",2);rs=gn([
|
|
5087
|
+
`}};gn([Ct({context:ko})],rs.prototype,"form",2);gn([k()],rs.prototype,"hasError",2);rs=gn([h("rtg-form-label")],rs);var _m=Object.defineProperty,Cm=Object.getOwnPropertyDescriptor,bn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Cm(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&_m(t,o,r),r};let os=class extends ${constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof oe);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?c`<p
|
|
5088
5088
|
id="${this._field.name}-message"
|
|
5089
|
-
class="${u(
|
|
5089
|
+
class="${u(pm,this.className)}"
|
|
5090
5090
|
>
|
|
5091
5091
|
${this.error}
|
|
5092
|
-
</p>`:null}};bn([Ct({context:ko})],os.prototype,"form",2);bn([k()],os.prototype,"error",2);os=bn([
|
|
5092
|
+
</p>`:null}};bn([Ct({context:ko})],os.prototype,"form",2);bn([k()],os.prototype,"error",2);os=bn([h("rtg-form-message")],os);var Sm=Object.defineProperty,$m=Object.getOwnPropertyDescriptor,mn=(e,t,o,s)=>{for(var r=s>1?void 0:s?$m(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Sm(t,o,r),r};let ss=class extends m{constructor(){super(...arguments),this.form=new bc,this.onSubmit=()=>{},this.handleSubmit=e=>{e.preventDefault(),this.form.validateAll()&&(alert("form submitted successfully"),this.onSubmit(this.form.getValues()))}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return c`
|
|
5093
5093
|
<form
|
|
5094
5094
|
part="form-root"
|
|
5095
5095
|
id="rtg-form"
|
|
5096
5096
|
@submit=${this.handleSubmit}
|
|
5097
5097
|
class="${u(nm,this.className)}"
|
|
5098
5098
|
></form>
|
|
5099
|
-
`}};mn([Ee({context:ko})],ss.prototype,"form",2);mn([a({type:Function})],ss.prototype,"onSubmit",2);ss=mn([
|
|
5099
|
+
`}};mn([Ee({context:ko})],ss.prototype,"form",2);mn([a({type:Function})],ss.prototype,"onSubmit",2);ss=mn([h("rtg-form")],ss);const Em="rtg-bg-skeleton-color-bg rtg-animate-skeleton-animate rtg-rounded-skeleton-radius";var km=(e,t,o,s)=>{for(var r=t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(r)||r);return r};let Ya=class extends m{createRenderRoot(){return this}render(){return c` <div class=${u(Em,this.className)}></div> `}};Ya=km([h("rtg-skeleton")],Ya);const Rm=["rtg-relative","rtg-rounded-scrollarea-radius","rtg-border rtg-border-scrollarea-color-border","rtg-bg-scrollarea-color-bg"];var Om=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,wc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Am(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Om(t,o,r),r};let Pi=class extends m{createRenderRoot(){return this}firstUpdated(){this.moveLightDomChildrenInto(this.viewportEl)}render(){return c`
|
|
5100
5100
|
<div
|
|
5101
5101
|
dir="ltr"
|
|
5102
5102
|
data-slot="scroll-area"
|
|
@@ -5133,7 +5133,7 @@ body {
|
|
|
5133
5133
|
style="overflow: hidden scroll;"
|
|
5134
5134
|
></div>
|
|
5135
5135
|
</div>
|
|
5136
|
-
`}};wc([nt("[data-radix-scroll-area-viewport]")],Pi.prototype,"viewportEl",2);Pi=wc([
|
|
5136
|
+
`}};wc([nt("[data-radix-scroll-area-viewport]")],Pi.prototype,"viewportEl",2);Pi=wc([h("rtg-scroll-area")],Pi);var Pm=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,gs=(e,t,o,s)=>{for(var r=s>1?void 0:s?Im(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Pm(t,o,r),r};let go=class extends m{constructor(){super(),this.btnClass="border: 1px solid #DC2626;",this.inputValue="",this.defaultValue="account"}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
5137
5137
|
<div class="sb-flex sb-flex-col sb-gap-4">
|
|
5138
5138
|
<rtg-tab .defaultValue=${this.defaultValue} class="rtg-w-[400px]">
|
|
5139
5139
|
<rtg-tab-list customClass="rtg-h-10 rtg-rounded-2xl" slot="tab-list">
|
|
@@ -5353,11 +5353,11 @@ body {
|
|
|
5353
5353
|
</rtg-tab-content>
|
|
5354
5354
|
</rtg-tab>
|
|
5355
5355
|
</div>
|
|
5356
|
-
`}};gs([k()],go.prototype,"btnClass",2);gs([k()],go.prototype,"inputValue",2);gs([a({type:String})],go.prototype,"defaultValue",2);go=gs([
|
|
5356
|
+
`}};gs([k()],go.prototype,"btnClass",2);gs([k()],go.prototype,"inputValue",2);gs([a({type:String})],go.prototype,"defaultValue",2);go=gs([h("light-sample-demo")],go);/**
|
|
5357
5357
|
* @license
|
|
5358
5358
|
* Copyright 2018 Google LLC
|
|
5359
5359
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5360
|
-
*/const Tm=new Set(["children","localName","ref","style","className"]),Za=new WeakMap,Lm=(e,t,o,s,r)=>{const i=r==null?void 0:r[t];i===void 0||o===s?o==null&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=o:((n,l,d)=>{let
|
|
5360
|
+
*/const Tm=new Set(["children","localName","ref","style","className"]),Za=new WeakMap,Lm=(e,t,o,s,r)=>{const i=r==null?void 0:r[t];i===void 0||o===s?o==null&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=o:((n,l,d)=>{let p=Za.get(n);p===void 0&&Za.set(n,p=new Map);let b=p.get(l);d!==void 0?b===void 0?(p.set(l,b={handleEvent:d}),n.addEventListener(l,b)):b.handleEvent=d:b!==void 0&&(p.delete(l),n.removeEventListener(l,b))})(e,i,o)},Dm=(e,t)=>{typeof e=="function"?e(t):e.current=t};function xc(e=window.React,t,o,s,r){let i,n,l;{const x=e;({tagName:n,elementClass:l,events:s,displayName:r}=x),i=x.react}const d=i.Component,p=i.createElement,b=new Set(Object.keys(s??{}));class f extends d{constructor(){super(...arguments),this.o=null}t(_){if(this.o!==null)for(const C in this.i)Lm(this.o,C,this.props[C],_?_[C]:void 0,s)}componentDidMount(){var _;this.t(),(_=this.o)===null||_===void 0||_.removeAttribute("defer-hydration")}componentDidUpdate(_){this.t(_)}render(){const{_$Gl:_,...C}=this.props;this.h!==_&&(this.u=E=>{_!==null&&Dm(_,E),this.o=E,this.h=_}),this.i={};const w={ref:this.u};for(const[E,P]of Object.entries(C))Tm.has(E)?w[E==="className"?"class":E]=P:b.has(E)||E in l.prototype?this.i[E]=P:w[E]=P;return w.suppressHydrationWarning=!0,p(n,w)}}f.displayName=r??l.name;const y=i.forwardRef((x,_)=>p(f,{...x,_$Gl:_},x==null?void 0:x.children));return y.displayName=f.displayName,y}function zm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xa={exports:{}},j={};/**
|
|
5361
5361
|
* @license React
|
|
5362
5362
|
* react.production.js
|
|
5363
5363
|
*
|
|
@@ -5365,8 +5365,8 @@ body {
|
|
|
5365
5365
|
*
|
|
5366
5366
|
* This source code is licensed under the MIT license found in the
|
|
5367
5367
|
* LICENSE file in the root directory of this source tree.
|
|
5368
|
-
*/var Ja;function jm(){if(Ja)return j;Ja=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),f=Symbol.iterator;function y(g){return g===null||typeof g!="object"?null:(g=f&&g[f]||g["@@iterator"],typeof g=="function"?g:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function w(g,v,L){this.props=g,this.context=v,this.refs=C,this.updater=L||x}w.prototype.isReactComponent={},w.prototype.setState=function(g,v){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,v,"setState")},w.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function E(){}E.prototype=w.prototype;function P(g,v,L){this.props=g,this.context=v,this.refs=C,this.updater=L||x}var q=P.prototype=new E;q.constructor=P,_(q,w.prototype),q.isPureReactComponent=!0;var M=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function Y(g,v,L,D,B,X){return L=X.ref,{$$typeof:e,type:g,key:v,ref:L!==void 0?L:null,props:X}}function $t(g,v){return Y(g.type,v,void 0,void 0,void 0,g.props)}function st(g){return typeof g=="object"&&g!==null&&g.$$typeof===e}function wt(g){var v={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(L){return v[L]})}var Ft=/\/+/g;function O(g,v){return typeof g=="object"&&g!==null&&g.key!=null?wt(""+g.key):v.toString(36)}function se(){}function It(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(se,se):(g.status="pending",g.then(function(v){g.status==="pending"&&(g.status="fulfilled",g.value=v)},function(v){g.status==="pending"&&(g.status="rejected",g.reason=v)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function Et(g,v,L,D,B){var X=typeof g;(X==="undefined"||X==="boolean")&&(g=null);var N=!1;if(g===null)N=!0;else switch(X){case"bigint":case"string":case"number":N=!0;break;case"object":switch(g.$$typeof){case e:case t:N=!0;break;case b:return N=g._init,Et(N(g._payload),v,L,D,B)}}if(N)return B=B(g),N=D===""?"."+O(g,0):D,M(B)?(L="",N!=null&&(L=N.replace(Ft,"$&/")+"/"),Et(B,v,L,"",function(Wc){return Wc})):B!=null&&(st(B)&&(B=$t(B,L+(B.key==null||g&&g.key===B.key?"":(""+B.key).replace(Ft,"$&/")+"/")+N)),v.push(B)),1;N=0;var ie=D===""?".":D+":";if(M(g))for(var J=0;J<g.length;J++)D=g[J],X=ie+O(D,J),N+=Et(D,v,L,X,B);else if(J=y(g),typeof J=="function")for(g=J.call(g),J=0;!(D=g.next()).done;)D=D.value,X=ie+O(D,J++),N+=Et(D,v,L,X,B);else if(X==="object"){if(typeof g.then=="function")return Et(It(g),v,L,D,B);throw v=String(g),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return N}function ht(g,v,L){if(g==null)return g;var D=[],B=0;return Et(g,D,"","",function(X){return v.call(L,X,B++)}),D}function Oe(g){if(g._status===-1){var v=g._result;v=v(),v.then(function(L){(g._status===0||g._status===-1)&&(g._status=1,g._result=L)},function(L){(g._status===0||g._status===-1)&&(g._status=2,g._result=L)}),g._status===-1&&(g._status=0,g._result=v)}if(g._status===1)return g._result.default;throw g._result}var Bt=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function xt(){}return j.Children={map:ht,forEach:function(g,v,L){ht(g,function(){v.apply(this,arguments)},L)},count:function(g){var v=0;return ht(g,function(){v++}),v},toArray:function(g){return ht(g,function(v){return v})||[]},only:function(g){if(!st(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},j.Component=w,j.Fragment=o,j.Profiler=r,j.PureComponent=P,j.StrictMode=s,j.Suspense=d,j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,j.__COMPILER_RUNTIME={__proto__:null,c:function(g){return A.H.useMemoCache(g)}},j.cache=function(g){return function(){return g.apply(null,arguments)}},j.cloneElement=function(g,v,L){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var D=_({},g.props),B=g.key,X=void 0;if(v!=null)for(N in v.ref!==void 0&&(X=void 0),v.key!==void 0&&(B=""+v.key),v)!Z.call(v,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&v.ref===void 0||(D[N]=v[N]);var N=arguments.length-2;if(N===1)D.children=L;else if(1<N){for(var ie=Array(N),J=0;J<N;J++)ie[J]=arguments[J+2];D.children=ie}return Y(g.type,B,void 0,void 0,X,D)},j.createContext=function(g){return g={$$typeof:n,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:i,_context:g},g},j.createElement=function(g,v,L){var D,B={},X=null;if(v!=null)for(D in v.key!==void 0&&(X=""+v.key),v)Z.call(v,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(B[D]=v[D]);var N=arguments.length-2;if(N===1)B.children=L;else if(1<N){for(var ie=Array(N),J=0;J<N;J++)ie[J]=arguments[J+2];B.children=ie}if(g&&g.defaultProps)for(D in N=g.defaultProps,N)B[D]===void 0&&(B[D]=N[D]);return Y(g,X,void 0,void 0,null,B)},j.createRef=function(){return{current:null}},j.forwardRef=function(g){return{$$typeof:l,render:g}},j.isValidElement=st,j.lazy=function(g){return{$$typeof:b,_payload:{_status:-1,_result:g},_init:Oe}},j.memo=function(g,v){return{$$typeof:h,type:g,compare:v===void 0?null:v}},j.startTransition=function(g){var v=A.T,L={};A.T=L;try{var D=g(),B=A.S;B!==null&&B(L,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(xt,Bt)}catch(X){Bt(X)}finally{A.T=v}},j.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},j.use=function(g){return A.H.use(g)},j.useActionState=function(g,v,L){return A.H.useActionState(g,v,L)},j.useCallback=function(g,v){return A.H.useCallback(g,v)},j.useContext=function(g){return A.H.useContext(g)},j.useDebugValue=function(){},j.useDeferredValue=function(g,v){return A.H.useDeferredValue(g,v)},j.useEffect=function(g,v,L){var D=A.H;if(typeof L=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return D.useEffect(g,v)},j.useId=function(){return A.H.useId()},j.useImperativeHandle=function(g,v,L){return A.H.useImperativeHandle(g,v,L)},j.useInsertionEffect=function(g,v){return A.H.useInsertionEffect(g,v)},j.useLayoutEffect=function(g,v){return A.H.useLayoutEffect(g,v)},j.useMemo=function(g,v){return A.H.useMemo(g,v)},j.useOptimistic=function(g,v){return A.H.useOptimistic(g,v)},j.useReducer=function(g,v,L){return A.H.useReducer(g,v,L)},j.useRef=function(g){return A.H.useRef(g)},j.useState=function(g){return A.H.useState(g)},j.useSyncExternalStore=function(g,v,L){return A.H.useSyncExternalStore(g,v,L)},j.useTransition=function(){return A.H.useTransition()},j.version="19.1.1",j}var Qa;function Um(){return Qa||(Qa=1,Xa.exports=jm()),Xa.exports}var Nm=Um();const _c=zm(Nm);xc({tagName:"rtg-button",elementClass:jt,react:_c});xc({tagName:"rtg-checkbox",elementClass:be,react:_c});const Cc="sb-text-destructive sb-text-sm sb-mt-1 sb-error-anim",Mm="sb-font-medium sb-text-sm sb-ml-2 sb-flex",Fm="sb-text-sm sb-text-gray-500 sb-mt-1",Bm="sb-flex-grow sb-border-t",qm="sb-mx-4",fn="",Vm="sb-relative sb-overflow-hidden sb-w-1/3 sb-h-2 sb-linear-bar",Hm="sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100%-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100%-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",Gm="sb-h-[100%] sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100vw-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100vw-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",Wm="sb-fixed sb-inset-0 sb-z-[9999] sb-flex sb-items-center sb-justify-center sb-p-4 sb-overflow-auto",Km="sb-w-fit sb-flex sb-max-h-[calc(100vh-60px)] sb-bg-background sb-shadow-2xl sb-ring-1 sb-ring-border sb-rounded-xl sb-overflow-hidden",Ym="sb-justify-self-center sb-rotate-0",Zm="sb-border-0 sb-bg-background !sb-m-0",Xm="sb-border sb-rounded-2xl sb-relative sb-py-6",Jm="!sb-text-left sb-text-foreground sb-font-normal hover:!sb-bg-muted !sb-text-sm sb-rounded-md !sb-shadow-none data-[state=active]:!sb-bg-muted",Qm="!sb-flex !sb-justify-start !sb-flex-nowrap !sb-w-full !rtg-grid-cols-2 !sb-gap-2 sb-mx-6",tf="!sb-w-[160px] sb-gap-4 ";var T=(e=>(e.USER_PROFILE_CARD_HEADER_CONTAINER="sb-user-profile-card-header-container",e.USER_PROFILE_CONTAINER="sb-user-profile",e.USER_PROFILE_SIDEBAR="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_TABS="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_BURGER_MENU="sb-user-profile-sidebar-burger-menu",e.USER_PROFILE_INPUT_LABEL="sb-user-profile-input-label",e.USER_PROFILE_INPUT_FIELD="sb-user-profile-input-field",e.USER_PROFILE_EDIT_FORM="sb-user-profile-edit-form",e.USER_PROFILE_CARD_CONTAINER="sb-user-profile-card-container",e.USER_PROFILE_EDITABLE_INPUT_FIELD="sb-user-profile-editable-input-field",e.USER_PROFILE_DEFAULT_BUTTON="sb-user-profile-default-button",e.USER_PROFILE_OUTLINE_BUTTON="sb-user-profile-outline-button",e.USER_PROFILE_OTP="sb-user-profile-otp",e.USER_PROFILE_EDIT_BUTTON="sb-user-profile-edit-button",e))(T||{});const tt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px","3xl":"1920px","4xl":"2560px"},ef=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/,rf=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,of=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;function Hs(e,t,o){const s=e.formData[t],r=[],i=d=>{if(["input","checkbox","otp"].includes(d.element_type)&&"data_key"in d&&d.data_key===t)return d;if(d.element_type==="container")for(const h of d.properties.children){const b=i(h);if(b)return b}return null},n=e.renderSpec?i(e.renderSpec.root_container):null;if(!n||!("validation"in n.properties))return;const{validation:l}=n.properties;if(!(!l||o!=="submit"&&l.on_event!==o)){if(n.hidden){delete e.errors[t];return}for(const d of l.rules){if(n.hidden)continue;let h=!0;switch(d.type){case"required":h=Sc(s,n);break;case"min_length":h=$c(s,d.length);break;case"max_length":h=Ec(s,d.length);break;case"min_value":h=kc(s,d.value);break;case"max_value":h=Rc(s,d.value);break;case"regex":h=Oc(s,d.regex);break;case"field_match":h=Ac(s,d.field_match?e.formData[d.field_match]:void 0);break;case"email":h=Pc(s);break;case"phone":h=Ic(s);break;case"date":h=Tc(s);break;default:h=!0}!h&&d.error_message&&r.push(d.error_message)}e.errors={...e.errors,[t]:r}}}function Sc(e,t){return!(e===void 0||e===""||e===!1||t&&t.element_type==="input"&&t.properties.type==="tel"&&typeof e=="string"&&e.split("-")[1]==="")}function $c(e,t){return typeof e=="string"?e.length>=(t??0):!0}function Ec(e,t){return typeof e=="string"?e.length<=(t??1/0):!0}function kc(e,t){const o=typeof t=="string"?parseFloat(t):t,s=typeof e=="string"?parseFloat(e):e;return typeof s=="number"&&typeof o=="number"&&!isNaN(s)&&!isNaN(o)?s>=o:!0}function Rc(e,t){const o=typeof t=="string"?parseFloat(t):t,s=typeof e=="string"?parseFloat(e):e;return typeof s=="number"&&typeof o=="number"&&!isNaN(s)&&!isNaN(o)?s<=o:!0}function Oc(e,t){return typeof e=="string"&&t?new RegExp(t).test(e):!0}function Ac(e,t){return t!==void 0?e===t:!0}function Pc(e){return typeof e=="string"?rf.test(e):!0}function Ic(e){return typeof e=="string"?ef.test(e):!0}function Tc(e){return typeof e=="string"?of.test(e):!0}const Lc="sb:env",bs="sb:auth",ms="customizations",vn=Symbol("renderSpecContext");var Dc=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Dc||{}),Ii=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Ii||{}),ge=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(ge||{}),Rt=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(Rt||{}),Tt=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Tt||{}),mt=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(mt||{});function zc(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=zc(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function sf(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=zc(e))&&(s&&(s+=" "),s+=t);return s}const yn="-",nf=e=>{const t=lf(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:n=>{const l=n.split(yn);return l[0]===""&&l.length!==1&&l.shift(),jc(l,t)||af(n)},getConflictingClassGroupIds:(n,l)=>{const d=o[n]||[];return l&&s[n]?[...d,...s[n]]:d}}},jc=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const o=e[0],s=t.nextPart.get(o),r=s?jc(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(yn);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},tl=/^\[(.+)\]$/,af=e=>{if(tl.test(e)){const t=tl.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},lf=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return df(Object.entries(e.classGroups),o).forEach(([i,n])=>{Ti(n,s,i,t)}),s},Ti=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:el(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(cf(r)){Ti(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Ti(n,el(t,i),o,s)})})},el=(e,t)=>{let o=e;return t.split(yn).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},cf=e=>e.isThemeGetter,df=(e,t)=>t?e.map(([o,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[o,r]}):e,uf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map;const r=(i,n)=>{o.set(i,n),t++,t>e&&(t=0,s=o,o=new Map)};return{get(i){let n=o.get(i);if(n!==void 0)return n;if((n=s.get(i))!==void 0)return r(i,n),n},set(i,n){o.has(i)?o.set(i,n):r(i,n)}}},Uc="!",hf=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let h=0,b=0,f;for(let w=0;w<l.length;w++){let E=l[w];if(h===0){if(E===r&&(s||l.slice(w,w+i)===t)){d.push(l.slice(b,w)),b=w+i;continue}if(E==="/"){f=w;continue}}E==="["?h++:E==="]"&&h--}const y=d.length===0?l:l.substring(b),x=y.startsWith(Uc),_=x?y.substring(1):y,C=f&&f>b?f-b:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},pf=e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},gf=e=>({cache:uf(e.cacheSize),parseClassName:hf(e),...nf(e)}),bf=/\s+/,mf=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(bf);let l="";for(let d=n.length-1;d>=0;d-=1){const h=n[d],{modifiers:b,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:x}=o(h);let _=!!x,C=s(_?y.substring(0,x):y);if(!C){if(!_){l=h+(l.length>0?" "+l:l);continue}if(C=s(y),!C){l=h+(l.length>0?" "+l:l);continue}_=!1}const w=pf(b).join(":"),E=f?w+Uc:w,P=E+C;if(i.includes(P))continue;i.push(P);const q=r(C,_);for(let M=0;M<q.length;++M){const A=q[M];i.push(E+A)}l=h+(l.length>0?" "+l:l)}return l};function ff(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nc(t))&&(s&&(s+=" "),s+=o);return s}const Nc=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=Nc(e[s]))&&(o&&(o+=" "),o+=t);return o};function vf(e,...t){let o,s,r,i=n;function n(d){const h=t.reduce((b,f)=>f(b),e());return o=gf(h),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const h=s(d);if(h)return h;const b=mf(d,o);return r(d,b),b}return function(){return i(ff.apply(null,arguments))}}const K=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},Mc=/^\[(?:([a-z-]+):)?(.+)\]$/i,yf=/^\d+\/\d+$/,wf=new Set(["px","full","screen"]),xf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$f=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qt=e=>mr(e)||wf.has(e)||yf.test(e),le=e=>Vr(e,"length",Tf),mr=e=>!!e&&!Number.isNaN(Number(e)),Gs=e=>Vr(e,"number",mr),Zr=e=>!!e&&Number.isInteger(Number(e)),Ef=e=>e.endsWith("%")&&mr(e.slice(0,-1)),U=e=>Mc.test(e),ce=e=>xf.test(e),kf=new Set(["length","size","percentage"]),Rf=e=>Vr(e,kf,Fc),Of=e=>Vr(e,"position",Fc),Af=new Set(["image","url"]),Pf=e=>Vr(e,Af,Df),If=e=>Vr(e,"",Lf),Xr=()=>!0,Vr=(e,t,o)=>{const s=Mc.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},Tf=e=>_f.test(e)&&!Cf.test(e),Fc=()=>!1,Lf=e=>Sf.test(e),Df=e=>$f.test(e),zf=()=>{const e=K("colors"),t=K("spacing"),o=K("blur"),s=K("brightness"),r=K("borderColor"),i=K("borderRadius"),n=K("borderSpacing"),l=K("borderWidth"),d=K("contrast"),h=K("grayscale"),b=K("hueRotate"),f=K("invert"),y=K("gap"),x=K("gradientColorStops"),_=K("gradientColorStopPositions"),C=K("inset"),w=K("margin"),E=K("opacity"),P=K("padding"),q=K("saturate"),M=K("scale"),A=K("sepia"),Z=K("skew"),Y=K("space"),$t=K("translate"),st=()=>["auto","contain","none"],wt=()=>["auto","hidden","clip","visible","scroll"],Ft=()=>["auto",U,t],O=()=>[U,t],se=()=>["",Qt,le],It=()=>["auto",mr,U],Et=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ht=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bt=()=>["start","end","center","between","around","evenly","stretch"],xt=()=>["","0",U],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[mr,U];return{cacheSize:500,separator:":",theme:{colors:[Xr],spacing:[Qt,le],blur:["none","",ce,U],brightness:v(),borderColor:[e],borderRadius:["none","","full",ce,U],borderSpacing:O(),borderWidth:se(),contrast:v(),grayscale:xt(),hueRotate:v(),invert:xt(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Ef,le],inset:Ft(),margin:Ft(),opacity:v(),padding:O(),saturate:v(),scale:v(),sepia:xt(),skew:v(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",U]}],container:["container"],columns:[{columns:[ce]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Et(),U]}],overflow:[{overflow:wt()}],"overflow-x":[{"overflow-x":wt()}],"overflow-y":[{"overflow-y":wt()}],overscroll:[{overscroll:st()}],"overscroll-x":[{"overscroll-x":st()}],"overscroll-y":[{"overscroll-y":st()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zr,U]}],basis:[{basis:Ft()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",U]}],grow:[{grow:xt()}],shrink:[{shrink:xt()}],order:[{order:["first","last","none",Zr,U]}],"grid-cols":[{"grid-cols":[Xr]}],"col-start-end":[{col:["auto",{span:["full",Zr,U]},U]}],"col-start":[{"col-start":It()}],"col-end":[{"col-end":It()}],"grid-rows":[{"grid-rows":[Xr]}],"row-start-end":[{row:["auto",{span:[Zr,U]},U]}],"row-start":[{"row-start":It()}],"row-end":[{"row-end":It()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",U]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",U]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Bt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",U,t]}],"min-w":[{"min-w":[U,t,"min","max","fit"]}],"max-w":[{"max-w":[U,t,"none","full","min","max","fit","prose",{screen:[ce]},ce]}],h:[{h:[U,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[U,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ce,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gs]}],"font-family":[{font:[Xr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",U]}],"line-clamp":[{"line-clamp":["none",mr,Gs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qt,U]}],"list-image":[{"list-image":["none",U]}],"list-style-type":[{list:["none","disc","decimal",U]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ht(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qt,le]}],"underline-offset":[{"underline-offset":["auto",Qt,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Et(),Of]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...ht(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:ht()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ht()]}],"outline-offset":[{"outline-offset":[Qt,U]}],"outline-w":[{outline:[Qt,le]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Qt,le]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ce,If]}],"shadow-color":[{shadow:[Xr]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ce,U]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",U]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",U]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",U]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Zr,U]}],"translate-x":[{"translate-x":[$t]}],"translate-y":[{"translate-y":[$t]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",U]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qt,le,Gs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jf=vf(zf);function G(...e){return jf(sf(e))}function S(e){return Object.entries(e).filter(([t,o])=>typeof o!="object"&&o!=null).map(([t,o])=>`${t}: ${o};`).join(" ")}function Uf(e){document.documentElement.setAttribute("data-theme",e)}function Nf(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&Uf("light")}function rl(){return document.documentElement.getAttribute("data-theme")}function fs(e,t){return e.includes("{{theme}}")?e.replace("{{theme}}",t):e}function dt(e){const t={},o={};for(const s in e){const r=e[s];r!=null&&(s in tt&&typeof r=="object"?o[s]=r:t[s]=r)}return{base:t,responsive:o}}function Mf(e){return{...tt,...e??{}}}function ut(e,t,o){const s=Mf(o);let r="";for(const n in t){const d=`(min-width: ${s[n]})`,h=Object.entries(t[n]).map(([b,f])=>`${b}: ${f} !important;`).join(" ");r+=`@media ${d} { #${e} { ${h} } }
|
|
5369
|
-
`}let i=document.getElementById(`responsive-style-${e}`);i||(i=document.createElement("style"),i.id=`responsive-style-${e}`,document.head.appendChild(i)),i.textContent=r}function Li(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}async function Ff(e,t){if(!t.length)return;await Li();const o=e.offsetWidth,s=t.length,r=60,i=8;let n=1,l=0,d=-1;for(let
|
|
5368
|
+
*/var Ja;function jm(){if(Ja)return j;Ja=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),f=Symbol.iterator;function y(g){return g===null||typeof g!="object"?null:(g=f&&g[f]||g["@@iterator"],typeof g=="function"?g:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function w(g,v,L){this.props=g,this.context=v,this.refs=C,this.updater=L||x}w.prototype.isReactComponent={},w.prototype.setState=function(g,v){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,v,"setState")},w.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function E(){}E.prototype=w.prototype;function P(g,v,L){this.props=g,this.context=v,this.refs=C,this.updater=L||x}var q=P.prototype=new E;q.constructor=P,_(q,w.prototype),q.isPureReactComponent=!0;var M=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function Y(g,v,L,D,B,X){return L=X.ref,{$$typeof:e,type:g,key:v,ref:L!==void 0?L:null,props:X}}function $t(g,v){return Y(g.type,v,void 0,void 0,void 0,g.props)}function st(g){return typeof g=="object"&&g!==null&&g.$$typeof===e}function wt(g){var v={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(L){return v[L]})}var Ft=/\/+/g;function O(g,v){return typeof g=="object"&&g!==null&&g.key!=null?wt(""+g.key):v.toString(36)}function se(){}function It(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(se,se):(g.status="pending",g.then(function(v){g.status==="pending"&&(g.status="fulfilled",g.value=v)},function(v){g.status==="pending"&&(g.status="rejected",g.reason=v)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function Et(g,v,L,D,B){var X=typeof g;(X==="undefined"||X==="boolean")&&(g=null);var N=!1;if(g===null)N=!0;else switch(X){case"bigint":case"string":case"number":N=!0;break;case"object":switch(g.$$typeof){case e:case t:N=!0;break;case b:return N=g._init,Et(N(g._payload),v,L,D,B)}}if(N)return B=B(g),N=D===""?"."+O(g,0):D,M(B)?(L="",N!=null&&(L=N.replace(Ft,"$&/")+"/"),Et(B,v,L,"",function(Wc){return Wc})):B!=null&&(st(B)&&(B=$t(B,L+(B.key==null||g&&g.key===B.key?"":(""+B.key).replace(Ft,"$&/")+"/")+N)),v.push(B)),1;N=0;var ie=D===""?".":D+":";if(M(g))for(var J=0;J<g.length;J++)D=g[J],X=ie+O(D,J),N+=Et(D,v,L,X,B);else if(J=y(g),typeof J=="function")for(g=J.call(g),J=0;!(D=g.next()).done;)D=D.value,X=ie+O(D,J++),N+=Et(D,v,L,X,B);else if(X==="object"){if(typeof g.then=="function")return Et(It(g),v,L,D,B);throw v=String(g),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return N}function pt(g,v,L){if(g==null)return g;var D=[],B=0;return Et(g,D,"","",function(X){return v.call(L,X,B++)}),D}function Oe(g){if(g._status===-1){var v=g._result;v=v(),v.then(function(L){(g._status===0||g._status===-1)&&(g._status=1,g._result=L)},function(L){(g._status===0||g._status===-1)&&(g._status=2,g._result=L)}),g._status===-1&&(g._status=0,g._result=v)}if(g._status===1)return g._result.default;throw g._result}var Bt=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function xt(){}return j.Children={map:pt,forEach:function(g,v,L){pt(g,function(){v.apply(this,arguments)},L)},count:function(g){var v=0;return pt(g,function(){v++}),v},toArray:function(g){return pt(g,function(v){return v})||[]},only:function(g){if(!st(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},j.Component=w,j.Fragment=o,j.Profiler=r,j.PureComponent=P,j.StrictMode=s,j.Suspense=d,j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,j.__COMPILER_RUNTIME={__proto__:null,c:function(g){return A.H.useMemoCache(g)}},j.cache=function(g){return function(){return g.apply(null,arguments)}},j.cloneElement=function(g,v,L){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var D=_({},g.props),B=g.key,X=void 0;if(v!=null)for(N in v.ref!==void 0&&(X=void 0),v.key!==void 0&&(B=""+v.key),v)!Z.call(v,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&v.ref===void 0||(D[N]=v[N]);var N=arguments.length-2;if(N===1)D.children=L;else if(1<N){for(var ie=Array(N),J=0;J<N;J++)ie[J]=arguments[J+2];D.children=ie}return Y(g.type,B,void 0,void 0,X,D)},j.createContext=function(g){return g={$$typeof:n,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:i,_context:g},g},j.createElement=function(g,v,L){var D,B={},X=null;if(v!=null)for(D in v.key!==void 0&&(X=""+v.key),v)Z.call(v,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(B[D]=v[D]);var N=arguments.length-2;if(N===1)B.children=L;else if(1<N){for(var ie=Array(N),J=0;J<N;J++)ie[J]=arguments[J+2];B.children=ie}if(g&&g.defaultProps)for(D in N=g.defaultProps,N)B[D]===void 0&&(B[D]=N[D]);return Y(g,X,void 0,void 0,null,B)},j.createRef=function(){return{current:null}},j.forwardRef=function(g){return{$$typeof:l,render:g}},j.isValidElement=st,j.lazy=function(g){return{$$typeof:b,_payload:{_status:-1,_result:g},_init:Oe}},j.memo=function(g,v){return{$$typeof:p,type:g,compare:v===void 0?null:v}},j.startTransition=function(g){var v=A.T,L={};A.T=L;try{var D=g(),B=A.S;B!==null&&B(L,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(xt,Bt)}catch(X){Bt(X)}finally{A.T=v}},j.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},j.use=function(g){return A.H.use(g)},j.useActionState=function(g,v,L){return A.H.useActionState(g,v,L)},j.useCallback=function(g,v){return A.H.useCallback(g,v)},j.useContext=function(g){return A.H.useContext(g)},j.useDebugValue=function(){},j.useDeferredValue=function(g,v){return A.H.useDeferredValue(g,v)},j.useEffect=function(g,v,L){var D=A.H;if(typeof L=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return D.useEffect(g,v)},j.useId=function(){return A.H.useId()},j.useImperativeHandle=function(g,v,L){return A.H.useImperativeHandle(g,v,L)},j.useInsertionEffect=function(g,v){return A.H.useInsertionEffect(g,v)},j.useLayoutEffect=function(g,v){return A.H.useLayoutEffect(g,v)},j.useMemo=function(g,v){return A.H.useMemo(g,v)},j.useOptimistic=function(g,v){return A.H.useOptimistic(g,v)},j.useReducer=function(g,v,L){return A.H.useReducer(g,v,L)},j.useRef=function(g){return A.H.useRef(g)},j.useState=function(g){return A.H.useState(g)},j.useSyncExternalStore=function(g,v,L){return A.H.useSyncExternalStore(g,v,L)},j.useTransition=function(){return A.H.useTransition()},j.version="19.1.1",j}var Qa;function Um(){return Qa||(Qa=1,Xa.exports=jm()),Xa.exports}var Nm=Um();const _c=zm(Nm);xc({tagName:"rtg-button",elementClass:jt,react:_c});xc({tagName:"rtg-checkbox",elementClass:be,react:_c});const Cc="sb-text-destructive sb-text-sm sb-mt-1 sb-error-anim",Mm="sb-font-medium sb-text-sm sb-ml-2 sb-flex",Fm="sb-text-sm sb-text-gray-500 sb-mt-1",Bm="sb-flex-grow sb-border-t",qm="sb-mx-4",fn="",Vm="sb-relative sb-overflow-hidden sb-w-1/3 sb-h-2 sb-linear-bar",Hm="sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100%-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100%-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",Gm="sb-h-[100%] sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100vw-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100vw-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",Wm="sb-fixed sb-inset-0 sb-z-[9999] sb-flex sb-items-center sb-justify-center sb-p-4 sb-overflow-auto",Km="sb-w-fit sb-flex sb-max-h-[calc(100vh-60px)] sb-bg-background sb-shadow-2xl sb-ring-1 sb-ring-border sb-rounded-xl sb-overflow-hidden",Ym="sb-justify-self-center sb-rotate-0",Zm="sb-border-0 sb-bg-background !sb-m-0",Xm="sb-border sb-rounded-2xl sb-relative sb-py-6",Jm="!sb-text-left sb-text-foreground sb-font-normal hover:!sb-bg-muted !sb-text-sm sb-rounded-md !sb-shadow-none data-[state=active]:!sb-bg-muted",Qm="!sb-flex !sb-justify-start !sb-flex-nowrap !sb-w-full !rtg-grid-cols-2 !sb-gap-2 sb-mx-6",tf="!sb-w-[160px] sb-gap-4 ";var T=(e=>(e.USER_PROFILE_CARD_HEADER_CONTAINER="sb-user-profile-card-header-container",e.USER_PROFILE_CONTAINER="sb-user-profile",e.USER_PROFILE_SIDEBAR="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_TABS="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_BURGER_MENU="sb-user-profile-sidebar-burger-menu",e.USER_PROFILE_INPUT_LABEL="sb-user-profile-input-label",e.USER_PROFILE_INPUT_FIELD="sb-user-profile-input-field",e.USER_PROFILE_EDIT_FORM="sb-user-profile-edit-form",e.USER_PROFILE_CARD_CONTAINER="sb-user-profile-card-container",e.USER_PROFILE_EDITABLE_INPUT_FIELD="sb-user-profile-editable-input-field",e.USER_PROFILE_DEFAULT_BUTTON="sb-user-profile-default-button",e.USER_PROFILE_OUTLINE_BUTTON="sb-user-profile-outline-button",e.USER_PROFILE_OTP="sb-user-profile-otp",e.USER_PROFILE_EDIT_BUTTON="sb-user-profile-edit-button",e))(T||{});const tt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px","3xl":"1920px","4xl":"2560px"},ef=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/,rf=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,of=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;function Hs(e,t,o){const s=e.formData[t],r=[],i=d=>{if(["input","checkbox","otp"].includes(d.element_type)&&"data_key"in d&&d.data_key===t)return d;if(d.element_type==="container")for(const p of d.properties.children){const b=i(p);if(b)return b}return null},n=e.renderSpec?i(e.renderSpec.root_container):null;if(!n||!("validation"in n.properties))return;const{validation:l}=n.properties;if(!(!l||o!=="submit"&&l.on_event!==o)){if(n.hidden){delete e.errors[t];return}for(const d of l.rules){if(n.hidden)continue;let p=!0;switch(d.type){case"required":p=Sc(s,n);break;case"min_length":p=$c(s,d.length);break;case"max_length":p=Ec(s,d.length);break;case"min_value":p=kc(s,d.value);break;case"max_value":p=Rc(s,d.value);break;case"regex":p=Oc(s,d.regex);break;case"field_match":p=Ac(s,d.field_match?e.formData[d.field_match]:void 0);break;case"email":p=Pc(s);break;case"phone":p=Ic(s);break;case"date":p=Tc(s);break;default:p=!0}!p&&d.error_message&&r.push(d.error_message)}e.errors={...e.errors,[t]:r}}}function Sc(e,t){return!(e===void 0||e===""||e===!1||t&&t.element_type==="input"&&t.properties.type==="tel"&&typeof e=="string"&&e.split("-")[1]==="")}function $c(e,t){return typeof e=="string"?e.length>=(t??0):!0}function Ec(e,t){return typeof e=="string"?e.length<=(t??1/0):!0}function kc(e,t){const o=typeof t=="string"?parseFloat(t):t,s=typeof e=="string"?parseFloat(e):e;return typeof s=="number"&&typeof o=="number"&&!isNaN(s)&&!isNaN(o)?s>=o:!0}function Rc(e,t){const o=typeof t=="string"?parseFloat(t):t,s=typeof e=="string"?parseFloat(e):e;return typeof s=="number"&&typeof o=="number"&&!isNaN(s)&&!isNaN(o)?s<=o:!0}function Oc(e,t){return typeof e=="string"&&t?new RegExp(t).test(e):!0}function Ac(e,t){return t!==void 0?e===t:!0}function Pc(e){return typeof e=="string"?rf.test(e):!0}function Ic(e){return typeof e=="string"?ef.test(e):!0}function Tc(e){return typeof e=="string"?of.test(e):!0}const Lc="sb:env",bs="sb:auth",ms="customizations",vn=Symbol("renderSpecContext");var Dc=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Dc||{}),Ii=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Ii||{}),ge=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(ge||{}),Rt=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(Rt||{}),Tt=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Tt||{}),mt=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(mt||{});function zc(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=zc(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function sf(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=zc(e))&&(s&&(s+=" "),s+=t);return s}const yn="-",nf=e=>{const t=lf(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:n=>{const l=n.split(yn);return l[0]===""&&l.length!==1&&l.shift(),jc(l,t)||af(n)},getConflictingClassGroupIds:(n,l)=>{const d=o[n]||[];return l&&s[n]?[...d,...s[n]]:d}}},jc=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const o=e[0],s=t.nextPart.get(o),r=s?jc(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(yn);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},tl=/^\[(.+)\]$/,af=e=>{if(tl.test(e)){const t=tl.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},lf=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return df(Object.entries(e.classGroups),o).forEach(([i,n])=>{Ti(n,s,i,t)}),s},Ti=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:el(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(cf(r)){Ti(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Ti(n,el(t,i),o,s)})})},el=(e,t)=>{let o=e;return t.split(yn).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},cf=e=>e.isThemeGetter,df=(e,t)=>t?e.map(([o,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[o,r]}):e,uf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map;const r=(i,n)=>{o.set(i,n),t++,t>e&&(t=0,s=o,o=new Map)};return{get(i){let n=o.get(i);if(n!==void 0)return n;if((n=s.get(i))!==void 0)return r(i,n),n},set(i,n){o.has(i)?o.set(i,n):r(i,n)}}},Uc="!",pf=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let p=0,b=0,f;for(let w=0;w<l.length;w++){let E=l[w];if(p===0){if(E===r&&(s||l.slice(w,w+i)===t)){d.push(l.slice(b,w)),b=w+i;continue}if(E==="/"){f=w;continue}}E==="["?p++:E==="]"&&p--}const y=d.length===0?l:l.substring(b),x=y.startsWith(Uc),_=x?y.substring(1):y,C=f&&f>b?f-b:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},hf=e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},gf=e=>({cache:uf(e.cacheSize),parseClassName:pf(e),...nf(e)}),bf=/\s+/,mf=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(bf);let l="";for(let d=n.length-1;d>=0;d-=1){const p=n[d],{modifiers:b,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:x}=o(p);let _=!!x,C=s(_?y.substring(0,x):y);if(!C){if(!_){l=p+(l.length>0?" "+l:l);continue}if(C=s(y),!C){l=p+(l.length>0?" "+l:l);continue}_=!1}const w=hf(b).join(":"),E=f?w+Uc:w,P=E+C;if(i.includes(P))continue;i.push(P);const q=r(C,_);for(let M=0;M<q.length;++M){const A=q[M];i.push(E+A)}l=p+(l.length>0?" "+l:l)}return l};function ff(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Nc(t))&&(s&&(s+=" "),s+=o);return s}const Nc=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=Nc(e[s]))&&(o&&(o+=" "),o+=t);return o};function vf(e,...t){let o,s,r,i=n;function n(d){const p=t.reduce((b,f)=>f(b),e());return o=gf(p),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const p=s(d);if(p)return p;const b=mf(d,o);return r(d,b),b}return function(){return i(ff.apply(null,arguments))}}const K=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},Mc=/^\[(?:([a-z-]+):)?(.+)\]$/i,yf=/^\d+\/\d+$/,wf=new Set(["px","full","screen"]),xf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$f=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qt=e=>mr(e)||wf.has(e)||yf.test(e),le=e=>Vr(e,"length",Tf),mr=e=>!!e&&!Number.isNaN(Number(e)),Gs=e=>Vr(e,"number",mr),Zr=e=>!!e&&Number.isInteger(Number(e)),Ef=e=>e.endsWith("%")&&mr(e.slice(0,-1)),U=e=>Mc.test(e),ce=e=>xf.test(e),kf=new Set(["length","size","percentage"]),Rf=e=>Vr(e,kf,Fc),Of=e=>Vr(e,"position",Fc),Af=new Set(["image","url"]),Pf=e=>Vr(e,Af,Df),If=e=>Vr(e,"",Lf),Xr=()=>!0,Vr=(e,t,o)=>{const s=Mc.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},Tf=e=>_f.test(e)&&!Cf.test(e),Fc=()=>!1,Lf=e=>Sf.test(e),Df=e=>$f.test(e),zf=()=>{const e=K("colors"),t=K("spacing"),o=K("blur"),s=K("brightness"),r=K("borderColor"),i=K("borderRadius"),n=K("borderSpacing"),l=K("borderWidth"),d=K("contrast"),p=K("grayscale"),b=K("hueRotate"),f=K("invert"),y=K("gap"),x=K("gradientColorStops"),_=K("gradientColorStopPositions"),C=K("inset"),w=K("margin"),E=K("opacity"),P=K("padding"),q=K("saturate"),M=K("scale"),A=K("sepia"),Z=K("skew"),Y=K("space"),$t=K("translate"),st=()=>["auto","contain","none"],wt=()=>["auto","hidden","clip","visible","scroll"],Ft=()=>["auto",U,t],O=()=>[U,t],se=()=>["",Qt,le],It=()=>["auto",mr,U],Et=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pt=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bt=()=>["start","end","center","between","around","evenly","stretch"],xt=()=>["","0",U],g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[mr,U];return{cacheSize:500,separator:":",theme:{colors:[Xr],spacing:[Qt,le],blur:["none","",ce,U],brightness:v(),borderColor:[e],borderRadius:["none","","full",ce,U],borderSpacing:O(),borderWidth:se(),contrast:v(),grayscale:xt(),hueRotate:v(),invert:xt(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Ef,le],inset:Ft(),margin:Ft(),opacity:v(),padding:O(),saturate:v(),scale:v(),sepia:xt(),skew:v(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",U]}],container:["container"],columns:[{columns:[ce]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Et(),U]}],overflow:[{overflow:wt()}],"overflow-x":[{"overflow-x":wt()}],"overflow-y":[{"overflow-y":wt()}],overscroll:[{overscroll:st()}],"overscroll-x":[{"overscroll-x":st()}],"overscroll-y":[{"overscroll-y":st()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zr,U]}],basis:[{basis:Ft()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",U]}],grow:[{grow:xt()}],shrink:[{shrink:xt()}],order:[{order:["first","last","none",Zr,U]}],"grid-cols":[{"grid-cols":[Xr]}],"col-start-end":[{col:["auto",{span:["full",Zr,U]},U]}],"col-start":[{"col-start":It()}],"col-end":[{"col-end":It()}],"grid-rows":[{"grid-rows":[Xr]}],"row-start-end":[{row:["auto",{span:[Zr,U]},U]}],"row-start":[{"row-start":It()}],"row-end":[{"row-end":It()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",U]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",U]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Bt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",U,t]}],"min-w":[{"min-w":[U,t,"min","max","fit"]}],"max-w":[{"max-w":[U,t,"none","full","min","max","fit","prose",{screen:[ce]},ce]}],h:[{h:[U,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[U,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ce,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gs]}],"font-family":[{font:[Xr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",U]}],"line-clamp":[{"line-clamp":["none",mr,Gs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qt,U]}],"list-image":[{"list-image":["none",U]}],"list-style-type":[{list:["none","disc","decimal",U]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qt,le]}],"underline-offset":[{"underline-offset":["auto",Qt,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Et(),Of]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...pt(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:pt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...pt()]}],"outline-offset":[{"outline-offset":[Qt,U]}],"outline-w":[{outline:[Qt,le]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Qt,le]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ce,If]}],"shadow-color":[{shadow:[Xr]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ce,U]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",U]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",U]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",U]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Zr,U]}],"translate-x":[{"translate-x":[$t]}],"translate-y":[{"translate-y":[$t]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",U]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qt,le,Gs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jf=vf(zf);function G(...e){return jf(sf(e))}function S(e){return Object.entries(e).filter(([t,o])=>typeof o!="object"&&o!=null).map(([t,o])=>`${t}: ${o};`).join(" ")}function Uf(e){document.documentElement.setAttribute("data-theme",e)}function Nf(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&Uf("light")}function rl(){return document.documentElement.getAttribute("data-theme")}function fs(e,t){return e.includes("{{theme}}")?e.replace("{{theme}}",t):e}function dt(e){const t={},o={};for(const s in e){const r=e[s];r!=null&&(s in tt&&typeof r=="object"?o[s]=r:t[s]=r)}return{base:t,responsive:o}}function Mf(e){return{...tt,...e??{}}}function ut(e,t,o){const s=Mf(o);let r="";for(const n in t){const d=`(min-width: ${s[n]})`,p=Object.entries(t[n]).map(([b,f])=>`${b}: ${f} !important;`).join(" ");r+=`@media ${d} { #${e} { ${p} } }
|
|
5369
|
+
`}let i=document.getElementById(`responsive-style-${e}`);i||(i=document.createElement("style"),i.id=`responsive-style-${e}`,document.head.appendChild(i)),i.textContent=r}function Li(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}async function Ff(e,t){if(!t.length)return;await Li();const o=e.offsetWidth,s=t.length,r=60,i=8;let n=1,l=0,d=-1;for(let p=1;p<=s;p++){const b=i*(p-1),f=(o-b)/p,y=s%p;if(f<r)continue;let x=0;if(y===0&&p>n)x=d+1;else if(y>=2)x=2;else continue;(x>d||x===d&&f>l)&&(n=p,l=f,d=x)}e.style.setProperty("--sso-cols",String(n)),e.style.setProperty("--sso-gap",`${i}px`),e.style.setProperty("--sso-item-width","calc(100% / var(--sso-cols) - var(--sso-gap) / var(--sso-cols) * (var(--sso-cols) - 1))")}function vs(e,t){const o={...e};for(const s in t){const r=t[s],i=o[s];r&&typeof r=="object"&&!Array.isArray(r)?o[s]=vs(i??{},r):o[s]=r}return o}function Ot(e,t){var o,s,r,i,n,l,d,p,b,f,y,x;return{default:(s=(o=t.byType)==null?void 0:o.buttons)==null?void 0:s.defaultButton,secondary:(i=(r=t.byType)==null?void 0:r.buttons)==null?void 0:i.secondaryButton,link:(l=(n=t.byType)==null?void 0:n.buttons)==null?void 0:l.linkButton,destructive:(p=(d=t.byType)==null?void 0:d.buttons)==null?void 0:p.destructiveButton,ghost:(f=(b=t.byType)==null?void 0:b.buttons)==null?void 0:f.ghostButton,outline:(x=(y=t.byType)==null?void 0:y.buttons)==null?void 0:x.outlineButton}[e]}function R(e,t,o,s,r,i=!1){var p,b;let n=e||"",l={...t};i&&((p=r==null?void 0:r.config)!=null&&p.font)&&(n=G(n,r.config.font));const d=f=>{if(!f)return;const{class:y,style:x,font:_,rule:C="merge"}=f;C==="override"?(n=_||y||"",l=x||{}):(n=G(n,y,_),l={...l,...x})};return d(o),s&&((b=r==null?void 0:r.byId)!=null&&b[s])&&d(r.byId[s]),{class:n,style:l}}function wn(e){if(!(e!=null&&e.startsWith("data:image/svg+xml;base64,")))return null;try{const t=e.replace("data:image/svg+xml;base64,","");return atob(t)}catch(t){return console.error("Invalid base64 SVG:",t),null}}function Bc(e){return/^https?:\/\//.test(e)||e!=null&&e.startsWith("data:image/svg+xml;base64,")?e:`data:image/svg+xml;base64,${e}`}function Bf(e){try{const t=e.replace(/^data:text\/html;base64,/,"");return decodeURIComponent(escape(atob(t)))}catch(t){return console.error("Failed to decode base64 html:",t),""}}function bo(){return yt`<svg
|
|
5370
5370
|
width="16"
|
|
5371
5371
|
height="16"
|
|
5372
5372
|
viewBox="0 0 16 16"
|
|
@@ -5460,7 +5460,7 @@ body {
|
|
|
5460
5460
|
>`;case"simple":return c`${s(o.slice(0,3))}${r()}${s(o.slice(3))}`;case"with_separator":return c`
|
|
5461
5461
|
${s(o.slice(0,2))}${r()}
|
|
5462
5462
|
${s(o.slice(2,4))}${r()} ${s(o.slice(4))}
|
|
5463
|
-
`;default:return s(o)}};exports.SbAccountInfo=class extends ${constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.content=null,this.otpVariant="simple",this.otpLength=6,this.layout=mt.ROW,this.isEditingEmail=!1,this.isVerifyingEmail=!1,this.isEditingPhone=!1,this.isVerifyingPhone=!1}getButtonStyles(){const t=Ot("default",this.customizations),o=Ot("outline",this.customizations),s=R(Es,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),r=R(ks,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:r}}getInputStyles(t=!1){var s,r,i;const o=t?$s:G(_s);return R(o,{},(i=(r=(s=this.customizations)==null?void 0:s.byType)==null?void 0:r.inputs)==null?void 0:i.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,o,s;return R(G(xs,"sb-hidden md:sb-inline"),{},(s=(o=(t=this.customizations)==null?void 0:t.byType)==null?void 0:o.labels)==null?void 0:s.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var o,s,r,i,n,l,d,
|
|
5463
|
+
`;default:return s(o)}};exports.SbAccountInfo=class extends ${constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.content=null,this.otpVariant="simple",this.otpLength=6,this.layout=mt.ROW,this.isEditingEmail=!1,this.isVerifyingEmail=!1,this.isEditingPhone=!1,this.isVerifyingPhone=!1}getButtonStyles(){const t=Ot("default",this.customizations),o=Ot("outline",this.customizations),s=R(Es,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),r=R(ks,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:r}}getInputStyles(t=!1){var s,r,i;const o=t?$s:G(_s);return R(o,{},(i=(r=(s=this.customizations)==null?void 0:s.byType)==null?void 0:r.inputs)==null?void 0:i.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,o,s;return R(G(xs,"sb-hidden md:sb-inline"),{},(s=(o=(t=this.customizations)==null?void 0:t.byType)==null?void 0:o.labels)==null?void 0:s.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var o,s,r,i,n,l,d,p;return R(t?Cs:Ss,{},t?(i=(r=(s=(o=this.customizations)==null?void 0:o.byType)==null?void 0:s.userProfile)==null?void 0:r.userProfileCard)==null?void 0:i.editForm:(p=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:p.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderDisplayRow(t,o,s){const{class:r,style:i}=this.getLabelStyles(),{class:n,style:l}=this.getInputStyles(),d=this.layout===mt.COLUMN;return c`
|
|
5464
5464
|
<div
|
|
5465
5465
|
class=${G("sb-w-full",d?"sb-flex sb-flex-row-reverse md:sb-flex-col sb-gap-2":"sb-flex sb-items-center sb-justify-between sb-gap-2")}
|
|
5466
5466
|
>
|
|
@@ -5498,7 +5498,7 @@ body {
|
|
|
5498
5498
|
</rtg-button>
|
|
5499
5499
|
`}
|
|
5500
5500
|
</div>
|
|
5501
|
-
`}renderEditForm(t,o,s,r){const{class:i,style:n}=this.getContainerStyles(!0),{class:l,style:d}=this.getInputStyles(!0),{defaultMapped:
|
|
5501
|
+
`}renderEditForm(t,o,s,r){const{class:i,style:n}=this.getContainerStyles(!0),{class:l,style:d}=this.getInputStyles(!0),{defaultMapped:p,outlineMapped:b}=this.getButtonStyles(),f=t==="email"?"Edit email address":"Edit phone number",y=t==="email"?"Type your new email address to replace the old one.":"Type your new phone number to replace the old one.";return c`
|
|
5502
5502
|
<rtg-card
|
|
5503
5503
|
customClass=${G("!sb-pt-4",i)}
|
|
5504
5504
|
customStyle=${S(n)}
|
|
@@ -5526,8 +5526,8 @@ body {
|
|
|
5526
5526
|
customClass="sb-flex sb-flex-col md:sb-flex-row-reverse sb-gap-2 sb-m-4"
|
|
5527
5527
|
>
|
|
5528
5528
|
<rtg-button
|
|
5529
|
-
class=${
|
|
5530
|
-
style=${S(
|
|
5529
|
+
class=${p.class}
|
|
5530
|
+
style=${S(p.style)}
|
|
5531
5531
|
@click=${s}
|
|
5532
5532
|
>Send Code</rtg-button
|
|
5533
5533
|
>
|
|
@@ -5540,14 +5540,14 @@ body {
|
|
|
5540
5540
|
>
|
|
5541
5541
|
</rtg-card-footer>
|
|
5542
5542
|
</rtg-card>
|
|
5543
|
-
`}renderVerificationForm(t,o){const{class:s,style:r}=this.getContainerStyles(!0),{defaultMapped:i,outlineMapped:n}=this.getButtonStyles(),{class:l,style:d}=this.getInputStyles(),
|
|
5543
|
+
`}renderVerificationForm(t,o){const{class:s,style:r}=this.getContainerStyles(!0),{defaultMapped:i,outlineMapped:n}=this.getButtonStyles(),{class:l,style:d}=this.getInputStyles(),p=t==="email"?"Email verification required":"Phone number verification required",b=t==="email"?"Please enter the code to verify this email.":"Please enter the code to verify this phone number.";return c`
|
|
5544
5544
|
<rtg-card
|
|
5545
5545
|
customClass=${G("!sb-pt-4",s)}
|
|
5546
5546
|
customStyle=${S(r)}
|
|
5547
5547
|
>
|
|
5548
5548
|
<rtg-card-title class="sb-flex sb-items-center sb-justify-between">
|
|
5549
5549
|
<span class="sb-text-[18px] sb-font-medium sb-mx-4 sb-mt-4 sb-mb-2"
|
|
5550
|
-
>${
|
|
5550
|
+
>${p}</span
|
|
5551
5551
|
>
|
|
5552
5552
|
</rtg-card-title>
|
|
5553
5553
|
<rtg-card-description>
|
|
@@ -5587,7 +5587,7 @@ body {
|
|
|
5587
5587
|
>
|
|
5588
5588
|
</rtg-card-footer>
|
|
5589
5589
|
</rtg-card>
|
|
5590
|
-
`}renderEmailSection(){return this.isVerifyingEmail?this.renderVerificationForm("email",()=>(this.isVerifyingEmail=!1,this.isEditingEmail=!0)):this.isEditingEmail?this.renderEditForm("email","Email",()=>(this.isVerifyingEmail=!0,this.isEditingEmail=!1),()=>this.isEditingEmail=!1):this.renderDisplayRow("Email",this.account.email,()=>this.isEditingEmail=!0)}renderPhoneSection(){return this.isVerifyingPhone?this.renderVerificationForm("phone",()=>(this.isVerifyingPhone=!1,this.isEditingPhone=!0)):this.isEditingPhone?this.renderEditForm("phone","Phone Number",()=>(this.isVerifyingPhone=!0,this.isEditingPhone=!1),()=>this.isEditingPhone=!1):this.renderDisplayRow("Phone number",this.account.phone,()=>this.isEditingPhone=!0)}renderHeader(){var i,n,l,d,
|
|
5590
|
+
`}renderEmailSection(){return this.isVerifyingEmail?this.renderVerificationForm("email",()=>(this.isVerifyingEmail=!1,this.isEditingEmail=!0)):this.isEditingEmail?this.renderEditForm("email","Email",()=>(this.isVerifyingEmail=!0,this.isEditingEmail=!1),()=>this.isEditingEmail=!1):this.renderDisplayRow("Email",this.account.email,()=>this.isEditingEmail=!0)}renderPhoneSection(){return this.isVerifyingPhone?this.renderVerificationForm("phone",()=>(this.isVerifyingPhone=!1,this.isEditingPhone=!0)):this.isEditingPhone?this.renderEditForm("phone","Phone Number",()=>(this.isVerifyingPhone=!0,this.isEditingPhone=!1),()=>this.isEditingPhone=!1):this.renderDisplayRow("Phone number",this.account.phone,()=>this.isEditingPhone=!0)}renderHeader(){var i,n,l,d,p,b,f,y,x,_,C,w;const{class:t,style:o}=R(ys,{},(p=(d=(l=(n=(i=this.customizations)==null?void 0:i.byType)==null?void 0:n.userProfile)==null?void 0:l.userProfileCard)==null?void 0:d.header)==null?void 0:p.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),{class:s,style:r}=R(ws,{},(_=(x=(y=(f=(b=this.customizations)==null?void 0:b.byType)==null?void 0:f.userProfile)==null?void 0:y.userProfileCard)==null?void 0:x.header)==null?void 0:_.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations);return c`
|
|
5591
5591
|
<rtg-card-header
|
|
5592
5592
|
customClass=${t}
|
|
5593
5593
|
customStyle=${S(o)}
|
|
@@ -5645,7 +5645,7 @@ body {
|
|
|
5645
5645
|
</div>
|
|
5646
5646
|
</rtg-card-content>
|
|
5647
5647
|
</rtg-card>
|
|
5648
|
-
`}createRenderRoot(){return this}};at([a({type:Object})],exports.SbAccountInfo.prototype,"account",2);at([a({type:Boolean})],exports.SbAccountInfo.prototype,"showAvatarMenu",2);at([a({type:Object})],exports.SbAccountInfo.prototype,"customizations",2);at([a({type:Function})],exports.SbAccountInfo.prototype,"toggleAvatarMenu",2);at([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarChange",2);at([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarRemove",2);at([a({type:Boolean})],exports.SbAccountInfo.prototype,"showIcons",2);at([a({type:Object})],exports.SbAccountInfo.prototype,"content",2);at([a({type:String})],exports.SbAccountInfo.prototype,"otpVariant",2);at([a({type:Number})],exports.SbAccountInfo.prototype,"otpLength",2);at([a({type:String})],exports.SbAccountInfo.prototype,"layout",2);at([k()],exports.SbAccountInfo.prototype,"isEditingEmail",2);at([k()],exports.SbAccountInfo.prototype,"isVerifyingEmail",2);at([k()],exports.SbAccountInfo.prototype,"isEditingPhone",2);at([k()],exports.SbAccountInfo.prototype,"isVerifyingPhone",2);exports.SbAccountInfo=at([
|
|
5648
|
+
`}createRenderRoot(){return this}};at([a({type:Object})],exports.SbAccountInfo.prototype,"account",2);at([a({type:Boolean})],exports.SbAccountInfo.prototype,"showAvatarMenu",2);at([a({type:Object})],exports.SbAccountInfo.prototype,"customizations",2);at([a({type:Function})],exports.SbAccountInfo.prototype,"toggleAvatarMenu",2);at([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarChange",2);at([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarRemove",2);at([a({type:Boolean})],exports.SbAccountInfo.prototype,"showIcons",2);at([a({type:Object})],exports.SbAccountInfo.prototype,"content",2);at([a({type:String})],exports.SbAccountInfo.prototype,"otpVariant",2);at([a({type:Number})],exports.SbAccountInfo.prototype,"otpLength",2);at([a({type:String})],exports.SbAccountInfo.prototype,"layout",2);at([k()],exports.SbAccountInfo.prototype,"isEditingEmail",2);at([k()],exports.SbAccountInfo.prototype,"isVerifyingEmail",2);at([k()],exports.SbAccountInfo.prototype,"isEditingPhone",2);at([k()],exports.SbAccountInfo.prototype,"isVerifyingPhone",2);exports.SbAccountInfo=at([h("sb-account-info")],exports.SbAccountInfo);var Jf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,nr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Qf(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Jf(t,o,r),r};exports.SbPersonalInfo=class extends ${constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=mt.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Ot("default",this.customizations),o=Ot("outline",this.customizations),s=Ot("ghost",this.customizations),r=R(Es,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),i=R(ks,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=R(xn,{},s,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:r,outlineMapped:i,ghostMapped:n}}getInputStyles(t=!1){var s,r,i;const o=t?$s:G(_s);return R(o,{},(i=(r=(s=this.customizations)==null?void 0:s.byType)==null?void 0:r.inputs)==null?void 0:i.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,o,s;return R(G(xs,this.layout!==mt.ROW?"sb-basis-auto":""),{},(s=(o=(t=this.customizations)==null?void 0:t.byType)==null?void 0:o.labels)==null?void 0:s.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var o,s,r,i,n,l,d,p;return R(G(t?Cs+" sb-mb-4":Ss),{},t?(i=(r=(s=(o=this.customizations)==null?void 0:o.byType)==null?void 0:s.userProfile)==null?void 0:r.userProfileCard)==null?void 0:i.editForm:(p=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:p.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const o=this.getInputStyles(this.isEditing);return c`
|
|
5649
5649
|
<rtg-input
|
|
5650
5650
|
customClass="${o.class}"
|
|
5651
5651
|
customStyle="${S(o.style)}"
|
|
@@ -5674,7 +5674,7 @@ body {
|
|
|
5674
5674
|
Cancel
|
|
5675
5675
|
</rtg-button>
|
|
5676
5676
|
</rtg-card-footer>
|
|
5677
|
-
`}render(){var f,y,x,_,C,w,E,P,q,M,A,Z,Y,$t;const t=[{label:"Username",value:this.personal.username},{label:"First name",value:this.personal.first},{label:"Middle name",value:this.personal.middle},{label:"Last name",value:this.personal.last},{label:"Nickname",value:this.personal.nickname},{label:"Gender",value:this.personal.gender},{label:"Bio",value:this.personal.bio}],o=this.getContainerStyles(!1),s=this.getContainerStyles(!0),{defaultMapped:r,outlineMapped:i,ghostMapped:n}=this.getButtonStyles(),l=R(ys,{},(C=(_=(x=(y=(f=this.customizations)==null?void 0:f.byType)==null?void 0:y.userProfile)==null?void 0:x.userProfileCard)==null?void 0:_.header)==null?void 0:C.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),d=R(ws,{},(M=(q=(P=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:P.userProfileCard)==null?void 0:q.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),
|
|
5677
|
+
`}render(){var f,y,x,_,C,w,E,P,q,M,A,Z,Y,$t;const t=[{label:"Username",value:this.personal.username},{label:"First name",value:this.personal.first},{label:"Middle name",value:this.personal.middle},{label:"Last name",value:this.personal.last},{label:"Nickname",value:this.personal.nickname},{label:"Gender",value:this.personal.gender},{label:"Bio",value:this.personal.bio}],o=this.getContainerStyles(!1),s=this.getContainerStyles(!0),{defaultMapped:r,outlineMapped:i,ghostMapped:n}=this.getButtonStyles(),l=R(ys,{},(C=(_=(x=(y=(f=this.customizations)==null?void 0:f.byType)==null?void 0:y.userProfile)==null?void 0:x.userProfileCard)==null?void 0:_.header)==null?void 0:C.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),d=R(ws,{},(M=(q=(P=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:P.userProfileCard)==null?void 0:q.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),p=this.getLabelStyles(),b=this.isEditing?s:o;return c`
|
|
5678
5678
|
<rtg-card
|
|
5679
5679
|
customClass=${b.class}
|
|
5680
5680
|
customStyle=${S(b.style)}
|
|
@@ -5715,7 +5715,7 @@ body {
|
|
|
5715
5715
|
<div
|
|
5716
5716
|
class="sb-flex ${this.layout===mt.ROW?"sb-flex-row sb-items-center sb-gap-2":"sb-flex-col sb-gap-1"}"
|
|
5717
5717
|
>
|
|
5718
|
-
<div class=${
|
|
5718
|
+
<div class=${p.class} style=${S(p.style)}>
|
|
5719
5719
|
${st.label}
|
|
5720
5720
|
</div>
|
|
5721
5721
|
<div class="sb-flex-1 sb-min-w-0 sb-mr-4">
|
|
@@ -5730,7 +5730,7 @@ body {
|
|
|
5730
5730
|
<!-- Footer -->
|
|
5731
5731
|
${this.isEditing?this.renderFooter(r,i):null}
|
|
5732
5732
|
</rtg-card>
|
|
5733
|
-
`}};nr([a({type:Object})],exports.SbPersonalInfo.prototype,"personal",2);nr([a({type:Object})],exports.SbPersonalInfo.prototype,"customizations",2);nr([a({type:Boolean})],exports.SbPersonalInfo.prototype,"showIcons",2);nr([a({type:String})],exports.SbPersonalInfo.prototype,"layout",2);nr([a({type:Object})],exports.SbPersonalInfo.prototype,"content",2);nr([k()],exports.SbPersonalInfo.prototype,"isEditing",2);exports.SbPersonalInfo=nr([
|
|
5733
|
+
`}};nr([a({type:Object})],exports.SbPersonalInfo.prototype,"personal",2);nr([a({type:Object})],exports.SbPersonalInfo.prototype,"customizations",2);nr([a({type:Boolean})],exports.SbPersonalInfo.prototype,"showIcons",2);nr([a({type:String})],exports.SbPersonalInfo.prototype,"layout",2);nr([a({type:Object})],exports.SbPersonalInfo.prototype,"content",2);nr([k()],exports.SbPersonalInfo.prototype,"isEditing",2);exports.SbPersonalInfo=nr([h("sb-personal-info")],exports.SbPersonalInfo);var tv=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,ar=(e,t,o,s)=>{for(var r=s>1?void 0:s?ev(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&tv(t,o,r),r};exports.SbLocationInfo=class extends ${constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=mt.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Ot("default",this.customizations),o=Ot("outline",this.customizations),s=Ot("ghost",this.customizations),r=R(Es,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),i=R(ks,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=R(xn,{},s,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:r,outlineMapped:i,ghostMapped:n}}getInputStyles(t=!1){var s,r,i;const o=t?$s:G(_s);return R(o,{},(i=(r=(s=this.customizations)==null?void 0:s.byType)==null?void 0:r.inputs)==null?void 0:i.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,o,s;return R(G(xs,this.layout!==mt.ROW?"sb-basis-auto":""),{},(s=(o=(t=this.customizations)==null?void 0:t.byType)==null?void 0:o.labels)==null?void 0:s.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var o,s,r,i,n,l,d,p;return R(G(t?Cs+" sb-mb-4":Ss),{},t?(i=(r=(s=(o=this.customizations)==null?void 0:o.byType)==null?void 0:s.userProfile)==null?void 0:r.userProfileCard)==null?void 0:i.editForm:(p=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:p.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const o=this.getInputStyles(this.isEditing);return c`
|
|
5734
5734
|
<rtg-input
|
|
5735
5735
|
customClass="${o.class}"
|
|
5736
5736
|
customStyle="${S(o.style)}"
|
|
@@ -5759,7 +5759,7 @@ body {
|
|
|
5759
5759
|
Cancel
|
|
5760
5760
|
</rtg-button>
|
|
5761
5761
|
</rtg-card-footer>
|
|
5762
|
-
`}render(){var f,y,x,_,C,w,E,P,q,M,A,Z;const t=[{label:"Location",value:this.locationInfo.location},{label:"Zone Info",value:this.locationInfo.zoneInfo}],o=this.getContainerStyles(!1),s=this.getContainerStyles(!0),{defaultMapped:r,outlineMapped:i,ghostMapped:n}=this.getButtonStyles(),l=R(ys,{},(C=(_=(x=(y=(f=this.customizations)==null?void 0:f.byType)==null?void 0:y.userProfile)==null?void 0:x.userProfileCard)==null?void 0:_.header)==null?void 0:C.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),d=R(ws,{},(M=(q=(P=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:P.userProfileCard)==null?void 0:q.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),
|
|
5762
|
+
`}render(){var f,y,x,_,C,w,E,P,q,M,A,Z;const t=[{label:"Location",value:this.locationInfo.location},{label:"Zone Info",value:this.locationInfo.zoneInfo}],o=this.getContainerStyles(!1),s=this.getContainerStyles(!0),{defaultMapped:r,outlineMapped:i,ghostMapped:n}=this.getButtonStyles(),l=R(ys,{},(C=(_=(x=(y=(f=this.customizations)==null?void 0:f.byType)==null?void 0:y.userProfile)==null?void 0:x.userProfileCard)==null?void 0:_.header)==null?void 0:C.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),d=R(ws,{},(M=(q=(P=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:P.userProfileCard)==null?void 0:q.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),p=this.getLabelStyles(),b=this.isEditing?s:o;return c`
|
|
5763
5763
|
<rtg-card
|
|
5764
5764
|
customClass=${b.class}
|
|
5765
5765
|
customStyle=${S(b.style)}
|
|
@@ -5799,7 +5799,7 @@ body {
|
|
|
5799
5799
|
<div
|
|
5800
5800
|
class="sb-flex ${this.layout===mt.ROW?"sb-flex-row sb-items-center sb-gap-2":"sb-flex-col sb-gap-1"}"
|
|
5801
5801
|
>
|
|
5802
|
-
<div class=${
|
|
5802
|
+
<div class=${p.class} style=${S(p.style)}>
|
|
5803
5803
|
${Y.label}
|
|
5804
5804
|
</div>
|
|
5805
5805
|
<div class="sb-flex-1 sb-min-w-0 sb-mr-4">
|
|
@@ -5815,7 +5815,7 @@ body {
|
|
|
5815
5815
|
<!-- Footer -->
|
|
5816
5816
|
${this.isEditing?this.renderFooter(r,i):null}
|
|
5817
5817
|
</rtg-card>
|
|
5818
|
-
`}};ar([a({type:Object})],exports.SbLocationInfo.prototype,"locationInfo",2);ar([a({type:Object})],exports.SbLocationInfo.prototype,"customizations",2);ar([a({type:Boolean})],exports.SbLocationInfo.prototype,"showIcons",2);ar([a({type:String})],exports.SbLocationInfo.prototype,"layout",2);ar([a({type:Object})],exports.SbLocationInfo.prototype,"content",2);ar([k()],exports.SbLocationInfo.prototype,"isEditing",2);exports.SbLocationInfo=ar([
|
|
5818
|
+
`}};ar([a({type:Object})],exports.SbLocationInfo.prototype,"locationInfo",2);ar([a({type:Object})],exports.SbLocationInfo.prototype,"customizations",2);ar([a({type:Boolean})],exports.SbLocationInfo.prototype,"showIcons",2);ar([a({type:String})],exports.SbLocationInfo.prototype,"layout",2);ar([a({type:Object})],exports.SbLocationInfo.prototype,"content",2);ar([k()],exports.SbLocationInfo.prototype,"isEditing",2);exports.SbLocationInfo=ar([h("sb-location-info")],exports.SbLocationInfo);var rv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,lr=(e,t,o,s)=>{for(var r=s>1?void 0:s?ov(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&rv(t,o,r),r};exports.SbUrlsInfo=class extends ${constructor(){super(...arguments),this.showIcons=!0,this.customizations=null,this.layout=mt.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Ot("default",this.customizations),o=Ot("outline",this.customizations),s=Ot("ghost",this.customizations),r=R(Es,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),i=R(ks,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=R(xn,{},s,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:r,outlineMapped:i,ghostMapped:n}}getInputStyles(t=!1){var s,r,i;const o=t?$s:G(_s);return R(o,{},(i=(r=(s=this.customizations)==null?void 0:s.byType)==null?void 0:r.inputs)==null?void 0:i.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,o,s;return R(G(xs,this.layout!==mt.ROW?"sb-basis-auto":""),{},(s=(o=(t=this.customizations)==null?void 0:t.byType)==null?void 0:o.labels)==null?void 0:s.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var o,s,r,i,n,l,d,p;return R(G(t?Cs:Ss,"!sb-mb-0"),{},t?(i=(r=(s=(o=this.customizations)==null?void 0:o.byType)==null?void 0:s.userProfile)==null?void 0:r.userProfileCard)==null?void 0:i.editForm:(p=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:p.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const o=this.getInputStyles(this.isEditing);return c`
|
|
5819
5819
|
<rtg-input
|
|
5820
5820
|
customClass="${o.class}"
|
|
5821
5821
|
customStyle="${S(o.style)}"
|
|
@@ -5844,7 +5844,7 @@ body {
|
|
|
5844
5844
|
Cancel
|
|
5845
5845
|
</rtg-button>
|
|
5846
5846
|
</rtg-card-footer>
|
|
5847
|
-
`}render(){var f,y,x,_,C,w,E,P,q,M,A,Z;const t=[{label:"Website",value:this.URLsInfo.website}],o=this.getContainerStyles(!1),s=this.getContainerStyles(!0),{defaultMapped:r,outlineMapped:i,ghostMapped:n}=this.getButtonStyles(),l=R(ys,{},(C=(_=(x=(y=(f=this.customizations)==null?void 0:f.byType)==null?void 0:y.userProfile)==null?void 0:x.userProfileCard)==null?void 0:_.header)==null?void 0:C.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),d=R(ws,{},(M=(q=(P=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:P.userProfileCard)==null?void 0:q.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),
|
|
5847
|
+
`}render(){var f,y,x,_,C,w,E,P,q,M,A,Z;const t=[{label:"Website",value:this.URLsInfo.website}],o=this.getContainerStyles(!1),s=this.getContainerStyles(!0),{defaultMapped:r,outlineMapped:i,ghostMapped:n}=this.getButtonStyles(),l=R(ys,{},(C=(_=(x=(y=(f=this.customizations)==null?void 0:f.byType)==null?void 0:y.userProfile)==null?void 0:x.userProfileCard)==null?void 0:_.header)==null?void 0:C.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),d=R(ws,{},(M=(q=(P=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:P.userProfileCard)==null?void 0:q.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),p=this.getLabelStyles(),b=this.isEditing?s:o;return c`
|
|
5848
5848
|
<rtg-card
|
|
5849
5849
|
customClass=${b.class}
|
|
5850
5850
|
customStyle=${S(b.style)}
|
|
@@ -5883,7 +5883,7 @@ body {
|
|
|
5883
5883
|
<div
|
|
5884
5884
|
class="sb-flex ${this.layout===mt.ROW?"sb-flex-row sb-items-center":"sb-flex-col sb-gap-1"}"
|
|
5885
5885
|
>
|
|
5886
|
-
<div class=${
|
|
5886
|
+
<div class=${p.class} style=${S(p.style)}>
|
|
5887
5887
|
${Y.label}
|
|
5888
5888
|
</div>
|
|
5889
5889
|
<div class="sb-flex-1 sb-min-w-0 sb-mr-4">
|
|
@@ -5899,7 +5899,7 @@ body {
|
|
|
5899
5899
|
<!-- Footer -->
|
|
5900
5900
|
${this.isEditing?this.renderFooter(r,i):null}
|
|
5901
5901
|
</rtg-card>
|
|
5902
|
-
`}};lr([a({type:Object})],exports.SbUrlsInfo.prototype,"URLsInfo",2);lr([a({type:Boolean})],exports.SbUrlsInfo.prototype,"showIcons",2);lr([a({type:Object})],exports.SbUrlsInfo.prototype,"customizations",2);lr([a({type:String})],exports.SbUrlsInfo.prototype,"layout",2);lr([a({type:Object})],exports.SbUrlsInfo.prototype,"content",2);lr([k()],exports.SbUrlsInfo.prototype,"isEditing",2);exports.SbUrlsInfo=lr([
|
|
5902
|
+
`}};lr([a({type:Object})],exports.SbUrlsInfo.prototype,"URLsInfo",2);lr([a({type:Boolean})],exports.SbUrlsInfo.prototype,"showIcons",2);lr([a({type:Object})],exports.SbUrlsInfo.prototype,"customizations",2);lr([a({type:String})],exports.SbUrlsInfo.prototype,"layout",2);lr([a({type:Object})],exports.SbUrlsInfo.prototype,"content",2);lr([k()],exports.SbUrlsInfo.prototype,"isEditing",2);exports.SbUrlsInfo=lr([h("sb-urls-info")],exports.SbUrlsInfo);var sv=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,ot=(e,t,o,s)=>{for(var r=s>1?void 0:s?iv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&sv(t,o,r),r};exports.Profile=class extends ${constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.orientation=Tt.HORIZONTAL,this.sidebarDisplayType=Rt.REGULAR,this.mode=ge==null?void 0:ge.PAGE,this.widgetsLayout=mt.ROW,this.content=null}createRenderRoot(){return this}render(){var s,r,i,n;return c`
|
|
5903
5903
|
${this.orientation===Tt.VERTICAL||this.sidebarDisplayType===Rt.BURGER?null:c`
|
|
5904
5904
|
<div class=${"sb-flex sb-items-center sb-justify-between sb-mb-4"}>
|
|
5905
5905
|
<div class=${"sb-font-medium sb-text-[18px] sb-text-foreground"}>Profile</div>
|
|
@@ -5933,7 +5933,7 @@ body {
|
|
|
5933
5933
|
.URLsInfo=${this.urls}
|
|
5934
5934
|
.layout=${this.widgetsLayout}
|
|
5935
5935
|
></sb-urls-info>
|
|
5936
|
-
`}};ot([a({type:Object})],exports.Profile.prototype,"account",2);ot([a({type:Object})],exports.Profile.prototype,"personal",2);ot([a({type:Object})],exports.Profile.prototype,"location",2);ot([a({type:Object})],exports.Profile.prototype,"urls",2);ot([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);ot([a({type:Object})],exports.Profile.prototype,"customizations",2);ot([a({type:Boolean})],exports.Profile.prototype,"showIcons",2);ot([a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);ot([a({type:String})],exports.Profile.prototype,"orientation",2);ot([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);ot([a({type:String})],exports.Profile.prototype,"mode",2);ot([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);ot([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);ot([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);ot([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);ot([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=ot([
|
|
5936
|
+
`}};ot([a({type:Object})],exports.Profile.prototype,"account",2);ot([a({type:Object})],exports.Profile.prototype,"personal",2);ot([a({type:Object})],exports.Profile.prototype,"location",2);ot([a({type:Object})],exports.Profile.prototype,"urls",2);ot([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);ot([a({type:Object})],exports.Profile.prototype,"customizations",2);ot([a({type:Boolean})],exports.Profile.prototype,"showIcons",2);ot([a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);ot([a({type:String})],exports.Profile.prototype,"orientation",2);ot([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);ot([a({type:String})],exports.Profile.prototype,"mode",2);ot([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);ot([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);ot([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);ot([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);ot([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=ot([h("sb-profile")],exports.Profile);const nv="!sb-bg-background",ol={vertical:"sb-justify-between sb-w-full",horizontal:"sb-flex-col !sb-items-start sb-mx-4 md:sb-ml-6"},av="sb-p-2 sb-mb-4 sb-rounded-lg sb-border-muted sb-bg-background",lv="sb-font-medium sb-ml-2 -sb-mt-4 sb-text-[18px] sb-text-foreground",cv="mobile-sidebar-drawer sb-fixed sb-top-0 sb-left-0 sb-h-full sb-max-w-xs sb-bg-background sb-shadow-lg sb-z-[9999] sb-transform sb-transition-all sb-duration-300 sb-ease-in-out",dv="mobile-sidebar-overlay sb-fixed sb-inset-0 sb-bg-black/50 sb-z-[9998] sb-transition-opacity sb-duration-300 sb-ease-in-out";var uv=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,cr=(e,t,o,s)=>{for(var r=s>1?void 0:s?pv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&uv(t,o,r),r};const Ws=[{label:"Profile",value:Ii.PROFILE},{label:"Security",value:Ii.SECURITY}];let $e=class extends ${constructor(){super(...arguments),this.orientation=Tt.HORIZONTAL,this.displayType=Rt.REGULAR,this.mode=ge.PAGE,this.config={showIcons:!0},this.customizations=null,this.isMenuOpen=!1}createRenderRoot(){return this}toggleMenu(){const e=this.closest('div[role="tab"]');e&&e.classList.toggle("sb-rotate-0"),this.isMenuOpen=!this.isMenuOpen,this.requestUpdate()}handleCloseProfile(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}renderTabs(e=Ws,t=!1,o){var i,n,l;const{class:s,style:r}=R("",{},(l=(n=(i=this.customizations)==null?void 0:i.byType)==null?void 0:n.userProfile)==null?void 0:l.sidebarTabs,T.USER_PROFILE_SIDEBAR_TABS,this.customizations);return c`
|
|
5937
5937
|
<rtg-tab-list
|
|
5938
5938
|
orientation=${t?"vertical":"horizontal"}
|
|
5939
5939
|
class="sb-flex sb-w-full ${t?"":"sb-mb-4"}"
|
|
@@ -5999,7 +5999,7 @@ body {
|
|
|
5999
5999
|
`:null}
|
|
6000
6000
|
</div>
|
|
6001
6001
|
${this.displayType===Rt.BURGER?this.renderMobileDrawer():null}
|
|
6002
|
-
`}};cr([a({type:String})],$e.prototype,"orientation",2);cr([a({type:String})],$e.prototype,"displayType",2);cr([a({type:String})],$e.prototype,"mode",2);cr([a({type:Object})],$e.prototype,"config",2);cr([a({type:Object})],$e.prototype,"customizations",2);cr([k()],$e.prototype,"isMenuOpen",2);$e=cr([
|
|
6002
|
+
`}};cr([a({type:String})],$e.prototype,"orientation",2);cr([a({type:String})],$e.prototype,"displayType",2);cr([a({type:String})],$e.prototype,"mode",2);cr([a({type:Object})],$e.prototype,"config",2);cr([a({type:Object})],$e.prototype,"customizations",2);cr([k()],$e.prototype,"isMenuOpen",2);$e=cr([h("sb-profile-sidebar")],$e);var hv=Object.defineProperty,Xt=(e,t,o,s)=>{for(var r=void 0,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=n(t,o,r)||r);return r&&hv(t,o,r),r};const sl={xs:640,sm:768};class Pt extends ${constructor(){super(...arguments),this.showAvatarMenu=!1,this.orientation=Tt.HORIZONTAL,this.mobileDisplay=Rt.REGULAR,this.mode=ge.PAGE,this.widgetsLayout=mt.ROW,this.content=null,this.customizations=null,this.providedCustomizations=null,this.isOpen=!0,this.currentBreakpoint="md",this.account={email:"J.Doe@gmail.com",phone:"+989390717800",avatar:"https://github.com/shadcn.png"},this.personal={username:"@JaneeDoe",first:"Jane",middle:"Michelle",last:"Doe",nickname:"Janee",gender:"Female",bio:"-"},this.location={location:"Iran, Tehran",zoneInfo:"GMT+3:30"},this.urls={website:"www.janeedoe.com"},this.defaultTab="Profile",this._handleResize=()=>{this._updateBreakpoint()},this._handleClose=()=>{this.mode===ge.MODAL&&(this.isOpen=!1)},this._toggleAvatarMenu=t=>{t.stopPropagation(),this.showAvatarMenu=!this.showAvatarMenu},this._handleAvatarChange=()=>{const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=o=>{var i;const s=(i=o.target.files)==null?void 0:i[0];if(!s)return;const r=new FileReader;r.onload=()=>{this.account.avatar=r.result,this.requestUpdate()},r.readAsDataURL(s)},t.click()},this._handleAvatarRemove=()=>{this.account.avatar="https://via.placeholder.com/80",this.showAvatarMenu=!1},this._handleClickOutside=t=>{if(!this.showAvatarMenu)return;const o=t.target,s=this.querySelector("sb-account-info"),r=this.querySelector("rtg-card");s!=null&&s.contains(o)||r!=null&&r.contains(o)||(this.showAvatarMenu=!1)}}connectedCallback(){super.connectedCallback(),this._updateBreakpoint(),window.addEventListener("resize",this._handleResize),document.addEventListener("remove-avatar",this._handleAvatarRemove),document.addEventListener("click",this._handleClickOutside),this.addEventListener("close-user-profile",this._handleClose),this.addEventListener("change-avatar",this._handleAvatarChange)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleResize),document.removeEventListener("remove-avatar",this._handleAvatarRemove),document.removeEventListener("click",this._handleClickOutside),this.removeEventListener("close-user-profile",this._handleClose),this.removeEventListener("change-avatar",this._handleAvatarChange)}firstUpdated(){this.style.width="100%"}_updateBreakpoint(){const t=window.innerWidth;this.currentBreakpoint=t<sl.xs?"xs":t<sl.sm?"sm":"md"}get effectiveCustomizations(){return vs(this.providedCustomizations??{},this.customizations??{})}get isModal(){return this.mode===ge.MODAL}get sidebarDisplayType(){return this.orientation===Tt.VERTICAL||this.currentBreakpoint==="md"?Rt.REGULAR:Rt.BURGER}get containerClasses(){return G(Ym,this.isModal?Xm:Zm,this.isModal?Gm:Hm,this.sidebarDisplayType===Rt.BURGER||this.orientation===Tt.VERTICAL?"!sb-flex-col":"!sb-flex-row")}get contentClasses(){return G("sb-flex-grow",this.isModal?"sb-max-h-[864px] sb-mx-4 sb-px-2 md:sb-mx-0 md:sb-px-6 md:sb-pl-0 sb-overflow-auto":"md:sb-max-h-[100%]",this.orientation===Tt.VERTICAL?"md:sb-pl-6 sb-mb-16":"")}renderCloseButton(){return this.isModal?c`
|
|
6003
6003
|
<button
|
|
6004
6004
|
class="sb-absolute sb-bg-background sb-right-8 sb-top-8 sb-z-10"
|
|
6005
6005
|
@click=${()=>this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}
|
|
@@ -6079,7 +6079,7 @@ body {
|
|
|
6079
6079
|
</signed-out>
|
|
6080
6080
|
</sb-provider>
|
|
6081
6081
|
`}
|
|
6082
|
-
`}};Rs([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);Rs([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);Rs([a({type:Object})],exports.PreviewComponent.prototype,"customizations",2);exports.PreviewComponent=Rs([
|
|
6082
|
+
`}};Rs([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);Rs([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);Rs([a({type:Object})],exports.PreviewComponent.prototype,"customizations",2);exports.PreviewComponent=Rs([h("sb-preview")],exports.PreviewComponent);var mv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,Os=(e,t,o,s)=>{for(var r=s>1?void 0:s?fv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&mv(t,o,r),r};exports.SbSignIn=class extends ${constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.providedCustomizations=null,this.__flowStarted=!1,this.__flowInitAttempted=!1}get effectiveCustomizations(){const t=this.providedCustomizations??{},o=this.customizations??{};return vs(t,o)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var r;const o=ct??((r=window.__saasbaseCoreSdk)==null?void 0:r.Auth);if(!o||o.__configured)return;const s=o.__whenConfigured;s&&await Promise.race([s,new Promise(i=>setTimeout(i,t))])}async connectedCallback(){var t;if(super.connectedCallback(),!this.__flowInitAttempted&&(this.__flowInitAttempted=!0,await this.waitForAuthConfigured(),!this.__flowStarted)){this.__flowStarted=!0;try{const o=await ct.startLoginflow("signin-flow-passkey");console.log(o.isResumed?"Resumed login flow":"Started new login flow")}catch(o){if(console.error("Sign-in flow init failed:",o),o&&typeof o.message=="string"&&o.message.includes("Auth.configure() must be called")){this.__saasbaseFailedForConfig=!0;try{const s=ct??((t=window.__saasbaseCoreSdk)==null?void 0:t.Auth),r=s==null?void 0:s.__whenConfigured;if(r){await Promise.race([r,new Promise(i=>setTimeout(i,1e4))]);try{const i=await ct.startLoginflow("signin-flow-passkey");console.log(i.isResumed?"Resumed login flow":"Started new login flow")}catch(i){console.error("Sign-in retry failed:",i)}}}catch{}}else this.__flowStarted=!1}}}__saasbaseRetryInit(){this.__flowStarted||(this.__flowInitAttempted=!1,this.connectedCallback())}render(){var r,i;const t=this.effectiveCustomizations,{class:o,style:s}=R("",{},(i=(r=t==null?void 0:t.byType)==null?void 0:r.loader)==null?void 0:i.linear,"",t);return this.renderSpec?c`
|
|
6083
6083
|
<sb-layout
|
|
6084
6084
|
.renderSpec=${this.renderSpec}
|
|
6085
6085
|
.customizations=${t}
|
|
@@ -6090,7 +6090,7 @@ body {
|
|
|
6090
6090
|
customClass=${o}
|
|
6091
6091
|
.customStyle=${s}
|
|
6092
6092
|
></linear-loader>
|
|
6093
|
-
`}};Os([Ct({context:vn,subscribe:!0})],exports.SbSignIn.prototype,"renderSpec",2);Os([a({type:Object})],exports.SbSignIn.prototype,"customizations",2);Os([Ct({context:ms,subscribe:!0})],exports.SbSignIn.prototype,"providedCustomizations",2);exports.SbSignIn=Os([
|
|
6093
|
+
`}};Os([Ct({context:vn,subscribe:!0})],exports.SbSignIn.prototype,"renderSpec",2);Os([a({type:Object})],exports.SbSignIn.prototype,"customizations",2);Os([Ct({context:ms,subscribe:!0})],exports.SbSignIn.prototype,"providedCustomizations",2);exports.SbSignIn=Os([h("sb-signin")],exports.SbSignIn);var vv=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,As=(e,t,o,s)=>{for(var r=s>1?void 0:s?yv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&vv(t,o,r),r};exports.SbSignUp=class extends ${constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.providedCustomizations=null,this.__flowStarted=!1,this.__flowInitAttempted=!1}get effectiveCustomizations(){const t=this.providedCustomizations??{},o=this.customizations??{};return vs(t,o)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var r;const o=ct??((r=window.__saasbaseCoreSdk)==null?void 0:r.Auth);if(!o||o.__configured)return;const s=o.__whenConfigured;s&&await Promise.race([s,new Promise(i=>setTimeout(i,t))])}async connectedCallback(){var t;if(super.connectedCallback(),!this.__flowInitAttempted&&(this.__flowInitAttempted=!0,await this.waitForAuthConfigured(),!this.__flowStarted)){this.__flowStarted=!0;try{const o=await ct.startLoginflow("signup-flow");console.log(o.isResumed?"Resumed signup flow":"Started new signup flow")}catch(o){if(console.error("Sign-up flow init failed:",o),o&&typeof o.message=="string"&&o.message.includes("Auth.configure() must be called")){this.__saasbaseFailedForConfig=!0;try{const s=ct??((t=window.__saasbaseCoreSdk)==null?void 0:t.Auth),r=s==null?void 0:s.__whenConfigured;if(r){await Promise.race([r,new Promise(i=>setTimeout(i,1e4))]);try{const i=await ct.startLoginflow("signup-flow");console.log(i.isResumed?"Resumed signup flow":"Started new signup flow")}catch(i){console.error("Sign-up retry failed:",i)}}}catch{}}else this.__flowStarted=!1}}}__saasbaseRetryInit(){this.__flowStarted||(this.__flowInitAttempted=!1,this.connectedCallback())}render(){var r,i;const t=this.effectiveCustomizations,{class:o,style:s}=R("",{},(i=(r=t==null?void 0:t.byType)==null?void 0:r.loader)==null?void 0:i.linear,"",t);return console.log(""),this.renderSpec?c`
|
|
6094
6094
|
<sb-layout
|
|
6095
6095
|
.renderSpec=${this.renderSpec}
|
|
6096
6096
|
.customizations=${t}
|
|
@@ -6101,11 +6101,11 @@ body {
|
|
|
6101
6101
|
customClass=${o}
|
|
6102
6102
|
.customStyle=${s}
|
|
6103
6103
|
></linear-loader>
|
|
6104
|
-
`}};As([Ct({context:vn,subscribe:!0})],exports.SbSignUp.prototype,"renderSpec",2);As([a({type:Object})],exports.SbSignUp.prototype,"customizations",2);As([Ct({context:ms,subscribe:!0})],exports.SbSignUp.prototype,"providedCustomizations",2);exports.SbSignUp=As([
|
|
6104
|
+
`}};As([Ct({context:vn,subscribe:!0})],exports.SbSignUp.prototype,"renderSpec",2);As([a({type:Object})],exports.SbSignUp.prototype,"customizations",2);As([Ct({context:ms,subscribe:!0})],exports.SbSignUp.prototype,"providedCustomizations",2);exports.SbSignUp=As([h("sb-signup")],exports.SbSignUp);var wv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,_n=(e,t,o,s)=>{for(var r=s>1?void 0:s?xv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&wv(t,o,r),r};exports.SbTextRenderer=class extends ${createRenderRoot(){return this}render(){var i,n;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,{...this.element.style,textAlign:this.element.properties.text_alignment},void 0,this.element.id,void 0),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((n=(i=this.component.customizations)==null?void 0:i.config)==null?void 0:n.breakpoints)??tt),c`
|
|
6105
6105
|
<p id=${this.element.id} class=${t} style=${S(s)}>
|
|
6106
6106
|
${this.element.properties.content}
|
|
6107
6107
|
</p>
|
|
6108
|
-
`}};_n([a({type:Object})],exports.SbTextRenderer.prototype,"element",2);_n([a({attribute:!1})],exports.SbTextRenderer.prototype,"component",2);exports.SbTextRenderer=_n([
|
|
6108
|
+
`}};_n([a({type:Object})],exports.SbTextRenderer.prototype,"element",2);_n([a({attribute:!1})],exports.SbTextRenderer.prototype,"component",2);exports.SbTextRenderer=_n([h("sb-text-renderer")],exports.SbTextRenderer);/**
|
|
6109
6109
|
* @license
|
|
6110
6110
|
* Copyright 2017 Google LLC
|
|
6111
6111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -6120,18 +6120,18 @@ body {
|
|
|
6120
6120
|
/>
|
|
6121
6121
|
`}
|
|
6122
6122
|
</span>
|
|
6123
|
-
`}render(){var x,_;if(!this.element)return null;const{id:t,class:o,style:s,properties:r}=this.element,{type:i,text:n,event:l}=r,d=Ot(i,this.component.customizations),{class:
|
|
6123
|
+
`}render(){var x,_;if(!this.element)return null;const{id:t,class:o,style:s,properties:r}=this.element,{type:i,text:n,event:l}=r,d=Ot(i,this.component.customizations),{class:p,style:b}=R(o,s,d,t,this.component.customizations),{base:f,responsive:y}=dt(b);return ut(this.element.id,y,((_=(x=this.component.customizations)==null?void 0:x.config)==null?void 0:_.breakpoints)??tt),c`
|
|
6124
6124
|
<rtg-button
|
|
6125
6125
|
?disabled=${this.isDisabled||this.loading}
|
|
6126
6126
|
variant=${i}
|
|
6127
6127
|
@click=${()=>!this.isDisabled&&this.component.handleEvent(l,this.element)}
|
|
6128
6128
|
customStyle=${S(f)}
|
|
6129
|
-
customClass=${
|
|
6129
|
+
customClass=${p}
|
|
6130
6130
|
type=${this.element.properties.submit?"submit":"button"}
|
|
6131
6131
|
>
|
|
6132
6132
|
${this.renderIcon()} ${n}
|
|
6133
6133
|
</rtg-button>
|
|
6134
|
-
`}};Ps([a({type:Object})],exports.SbButtonRenderer.prototype,"element",2);Ps([a({attribute:!1})],exports.SbButtonRenderer.prototype,"component",2);Ps([k()],exports.SbButtonRenderer.prototype,"theme",2);exports.SbButtonRenderer=Ps([
|
|
6134
|
+
`}};Ps([a({type:Object})],exports.SbButtonRenderer.prototype,"element",2);Ps([a({attribute:!1})],exports.SbButtonRenderer.prototype,"component",2);Ps([k()],exports.SbButtonRenderer.prototype,"theme",2);exports.SbButtonRenderer=Ps([h("sb-button-renderer")],exports.SbButtonRenderer);var Sv=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,Sn=(e,t,o,s)=>{for(var r=s>1?void 0:s?$v(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Sv(t,o,r),r};exports.SbDividerRenderer=class extends ${createRenderRoot(){return this}render(){var p,b,f,y,x,_,C,w,E,P,q,M,A;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(f=(b=(p=this.component.customizations)==null?void 0:p.byType)==null?void 0:b.divider)==null?void 0:f.dividerContainer,this.element.id,this.component.customizations),{class:s,style:r}=R(Bm,{},(_=(x=(y=this.component.customizations)==null?void 0:y.byType)==null?void 0:x.divider)==null?void 0:_.dividerLine,this.element.id,this.component.customizations),{class:i,style:n}=R(qm,{},(E=(w=(C=this.component.customizations)==null?void 0:C.byType)==null?void 0:w.divider)==null?void 0:E.dividerText,this.element.id,this.component.customizations),{base:l,responsive:d}=dt(o);return ut(this.element.id,d,((q=(P=this.component.customizations)==null?void 0:P.config)==null?void 0:q.breakpoints)??tt),(M=this.element.properties)!=null&&M.text?c`
|
|
6135
6135
|
<div
|
|
6136
6136
|
id=${this.element.id}
|
|
6137
6137
|
class=${t}
|
|
@@ -6149,7 +6149,7 @@ body {
|
|
|
6149
6149
|
class=${t}
|
|
6150
6150
|
style=${S(l)}
|
|
6151
6151
|
/>
|
|
6152
|
-
`}};Sn([a({type:Object})],exports.SbDividerRenderer.prototype,"element",2);Sn([a({attribute:!1})],exports.SbDividerRenderer.prototype,"component",2);exports.SbDividerRenderer=Sn([
|
|
6152
|
+
`}};Sn([a({type:Object})],exports.SbDividerRenderer.prototype,"element",2);Sn([a({attribute:!1})],exports.SbDividerRenderer.prototype,"component",2);exports.SbDividerRenderer=Sn([h("sb-divider-renderer")],exports.SbDividerRenderer);var Ev=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,$n=(e,t,o,s)=>{for(var r=s>1?void 0:s?kv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Ev(t,o,r),r};exports.SbCheckboxRenderer=class extends ${createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate()}patchComponentUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...o)=>{const s=t(...o);return this.requestUpdate(),s}}get fieldKey(){return this.element.data_key||this.element.id}get isChecked(){const{data_key:t,properties:o}=this.element;return t?this.component.formData[t]??o.initial_value??!1:o.initial_value||!1}get errors(){return this.element.data_key?this.component.errors[this.element.data_key]||[]:[]}handleChange(t){if(!this.element.data_key)return;const o=t.target;this.component.handleInputChange(this.element.data_key,o.checked),this.component.handleFocus(this.element.data_key)}handleFocus(t){this.element.data_key&&this.component.handleFocus(t.detail.dataKey)}toggleCheckboxFromLabel(){const t=this.querySelector(`#${this.fieldKey}`);t&&t.click()}renderLabel(t,o){return c`
|
|
6153
6153
|
<rtg-label
|
|
6154
6154
|
class=${t}
|
|
6155
6155
|
style=${S(o)}
|
|
@@ -6164,7 +6164,7 @@ body {
|
|
|
6164
6164
|
style=${S(o)}
|
|
6165
6165
|
.content=${this.errors[0]}
|
|
6166
6166
|
></sb-error>
|
|
6167
|
-
`}render(){var
|
|
6167
|
+
`}render(){var p,b,f,y,x,_,C,w;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,void 0,this.element.id,this.component.customizations),{class:s,style:r}=R(Mm,{},(f=(b=(p=this.component.customizations)==null?void 0:p.byType)==null?void 0:b.labels)==null?void 0:f.checkboxLabel,"",this.component.customizations),{class:i,style:n}=R(Cc,{},(_=(x=(y=this.component.customizations)==null?void 0:y.byType)==null?void 0:x.errors)==null?void 0:_.inputError,"",this.component.customizations),{base:l,responsive:d}=dt(o);return ut(this.element.id,d,((w=(C=this.component.customizations)==null?void 0:C.config)==null?void 0:w.breakpoints)??tt),c`
|
|
6168
6168
|
<div style=${S(l)} class=${t}>
|
|
6169
6169
|
<rtg-checkbox
|
|
6170
6170
|
class="sb-inline-block sb-w-fit"
|
|
@@ -6177,7 +6177,7 @@ body {
|
|
|
6177
6177
|
${this.renderLabel(s,r)}
|
|
6178
6178
|
</div>
|
|
6179
6179
|
${this.renderError(i,n)}
|
|
6180
|
-
`}};$n([a({type:Object})],exports.SbCheckboxRenderer.prototype,"element",2);$n([a({attribute:!1})],exports.SbCheckboxRenderer.prototype,"component",2);exports.SbCheckboxRenderer=$n([
|
|
6180
|
+
`}};$n([a({type:Object})],exports.SbCheckboxRenderer.prototype,"element",2);$n([a({attribute:!1})],exports.SbCheckboxRenderer.prototype,"component",2);exports.SbCheckboxRenderer=$n([h("sb-checkbox-renderer")],exports.SbCheckboxRenderer);var Rv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,qc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ov(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Rv(t,o,r),r};exports.SbError=class extends ${constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return c`<p>${this.content}</p>`}};qc([a({type:String})],exports.SbError.prototype,"content",2);exports.SbError=qc([h("sb-error")],exports.SbError);var Av=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,Vc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Pv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Av(t,o,r),r};exports.SbHint=class extends ${constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return c`<p class="sb-mt-2">${this.content}</p>`}};Vc([a({type:String})],exports.SbHint.prototype,"content",2);exports.SbHint=Vc([h("sb-hint")],exports.SbHint);var Iv=Object.defineProperty,Tv=Object.getOwnPropertyDescriptor,Hr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Tv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Iv(t,o,r),r};exports.SbWatermark=class extends ${constructor(){super(...arguments),this.label="Powered by",this.image_url="",this.content="",this.customId="",this.fontSize="12px"}render(){const t=wn(this.image_url);return c`
|
|
6181
6181
|
<style>
|
|
6182
6182
|
#${this.customId} {
|
|
6183
6183
|
display: flex;
|
|
@@ -6210,7 +6210,7 @@ body {
|
|
|
6210
6210
|
/>`}
|
|
6211
6211
|
</span>
|
|
6212
6212
|
</div>
|
|
6213
|
-
`}};Hr([a()],exports.SbWatermark.prototype,"label",2);Hr([a()],exports.SbWatermark.prototype,"image_url",2);Hr([a({type:String})],exports.SbWatermark.prototype,"content",2);Hr([a({type:String})],exports.SbWatermark.prototype,"customId",2);Hr([a({type:String})],exports.SbWatermark.prototype,"fontSize",2);exports.SbWatermark=Hr([
|
|
6213
|
+
`}};Hr([a()],exports.SbWatermark.prototype,"label",2);Hr([a()],exports.SbWatermark.prototype,"image_url",2);Hr([a({type:String})],exports.SbWatermark.prototype,"content",2);Hr([a({type:String})],exports.SbWatermark.prototype,"customId",2);Hr([a({type:String})],exports.SbWatermark.prototype,"fontSize",2);exports.SbWatermark=Hr([h("sb-watermark")],exports.SbWatermark);var Lv=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,Gr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Dv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Lv(t,o,r),r};exports.SbSpinner=class extends ${constructor(){super(...arguments),this.size=16,this.strokeWidth=2,this.color="currentColor",this.label="Loading…",this.duration=1}createRenderRoot(){return this}render(){const t=Math.max(0,(this.size-this.strokeWidth)/2),o=2*Math.PI*t,s=t-this.strokeWidth/2;return c`
|
|
6214
6214
|
<style>
|
|
6215
6215
|
.chrome-spinner {
|
|
6216
6216
|
width: ${this.size}px;
|
|
@@ -6279,12 +6279,12 @@ body {
|
|
|
6279
6279
|
></circle>
|
|
6280
6280
|
</svg>
|
|
6281
6281
|
${this.label?c`<span class="sr-only">${this.label}</span>`:null}
|
|
6282
|
-
`}};Gr([a({type:Number})],exports.SbSpinner.prototype,"size",2);Gr([a({type:Number,attribute:"stroke-width"})],exports.SbSpinner.prototype,"strokeWidth",2);Gr([a()],exports.SbSpinner.prototype,"color",2);Gr([a()],exports.SbSpinner.prototype,"label",2);Gr([a({type:Number})],exports.SbSpinner.prototype,"duration",2);exports.SbSpinner=Gr([
|
|
6282
|
+
`}};Gr([a({type:Number})],exports.SbSpinner.prototype,"size",2);Gr([a({type:Number,attribute:"stroke-width"})],exports.SbSpinner.prototype,"strokeWidth",2);Gr([a()],exports.SbSpinner.prototype,"color",2);Gr([a()],exports.SbSpinner.prototype,"label",2);Gr([a({type:Number})],exports.SbSpinner.prototype,"duration",2);exports.SbSpinner=Gr([h("sb-spinner")],exports.SbSpinner);var zv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,En=(e,t,o,s)=>{for(var r=s>1?void 0:s?jv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&zv(t,o,r),r};exports.LinearLoader=class extends ${constructor(){super(...arguments),this.customClass="",this.customStyle={}}createRenderRoot(){return this}render(){return c`
|
|
6283
6283
|
<div
|
|
6284
6284
|
class=${G(Vm,this.customClass)}
|
|
6285
6285
|
style=${S(this.customStyle)}
|
|
6286
6286
|
></div>
|
|
6287
|
-
`}};En([a({type:String})],exports.LinearLoader.prototype,"customClass",2);En([a({type:Object})],exports.LinearLoader.prototype,"customStyle",2);exports.LinearLoader=En([
|
|
6287
|
+
`}};En([a({type:String})],exports.LinearLoader.prototype,"customClass",2);En([a({type:Object})],exports.LinearLoader.prototype,"customStyle",2);exports.LinearLoader=En([h("linear-loader")],exports.LinearLoader);var Uv=Object.defineProperty,Nv=Object.getOwnPropertyDescriptor,kn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Nv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Uv(t,o,r),r};exports.SbOtpRenderer=class extends ${createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}patchComponentRequestUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...o)=>{const s=t(...o);return this.requestUpdate(),s}}renderOtpGroups(t,o){const s=Array.from({length:o},(r,i)=>c`<rtg-input-otp-slot index=${i}></rtg-input-otp-slot>`);switch(t){case"with_spacing":return c`<rtg-input-otp-group class="gap-2"
|
|
6288
6288
|
>${s}</rtg-input-otp-group
|
|
6289
6289
|
>`;case"simple":{const r=Math.ceil(o/2);return c`
|
|
6290
6290
|
<rtg-input-otp-group>${s.slice(0,r)}</rtg-input-otp-group>
|
|
@@ -6298,7 +6298,7 @@ body {
|
|
|
6298
6298
|
>
|
|
6299
6299
|
<rtg-input-otp-separator></rtg-input-otp-separator>
|
|
6300
6300
|
<rtg-input-otp-group>${s.slice(r*2)}</rtg-input-otp-group>
|
|
6301
|
-
`}default:return c`<rtg-input-otp-group>${s}</rtg-input-otp-group>`}}render(){var l,d,
|
|
6301
|
+
`}default:return c`<rtg-input-otp-group>${s}</rtg-input-otp-group>`}}render(){var l,d,p,b,f;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(p=(d=(l=this.component.customizations)==null?void 0:l.byType)==null?void 0:d.inputs)==null?void 0:p.inputField,this.element.id,this.component.customizations),s=this.element.properties.variant||"digits_only",r=this.element.properties.length||6,{base:i,responsive:n}=dt(o);return ut(this.element.id,n,((f=(b=this.component.customizations)==null?void 0:b.config)==null?void 0:f.breakpoints)??tt),c`
|
|
6302
6302
|
<rtg-input-otp
|
|
6303
6303
|
length=${r}
|
|
6304
6304
|
timeout=${this.element.properties.timeout}
|
|
@@ -6313,28 +6313,28 @@ body {
|
|
|
6313
6313
|
>
|
|
6314
6314
|
${this.renderOtpGroups(s,r)}
|
|
6315
6315
|
</rtg-input-otp>
|
|
6316
|
-
`}};kn([a({type:Object})],exports.SbOtpRenderer.prototype,"element",2);kn([a({attribute:!1})],exports.SbOtpRenderer.prototype,"component",2);exports.SbOtpRenderer=kn([
|
|
6316
|
+
`}};kn([a({type:Object})],exports.SbOtpRenderer.prototype,"element",2);kn([a({attribute:!1})],exports.SbOtpRenderer.prototype,"component",2);exports.SbOtpRenderer=kn([h("sb-otp-renderer")],exports.SbOtpRenderer);var Mv=Object.defineProperty,Fv=Object.getOwnPropertyDescriptor,Rn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Fv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Mv(t,o,r),r};exports.SbErrorRenderer=class extends ${createRenderRoot(){return this}render(){var i,n,l,d,p;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(l=(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.errors)==null?void 0:l.serviceError,this.element.id,this.component.customizations),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((p=(d=this.component.customizations)==null?void 0:d.config)==null?void 0:p.breakpoints)??tt),c`
|
|
6317
6317
|
<rtg-alert
|
|
6318
6318
|
customClass=${t}
|
|
6319
6319
|
style=${S(s)}
|
|
6320
6320
|
message=${this.element.properties.message}
|
|
6321
6321
|
variant="error"
|
|
6322
6322
|
></rtg-alert>
|
|
6323
|
-
`}};Rn([a({type:Object})],exports.SbErrorRenderer.prototype,"element",2);Rn([a({attribute:!1})],exports.SbErrorRenderer.prototype,"component",2);exports.SbErrorRenderer=Rn([
|
|
6323
|
+
`}};Rn([a({type:Object})],exports.SbErrorRenderer.prototype,"element",2);Rn([a({attribute:!1})],exports.SbErrorRenderer.prototype,"component",2);exports.SbErrorRenderer=Rn([h("sb-error-renderer")],exports.SbErrorRenderer);var Bv=Object.defineProperty,qv=Object.getOwnPropertyDescriptor,On=(e,t,o,s)=>{for(var r=s>1?void 0:s?qv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Bv(t,o,r),r};exports.SbHtmlRenderer=class extends ${constructor(){super(...arguments),this._onClick=t=>{if(!this.component||!this.element)return;const o=t.composedPath().find(s=>{var r;return s instanceof HTMLElement&&((r=s.dataset)==null?void 0:r.event)});o!=null&&o.dataset.event&&this.component.handleEvent(o.dataset.event,this.element)}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._onClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._onClick)}render(){var i,n;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,void 0,this.element.id,void 0),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((n=(i=this.component.customizations)==null?void 0:i.config)==null?void 0:n.breakpoints)??tt),c`
|
|
6324
6324
|
<div id=${this.element.id} class=${t} style=${S(s)}>
|
|
6325
6325
|
${Fi(Bf(this.element.properties.content))}
|
|
6326
6326
|
</div>
|
|
6327
|
-
`}};On([a({type:Object})],exports.SbHtmlRenderer.prototype,"element",2);On([a({attribute:!1})],exports.SbHtmlRenderer.prototype,"component",2);exports.SbHtmlRenderer=On([
|
|
6327
|
+
`}};On([a({type:Object})],exports.SbHtmlRenderer.prototype,"element",2);On([a({attribute:!1})],exports.SbHtmlRenderer.prototype,"component",2);exports.SbHtmlRenderer=On([h("sb-html-renderer")],exports.SbHtmlRenderer);var Vv=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,An=(e,t,o,s)=>{for(var r=s>1?void 0:s?Hv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Vv(t,o,r),r};exports.SbGapRenderer=class extends ${createRenderRoot(){return this}render(){var l,d;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,void 0,this.element.id,void 0),s=this.element.style?this.element.style["flex-grow"]:"0";s!=null&&this.style.setProperty("flex-grow",String(s));let r={width:"0px",height:"0px"};this.element.properties.type==="vertical"?r={width:"1px",height:this.element.properties.size}:r={height:"1px",width:this.element.properties.size};const{base:i,responsive:n}=dt(o);return ut(this.element.id,n,((d=(l=this.component.customizations)==null?void 0:l.config)==null?void 0:d.breakpoints)??tt),c`
|
|
6328
6328
|
<div
|
|
6329
6329
|
id=${this.element.id}
|
|
6330
6330
|
class=${t}
|
|
6331
6331
|
style=${S({...i,...r})}
|
|
6332
6332
|
></div>
|
|
6333
|
-
`}};An([a({type:Object})],exports.SbGapRenderer.prototype,"element",2);An([a({attribute:!1})],exports.SbGapRenderer.prototype,"component",2);exports.SbGapRenderer=An([
|
|
6333
|
+
`}};An([a({type:Object})],exports.SbGapRenderer.prototype,"element",2);An([a({attribute:!1})],exports.SbGapRenderer.prototype,"component",2);exports.SbGapRenderer=An([h("sb-gap-renderer")],exports.SbGapRenderer);var Gv=Object.defineProperty,Wv=Object.getOwnPropertyDescriptor,Is=(e,t,o,s)=>{for(var r=s>1?void 0:s?Wv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Gv(t,o,r),r};exports.SbCountdownRenderer=class extends ${constructor(){super(...arguments),this.seconds=0,this.timerId=null}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){var o;const t=((o=this.element)==null?void 0:o.properties.duration)??5;this.seconds=Math.max(0,t),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer();const t=this.element.properties.redirect_url??"/";window.location.href=t}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.element.properties.content??""} ${this.seconds}s...`}render(){var i,n,l,d,p;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(l=(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.timer)==null?void 0:l.countdowns,this.element.id,this.component.customizations),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((p=(d=this.component.customizations)==null?void 0:d.config)==null?void 0:p.breakpoints)??tt),c`
|
|
6334
6334
|
<div id=${this.element.id} class=${t} style=${S(s)}>
|
|
6335
6335
|
<span>${this.renderContent()}</span>
|
|
6336
6336
|
</div>
|
|
6337
|
-
`}};Is([a({type:Object})],exports.SbCountdownRenderer.prototype,"element",2);Is([a({attribute:!1})],exports.SbCountdownRenderer.prototype,"component",2);Is([k()],exports.SbCountdownRenderer.prototype,"seconds",2);exports.SbCountdownRenderer=Is([
|
|
6337
|
+
`}};Is([a({type:Object})],exports.SbCountdownRenderer.prototype,"element",2);Is([a({attribute:!1})],exports.SbCountdownRenderer.prototype,"component",2);Is([k()],exports.SbCountdownRenderer.prototype,"seconds",2);exports.SbCountdownRenderer=Is([h("sb-countdown-renderer")],exports.SbCountdownRenderer);var Kv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,Pn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Yv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Kv(t,o,r),r};exports.SbSpinnerRenderer=class extends ${createRenderRoot(){return this}render(){var i,n,l,d,p;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(l=(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.loader)==null?void 0:l.spinner,this.element.id,this.component.customizations),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((p=(d=this.component.customizations)==null?void 0:d.config)==null?void 0:p.breakpoints)??tt),c`
|
|
6338
6338
|
<sb-spinner
|
|
6339
6339
|
size="20"
|
|
6340
6340
|
stroke-width="2"
|
|
@@ -6343,7 +6343,7 @@ body {
|
|
|
6343
6343
|
class=${t}
|
|
6344
6344
|
style=${S(s)}
|
|
6345
6345
|
></sb-spinner>
|
|
6346
|
-
`}};Pn([a({type:Object})],exports.SbSpinnerRenderer.prototype,"element",2);Pn([a({attribute:!1})],exports.SbSpinnerRenderer.prototype,"component",2);exports.SbSpinnerRenderer=Pn([
|
|
6346
|
+
`}};Pn([a({type:Object})],exports.SbSpinnerRenderer.prototype,"element",2);Pn([a({attribute:!1})],exports.SbSpinnerRenderer.prototype,"component",2);exports.SbSpinnerRenderer=Pn([h("sb-spinner-renderer")],exports.SbSpinnerRenderer);function In(e,t,o="light"){if(!t)return c``;let s=t.hidden??!1;switch(t.element_type){case"container":return c`<sb-container-renderer
|
|
6347
6347
|
.component=${e}
|
|
6348
6348
|
.element=${t}
|
|
6349
6349
|
?hidden=${s}
|
|
@@ -6405,20 +6405,20 @@ body {
|
|
|
6405
6405
|
.component=${e}
|
|
6406
6406
|
.element=${t}
|
|
6407
6407
|
?hidden=${s}
|
|
6408
|
-
></sb-countdown-renderer>`;default:return c`<p>Unknown element type: ${t.element_type}</p>`}}var Zv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Tn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Xv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Zv(t,o,r),r};exports.SbContainerRenderer=class extends ${constructor(){super(...arguments),this.prevChildCount=0,this.prevContainerWidth=0,this.widthUpdateScheduled=!1}async firstUpdated(t){await this.updateComplete,await Li(),this.updateWidthsIfNeeded()}async updated(t){await this.updateComplete,await Li(),this.updateWidthsIfNeeded()}updateWidthsIfNeeded(){var r,i;if(!((i=(r=this.element)==null?void 0:r.class)!=null&&i.includes("sb_social_wrap")))return;const t=Array.from(this.querySelectorAll("sb-button-renderer")),o=t.length,s=this.offsetWidth;o===this.prevChildCount&&s===this.prevContainerWidth||(this.prevChildCount=o,this.prevContainerWidth=s,this.widthUpdateScheduled||(this.widthUpdateScheduled=!0,Ff(this.querySelector("div"),t).finally(()=>{this.widthUpdateScheduled=!1})))}createRenderRoot(){return this}get containerStyles(){const t=this.element.properties.type==="flex_column";return{...this.element.style,display:"flex","flex-direction":t?"column":"row"}}renderChildren(){return this.element.properties.children?this.element.properties.children.map(t=>In(this.component,t)):I}render(){var i,n,l,d,
|
|
6408
|
+
></sb-countdown-renderer>`;default:return c`<p>Unknown element type: ${t.element_type}</p>`}}var Zv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,Tn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Xv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Zv(t,o,r),r};exports.SbContainerRenderer=class extends ${constructor(){super(...arguments),this.prevChildCount=0,this.prevContainerWidth=0,this.widthUpdateScheduled=!1}async firstUpdated(t){await this.updateComplete,await Li(),this.updateWidthsIfNeeded()}async updated(t){await this.updateComplete,await Li(),this.updateWidthsIfNeeded()}updateWidthsIfNeeded(){var r,i;if(!((i=(r=this.element)==null?void 0:r.class)!=null&&i.includes("sb_social_wrap")))return;const t=Array.from(this.querySelectorAll("sb-button-renderer")),o=t.length,s=this.offsetWidth;o===this.prevChildCount&&s===this.prevContainerWidth||(this.prevChildCount=o,this.prevContainerWidth=s,this.widthUpdateScheduled||(this.widthUpdateScheduled=!0,Ff(this.querySelector("div"),t).finally(()=>{this.widthUpdateScheduled=!1})))}createRenderRoot(){return this}get containerStyles(){const t=this.element.properties.type==="flex_column";return{...this.element.style,display:"flex","flex-direction":t?"column":"row"}}renderChildren(){return this.element.properties.children?this.element.properties.children.map(t=>In(this.component,t)):I}render(){var i,n,l,d,p;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.containerStyles,(l=(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.divider)==null?void 0:l.dividerContainer,this.element.id,this.component.customizations,!0),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((p=(d=this.component.customizations)==null?void 0:d.config)==null?void 0:p.breakpoints)??tt),c`
|
|
6409
6409
|
<div id=${this.element.id} class=${t} style=${S(s)}>
|
|
6410
6410
|
${this.renderChildren()}
|
|
6411
6411
|
</div>
|
|
6412
|
-
`}};Tn([a({type:Object})],exports.SbContainerRenderer.prototype,"element",2);Tn([a({attribute:!1})],exports.SbContainerRenderer.prototype,"component",2);exports.SbContainerRenderer=Tn([
|
|
6412
|
+
`}};Tn([a({type:Object})],exports.SbContainerRenderer.prototype,"element",2);Tn([a({attribute:!1})],exports.SbContainerRenderer.prototype,"component",2);exports.SbContainerRenderer=Tn([h("sb-container-renderer")],exports.SbContainerRenderer);var Jv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,Ts=(e,t,o,s)=>{for(var r=s>1?void 0:s?Qv(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&Jv(t,o,r),r};exports.SbImage=class extends ${constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){var n,l;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,void 0,this.element.id,void 0),s=fs(this.element.properties.image_url,this.theme),{base:r,responsive:i}=dt(o);return ut(this.element.id,i,((l=(n=this.component.customizations)==null?void 0:n.config)==null?void 0:l.breakpoints)??tt),c`
|
|
6413
6413
|
<img class=${t} src=${s} style=${S(r)} />
|
|
6414
|
-
`}};Ts([a({type:Object})],exports.SbImage.prototype,"element",2);Ts([a({attribute:!1})],exports.SbImage.prototype,"component",2);Ts([k()],exports.SbImage.prototype,"theme",2);exports.SbImage=Ts([
|
|
6414
|
+
`}};Ts([a({type:Object})],exports.SbImage.prototype,"element",2);Ts([a({attribute:!1})],exports.SbImage.prototype,"component",2);Ts([k()],exports.SbImage.prototype,"theme",2);exports.SbImage=Ts([h("sb-image")],exports.SbImage);var ty=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,Ln=(e,t,o,s)=>{for(var r=s>1?void 0:s?ey(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ty(t,o,r),r};exports.SbWatermarkRenderer=class extends ${constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){if(!this.element)return null;const{class:t}=R(this.element.class,void 0,void 0,this.element.id,void 0),o=fs(this.element.properties.image_url,this.theme);return c`
|
|
6415
6415
|
<sb-watermark
|
|
6416
6416
|
customId=${this.element.id}
|
|
6417
6417
|
class=${G(t,fn)}
|
|
6418
6418
|
label=${this.element.properties.label}
|
|
6419
6419
|
image_url=${o}
|
|
6420
6420
|
></sb-watermark>
|
|
6421
|
-
`}};Ln([a({type:Object})],exports.SbWatermarkRenderer.prototype,"element",2);Ln([k()],exports.SbWatermarkRenderer.prototype,"theme",2);exports.SbWatermarkRenderer=Ln([
|
|
6421
|
+
`}};Ln([a({type:Object})],exports.SbWatermarkRenderer.prototype,"element",2);Ln([k()],exports.SbWatermarkRenderer.prototype,"theme",2);exports.SbWatermarkRenderer=Ln([h("sb-watermark-renderer")],exports.SbWatermarkRenderer);var ry=Object.defineProperty,oy=Object.getOwnPropertyDescriptor,Ls=(e,t,o,s)=>{for(var r=s>1?void 0:s?oy(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ry(t,o,r),r};exports.SbLogoRenderer=class extends ${constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){var l,d,p,b;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(d=(l=this.component.customizations)==null?void 0:l.byType)==null?void 0:d.logo,this.element.id,this.component.customizations),{base:s,responsive:r}=dt(o);ut(this.element.id,r,((b=(p=this.component.customizations)==null?void 0:p.config)==null?void 0:b.breakpoints)??tt);const i=fs(this.element.properties.image_url,this.theme),n=i?wn(i):null;return n?c`
|
|
6422
6422
|
<div class=${t} style=${S(s)}>
|
|
6423
6423
|
${Cn(n)}
|
|
6424
6424
|
</div>
|
|
@@ -6428,7 +6428,7 @@ body {
|
|
|
6428
6428
|
style=${S(s)}
|
|
6429
6429
|
src=${Bc(i)}
|
|
6430
6430
|
/>
|
|
6431
|
-
`}};Ls([a({type:Object})],exports.SbLogoRenderer.prototype,"element",2);Ls([a({attribute:!1})],exports.SbLogoRenderer.prototype,"component",2);Ls([k()],exports.SbLogoRenderer.prototype,"theme",2);exports.SbLogoRenderer=Ls([
|
|
6431
|
+
`}};Ls([a({type:Object})],exports.SbLogoRenderer.prototype,"element",2);Ls([a({attribute:!1})],exports.SbLogoRenderer.prototype,"component",2);Ls([k()],exports.SbLogoRenderer.prototype,"theme",2);exports.SbLogoRenderer=Ls([h("sb-logo-renderer")],exports.SbLogoRenderer);var sy=Object.defineProperty,iy=Object.getOwnPropertyDescriptor,Dn=(e,t,o,s)=>{for(var r=s>1?void 0:s?iy(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&sy(t,o,r),r};const ny=400;exports.SbInputRenderer=class extends ${createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}patchComponentRequestUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...o)=>{const s=t(...o);return this.requestUpdate(),s}}getCustomization(t,o,s){var r,i,n;return R(t,o,s?(n=(i=(r=this.component.customizations)==null?void 0:r.byType)==null?void 0:i.inputs)==null?void 0:n[s]:void 0,this.element.id,this.component.customizations)}getErrorState(){const t=this.component;return t.__rtg_errorState=t.__rtg_errorState||{visible:{},timers:{},lastText:{}},t.__rtg_errorState}manageErrorAnimation(t){const o=this.getErrorState(),s=this.element.data_key||this.element.id,r=t.length>0,i=!!o.visible[s];let n=!1,l="";r?(n=!0,l="sb-error-in",o.lastText[s]=t[0],o.timers[s]&&clearTimeout(o.timers[s]),delete o.timers[s],o.visible[s]=!0):i&&!r&&(n=!0,l="sb-error-out",o.timers[s]||(o.timers[s]=setTimeout(()=>{o.visible[s]=!1,delete o.timers[s],delete o.lastText[s],this.requestUpdate()},ny+20)));const d=o.lastText[s]||t[0]||"";return{shouldRender:n,animClass:l,errorContent:d}}setInitialValue(){this.element.data_key&&this.element.properties.initial_value&&this.component.handleInputChange(this.element.data_key,this.element.properties.initial_value)}updated(t){t.has("element")&&this.setInitialValue()}render(){var x,_;if(!this.element)return null;const t=this.element.data_key?this.component.errors[this.element.data_key]||[]:[],{class:o,style:s}=this.getCustomization(this.element.class,this.element.style,"inputField"),{class:r,style:i}=this.getCustomization(Fm,{},"inputHint"),{class:n,style:l}=this.getCustomization(Cc,{},"inputError"),{shouldRender:d,animClass:p,errorContent:b}=this.manageErrorAnimation(t),{base:f,responsive:y}=dt(s);return ut(this.element.id,y,((_=(x=this.component.customizations)==null?void 0:x.config)==null?void 0:_.breakpoints)??tt),c`
|
|
6432
6432
|
<rtg-input
|
|
6433
6433
|
id=${this.element.data_key}
|
|
6434
6434
|
type=${this.element.properties.type}
|
|
@@ -6453,17 +6453,17 @@ body {
|
|
|
6453
6453
|
class="sb-error-wrapper ${t.length?"sb-error-visible":"sb-error-hidden"}"
|
|
6454
6454
|
>
|
|
6455
6455
|
<sb-error
|
|
6456
|
-
class="${n} ${
|
|
6456
|
+
class="${n} ${p}"
|
|
6457
6457
|
style=${S(l)}
|
|
6458
6458
|
.content=${b}
|
|
6459
6459
|
></sb-error>
|
|
6460
6460
|
</div>
|
|
6461
6461
|
`:""}
|
|
6462
|
-
`}};Dn([a({type:Object})],exports.SbInputRenderer.prototype,"element",2);Dn([a({attribute:!1})],exports.SbInputRenderer.prototype,"component",2);exports.SbInputRenderer=Dn([
|
|
6462
|
+
`}};Dn([a({type:Object})],exports.SbInputRenderer.prototype,"element",2);Dn([a({attribute:!1})],exports.SbInputRenderer.prototype,"component",2);exports.SbInputRenderer=Dn([h("sb-input-renderer")],exports.SbInputRenderer);var ay=Object.defineProperty,ly=Object.getOwnPropertyDescriptor,zn=(e,t,o,s)=>{for(var r=s>1?void 0:s?ly(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&ay(t,o,r),r};exports.SbLabelRenderer=class extends ${createRenderRoot(){return this}render(){var i,n,l,d,p;if(!this.element)return null;const{class:t,style:o}=R(this.element.class,this.element.style,(l=(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.labels)==null?void 0:l.inputLabel,this.element.id,this.component.customizations),{base:s,responsive:r}=dt(o);return ut(this.element.id,r,((p=(d=this.component.customizations)==null?void 0:d.config)==null?void 0:p.breakpoints)??tt),c`
|
|
6463
6463
|
<rtg-label class=${t} style=${S(s)}>
|
|
6464
6464
|
${this.element.properties.content}
|
|
6465
6465
|
</rtg-label>
|
|
6466
|
-
`}};zn([a({type:Object})],exports.SbLabelRenderer.prototype,"element",2);zn([a({attribute:!1})],exports.SbLabelRenderer.prototype,"component",2);exports.SbLabelRenderer=zn([
|
|
6466
|
+
`}};zn([a({type:Object})],exports.SbLabelRenderer.prototype,"element",2);zn([a({attribute:!1})],exports.SbLabelRenderer.prototype,"component",2);exports.SbLabelRenderer=zn([h("sb-label-renderer")],exports.SbLabelRenderer);var cy=Object.defineProperty,dy=Object.getOwnPropertyDescriptor,Re=(e,t,o,s)=>{for(var r=s>1?void 0:s?dy(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&cy(t,o,r),r};exports.SaasBaseLayout=class extends ${constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.formData={},this.errors={},this._prevErrors={},this.loadingButtons={},this.eventEmitting=!1,this.theme=this.getTheme(),this.prevHeight=0,this.resizeRAF=null,this.isAnimating=!1}createRenderRoot(){return this}getTheme(){return document.documentElement.getAttribute("data-theme")}updated(t){t.has("renderSpec")&&this.renderSpec&&(this.formData=this.collectDataKeys(this.renderSpec.root_container)),JSON.stringify(this._prevErrors)!==JSON.stringify(this.errors)&&Promise.resolve().then(()=>this.animateHeight()),this._prevErrors={...this.errors}}_findSubmitButton(t){const o=s=>{if(s.element_type==="button"&&s.properties.submit===!0)return s;if(s.element_type==="container")for(const r of s.properties.children){const i=o(r);if(i)return i}return null};return o(t)}_wrapSubmitButtons(t){return t}render(){var i,n,l;const{class:t,style:o}=R("",{},(l=(n=(i=this.customizations)==null?void 0:i.byType)==null?void 0:n.loader)==null?void 0:l.linear,"",this.customizations);if(!this.renderSpec)return c`<linear-loader
|
|
6467
6467
|
class="sb-fixed sb-w-full sb-top-0 sb-left-0"
|
|
6468
6468
|
customClass=${t}
|
|
6469
6469
|
.customStyle=${o}
|
|
@@ -6485,9 +6485,9 @@ body {
|
|
|
6485
6485
|
${this._wrapSubmitButtons(In(this,this.renderSpec.root_container,this.theme))}
|
|
6486
6486
|
</div>
|
|
6487
6487
|
</form>
|
|
6488
|
-
`}async _onSubmit(t,o){t.preventDefault();const s=t.submitter;if(!s||!o||this.loadingButtons[o]||s.id!==o)return;const r=this._findButtonById(o);r&&await this.handleEvent(r.properties.event,r)}_findButtonById(t){const o=s=>{if(s.element_type==="button"&&s.id===t)return s;if(s.element_type==="container")for(const r of s.properties.children){const i=o(r);if(i)return i}return null};return this.renderSpec?o(this.renderSpec.root_container):null}animateHeight(){var d,
|
|
6488
|
+
`}async _onSubmit(t,o){t.preventDefault();const s=t.submitter;if(!s||!o||this.loadingButtons[o]||s.id!==o)return;const r=this._findButtonById(o);r&&await this.handleEvent(r.properties.event,r)}_findButtonById(t){const o=s=>{if(s.element_type==="button"&&s.id===t)return s;if(s.element_type==="container")for(const r of s.properties.children){const i=o(r);if(i)return i}return null};return this.renderSpec?o(this.renderSpec.root_container):null}animateHeight(){var d,p;const o=(((p=(d=this.customizations)==null?void 0:d.config)==null?void 0:p.breakpoints)??tt).sm,s=o?parseInt(o.toString().replace(/\D/g,""),10):640;if(window.innerWidth<=s)return;const i=this.renderRoot.querySelector("#root-container");if(!i)return;const n=i.scrollHeight;if(this.prevHeight===0){this.prevHeight=n,i.style.height="auto";return}if(n===this.prevHeight||this.isAnimating)return;const l=Math.abs(n-this.prevHeight);this.isAnimating=!0,this.resizeRAF&&cancelAnimationFrame(this.resizeRAF),this.resizeRAF=requestAnimationFrame(()=>{const b=Math.min(600,Math.max(200,l*1));i.style.transition="none",i.style.height=this.prevHeight+"px",i.offsetHeight,i.style.transition=`height ${b}ms ease`,i.style.height=n+"px";const f=()=>{i.style.transition="",i.style.height="auto",this.prevHeight=i.scrollHeight,this.isAnimating=!1};let y=!1;const x=()=>{y||(y=!0,f())};i.addEventListener("transitionend",x,{once:!0}),setTimeout(x,b)})}collectDataKeys(t){const o={},s=r=>{if(r&&((r.element_type==="input"||r.element_type==="checkbox"||r.element_type==="otp")&&r.data_key&&!r.hidden&&(o[r.data_key]=""),r.element_type==="container"))for(const i of r.properties.children)s(i)};return s(t),o}handleInputChange(t,o){o!==void 0&&(this.formData={...this.formData,[t]:o},Hs(this,t,"change"),this.requestUpdate())}handleBlur(t){Hs(this,t,"blur"),this.requestUpdate()}handleFocus(t,o){var i;(i=this.errors[t])!=null&&i.length&&(this.errors={...this.errors,[t]:[]});const s=`${o}-error`,r=document.getElementById(s);r&&r.parentNode&&r.parentNode.removeChild(r)}async handleEvent(t,o){var s,r;if(o.element_type==="html")try{await ct.processLoginflowEvent({event:t,data:{}})}finally{this.eventEmitting=!1}else if(o.element_type==="otp")try{await ct.processLoginflowEvent({event:t,data:this.formData})}finally{this.eventEmitting=!1}else{if(this.loadingButtons[o.id])return;if((s=o.properties.requires_valid)==null||s.forEach(n=>{Hs(this,n,"submit"),this.requestUpdate()}),!(((r=o.properties.requires_valid)==null?void 0:r.some(n=>{var l,d;return((d=(l=this.errors)==null?void 0:l[n])==null?void 0:d.length)>0}))??!1)){this.loadingButtons={...this.loadingButtons,[o.id]:!0},this.eventEmitting=!0;try{await ct.processLoginflowEvent({event:t,data:this.formData})}finally{this.loadingButtons={...this.loadingButtons,[o.id]:!1},this.eventEmitting=!1}}}}findElementByKey(t){const o=s=>{if((s.element_type==="input"||s.element_type==="checkbox"||s.element_type==="otp")&&s.data_key===t)return s;if(s.element_type==="container")for(const r of s.properties.children){const i=o(r);if(i)return i}return null};return this.renderSpec?o(this.renderSpec.root_container):null}isFieldValid(t){const o=this.findElementByKey(t);if(!o||!("validation"in o.properties))return!0;const{validation:s}=o.properties,{data_key:r}=o;if(!s||!r)return!0;const i=this.formData[r];return s.rules.every(l=>this.validateRule(l,i))}validateRule(t,o){switch(t.type){case"required":return Sc(o);case"min_length":return $c(o,t.length);case"max_length":return Ec(o,t.length);case"min_value":return kc(o,t.value);case"max_value":return Rc(o,t.value);case"regex":return Oc(o,t.regex);case"field_match":return Ac(o,t.field_match?this.formData[t.field_match]:void 0);case"email":return Pc(o);case"phone":return Ic(o);case"date":return Tc(o);default:return!0}}};Re([a({type:Object})],exports.SaasBaseLayout.prototype,"renderSpec",2);Re([a({type:Object})],exports.SaasBaseLayout.prototype,"customizations",2);Re([k()],exports.SaasBaseLayout.prototype,"formData",2);Re([k()],exports.SaasBaseLayout.prototype,"errors",2);Re([k()],exports.SaasBaseLayout.prototype,"loadingButtons",2);Re([k()],exports.SaasBaseLayout.prototype,"eventEmitting",2);Re([k()],exports.SaasBaseLayout.prototype,"theme",2);exports.SaasBaseLayout=Re([h("sb-layout")],exports.SaasBaseLayout);var uy=Object.defineProperty,py=Object.getOwnPropertyDescriptor,dr=(e,t,o,s)=>{for(var r=s>1?void 0:s?py(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&uy(t,o,r),r};exports.SbProvider=class extends ${constructor(){super(...arguments),this.customizations=null,this.providedCustomizations=this.customizations,this.env=null,this.auth={isAuthenticated:!1},this.renderSpec=null,this.autoRedirect=!0}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),Nf(),(async()=>{for(;!this.env||!this.env.domain;)await new Promise(o=>setTimeout(o,20));ct.configure({domain:this.env.domain,appId:this.env.appId,clientSecret:this.env.clientSecret??"",locale:this.env.locale,signinUrl:this.env.signinUrl,signupUrl:this.env.signupUrl,onFlowStateChange:o=>{o.render_spec&&(this.renderSpec=o.render_spec)}}),this.refreshAuthState()})().catch(o=>console.error("Error initializing SbProvider:",o))}updated(t){var o;super.updated(t),t.has("customizations")&&(this.providedCustomizations=this.customizations),t.has("env")&&(o=this.env)!=null&&o.domain&&ct.configure({domain:this.env.domain,appId:this.env.appId,clientSecret:this.env.clientSecret??"",locale:this.env.locale,signinUrl:this.env.signinUrl,signupUrl:this.env.signupUrl,onFlowStateChange:s=>{s.render_spec&&(this.renderSpec=s.render_spec)}}),t.has("auth")&&this.handleAuthStateChange()}handleAuthStateChange(){if(!this.autoRedirect||!this.auth.isAuthenticated||!this.env)return;const t=window.location.pathname;if([this.env.signinUrl,this.env.signupUrl].some(r=>t.includes(r))){const n=new URLSearchParams(window.location.search).get("redirect_url")||this.env.signinRedirectUrl||"/";window.location.href=n}}refreshAuthState(){this.auth={isAuthenticated:ct.isAuthenticated()}}};dr([a({type:Object})],exports.SbProvider.prototype,"customizations",2);dr([Ee({context:ms})],exports.SbProvider.prototype,"providedCustomizations",2);dr([a({type:Object}),Ee({context:Lc})],exports.SbProvider.prototype,"env",2);dr([k(),Ee({context:bs})],exports.SbProvider.prototype,"auth",2);dr([k(),Ee({context:vn})],exports.SbProvider.prototype,"renderSpec",2);dr([a({type:Boolean})],exports.SbProvider.prototype,"autoRedirect",2);exports.SbProvider=dr([h("sb-provider")],exports.SbProvider);var hy=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,Hc=(e,t,o,s)=>{for(var r=s>1?void 0:s?gy(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&hy(t,o,r),r};exports.SignedOut=class extends ${constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){return this.auth?c`
|
|
6489
6489
|
<div ?hidden=${this.auth.isAuthenticated}>${this._cachedChildren}</div>
|
|
6490
|
-
`:I}};Hc([Ct({context:bs,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=Hc([
|
|
6490
|
+
`:I}};Hc([Ct({context:bs,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=Hc([h("sb-signed-out")],exports.SignedOut);var by=Object.defineProperty,my=Object.getOwnPropertyDescriptor,Gc=(e,t,o,s)=>{for(var r=s>1?void 0:s?my(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&by(t,o,r),r};exports.SignedIn=class extends ${constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){return this.auth?c`
|
|
6491
6491
|
<div ?hidden=${!this.auth.isAuthenticated}>${this._cachedChildren}</div>
|
|
6492
|
-
`:I}};Gc([Ct({context:bs,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=Gc([
|
|
6492
|
+
`:I}};Gc([Ct({context:bs,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=Gc([h("sb-signed-in")],exports.SignedIn);var fy=Object.defineProperty,vy=Object.getOwnPropertyDescriptor,Ds=(e,t,o,s)=>{for(var r=s>1?void 0:s?vy(t,o):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(r=(s?n(t,o,r):n(r))||r);return s&&r&&fy(t,o,r),r};exports.SbAuthenticated=class extends ${constructor(){super(...arguments),this._cachedChildren=[],this.redirectUrl=""}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){var t;return this.auth?this.auth.isAuthenticated?c`${this._cachedChildren}`:(window.location.href=this.redirectUrl||((t=this.env)==null?void 0:t.signinUrl),I):I}};Ds([a({type:String})],exports.SbAuthenticated.prototype,"redirectUrl",2);Ds([Ct({context:Lc}),a({attribute:!1})],exports.SbAuthenticated.prototype,"env",2);Ds([Ct({context:bs,subscribe:!0}),a({attribute:!1})],exports.SbAuthenticated.prototype,"auth",2);exports.SbAuthenticated=Ds([h("sb-authenticated")],exports.SbAuthenticated);function yy(){return ct}exports.BaseElement=bl;exports.SbUserProfile=Pt;exports.renderElement=In;exports.useAuthProvider=yy;
|
|
6493
6493
|
//# sourceMappingURL=index.js.map
|