@saasbase-io/core-elements 1.1.13 → 1.1.15
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/components/renderers/sb-otp-renderer.d.ts +9 -3
- package/dist/index.js +242 -260
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1003 -1013
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function U(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(m){try{u(s.next(m))}catch(f){n(f)}}function d(m){try{u(s.throw(m))}catch(f){n(f)}}function u(m){m.done?i(m.value):r(m.value).then(l,d)}u((s=s.apply(e,t||[])).next())})}class ur{constructor(){this.data=new Map}static get Instance(){return ur.instance||(ur.instance=new ur),ur.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=ur.Instance;class et extends Error{constructor(t,o,s){super(o),this.name="LoginflowError",this.code=t,this.details=s}}class me{constructor(){}static get Instance(){return me.instance||(me.instance=new me),me.instance}request(t){return U(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 u=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),!u.ok){const m=yield u.json().catch(()=>({}));throw new et(m.code||"API_ERROR",m.message||`HTTP ${u.status}: ${u.statusText}`,m.details)}return yield u.json()}catch(u){throw clearTimeout(d),u instanceof et?u:u instanceof Error?u.name==="AbortError"?new et("TIMEOUT","Request timeout"):new et("NETWORK_ERROR",u.message):new et("UNKNOWN_ERROR","An unknown error occurred")}})}post(t,o){return U(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"POST",body:o?JSON.stringify(o):void 0})})}get(t){return U(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"GET"})})}}class bt{constructor(){this.AUTH_SESSION_STORAGE_KEY="saasbase_auth_session",this.refreshTimeoutId=null,this.refreshPromise=null}static get Instance(){return bt.instance||(bt.instance=new bt),bt.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 U(this,void 0,void 0,function*(){try{const o=yield me.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 et?console.error("Token refresh failed:",o.message,o.details):console.error("Token refresh failed:",o),this.clearSession(),null}})}}class ml{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 So{static detect(t,o=window.location){const s=o.pathname.toLowerCase();return s.includes(t.signinUrl)?"signin":s.includes(t.signupUrl)?"signup":"custom"}}class bl{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 sd{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 Ei{constructor(t,o,s=window.location,r,i){this.httpClient=me.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 et("CONFIG_ERROR","Domain is required");if(!n.appId)throw new et("CONFIG_ERROR","App ID is required");if(!n.clientSecret)throw new et("CONFIG_ERROR","Client Secret is required");this.flowId=t,this.location=s,this.flowStateManager=r||new ml,this.flowEventBus=o||new bl,this.navigationTypeDetector=i||new sd,bt.Instance.cleanExpiredSession(),bt.Instance.scheduleTokenRefresh()}static init(t,o,s,r,i){return U(this,void 0,void 0,function*(){const n=new Ei(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 U(this,void 0,void 0,function*(){if(!o.app_id)throw new et("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 U(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 U(this,void 0,void 0,function*(){if(!t.event)throw new et("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 U(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 et?i:new et(o,s,i instanceof Error?{originalError:i.message,stack:i.stack}:i)}})}processServerEvent(t,o){return U(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 et("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};bt.Instance.setCurrentSession(o),bt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState(),this.reloadPage()}}initializeFlowInternal(){return U(this,void 0,void 0,function*(){const t=kt.getConfig(),o=So.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 et("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 U(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 U(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 et("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}handleSwitchToSignin(){return U(this,void 0,void 0,function*(){const t=kt.getConfig();return this.redirect({url:t.signinUrl,redirect_delay:0}),{state:"End"}})}handleSwitchToSignup(){return U(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 id{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 nd{pushState(t,o,s){history.pushState(t,o,s)}replaceState(t,o,s){history.replaceState(t,o,s)}get state(){return history.state}}class ad{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 id(200),this.location=r,this.flowStateManager=i||new ml,this.historyAdapter=n||new nd,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 U(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=So.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 U(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=So.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 U(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 Pe=new AbortController;class ld{constructor(){this.httpClient=me.Instance,this.capabilities={webauthn:!1},this.capabilitiesDetected=!1}detectCapabilities(){return U(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 U(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 U(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 U(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Pe.abort(),Pe=new AbortController;const s=this.toPublicKeyCredentialCreationOptions(t),r={signal:Pe.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:u}=i;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let f;if(typeof d.getPublicKeyAlgorithm=="function")try{f=d.getPublicKeyAlgorithm()}catch(_){Rs("getPublicKeyAlgorithm()",_)}let x;if(typeof d.getPublicKey=="function")try{const _=d.getPublicKey();_!==null&&(x=this.bufferToBase64URLString(_))}catch(_){Rs("getPublicKey()",_)}let S;if(typeof d.getAuthenticatorData=="function")try{S=this.bufferToBase64URLString(d.getAuthenticatorData())}catch(_){Rs("getAuthenticatorData()",_)}return{id:n,rawId:this.bufferToBase64URLString(l),response:{attestationObject:this.bufferToBase64URLString(d.attestationObject),clientDataJSON:this.bufferToBase64URLString(d.clientDataJSON),transports:m,publicKeyAlgorithm:f,publicKey:x,authenticatorData:S},type:u,clientExtensionResults:i.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(i.authenticatorAttachment)}}catch(i){const n=this.identifyAuthenticationError({error:i,options:r});return n instanceof Le?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 U(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;Pe.abort(),Pe=new AbortController;const s=this.toPublicKeyCredentialRequestOptions(t),r={signal:Pe.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 Le?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 U(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 U(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 Le({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Le({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(cd(r)){if(s.rpId!==r)return new Le({message:`The RP ID "${s.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Le({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(){Pe.abort()}}function Rs(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 Le extends Error{constructor({message:t,code:o,cause:s,name:r}){super(t),this.name=r??s.name,this.code=o}}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function U(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(m){try{u(s.next(m))}catch(f){n(f)}}function d(m){try{u(s.throw(m))}catch(f){n(f)}}function u(m){m.done?i(m.value):r(m.value).then(l,d)}u((s=s.apply(e,t||[])).next())})}class ur{constructor(){this.data=new Map}static get Instance(){return ur.instance||(ur.instance=new ur),ur.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=ur.Instance;class et extends Error{constructor(t,o,s){super(o),this.name="LoginflowError",this.code=t,this.details=s}}class me{constructor(){}static get Instance(){return me.instance||(me.instance=new me),me.instance}request(t){return U(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 u=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),!u.ok){const m=yield u.json().catch(()=>({}));throw new et(m.code||"API_ERROR",m.message||`HTTP ${u.status}: ${u.statusText}`,m.details)}return yield u.json()}catch(u){throw clearTimeout(d),u instanceof et?u:u instanceof Error?u.name==="AbortError"?new et("TIMEOUT","Request timeout"):new et("NETWORK_ERROR",u.message):new et("UNKNOWN_ERROR","An unknown error occurred")}})}post(t,o){return U(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"POST",body:o?JSON.stringify(o):void 0})})}get(t){return U(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"GET"})})}}class bt{constructor(){this.AUTH_SESSION_STORAGE_KEY="saasbase_auth_session",this.refreshTimeoutId=null,this.refreshPromise=null}static get Instance(){return bt.instance||(bt.instance=new bt),bt.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 U(this,void 0,void 0,function*(){try{const o=yield me.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 et?console.error("Token refresh failed:",o.message,o.details):console.error("Token refresh failed:",o),this.clearSession(),null}})}}class ml{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 So{static detect(t,o=window.location){const s=o.pathname.toLowerCase();return s.includes(t.signinUrl)?"signin":s.includes(t.signupUrl)?"signup":"custom"}}class bl{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 nd{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 Ei{constructor(t,o,s=window.location,r,i){this.httpClient=me.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 et("CONFIG_ERROR","Domain is required");if(!n.appId)throw new et("CONFIG_ERROR","App ID is required");if(!n.clientSecret)throw new et("CONFIG_ERROR","Client Secret is required");this.flowId=t,this.location=s,this.flowStateManager=r||new ml,this.flowEventBus=o||new bl,this.navigationTypeDetector=i||new nd,bt.Instance.cleanExpiredSession(),bt.Instance.scheduleTokenRefresh()}static init(t,o,s,r,i){return U(this,void 0,void 0,function*(){const n=new Ei(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 U(this,void 0,void 0,function*(){if(!o.app_id)throw new et("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 U(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 U(this,void 0,void 0,function*(){if(!t.event)throw new et("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 U(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 et?i:new et(o,s,i instanceof Error?{originalError:i.message,stack:i.stack}:i)}})}processServerEvent(t,o){return U(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 et("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};bt.Instance.setCurrentSession(o),bt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState(),this.reloadPage()}}initializeFlowInternal(){return U(this,void 0,void 0,function*(){const t=kt.getConfig(),o=So.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 et("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 U(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 U(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 et("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}handleSwitchToSignin(){return U(this,void 0,void 0,function*(){const t=kt.getConfig();return this.redirect({url:t.signinUrl,redirect_delay:0}),{state:"End"}})}handleSwitchToSignup(){return U(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 ad{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 ld{pushState(t,o,s){history.pushState(t,o,s)}replaceState(t,o,s){history.replaceState(t,o,s)}get state(){return history.state}}class cd{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 ad(200),this.location=r,this.flowStateManager=i||new ml,this.historyAdapter=n||new ld,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 U(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=So.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 U(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=So.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 U(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 Pe=new AbortController;class dd{constructor(){this.httpClient=me.Instance,this.capabilities={webauthn:!1},this.capabilitiesDetected=!1}detectCapabilities(){return U(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 U(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 U(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 U(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Pe.abort(),Pe=new AbortController;const s=this.toPublicKeyCredentialCreationOptions(t),r={signal:Pe.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:u}=i;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let f;if(typeof d.getPublicKeyAlgorithm=="function")try{f=d.getPublicKeyAlgorithm()}catch(_){Rs("getPublicKeyAlgorithm()",_)}let x;if(typeof d.getPublicKey=="function")try{const _=d.getPublicKey();_!==null&&(x=this.bufferToBase64URLString(_))}catch(_){Rs("getPublicKey()",_)}let S;if(typeof d.getAuthenticatorData=="function")try{S=this.bufferToBase64URLString(d.getAuthenticatorData())}catch(_){Rs("getAuthenticatorData()",_)}return{id:n,rawId:this.bufferToBase64URLString(l),response:{attestationObject:this.bufferToBase64URLString(d.attestationObject),clientDataJSON:this.bufferToBase64URLString(d.clientDataJSON),transports:m,publicKeyAlgorithm:f,publicKey:x,authenticatorData:S},type:u,clientExtensionResults:i.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(i.authenticatorAttachment)}}catch(i){const n=this.identifyAuthenticationError({error:i,options:r});return n instanceof Le?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 U(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;Pe.abort(),Pe=new AbortController;const s=this.toPublicKeyCredentialRequestOptions(t),r={signal:Pe.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 Le?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 U(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 U(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 Le({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Le({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(ud(r)){if(s.rpId!==r)return new Le({message:`The RP ID "${s.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Le({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Le({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(){Pe.abort()}}function Rs(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 Le extends Error{constructor({message:t,code:o,cause:s,name:r}){super(t),this.name=r??s.name,this.code=o}}function ud(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 et("NOT_CONFIGURED","Auth.configure() must be called before using Auth methods")}ensureLoginflowInitialized(){if(!this.loginflow)throw new et("LOGINFLOW_NOT_INITIALIZED","Call Auth.startLoginflow() first")}startLoginflowInternal(t){return U(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 dd,this.webauthnService.detectCapabilities(),this.flowEventBus=new bl,this.navigationManager=new cd(this.flowEventBus,()=>U(this,void 0,void 0,function*(){console.log("[AuthService] Navigation restart triggered, restarting loginflow"),yield this.startLoginflowInternal(void 0,!1)}),s);const r=yield Ei.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 et("CONFIG_ERROR","domain, appId, and clientSecret are required");kt.setConfig(t),this.configured=!0}isAuthenticated(){return this.ensureConfigured(),bt.Instance.isAuthenticated()}getCurrentSession(){return this.ensureConfigured(),bt.Instance.getCurrentSession()}getAuthenticatedUser(){return this.ensureConfigured(),bt.Instance.getAuthenticatedUser()}startLoginflow(t){return U(this,void 0,void 0,function*(){return this.startLoginflowInternal(t,!1)})}processLoginflowEvent(t){return U(this,void 0,void 0,function*(){var o,s;this.ensureConfigured(),this.ensureLoginflowInitialized();const r=kt.getConfig(),i=So.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=>U(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 u=yield this.registerPasskey(i,!0);u&&(u.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(u){console.error("Failed to parse flow state:",u)}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 U(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 U(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(u){console.error("failed to signin with passkey",u)}})}createPasskeyCredential(t,o){return U(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 U(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(),bt.Instance.clearSession(),bt.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 ut=hr.Instance;/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const wo=globalThis,Ri=wo.ShadowRoot&&(wo.ShadyCSS===void 0||wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oi=Symbol(),Rn=new WeakMap;let fl=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==Oi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(Ri&&t===void 0){const s=o!==void 0&&o.length===1;s&&(t=Rn.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Rn.set(o,t))}return t}toString(){return this.cssText}};const
|
|
6
|
+
*/const wo=globalThis,Ri=wo.ShadowRoot&&(wo.ShadyCSS===void 0||wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oi=Symbol(),Rn=new WeakMap;let fl=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==Oi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(Ri&&t===void 0){const s=o!==void 0&&o.length===1;s&&(t=Rn.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Rn.set(o,t))}return t}toString(){return this.cssText}};const hd=e=>new fl(typeof e=="string"?e:e+"",void 0,Oi),vl=(e,...t)=>{const o=e.length===1?e[0]:t.reduce((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[i+1],e[0]);return new fl(o,e,Oi)},pd=(e,t)=>{if(Ri)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of t){const s=document.createElement("style"),r=wo.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=o.cssText,e.appendChild(s)}},On=Ri?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(const s of t.cssRules)o+=s.cssText;return hd(o)})(e):e;/**
|
|
7
7
|
* @license
|
|
8
8
|
* Copyright 2017 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
|
-
*/const{is:
|
|
10
|
+
*/const{is:gd,defineProperty:md,getOwnPropertyDescriptor:bd,getOwnPropertyNames:fd,getOwnPropertySymbols:vd,getPrototypeOf:yd}=Object,be=globalThis,An=be.trustedTypes,wd=An?An.emptyScript:"",Os=be.reactiveElementPolyfillSupport,Kr=(e,t)=>e,$o={toAttribute(e,t){switch(t){case Boolean:e=e?wd: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}},Ai=(e,t)=>!gd(e,t),In={attribute:!0,type:String,converter:$o,reflect:!1,useDefault:!1,hasChanged:Ai};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),be.litPropertyMetadata??(be.litPropertyMetadata=new WeakMap);let dr=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=In){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&&md(this.prototype,t,r)}}static getPropertyDescriptor(t,o,s){const{get:r,set:i}=bd(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)??In}static _$Ei(){if(this.hasOwnProperty(Kr("elementProperties")))return;const t=yd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Kr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Kr("properties"))){const o=this.properties,s=[...fd(o),...vd(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(On(r))}else t!==void 0&&o.push(On(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 pd(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:$o).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:$o;this._$Em=r;const u=d.fromAttribute(o,l.type);this[r]=u??((n=this._$Ej)==null?void 0:n.get(r))??u,this._$Em=null}}requestUpdate(t,o,s,r=!1,i){var n;if(t!==void 0){const l=this.constructor;if(r===!1&&(i=this[t]),s??(s=l.getPropertyOptions(t)),!((s.hasChanged??Ai)(i,o)||s.useDefault&&s.reflect&&i===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(l._$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){}};dr.elementStyles=[],dr.shadowRootOptions={mode:"open"},dr[Kr("elementProperties")]=new Map,dr[Kr("finalized")]=new Map,Os==null||Os({ReactiveElement:dr}),(be.reactiveElementVersions??(be.reactiveElementVersions=[])).push("2.1.2");/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright 2017 Google LLC
|
|
13
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
|
-
*/const Yr=globalThis,Pn=e=>e,Co=Yr.trustedTypes,Ln=Co?Co.createPolicy("lit-html",{createHTML:e=>e}):void 0,yl="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,wl="?"+ge,
|
|
14
|
+
*/const Yr=globalThis,Pn=e=>e,Co=Yr.trustedTypes,Ln=Co?Co.createPolicy("lit-html",{createHTML:e=>e}):void 0,yl="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,wl="?"+ge,xd=`<${wl}>`,Ne=document,Jr=()=>Ne.createComment(""),Qr=e=>e===null||typeof e!="object"&&typeof e!="function",Ii=Array.isArray,_d=e=>Ii(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",As=`[
|
|
15
15
|
\f\r]`,Br=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Tn=/-->/g,Dn=/>/g,Te=RegExp(`>|${As}(?:([^\\s"'>=/]+)(${As}*=${As}*(?:[^
|
|
16
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),zn=/'/g,jn=/"/g,xl=/^(?:script|style|textarea|title)$/i,_l=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),c=_l(1),Mt=_l(2),Ue=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Nn=new WeakMap,ze=Ne.createTreeWalker(Ne,129);function Sl(e,t){if(!Ii(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ln!==void 0?Ln.createHTML(t):t}const
|
|
16
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),zn=/'/g,jn=/"/g,xl=/^(?:script|style|textarea|title)$/i,_l=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),c=_l(1),Mt=_l(2),Ue=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Nn=new WeakMap,ze=Ne.createTreeWalker(Ne,129);function Sl(e,t){if(!Ii(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ln!==void 0?Ln.createHTML(t):t}const Sd=(e,t)=>{const o=e.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=Br;for(let l=0;l<o;l++){const d=e[l];let u,m,f=-1,x=0;for(;x<d.length&&(n.lastIndex=x,m=n.exec(d),m!==null);)x=n.lastIndex,n===Br?m[1]==="!--"?n=Tn:m[1]!==void 0?n=Dn:m[2]!==void 0?(xl.test(m[2])&&(r=RegExp("</"+m[2],"g")),n=Te):m[3]!==void 0&&(n=Te):n===Te?m[0]===">"?(n=r??Br,f=-1):m[1]===void 0?f=-2:(f=n.lastIndex-m[2].length,u=m[1],n=m[3]===void 0?Te:m[3]==='"'?jn:zn):n===jn||n===zn?n=Te:n===Tn||n===Dn?n=Br:(n=Te,r=void 0);const S=n===Te&&e[l+1].startsWith("/>")?" ":"";i+=n===Br?d+xd:f>=0?(s.push(u),d.slice(0,f)+yl+d.slice(f)+ge+S):d+ge+(f===-2?l:S)}return[Sl(e,i+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let Us=class $l{constructor({strings:t,_$litType$:o},s){let r;this.parts=[];let i=0,n=0;const l=t.length-1,d=this.parts,[u,m]=Sd(t,o);if(this.el=$l.createElement(u,s),ze.currentNode=this.el.content,o===2||o===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=ze.nextNode())!==null&&d.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(yl)){const x=m[n++],S=r.getAttribute(f).split(ge),_=/([.?@])?(.*)/.exec(x);d.push({type:1,index:i,name:_[2],strings:S,ctor:_[1]==="."?Cd:_[1]==="?"?kd:_[1]==="@"?Ed:Zo}),r.removeAttribute(f)}else f.startsWith(ge)&&(d.push({type:6,index:i}),r.removeAttribute(f));if(xl.test(r.tagName)){const f=r.textContent.split(ge),x=f.length-1;if(x>0){r.textContent=Co?Co.emptyScript:"";for(let S=0;S<x;S++)r.append(f[S],Jr()),ze.nextNode(),d.push({type:2,index:++i});r.append(f[x],Jr())}}}else if(r.nodeType===8)if(r.data===wl)d.push({type:2,index:i});else{let f=-1;for(;(f=r.data.indexOf(ge,f+1))!==-1;)d.push({type:7,index:i}),f+=ge.length-1}i++}}static createElement(t,o){const s=Ne.createElement("template");return s.innerHTML=t,s}};function mr(e,t,o=e,s){var n,l;if(t===Ue)return t;let r=s!==void 0?(n=o._$Co)==null?void 0:n[s]:o._$Cl;const i=Qr(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=mr(e,r._$AS(e,t.values),r,s)),t}class $d{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)??Ne).importNode(o,!0);ze.currentNode=r;let i=ze.nextNode(),n=0,l=0,d=s[0];for(;d!==void 0;){if(n===d.index){let u;d.type===2?u=new lo(i,i.nextSibling,this,t):d.type===1?u=new d.ctor(i,d.name,d.strings,this,t):d.type===6&&(u=new Rd(i,this,t)),this._$AV.push(u),d=s[++l]}n!==(d==null?void 0:d.index)&&(i=ze.nextNode(),n++)}return ze.currentNode=Ne,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 lo{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=v,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=mr(this,t,o),Qr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_d(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!==v&&Qr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ne.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=Us.createElement(Sl(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 $d(r,this),l=n.u(this.options);n.p(o),this.T(l),this._$AH=n}}_$AC(t){let o=Nn.get(t.strings);return o===void 0&&Nn.set(t.strings,o=new Us(t)),o}k(t){Ii(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 lo(this.O(Jr()),this.O(Jr()),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=Pn(t).nextSibling;Pn(t).remove(),t=r}}setConnected(t){var o;this._$AM===void 0&&(this._$Cv=t,(o=this._$AP)==null||o.call(this,t))}}let Zo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,r,i){this.type=1,this._$AH=v,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=v}_$AI(t,o=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=mr(this,t,o,0),n=!Qr(t)||t!==this._$AH&&t!==Ue,n&&(this._$AH=t);else{const l=t;let d,u;for(t=i[0],d=0;d<i.length-1;d++)u=mr(this,l[s+d],o,d),u===Ue&&(u=this._$AH[d]),n||(n=!Qr(u)||u!==this._$AH[d]),u===v?t=v:t!==v&&(t+=(u??"")+i[d+1]),this._$AH[d]=u}n&&!r&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class Cd extends Zo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}}class kd extends Zo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}}class Ed extends Zo{constructor(t,o,s,r,i){super(t,o,s,r,i),this.type=5}_$AI(t,o=this){if((t=mr(this,t,o,0)??v)===Ue)return;const s=this._$AH,r=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==v&&(s===v||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)}}let Rd=class{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){mr(this,t)}};const Is=Yr.litHtmlPolyfillSupport;Is==null||Is(Us,lo),(Yr.litHtmlVersions??(Yr.litHtmlVersions=[])).push("3.3.2");const Od=(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 lo(t.insertBefore(Jr(),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
|
|
20
|
-
*/const je=globalThis;let y=class extends dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const t=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=t.firstChild),t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
|
20
|
+
*/const je=globalThis;let y=class extends dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const t=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=t.firstChild),t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Od(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ue}};var gl;y._$litElement$=!0,y.finalized=!0,(gl=je.litElementHydrateSupport)==null||gl.call(je,{LitElement:y});const Ps=je.litElementPolyfillSupport;Ps==null||Ps({LitElement:y});(je.litElementVersions??(je.litElementVersions=[])).push("4.2.2");/**
|
|
21
21
|
* @license
|
|
22
22
|
* Copyright 2017 Google LLC
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/const
|
|
28
|
+
*/const Ad={attribute:!0,type:String,converter:$o,reflect:!1,hasChanged:Ai},Id=(e=Ad,t,o)=>{const{kind:s,metadata:r}=o;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),s==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),s==="accessor"){const{name:n}=o;return{set(l){const d=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,d,e,!0,l)},init(l){return l!==void 0&&this.C(n,void 0,e,l),l}}}if(s==="setter"){const{name:n}=o;return function(l){const d=this[n];t.call(this,l),this.requestUpdate(n,d,e,!0,l)}}throw Error("Unsupported decorator location: "+s)};function a(e){return(t,o)=>typeof o=="object"?Id(e,t,o):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(e,t,o)}/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
* @license
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*/const
|
|
36
|
+
*/const Pd=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,o),o);/**
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright 2017 Google LLC
|
|
39
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
*/function co(e,t){return(o,s,r)=>{const i=n=>{var l;return((l=n.renderRoot)==null?void 0:l.querySelector(e))??null};return
|
|
40
|
+
*/function co(e,t){return(o,s,r)=>{const i=n=>{var l;return((l=n.renderRoot)==null?void 0:l.querySelector(e))??null};return Pd(o,s,{get(){return i(this)}})}}var Ld=Object.defineProperty,Td=(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&&Ld(t,o,r),r};class Cl extends y{constructor(){super(),this.shadow=!1}getAttributesToExclude(){return[]}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;t.some(n=>this.isCustomPropertySet(n))&&((i=(r=this.shadowRoot)==null?void 0:r.querySelector(o))==null||i.classList.add(s))}removeDuplicateContent(){var i;const t=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}}),o=new Map,s=[];let r;for(;r=t.nextNode();){let n;if(r.nodeType===Node.TEXT_NODE){const l=(i=r.textContent)==null?void 0:i.trim();if(!l)continue;n=`text:${l}`}else if(r instanceof HTMLElement){const l=Array.from(r.attributes).map(d=>`${d.name}=${d.value}`).sort().join(":");n=`element:${r.tagName}:${l}`}else continue;if(o.has(n)){const l=o.get(n);l!=null&&l.parentNode&&s.push(l),o.set(n,r)}else o.set(n,r)}s.forEach(n=>{var l;return(l=n.parentNode)==null?void 0:l.removeChild(n)})}moveLightDomChildrenInto(t,o){let s;o!=null&&o.length?(s=o.filter(r=>this.contains(r)&&r!==t&&!r.contains(t)),s.forEach(r=>{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)})):s=Array.from(this.childNodes).filter(r=>r!==t&&!t.contains(r)&&!r.contains(t)),s.forEach(r=>t.appendChild(r))}}Td([a({type:Boolean})],Cl.prototype,"shadow");/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2020 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/const
|
|
48
|
+
*/const Dd=e=>e.strings===void 0;/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/const Xr=(e,t)=>{var s;const o=e._$AN;if(o===void 0)return!1;for(const r of o)(s=r._$AO)==null||s.call(r,t,!1),Xr(r,t);return!0},ko=e=>{let t,o;do{if((t=e._$AM)===void 0)break;o=t._$AN,o.delete(e),e=t}while((o==null?void 0:o.size)===0)},Rl=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(o===void 0)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),
|
|
52
|
+
*/const Xr=(e,t)=>{var s;const o=e._$AN;if(o===void 0)return!1;for(const r of o)(s=r._$AO)==null||s.call(r,t,!1),Xr(r,t);return!0},ko=e=>{let t,o;do{if((t=e._$AM)===void 0)break;o=t._$AN,o.delete(e),e=t}while((o==null?void 0:o.size)===0)},Rl=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(o===void 0)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),Nd(t)}};function zd(e){this._$AN!==void 0?(ko(this),this._$AM=e,Rl(this)):this._$AM=e}function jd(e,t=!1,o=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=o;i<s.length;i++)Xr(s[i],!1),ko(s[i]);else s!=null&&(Xr(s,!1),ko(s));else Xr(this,e)}const Nd=e=>{e.type==kl.CHILD&&(e._$AP??(e._$AP=jd),e._$AQ??(e._$AQ=zd))};class Ol extends El{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,o,s){super._$AT(t,o,s),Rl(this),this.isConnected=t._$AU}_$AO(t,o=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),o&&(Xr(this,t),ko(this))}setValue(t){if(Dd(this._$Ct))this._$Ct._$AI(t,this);else{const o=[...this._$Ct._$AH];o[this._$Ci]=t,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}}/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
* @license
|
|
70
70
|
* Copyright 2021 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*/let
|
|
72
|
+
*/let Ud=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,o=!1){const s=o||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[o,{disposer:s}]of this.subscriptions)o(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,o,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:o});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}};/**
|
|
73
73
|
* @license
|
|
74
74
|
* Copyright 2021 Google LLC
|
|
75
75
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
76
|
-
*/let
|
|
76
|
+
*/let Md=class extends Event{constructor(t,o){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=o}};class Mn extends Ud{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:u}]of this.subscriptions)l.has(d)||(l.add(d),u.dispatchEvent(new Al(this.context,u,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 Md(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 Un(this,{context:e,callback:r=>{o.set.call(this,r)},subscribe:t})})):o.constructor.addInitializer((r=>{new Un(r,{context:e,callback:i=>{r[s]=i},subscribe:t})}))}}const Ls=new WeakMap,
|
|
84
|
+
*/function Ct({context:e,subscribe:t}){return(o,s)=>{typeof s=="object"?s.addInitializer((function(){new Un(this,{context:e,callback:r=>{o.set.call(this,r)},subscribe:t})})):o.constructor.addInitializer((r=>{new Un(r,{context:e,callback:i=>{r[s]=i},subscribe:t})}))}}const Ls=new WeakMap,Fd=Jo(class extends Ol{render(e){return v}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)),v}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let o=Ls.get(t);o===void 0&&(o=new WeakMap,Ls.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=Ls.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)}});var Bd=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,Z=(e,t,o,s)=>{for(var r=s>1?void 0:s?qd(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&&Bd(t,o,r),r};let G=class extends y{constructor(){super(...arguments),this.id="",this.type="text",this._onClick=e=>{this.onClick&&this.onClick(e)},this._onInput=e=>{const t=e.target;this.value=t.value,this.onInput&&this.onInput(e)},this._onChange=e=>{const t=e.target;this.value=t.value,this.onChange&&this.onChange(e)},this._onFocus=e=>{this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),this.onFocus&&this.onFocus(e)},this._onBlur=e=>{this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),this.onBlur&&this.onBlur(e)}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}render(){return c`
|
|
85
85
|
<input
|
|
86
86
|
data-slot="input"
|
|
87
87
|
accept=${this.type==="file"&&this.accept?this.accept:v}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
@focus=${this._onFocus}
|
|
112
112
|
@blur=${this._onBlur}
|
|
113
113
|
/>
|
|
114
|
-
`}};Z([a({type:String})],G.prototype,"accept",2);Z([a({type:String})],G.prototype,"autocomplete",2);Z([a({type:Boolean})],G.prototype,"disabled",2);Z([a({type:String})],G.prototype,"form",2);Z([a({type:String})],G.prototype,"id",2);Z([a({type:Boolean})],G.prototype,"invalid",2);Z([a({type:Number})],G.prototype,"max",2);Z([a({type:Number})],G.prototype,"maxlength",2);Z([a({type:Number})],G.prototype,"min",2);Z([a({type:Number})],G.prototype,"minlength",2);Z([a({type:Boolean})],G.prototype,"multiple",2);Z([a({type:String})],G.prototype,"name",2);Z([a({type:String})],G.prototype,"pattern",2);Z([a({type:String})],G.prototype,"placeholder",2);Z([a({type:Boolean})],G.prototype,"readonly",2);Z([a({type:Boolean})],G.prototype,"required",2);Z([a({type:Number})],G.prototype,"step",2);Z([a({type:String})],G.prototype,"type",2);Z([a({type:String})],G.prototype,"value",2);Z([a({attribute:!1})],G.prototype,"onClick",2);Z([a({attribute:!1})],G.prototype,"onInput",2);Z([a({attribute:!1})],G.prototype,"onChange",2);Z([a({attribute:!1})],G.prototype,"onFocus",2);Z([a({attribute:!1})],G.prototype,"onBlur",2);G=Z([p("rtg-input")],G);var
|
|
114
|
+
`}};Z([a({type:String})],G.prototype,"accept",2);Z([a({type:String})],G.prototype,"autocomplete",2);Z([a({type:Boolean})],G.prototype,"disabled",2);Z([a({type:String})],G.prototype,"form",2);Z([a({type:String})],G.prototype,"id",2);Z([a({type:Boolean})],G.prototype,"invalid",2);Z([a({type:Number})],G.prototype,"max",2);Z([a({type:Number})],G.prototype,"maxlength",2);Z([a({type:Number})],G.prototype,"min",2);Z([a({type:Number})],G.prototype,"minlength",2);Z([a({type:Boolean})],G.prototype,"multiple",2);Z([a({type:String})],G.prototype,"name",2);Z([a({type:String})],G.prototype,"pattern",2);Z([a({type:String})],G.prototype,"placeholder",2);Z([a({type:Boolean})],G.prototype,"readonly",2);Z([a({type:Boolean})],G.prototype,"required",2);Z([a({type:Number})],G.prototype,"step",2);Z([a({type:String})],G.prototype,"type",2);Z([a({type:String})],G.prototype,"value",2);Z([a({attribute:!1})],G.prototype,"onClick",2);Z([a({attribute:!1})],G.prototype,"onInput",2);Z([a({attribute:!1})],G.prototype,"onChange",2);Z([a({attribute:!1})],G.prototype,"onFocus",2);Z([a({attribute:!1})],G.prototype,"onBlur",2);G=Z([p("rtg-input")],G);var Hd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,Il=(e,t,o,s)=>{for(var r=s>1?void 0:s?Vd(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&&Hd(t,o,r),r};let Ms=class extends y{get _rootSlot(){return this.querySelector('[data-slot="label"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<label data-slot="label" for=${this.for??v}></label>`}};Il([a({type:String})],Ms.prototype,"for",2);Ms=Il([p("rtg-label")],Ms);var Wd=Object.defineProperty,Pl=(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&&Wd(t,o,r),r};class b extends y{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"]})}}Pl([a({type:String,reflect:!0})],b.prototype,"customClass");Pl([a({type:String,reflect:!0})],b.prototype,"customStyle");function Li(){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 Fn=vl`
|
|
115
115
|
@font-face {
|
|
116
116
|
font-family: 'GeistSans';
|
|
117
117
|
|
|
@@ -2980,7 +2980,7 @@ body {
|
|
|
2980
2980
|
.wrapper {
|
|
2981
2981
|
display: block;
|
|
2982
2982
|
}
|
|
2983
|
-
`;let Vd=Tl;customElements.define("shadow-wrapper",Vd);function Dl(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=Dl(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function zl(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Dl(e))&&(s&&(s+=" "),s+=t);return s}const Ti="-",Wd=e=>{const t=Kd(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{const i=r.split(Ti);return i[0]===""&&i.length!==1&&i.shift(),jl(i,t)||Gd(r)},getConflictingClassGroupIds:(r,i)=>{const n=o[r]||[];return i&&s[r]?[...n,...s[r]]:n}}},jl=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const s=e[0],r=t.nextPart.get(s),i=r?jl(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(Ti);return(o=t.validators.find(({validator:l})=>l(n)))==null?void 0:o.classGroupId},Bn=/^\[(.+)\]$/,Gd=e=>{if(Bn.test(e)){const t=Bn.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Kd=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return Xd(Object.entries(e.classGroups),o).forEach(([r,i])=>{Fs(i,s,r,t)}),s},Fs=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:qn(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Yd(r)){Fs(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Fs(n,qn(t,i),o,s)})})},qn=(e,t)=>{let o=e;return t.split(Ti).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Yd=e=>e.isThemeGetter,Xd=(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,Zd=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)}}},Nl="!",Jd=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let u=0,m=0,f;for(let $=0;$<l.length;$++){let k=l[$];if(u===0){if(k===r&&(s||l.slice($,$+i)===t)){d.push(l.slice(m,$)),m=$+i;continue}if(k==="/"){f=$;continue}}k==="["?u++:k==="]"&&u--}const x=d.length===0?l:l.substring(m),S=x.startsWith(Nl),_=S?x.substring(1):x,C=f&&f>m?f-m:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},Qd=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},tu=e=>({cache:Zd(e.cacheSize),parseClassName:Jd(e),...Wd(e)}),eu=/\s+/,ru=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(eu);let l="";for(let d=n.length-1;d>=0;d-=1){const u=n[d],{modifiers:m,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:S}=o(u);let _=!!S,C=s(_?x.substring(0,S):x);if(!C){if(!_){l=u+(l.length>0?" "+l:l);continue}if(C=s(x),!C){l=u+(l.length>0?" "+l:l);continue}_=!1}const $=Qd(m).join(":"),k=f?$+Nl:$,I=k+C;if(i.includes(I))continue;i.push(I);const q=r(C,_);for(let M=0;M<q.length;++M){const W=q[M];i.push(k+W)}l=u+(l.length>0?" "+l:l)}return l};function ou(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ul(t))&&(s&&(s+=" "),s+=o);return s}const Ul=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=Ul(e[s]))&&(o&&(o+=" "),o+=t);return o};function su(e,...t){let o,s,r,i=n;function n(d){const u=t.reduce((m,f)=>f(m),e());return o=tu(u),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const u=s(d);if(u)return u;const m=ru(d,o);return r(d,m),m}return function(){return i(ou.apply(null,arguments))}}const Y=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ml=/^\[(?:([a-z-]+):)?(.+)\]$/i,iu=/^\d+\/\d+$/,nu=new Set(["px","full","screen"]),au=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lu=/\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$/,cu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,du=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>pr(e)||nu.has(e)||iu.test(e),de=e=>Cr(e,"length",yu),pr=e=>!!e&&!Number.isNaN(Number(e)),Ts=e=>Cr(e,"number",pr),qr=e=>!!e&&Number.isInteger(Number(e)),hu=e=>e.endsWith("%")&&pr(e.slice(0,-1)),j=e=>Ml.test(e),ue=e=>au.test(e),pu=new Set(["length","size","percentage"]),gu=e=>Cr(e,pu,Fl),mu=e=>Cr(e,"position",Fl),bu=new Set(["image","url"]),fu=e=>Cr(e,bu,xu),vu=e=>Cr(e,"",wu),Hr=()=>!0,Cr=(e,t,o)=>{const s=Ml.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},yu=e=>lu.test(e)&&!cu.test(e),Fl=()=>!1,wu=e=>du.test(e),xu=e=>uu.test(e),_u=()=>{const e=Y("colors"),t=Y("spacing"),o=Y("blur"),s=Y("brightness"),r=Y("borderColor"),i=Y("borderRadius"),n=Y("borderSpacing"),l=Y("borderWidth"),d=Y("contrast"),u=Y("grayscale"),m=Y("hueRotate"),f=Y("invert"),x=Y("gap"),S=Y("gradientColorStops"),_=Y("gradientColorStopPositions"),C=Y("inset"),$=Y("margin"),k=Y("opacity"),I=Y("padding"),q=Y("saturate"),M=Y("scale"),W=Y("sepia"),J=Y("skew"),P=Y("space"),xt=Y("translate"),at=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Pt=()=>["auto",j,t],A=()=>[j,t],ce=()=>["",ee,de],St=()=>["auto",pr,j],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],gt=()=>["","0",j],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],g=()=>[pr,j];return{cacheSize:500,separator:":",theme:{colors:[Hr],spacing:[ee,de],blur:["none","",ue,j],brightness:g(),borderColor:[e],borderRadius:["none","","full",ue,j],borderSpacing:A(),borderWidth:ce(),contrast:g(),grayscale:gt(),hueRotate:g(),invert:gt(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[hu,de],inset:Pt(),margin:Pt(),opacity:g(),padding:A(),saturate:g(),scale:g(),sepia:gt(),skew:g(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[ue]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Ae(),j]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-y":[{"overscroll-y":at()}],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",qr,j]}],basis:[{basis:Pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:gt()}],shrink:[{shrink:gt()}],order:[{order:["first","last","none",qr,j]}],"grid-cols":[{"grid-cols":[Hr]}],"col-start-end":[{col:["auto",{span:["full",qr,j]},j]}],"col-start":[{"col-start":St()}],"col-end":[{"col-end":St()}],"grid-rows":[{"grid-rows":[Hr]}],"row-start-end":[{row:["auto",{span:[qr,j]},j]}],"row-start":[{"row-start":St()}],"row-end":[{"row-end":St()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[ue]},ue]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ue,de]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ts]}],"font-family":[{font:[Hr]}],"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",j]}],"line-clamp":[{"line-clamp":["none",pr,Ts]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ee,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ee,de]}],"underline-offset":[{"underline-offset":["auto",ee,j]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],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",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ae(),mu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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":[k]}],"border-style":[{border:[...lt(),"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":[k]}],"divide-style":[{divide:lt()}],"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:["",...lt()]}],"outline-offset":[{"outline-offset":[ee,j]}],"outline-w":[{outline:[ee,de]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ee,de]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ue,vu]}],"shadow-color":[{shadow:[Hr]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ue,j]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"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",j]}],duration:[{duration:g()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:g()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[qr,j]}],"translate-x":[{"translate-x":[xt]}],"translate-y":[{"translate-y":[xt]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],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",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ee,de,Ts]}],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"]}}},Su=su(_u);function h(...e){return Su(zl(e))}function $u(){return Mt` <svg
|
|
2983
|
+
`;let Gd=Tl;customElements.define("shadow-wrapper",Gd);function Dl(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=Dl(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function zl(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Dl(e))&&(s&&(s+=" "),s+=t);return s}const Ti="-",Kd=e=>{const t=Xd(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{const i=r.split(Ti);return i[0]===""&&i.length!==1&&i.shift(),jl(i,t)||Yd(r)},getConflictingClassGroupIds:(r,i)=>{const n=o[r]||[];return i&&s[r]?[...n,...s[r]]:n}}},jl=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const s=e[0],r=t.nextPart.get(s),i=r?jl(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const n=e.join(Ti);return(o=t.validators.find(({validator:l})=>l(n)))==null?void 0:o.classGroupId},Bn=/^\[(.+)\]$/,Yd=e=>{if(Bn.test(e)){const t=Bn.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Xd=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return Jd(Object.entries(e.classGroups),o).forEach(([r,i])=>{Fs(i,s,r,t)}),s},Fs=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:qn(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Zd(r)){Fs(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{Fs(n,qn(t,i),o,s)})})},qn=(e,t)=>{let o=e;return t.split(Ti).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Zd=e=>e.isThemeGetter,Jd=(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,Qd=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)}}},Nl="!",tu=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let u=0,m=0,f;for(let $=0;$<l.length;$++){let k=l[$];if(u===0){if(k===r&&(s||l.slice($,$+i)===t)){d.push(l.slice(m,$)),m=$+i;continue}if(k==="/"){f=$;continue}}k==="["?u++:k==="]"&&u--}const x=d.length===0?l:l.substring(m),S=x.startsWith(Nl),_=S?x.substring(1):x,C=f&&f>m?f-m:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},eu=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},ru=e=>({cache:Qd(e.cacheSize),parseClassName:tu(e),...Kd(e)}),ou=/\s+/,su=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(ou);let l="";for(let d=n.length-1;d>=0;d-=1){const u=n[d],{modifiers:m,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:S}=o(u);let _=!!S,C=s(_?x.substring(0,S):x);if(!C){if(!_){l=u+(l.length>0?" "+l:l);continue}if(C=s(x),!C){l=u+(l.length>0?" "+l:l);continue}_=!1}const $=eu(m).join(":"),k=f?$+Nl:$,I=k+C;if(i.includes(I))continue;i.push(I);const q=r(C,_);for(let M=0;M<q.length;++M){const W=q[M];i.push(k+W)}l=u+(l.length>0?" "+l:l)}return l};function iu(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ul(t))&&(s&&(s+=" "),s+=o);return s}const Ul=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=Ul(e[s]))&&(o&&(o+=" "),o+=t);return o};function nu(e,...t){let o,s,r,i=n;function n(d){const u=t.reduce((m,f)=>f(m),e());return o=ru(u),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const u=s(d);if(u)return u;const m=su(d,o);return r(d,m),m}return function(){return i(iu.apply(null,arguments))}}const Y=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ml=/^\[(?:([a-z-]+):)?(.+)\]$/i,au=/^\d+\/\d+$/,lu=new Set(["px","full","screen"]),cu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,du=/\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$/,uu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>pr(e)||lu.has(e)||au.test(e),de=e=>Cr(e,"length",xu),pr=e=>!!e&&!Number.isNaN(Number(e)),Ts=e=>Cr(e,"number",pr),qr=e=>!!e&&Number.isInteger(Number(e)),gu=e=>e.endsWith("%")&&pr(e.slice(0,-1)),j=e=>Ml.test(e),ue=e=>cu.test(e),mu=new Set(["length","size","percentage"]),bu=e=>Cr(e,mu,Fl),fu=e=>Cr(e,"position",Fl),vu=new Set(["image","url"]),yu=e=>Cr(e,vu,Su),wu=e=>Cr(e,"",_u),Hr=()=>!0,Cr=(e,t,o)=>{const s=Ml.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},xu=e=>du.test(e)&&!uu.test(e),Fl=()=>!1,_u=e=>hu.test(e),Su=e=>pu.test(e),$u=()=>{const e=Y("colors"),t=Y("spacing"),o=Y("blur"),s=Y("brightness"),r=Y("borderColor"),i=Y("borderRadius"),n=Y("borderSpacing"),l=Y("borderWidth"),d=Y("contrast"),u=Y("grayscale"),m=Y("hueRotate"),f=Y("invert"),x=Y("gap"),S=Y("gradientColorStops"),_=Y("gradientColorStopPositions"),C=Y("inset"),$=Y("margin"),k=Y("opacity"),I=Y("padding"),q=Y("saturate"),M=Y("scale"),W=Y("sepia"),J=Y("skew"),P=Y("space"),xt=Y("translate"),at=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Pt=()=>["auto",j,t],A=()=>[j,t],ce=()=>["",ee,de],St=()=>["auto",pr,j],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],gt=()=>["","0",j],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],g=()=>[pr,j];return{cacheSize:500,separator:":",theme:{colors:[Hr],spacing:[ee,de],blur:["none","",ue,j],brightness:g(),borderColor:[e],borderRadius:["none","","full",ue,j],borderSpacing:A(),borderWidth:ce(),contrast:g(),grayscale:gt(),hueRotate:g(),invert:gt(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[gu,de],inset:Pt(),margin:Pt(),opacity:g(),padding:A(),saturate:g(),scale:g(),sepia:gt(),skew:g(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[ue]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Ae(),j]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-y":[{"overscroll-y":at()}],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",qr,j]}],basis:[{basis:Pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:gt()}],shrink:[{shrink:gt()}],order:[{order:["first","last","none",qr,j]}],"grid-cols":[{"grid-cols":[Hr]}],"col-start-end":[{col:["auto",{span:["full",qr,j]},j]}],"col-start":[{"col-start":St()}],"col-end":[{"col-end":St()}],"grid-rows":[{"grid-rows":[Hr]}],"row-start-end":[{row:["auto",{span:[qr,j]},j]}],"row-start":[{"row-start":St()}],"row-end":[{"row-end":St()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[ue]},ue]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ue,de]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ts]}],"font-family":[{font:[Hr]}],"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",j]}],"line-clamp":[{"line-clamp":["none",pr,Ts]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ee,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ee,de]}],"underline-offset":[{"underline-offset":["auto",ee,j]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],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",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ae(),fu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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":[k]}],"border-style":[{border:[...lt(),"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":[k]}],"divide-style":[{divide:lt()}],"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:["",...lt()]}],"outline-offset":[{"outline-offset":[ee,j]}],"outline-w":[{outline:[ee,de]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ee,de]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ue,wu]}],"shadow-color":[{shadow:[Hr]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ue,j]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"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",j]}],duration:[{duration:g()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:g()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[qr,j]}],"translate-x":[{"translate-x":[xt]}],"translate-y":[{"translate-y":[xt]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],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",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ee,de,Ts]}],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"]}}},Cu=nu($u);function h(...e){return Cu(zl(e))}function ku(){return Mt` <svg
|
|
2984
2984
|
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
|
2985
2985
|
xmlns="http://www.w3.org/2000/svg"
|
|
2986
2986
|
width="24"
|
|
@@ -2995,7 +2995,7 @@ body {
|
|
|
2995
2995
|
<path d="m7 15 5 5 5-5"></path>
|
|
2996
2996
|
<path d="m7 9 5-5 5 5"></path>
|
|
2997
2997
|
</svg>
|
|
2998
|
-
`}function
|
|
2998
|
+
`}function Eu(){return Mt`
|
|
2999
2999
|
<svg
|
|
3000
3000
|
xmlns="http://www.w3.org/2000/svg"
|
|
3001
3001
|
width="24"
|
|
@@ -3011,7 +3011,7 @@ body {
|
|
|
3011
3011
|
<path d="m12 19-7-7 7-7"></path>
|
|
3012
3012
|
<path d="M19 12H5"></path>
|
|
3013
3013
|
</svg>
|
|
3014
|
-
`}function
|
|
3014
|
+
`}function Ru(){return Mt`
|
|
3015
3015
|
<svg
|
|
3016
3016
|
xmlns="http://www.w3.org/2000/svg"
|
|
3017
3017
|
width="24"
|
|
@@ -3027,7 +3027,7 @@ body {
|
|
|
3027
3027
|
<path d="M5 12h14"></path>
|
|
3028
3028
|
<path d="m12 5 7 7-7 7"></path>
|
|
3029
3029
|
</svg>
|
|
3030
|
-
`}function
|
|
3030
|
+
`}function Ou(e){return c`
|
|
3031
3031
|
<svg
|
|
3032
3032
|
xmlns="http://www.w3.org/2000/svg"
|
|
3033
3033
|
width="24"
|
|
@@ -3042,7 +3042,7 @@ body {
|
|
|
3042
3042
|
>
|
|
3043
3043
|
<path d="M20 6 9 17l-5-5"/>
|
|
3044
3044
|
</svg>
|
|
3045
|
-
`}function
|
|
3045
|
+
`}function Au(e){return c`
|
|
3046
3046
|
<svg
|
|
3047
3047
|
xmlns="http://www.w3.org/2000/svg"
|
|
3048
3048
|
width="24"
|
|
@@ -3057,7 +3057,7 @@ body {
|
|
|
3057
3057
|
>
|
|
3058
3058
|
<path d="M5 12h14"/>
|
|
3059
3059
|
</svg>
|
|
3060
|
-
`}function
|
|
3060
|
+
`}function Iu(e){return c`
|
|
3061
3061
|
<svg
|
|
3062
3062
|
xmlns="http://www.w3.org/2000/svg"
|
|
3063
3063
|
width="24"
|
|
@@ -3073,7 +3073,7 @@ body {
|
|
|
3073
3073
|
<path d="m21 21-4.34-4.34"/>
|
|
3074
3074
|
<circle cx="11" cy="11" r="8"/>
|
|
3075
3075
|
</svg>
|
|
3076
|
-
`}function
|
|
3076
|
+
`}function Pu(){return Mt`
|
|
3077
3077
|
<svg
|
|
3078
3078
|
class="rtg-shrink-0 rtg-size-3.5 rtg-text-primary"
|
|
3079
3079
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3088,13 +3088,13 @@ body {
|
|
|
3088
3088
|
>
|
|
3089
3089
|
<path d="M20 6 9 17l-5-5"></path>
|
|
3090
3090
|
</svg>
|
|
3091
|
-
`}var
|
|
3091
|
+
`}var Lu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,Zt=(e,t,o,s)=>{for(var r=s>1?void 0:s?Tu(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&&Lu(t,o,r),r};let Ot=class extends y{constructor(){super(...arguments),this.value="on"}_getState(){return this._checked?"checked":"unchecked"}_handleClick(){this._checked=!this._checked,this.dispatchEvent(new CustomEvent("rtg-checkbox:checked-change",{bubbles:!0,composed:!0})),this.onCheckedChange!==void 0&&this.onCheckedChange(this._checked)}_renderIndicator(){return this._checked?c`
|
|
3092
3092
|
<span
|
|
3093
3093
|
data-slot="checkbox-indicator"
|
|
3094
3094
|
data-state=${this._getState()}
|
|
3095
3095
|
?data-disabled=${this.disabled}
|
|
3096
3096
|
>
|
|
3097
|
-
${
|
|
3097
|
+
${Ou()}
|
|
3098
3098
|
</span>
|
|
3099
3099
|
`:null}_renderInput(){return this.name===void 0?null:c`
|
|
3100
3100
|
<input
|
|
@@ -3125,7 +3125,7 @@ body {
|
|
|
3125
3125
|
</button>
|
|
3126
3126
|
|
|
3127
3127
|
${this._renderInput()}
|
|
3128
|
-
`}};Zt([a({attribute:"default-checked",type:Boolean})],Ot.prototype,"defaultChecked",2);Zt([a({attribute:!0,type:Boolean})],Ot.prototype,"checked",2);Zt([a({attribute:!1,type:Function})],Ot.prototype,"onCheckedChange",2);Zt([a({type:Boolean})],Ot.prototype,"disabled",2);Zt([a({type:Boolean})],Ot.prototype,"required",2);Zt([a({type:Boolean})],Ot.prototype,"invalid",2);Zt([a({type:String})],Ot.prototype,"name",2);Zt([a({type:String})],Ot.prototype,"value",2);Zt([R()],Ot.prototype,"_checked",2);Ot=Zt([p("rtg-checkbox")],Ot);var
|
|
3128
|
+
`}};Zt([a({attribute:"default-checked",type:Boolean})],Ot.prototype,"defaultChecked",2);Zt([a({attribute:!0,type:Boolean})],Ot.prototype,"checked",2);Zt([a({attribute:!1,type:Function})],Ot.prototype,"onCheckedChange",2);Zt([a({type:Boolean})],Ot.prototype,"disabled",2);Zt([a({type:Boolean})],Ot.prototype,"required",2);Zt([a({type:Boolean})],Ot.prototype,"invalid",2);Zt([a({type:String})],Ot.prototype,"name",2);Zt([a({type:String})],Ot.prototype,"value",2);Zt([R()],Ot.prototype,"_checked",2);Ot=Zt([p("rtg-checkbox")],Ot);var Du=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Qo=(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&&Du(t,o,r),r};let to=class extends y{constructor(){super(...arguments),this.size="default",this._imageLoaded=!1,this._imageError=!1}get _rootSlot(){return this.querySelector('[data-slot="avatar"]')}get _avatarImageChild(){return this.querySelector("rtg-avatar-image")}get _avatarFallbackChild(){return this.querySelector("rtg-avatar-fallback")}_syncChildren(){const e=this._imageError||!this._imageLoaded;this._avatarImageChild&&(this._avatarImageChild.style.display=e?"none":""),this._avatarFallbackChild&&(this._avatarFallbackChild.style.display=e?"":"none")}_onImageLoad(){this._imageLoaded=!0,this._imageError=!1,this._syncChildren()}_onImageError(){this._imageLoaded=!1,this._imageError=!0,this._syncChildren()}connectedCallback(){super.connectedCallback(),this.addEventListener("rtg-avatar:image-load",this._onImageLoad),this.addEventListener("rtg-avatar:image-error",this._onImageError)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("rtg-avatar:image-load",this._onImageLoad),this.removeEventListener("rtg-avatar:image-error",this._onImageError)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<span data-slot="avatar" data-size=${this.size}></span>`}};Qo([a({type:String})],to.prototype,"size",2);Qo([R()],to.prototype,"_imageLoaded",2);Qo([R()],to.prototype,"_imageError",2);to=Qo([p("rtg-avatar")],to);var ju=Object.defineProperty,Nu=Object.getOwnPropertyDescriptor,Di=(e,t,o,s)=>{for(var r=s>1?void 0:s?Nu(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&&ju(t,o,r),r};let Ro=class extends y{_onLoad(){this.dispatchEvent(new CustomEvent("rtg-avatar:image-load",{bubbles:!0,composed:!0}))}_onError(){this.dispatchEvent(new CustomEvent("rtg-avatar:image-error",{bubbles:!0,composed:!0}))}createRenderRoot(){return this}render(){return c`
|
|
3129
3129
|
<img
|
|
3130
3130
|
data-slot="avatar-image"
|
|
3131
3131
|
src=${this.src??""}
|
|
@@ -3133,9 +3133,9 @@ body {
|
|
|
3133
3133
|
@load=${this._onLoad}
|
|
3134
3134
|
@error=${this._onError}
|
|
3135
3135
|
/>
|
|
3136
|
-
`}};Di([a({type:String})],Ro.prototype,"src",2);Di([a({type:String})],Ro.prototype,"alt",2);Ro=Di([p("rtg-avatar-image")],Ro);var
|
|
3136
|
+
`}};Di([a({type:String})],Ro.prototype,"src",2);Di([a({type:String})],Ro.prototype,"alt",2);Ro=Di([p("rtg-avatar-image")],Ro);var Uu=(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 Hn=class extends y{get _fallbackSlot(){return this.querySelector('[data-slot="avatar-fallback"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._fallbackSlot&&((o=this._fallbackSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<span data-slot="avatar-fallback"></span>`}};Hn=Uu([p("rtg-avatar-fallback")],Hn);var Mu=(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 Vn=class extends y{get _badgeSlot(){return this.querySelector('[data-slot="avatar-badge"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._badgeSlot&&((o=this._badgeSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<span data-slot="avatar-badge"></span>`}};Vn=Mu([p("rtg-avatar-badge")],Vn);var Fu=(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 Wn=class extends y{get _groupSlot(){return this.querySelector('[data-slot="avatar-group"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._groupSlot&&((o=this._groupSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="avatar-group"></div>`}};Wn=Fu([p("rtg-avatar-group")],Wn);var Bu=(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 Gn=class extends y{get _groupCountSlot(){return this.querySelector('[data-slot="avatar-group-count"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._groupCountSlot&&((o=this._groupCountSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="avatar-group-count"></div>`}};Gn=Bu([p("rtg-avatar-group-count")],Gn);const Kn={host:["rtg-block rtg-relative rtg-w-full"],self:["rtg-absolute rtg-inset-0"]};var qu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Bl=(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&&qu(t,o,r),r};let Bs=class extends y{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=h(this.className,Kn.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=h(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`
|
|
3137
3137
|
<div class="${h("aspect-ratio",Kn.self)}"></div>
|
|
3138
|
-
`}};Bl([a({type:Number,reflect:!0})],Bs.prototype,"ratio",2);Bs=Bl([p("rtg-aspect-ratio")],Bs);const Yn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xn=zl,ts=(e,t)=>o=>{var s;if((t==null?void 0:t.variants)==null)return Xn(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,n=Object.keys(r).map(u=>{const m=o==null?void 0:o[u],f=i==null?void 0:i[u];if(m===null)return null;const x=Yn(m)||Yn(f);return r[u][x]}),l=o&&Object.entries(o).reduce((u,m)=>{let[f,x]=m;return x===void 0||(u[f]=x),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,m)=>{let{class:f,className:x,...S}=m;return Object.entries(S).every(_=>{let[C,$]=_;return Array.isArray($)?$.includes({...i,...l}[C]):{...i,...l}[C]===$})?[...u,f,x]:u},[]);return Xn(e,n,d,o==null?void 0:o.class,o==null?void 0:o.className)},
|
|
3138
|
+
`}};Bl([a({type:Number,reflect:!0})],Bs.prototype,"ratio",2);Bs=Bl([p("rtg-aspect-ratio")],Bs);const Yn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xn=zl,ts=(e,t)=>o=>{var s;if((t==null?void 0:t.variants)==null)return Xn(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,n=Object.keys(r).map(u=>{const m=o==null?void 0:o[u],f=i==null?void 0:i[u];if(m===null)return null;const x=Yn(m)||Yn(f);return r[u][x]}),l=o&&Object.entries(o).reduce((u,m)=>{let[f,x]=m;return x===void 0||(u[f]=x),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,m)=>{let{class:f,className:x,...S}=m;return Object.entries(S).every(_=>{let[C,$]=_;return Array.isArray($)?$.includes({...i,...l}[C]):{...i,...l}[C]===$})?[...u,f,x]:u},[]);return Xn(e,n,d,o==null?void 0:o.class,o==null?void 0:o.className)},Vu=ts(["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"}});class Wu extends Ol{constructor(){super(...arguments),this.prevData={}}render(t){return v}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 Gu extends Wu{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 Ku extends Gu{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 rt=Jo(Ku);var Yu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,zi=(e,t,o,s)=>{for(var r=s>1?void 0:s?Xu(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 br=class extends b{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`
|
|
3139
3139
|
<div
|
|
3140
3140
|
${rt(e)}
|
|
3141
3141
|
id="${this.id}"
|
|
@@ -3145,7 +3145,7 @@ body {
|
|
|
3145
3145
|
>
|
|
3146
3146
|
${this._children}
|
|
3147
3147
|
</div>
|
|
3148
|
-
`}};br.badgeVariants=qu;zi([a({type:String})],br.prototype,"variant",2);zi([a({type:String})],br.prototype,"id",2);br=zi([p("rtg-badge")],br);var Yu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,ql=(e,t,o,s)=>{for(var r=s>1?void 0:s?Xu(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 qs=class extends y{constructor(){super(...arguments),this.variant="default"}get _rootSlot(){return this.querySelector('[data-slot="alert"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert" data-variant=${this.variant}></div>`}};ql([a({type:String})],qs.prototype,"variant",2);qs=ql([p("rtg-alert")],qs);var Zu=(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 Zn=class extends y{get _titleSlot(){return this.querySelector('[data-slot="alert-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._titleSlot&&((o=this._titleSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert-title"></div>`}};Zn=Zu([p("rtg-alert-title")],Zn);var Ju=(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 Jn=class extends y{get _descriptionSlot(){return this.querySelector('[data-slot="alert-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._descriptionSlot&&((o=this._descriptionSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert-description"></div>`}};Jn=Ju([p("rtg-alert-description")],Jn);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 Qn=class extends y{get _actionSlot(){return this.querySelector('[data-slot="alert-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._actionSlot&&((o=this._actionSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert-action"></div>`}};Qn=Qu([p("rtg-alert-action")],Qn);const th=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function eh(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 rh(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}${eh(s)}, ${r}`}const Zr=ts(["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-border-button-outline-width-border rtg-border-button-outline-color-border","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:["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"}}),B={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:[h(Zr({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[h(Zr({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:[Zr({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 oh=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,uo=(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 fr=class extends y{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(h(B.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=h(B.host)}firstUpdated(e){var t;const o=this.querySelector(".calendar");if(o&&(this._userClass&&(o.className=h("calendar",B.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 u=s-1;u>=0;u--)i.push({day:String(r-u),month:t-1,isOutside:!0});for(let u=1;u<=o;u++)i.push({day:String(u),month:t,isOutside:!1});const n=i.length%7;if(n!==0){const u=7-n;for(let m=1;m<=u;m++)i.push({day:String(m),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`
|
|
3148
|
+
`}};br.badgeVariants=Vu;zi([a({type:String})],br.prototype,"variant",2);zi([a({type:String})],br.prototype,"id",2);br=zi([p("rtg-badge")],br);var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,ql=(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 qs=class extends y{constructor(){super(...arguments),this.variant="default"}get _rootSlot(){return this.querySelector('[data-slot="alert"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert" data-variant=${this.variant}></div>`}};ql([a({type:String})],qs.prototype,"variant",2);qs=ql([p("rtg-alert")],qs);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 Zn=class extends y{get _titleSlot(){return this.querySelector('[data-slot="alert-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._titleSlot&&((o=this._titleSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert-title"></div>`}};Zn=Qu([p("rtg-alert-title")],Zn);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 Jn=class extends y{get _descriptionSlot(){return this.querySelector('[data-slot="alert-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._descriptionSlot&&((o=this._descriptionSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert-description"></div>`}};Jn=th([p("rtg-alert-description")],Jn);var eh=(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 Qn=class extends y{get _actionSlot(){return this.querySelector('[data-slot="alert-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._actionSlot&&((o=this._actionSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="alert-action"></div>`}};Qn=eh([p("rtg-alert-action")],Qn);const rh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function oh(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 sh(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}${oh(s)}, ${r}`}const Zr=ts(["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-border-button-outline-width-border rtg-border-button-outline-color-border","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:["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"}}),B={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:[h(Zr({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[h(Zr({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:[Zr({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 ih=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,uo=(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 fr=class extends y{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(h(B.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=h(B.host)}firstUpdated(e){var t;const o=this.querySelector(".calendar");if(o&&(this._userClass&&(o.className=h("calendar",B.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 u=s-1;u>=0;u--)i.push({day:String(r-u),month:t-1,isOutside:!0});for(let u=1;u<=o;u++)i.push({day:String(u),month:t,isOutside:!1});const n=i.length%7;if(n!==0){const u=7-n;for(let m=1;m<=u;m++)i.push({day:String(m),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`
|
|
3149
3149
|
<div
|
|
3150
3150
|
class=${h("calendar",B.root,this._userClass)}
|
|
3151
3151
|
data-slot="calendar"
|
|
@@ -3219,7 +3219,7 @@ body {
|
|
|
3219
3219
|
>
|
|
3220
3220
|
<thead aria-hidden="true">
|
|
3221
3221
|
<tr class=${h("calendar-weekdays",B.weekdays)}>
|
|
3222
|
-
${
|
|
3222
|
+
${rh.map(u=>c`
|
|
3223
3223
|
<th
|
|
3224
3224
|
class=${h("calendar-weekday",B.weekday)}
|
|
3225
3225
|
scope="col"
|
|
@@ -3234,7 +3234,7 @@ body {
|
|
|
3234
3234
|
<tbody class=${h("calendar-weeks",B.weeks)}>
|
|
3235
3235
|
${Array.from({length:Math.ceil(i.length/7)},(u,m)=>c`
|
|
3236
3236
|
<tr class=${h("calendar-week",B.week)}>
|
|
3237
|
-
${i.slice(m*7,(m+1)*7).map((f,x)=>{var S,_,C;const $=new Date(this.currentDate.getFullYear(),f.month,Number(f.day)),k=!1,I=$.toDateString()===new Date().toDateString(),q=this.mode==="range"&&$.toDateString()===((S=this.selectedStartDate)==null?void 0:S.toDateString()),M=this.mode==="range"&&this.isDayInRange($,!0),W=this.mode==="range"&&$.toDateString()===((_=this.selectedEndDate)==null?void 0:_.toDateString()),J=this.mode==="single"&&$.toDateString()===((C=this.selectedStartDate)==null?void 0:C.toDateString()),P=J||q||M||W,xt=x===0,at=x===6;let _t=I?"Today, ":"";return _t+=
|
|
3237
|
+
${i.slice(m*7,(m+1)*7).map((f,x)=>{var S,_,C;const $=new Date(this.currentDate.getFullYear(),f.month,Number(f.day)),k=!1,I=$.toDateString()===new Date().toDateString(),q=this.mode==="range"&&$.toDateString()===((S=this.selectedStartDate)==null?void 0:S.toDateString()),M=this.mode==="range"&&this.isDayInRange($,!0),W=this.mode==="range"&&$.toDateString()===((_=this.selectedEndDate)==null?void 0:_.toDateString()),J=this.mode==="single"&&$.toDateString()===((C=this.selectedStartDate)==null?void 0:C.toDateString()),P=J||q||M||W,xt=x===0,at=x===6;let _t=I?"Today, ":"";return _t+=sh($),_t+=P?", selected":"",c`
|
|
3238
3238
|
<td
|
|
3239
3239
|
class=${h("calendar-day",B.day.base,I&&!P&&B.day.today,P&&B.day.selected.common,J&&B.day.selected.single,q&&B.day.selected.range.start,M&&B.day.selected.range.middle,W&&B.day.selected.range.end,xt&&B.day.index.first,at&&B.day.index.last,k)}
|
|
3240
3240
|
role="gridcell"
|
|
@@ -3274,21 +3274,21 @@ body {
|
|
|
3274
3274
|
</div>
|
|
3275
3275
|
</div>
|
|
3276
3276
|
</div>
|
|
3277
|
-
`}};uo([a({type:Object})],fr.prototype,"currentDate",2);uo([a({type:Object})],fr.prototype,"selectedStartDate",2);uo([a({type:Object})],fr.prototype,"selectedEndDate",2);uo([a({type:String})],fr.prototype,"mode",2);fr=uo([p("rtg-calendar")],fr);const ji={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
|
|
3277
|
+
`}};uo([a({type:Object})],fr.prototype,"currentDate",2);uo([a({type:Object})],fr.prototype,"selectedStartDate",2);uo([a({type:Object})],fr.prototype,"selectedEndDate",2);uo([a({type:String})],fr.prototype,"mode",2);fr=uo([p("rtg-calendar")],fr);const ji={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 ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,ho=(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 vr=class extends b{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 eo);)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`
|
|
3278
3278
|
<div
|
|
3279
3279
|
part="popover-content"
|
|
3280
3280
|
data-state=${this.state}
|
|
3281
3281
|
class=${h(ji.content,this.className)}
|
|
3282
3282
|
@click="${this.preventClickPropagation}"
|
|
3283
3283
|
></div>
|
|
3284
|
-
`}};ho([a({type:Boolean})],vr.prototype,"enableDefaultStyle",2);ho([a({type:Boolean})],vr.prototype,"styleContent",2);ho([a({type:String})],vr.prototype,"side",2);ho([a({attribute:"data-state",type:String})],vr.prototype,"state",2);vr=ho([p("rtg-popover-content")],vr);var
|
|
3284
|
+
`}};ho([a({type:Boolean})],vr.prototype,"enableDefaultStyle",2);ho([a({type:Boolean})],vr.prototype,"styleContent",2);ho([a({type:String})],vr.prototype,"side",2);ho([a({attribute:"data-state",type:String})],vr.prototype,"state",2);vr=ho([p("rtg-popover-content")],vr);var ch=(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 ta=class extends b{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof eo);)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`
|
|
3285
3285
|
<div
|
|
3286
3286
|
part="popover-trigger"
|
|
3287
3287
|
class=${h(ji.trigger,this.className)}
|
|
3288
3288
|
></div>
|
|
3289
|
-
`}};ta=
|
|
3289
|
+
`}};ta=ch([p("rtg-popover-trigger")],ta);var dh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,Hl=(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&&dh(t,o,r),r};let eo=class extends b{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`
|
|
3290
3290
|
<div part="popover" class=${h(ji.root,this.className)}></div>
|
|
3291
|
-
`}};Hl([R()],eo.prototype,"isOpen",2);eo=Hl([p("rtg-popover")],eo);const yo={root:[""],trigger:[""],triggerButton:[Zr({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
|
|
3291
|
+
`}};Hl([R()],eo.prototype,"isOpen",2);eo=Hl([p("rtg-popover")],eo);const yo={root:[""],trigger:[""],triggerButton:[Zr({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 hh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Vl=(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&&hh(t,o,r),r};let Hs=class extends y{constructor(){super(...arguments),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return c`
|
|
3292
3292
|
<rtg-popover
|
|
3293
3293
|
class=${h("date-picker",yo.root,this.className)}
|
|
3294
3294
|
@date-selected=${this.handleDateSelected}
|
|
@@ -3331,7 +3331,7 @@ body {
|
|
|
3331
3331
|
<rtg-calendar mode="single"></rtg-calendar>
|
|
3332
3332
|
</rtg-popover-content>
|
|
3333
3333
|
</rtg-popover>
|
|
3334
|
-
`}};Vl([a({type:Object})],Hs.prototype,"selectedDate",2);Hs=Vl([p("rtg-date-picker")],Hs);const ro={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
|
|
3334
|
+
`}};Vl([a({type:Object})],Hs.prototype,"selectedDate",2);Hs=Vl([p("rtg-date-picker")],Hs);const ro={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 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 Vs=class extends b{constructor(){super(...arguments),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof yr);)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`
|
|
3335
3335
|
<div
|
|
3336
3336
|
part="accordion-content"
|
|
3337
3337
|
role="region"
|
|
@@ -3342,7 +3342,7 @@ body {
|
|
|
3342
3342
|
>
|
|
3343
3343
|
<div>${Pi(((e=this.textContent)==null?void 0:e.trim())||"")}</div>
|
|
3344
3344
|
</div>
|
|
3345
|
-
`}};Vs=
|
|
3345
|
+
`}};Vs=gh([p("rtg-accordion-content")],Vs);var mh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,Ni=(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&&mh(t,o,r),r};let Vt=class extends b{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 yr);)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 Ws||e instanceof Vs)}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`
|
|
3346
3346
|
<div
|
|
3347
3347
|
data-state=${t?"open":"closed"}
|
|
3348
3348
|
class="${h(ro.item,this.className)}"
|
|
@@ -3353,7 +3353,7 @@ body {
|
|
|
3353
3353
|
>
|
|
3354
3354
|
${o}
|
|
3355
3355
|
</div>
|
|
3356
|
-
`}};Ni([a({type:String})],Vt.prototype,"value",2);Ni([a({type:Number})],Vt.prototype,"tabindex",2);Vt=Ni([p("rtg-accordion-item")],Vt);var
|
|
3356
|
+
`}};Ni([a({type:String})],Vt.prototype,"value",2);Ni([a({type:Number})],Vt.prototype,"tabindex",2);Vt=Ni([p("rtg-accordion-item")],Vt);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 Ws=class extends b{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 yr);)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`
|
|
3357
3357
|
<button
|
|
3358
3358
|
type="button"
|
|
3359
3359
|
part="accordion-trigger"
|
|
@@ -3382,7 +3382,7 @@ body {
|
|
|
3382
3382
|
<path d="m6 9 6 6 6-6" />
|
|
3383
3383
|
</svg>
|
|
3384
3384
|
</button>
|
|
3385
|
-
`}};Ws=
|
|
3385
|
+
`}};Ws=fh([p("rtg-accordion-trigger")],Ws);var De=(e=>(e.MULTIPLE="multiple",e.SINGLE="single",e))(De||{}),vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Wl=(e,t,o,s)=>{for(var r=s>1?void 0:s?yh(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&&vh(t,o,r),r};let yr=class extends b{constructor(){super(...arguments),this.type=De.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===De.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===De.SINGLE)this.selectedItems=[];else if(this.type===De.MULTIPLE)this.selectedItems.splice(t,1);else throw new Error("Invalid accordion type");else if(this.type===De.SINGLE)this.selectedItems=[e];else if(this.type===De.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`
|
|
3386
3386
|
<div
|
|
3387
3387
|
data-orientation="vertical"
|
|
3388
3388
|
${rt(this.getFilteredAttributes())}
|
|
@@ -3391,7 +3391,7 @@ body {
|
|
|
3391
3391
|
>
|
|
3392
3392
|
${e}
|
|
3393
3393
|
</div>
|
|
3394
|
-
`}};Wl([a({type:String})],yr.prototype,"type",2);yr=Wl([p("rtg-accordion")],yr);const ea={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
|
|
3394
|
+
`}};Wl([a({type:String})],yr.prototype,"type",2);yr=Wl([p("rtg-accordion")],yr);const ea={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 wh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,Gl=(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&&wh(t,o,r),r};let Gs=class extends y{constructor(){super(...arguments),this.value=15}createRenderRoot(){return this}render(){return c`
|
|
3395
3395
|
<div
|
|
3396
3396
|
part="progress"
|
|
3397
3397
|
aria-valuenow="${this.value}"
|
|
@@ -3409,7 +3409,7 @@ body {
|
|
|
3409
3409
|
style="transform: translateX(-${100-(this.value||0)}%);"
|
|
3410
3410
|
></div>
|
|
3411
3411
|
</div>
|
|
3412
|
-
`}};Gl([a({type:Number})],Gs.prototype,"value",2);Gs=Gl([p("rtg-progress")],Gs);var
|
|
3412
|
+
`}};Gl([a({type:Number})],Gs.prototype,"value",2);Gs=Gl([p("rtg-progress")],Gs);var _h=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,le=(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&&_h(t,o,r),r};let jt=class extends y{constructor(){super(...arguments),this.variant="default",this.size="default",this.type="button"}get _rootSlot(){return this.querySelector('[data-slot="button"]')}_handleClick(e){this.onClick&&this.onClick(e)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return this.href?c`
|
|
3413
3413
|
<a
|
|
3414
3414
|
data-slot="button"
|
|
3415
3415
|
data-variant=${this.variant}
|
|
@@ -3432,11 +3432,11 @@ body {
|
|
|
3432
3432
|
aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":v}
|
|
3433
3433
|
@click=${this._handleClick}
|
|
3434
3434
|
></button>
|
|
3435
|
-
`}};le([a({type:String})],jt.prototype,"variant",2);le([a({type:String})],jt.prototype,"size",2);le([a({type:String})],jt.prototype,"type",2);le([a({type:Boolean})],jt.prototype,"disabled",2);le([a({type:Boolean})],jt.prototype,"invalid",2);le([a({type:String})],jt.prototype,"href",2);le([a({type:String})],jt.prototype,"target",2);le([a({attribute:!1,type:Function})],jt.prototype,"onClick",2);jt=le([p("rtg-button")],jt);var
|
|
3435
|
+
`}};le([a({type:String})],jt.prototype,"variant",2);le([a({type:String})],jt.prototype,"size",2);le([a({type:String})],jt.prototype,"type",2);le([a({type:Boolean})],jt.prototype,"disabled",2);le([a({type:Boolean})],jt.prototype,"invalid",2);le([a({type:String})],jt.prototype,"href",2);le([a({type:String})],jt.prototype,"target",2);le([a({attribute:!1,type:Function})],jt.prototype,"onClick",2);jt=le([p("rtg-button")],jt);var $h=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,Kl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ch(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&&$h(t,o,r),r};let Ks=class extends y{constructor(){super(...arguments),this.size="default"}get _rootSlot(){return this.querySelector('[data-slot="card"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="card" data-size=${this.size}></div>`}};Kl([a({type:String})],Ks.prototype,"size",2);Ks=Kl([p("rtg-card")],Ks);var kh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Yl=(e,t,o,s)=>{for(var r=s>1?void 0:s?Eh(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&&kh(t,o,r),r};let Ys=class extends y{get _headerSlot(){return this.querySelector('[data-slot="card-header"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._headerSlot&&((o=this._headerSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`
|
|
3436
3436
|
<div data-slot="card-header" ?data-bordered=${this.bordered}></div>
|
|
3437
|
-
`}};Yl([a({type:Boolean})],Ys.prototype,"bordered",2);Ys=Yl([p("rtg-card-header")],Ys);var
|
|
3437
|
+
`}};Yl([a({type:Boolean})],Ys.prototype,"bordered",2);Ys=Yl([p("rtg-card-header")],Ys);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 ra=class extends y{get _titleSlot(){return this.querySelector('[data-slot="card-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._titleSlot&&((o=this._titleSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="card-title"></div>`}};ra=Rh([p("rtg-card-title")],ra);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};let oa=class extends y{get _descriptionSlot(){return this.querySelector('[data-slot="card-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._descriptionSlot&&((o=this._descriptionSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="card-description"></div>`}};oa=Oh([p("rtg-card-description")],oa);var Ah=(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 y{get _actionSlot(){return this.querySelector('[data-slot="card-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._actionSlot&&((o=this._actionSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="card-action"></div>`}};sa=Ah([p("rtg-card-action")],sa);var Ih=(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 y{get _contentSlot(){return this.querySelector('[data-slot="card-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._contentSlot&&((o=this._contentSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`<div data-slot="card-content"></div>`}};ia=Ih([p("rtg-card-content")],ia);var Ph=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Xl=(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&&Ph(t,o,r),r};let Xs=class extends y{get _footerSlot(){return this.querySelector('[data-slot="card-footer"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._footerSlot&&((o=this._footerSlot)==null||o.appendChild(t))})}createRenderRoot(){return this}render(){return c`
|
|
3438
3438
|
<div data-slot="card-footer" ?data-bordered=${this.bordered}></div>
|
|
3439
|
-
`}};Xl([a({type:Boolean})],Xs.prototype,"bordered",2);Xs=Xl([p("rtg-card-footer")],Xs);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
|
|
3439
|
+
`}};Xl([a({type:Boolean})],Xs.prototype,"bordered",2);Xs=Xl([p("rtg-card-footer")],Xs);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 Th=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,kr=(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&&Th(t,o,r),r};let Me=class extends y{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 h($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=h($t.slidesWrapper.base,$t.slidesWrapper.orientation[this.orientation]),r=h($t.controls.base,$t.controls.orientation[this.orientation]),i=h($t.controlButton.base,this.orientation==="vertical"&&$t.controlButton.orientation.verticalPrev),n=h($t.controlButton.base,this.orientation==="vertical"&&$t.controlButton.orientation.verticalNext);return c`
|
|
3440
3440
|
<div
|
|
3441
3441
|
part="rtg-carousel"
|
|
3442
3442
|
class="${h($t.root,this.className)}"
|
|
@@ -3452,7 +3452,7 @@ body {
|
|
|
3452
3452
|
?disabled="${e}"
|
|
3453
3453
|
class="${i}"
|
|
3454
3454
|
>
|
|
3455
|
-
${
|
|
3455
|
+
${Eu()}
|
|
3456
3456
|
</button>
|
|
3457
3457
|
|
|
3458
3458
|
<button
|
|
@@ -3460,12 +3460,12 @@ body {
|
|
|
3460
3460
|
?disabled="${o}"
|
|
3461
3461
|
class="${n}"
|
|
3462
3462
|
>
|
|
3463
|
-
${
|
|
3463
|
+
${Ru()}
|
|
3464
3464
|
</button>
|
|
3465
3465
|
</div>
|
|
3466
3466
|
</div>
|
|
3467
3467
|
</div>
|
|
3468
|
-
`}};kr([a({type:Number})],Me.prototype,"currentIndex",2);kr([a({type:Array})],Me.prototype,"items",2);kr([a({type:String})],Me.prototype,"orientation",2);kr([a({type:Boolean})],Me.prototype,"size",2);kr([co(".slides")],Me.prototype,"slides",2);Me=kr([p("rtg-carousel")],Me);const Er={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
|
|
3468
|
+
`}};kr([a({type:Number})],Me.prototype,"currentIndex",2);kr([a({type:Array})],Me.prototype,"items",2);kr([a({type:String})],Me.prototype,"orientation",2);kr([a({type:Boolean})],Me.prototype,"size",2);kr([co(".slides")],Me.prototype,"slides",2);Me=kr([p("rtg-carousel")],Me);const Er={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 zh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Zl=(e,t,o,s)=>{for(var r=s>1?void 0:s?jh(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 Zs=class extends b{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 wt);)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`
|
|
3469
3469
|
<button
|
|
3470
3470
|
type="button"
|
|
3471
3471
|
part="combo-box-trigger-button"
|
|
@@ -3476,23 +3476,23 @@ body {
|
|
|
3476
3476
|
data-radix-collection-item=""
|
|
3477
3477
|
@click=${this.handleClick}
|
|
3478
3478
|
>
|
|
3479
|
-
${
|
|
3479
|
+
${ku()}
|
|
3480
3480
|
</button>
|
|
3481
|
-
`}};Zl([co("button")],Zs.prototype,"buttonElement",2);Zs=Zl([p("rtg-combo-box-trigger")],Zs);var
|
|
3481
|
+
`}};Zl([co("button")],Zs.prototype,"buttonElement",2);Zs=Zl([p("rtg-combo-box-trigger")],Zs);var Nh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,Jl=(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&&Nh(t,o,r),r};let Js=class extends y{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 wt);)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`
|
|
3482
3482
|
<span
|
|
3483
3483
|
part="combo-box-value"
|
|
3484
3484
|
class="${h(Er.value,this.className)}"
|
|
3485
3485
|
@click=${this.handleClick}
|
|
3486
3486
|
>${this.renderLabel()}</span
|
|
3487
3487
|
>
|
|
3488
|
-
`}};Jl([a({type:String})],Js.prototype,"placeholder",2);Js=Jl([p("rtg-combo-box-value")],Js);var
|
|
3488
|
+
`}};Jl([a({type:String})],Js.prototype,"placeholder",2);Js=Jl([p("rtg-combo-box-value")],Js);var Mh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Ui=(e,t,o,s)=>{for(var r=s>1?void 0:s?Fh(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&&Mh(t,o,r),r};let Oo=class extends y{constructor(){super(...arguments),this.orientation="horizontal"}createRenderRoot(){return this}render(){return c`
|
|
3489
3489
|
<div
|
|
3490
3490
|
data-slot="separator"
|
|
3491
3491
|
data-orientation=${this.orientation}
|
|
3492
3492
|
role=${this.decorative?"none":"separator"}
|
|
3493
3493
|
aria-orientation=${this.decorative?v:this.orientation}
|
|
3494
3494
|
></div>
|
|
3495
|
-
`}};Ui([a({type:String})],Oo.prototype,"orientation",2);Ui([a({type:Boolean})],Oo.prototype,"decorative",2);Oo=Ui([p("rtg-separator")],Oo);var
|
|
3495
|
+
`}};Ui([a({type:String})],Oo.prototype,"orientation",2);Ui([a({type:Boolean})],Oo.prototype,"decorative",2);Oo=Ui([p("rtg-separator")],Oo);var Bh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,po=(e,t,o,s)=>{for(var r=s>1?void 0:s?qh(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 Fe=class extends b{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 wt);)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`
|
|
3496
3496
|
<rtg-combo-box-item
|
|
3497
3497
|
@mouseover="${n=>this.handleMouseOver(n,t)}"
|
|
3498
3498
|
.value=${s}
|
|
@@ -3519,7 +3519,7 @@ body {
|
|
|
3519
3519
|
${this.renderFilteredItems()}
|
|
3520
3520
|
</div>
|
|
3521
3521
|
</div>
|
|
3522
|
-
`}};po([R()],Fe.prototype,"searchKey",2);po([R()],Fe.prototype,"focusedIndex",2);po([R()],Fe.prototype,"selectedValue",2);po([R()],Fe.prototype,"isOpen",2);Fe=po([p("rtg-combo-box-group")],Fe);var
|
|
3522
|
+
`}};po([R()],Fe.prototype,"searchKey",2);po([R()],Fe.prototype,"focusedIndex",2);po([R()],Fe.prototype,"selectedValue",2);po([R()],Fe.prototype,"isOpen",2);Fe=po([p("rtg-combo-box-group")],Fe);var Hh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Ft=(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&&Hh(t,o,r),r};let At=class extends b{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`
|
|
3523
3523
|
<div
|
|
3524
3524
|
${rt(e)}
|
|
3525
3525
|
@click=${this.handleClick}
|
|
@@ -3532,12 +3532,12 @@ body {
|
|
|
3532
3532
|
<span
|
|
3533
3533
|
class="${this.isSelected?"rtg-visible":"rtg-invisible"} data-hs-combo-box-value rtg-mr-2"
|
|
3534
3534
|
>
|
|
3535
|
-
${
|
|
3535
|
+
${Pu()}
|
|
3536
3536
|
</span>
|
|
3537
3537
|
</div>
|
|
3538
|
-
`}};Ft([a({type:String})],At.prototype,"value",2);Ft([a({type:String})],At.prototype,"key",2);Ft([a({type:Number})],At.prototype,"tabindex",2);Ft([a({type:Boolean})],At.prototype,"isSelected",2);Ft([a({type:Boolean})],At.prototype,"isFocus",2);Ft([a({type:String})],At.prototype,"class",2);Ft([a({type:Number})],At.prototype,"selectItemIndex",2);Ft([a({type:Function})],At.prototype,"onSelect",2);Ft([a({type:Function})],At.prototype,"onMouseOver",2);Ft([co("#rtg-combo-box-item")],At.prototype,"itemDivContainer",2);At=Ft([p("rtg-combo-box-item")],At);var
|
|
3538
|
+
`}};Ft([a({type:String})],At.prototype,"value",2);Ft([a({type:String})],At.prototype,"key",2);Ft([a({type:Number})],At.prototype,"tabindex",2);Ft([a({type:Boolean})],At.prototype,"isSelected",2);Ft([a({type:Boolean})],At.prototype,"isFocus",2);Ft([a({type:String})],At.prototype,"class",2);Ft([a({type:Number})],At.prototype,"selectItemIndex",2);Ft([a({type:Function})],At.prototype,"onSelect",2);Ft([a({type:Function})],At.prototype,"onMouseOver",2);Ft([co("#rtg-combo-box-item")],At.prototype,"itemDivContainer",2);At=Ft([p("rtg-combo-box-item")],At);var Wh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Mi=(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&&Wh(t,o,r),r};let Ao=class extends y{constructor(){super(...arguments),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof Fe);)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`
|
|
3539
3539
|
<div class="rtg-flex rtg-items-center rtg-px-2">
|
|
3540
|
-
${
|
|
3540
|
+
${Iu()}
|
|
3541
3541
|
<input
|
|
3542
3542
|
part="combo-box-input"
|
|
3543
3543
|
type="text"
|
|
@@ -3553,28 +3553,28 @@ body {
|
|
|
3553
3553
|
@keydown="${this.handleKeyDown}"
|
|
3554
3554
|
/>
|
|
3555
3555
|
</div>
|
|
3556
|
-
`}};Mi([a({type:String})],Ao.prototype,"placeholder",2);Mi([R()],Ao.prototype,"searchValue",2);Ao=Mi([p("rtg-combo-box-input")],Ao);var
|
|
3556
|
+
`}};Mi([a({type:String})],Ao.prototype,"placeholder",2);Mi([R()],Ao.prototype,"searchValue",2);Ao=Mi([p("rtg-combo-box-input")],Ao);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 na=class extends b{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return c`
|
|
3557
3557
|
<div
|
|
3558
3558
|
class="${h(Er.empty,this.className)}"
|
|
3559
3559
|
role="presentation"
|
|
3560
3560
|
>
|
|
3561
3561
|
${Array.from(this.childNodes)[0].textContent}
|
|
3562
3562
|
</div>
|
|
3563
|
-
`}};na=
|
|
3563
|
+
`}};na=Kh([p("rtg-combo-box-empty")],na);var Yh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,Jt=(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&&Yh(t,o,r),r};let wt=class extends b{constructor(){super(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=Li(),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`
|
|
3564
3564
|
<div
|
|
3565
3565
|
class="${h("rtg-relative",this.className)}"
|
|
3566
3566
|
data-hs-combo-box=""
|
|
3567
3567
|
data-combo-box-uuid=${this.uuid}
|
|
3568
3568
|
part="combo-box"
|
|
3569
3569
|
></div>
|
|
3570
|
-
`}};Jt([a({type:Boolean})],wt.prototype,"isOpen",2);Jt([R()],wt.prototype,"selectedValue",2);Jt([R()],wt.prototype,"searchTerm",2);Jt([R()],wt.prototype,"focusedIndex",2);Jt([R()],wt.prototype,"filteredItems",2);Jt([R()],wt.prototype,"uuid",2);Jt([a({type:String})],wt.prototype,"label",2);Jt([a({type:Array})],wt.prototype,"items",2);Jt([co('[part="combo-box"]')],wt.prototype,"parentDiveElement",2);wt=Jt([p("rtg-combo-box")],wt);const Fi={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
|
|
3570
|
+
`}};Jt([a({type:Boolean})],wt.prototype,"isOpen",2);Jt([R()],wt.prototype,"selectedValue",2);Jt([R()],wt.prototype,"searchTerm",2);Jt([R()],wt.prototype,"focusedIndex",2);Jt([R()],wt.prototype,"filteredItems",2);Jt([R()],wt.prototype,"uuid",2);Jt([a({type:String})],wt.prototype,"label",2);Jt([a({type:Array})],wt.prototype,"items",2);Jt([co('[part="combo-box"]')],wt.prototype,"parentDiveElement",2);wt=Jt([p("rtg-combo-box")],wt);const Fi={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 Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,Bi=(e,t,o,s)=>{for(var r=s>1?void 0:s?Jh(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 Io=class extends b{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`
|
|
3571
3571
|
<div
|
|
3572
3572
|
id="rtg-hover-card-content"
|
|
3573
3573
|
part="hover-card-content"
|
|
3574
3574
|
class=${h(Fi.content,this.className)}
|
|
3575
3575
|
style="display: ${this.isOpen?"block":"none"};"
|
|
3576
3576
|
></div>
|
|
3577
|
-
`}};Bi([a({attribute:"data-state",type:String})],Io.prototype,"state",2);Bi([R()],Io.prototype,"isOpen",2);Io=Bi([p("rtg-hover-card-content")],Io);var
|
|
3577
|
+
`}};Bi([a({attribute:"data-state",type:String})],Io.prototype,"state",2);Bi([R()],Io.prototype,"isOpen",2);Io=Bi([p("rtg-hover-card-content")],Io);var Qh=(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 b{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return c`
|
|
3578
3578
|
<div
|
|
3579
3579
|
id="rtg-hover-card-trigger"
|
|
3580
3580
|
part="rtg-hover-card-trigger"
|
|
@@ -3582,13 +3582,13 @@ body {
|
|
|
3582
3582
|
>
|
|
3583
3583
|
${Array.from(this.children)}
|
|
3584
3584
|
</div>
|
|
3585
|
-
`}};aa=
|
|
3585
|
+
`}};aa=Qh([p("rtg-hover-card-trigger")],aa);var tp=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Ql=(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 Qs=class extends b{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`
|
|
3586
3586
|
<div
|
|
3587
3587
|
id="rtg-hover-card-container"
|
|
3588
3588
|
part="hover-card"
|
|
3589
3589
|
class=${h(Fi.root,this.className)}
|
|
3590
3590
|
></div>
|
|
3591
|
-
`}};Ql([R()],Qs.prototype,"isOpen",2);Qs=Ql([p("rtg-hover-card")],Qs);const Wt={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
|
|
3591
|
+
`}};Ql([R()],Qs.prototype,"isOpen",2);Qs=Ql([p("rtg-hover-card")],Qs);const Wt={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 rp=Object.defineProperty,op=Object.getOwnPropertyDescriptor,qi=(e,t,o,s)=>{for(var r=s>1?void 0:s?op(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&&rp(t,o,r),r};let Be=class extends b{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${Be._counter++}`:this._id=`rtgcmdrxlxe${Be._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return c`
|
|
3592
3592
|
<div
|
|
3593
3593
|
rtgcmd-empty
|
|
3594
3594
|
id="${this.identifier}"
|
|
@@ -3596,7 +3596,7 @@ body {
|
|
|
3596
3596
|
role="presentation"
|
|
3597
3597
|
class=${h(Wt.empty,this._hidden==="true"&&"rtg-hidden",this.className)}
|
|
3598
3598
|
></div>
|
|
3599
|
-
`}};Be._counter=0;qi([a({type:String})],Be.prototype,"_id",2);qi([a({attribute:"aria-hidden",type:String})],Be.prototype,"_hidden",2);Be=qi([p("rtg-command-empty")],Be);var
|
|
3599
|
+
`}};Be._counter=0;qi([a({type:String})],Be.prototype,"_id",2);qi([a({attribute:"aria-hidden",type:String})],Be.prototype,"_hidden",2);Be=qi([p("rtg-command-empty")],Be);var sp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,es=(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&&sp(t,o,r),r};let ve=class extends b{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${ve._counter++}`:this._id=`rtgcmdrxlxg${ve._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`
|
|
3600
3600
|
<div
|
|
3601
3601
|
rtgcmd-group
|
|
3602
3602
|
id="${this.identifier}"
|
|
@@ -3619,7 +3619,7 @@ body {
|
|
|
3619
3619
|
aria-labelledby="${this.identifier}h"
|
|
3620
3620
|
></div>
|
|
3621
3621
|
</div>
|
|
3622
|
-
`}};ve._counter=0;es([a({type:String})],ve.prototype,"heading",2);es([a({attribute:"id",type:String})],ve.prototype,"_id",2);es([a({attribute:"aria-hidden",type:String})],ve.prototype,"_hidden",2);ve=es([p("rtg-command-group")],ve);var
|
|
3622
|
+
`}};ve._counter=0;es([a({type:String})],ve.prototype,"heading",2);es([a({attribute:"id",type:String})],ve.prototype,"_id",2);es([a({attribute:"aria-hidden",type:String})],ve.prototype,"_hidden",2);ve=es([p("rtg-command-group")],ve);var np=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,Hi=(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&&np(t,o,r),r};let Po=class extends y{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(m=>{(m.value||"").toLowerCase().includes(this._value.toLowerCase())?(l=!1,t=!1,m._hidden="false"):m._hidden="true"}),r._hidden=l?"true":"false";let u=r.previousElementSibling;u&&(u._hidden=l||((i=u.previousElementSibling)==null?void 0:i.getAttribute("aria-hidden"))==="true"?"true":"false"),u=r.nextElementSibling,u&&(u._hidden=l||((n=u.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`
|
|
3623
3623
|
<div
|
|
3624
3624
|
part="command-input"
|
|
3625
3625
|
class=${h(Wt.input.wrapper,this.className)}
|
|
@@ -3660,7 +3660,7 @@ body {
|
|
|
3660
3660
|
class=${h(Wt.input.input)}
|
|
3661
3661
|
/>
|
|
3662
3662
|
</div>
|
|
3663
|
-
`}};Hi([a({type:String})],Po.prototype,"placeholder",2);Hi([a({attribute:"value",type:String})],Po.prototype,"_value",2);Po=Hi([p("rtg-command-input")],Po);var
|
|
3663
|
+
`}};Hi([a({type:String})],Po.prototype,"placeholder",2);Hi([a({attribute:"value",type:String})],Po.prototype,"_value",2);Po=Hi([p("rtg-command-input")],Po);var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,Rr=(e,t,o,s)=>{for(var r=s>1?void 0:s?cp(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&&lp(t,o,r),r};let Gt=class extends b{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`
|
|
3664
3664
|
<div
|
|
3665
3665
|
rtgcmd-item
|
|
3666
3666
|
id="${this.identifier}"
|
|
@@ -3677,7 +3677,7 @@ body {
|
|
|
3677
3677
|
@click="${this.onSelect}"
|
|
3678
3678
|
class=${h(Wt.item,this._hidden==="true"&&"rtg-hidden",this.className)}
|
|
3679
3679
|
></div>
|
|
3680
|
-
`}};Gt._counter=0;Rr([a({type:String})],Gt.prototype,"_id",2);Rr([a({attribute:"aria-hidden",type:String})],Gt.prototype,"_hidden",2);Rr([a({type:Function})],Gt.prototype,"onSelect",2);Rr([a({attribute:"data-value",type:String}),a({type:Boolean})],Gt.prototype,"containerElement",1);Rr([a({attribute:"data-disabled",type:String})],Gt.prototype,"disabled",2);Gt=Rr([p("rtg-command-item")],Gt);var
|
|
3680
|
+
`}};Gt._counter=0;Rr([a({type:String})],Gt.prototype,"_id",2);Rr([a({attribute:"aria-hidden",type:String})],Gt.prototype,"_hidden",2);Rr([a({type:Function})],Gt.prototype,"onSelect",2);Rr([a({attribute:"data-value",type:String}),a({type:Boolean})],Gt.prototype,"containerElement",1);Rr([a({attribute:"data-disabled",type:String})],Gt.prototype,"disabled",2);Gt=Rr([p("rtg-command-item")],Gt);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 la=class extends b{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`
|
|
3681
3681
|
<div
|
|
3682
3682
|
rtgcmd-list
|
|
3683
3683
|
id="${this.identifier}"
|
|
@@ -3687,7 +3687,7 @@ body {
|
|
|
3687
3687
|
>
|
|
3688
3688
|
<div></div>
|
|
3689
3689
|
</div>
|
|
3690
|
-
`}};la=
|
|
3690
|
+
`}};la=dp([p("rtg-command-list")],la);var up=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Vi=(e,t,o,s)=>{for(var r=s>1?void 0:s?hp(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 qe=class extends y{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${qe._counter++}`:this._id=`rtgcmdrxlxs${qe._counter++}`,this._id}createRenderRoot(){return this}render(){return c`${this._hidden==="true"?v:c`
|
|
3691
3691
|
<div
|
|
3692
3692
|
rtgcmd-separator
|
|
3693
3693
|
id="${this.identifier}"
|
|
@@ -3695,7 +3695,7 @@ body {
|
|
|
3695
3695
|
role="separator"
|
|
3696
3696
|
class=${h(Wt.separator,this.className)}
|
|
3697
3697
|
></div>
|
|
3698
|
-
`}`}};qe._counter=0;Vi([a({type:String})],qe.prototype,"_id",2);Vi([a({attribute:"aria-hidden",type:String})],qe.prototype,"_hidden",2);qe=Vi([p("rtg-command-separator")],qe);var
|
|
3698
|
+
`}`}};qe._counter=0;Vi([a({type:String})],qe.prototype,"_id",2);Vi([a({attribute:"aria-hidden",type:String})],qe.prototype,"_hidden",2);qe=Vi([p("rtg-command-separator")],qe);var pp=(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 b{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`
|
|
3699
3699
|
<div
|
|
3700
3700
|
part="command"
|
|
3701
3701
|
class="${h(Wt.root,e)}"
|
|
@@ -3703,7 +3703,7 @@ body {
|
|
|
3703
3703
|
id="rtgcmdr1"
|
|
3704
3704
|
rtgcmd-root
|
|
3705
3705
|
></div>
|
|
3706
|
-
`}};ca=
|
|
3706
|
+
`}};ca=pp([p("rtg-command")],ca);const ft={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 gp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Or=(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&&gp(t,o,r),r};let He=class extends b{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`
|
|
3707
3707
|
<div
|
|
3708
3708
|
rtgcmd-item
|
|
3709
3709
|
part="context-menu-checkbox"
|
|
@@ -3738,12 +3738,12 @@ body {
|
|
|
3738
3738
|
</span>
|
|
3739
3739
|
<div part="context-menu-checkbox-item-container"></div>
|
|
3740
3740
|
</div>
|
|
3741
|
-
`}};Or([a({type:String})],He.prototype,"_id",2);Or([a({attribute:"data-value",type:String})],He.prototype,"value",1);Or([a({type:Boolean})],He.prototype,"selected",2);Or([a({type:Boolean})],He.prototype,"checked",2);Or([a({attribute:"data-disabled",type:Boolean})],He.prototype,"disabled",2);He=Or([p("rtg-context-menu-checkbox-item")],He);var
|
|
3741
|
+
`}};Or([a({type:String})],He.prototype,"_id",2);Or([a({attribute:"data-value",type:String})],He.prototype,"value",1);Or([a({type:Boolean})],He.prototype,"selected",2);Or([a({type:Boolean})],He.prototype,"checked",2);Or([a({attribute:"data-disabled",type:Boolean})],He.prototype,"disabled",2);He=Or([p("rtg-context-menu-checkbox-item")],He);var bp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,tc=(e,t,o,s)=>{for(var r=s>1?void 0:s?fp(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 ti=class extends b{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`
|
|
3742
3742
|
<div
|
|
3743
3743
|
part="context-menu-content"
|
|
3744
3744
|
class=${h(ft.content,this.className)}
|
|
3745
3745
|
></div>
|
|
3746
|
-
`}};tc([R()],ti.prototype,"isOpen",2);ti=tc([p("rtg-context-menu-content")],ti);var
|
|
3746
|
+
`}};tc([R()],ti.prototype,"isOpen",2);ti=tc([p("rtg-context-menu-content")],ti);var vp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,ec=(e,t,o,s)=>{for(var r=s>1?void 0:s?yp(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&&vp(t,o,r),r};let ei=class extends b{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`
|
|
3747
3747
|
<div
|
|
3748
3748
|
rtgcmd-group
|
|
3749
3749
|
part="context-menu-group"
|
|
@@ -3756,7 +3756,7 @@ body {
|
|
|
3756
3756
|
|
|
3757
3757
|
<div rtgcontext-group-items role="group"></div>
|
|
3758
3758
|
</div>
|
|
3759
|
-
`}};ec([a({type:String})],ei.prototype,"heading",2);ei=ec([p("rtg-context-menu-group")],ei);var
|
|
3759
|
+
`}};ec([a({type:String})],ei.prototype,"heading",2);ei=ec([p("rtg-context-menu-group")],ei);var wp=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,Wi=(e,t,o,s)=>{for(var r=s>1?void 0:s?xp(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 Lo=class extends b{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`
|
|
3760
3760
|
<div
|
|
3761
3761
|
part="context-menu-item"
|
|
3762
3762
|
role="option"
|
|
@@ -3764,7 +3764,7 @@ body {
|
|
|
3764
3764
|
?data-disabled=${this.disabled}
|
|
3765
3765
|
class=${h(ft.item,this.className)}
|
|
3766
3766
|
></div>
|
|
3767
|
-
`}};Wi([a({attribute:"data-value",type:String})],Lo.prototype,"value",1);Wi([a({attribute:"data-disabled",type:Boolean})],Lo.prototype,"disabled",2);Lo=Wi([p("rtg-context-menu-item")],Lo);var
|
|
3767
|
+
`}};Wi([a({attribute:"data-value",type:String})],Lo.prototype,"value",1);Wi([a({attribute:"data-disabled",type:Boolean})],Lo.prototype,"disabled",2);Lo=Wi([p("rtg-context-menu-item")],Lo);var _p=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Ar=(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&&_p(t,o,r),r};let Ve=class extends b{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`
|
|
3768
3768
|
<div
|
|
3769
3769
|
rtgcmd-item
|
|
3770
3770
|
part="context-menu-radio"
|
|
@@ -3797,49 +3797,49 @@ body {
|
|
|
3797
3797
|
</span>
|
|
3798
3798
|
<div part="context-menu-radio-item-container"></div>
|
|
3799
3799
|
</div>
|
|
3800
|
-
`}};Ar([a({type:String})],Ve.prototype,"_id",2);Ar([a({attribute:"data-value",type:String})],Ve.prototype,"value",1);Ar([a({type:Boolean})],Ve.prototype,"selected",2);Ar([a({type:Boolean})],Ve.prototype,"checked",2);Ar([a({attribute:"data-disabled",type:Boolean})],Ve.prototype,"disabled",2);Ve=Ar([p("rtg-context-menu-radio-item")],Ve);var
|
|
3800
|
+
`}};Ar([a({type:String})],Ve.prototype,"_id",2);Ar([a({attribute:"data-value",type:String})],Ve.prototype,"value",1);Ar([a({type:Boolean})],Ve.prototype,"selected",2);Ar([a({type:Boolean})],Ve.prototype,"checked",2);Ar([a({attribute:"data-disabled",type:Boolean})],Ve.prototype,"disabled",2);Ve=Ar([p("rtg-context-menu-radio-item")],Ve);var $p=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,rc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Cp(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 ri=class extends y{constructor(){super(...arguments),this._id=""}createRenderRoot(){return this}render(){return c`
|
|
3801
3801
|
<div
|
|
3802
3802
|
rtgcmd-separator
|
|
3803
3803
|
part="context-menu-separator"
|
|
3804
3804
|
role="separator"
|
|
3805
3805
|
class=${h(ft.separator,this.className)}
|
|
3806
3806
|
></div>
|
|
3807
|
-
`}};rc([a({type:String})],ri.prototype,"_id",2);ri=rc([p("rtg-context-menu-separator")],ri);var
|
|
3807
|
+
`}};rc([a({type:String})],ri.prototype,"_id",2);ri=rc([p("rtg-context-menu-separator")],ri);var kp=(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 b{get _containerElement(){return this.querySelector("span[part=context-menu-shortcut]")}getAttributesToExclude(){return[]}createRenderRoot(){return this.classList=h(ft.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3808
3808
|
<span
|
|
3809
3809
|
part="context-menu-shortcut"
|
|
3810
3810
|
class=${h(ft.shortcut,this.className)}
|
|
3811
3811
|
>
|
|
3812
3812
|
</span>
|
|
3813
|
-
`}};da
|
|
3813
|
+
`}};da=kp([p("rtg-context-menu-shortcut")],da);var Ep=(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 y{createRenderRoot(){return this}render(){return c``}};ua=Ep([p("rtg-context-menu-trigger")],ua);var Rp=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,oc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Op(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&&Rp(t,o,r),r};let oi=class extends b{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`
|
|
3814
3814
|
<div
|
|
3815
3815
|
part="context-menu"
|
|
3816
3816
|
class=${h(ft.root,this.className)}
|
|
3817
3817
|
></div>
|
|
3818
|
-
`}};oc([R()],oi.prototype,"isOpen",2);oi=oc([p("rtg-context-menu")],oi);var
|
|
3818
|
+
`}};oc([R()],oi.prototype,"isOpen",2);oi=oc([p("rtg-context-menu")],oi);var Ap=(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 b{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 To);)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`
|
|
3819
3819
|
<div
|
|
3820
3820
|
@click=${this.onTrigger}
|
|
3821
3821
|
${rt(e)}
|
|
3822
3822
|
part="collapsible-trigger"
|
|
3823
3823
|
></div>
|
|
3824
|
-
`}};ha=
|
|
3824
|
+
`}};ha=Ap([p("rtg-collapsible-trigger")],ha);var Ip=(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 b{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`
|
|
3825
3825
|
<div
|
|
3826
3826
|
${rt(e)}
|
|
3827
3827
|
class="${h("",this.className)}"
|
|
3828
3828
|
style="display: none;--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
|
3829
3829
|
part="collapsible-content"
|
|
3830
3830
|
></div>
|
|
3831
|
-
`}};pa=
|
|
3831
|
+
`}};pa=Ip([p("rtg-collapsible-content")],pa);var Pp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,sc=(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&&Pp(t,o,r),r};let To=class extends b{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`
|
|
3832
3832
|
<div
|
|
3833
3833
|
${rt(e)}
|
|
3834
3834
|
class="${h("",this.className)}"
|
|
3835
3835
|
part="collapsible"
|
|
3836
3836
|
></div>
|
|
3837
|
-
`}};sc([a({type:Boolean})],To.prototype,"open",2);To=sc([p("rtg-collapsible")],To);const Tt={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
|
|
3837
|
+
`}};sc([a({type:Boolean})],To.prototype,"open",2);To=sc([p("rtg-collapsible")],To);const Tt={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 Tp=(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 Dp="closed";let ga=class extends b{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof wr)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=Dp)})}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
3838
3838
|
<div
|
|
3839
3839
|
part="dialog-close"
|
|
3840
3840
|
class=${h(Tt.close,this.className)}
|
|
3841
3841
|
></div>
|
|
3842
|
-
`}};ga=
|
|
3842
|
+
`}};ga=Tp([p("rtg-dialog-close")],ga);var zp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Gi=(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};const Ds="closed";let Do=class extends b{constructor(){super(...arguments),this.state=Ds,this.showCloseButton=!1,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=Ds)}}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 wr)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")===Ds?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return c`
|
|
3843
3843
|
<div
|
|
3844
3844
|
rtgdlg-content
|
|
3845
3845
|
part="dialog-content"
|
|
@@ -3873,12 +3873,12 @@ body {
|
|
|
3873
3873
|
</button>
|
|
3874
3874
|
`:""}
|
|
3875
3875
|
</div>
|
|
3876
|
-
`}};Gi([a({attribute:"data-state",type:String})],Do.prototype,"state",2);Gi([a({attribute:"show-close-button",type:Boolean})],Do.prototype,"showCloseButton",2);Do=Gi([p("rtg-dialog-content")],Do);var
|
|
3876
|
+
`}};Gi([a({attribute:"data-state",type:String})],Do.prototype,"state",2);Gi([a({attribute:"show-close-button",type:Boolean})],Do.prototype,"showCloseButton",2);Do=Gi([p("rtg-dialog-content")],Do);var Np=(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 b{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
3877
3877
|
<div
|
|
3878
3878
|
part="dialog-footer"
|
|
3879
3879
|
class=${h(Tt.footer,this.className)}
|
|
3880
3880
|
></div>
|
|
3881
|
-
`}};ma=
|
|
3881
|
+
`}};ma=Np([p("rtg-dialog-footer")],ma);var Up=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,Ki=(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&&Up(t,o,r),r};let zo=class extends y{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return c`
|
|
3882
3882
|
<div
|
|
3883
3883
|
part="dialog-header"
|
|
3884
3884
|
class=${h(Tt.header,this.className)}
|
|
@@ -3889,25 +3889,25 @@ body {
|
|
|
3889
3889
|
${this.description}
|
|
3890
3890
|
</p>
|
|
3891
3891
|
</div>
|
|
3892
|
-
`}};Ki([a({attribute:"title",type:String})],zo.prototype,"_title",2);Ki([a({type:String})],zo.prototype,"description",2);zo=Ki([p("rtg-dialog-header")],zo);var
|
|
3892
|
+
`}};Ki([a({attribute:"title",type:String})],zo.prototype,"_title",2);Ki([a({type:String})],zo.prototype,"description",2);zo=Ki([p("rtg-dialog-header")],zo);var Fp=(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 y{createRenderRoot(){return this}render(){return c`
|
|
3893
3893
|
<div
|
|
3894
3894
|
part="dialog-overly"
|
|
3895
3895
|
class=${h(Tt.overlay,this.className)}
|
|
3896
3896
|
></div>
|
|
3897
|
-
`}};ba=
|
|
3897
|
+
`}};ba=Fp([p("rtg-dialog-overlay")],ba);var Bp=(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 qp="open";let fa=class extends b{constructor(){super(...arguments),this.handleClick=()=>{const e=this._dialog;e&&(e.dataset.state=qp)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof wr)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`
|
|
3898
3898
|
<div
|
|
3899
3899
|
part="dialog-trigger"
|
|
3900
3900
|
class=${h(Tt.trigger,this.className)}
|
|
3901
3901
|
></div>
|
|
3902
|
-
`}};fa=
|
|
3902
|
+
`}};fa=Bp([p("rtg-dialog-trigger")],fa);var Hp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,ic=(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&&Hp(t,o,r),r};const Wp="open",Gp="closed";let wr=class extends b{constructor(){super(...arguments),this.state=Gp}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`
|
|
3903
3903
|
<div
|
|
3904
3904
|
rtgdlg-root
|
|
3905
3905
|
part="dialog"
|
|
3906
3906
|
class=${h(Tt.root,this.className)}
|
|
3907
3907
|
>
|
|
3908
|
-
${this.state===
|
|
3908
|
+
${this.state===Wp?c` <rtg-dialog-overlay></rtg-dialog-overlay>`:v}
|
|
3909
3909
|
</div>
|
|
3910
|
-
`}};ic([a({attribute:"data-state",type:String})],wr.prototype,"state",2);wr=ic([p("rtg-dialog")],wr);const va={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
|
|
3910
|
+
`}};ic([a({attribute:"data-state",type:String})],wr.prototype,"state",2);wr=ic([p("rtg-dialog")],wr);const va={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 Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Yi=(e,t,o,s)=>{for(var r=s>1?void 0:s?Yp(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 jo=class extends y{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`
|
|
3911
3911
|
<div
|
|
3912
3912
|
part="switch"
|
|
3913
3913
|
role="switch"
|
|
@@ -3923,7 +3923,7 @@ body {
|
|
|
3923
3923
|
class=${h(va.thumb)}
|
|
3924
3924
|
></div>
|
|
3925
3925
|
</div>
|
|
3926
|
-
`}};Yi([a({attribute:"data-disabled",type:String})],jo.prototype,"disabled",2);Yi([a({attribute:"data-state",type:String})],jo.prototype,"state",2);jo=Yi([p("rtg-switch")],jo);const vt={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
|
|
3926
|
+
`}};Yi([a({attribute:"data-disabled",type:String})],jo.prototype,"disabled",2);Yi([a({attribute:"data-state",type:String})],jo.prototype,"state",2);jo=Yi([p("rtg-switch")],jo);const vt={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 Xp=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&&Xp(t,o,r),r};let We=class extends b{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 it);)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`
|
|
3927
3927
|
<div
|
|
3928
3928
|
rtgcmd-item
|
|
3929
3929
|
part="dropdown-menu-item"
|
|
@@ -3960,13 +3960,13 @@ body {
|
|
|
3960
3960
|
</span>
|
|
3961
3961
|
<div part="dropdown-menu-checkbox-item-container"></div>
|
|
3962
3962
|
</div>
|
|
3963
|
-
`}};Ir([a({type:String})],We.prototype,"_id",2);Ir([a({attribute:"data-value",type:String})],We.prototype,"value",1);Ir([a({type:Boolean})],We.prototype,"selected",2);Ir([a({type:Boolean})],We.prototype,"checked",2);Ir([a({attribute:"data-disabled",type:Boolean})],We.prototype,"disabled",2);We=Ir([p("rtg-dropdown-menu-checkbox-item")],We);const Xi="closed";var
|
|
3963
|
+
`}};Ir([a({type:String})],We.prototype,"_id",2);Ir([a({attribute:"data-value",type:String})],We.prototype,"value",1);Ir([a({type:Boolean})],We.prototype,"selected",2);Ir([a({type:Boolean})],We.prototype,"checked",2);Ir([a({attribute:"data-disabled",type:Boolean})],We.prototype,"disabled",2);We=Ir([p("rtg-dropdown-menu-checkbox-item")],We);const Xi="closed";var Jp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Zi=(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 No=class extends b{constructor(){super(...arguments),this.state=Xi,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof it);)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`
|
|
3964
3964
|
<div
|
|
3965
3965
|
part="dropdown-menu-content"
|
|
3966
3966
|
style="display: ${this.isOpen?"block":"none"};"
|
|
3967
3967
|
class=${h(vt.content,this.className)}
|
|
3968
3968
|
></div>
|
|
3969
|
-
`}};Zi([a({attribute:"data-state",type:String})],No.prototype,"state",2);Zi([R()],No.prototype,"isOpen",2);No=Zi([p("rtg-dropdown-menu-content")],No);var
|
|
3969
|
+
`}};Zi([a({attribute:"data-state",type:String})],No.prototype,"state",2);Zi([R()],No.prototype,"isOpen",2);No=Zi([p("rtg-dropdown-menu-content")],No);var tg=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,rs=(e,t,o,s)=>{for(var r=s>1?void 0:s?eg(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&&tg(t,o,r),r};let oo=class extends b{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"?v:c`
|
|
3970
3970
|
<div
|
|
3971
3971
|
rtgcmd-group
|
|
3972
3972
|
part="dropdown-menu-group"
|
|
@@ -3979,7 +3979,7 @@ body {
|
|
|
3979
3979
|
|
|
3980
3980
|
<div rtgcmd-group-items role="group"></div>
|
|
3981
3981
|
</div>
|
|
3982
|
-
`}`}};rs([a({type:String})],oo.prototype,"heading",2);rs([a({attribute:"id",type:String})],oo.prototype,"_id",2);rs([a({attribute:"aria-hidden",type:String})],oo.prototype,"_hidden",2);oo=rs([p("rtg-dropdown-menu-group")],oo);var
|
|
3982
|
+
`}`}};rs([a({type:String})],oo.prototype,"heading",2);rs([a({attribute:"id",type:String})],oo.prototype,"_id",2);rs([a({attribute:"aria-hidden",type:String})],oo.prototype,"_hidden",2);oo=rs([p("rtg-dropdown-menu-group")],oo);var rg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,Pr=(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 Ge=class extends b{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 it);)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"?v:c`
|
|
3983
3983
|
<div
|
|
3984
3984
|
rtgcmd-item
|
|
3985
3985
|
part="dropdown-menu-item"
|
|
@@ -3995,7 +3995,7 @@ body {
|
|
|
3995
3995
|
@click="${this.handleClickDefault}"
|
|
3996
3996
|
class=${h(vt.item,this.className)}
|
|
3997
3997
|
></div>
|
|
3998
|
-
`}`}};Pr([a({type:String})],Ge.prototype,"_id",2);Pr([a({attribute:"aria-hidden",type:String})],Ge.prototype,"_hidden",2);Pr([a({attribute:"data-value",type:String})],Ge.prototype,"value",1);Pr([a({type:Boolean})],Ge.prototype,"selected",2);Pr([a({attribute:"data-disabled",type:Boolean})],Ge.prototype,"disabled",2);Ge=Pr([p("rtg-dropdown-menu-item")],Ge);var
|
|
3998
|
+
`}`}};Pr([a({type:String})],Ge.prototype,"_id",2);Pr([a({attribute:"aria-hidden",type:String})],Ge.prototype,"_hidden",2);Pr([a({attribute:"data-value",type:String})],Ge.prototype,"value",1);Pr([a({type:Boolean})],Ge.prototype,"selected",2);Pr([a({attribute:"data-disabled",type:Boolean})],Ge.prototype,"disabled",2);Ge=Pr([p("rtg-dropdown-menu-item")],Ge);var sg=Object.defineProperty,ig=Object.getOwnPropertyDescriptor,Je=(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 ye=class extends b{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`
|
|
3999
3999
|
<div
|
|
4000
4000
|
rtgcmd-item
|
|
4001
4001
|
part="dropdown-menu-radio"
|
|
@@ -4030,27 +4030,27 @@ body {
|
|
|
4030
4030
|
</span>
|
|
4031
4031
|
<div part="dropdown-menu-radio-item-container"></div>
|
|
4032
4032
|
</div>
|
|
4033
|
-
`}};Je([a({type:String})],ye.prototype,"_id",2);Je([a({attribute:"aria-hidden",type:String})],ye.prototype,"_hidden",2);Je([a({attribute:"data-value",type:String})],ye.prototype,"value",1);Je([a({type:Boolean})],ye.prototype,"selected",2);Je([a({type:Boolean})],ye.prototype,"checked",2);Je([a({attribute:"data-disabled",type:Boolean})],ye.prototype,"disabled",2);ye=Je([p("rtg-dropdown-menu-radio-item")],ye);var
|
|
4033
|
+
`}};Je([a({type:String})],ye.prototype,"_id",2);Je([a({attribute:"aria-hidden",type:String})],ye.prototype,"_hidden",2);Je([a({attribute:"data-value",type:String})],ye.prototype,"value",1);Je([a({type:Boolean})],ye.prototype,"selected",2);Je([a({type:Boolean})],ye.prototype,"checked",2);Je([a({attribute:"data-disabled",type:Boolean})],ye.prototype,"disabled",2);ye=Je([p("rtg-dropdown-menu-radio-item")],ye);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 ya=class extends b{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`<div
|
|
4034
4034
|
rtgcmd-separator
|
|
4035
4035
|
part="dropdown-menu-seperator"
|
|
4036
4036
|
role="separator"
|
|
4037
4037
|
class=${h(vt.separator,this.className)}
|
|
4038
|
-
></div>`}};ya=
|
|
4038
|
+
></div>`}};ya=ng([p("rtg-dropdown-menu-separator")],ya);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 wa=class extends b{get _containerElement(){return this.querySelector("span[part=dropdown-menu-shortcut]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this.classList=h(vt.shortcut),this}render(){return c`
|
|
4039
4039
|
<span
|
|
4040
4040
|
part="dropdown-menu-shortcut"
|
|
4041
4041
|
class=${h(vt.shortcut,this.className)}
|
|
4042
4042
|
>
|
|
4043
4043
|
</span>
|
|
4044
|
-
`}};wa=
|
|
4044
|
+
`}};wa=ag([p("rtg-dropdown-menu-shortcut")],wa);var lg=(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 y{createRenderRoot(){return this}render(){return c``}};xa=lg([p("rtg-dropdown-menu-trigger")],xa);var cg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,nc=(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&&cg(t,o,r),r};let it=class extends b{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,it._openInstance===this&&(it._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?(it._openInstance&&it._openInstance!==this&&(it._openInstance.isOpen=!1),it._openInstance=this):t&&it._openInstance===this&&(it._openInstance=null)}disconnectedCallback(){it._openInstance===this&&(it._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`
|
|
4045
4045
|
<div
|
|
4046
4046
|
part="dropdown-menu"
|
|
4047
4047
|
class=${h(vt.root,this.className)}
|
|
4048
4048
|
></div>
|
|
4049
|
-
`}};it._openInstance=null;nc([R()],it.prototype,"isOpen",2);it=nc([p("rtg-dropdown-menu")],it);const
|
|
4049
|
+
`}};it._openInstance=null;nc([R()],it.prototype,"isOpen",2);it=nc([p("rtg-dropdown-menu")],it);const ug=["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 hg=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,Qe=(e,t,o,s)=>{for(var r=s>1?void 0:s?pg(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&&hg(t,o,r),r};let we=class extends b{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`
|
|
4050
4050
|
<textarea
|
|
4051
4051
|
part="textarea"
|
|
4052
4052
|
${rt(e)}
|
|
4053
|
-
class="${h(
|
|
4053
|
+
class="${h(ug,this.className)}"
|
|
4054
4054
|
placeholder="${this.placeholder}"
|
|
4055
4055
|
.value=${this.value}
|
|
4056
4056
|
.rows=${this.rows}
|
|
@@ -4058,7 +4058,7 @@ body {
|
|
|
4058
4058
|
?disabled=${this.disabled}
|
|
4059
4059
|
@change="${this.handleInputChange}"
|
|
4060
4060
|
></textarea>
|
|
4061
|
-
`}};Qe([a({type:Boolean})],we.prototype,"disabled",2);Qe([a({type:String})],we.prototype,"placeholder",2);Qe([a({type:String})],we.prototype,"defaultValue",2);Qe([a({type:Number})],we.prototype,"rows",2);Qe([a({type:Number})],we.prototype,"cols",2);Qe([a({type:String})],we.prototype,"value",2);we=Qe([p("rtg-textarea")],we);const Gr={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"]}},
|
|
4061
|
+
`}};Qe([a({type:Boolean})],we.prototype,"disabled",2);Qe([a({type:String})],we.prototype,"placeholder",2);Qe([a({type:String})],we.prototype,"defaultValue",2);Qe([a({type:Number})],we.prototype,"rows",2);Qe([a({type:Number})],we.prototype,"cols",2);Qe([a({type:String})],we.prototype,"value",2);we=Qe([p("rtg-textarea")],we);const Gr={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"]}},gg="unChecked";var mg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,Ee=(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&&mg(t,o,r),r};let oe=class extends b{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=gg,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=h(Gr.item.wrapper),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4062
4062
|
<button
|
|
4063
4063
|
type="button"
|
|
4064
4064
|
part="radio-group-item"
|
|
@@ -4094,18 +4094,18 @@ body {
|
|
|
4094
4094
|
</svg>
|
|
4095
4095
|
</span>`:v}
|
|
4096
4096
|
</button>
|
|
4097
|
-
`}};Ee([a({type:Boolean,reflect:!0})],oe.prototype,"checked",2);Ee([a({type:Number})],oe.prototype,"tabindex",2);Ee([a({type:String})],oe.prototype,"value",2);Ee([a({type:String})],oe.prototype,"id",2);Ee([a({attribute:"data-state",type:String})],oe.prototype,"state",2);Ee([a({type:Boolean})],oe.prototype,"disabled",2);Ee([a({attribute:"aria-invalid",type:Boolean})],oe.prototype,"invalid",2);oe=Ee([p("rtg-radio-group-item")],oe);var
|
|
4097
|
+
`}};Ee([a({type:Boolean,reflect:!0})],oe.prototype,"checked",2);Ee([a({type:Number})],oe.prototype,"tabindex",2);Ee([a({type:String})],oe.prototype,"value",2);Ee([a({type:String})],oe.prototype,"id",2);Ee([a({attribute:"data-state",type:String})],oe.prototype,"state",2);Ee([a({type:Boolean})],oe.prototype,"disabled",2);Ee([a({attribute:"aria-invalid",type:Boolean})],oe.prototype,"invalid",2);oe=Ee([p("rtg-radio-group-item")],oe);var fg=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,ac=(e,t,o,s)=>{for(var r=s>1?void 0:s?vg(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&&fg(t,o,r),r};let si=class extends b{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`
|
|
4098
4098
|
<div
|
|
4099
4099
|
part="radio-group"
|
|
4100
4100
|
class=${h(Gr.root,this.className)}
|
|
4101
4101
|
></div>
|
|
4102
|
-
`}};ac([a({type:String})],si.prototype,"defaultValue",2);si=ac([p("rtg-radio-group")],si);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:Zr,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
|
|
4102
|
+
`}};ac([a({type:String})],si.prototype,"defaultValue",2);si=ac([p("rtg-radio-group")],si);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:Zr,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 yg=(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 b{get _containerElement(){return this.querySelector("ul[part=pagination-content]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4103
4103
|
<ul
|
|
4104
4104
|
data-slot="pagination-content"
|
|
4105
4105
|
part="pagination-content"
|
|
4106
4106
|
class=${h(Dt.content,this.className)}
|
|
4107
4107
|
></ul>
|
|
4108
|
-
`}};_a=
|
|
4108
|
+
`}};_a=yg([p("rtg-pagination-content")],_a);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 Sa=class extends b{get _containerElement(){return this.querySelector("span[part=pagination-ellipsis]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4109
4109
|
<span
|
|
4110
4110
|
aria-hidden
|
|
4111
4111
|
data-slot="pagination-ellipsis"
|
|
@@ -4131,7 +4131,7 @@ body {
|
|
|
4131
4131
|
|
|
4132
4132
|
<span class=${h(Dt.ellipsis.span)}>More pages</span>
|
|
4133
4133
|
</span>
|
|
4134
|
-
`}};Sa=
|
|
4134
|
+
`}};Sa=wg([p("rtg-pagination-ellipsis")],Sa);var xg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,go=(e,t,o,s)=>{for(var r=s>1?void 0:s?_g(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 Ke=class extends b{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`
|
|
4135
4135
|
<a
|
|
4136
4136
|
aria-current=${this.isActive?"page":void 0}
|
|
4137
4137
|
data-slot="pagination-link"
|
|
@@ -4142,14 +4142,14 @@ body {
|
|
|
4142
4142
|
class=${h(Dt.link({variant:this.isActive?"outline":"ghost",size:this.size}),this.className)}
|
|
4143
4143
|
>
|
|
4144
4144
|
</a>
|
|
4145
|
-
`}};go([a({attribute:"data-state",type:String})],Ke.prototype,"state",2);go([a({type:Boolean})],Ke.prototype,"isActive",2);go([a({type:String})],Ke.prototype,"size",2);go([a({type:String})],Ke.prototype,"href",2);Ke=go([p("rtg-pagination-link")],Ke);var
|
|
4145
|
+
`}};go([a({attribute:"data-state",type:String})],Ke.prototype,"state",2);go([a({type:Boolean})],Ke.prototype,"isActive",2);go([a({type:String})],Ke.prototype,"size",2);go([a({type:String})],Ke.prototype,"href",2);Ke=go([p("rtg-pagination-link")],Ke);var Sg=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,Ji=(e,t,o,s)=>{for(var r=s>1?void 0:s?$g(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 Uo=class extends b{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 Ke)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`
|
|
4146
4146
|
<li
|
|
4147
4147
|
data-slot="pagination-item"
|
|
4148
4148
|
part="pagination-item"
|
|
4149
4149
|
class=${h(Dt.item,this.className)}
|
|
4150
4150
|
@click="${this.handleClick}"
|
|
4151
4151
|
></li>
|
|
4152
|
-
`}};Ji([R()],Uo.prototype,"uniqueIds",2);Ji([a({type:Boolean})],Uo.prototype,"isActive",2);Uo=Ji([p("rtg-pagination-item")],Uo);var
|
|
4152
|
+
`}};Ji([R()],Uo.prototype,"uniqueIds",2);Ji([a({type:Boolean})],Uo.prototype,"isActive",2);Uo=Ji([p("rtg-pagination-item")],Uo);var Cg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,lc=(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&&Cg(t,o,r),r};let ii=class extends b{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`
|
|
4153
4153
|
<rtg-pagination-link
|
|
4154
4154
|
aria-label="Go to next page"
|
|
4155
4155
|
size="default"
|
|
@@ -4175,7 +4175,7 @@ body {
|
|
|
4175
4175
|
|
|
4176
4176
|
<div part="pagination-next"></div>
|
|
4177
4177
|
</rtg-pagination-link>
|
|
4178
|
-
`}};lc([a({type:String})],ii.prototype,"href",2);ii=lc([p("rtg-pagination-next")],ii);var
|
|
4178
|
+
`}};lc([a({type:String})],ii.prototype,"href",2);ii=lc([p("rtg-pagination-next")],ii);var Eg=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,cc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Rg(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 ni=class extends b{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`
|
|
4179
4179
|
<rtg-pagination-link
|
|
4180
4180
|
aria-label="Go to previous page"
|
|
4181
4181
|
size="default"
|
|
@@ -4201,7 +4201,7 @@ body {
|
|
|
4201
4201
|
|
|
4202
4202
|
<div part="pagination-previous"></div>
|
|
4203
4203
|
</rtg-pagination-link>
|
|
4204
|
-
`}};cc([a({type:String})],ni.prototype,"href",2);ni=cc([p("rtg-pagination-previous")],ni);var
|
|
4204
|
+
`}};cc([a({type:String})],ni.prototype,"href",2);ni=cc([p("rtg-pagination-previous")],ni);var Og=(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 b{get _containerElement(){return this.querySelector("nav[part=pagination]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4205
4205
|
<nav
|
|
4206
4206
|
role="navigation"
|
|
4207
4207
|
aria-label="pagination"
|
|
@@ -4209,12 +4209,12 @@ body {
|
|
|
4209
4209
|
part="pagination"
|
|
4210
4210
|
class=${h(Dt.root,this.className)}
|
|
4211
4211
|
></nav>
|
|
4212
|
-
`}};$a=
|
|
4212
|
+
`}};$a=Og([p("rtg-pagination")],$a);const Ht={open:"open",closed:"closed"},Kt={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 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 Ca=class extends b{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof so)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=Ht.closed)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
4213
4213
|
<div
|
|
4214
4214
|
part="drawer-close"
|
|
4215
4215
|
class=${h(Kt.close,this.className)}
|
|
4216
4216
|
></div>
|
|
4217
|
-
`}};Ca=
|
|
4217
|
+
`}};Ca=Ag([p("rtg-drawer-close")],Ca);var Ig=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,dc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Pg(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&&Ig(t,o,r),r};let ai=class extends b{constructor(){super(...arguments),this.state=Ht.closed}connectedCallback(){super.connectedCallback();const e=document.createElement("style");e.textContent=`
|
|
4218
4218
|
@keyframes slideInUp {
|
|
4219
4219
|
from { transform: translateY(100%); }
|
|
4220
4220
|
to { transform: translateY(0); }
|
|
@@ -4243,37 +4243,37 @@ body {
|
|
|
4243
4243
|
<div part="drawer-thumb" class=${h(Kt.content.thumb)}></div>
|
|
4244
4244
|
<div part="drawer-content-slot"></div>
|
|
4245
4245
|
</div>
|
|
4246
|
-
`}};dc([a({attribute:"data-state",type:String})],ai.prototype,"state",2);ai=dc([p("rtg-drawer-content")],ai);var
|
|
4246
|
+
`}};dc([a({attribute:"data-state",type:String})],ai.prototype,"state",2);ai=dc([p("rtg-drawer-content")],ai);var Lg=(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 b{get _containerElement(){return this.querySelector("p[part=drawer-description")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4247
4247
|
<p
|
|
4248
4248
|
part="drawer-description"
|
|
4249
4249
|
class=${h(Kt.description,this.className)}
|
|
4250
4250
|
></p>
|
|
4251
|
-
`}};ka=
|
|
4251
|
+
`}};ka=Lg([p("rtg-drawer-description")],ka);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 Ea=class extends b{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4252
4252
|
<div
|
|
4253
4253
|
part="drawer-footer"
|
|
4254
4254
|
class=${h(Kt.footer,this.className)}
|
|
4255
4255
|
></div>
|
|
4256
|
-
`}};Ea=
|
|
4256
|
+
`}};Ea=Tg([p("rtg-drawer-footer")],Ea);var Dg=(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 b{get _containerElement(){return this.querySelector("div[part=drawer-header")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4257
4257
|
<div
|
|
4258
4258
|
part="drawer-header"
|
|
4259
4259
|
class=${h(Kt.header,this.className)}
|
|
4260
4260
|
></div>
|
|
4261
|
-
`}};Ra=
|
|
4261
|
+
`}};Ra=Dg([p("rtg-drawer-header")],Ra);var zg=(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 y{createRenderRoot(){return this}render(){return c`
|
|
4262
4262
|
<div
|
|
4263
4263
|
part="drawer-overly"
|
|
4264
4264
|
class=${h(Kt.overlay,this.className)}
|
|
4265
4265
|
></div>
|
|
4266
|
-
`}};Oa=
|
|
4266
|
+
`}};Oa=zg([p("rtg-drawer-overlay")],Oa);var jg=(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 b{get _containerElement(){return this.querySelector("h2[part=drawer-title")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4267
4267
|
<h2
|
|
4268
4268
|
part="drawer-title"
|
|
4269
4269
|
class=${h(Kt.title,this.className)}
|
|
4270
4270
|
></h2>
|
|
4271
|
-
`}};Aa=
|
|
4271
|
+
`}};Aa=jg([p("rtg-drawer-title")],Aa);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 Ia=class extends b{constructor(){super(...arguments),this.handleClick=()=>{const e=this._drawer;e&&(e.dataset.state=Ht.open)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof so)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`
|
|
4272
4272
|
<div
|
|
4273
4273
|
part="drawer-trigger"
|
|
4274
4274
|
class=${h(Kt.trigger,this.className)}
|
|
4275
4275
|
></div>
|
|
4276
|
-
`}};Ia=
|
|
4276
|
+
`}};Ia=Ng([p("rtg-drawer-trigger")],Ia);var Ug=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,uc=(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&&Ug(t,o,r),r};let so=class extends b{constructor(){super(...arguments),this.state=Ht.closed,this.handleOutsideClick=e=>{const t=this._content;this.state===Ht.open&&t&&(t.contains(e.target)||(this.state=Ht.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===Ht.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`
|
|
4277
4277
|
<div
|
|
4278
4278
|
rtgdlg-root
|
|
4279
4279
|
part="drawer"
|
|
@@ -4281,7 +4281,7 @@ body {
|
|
|
4281
4281
|
>
|
|
4282
4282
|
${this.state===Ht.open?c` <rtg-drawer-overlay></rtg-drawer-overlay>`:v}
|
|
4283
4283
|
</div>
|
|
4284
|
-
`}};uc([a({attribute:"data-state",type:String})],so.prototype,"state",2);so=uc([p("rtg-drawer")],so);class
|
|
4284
|
+
`}};uc([a({attribute:"data-state",type:String})],so.prototype,"state",2);so=uc([p("rtg-drawer")],so);class Fg{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 Bg=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,hc=(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};let li=class extends b{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 xr);)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`
|
|
4285
4285
|
<div
|
|
4286
4286
|
part="select-group"
|
|
4287
4287
|
data-slot="select-content"
|
|
@@ -4293,7 +4293,7 @@ body {
|
|
|
4293
4293
|
class=${h(zt.content.viewport)}
|
|
4294
4294
|
></div>
|
|
4295
4295
|
</div>
|
|
4296
|
-
`}};hc([R()],li.prototype,"focusedIndex",2);li=hc([p("rtg-select-group")],li);var
|
|
4296
|
+
`}};hc([R()],li.prototype,"focusedIndex",2);li=hc([p("rtg-select-group")],li);var Hg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,tr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Vg(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&&Hg(t,o,r),r};let xe=class extends b{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 xr);)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`
|
|
4297
4297
|
<div
|
|
4298
4298
|
${rt(e)}
|
|
4299
4299
|
part="select-item"
|
|
@@ -4327,12 +4327,12 @@ body {
|
|
|
4327
4327
|
|
|
4328
4328
|
<div part="select-item-container"></div>
|
|
4329
4329
|
</div>
|
|
4330
|
-
`}};tr([a()],xe.prototype,"value",2);tr([a()],xe.prototype,"isSelected",2);tr([a()],xe.prototype,"isFocus",2);tr([a()],xe.prototype,"selectItemIndex",2);tr([a({type:Function})],xe.prototype,"onSelect",2);tr([a()],xe.prototype,"class",2);xe=tr([p("rtg-select-item")],xe);var
|
|
4330
|
+
`}};tr([a()],xe.prototype,"value",2);tr([a()],xe.prototype,"isSelected",2);tr([a()],xe.prototype,"isFocus",2);tr([a()],xe.prototype,"selectItemIndex",2);tr([a({type:Function})],xe.prototype,"onSelect",2);tr([a()],xe.prototype,"class",2);xe=tr([p("rtg-select-item")],xe);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 Pa=class extends b{get _containerElement(){return this.querySelector("div[part=select-label]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return c`
|
|
4331
4331
|
<div
|
|
4332
4332
|
part="select-label"
|
|
4333
4333
|
class=${h(zt.label,this.className)}
|
|
4334
4334
|
></div>
|
|
4335
|
-
`}};Pa=
|
|
4335
|
+
`}};Pa=Wg([p("rtg-select-label")],Pa);var Gg=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,Qi=(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&&Gg(t,o,r),r};let Mo=class extends b{constructor(){super(...arguments),this.state=Xi,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return c`
|
|
4336
4336
|
<div
|
|
4337
4337
|
part="select-list"
|
|
4338
4338
|
class="${h("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)}"
|
|
@@ -4340,14 +4340,14 @@ body {
|
|
|
4340
4340
|
data-state="${this.state}"
|
|
4341
4341
|
style="display: ${this.isOpen?"block":"none"}; top:115%"
|
|
4342
4342
|
></div>
|
|
4343
|
-
`}};Qi([a({attribute:"data-state",type:String})],Mo.prototype,"state",2);Qi([R()],Mo.prototype,"isOpen",2);Mo=Qi([p("rtg-select-list")],Mo);var
|
|
4343
|
+
`}};Qi([a({attribute:"data-state",type:String})],Mo.prototype,"state",2);Qi([R()],Mo.prototype,"isOpen",2);Mo=Qi([p("rtg-select-list")],Mo);var Yg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,tn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Xg(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 Fo=class extends y{constructor(){super(...arguments),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return c`
|
|
4344
4344
|
<div
|
|
4345
4345
|
rtgcmd-separator
|
|
4346
4346
|
part="select-separator"
|
|
4347
4347
|
role="separator"
|
|
4348
4348
|
class=${h(zt.separator,this.className)}
|
|
4349
4349
|
></div>
|
|
4350
|
-
`}};tn([a({type:String})],Fo.prototype,"_id",2);tn([a({attribute:"aria-hidden",type:String})],Fo.prototype,"_hidden",2);Fo=tn([p("rtg-select-separator")],Fo);var
|
|
4350
|
+
`}};tn([a({type:String})],Fo.prototype,"_id",2);tn([a({attribute:"aria-hidden",type:String})],Fo.prototype,"_hidden",2);Fo=tn([p("rtg-select-separator")],Fo);var Zg=(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 b{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 xr);)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`
|
|
4351
4351
|
<button
|
|
4352
4352
|
type="button"
|
|
4353
4353
|
part="select-trigger"
|
|
@@ -4376,17 +4376,17 @@ body {
|
|
|
4376
4376
|
<path d="m6 9 6 6 6-6" />
|
|
4377
4377
|
</svg>
|
|
4378
4378
|
</button>
|
|
4379
|
-
`}};La=
|
|
4379
|
+
`}};La=Zg([p("rtg-select-trigger")],La);var Jg=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,pc=(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&&Jg(t,o,r),r};let ci=class extends b{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 xr);)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`
|
|
4380
4380
|
<span part="select-value" class=${h(zt.value,this.className)}>
|
|
4381
4381
|
${this.renderLabel()}
|
|
4382
4382
|
</span>
|
|
4383
|
-
`}};pc([a({type:String})],ci.prototype,"placeholder",2);ci=pc([p("rtg-select-value")],ci);var
|
|
4383
|
+
`}};pc([a({type:String})],ci.prototype,"placeholder",2);ci=pc([p("rtg-select-value")],ci);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 xr=class extends b{constructor(){super(...arguments),this.uuid=Li(),this.selectStore=new Fg,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`
|
|
4384
4384
|
<div
|
|
4385
4385
|
part="select"
|
|
4386
4386
|
data-select-uuid=${this.uuid}
|
|
4387
4387
|
class=${h(zt.root,this.className)}
|
|
4388
4388
|
></div>
|
|
4389
|
-
`}};xr=
|
|
4389
|
+
`}};xr=tm([p("rtg-select")],xr);const mo={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 em=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,en=(e,t,o,s)=>{for(var r=s>1?void 0:s?rm(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&&em(t,o,r),r};const Ta="closed";let Ye=class extends b{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
|
|
4390
4390
|
part="toast-view-port"
|
|
4391
4391
|
tabindex="-1"
|
|
4392
4392
|
@click="${e=>e.stopPropagation()}"
|
|
@@ -4404,45 +4404,45 @@ body {
|
|
|
4404
4404
|
data-radix-collection-item=""
|
|
4405
4405
|
style="user-select: none; touch-action: none;"
|
|
4406
4406
|
></li>
|
|
4407
|
-
</ol>`}};Ye.toastVariants=mo.viewportItem;en([a({type:String})],Ye.prototype,"variant",2);en([a({attribute:"data-state",type:String})],Ye.prototype,"state",2);Ye=en([p("rtg-toast-view-port")],Ye);var
|
|
4407
|
+
</ol>`}};Ye.toastVariants=mo.viewportItem;en([a({type:String})],Ye.prototype,"variant",2);en([a({attribute:"data-state",type:String})],Ye.prototype,"state",2);Ye=en([p("rtg-toast-view-port")],Ye);var om=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,gc=(e,t,o,s)=>{for(var r=s>1?void 0:s?sm(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 _r=class extends b{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`
|
|
4408
4408
|
<button
|
|
4409
4409
|
${rt(e)}
|
|
4410
4410
|
part="toast-action"
|
|
4411
4411
|
type="button"
|
|
4412
4412
|
class="${h(_r.toastVariants.base,_r.toastVariants.variants[this.variant],this.className,"rtg-w-max")}"
|
|
4413
4413
|
></button>
|
|
4414
|
-
`}};_r.toastVariants=mo.action;gc([a({type:String})],_r.prototype,"variant",2);_r=gc([p("rtg-toast-action")],_r);var
|
|
4414
|
+
`}};_r.toastVariants=mo.action;gc([a({type:String})],_r.prototype,"variant",2);_r=gc([p("rtg-toast-action")],_r);var im=(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 b{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4415
4415
|
<div
|
|
4416
4416
|
class="${h(mo.description,this.className)}"
|
|
4417
4417
|
part="toast-description"
|
|
4418
4418
|
>
|
|
4419
4419
|
<slot></slot>
|
|
4420
4420
|
</div>
|
|
4421
|
-
`}};Da=
|
|
4421
|
+
`}};Da=im([p("rtg-toast-description")],Da);var nm=(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 b{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4422
4422
|
<div
|
|
4423
4423
|
part="toast-title"
|
|
4424
4424
|
class="${h(mo.title,this.className)}"
|
|
4425
4425
|
></div>
|
|
4426
|
-
`}};za=
|
|
4426
|
+
`}};za=nm([p("rtg-toast-title")],za);var am=(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 b{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 Bo);)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`
|
|
4427
4427
|
<div
|
|
4428
4428
|
@click=${this.handleClick}
|
|
4429
4429
|
part="toast-trigger"
|
|
4430
4430
|
class="${h(this.className)}"
|
|
4431
4431
|
></div>
|
|
4432
|
-
`}};ja=
|
|
4432
|
+
`}};ja=am([p("rtg-toast-trigger")],ja);var lm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,mc=(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&&lm(t,o,r),r};let Bo=class extends b{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="${h("",this.className)}" part="toast"></div> `}};mc([R()],Bo.prototype,"isOpen",2);Bo=mc([p("rtg-toast")],Bo);function dm(){const e=Date.now().toString(36),t=Math.random().toString(36).substring(2,7);return`rtg-${e}${t}`}function um(e,t){return`${e}-trigger-${t}`}function hm(e,t){return`${e}-content-${t}`}var pm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,Re=(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&&pm(t,o,r),r};let se=class extends y{constructor(){super(...arguments),this.orientation="horizontal",this.dir="ltr",this.activationMode="automatic",this._baseId=dm(),this._onTriggerSelect=e=>{var t;const o=e.detail.value;this._isControlled?(t=this.onValueChange)==null||t.call(this,o):this._activeValue=o}}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="tabs"]')}get _list(){return this.querySelector("rtg-tabs-list")}get _triggers(){return Array.from(this.querySelectorAll("rtg-tabs-trigger"))}get _contents(){return Array.from(this.querySelectorAll("rtg-tabs-content"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._activeValue}_sync(){if(this._list){const e=this._list._listSlot;e.setAttribute("data-orientation",this.orientation),e.setAttribute("aria-orientation",this.orientation)}this._triggers.forEach(e=>{var t;const o=e._triggerSlot;o.setAttribute("data-orientation",this.orientation),o.id||(o.id=um(this._baseId,e.value));const s=e.value===this._currentValue;o.setAttribute("data-state",s?"active":"inactive"),o.tabIndex=s?0:-1,o.setAttribute("aria-selected",String(s));const r=this._contents.find(i=>i.value===e.value);r!=null&&r._contentSlot&&((t=r._contentSlot).id||(t.id=hm(this._baseId,r.value)),r._contentSlot.setAttribute("aria-labelledby",o.id),o.setAttribute("aria-controls",r._contentSlot.id))}),this._contents.forEach(e=>{const t=e._contentSlot;t.setAttribute("data-orientation",this.orientation);const o=e.value===this._currentValue;t.setAttribute("data-state",o?"active":"inactive"),t.toggleAttribute("hidden",!o)})}firstUpdated(){var e;Array.from(this.childNodes).forEach(t=>{var o;t!==this._rootSlot&&((o=this._rootSlot)==null||o.appendChild(t))}),this._activeValue=this.value??this.defaultValue??((e=this._triggers[0])==null?void 0:e.value),this.addEventListener("rtg-tabs:trigger-select",this._onTriggerSelect),this._sync()}updated(e){e.has("value")&&this._isControlled&&(this._activeValue=this.value),this._sync()}render(){return c`
|
|
4433
4433
|
<div
|
|
4434
4434
|
data-slot="tabs"
|
|
4435
4435
|
data-orientation=${this.orientation}
|
|
4436
4436
|
dir=${this.dir}
|
|
4437
4437
|
></div>
|
|
4438
|
-
`}};Re([a({attribute:"default-value",type:String})],se.prototype,"defaultValue",2);Re([a({type:String})],se.prototype,"value",2);Re([a({attribute:!1})],se.prototype,"onValueChange",2);Re([a({type:String})],se.prototype,"orientation",2);Re([a({type:String})],se.prototype,"dir",2);Re([a({attribute:"activation-mode",type:String})],se.prototype,"activationMode",2);Re([R()],se.prototype,"_activeValue",2);se=Re([p("rtg-tabs")],se);var
|
|
4438
|
+
`}};Re([a({attribute:"default-value",type:String})],se.prototype,"defaultValue",2);Re([a({type:String})],se.prototype,"value",2);Re([a({attribute:!1})],se.prototype,"onValueChange",2);Re([a({type:String})],se.prototype,"orientation",2);Re([a({type:String})],se.prototype,"dir",2);Re([a({attribute:"activation-mode",type:String})],se.prototype,"activationMode",2);Re([R()],se.prototype,"_activeValue",2);se=Re([p("rtg-tabs")],se);var mm=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,bc=(e,t,o,s)=>{for(var r=s>1?void 0:s?bm(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 di=class extends y{constructor(){super(...arguments),this.variant="default"}createRenderRoot(){return this}get _listSlot(){return this.querySelector('[data-slot="tabs-list"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._listSlot&&((o=this._listSlot)==null||o.appendChild(t))})}render(){return c`
|
|
4439
4439
|
<div
|
|
4440
4440
|
data-slot="tabs-list"
|
|
4441
4441
|
data-variant=${this.variant}
|
|
4442
4442
|
role="tablist"
|
|
4443
4443
|
tabindex="0"
|
|
4444
4444
|
></div>
|
|
4445
|
-
`}};bc([a({type:String})],di.prototype,"variant",2);di=bc([p("rtg-tabs-list")],di);var
|
|
4445
|
+
`}};bc([a({type:String})],di.prototype,"variant",2);di=bc([p("rtg-tabs-list")],di);var fm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,rn=(e,t,o,s)=>{for(var r=s>1?void 0:s?vm(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&&fm(t,o,r),r};let qo=class extends y{constructor(){super(...arguments),this.value="",this._onClick=()=>{this._emitSelect()},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._emitSelect())}}createRenderRoot(){return this}get _triggerSlot(){return this.querySelector('[data-slot="tabs-trigger"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._triggerSlot&&((o=this._triggerSlot)==null||o.appendChild(t))})}_emitSelect(){this.disabled||this.dispatchEvent(new CustomEvent("rtg-tabs:trigger-select",{detail:{value:this.value},bubbles:!0}))}render(){return c`
|
|
4446
4446
|
<button
|
|
4447
4447
|
data-slot="tabs-trigger"
|
|
4448
4448
|
?data-disabled=${this.disabled}
|
|
@@ -4452,14 +4452,14 @@ body {
|
|
|
4452
4452
|
@click=${this._onClick}
|
|
4453
4453
|
@keydown=${this._onKeyDown}
|
|
4454
4454
|
></button>
|
|
4455
|
-
`}};rn([a({type:String})],qo.prototype,"value",2);rn([a({type:Boolean})],qo.prototype,"disabled",2);qo=rn([p("rtg-tabs-trigger")],qo);var
|
|
4455
|
+
`}};rn([a({type:String})],qo.prototype,"value",2);rn([a({type:Boolean})],qo.prototype,"disabled",2);qo=rn([p("rtg-tabs-trigger")],qo);var ym=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,fc=(e,t,o,s)=>{for(var r=s>1?void 0:s?wm(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&&ym(t,o,r),r};let ui=class extends y{constructor(){super(...arguments),this.value=""}createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="tabs-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var o;t!==this._contentSlot&&((o=this._contentSlot)==null||o.appendChild(t))})}render(){return c`
|
|
4456
4456
|
<div
|
|
4457
4457
|
data-slot="tabs-content"
|
|
4458
4458
|
role="tabpanel"
|
|
4459
4459
|
tabindex="0"
|
|
4460
4460
|
hidden
|
|
4461
4461
|
></div>
|
|
4462
|
-
`}};fc([a({type:String})],ui.prototype,"value",2);ui=fc([p("rtg-tabs-content")],ui);var xo=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(xo||{}),_o=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(_o||{});const
|
|
4462
|
+
`}};fc([a({type:String})],ui.prototype,"value",2);ui=fc([p("rtg-tabs-content")],ui);var xo=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(xo||{}),_o=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(_o||{});const xm=ts("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 _m=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Lr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Sm(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 ie=class extends b{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=_o.DEFAULT,this.size=xo.SMALL}willUpdate(e){e.has("variant")&&(this.variant=this.normalizeEnum(this.variant,_o,_o.DEFAULT)),e.has("size")&&(this.size=this.normalizeEnum(this.size,xo,xo.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`
|
|
4463
4463
|
<button
|
|
4464
4464
|
type="button"
|
|
4465
4465
|
part="toggle"
|
|
@@ -4472,7 +4472,7 @@ body {
|
|
|
4472
4472
|
?disabled=${this.disabled}
|
|
4473
4473
|
${rt(e)}
|
|
4474
4474
|
></button>
|
|
4475
|
-
`}};ie.toggleVariants=
|
|
4475
|
+
`}};ie.toggleVariants=xm;Lr([a({type:Boolean})],ie.prototype,"disabled",2);Lr([a({attribute:!0,type:Boolean,reflect:!0})],ie.prototype,"checked",2);Lr([a({attribute:!0,type:Boolean,reflect:!0})],ie.prototype,"required",2);Lr([a({attribute:!0,type:String})],ie.prototype,"variant",2);Lr([a({attribute:!0,type:String})],ie.prototype,"size",2);ie=Lr([p("rtg-toggle")],ie);var Ho=(e=>(e.MULTIPLE="multiple",e.SINGLE="single",e))(Ho||{}),Vo=(e=>(e.DEFAULT="default",e.OUTLINE="outline",e))(Vo||{}),Wo=(e=>(e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e))(Wo||{});const $m=ts("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"}}}),Cm="rtg-flex rtg-items-center rtg-justify-center rtg-gap-toggle-group-space-gap";var km=Object.defineProperty,Em=Object.getOwnPropertyDescriptor,er=(e,t,o,s)=>{for(var r=s>1?void 0:s?Em(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&&km(t,o,r),r};let Yt=class extends b{constructor(){super(),this.checked=!1,this.id=Li(),this.variant=Vo.DEFAULT,this.size=Wo.SMALL,this.disabled=!1,this.type=Ho.SINGLE,this.variant=Vo.DEFAULT,this.size=Wo.SMALL}get _parent(){let e=this.parentElement;for(;e&&!(e instanceof ne);)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===Ho.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`
|
|
4476
4476
|
<button
|
|
4477
4477
|
part="toggle-group-item"
|
|
4478
4478
|
id=${this.id}
|
|
@@ -4483,15 +4483,15 @@ body {
|
|
|
4483
4483
|
?disabled=${this.disabled}
|
|
4484
4484
|
@click=${()=>this.toggleSelection(this.id)}
|
|
4485
4485
|
></button>
|
|
4486
|
-
`}};Yt.toggleGroupVariants
|
|
4486
|
+
`}};Yt.toggleGroupVariants=$m;er([a({attribute:!0,type:Boolean,reflect:!0})],Yt.prototype,"checked",2);er([a({attribute:!0,type:String,reflect:!0})],Yt.prototype,"id",2);er([a()],Yt.prototype,"variant",2);er([a()],Yt.prototype,"size",2);er([a({type:Boolean})],Yt.prototype,"disabled",2);er([a({type:String})],Yt.prototype,"type",2);Yt=er([p("rtg-toggle-group-item")],Yt);var Rm=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,rr=(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 ne=class extends b{constructor(){super(...arguments),this.disabled=!1,this.type=Ho.SINGLE,this.required=!1,this.variant=Vo.DEFAULT,this.size=Wo.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`
|
|
4487
4487
|
<div
|
|
4488
4488
|
part="toggle-group"
|
|
4489
4489
|
role="group"
|
|
4490
4490
|
${rt(e)}
|
|
4491
|
-
class="${h(
|
|
4491
|
+
class="${h(Cm,this.className)}"
|
|
4492
4492
|
?disable="${this.disabled}"
|
|
4493
4493
|
></div>
|
|
4494
|
-
`}};rr([a({type:Boolean})],ne.prototype,"disabled",2);rr([a({type:String})],ne.prototype,"type",2);rr([a({attribute:!0,type:Boolean,reflect:!0})],ne.prototype,"required",2);rr([a()],ne.prototype,"variant",2);rr([a()],ne.prototype,"size",2);rr([a({type:Array})],ne.prototype,"selectedItems",2);ne=rr([p("rtg-toggle-group")],ne);var
|
|
4494
|
+
`}};rr([a({type:Boolean})],ne.prototype,"disabled",2);rr([a({type:String})],ne.prototype,"type",2);rr([a({attribute:!0,type:Boolean,reflect:!0})],ne.prototype,"required",2);rr([a()],ne.prototype,"variant",2);rr([a()],ne.prototype,"size",2);rr([a({type:Array})],ne.prototype,"selectedItems",2);ne=rr([p("rtg-toggle-group")],ne);var Am=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,tt=(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&&Am(t,o,r),r};let Q=class extends y{constructor(){super(),this.autocomplete="one-time-code",this.id="",this.inputmode="numeric",this._activeSlot=null,this._hasFocus=!1,this._value="",this._children=[],this._handleBlur=e=>{var t;this._hasFocus=!1,this._activeSlot=null,this._sync(),this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onBlur)==null||t.call(this,e)},this._handleFocus=e=>{var t;this._hasFocus=!0,this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot()),this._sync(),this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onFocus)==null||t.call(this,e)},this._handleKeyDown=e=>{if(this.disabled||!this._hasFocus)return;this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot());const t=e.key;if(t==="Backspace"){e.preventDefault(),this._deleteChar();return}if(t.length!==1)return;const o=this._regex();o&&!o.test(t)||(e.preventDefault(),this._insertChar(t))},this._handlePaste=e=>{var t,o;if(this.disabled)return;e.preventDefault();let s=((t=e.clipboardData)==null?void 0:t.getData("text"))??"";this.pasteTransformer&&(s=this.pasteTransformer(s));const r=this._regex(),i=Array.from(s).filter(n=>r?r.test(n):!0).slice(0,this.maxlength).join("");this._updateValue(i),this._activeSlot=Math.min(i.length,this.maxlength-1),this._checkComplete(),(o=this.onPaste)==null||o.call(this,e)},this._children=Array.from(this.childNodes)}createRenderRoot(){return this}get _containerSlot(){return this.querySelector('[data-slot="input-otp-container"]')}get _wrapperSlot(){return this.querySelector('[data-slot="input-otp-wrapper"]')}get _slots(){return Array.from(this.querySelectorAll("rtg-input-otp-slot"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._value}_inputEl(){return this.querySelector('[data-slot="input-otp"]')}_regex(){return this.pattern?new RegExp(this.pattern):null}_clampIndex(e){return Math.max(0,Math.min(e,this.maxlength-1))}_computeInitialActiveSlot(){const e=(this._currentValue??"").length;return e>=this.maxlength?this.maxlength-1:e}_createCaret(){const e=document.createElement("div");e.dataset.slot="input-otp-slot-caret-wrapper";const t=document.createElement("div");return t.dataset.slot="input-otp-slot-caret",e.appendChild(t),e}_sync(){const e=this._currentValue??"";this._slots.forEach(t=>{const o=t._slotSlot;if(!o)return;const s=e[t.index]??"",r=this._hasFocus&&!this.disabled&&t.index===this._activeSlot;o.dataset.state=r?"active":"inactive",s?o.textContent=s:o.textContent="";const i=r&&!s,n=o.querySelector('[data-slot="input-otp-caret-wrapper"]');i&&!n&&o.appendChild(this._createCaret()),!i&&n&&n.remove()})}_updateValue(e){var t;this._isControlled||(this._value=e),(t=this.onChange)==null||t.call(this,e)}_checkComplete(){var e,t;((e=this._currentValue)==null?void 0:e.length)===this.maxlength&&((t=this.onComplete)==null||t.call(this,this._currentValue))}_insertChar(e){if(this._activeSlot===null)return;const t=this._activeSlot,o=(this._currentValue??"").split("");o[t]=e;const s=o.join("").slice(0,this.maxlength);this._updateValue(s),this._activeSlot=this._clampIndex(this._activeSlot+1),this._checkComplete()}_deleteChar(){if(this._activeSlot===null)return;let e=this._activeSlot;const t=(this._currentValue??"").split("");e>0&&!t[e]&&e--,t[e]="",this._activeSlot=e,this._updateValue(t.join(""))}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id")),e.has("value")&&this._isControlled&&(this._value=this.value??""),this._sync()}firstUpdated(){this._inputId=this.id,this.removeAttribute("id"),this._value=this.value??this.defaultValue??"";const e=this._containerSlot,t=this._wrapperSlot;!e||!t||(this._children.forEach(o=>{e.insertBefore(o,t)}),this.addEventListener("rtg-input-otp-slot:focus",o=>{var s;if(this.disabled)return;const{index:r}=o.detail;this._activeSlot=r,this._hasFocus=!0,(s=this._inputEl())==null||s.focus(),this._sync()}))}render(){return c`
|
|
4495
4495
|
<div data-slot="input-otp-container">
|
|
4496
4496
|
<div data-slot="input-otp-wrapper">
|
|
4497
4497
|
<input
|
|
@@ -4514,17 +4514,17 @@ body {
|
|
|
4514
4514
|
/>
|
|
4515
4515
|
</div>
|
|
4516
4516
|
</div>
|
|
4517
|
-
`}};tt([a({type:String})],Q.prototype,"autocomplete",2);tt([a({attribute:"default-value",type:String})],Q.prototype,"defaultValue",2);tt([a({type:Boolean})],Q.prototype,"disabled",2);tt([a({type:String})],Q.prototype,"form",2);tt([a({type:String})],Q.prototype,"id",2);tt([a({type:String})],Q.prototype,"inputmode",2);tt([a({type:Number})],Q.prototype,"maxlength",2);tt([a({type:String})],Q.prototype,"name",2);tt([a({type:String})],Q.prototype,"pattern",2);tt([a({type:Boolean})],Q.prototype,"required",2);tt([a({type:String})],Q.prototype,"value",2);tt([a({attribute:!1})],Q.prototype,"onChange",2);tt([a({attribute:!1})],Q.prototype,"onComplete",2);tt([a({attribute:!1})],Q.prototype,"onBlur",2);tt([a({attribute:!1})],Q.prototype,"onFocus",2);tt([a({attribute:!1})],Q.prototype,"onPaste",2);tt([a({attribute:!1})],Q.prototype,"pasteTransformer",2);tt([R()],Q.prototype,"_activeSlot",2);tt([R()],Q.prototype,"_hasFocus",2);tt([R()],Q.prototype,"_value",2);Q=tt([p("rtg-input-otp")],Q);var
|
|
4517
|
+
`}};tt([a({type:String})],Q.prototype,"autocomplete",2);tt([a({attribute:"default-value",type:String})],Q.prototype,"defaultValue",2);tt([a({type:Boolean})],Q.prototype,"disabled",2);tt([a({type:String})],Q.prototype,"form",2);tt([a({type:String})],Q.prototype,"id",2);tt([a({type:String})],Q.prototype,"inputmode",2);tt([a({type:Number})],Q.prototype,"maxlength",2);tt([a({type:String})],Q.prototype,"name",2);tt([a({type:String})],Q.prototype,"pattern",2);tt([a({type:Boolean})],Q.prototype,"required",2);tt([a({type:String})],Q.prototype,"value",2);tt([a({attribute:!1})],Q.prototype,"onChange",2);tt([a({attribute:!1})],Q.prototype,"onComplete",2);tt([a({attribute:!1})],Q.prototype,"onBlur",2);tt([a({attribute:!1})],Q.prototype,"onFocus",2);tt([a({attribute:!1})],Q.prototype,"onPaste",2);tt([a({attribute:!1})],Q.prototype,"pasteTransformer",2);tt([R()],Q.prototype,"_activeSlot",2);tt([R()],Q.prototype,"_hasFocus",2);tt([R()],Q.prototype,"_value",2);Q=tt([p("rtg-input-otp")],Q);var Pm=(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 y{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="input-otp-group"]')}firstUpdated(){const e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`<div data-slot="input-otp-group"></div>`}};Na=Pm([p("rtg-input-otp-group")],Na);var Lm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,on=(e,t,o,s)=>{for(var r=s>1?void 0:s?Tm(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&&Lm(t,o,r),r};let Go=class extends y{constructor(){super(...arguments),this._handleClick=()=>{this.dispatchEvent(new CustomEvent("rtg-input-otp-slot:focus",{detail:{index:this.index},bubbles:!0}))}}createRenderRoot(){return this}get _slotSlot(){return this.querySelector('[data-slot="input-otp-slot"]')}render(){return c`
|
|
4518
4518
|
<div
|
|
4519
4519
|
data-slot="input-otp-slot"
|
|
4520
4520
|
aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":v}
|
|
4521
4521
|
@click=${this._handleClick}
|
|
4522
4522
|
></div>
|
|
4523
|
-
`}};on([a({type:Number})],Go.prototype,"index",2);on([a({type:Boolean})],Go.prototype,"invalid",2);Go=on([p("rtg-input-otp-slot")],Go);var
|
|
4523
|
+
`}};on([a({type:Number})],Go.prototype,"index",2);on([a({type:Boolean})],Go.prototype,"invalid",2);Go=on([p("rtg-input-otp-slot")],Go);var Dm=(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 y{createRenderRoot(){return this}render(){return c`
|
|
4524
4524
|
<div data-slot="input-otp-separator" role="separator">
|
|
4525
|
-
${
|
|
4525
|
+
${Au()}
|
|
4526
4526
|
</div>
|
|
4527
|
-
`}};Ua=
|
|
4527
|
+
`}};Ua=Dm([p("rtg-input-otp-separator")],Ua);const Tr={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 zm=(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 b{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
4528
4528
|
<span
|
|
4529
4529
|
${rt(e)}
|
|
4530
4530
|
id="rtg-bread-crumb-ellipsis"
|
|
@@ -4548,14 +4548,14 @@ body {
|
|
|
4548
4548
|
<circle cx="5" cy="12" r="1" />
|
|
4549
4549
|
</svg>
|
|
4550
4550
|
</span>
|
|
4551
|
-
`}};Ma=
|
|
4551
|
+
`}};Ma=zm([p("rtg-bread-crumb-ellipsis")],Ma);var jm=(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 b{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`
|
|
4552
4552
|
<li
|
|
4553
4553
|
${rt(e)}
|
|
4554
4554
|
id="rtg-bread-crumb-item"
|
|
4555
4555
|
class="${h(Tr.item,this.className)}"
|
|
4556
4556
|
part="breadcrumb-item"
|
|
4557
4557
|
></li>
|
|
4558
|
-
`}};Fa=
|
|
4558
|
+
`}};Fa=jm([p("rtg-bread-crumb-item")],Fa);var Nm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,vc=(e,t,o,s)=>{for(var r=s>1?void 0:s?Um(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&&Nm(t,o,r),r};let hi=class extends b{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`
|
|
4559
4559
|
<a
|
|
4560
4560
|
${rt(e)}
|
|
4561
4561
|
id="rtg-bread-crumb-link"
|
|
@@ -4564,14 +4564,14 @@ body {
|
|
|
4564
4564
|
part="breadcrumb-link"
|
|
4565
4565
|
>
|
|
4566
4566
|
</a>
|
|
4567
|
-
`}};vc([a({type:String})],hi.prototype,"href",2);hi=vc([p("rtg-bread-crumb-link")],hi);var
|
|
4567
|
+
`}};vc([a({type:String})],hi.prototype,"href",2);hi=vc([p("rtg-bread-crumb-link")],hi);var Mm=(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 b{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`
|
|
4568
4568
|
<ol
|
|
4569
4569
|
${rt(e)}
|
|
4570
4570
|
id="rtg-bread-crumb-list"
|
|
4571
4571
|
class="${h(Tr.list,this.className)}"
|
|
4572
4572
|
part="breadcrumb-list"
|
|
4573
4573
|
></ol>
|
|
4574
|
-
`}};Ba=
|
|
4574
|
+
`}};Ba=Mm([p("rtg-bread-crumb-list")],Ba);var Fm=(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 b{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return c`
|
|
4575
4575
|
<li
|
|
4576
4576
|
${rt(e)}
|
|
4577
4577
|
id="rtg-bread-crumb-separator"
|
|
@@ -4593,7 +4593,7 @@ body {
|
|
|
4593
4593
|
<path d="m9 18 6-6-6-6" />
|
|
4594
4594
|
</svg>
|
|
4595
4595
|
</li>
|
|
4596
|
-
`}};qa=
|
|
4596
|
+
`}};qa=Fm([p("rtg-bread-crumb-separator")],qa);var Bm=(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 b{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`
|
|
4597
4597
|
<span
|
|
4598
4598
|
${rt(e)}
|
|
4599
4599
|
id="rtg-bread-crumb-text"
|
|
@@ -4603,14 +4603,14 @@ body {
|
|
|
4603
4603
|
part="breadcrumb-text"
|
|
4604
4604
|
>
|
|
4605
4605
|
</span>
|
|
4606
|
-
`}};Ha=
|
|
4606
|
+
`}};Ha=Bm([p("rtg-bread-crumb-text")],Ha);var qm=(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 b{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`
|
|
4607
4607
|
<nav
|
|
4608
4608
|
${rt(e)}
|
|
4609
4609
|
part="breadcrumb"
|
|
4610
4610
|
class="${h(this.className)}"
|
|
4611
4611
|
aria-label="breadcrumb"
|
|
4612
4612
|
></nav>
|
|
4613
|
-
`}};Va=
|
|
4613
|
+
`}};Va=qm([p("rtg-bread-crumb")],Va);const Xe={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 Hm=(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 b{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4614
4614
|
<div class="${h("relative",this.className)}">
|
|
4615
4615
|
<ul
|
|
4616
4616
|
part="navigation-menu-list"
|
|
@@ -4620,7 +4620,7 @@ body {
|
|
|
4620
4620
|
></ul>
|
|
4621
4621
|
<div></div>
|
|
4622
4622
|
</div>
|
|
4623
|
-
`}};Wa=
|
|
4623
|
+
`}};Wa=Hm([p("rtg-navigation-menu-list")],Wa);var Vm=Object.defineProperty,Wm=Object.getOwnPropertyDescriptor,Dr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Wm(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 _e=class extends b{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`
|
|
4624
4624
|
<li
|
|
4625
4625
|
@mouseenter="${this.handleHover}"
|
|
4626
4626
|
@mouseleave="${this.handleMouseLeave}"
|
|
@@ -4650,7 +4650,7 @@ body {
|
|
|
4650
4650
|
</div>
|
|
4651
4651
|
<div part="content-slot" style="position:absolute"></div>`:""}
|
|
4652
4652
|
</li>
|
|
4653
|
-
`}};Dr([a({type:String})],_e.prototype,"value",2);Dr([a({type:Boolean})],_e.prototype,"navigationLink",2);Dr([R()],_e.prototype,"isOpen",2);Dr([R()],_e.prototype,"uniqueIds",2);Dr([R()],_e.prototype,"isHovering",2);_e=Dr([p("rtg-navigation-menu-item")],_e);var
|
|
4653
|
+
`}};Dr([a({type:String})],_e.prototype,"value",2);Dr([a({type:Boolean})],_e.prototype,"navigationLink",2);Dr([R()],_e.prototype,"isOpen",2);Dr([R()],_e.prototype,"uniqueIds",2);Dr([R()],_e.prototype,"isHovering",2);_e=Dr([p("rtg-navigation-menu-item")],_e);var Gm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,bo=(e,t,o,s)=>{for(var r=s>1?void 0:s?Km(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&&Gm(t,o,r),r};let Sr=class extends b{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`
|
|
4654
4654
|
<div
|
|
4655
4655
|
class="${h(Xe.content,this.className)}"
|
|
4656
4656
|
style="display: ${this.isOpen?"block":"none"};top:0px;left:0px;"
|
|
@@ -4670,7 +4670,7 @@ body {
|
|
|
4670
4670
|
></div>
|
|
4671
4671
|
</div>
|
|
4672
4672
|
</div>
|
|
4673
|
-
`}};bo([a({attribute:"data-state",type:String})],Sr.prototype,"state",2);bo([a({type:String})],Sr.prototype,"id",2);bo([a({type:String})],Sr.prototype,"side",2);bo([R()],Sr.prototype,"isOpen",2);Sr=bo([p("rtg-navigation-menu-content")],Sr);var
|
|
4673
|
+
`}};bo([a({attribute:"data-state",type:String})],Sr.prototype,"state",2);bo([a({type:String})],Sr.prototype,"id",2);bo([a({type:String})],Sr.prototype,"side",2);bo([R()],Sr.prototype,"isOpen",2);Sr=bo([p("rtg-navigation-menu-content")],Sr);var Ym=Object.defineProperty,Xm=Object.getOwnPropertyDescriptor,yc=(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&&Ym(t,o,r),r};let pi=class extends b{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`
|
|
4674
4674
|
<a
|
|
4675
4675
|
part="navigation-menu-link"
|
|
4676
4676
|
class="${h(Xe.link,this.className)}"
|
|
@@ -4680,9 +4680,9 @@ body {
|
|
|
4680
4680
|
tabindex="-1"
|
|
4681
4681
|
>
|
|
4682
4682
|
</a>
|
|
4683
|
-
`}};yc([a({type:String})],pi.prototype,"href",2);pi=yc([p("rtg-navigation-menu-link")],pi);var
|
|
4683
|
+
`}};yc([a({type:String})],pi.prototype,"href",2);pi=yc([p("rtg-navigation-menu-link")],pi);var Zm=(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 b{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`
|
|
4684
4684
|
<div part="navigation-menu-trigger" class="${h(this.className)}"></div>
|
|
4685
|
-
`}};Ga=
|
|
4685
|
+
`}};Ga=Zm([p("rtg-navigation-menu-trigger")],Ga);var Jm=(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 b{get _containerElement(){return this.querySelector("nav[part=navigation-menu]")}createRenderRoot(){return this}firstUpdated(e){}render(){return c`
|
|
4686
4686
|
<nav
|
|
4687
4687
|
part="navigation-menu"
|
|
4688
4688
|
aria-label="Main"
|
|
@@ -4690,7 +4690,7 @@ body {
|
|
|
4690
4690
|
dir="ltr"
|
|
4691
4691
|
class="${h(Xe.menu,this.className)}"
|
|
4692
4692
|
></nav>
|
|
4693
|
-
`}};Ka=
|
|
4693
|
+
`}};Ka=Jm([p("rtg-navigation-menu")],Ka);const ct={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 Qm=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,or=(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&&Qm(t,o,r),r};let Nt=class extends b{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${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}render(){return c`
|
|
4694
4694
|
<div
|
|
4695
4695
|
part="menubar-checkbox-item"
|
|
4696
4696
|
class=${h(ct.checkboxItem.base,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
|
|
@@ -4725,7 +4725,7 @@ body {
|
|
|
4725
4725
|
`:v}
|
|
4726
4726
|
</span>
|
|
4727
4727
|
</div>
|
|
4728
|
-
`}};Nt._counter=0;or([a({type:String})],Nt.prototype,"_id",2);or([a({attribute:"aria-hidden",type:String})],Nt.prototype,"_hidden",2);or([a({attribute:"data-value",type:String})],Nt.prototype,"value",1);or([a({type:Boolean})],Nt.prototype,"selected",2);or([a({type:Boolean})],Nt.prototype,"checked",2);or([a({type:Boolean})],Nt.prototype,"disabled",2);Nt=or([p("rtg-menubar-checkbox-item")],Nt);var
|
|
4728
|
+
`}};Nt._counter=0;or([a({type:String})],Nt.prototype,"_id",2);or([a({attribute:"aria-hidden",type:String})],Nt.prototype,"_hidden",2);or([a({attribute:"data-value",type:String})],Nt.prototype,"value",1);or([a({type:Boolean})],Nt.prototype,"selected",2);or([a({type:Boolean})],Nt.prototype,"checked",2);or([a({type:Boolean})],Nt.prototype,"disabled",2);Nt=or([p("rtg-menubar-checkbox-item")],Nt);var eb=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,zr=(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 Se=class extends b{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`
|
|
4729
4729
|
<div class=${h(ct.menu,this.className)}>
|
|
4730
4730
|
<div
|
|
4731
4731
|
id="${this.id}"
|
|
@@ -4744,7 +4744,7 @@ body {
|
|
|
4744
4744
|
|
|
4745
4745
|
<div part="menubar-menu-slot"></div>
|
|
4746
4746
|
</div>
|
|
4747
|
-
`}};zr([R()],Se.prototype,"isOpen",2);zr([R()],Se.prototype,"uniqueIds",2);zr([R()],Se.prototype,"selectedMenu",2);zr([R()],Se.prototype,"isHovering",2);zr([a({type:String})],Se.prototype,"id",2);Se=zr([p("rtg-menubar-menu")],Se);var
|
|
4747
|
+
`}};zr([R()],Se.prototype,"isOpen",2);zr([R()],Se.prototype,"uniqueIds",2);zr([R()],Se.prototype,"selectedMenu",2);zr([R()],Se.prototype,"isHovering",2);zr([a({type:String})],Se.prototype,"id",2);Se=zr([p("rtg-menubar-menu")],Se);var ob=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,fo=(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 $r=class extends b{constructor(){super(...arguments),this.state=Xi,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof Se);)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`
|
|
4748
4748
|
<div
|
|
4749
4749
|
class=${h(ct.content,this.className)}
|
|
4750
4750
|
id="${this.id}"
|
|
@@ -4758,7 +4758,7 @@ body {
|
|
|
4758
4758
|
dir="ltr"
|
|
4759
4759
|
style="display: ${this.isOpen?"block":"none"};"
|
|
4760
4760
|
></div>
|
|
4761
|
-
`}};fo([a({attribute:"data-state",type:String})],$r.prototype,"state",2);fo([a({type:String})],$r.prototype,"id",2);fo([a({type:String})],$r.prototype,"side",2);fo([R()],$r.prototype,"isOpen",2);$r=fo([p("rtg-menubar-content")],$r);var
|
|
4761
|
+
`}};fo([a({attribute:"data-state",type:String})],$r.prototype,"state",2);fo([a({type:String})],$r.prototype,"id",2);fo([a({type:String})],$r.prototype,"side",2);fo([R()],$r.prototype,"isOpen",2);$r=fo([p("rtg-menubar-content")],$r);var ib=Object.defineProperty,nb=Object.getOwnPropertyDescriptor,os=(e,t,o,s)=>{for(var r=s>1?void 0:s?nb(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&&ib(t,o,r),r};let $e=class extends b{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${$e._counter++}`:this._id=`rtgcmdrxlxg${$e._counter++}`,this._id}render(){return c`${this._hidden==="true"?v:c`
|
|
4762
4762
|
<div
|
|
4763
4763
|
class=${h(ct.group,this.className)}
|
|
4764
4764
|
id="${this.identifier}"
|
|
@@ -4779,7 +4779,7 @@ body {
|
|
|
4779
4779
|
aria-labelledby="${this.identifier}h"
|
|
4780
4780
|
></div>
|
|
4781
4781
|
</div>
|
|
4782
|
-
`}`}};$e._counter=0;os([a({type:String})],$e.prototype,"heading",2);os([a({attribute:"id",type:String})],$e.prototype,"_id",2);os([a({attribute:"aria-hidden",type:String})],$e.prototype,"_hidden",2);$e=os([p("rtg-menubar-group")],$e);var
|
|
4782
|
+
`}`}};$e._counter=0;os([a({type:String})],$e.prototype,"heading",2);os([a({attribute:"id",type:String})],$e.prototype,"_id",2);os([a({attribute:"aria-hidden",type:String})],$e.prototype,"_hidden",2);$e=os([p("rtg-menubar-group")],$e);var ab=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,jr=(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&&ab(t,o,r),r};let Xt=class extends b{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${Xt._counter++}`:this._id=`rtgcmdrxgxli${Xt._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"?v:c`
|
|
4783
4783
|
<div
|
|
4784
4784
|
part="menubar-item"
|
|
4785
4785
|
class=${h(ct.item,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
|
|
@@ -4793,7 +4793,7 @@ body {
|
|
|
4793
4793
|
id="${this.identifier}"
|
|
4794
4794
|
aria-hidden="${this.hidden}"
|
|
4795
4795
|
></div>
|
|
4796
|
-
`}`}};Xt._counter=0;jr([a({type:String})],Xt.prototype,"_id",2);jr([a({attribute:"aria-hidden",type:String})],Xt.prototype,"_hidden",2);jr([a({type:Boolean})],Xt.prototype,"disabled",2);jr([a({attribute:"data-value",type:String})],Xt.prototype,"value",1);jr([a({type:Boolean})],Xt.prototype,"selected",2);Xt=jr([p("rtg-menubar-item")],Xt);var
|
|
4796
|
+
`}`}};Xt._counter=0;jr([a({type:String})],Xt.prototype,"_id",2);jr([a({attribute:"aria-hidden",type:String})],Xt.prototype,"_hidden",2);jr([a({type:Boolean})],Xt.prototype,"disabled",2);jr([a({attribute:"data-value",type:String})],Xt.prototype,"value",1);jr([a({type:Boolean})],Xt.prototype,"selected",2);Xt=jr([p("rtg-menubar-item")],Xt);var cb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,sr=(e,t,o,s)=>{for(var r=s>1?void 0:s?db(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&&cb(t,o,r),r};let Ut=class extends b{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${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=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return c`
|
|
4797
4797
|
<div
|
|
4798
4798
|
part="menubar-radio-item"
|
|
4799
4799
|
class=${h(ct.radioItem.base,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
|
|
@@ -4826,7 +4826,7 @@ body {
|
|
|
4826
4826
|
</svg>`:v}
|
|
4827
4827
|
</span>
|
|
4828
4828
|
</div>
|
|
4829
|
-
`}};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([p("rtg-menubar-radio-item")],Ut);var
|
|
4829
|
+
`}};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([p("rtg-menubar-radio-item")],Ut);var ub=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,sn=(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&&ub(t,o,r),r};let Ze=class extends b{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${Ze._counter++}`:this._id=`rtgcmdrxlxs${Ze._counter++}`,this._id}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`${this._hidden==="true"?v:c`
|
|
4830
4830
|
<div
|
|
4831
4831
|
class=${h(ct.separator,this.className)}
|
|
4832
4832
|
id="${this.identifier}"
|
|
@@ -4834,20 +4834,20 @@ body {
|
|
|
4834
4834
|
part="menubar-separator"
|
|
4835
4835
|
rtgcmd-separator
|
|
4836
4836
|
></div>
|
|
4837
|
-
`}`}};Ze._counter=0;sn([a({type:String})],Ze.prototype,"_id",2);sn([a({attribute:"aria-hidden",type:String})],Ze.prototype,"_hidden",2);Ze=sn([p("rtg-menubar-separator")],Ze);var
|
|
4837
|
+
`}`}};Ze._counter=0;sn([a({type:String})],Ze.prototype,"_id",2);sn([a({attribute:"aria-hidden",type:String})],Ze.prototype,"_hidden",2);Ze=sn([p("rtg-menubar-separator")],Ze);var pb=(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 b{get _containerElement(){return this.querySelector("span[part=menubar-shortcut]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this.classList=h(ct.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4838
4838
|
<span
|
|
4839
4839
|
class=${h(ct.shortcut,this.className)}
|
|
4840
4840
|
part="menubar-shortcut"
|
|
4841
4841
|
>
|
|
4842
4842
|
</span>
|
|
4843
|
-
`}};Ya=
|
|
4843
|
+
`}};Ya=pb([p("rtg-menubar-shortcut")],Ya);var gb=(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 b{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`
|
|
4844
4844
|
<button
|
|
4845
4845
|
class=${h(ct.trigger,this.className)}
|
|
4846
4846
|
type="button"
|
|
4847
4847
|
role="menuitem"
|
|
4848
4848
|
part="menubar-trigger"
|
|
4849
4849
|
></button>
|
|
4850
|
-
`}};Xa=
|
|
4850
|
+
`}};Xa=gb([p("rtg-menubar-trigger")],Xa);var mb=(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 b{get _containerElement(){return this.querySelector("div[part=menubar]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return c`
|
|
4851
4851
|
<div
|
|
4852
4852
|
role="menubar"
|
|
4853
4853
|
part="menubar"
|
|
@@ -4855,7 +4855,7 @@ body {
|
|
|
4855
4855
|
tabindex="0"
|
|
4856
4856
|
data-orientation="horizontal"
|
|
4857
4857
|
></div>
|
|
4858
|
-
`}};Za=
|
|
4858
|
+
`}};Za=mb([p("rtg-menubar")],Za);const st={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 bb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,ss=(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&&bb(t,o,r),r};let io=class extends b{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`
|
|
4859
4859
|
<div class=${h(st.preview)}>
|
|
4860
4860
|
<div class=${h(st.container)}>
|
|
4861
4861
|
<table part="table" class=${h(st.table)}>
|
|
@@ -4910,48 +4910,48 @@ body {
|
|
|
4910
4910
|
</table>
|
|
4911
4911
|
</div>
|
|
4912
4912
|
</div>
|
|
4913
|
-
`}};ss([a({type:Array})],io.prototype,"dataTable",2);ss([a({type:Array})],io.prototype,"footerData",2);ss([a({type:String})],io.prototype,"captionText",2);io=ss([p("rtg-table")],io);class wc{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 vo="rtg-form-context";var
|
|
4913
|
+
`}};ss([a({type:Array})],io.prototype,"dataTable",2);ss([a({type:Array})],io.prototype,"footerData",2);ss([a({type:String})],io.prototype,"captionText",2);io=ss([p("rtg-table")],io);class wc{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 vo="rtg-form-context";var vb=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,xc=(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 gi=class extends b{constructor(){super(...arguments),this.form=new wc,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`
|
|
4914
4914
|
<form
|
|
4915
4915
|
part="form-controller"
|
|
4916
4916
|
class="${h("",this.className)}"
|
|
4917
4917
|
@submit=${this.handleSubmit}
|
|
4918
|
-
${
|
|
4918
|
+
${Fd(e=>this.formElement=e)}
|
|
4919
4919
|
></form>
|
|
4920
|
-
`}};xc([R(),ke({context:vo})],gi.prototype,"form",2);gi=xc([p("rtg-form-controller")],gi);const _c="rtg-form-item-context",
|
|
4920
|
+
`}};xc([R(),ke({context:vo})],gi.prototype,"form",2);gi=xc([p("rtg-form-controller")],gi);const _c="rtg-form-item-context",wb="rtg-space-form-space-y",xb="rtg-text-form-description-font rtg-text-form-description-color-text rtg-mt-form-description-space-mt",_b="rtg-space-y-form-field-space-y",Sb="rtg-space-y-form-item-space-y",$b="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",Cb="rtg-text-form-label-color-text-error",kb="rtg-text-form-message-font-size rtg-text-form-message-color-text";var Eb=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Sc=(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 mi=class extends b{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return c`
|
|
4921
4921
|
<p
|
|
4922
4922
|
id="${this.itemContext.id}-description"
|
|
4923
4923
|
part="form-description"
|
|
4924
|
-
class="${h(
|
|
4924
|
+
class="${h(xb,this.className)}"
|
|
4925
4925
|
></p>
|
|
4926
|
-
`}};Sc([Ct({context:_c})],mi.prototype,"itemContext",2);mi=Sc([p("rtg-form-description")],mi);const
|
|
4926
|
+
`}};Sc([Ct({context:_c})],mi.prototype,"itemContext",2);mi=Sc([p("rtg-form-description")],mi);const Ob="rtg-form-field-context";var Ab=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Nr=(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&&Ab(t,o,r),r};let ae=class extends b{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
|
|
4927
4927
|
part="form-field"
|
|
4928
|
-
class="${h(
|
|
4929
|
-
></div>`}};Nr([Ct({context:vo})],ae.prototype,"form",2);Nr([a({type:String})],ae.prototype,"name",2);Nr([a({type:Array})],ae.prototype,"validators",2);Nr([a({type:String})],ae.prototype,"defaultValue",2);Nr([ke({context:
|
|
4928
|
+
class="${h(_b,this.className)}"
|
|
4929
|
+
></div>`}};Nr([Ct({context:vo})],ae.prototype,"form",2);Nr([a({type:String})],ae.prototype,"name",2);Nr([a({type:Array})],ae.prototype,"validators",2);Nr([a({type:String})],ae.prototype,"defaultValue",2);Nr([ke({context:Ob})],ae.prototype,"fieldName",2);ae=Nr([p("rtg-form-field")],ae);var Pb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,$c=(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&&Pb(t,o,r),r};let bi=class extends b{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
|
|
4930
4930
|
part="form-item"
|
|
4931
|
-
class="${h(
|
|
4932
|
-
></div>`}};$c([ke({context:_c})],bi.prototype,"itemContext",2);bi=$c([p("rtg-form-item")],bi);var
|
|
4931
|
+
class="${h(Sb,this.className)}"
|
|
4932
|
+
></div>`}};$c([ke({context:_c})],bi.prototype,"itemContext",2);bi=$c([p("rtg-form-item")],bi);var Tb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,nn=(e,t,o,s)=>{for(var r=s>1?void 0:s?Db(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 Ko=class extends b{constructor(){super(...arguments),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof ae);)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`
|
|
4933
4933
|
<label
|
|
4934
4934
|
part="form-label"
|
|
4935
4935
|
for="${this._field.name}"
|
|
4936
|
-
class="${h(
|
|
4936
|
+
class="${h($b,this.hasError&&Cb,this.className)}"
|
|
4937
4937
|
></label>
|
|
4938
|
-
`}};nn([Ct({context:vo})],Ko.prototype,"form",2);nn([R()],Ko.prototype,"hasError",2);Ko=nn([p("rtg-form-label")],Ko);var
|
|
4938
|
+
`}};nn([Ct({context:vo})],Ko.prototype,"form",2);nn([R()],Ko.prototype,"hasError",2);Ko=nn([p("rtg-form-label")],Ko);var zb=Object.defineProperty,jb=Object.getOwnPropertyDescriptor,an=(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&&zb(t,o,r),r};let Yo=class extends y{constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof ae);)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
|
|
4939
4939
|
id="${this._field.name}-message"
|
|
4940
|
-
class="${h(
|
|
4940
|
+
class="${h(kb,this.className)}"
|
|
4941
4941
|
>
|
|
4942
4942
|
${this.error}
|
|
4943
|
-
</p>`:null}};an([Ct({context:vo})],Yo.prototype,"form",2);an([R()],Yo.prototype,"error",2);Yo=an([p("rtg-form-message")],Yo);var
|
|
4943
|
+
</p>`:null}};an([Ct({context:vo})],Yo.prototype,"form",2);an([R()],Yo.prototype,"error",2);Yo=an([p("rtg-form-message")],Yo);var Nb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,ln=(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&&Nb(t,o,r),r};let Xo=class extends b{constructor(){super(...arguments),this.form=new wc,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`
|
|
4944
4944
|
<form
|
|
4945
4945
|
part="form-root"
|
|
4946
4946
|
id="rtg-form"
|
|
4947
4947
|
@submit=${this.handleSubmit}
|
|
4948
|
-
class="${h(
|
|
4948
|
+
class="${h(wb,this.className)}"
|
|
4949
4949
|
></form>
|
|
4950
|
-
`}};ln([ke({context:vo})],Xo.prototype,"form",2);ln([a({type:Function})],Xo.prototype,"onSubmit",2);Xo=ln([p("rtg-form")],Xo);const
|
|
4950
|
+
`}};ln([ke({context:vo})],Xo.prototype,"form",2);ln([a({type:Function})],Xo.prototype,"onSubmit",2);Xo=ln([p("rtg-form")],Xo);const Mb="rtg-bg-skeleton-color-bg rtg-animate-skeleton-animate rtg-rounded-skeleton-radius";var Fb=(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 b{createRenderRoot(){return this}render(){return c` <div class=${h(Mb,this.className)}></div> `}};Ja=Fb([p("rtg-skeleton")],Ja);const Bb=["rtg-relative","rtg-rounded-scrollarea-radius","rtg-border rtg-border-scrollarea-color-border","rtg-bg-scrollarea-color-bg"];var qb=Object.defineProperty,Hb=Object.getOwnPropertyDescriptor,Cc=(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&&qb(t,o,r),r};let fi=class extends b{createRenderRoot(){return this}firstUpdated(){this.moveLightDomChildrenInto(this.viewportEl)}render(){return c`
|
|
4951
4951
|
<div
|
|
4952
4952
|
dir="ltr"
|
|
4953
4953
|
data-slot="scroll-area"
|
|
4954
|
-
class=${h(
|
|
4954
|
+
class=${h(Bb,this.className)}
|
|
4955
4955
|
>
|
|
4956
4956
|
<style>
|
|
4957
4957
|
[data-radix-scroll-area-viewport] {
|
|
@@ -4984,9 +4984,9 @@ body {
|
|
|
4984
4984
|
style="overflow: hidden scroll;"
|
|
4985
4985
|
></div>
|
|
4986
4986
|
</div>
|
|
4987
|
-
`}};Cc([co("[data-radix-scroll-area-viewport]")],fi.prototype,"viewportEl",2);fi=Cc([p("rtg-scroll-area")],fi);var
|
|
4987
|
+
`}};Cc([co("[data-radix-scroll-area-viewport]")],fi.prototype,"viewportEl",2);fi=Cc([p("rtg-scroll-area")],fi);var Vb=(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 y{createRenderRoot(){return this}get _setSlot(){return this.querySelector('[data-slot="field-set"]')}firstUpdated(){const e=this._setSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`<fieldset data-slot="field-set"></fieldset>`}};Qa=Vb([p("rtg-field-set")],Qa);var Wb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,kc=(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&&Wb(t,o,r),r};let vi=class extends y{constructor(){super(...arguments),this.variant="legend"}createRenderRoot(){return this}get _legendSlot(){return this.querySelector('[data-slot="field-legend"]')}firstUpdated(){const e=this._legendSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`
|
|
4988
4988
|
<legend data-slot="field-legend" data-variant=${this.variant}></legend>
|
|
4989
|
-
`}};kc([a({type:String})],vi.prototype,"variant",2);vi=kc([p("rtg-field-legend")],vi);var
|
|
4989
|
+
`}};kc([a({type:String})],vi.prototype,"variant",2);vi=kc([p("rtg-field-legend")],vi);var Kb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,Ec=(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&&Kb(t,o,r),r};let yi=class extends y{constructor(){super(...arguments),this.type="field"}createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="field-group"]')}firstUpdated(){const e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`<div data-slot="field-group" data-type=${this.type}></div>`}};Ec([a({type:String})],yi.prototype,"type",2);yi=Ec([p("rtg-field-group")],yi);var Xb=Object.defineProperty,Zb=Object.getOwnPropertyDescriptor,is=(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&&Xb(t,o,r),r};let no=class extends y{constructor(){super(...arguments),this.orientation="vertical"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="field"]')}firstUpdated(){const e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`
|
|
4990
4990
|
<div
|
|
4991
4991
|
data-slot="field"
|
|
4992
4992
|
data-orientation=${this.orientation}
|
|
@@ -4994,18 +4994,18 @@ body {
|
|
|
4994
4994
|
data-invalid=${this.invalid?"true":v}
|
|
4995
4995
|
role="group"
|
|
4996
4996
|
></div>
|
|
4997
|
-
`}};is([a({type:String})],no.prototype,"orientation",2);is([a({type:Boolean})],no.prototype,"disabled",2);is([a({type:Boolean})],no.prototype,"invalid",2);no=is([p("rtg-field")],no);var
|
|
4997
|
+
`}};is([a({type:String})],no.prototype,"orientation",2);is([a({type:Boolean})],no.prototype,"disabled",2);is([a({type:Boolean})],no.prototype,"invalid",2);no=is([p("rtg-field")],no);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 tl=class extends y{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="field-content"]')}firstUpdated(){const e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`<div data-slot="field-content"></div>`}};tl=Jb([p("rtg-field-content")],tl);var Qb=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Rc=(e,t,o,s)=>{for(var r=s>1?void 0:s?tf(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 wi=class extends y{createRenderRoot(){return this}get _labelSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){const e=this._labelSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`
|
|
4998
4998
|
<rtg-label data-slot="field-label" for=${this.for??v}></rtg-label>
|
|
4999
|
-
`}};Rc([a({type:String})],wi.prototype,"for",2);wi=Rc([p("rtg-field-label")],wi);var
|
|
4999
|
+
`}};Rc([a({type:String})],wi.prototype,"for",2);wi=Rc([p("rtg-field-label")],wi);var ef=(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 el=class extends y{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){const e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`<div data-slot="field-label"></div>`}};el=ef([p("rtg-field-title")],el);var rf=(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 rl=class extends y{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="field-description"]')}firstUpdated(){const e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return c`<p data-slot="field-description"></p>`}};rl=rf([p("rtg-field-description")],rl);var of=(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 ol=class extends y{constructor(){super(),this._children=[],this._children=Array.from(this.childNodes)}createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="field-separator"]')}get _contentSlot(){return this.querySelector('[data-slot="field-separator-content"]')}firstUpdated(){const e=this._separatorSlot;if(!e)return;const t=this._contentSlot;if(!t)return;const o=this._children;o.length>0?(o.forEach(s=>t.appendChild(s)),e.setAttribute("data-content","true")):(e.removeChild(t),e.setAttribute("data-content","false"))}render(){return c`
|
|
5000
5000
|
<div data-slot="field-separator">
|
|
5001
5001
|
<rtg-separator></rtg-separator>
|
|
5002
5002
|
<span data-slot="field-separator-content"></span>
|
|
5003
5003
|
</div>
|
|
5004
|
-
`}};ol=
|
|
5004
|
+
`}};ol=of([p("rtg-field-separator")],ol);var sf=Object.defineProperty,nf=Object.getOwnPropertyDescriptor,Oc=(e,t,o,s)=>{for(var r=s>1?void 0:s?nf(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&&sf(t,o,r),r};let xi=class extends y{createRenderRoot(){return this}_renderContent(){var e,t;if(!((e=this.errors)!=null&&e.length))return null;const o=[...new Map(this.errors.map(s=>[s==null?void 0:s.message,s])).values()];return o.length===1?(t=o[0])!=null&&t.message?o[0].message:null:c`
|
|
5005
5005
|
<ul data-slot="field-error-content">
|
|
5006
5006
|
${o.map((s,r)=>s!=null&&s.message?c`<li key=${r}>${s.message}</li>`:v)}
|
|
5007
5007
|
</ul>
|
|
5008
|
-
`}render(){const e=this.innerHTML.trim().length>0,t=this._renderContent();if(e){const o=Array.from(this.childNodes);return c` <div data-slot="field-error" role="alert">${o}</div>`}return t?c` <div data-slot="field-error" role="alert">${t}</div>`:(this.style.display="none",v)}};Oc([a({type:Array})],xi.prototype,"errors",2);xi=Oc([p("rtg-field-error")],xi);var
|
|
5008
|
+
`}render(){const e=this.innerHTML.trim().length>0,t=this._renderContent();if(e){const o=Array.from(this.childNodes);return c` <div data-slot="field-error" role="alert">${o}</div>`}return t?c` <div data-slot="field-error" role="alert">${t}</div>`:(this.style.display="none",v)}};Oc([a({type:Array})],xi.prototype,"errors",2);xi=Oc([p("rtg-field-error")],xi);var af=Object.defineProperty,lf=Object.getOwnPropertyDescriptor,Ac=(e,t,o,s)=>{for(var r=s>1?void 0:s?lf(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&&af(t,o,r),r};let _i=class extends b{constructor(){super(),this.defaultValue="account"}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){return c`
|
|
5009
5009
|
<div class="sb-flex sb-flex-col sb-gap-4">
|
|
5010
5010
|
<rtg-tabs .defaultValue=${this.defaultValue} class="rtg-w-[400px]">
|
|
5011
5011
|
<rtg-tabs-list customClass="rtg-h-10 rtg-rounded-2xl" slot="tab-list">
|
|
@@ -5229,7 +5229,7 @@ body {
|
|
|
5229
5229
|
* @license
|
|
5230
5230
|
* Copyright 2018 Google LLC
|
|
5231
5231
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5232
|
-
*/const
|
|
5232
|
+
*/const cf=new Set(["children","localName","ref","style","className"]),sl=new WeakMap,df=(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 u=sl.get(n);u===void 0&&sl.set(n,u=new Map);let m=u.get(l);d!==void 0?m===void 0?(u.set(l,m={handleEvent:d}),n.addEventListener(l,m)):m.handleEvent=d:m!==void 0&&(u.delete(l),n.removeEventListener(l,m))})(e,i,o)},uf=(e,t)=>{typeof e=="function"?e(t):e.current=t};function Ic(e=window.React,t,o,s,r){let i,n,l;{const S=e;({tagName:n,elementClass:l,events:s,displayName:r}=S),i=S.react}const d=i.Component,u=i.createElement,m=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)df(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=k=>{_!==null&&uf(_,k),this.o=k,this.h=_}),this.i={};const $={ref:this.u};for(const[k,I]of Object.entries(C))cf.has(k)?$[k==="className"?"class":k]=I:m.has(k)||k in l.prototype?this.i[k]=I:$[k]=I;return $.suppressHydrationWarning=!0,u(n,$)}}f.displayName=r??l.name;const x=i.forwardRef(((S,_)=>u(f,{...S,_$Gl:_},S==null?void 0:S.children)));return x.displayName=f.displayName,x}function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var il={exports:{}},L={};/**
|
|
5233
5233
|
* @license React
|
|
5234
5234
|
* react.production.js
|
|
5235
5235
|
*
|
|
@@ -5237,8 +5237,8 @@ body {
|
|
|
5237
5237
|
*
|
|
5238
5238
|
* This source code is licensed under the MIT license found in the
|
|
5239
5239
|
* LICENSE file in the root directory of this source tree.
|
|
5240
|
-
*/var nl;function uf(){if(nl)return L;nl=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"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),x=Symbol.iterator;function S(g){return g===null||typeof g!="object"?null:(g=x&&g[x]||g["@@iterator"],typeof g=="function"?g:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,$={};function k(g,w,z){this.props=g,this.context=w,this.refs=$,this.updater=z||_}k.prototype.isReactComponent={},k.prototype.setState=function(g,w){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,w,"setState")},k.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function I(){}I.prototype=k.prototype;function q(g,w,z){this.props=g,this.context=w,this.refs=$,this.updater=z||_}var M=q.prototype=new I;M.constructor=q,C(M,k.prototype),M.isPureReactComponent=!0;var W=Array.isArray;function J(){}var P={H:null,A:null,T:null,S:null},xt=Object.prototype.hasOwnProperty;function at(g,w,z){var D=z.ref;return{$$typeof:e,type:g,key:w,ref:D!==void 0?D:null,props:z}}function _t(g,w){return at(g.type,w,g.props)}function Pt(g){return typeof g=="object"&&g!==null&&g.$$typeof===e}function A(g){var w={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(z){return w[z]})}var ce=/\/+/g;function St(g,w){return typeof g=="object"&&g!==null&&g.key!=null?A(""+g.key):w.toString(36)}function Ae(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(J,J):(g.status="pending",g.then(function(w){g.status==="pending"&&(g.status="fulfilled",g.value=w)},function(w){g.status==="pending"&&(g.status="rejected",g.reason=w)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function lt(g,w,z,D,F){var H=typeof g;(H==="undefined"||H==="boolean")&&(g=null);var K=!1;if(g===null)K=!0;else switch(H){case"bigint":case"string":case"number":K=!0;break;case"object":switch(g.$$typeof){case e:case t:K=!0;break;case m:return K=g._init,lt(K(g._payload),w,z,D,F)}}if(K)return F=F(g),K=D===""?"."+St(g,0):D,W(F)?(z="",K!=null&&(z=K.replace(ce,"$&/")+"/"),lt(F,w,z,"",function(od){return od})):F!=null&&(Pt(F)&&(F=_t(F,z+(F.key==null||g&&g.key===F.key?"":(""+F.key).replace(ce,"$&/")+"/")+K)),w.push(F)),1;K=0;var qt=D===""?".":D+":";if(W(g))for(var mt=0;mt<g.length;mt++)D=g[mt],H=qt+St(D,mt),K+=lt(D,w,z,H,F);else if(mt=S(g),typeof mt=="function")for(g=mt.call(g),mt=0;!(D=g.next()).done;)D=D.value,H=qt+St(D,mt++),K+=lt(D,w,z,H,F);else if(H==="object"){if(typeof g.then=="function")return lt(Ae(g),w,z,D,F);throw w=String(g),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return K}function Bt(g,w,z){if(g==null)return g;var D=[],F=0;return lt(g,D,"","",function(H){return w.call(z,H,F++)}),D}function te(g){if(g._status===-1){var w=g._result;w=w(),w.then(function(z){(g._status===0||g._status===-1)&&(g._status=1,g._result=z)},function(z){(g._status===0||g._status===-1)&&(g._status=2,g._result=z)}),g._status===-1&&(g._status=0,g._result=w)}if(g._status===1)return g._result.default;throw g._result}var gt=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=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(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},Ie={map:Bt,forEach:function(g,w,z){Bt(g,function(){w.apply(this,arguments)},z)},count:function(g){var w=0;return Bt(g,function(){w++}),w},toArray:function(g){return Bt(g,function(w){return w})||[]},only:function(g){if(!Pt(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return L.Activity=f,L.Children=Ie,L.Component=k,L.Fragment=o,L.Profiler=r,L.PureComponent=q,L.StrictMode=s,L.Suspense=d,L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,L.__COMPILER_RUNTIME={__proto__:null,c:function(g){return P.H.useMemoCache(g)}},L.cache=function(g){return function(){return g.apply(null,arguments)}},L.cacheSignal=function(){return null},L.cloneElement=function(g,w,z){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var D=C({},g.props),F=g.key;if(w!=null)for(H in w.key!==void 0&&(F=""+w.key),w)!xt.call(w,H)||H==="key"||H==="__self"||H==="__source"||H==="ref"&&w.ref===void 0||(D[H]=w[H]);var H=arguments.length-2;if(H===1)D.children=z;else if(1<H){for(var K=Array(H),qt=0;qt<H;qt++)K[qt]=arguments[qt+2];D.children=K}return at(g.type,F,D)},L.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},L.createElement=function(g,w,z){var D,F={},H=null;if(w!=null)for(D in w.key!==void 0&&(H=""+w.key),w)xt.call(w,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=w[D]);var K=arguments.length-2;if(K===1)F.children=z;else if(1<K){for(var qt=Array(K),mt=0;mt<K;mt++)qt[mt]=arguments[mt+2];F.children=qt}if(g&&g.defaultProps)for(D in K=g.defaultProps,K)F[D]===void 0&&(F[D]=K[D]);return at(g,H,F)},L.createRef=function(){return{current:null}},L.forwardRef=function(g){return{$$typeof:l,render:g}},L.isValidElement=Pt,L.lazy=function(g){return{$$typeof:m,_payload:{_status:-1,_result:g},_init:te}},L.memo=function(g,w){return{$$typeof:u,type:g,compare:w===void 0?null:w}},L.startTransition=function(g){var w=P.T,z={};P.T=z;try{var D=g(),F=P.S;F!==null&&F(z,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(J,gt)}catch(H){gt(H)}finally{w!==null&&z.types!==null&&(w.types=z.types),P.T=w}},L.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},L.use=function(g){return P.H.use(g)},L.useActionState=function(g,w,z){return P.H.useActionState(g,w,z)},L.useCallback=function(g,w){return P.H.useCallback(g,w)},L.useContext=function(g){return P.H.useContext(g)},L.useDebugValue=function(){},L.useDeferredValue=function(g,w){return P.H.useDeferredValue(g,w)},L.useEffect=function(g,w){return P.H.useEffect(g,w)},L.useEffectEvent=function(g){return P.H.useEffectEvent(g)},L.useId=function(){return P.H.useId()},L.useImperativeHandle=function(g,w,z){return P.H.useImperativeHandle(g,w,z)},L.useInsertionEffect=function(g,w){return P.H.useInsertionEffect(g,w)},L.useLayoutEffect=function(g,w){return P.H.useLayoutEffect(g,w)},L.useMemo=function(g,w){return P.H.useMemo(g,w)},L.useOptimistic=function(g,w){return P.H.useOptimistic(g,w)},L.useReducer=function(g,w,z){return P.H.useReducer(g,w,z)},L.useRef=function(g){return P.H.useRef(g)},L.useState=function(g){return P.H.useState(g)},L.useSyncExternalStore=function(g,w,z){return P.H.useSyncExternalStore(g,w,z)},L.useTransition=function(){return P.H.useTransition()},L.version="19.2.4",L}var al;function hf(){return al||(al=1,il.exports=uf()),il.exports}var pf=hf();const Pc=df(pf);Ic({tagName:"rtg-button",elementClass:jt,react:Pc});Ic({tagName:"rtg-checkbox",elementClass:Ot,react:Pc});const cn="",gf="sb-relative sb-overflow-hidden sb-w-1/3 sb-h-2 sb-linear-bar",mf="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]",bf="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]",ff="sb-fixed sb-inset-0 sb-z-[9999] sb-flex sb-items-center sb-justify-center sb-p-4 sb-overflow-auto",vf="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",yf="sb-justify-self-center sb-rotate-0",wf="sb-border-0 sb-bg-background !sb-m-0",xf="sb-border sb-rounded-2xl sb-relative sb-py-6",_f="!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",Sf="!sb-flex !sb-justify-start !sb-flex-nowrap !sb-w-full !rtg-grid-cols-2 !sb-gap-2 sb-mx-6",$f="!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 ot={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px","3xl":"1920px","4xl":"2560px"},Cf=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/,kf=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Ef=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;function zs(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 u of d.properties.children){const m=i(u);if(m)return m}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 u=!0;switch(d.type){case"required":u=Lc(s,n);break;case"min_length":u=Tc(s,d.length);break;case"max_length":u=Dc(s,d.length);break;case"min_value":u=zc(s,d.value);break;case"max_value":u=jc(s,d.value);break;case"regex":u=Nc(s,d.regex);break;case"field_match":u=Uc(s,d.field_match?e.formData[d.field_match]:void 0);break;case"email":u=Mc(s);break;case"phone":u=Fc(s);break;case"date":u=Bc(s);break;default:u=!0}!u&&d.error_message&&r.push(d.error_message)}e.errors={...e.errors,[t]:r}}}function Lc(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 Tc(e,t){return typeof e=="string"?e.length>=(t??0):!0}function Dc(e,t){return typeof e=="string"?e.length<=(t??1/0):!0}function zc(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 jc(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 Nc(e,t){return typeof e=="string"&&t?new RegExp(t).test(e):!0}function Uc(e,t){return t!==void 0?e===t:!0}function Mc(e){return typeof e=="string"?kf.test(e):!0}function Fc(e){return typeof e=="string"?Cf.test(e):!0}function Bc(e){return typeof e=="string"?Ef.test(e):!0}const qc="sb:env",ns="sb:auth",as="customizations",dn=Symbol("renderSpecContext");var Hc=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Hc||{}),Si=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Si||{}),fe=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(fe||{}),Et=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(Et||{}),Lt=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Lt||{}),yt=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(yt||{});function Vc(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=Vc(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Rf(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Vc(e))&&(s&&(s+=" "),s+=t);return s}const un="-",Of=e=>{const t=If(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:n=>{const l=n.split(un);return l[0]===""&&l.length!==1&&l.shift(),Wc(l,t)||Af(n)},getConflictingClassGroupIds:(n,l)=>{const d=o[n]||[];return l&&s[n]?[...d,...s[n]]:d}}},Wc=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const o=e[0],s=t.nextPart.get(o),r=s?Wc(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(un);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},ll=/^\[(.+)\]$/,Af=e=>{if(ll.test(e)){const t=ll.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},If=e=>{const{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return Lf(Object.entries(e.classGroups),o).forEach(([i,n])=>{$i(n,s,i,t)}),s},$i=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:cl(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Pf(r)){$i(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{$i(n,cl(t,i),o,s)})})},cl=(e,t)=>{let o=e;return t.split(un).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Pf=e=>e.isThemeGetter,Lf=(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,Tf=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)}}},Gc="!",Df=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let u=0,m=0,f;for(let $=0;$<l.length;$++){let k=l[$];if(u===0){if(k===r&&(s||l.slice($,$+i)===t)){d.push(l.slice(m,$)),m=$+i;continue}if(k==="/"){f=$;continue}}k==="["?u++:k==="]"&&u--}const x=d.length===0?l:l.substring(m),S=x.startsWith(Gc),_=S?x.substring(1):x,C=f&&f>m?f-m:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},zf=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},jf=e=>({cache:Tf(e.cacheSize),parseClassName:Df(e),...Of(e)}),Nf=/\s+/,Uf=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(Nf);let l="";for(let d=n.length-1;d>=0;d-=1){const u=n[d],{modifiers:m,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:S}=o(u);let _=!!S,C=s(_?x.substring(0,S):x);if(!C){if(!_){l=u+(l.length>0?" "+l:l);continue}if(C=s(x),!C){l=u+(l.length>0?" "+l:l);continue}_=!1}const $=zf(m).join(":"),k=f?$+Gc:$,I=k+C;if(i.includes(I))continue;i.push(I);const q=r(C,_);for(let M=0;M<q.length;++M){const W=q[M];i.push(k+W)}l=u+(l.length>0?" "+l:l)}return l};function Mf(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Kc(t))&&(s&&(s+=" "),s+=o);return s}const Kc=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=Kc(e[s]))&&(o&&(o+=" "),o+=t);return o};function Ff(e,...t){let o,s,r,i=n;function n(d){const u=t.reduce((m,f)=>f(m),e());return o=jf(u),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const u=s(d);if(u)return u;const m=Uf(d,o);return r(d,m),m}return function(){return i(Mf.apply(null,arguments))}}const X=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},Yc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bf=/^\d+\/\d+$/,qf=new Set(["px","full","screen"]),Hf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vf=/\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$/,Wf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>gr(e)||qf.has(e)||Bf.test(e),he=e=>Ur(e,"length",rv),gr=e=>!!e&&!Number.isNaN(Number(e)),js=e=>Ur(e,"number",gr),Vr=e=>!!e&&Number.isInteger(Number(e)),Yf=e=>e.endsWith("%")&&gr(e.slice(0,-1)),N=e=>Yc.test(e),pe=e=>Hf.test(e),Xf=new Set(["length","size","percentage"]),Zf=e=>Ur(e,Xf,Xc),Jf=e=>Ur(e,"position",Xc),Qf=new Set(["image","url"]),tv=e=>Ur(e,Qf,sv),ev=e=>Ur(e,"",ov),Wr=()=>!0,Ur=(e,t,o)=>{const s=Yc.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},rv=e=>Vf.test(e)&&!Wf.test(e),Xc=()=>!1,ov=e=>Gf.test(e),sv=e=>Kf.test(e),iv=()=>{const e=X("colors"),t=X("spacing"),o=X("blur"),s=X("brightness"),r=X("borderColor"),i=X("borderRadius"),n=X("borderSpacing"),l=X("borderWidth"),d=X("contrast"),u=X("grayscale"),m=X("hueRotate"),f=X("invert"),x=X("gap"),S=X("gradientColorStops"),_=X("gradientColorStopPositions"),C=X("inset"),$=X("margin"),k=X("opacity"),I=X("padding"),q=X("saturate"),M=X("scale"),W=X("sepia"),J=X("skew"),P=X("space"),xt=X("translate"),at=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Pt=()=>["auto",N,t],A=()=>[N,t],ce=()=>["",re,he],St=()=>["auto",gr,N],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],gt=()=>["","0",N],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],g=()=>[gr,N];return{cacheSize:500,separator:":",theme:{colors:[Wr],spacing:[re,he],blur:["none","",pe,N],brightness:g(),borderColor:[e],borderRadius:["none","","full",pe,N],borderSpacing:A(),borderWidth:ce(),contrast:g(),grayscale:gt(),hueRotate:g(),invert:gt(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Yf,he],inset:Pt(),margin:Pt(),opacity:g(),padding:A(),saturate:g(),scale:g(),sepia:gt(),skew:g(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[pe]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Ae(),N]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-y":[{"overscroll-y":at()}],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",Vr,N]}],basis:[{basis:Pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:gt()}],shrink:[{shrink:gt()}],order:[{order:["first","last","none",Vr,N]}],"grid-cols":[{"grid-cols":[Wr]}],"col-start-end":[{col:["auto",{span:["full",Vr,N]},N]}],"col-start":[{"col-start":St()}],"col-end":[{"col-end":St()}],"grid-rows":[{"grid-rows":[Wr]}],"row-start-end":[{row:["auto",{span:[Vr,N]},N]}],"row-start":[{"row-start":St()}],"row-end":[{"row-end":St()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[pe]},pe]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pe,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",js]}],"font-family":[{font:[Wr]}],"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",N]}],"line-clamp":[{"line-clamp":["none",gr,js]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",re,he]}],"underline-offset":[{"underline-offset":["auto",re,N]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ae(),Jf]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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":[k]}],"border-style":[{border:[...lt(),"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":[k]}],"divide-style":[{divide:lt()}],"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:["",...lt()]}],"outline-offset":[{"outline-offset":[re,N]}],"outline-w":[{outline:[re,he]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[re,he]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pe,ev]}],"shadow-color":[{shadow:[Wr]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",pe,N]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"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",N]}],duration:[{duration:g()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:g()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Vr,N]}],"translate-x":[{"translate-x":[xt]}],"translate-y":[{"translate-y":[xt]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],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",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[re,he,js]}],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"]}}},nv=Ff(iv);function V(...e){return nv(Rf(e))}function E(e){return Object.entries(e).filter(([t,o])=>typeof o!="object"&&o!=null).map(([t,o])=>`${t}: ${o};`).join(" ")}function av(e){document.documentElement.setAttribute("data-theme",e)}function lv(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&av("light")}function dl(){return document.documentElement.getAttribute("data-theme")}function hn(e,t){return e.includes("{{theme}}")?e.replace("{{theme}}",t):e}function ht(e){const t={},o={};for(const s in e){const r=e[s];r!=null&&(s in ot&&typeof r=="object"?o[s]=r:t[s]=r)}return{base:t,responsive:o}}function cv(e){return{...ot,...e??{}}}function pt(e,t,o){const s=cv(o);let r="";for(const n in t){const d=`(min-width: ${s[n]})`,u=Object.entries(t[n]).map(([m,f])=>`${m}: ${f} !important;`).join(" ");r+=`@media ${d} { #${e} { ${u} } }
|
|
5241
|
-
`}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 Ci(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}async function
|
|
5240
|
+
*/var nl;function pf(){if(nl)return L;nl=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"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),x=Symbol.iterator;function S(g){return g===null||typeof g!="object"?null:(g=x&&g[x]||g["@@iterator"],typeof g=="function"?g:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,$={};function k(g,w,z){this.props=g,this.context=w,this.refs=$,this.updater=z||_}k.prototype.isReactComponent={},k.prototype.setState=function(g,w){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,w,"setState")},k.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function I(){}I.prototype=k.prototype;function q(g,w,z){this.props=g,this.context=w,this.refs=$,this.updater=z||_}var M=q.prototype=new I;M.constructor=q,C(M,k.prototype),M.isPureReactComponent=!0;var W=Array.isArray;function J(){}var P={H:null,A:null,T:null,S:null},xt=Object.prototype.hasOwnProperty;function at(g,w,z){var D=z.ref;return{$$typeof:e,type:g,key:w,ref:D!==void 0?D:null,props:z}}function _t(g,w){return at(g.type,w,g.props)}function Pt(g){return typeof g=="object"&&g!==null&&g.$$typeof===e}function A(g){var w={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(z){return w[z]})}var ce=/\/+/g;function St(g,w){return typeof g=="object"&&g!==null&&g.key!=null?A(""+g.key):w.toString(36)}function Ae(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(J,J):(g.status="pending",g.then(function(w){g.status==="pending"&&(g.status="fulfilled",g.value=w)},function(w){g.status==="pending"&&(g.status="rejected",g.reason=w)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function lt(g,w,z,D,F){var H=typeof g;(H==="undefined"||H==="boolean")&&(g=null);var K=!1;if(g===null)K=!0;else switch(H){case"bigint":case"string":case"number":K=!0;break;case"object":switch(g.$$typeof){case e:case t:K=!0;break;case m:return K=g._init,lt(K(g._payload),w,z,D,F)}}if(K)return F=F(g),K=D===""?"."+St(g,0):D,W(F)?(z="",K!=null&&(z=K.replace(ce,"$&/")+"/"),lt(F,w,z,"",function(id){return id})):F!=null&&(Pt(F)&&(F=_t(F,z+(F.key==null||g&&g.key===F.key?"":(""+F.key).replace(ce,"$&/")+"/")+K)),w.push(F)),1;K=0;var qt=D===""?".":D+":";if(W(g))for(var mt=0;mt<g.length;mt++)D=g[mt],H=qt+St(D,mt),K+=lt(D,w,z,H,F);else if(mt=S(g),typeof mt=="function")for(g=mt.call(g),mt=0;!(D=g.next()).done;)D=D.value,H=qt+St(D,mt++),K+=lt(D,w,z,H,F);else if(H==="object"){if(typeof g.then=="function")return lt(Ae(g),w,z,D,F);throw w=String(g),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return K}function Bt(g,w,z){if(g==null)return g;var D=[],F=0;return lt(g,D,"","",function(H){return w.call(z,H,F++)}),D}function te(g){if(g._status===-1){var w=g._result;w=w(),w.then(function(z){(g._status===0||g._status===-1)&&(g._status=1,g._result=z)},function(z){(g._status===0||g._status===-1)&&(g._status=2,g._result=z)}),g._status===-1&&(g._status=0,g._result=w)}if(g._status===1)return g._result.default;throw g._result}var gt=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=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(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},Ie={map:Bt,forEach:function(g,w,z){Bt(g,function(){w.apply(this,arguments)},z)},count:function(g){var w=0;return Bt(g,function(){w++}),w},toArray:function(g){return Bt(g,function(w){return w})||[]},only:function(g){if(!Pt(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return L.Activity=f,L.Children=Ie,L.Component=k,L.Fragment=o,L.Profiler=r,L.PureComponent=q,L.StrictMode=s,L.Suspense=d,L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,L.__COMPILER_RUNTIME={__proto__:null,c:function(g){return P.H.useMemoCache(g)}},L.cache=function(g){return function(){return g.apply(null,arguments)}},L.cacheSignal=function(){return null},L.cloneElement=function(g,w,z){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var D=C({},g.props),F=g.key;if(w!=null)for(H in w.key!==void 0&&(F=""+w.key),w)!xt.call(w,H)||H==="key"||H==="__self"||H==="__source"||H==="ref"&&w.ref===void 0||(D[H]=w[H]);var H=arguments.length-2;if(H===1)D.children=z;else if(1<H){for(var K=Array(H),qt=0;qt<H;qt++)K[qt]=arguments[qt+2];D.children=K}return at(g.type,F,D)},L.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},L.createElement=function(g,w,z){var D,F={},H=null;if(w!=null)for(D in w.key!==void 0&&(H=""+w.key),w)xt.call(w,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=w[D]);var K=arguments.length-2;if(K===1)F.children=z;else if(1<K){for(var qt=Array(K),mt=0;mt<K;mt++)qt[mt]=arguments[mt+2];F.children=qt}if(g&&g.defaultProps)for(D in K=g.defaultProps,K)F[D]===void 0&&(F[D]=K[D]);return at(g,H,F)},L.createRef=function(){return{current:null}},L.forwardRef=function(g){return{$$typeof:l,render:g}},L.isValidElement=Pt,L.lazy=function(g){return{$$typeof:m,_payload:{_status:-1,_result:g},_init:te}},L.memo=function(g,w){return{$$typeof:u,type:g,compare:w===void 0?null:w}},L.startTransition=function(g){var w=P.T,z={};P.T=z;try{var D=g(),F=P.S;F!==null&&F(z,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(J,gt)}catch(H){gt(H)}finally{w!==null&&z.types!==null&&(w.types=z.types),P.T=w}},L.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},L.use=function(g){return P.H.use(g)},L.useActionState=function(g,w,z){return P.H.useActionState(g,w,z)},L.useCallback=function(g,w){return P.H.useCallback(g,w)},L.useContext=function(g){return P.H.useContext(g)},L.useDebugValue=function(){},L.useDeferredValue=function(g,w){return P.H.useDeferredValue(g,w)},L.useEffect=function(g,w){return P.H.useEffect(g,w)},L.useEffectEvent=function(g){return P.H.useEffectEvent(g)},L.useId=function(){return P.H.useId()},L.useImperativeHandle=function(g,w,z){return P.H.useImperativeHandle(g,w,z)},L.useInsertionEffect=function(g,w){return P.H.useInsertionEffect(g,w)},L.useLayoutEffect=function(g,w){return P.H.useLayoutEffect(g,w)},L.useMemo=function(g,w){return P.H.useMemo(g,w)},L.useOptimistic=function(g,w){return P.H.useOptimistic(g,w)},L.useReducer=function(g,w,z){return P.H.useReducer(g,w,z)},L.useRef=function(g){return P.H.useRef(g)},L.useState=function(g){return P.H.useState(g)},L.useSyncExternalStore=function(g,w,z){return P.H.useSyncExternalStore(g,w,z)},L.useTransition=function(){return P.H.useTransition()},L.version="19.2.4",L}var al;function gf(){return al||(al=1,il.exports=pf()),il.exports}var mf=gf();const Pc=hf(mf);Ic({tagName:"rtg-button",elementClass:jt,react:Pc});Ic({tagName:"rtg-checkbox",elementClass:Ot,react:Pc});const cn="",bf="sb-relative sb-overflow-hidden sb-w-1/3 sb-h-2 sb-linear-bar",ff="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]",vf="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]",yf="sb-fixed sb-inset-0 sb-z-[9999] sb-flex sb-items-center sb-justify-center sb-p-4 sb-overflow-auto",wf="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",xf="sb-justify-self-center sb-rotate-0",_f="sb-border-0 sb-bg-background !sb-m-0",Sf="sb-border sb-rounded-2xl sb-relative sb-py-6",$f="!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",Cf="!sb-flex !sb-justify-start !sb-flex-nowrap !sb-w-full !rtg-grid-cols-2 !sb-gap-2 sb-mx-6",kf="!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 ot={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 zs(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 u of d.properties.children){const m=i(u);if(m)return m}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 u=!0;switch(d.type){case"required":u=Lc(s,n);break;case"min_length":u=Tc(s,d.length);break;case"max_length":u=Dc(s,d.length);break;case"min_value":u=zc(s,d.value);break;case"max_value":u=jc(s,d.value);break;case"regex":u=Nc(s,d.regex);break;case"field_match":u=Uc(s,d.field_match?e.formData[d.field_match]:void 0);break;case"email":u=Mc(s);break;case"phone":u=Fc(s);break;case"date":u=Bc(s);break;default:u=!0}!u&&d.error_message&&r.push(d.error_message)}e.errors={...e.errors,[t]:r}}}function Lc(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 Tc(e,t){return typeof e=="string"?e.length>=(t??0):!0}function Dc(e,t){return typeof e=="string"?e.length<=(t??1/0):!0}function zc(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 jc(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 Nc(e,t){return typeof e=="string"&&t?new RegExp(t).test(e):!0}function Uc(e,t){return t!==void 0?e===t:!0}function Mc(e){return typeof e=="string"?Rf.test(e):!0}function Fc(e){return typeof e=="string"?Ef.test(e):!0}function Bc(e){return typeof e=="string"?Of.test(e):!0}const qc="sb:env",ns="sb:auth",as="customizations",dn=Symbol("renderSpecContext");var Hc=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Hc||{}),Si=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(Si||{}),fe=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(fe||{}),Et=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(Et||{}),Lt=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Lt||{}),yt=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(yt||{});function Vc(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=Vc(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Af(){for(var e,t,o=0,s="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Vc(e))&&(s&&(s+=" "),s+=t);return s}const un="-",If=e=>{const t=Lf(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:n=>{const l=n.split(un);return l[0]===""&&l.length!==1&&l.shift(),Wc(l,t)||Pf(n)},getConflictingClassGroupIds:(n,l)=>{const d=o[n]||[];return l&&s[n]?[...d,...s[n]]:d}}},Wc=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const o=e[0],s=t.nextPart.get(o),r=s?Wc(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(un);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},ll=/^\[(.+)\]$/,Pf=e=>{if(ll.test(e)){const t=ll.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])=>{$i(n,s,i,t)}),s},$i=(e,t,o,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:cl(t,r);i.classGroupId=o;return}if(typeof r=="function"){if(Tf(r)){$i(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([i,n])=>{$i(n,cl(t,i),o,s)})})},cl=(e,t)=>{let o=e;return t.split(un).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Tf=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,zf=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)}}},Gc="!",jf=e=>{const{separator:t,experimentalParseClassName:o}=e,s=t.length===1,r=t[0],i=t.length,n=l=>{const d=[];let u=0,m=0,f;for(let $=0;$<l.length;$++){let k=l[$];if(u===0){if(k===r&&(s||l.slice($,$+i)===t)){d.push(l.slice(m,$)),m=$+i;continue}if(k==="/"){f=$;continue}}k==="["?u++:k==="]"&&u--}const x=d.length===0?l:l.substring(m),S=x.startsWith(Gc),_=S?x.substring(1):x,C=f&&f>m?f-m:void 0;return{modifiers:d,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:n}):n},Nf=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},Uf=e=>({cache:zf(e.cacheSize),parseClassName:jf(e),...If(e)}),Mf=/\s+/,Ff=(e,t)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],n=e.trim().split(Mf);let l="";for(let d=n.length-1;d>=0;d-=1){const u=n[d],{modifiers:m,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:S}=o(u);let _=!!S,C=s(_?x.substring(0,S):x);if(!C){if(!_){l=u+(l.length>0?" "+l:l);continue}if(C=s(x),!C){l=u+(l.length>0?" "+l:l);continue}_=!1}const $=Nf(m).join(":"),k=f?$+Gc:$,I=k+C;if(i.includes(I))continue;i.push(I);const q=r(C,_);for(let M=0;M<q.length;++M){const W=q[M];i.push(k+W)}l=u+(l.length>0?" "+l:l)}return l};function Bf(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Kc(t))&&(s&&(s+=" "),s+=o);return s}const Kc=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=Kc(e[s]))&&(o&&(o+=" "),o+=t);return o};function qf(e,...t){let o,s,r,i=n;function n(d){const u=t.reduce((m,f)=>f(m),e());return o=Uf(u),s=o.cache.get,r=o.cache.set,i=l,l(d)}function l(d){const u=s(d);if(u)return u;const m=Ff(d,o);return r(d,m),m}return function(){return i(Bf.apply(null,arguments))}}const X=e=>{const t=o=>o[e]||[];return t.isThemeGetter=!0,t},Yc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hf=/^\d+\/\d+$/,Vf=new Set(["px","full","screen"]),Wf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gf=/\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$/,Kf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>gr(e)||Vf.has(e)||Hf.test(e),he=e=>Ur(e,"length",sv),gr=e=>!!e&&!Number.isNaN(Number(e)),js=e=>Ur(e,"number",gr),Vr=e=>!!e&&Number.isInteger(Number(e)),Zf=e=>e.endsWith("%")&&gr(e.slice(0,-1)),N=e=>Yc.test(e),pe=e=>Wf.test(e),Jf=new Set(["length","size","percentage"]),Qf=e=>Ur(e,Jf,Xc),tv=e=>Ur(e,"position",Xc),ev=new Set(["image","url"]),rv=e=>Ur(e,ev,nv),ov=e=>Ur(e,"",iv),Wr=()=>!0,Ur=(e,t,o)=>{const s=Yc.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},sv=e=>Gf.test(e)&&!Kf.test(e),Xc=()=>!1,iv=e=>Yf.test(e),nv=e=>Xf.test(e),av=()=>{const e=X("colors"),t=X("spacing"),o=X("blur"),s=X("brightness"),r=X("borderColor"),i=X("borderRadius"),n=X("borderSpacing"),l=X("borderWidth"),d=X("contrast"),u=X("grayscale"),m=X("hueRotate"),f=X("invert"),x=X("gap"),S=X("gradientColorStops"),_=X("gradientColorStopPositions"),C=X("inset"),$=X("margin"),k=X("opacity"),I=X("padding"),q=X("saturate"),M=X("scale"),W=X("sepia"),J=X("skew"),P=X("space"),xt=X("translate"),at=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Pt=()=>["auto",N,t],A=()=>[N,t],ce=()=>["",re,he],St=()=>["auto",gr,N],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],gt=()=>["","0",N],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],g=()=>[gr,N];return{cacheSize:500,separator:":",theme:{colors:[Wr],spacing:[re,he],blur:["none","",pe,N],brightness:g(),borderColor:[e],borderRadius:["none","","full",pe,N],borderSpacing:A(),borderWidth:ce(),contrast:g(),grayscale:gt(),hueRotate:g(),invert:gt(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Zf,he],inset:Pt(),margin:Pt(),opacity:g(),padding:A(),saturate:g(),scale:g(),sepia:gt(),skew:g(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[pe]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Ae(),N]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-y":[{"overscroll-y":at()}],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",Vr,N]}],basis:[{basis:Pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:gt()}],shrink:[{shrink:gt()}],order:[{order:["first","last","none",Vr,N]}],"grid-cols":[{"grid-cols":[Wr]}],"col-start-end":[{col:["auto",{span:["full",Vr,N]},N]}],"col-start":[{"col-start":St()}],"col-end":[{"col-end":St()}],"grid-rows":[{"grid-rows":[Wr]}],"row-start-end":[{row:["auto",{span:[Vr,N]},N]}],"row-start":[{"row-start":St()}],"row-end":[{"row-end":St()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[pe]},pe]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pe,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",js]}],"font-family":[{font:[Wr]}],"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",N]}],"line-clamp":[{"line-clamp":["none",gr,js]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",re,he]}],"underline-offset":[{"underline-offset":["auto",re,N]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ae(),tv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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":[k]}],"border-style":[{border:[...lt(),"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":[k]}],"divide-style":[{divide:lt()}],"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:["",...lt()]}],"outline-offset":[{"outline-offset":[re,N]}],"outline-w":[{outline:[re,he]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[re,he]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pe,ov]}],"shadow-color":[{shadow:[Wr]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",pe,N]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[f]}],saturate:[{saturate:[q]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"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",N]}],duration:[{duration:g()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:g()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Vr,N]}],"translate-x":[{"translate-x":[xt]}],"translate-y":[{"translate-y":[xt]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],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",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[re,he,js]}],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"]}}},lv=qf(av);function V(...e){return lv(Af(e))}function E(e){return Object.entries(e).filter(([t,o])=>typeof o!="object"&&o!=null).map(([t,o])=>`${t}: ${o};`).join(" ")}function cv(e){document.documentElement.setAttribute("data-theme",e)}function dv(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&cv("light")}function dl(){return document.documentElement.getAttribute("data-theme")}function hn(e,t){return e.includes("{{theme}}")?e.replace("{{theme}}",t):e}function ht(e){const t={},o={};for(const s in e){const r=e[s];r!=null&&(s in ot&&typeof r=="object"?o[s]=r:t[s]=r)}return{base:t,responsive:o}}function uv(e){return{...ot,...e??{}}}function pt(e,t,o){const s=uv(o);let r="";for(const n in t){const d=`(min-width: ${s[n]})`,u=Object.entries(t[n]).map(([m,f])=>`${m}: ${f} !important;`).join(" ");r+=`@media ${d} { #${e} { ${u} } }
|
|
5241
|
+
`}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 Ci(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}async function hv(e,t){if(!t.length)return;await Ci();const o=e.offsetWidth,s=t.length,r=60,i=8;let n=1,l=0,d=-1;for(let u=1;u<=s;u++){const m=i*(u-1),f=(o-m)/u,x=s%u;if(f<r)continue;let S=0;if(x===0&&u>n)S=d+1;else if(x>=2)S=2;else continue;(S>d||S===d&&f>l)&&(n=u,l=f,d=S)}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 ls(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]=ls(i??{},r):o[s]=r}return o}function Rt(e,t){var o,s,r,i,n,l,d,u,m,f,x,S;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:(u=(d=t.byType)==null?void 0:d.buttons)==null?void 0:u.destructiveButton,ghost:(f=(m=t.byType)==null?void 0:m.buttons)==null?void 0:f.ghostButton,outline:(S=(x=t.byType)==null?void 0:x.buttons)==null?void 0:S.outlineButton}[e]}function O(e,t,o,s,r,i=!1){var u,m;let n=e||"",l={...t};i&&((u=r==null?void 0:r.config)!=null&&u.font)&&(n=V(n,r.config.font));const d=f=>{if(!f)return;const{class:x,style:S,font:_,rule:C="merge"}=f;C==="override"?(n=_||x||"",l=S||{}):(n=V(n,x,_),l={...l,...S})};return d(o),s&&((m=r==null?void 0:r.byId)!=null&&m[s])&&d(r.byId[s]),{class:n,style:l}}function cs(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 Zc(e){return/^https?:\/\//.test(e)||e!=null&&e.startsWith("data:image/svg+xml;base64,")?e:`data:image/svg+xml;base64,${e}`}function pv(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 ao(){return Mt`<svg
|
|
5242
5242
|
width="16"
|
|
5243
5243
|
height="16"
|
|
5244
5244
|
viewBox="0 0 16 16"
|
|
@@ -5254,7 +5254,7 @@ body {
|
|
|
5254
5254
|
stroke-linecap="round"
|
|
5255
5255
|
stroke-linejoin="round"
|
|
5256
5256
|
/>
|
|
5257
|
-
</svg>`}function
|
|
5257
|
+
</svg>`}function gv(){return Mt`<svg
|
|
5258
5258
|
width="20"
|
|
5259
5259
|
height="20"
|
|
5260
5260
|
viewBox="0 0 20 20"
|
|
@@ -5270,7 +5270,7 @@ body {
|
|
|
5270
5270
|
d="M14.2328 11.7914C11.9078 10.2414 8.11615 10.2414 5.77448 11.7914C4.71615 12.4997 4.13281 13.4581 4.13281 14.4831C4.13281 15.5081 4.71615 16.4581 5.76615 17.1581C6.93281 17.9414 8.46615 18.3331 9.99948 18.3331C11.5328 18.3331 13.0661 17.9414 14.2328 17.1581C15.2828 16.4497 15.8661 15.4997 15.8661 14.4664C15.8578 13.4414 15.2828 12.4914 14.2328 11.7914Z"
|
|
5271
5271
|
fill="#737373"
|
|
5272
5272
|
/>
|
|
5273
|
-
</svg>`}function
|
|
5273
|
+
</svg>`}function mv(){return Mt`<svg
|
|
5274
5274
|
width="24"
|
|
5275
5275
|
height="24"
|
|
5276
5276
|
viewBox="0 0 24 24"
|
|
@@ -5285,7 +5285,7 @@ body {
|
|
|
5285
5285
|
d="M12 6.92969C9.93 6.92969 8.25 8.60969 8.25 10.6797C8.25 12.7097 9.84 14.3597 11.95 14.4197C11.98 14.4197 12.02 14.4197 12.04 14.4197C12.06 14.4197 12.09 14.4197 12.11 14.4197C12.12 14.4197 12.13 14.4197 12.13 14.4197C14.15 14.3497 15.74 12.7097 15.75 10.6797C15.75 8.60969 14.07 6.92969 12 6.92969Z"
|
|
5286
5286
|
fill="#737373"
|
|
5287
5287
|
/>
|
|
5288
|
-
</svg>`}function
|
|
5288
|
+
</svg>`}function bv(){return Mt`<svg
|
|
5289
5289
|
width="24"
|
|
5290
5290
|
height="24"
|
|
5291
5291
|
viewBox="0 0 24 24"
|
|
@@ -5296,7 +5296,7 @@ body {
|
|
|
5296
5296
|
d="M20.6191 8.45C19.5691 3.83 15.5391 1.75 11.9991 1.75C11.9991 1.75 11.9991 1.75 11.9891 1.75C8.45912 1.75 4.41912 3.82 3.36912 8.44C2.19912 13.6 5.35912 17.97 8.21912 20.72C9.27912 21.74 10.6391 22.25 11.9991 22.25C13.3591 22.25 14.7191 21.74 15.7691 20.72C18.6291 17.97 21.7891 13.61 20.6191 8.45ZM11.9991 13.46C10.2591 13.46 8.84912 12.05 8.84912 10.31C8.84912 8.57 10.2591 7.16 11.9991 7.16C13.7391 7.16 15.1491 8.57 15.1491 10.31C15.1491 12.05 13.7391 13.46 11.9991 13.46Z"
|
|
5297
5297
|
fill="#737373"
|
|
5298
5298
|
/>
|
|
5299
|
-
</svg>`}function
|
|
5299
|
+
</svg>`}function fv(){return Mt`<svg
|
|
5300
5300
|
width="24"
|
|
5301
5301
|
height="24"
|
|
5302
5302
|
viewBox="0 0 24 24"
|
|
@@ -5310,7 +5310,7 @@ body {
|
|
|
5310
5310
|
stroke-linecap="round"
|
|
5311
5311
|
stroke-linejoin="round"
|
|
5312
5312
|
/>
|
|
5313
|
-
</svg>`}function
|
|
5313
|
+
</svg>`}function vv(){return Mt`
|
|
5314
5314
|
<svg
|
|
5315
5315
|
class="sb-text-foreground"
|
|
5316
5316
|
xmlns="http://www.w3.org/2000/svg"]
|
|
@@ -5320,11 +5320,11 @@ body {
|
|
|
5320
5320
|
fill="none">
|
|
5321
5321
|
<path d="M9 1L1 9M1 1L9 9" stroke="currentColor" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5322
5322
|
</svg>
|
|
5323
|
-
`}function
|
|
5323
|
+
`}function yv(){return Mt`
|
|
5324
5324
|
<svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5325
5325
|
<path d="M1 7H17M1 1H17M1 13H17" stroke="#0A0A0A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5326
5326
|
</svg>
|
|
5327
|
-
`}const ds="sb-w-full sb-flex sb-justify-between sb-border-b sb-px-4 sb-py-2",us="sb-flex sb-items-center sb-text-[18px] sb-font-medium sb-gap-2 sb-text-muted-foreground !sb-min-w-9 !sb-min-h-9",hs="sb-w-full sb-basis-36 sb-shrink-0 sb-text-sm sb-text-foreground sb-font-medium sb-truncate sb-overflow-hidden sb-text-ellipsis",ps="sb-w-full sb-border-none !sb-shadow-none !sb-px-0 disabled:!sb-opacity-100",gs="!sb-rounded-2xl !sb-p-0 !sb-bg-base-background",ms="!sb-rounded-2xl !sb-p-0 sb-mb-4",bs="!sb-bg-background",fs="sb-w-full md:sb-w-[120px]",vs="sb-w-full md:sb-w-[120px]",pn="sb-text-muted-foreground sb-text-sm sb-mr-2 sb-flex sb-items-center sb-gap-1";var
|
|
5327
|
+
`}const ds="sb-w-full sb-flex sb-justify-between sb-border-b sb-px-4 sb-py-2",us="sb-flex sb-items-center sb-text-[18px] sb-font-medium sb-gap-2 sb-text-muted-foreground !sb-min-w-9 !sb-min-h-9",hs="sb-w-full sb-basis-36 sb-shrink-0 sb-text-sm sb-text-foreground sb-font-medium sb-truncate sb-overflow-hidden sb-text-ellipsis",ps="sb-w-full sb-border-none !sb-shadow-none !sb-px-0 disabled:!sb-opacity-100",gs="!sb-rounded-2xl !sb-p-0 !sb-bg-base-background",ms="!sb-rounded-2xl !sb-p-0 sb-mb-4",bs="!sb-bg-background",fs="sb-w-full md:sb-w-[120px]",vs="sb-w-full md:sb-w-[120px]",pn="sb-text-muted-foreground sb-text-sm sb-mr-2 sb-flex sb-items-center sb-gap-1";var wv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,dt=(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};const _v=(e,t)=>{const o=Array.from({length:t}).map((i,n)=>c`<rtg-input-otp-slot
|
|
5328
5328
|
class="sb-bg-background"
|
|
5329
5329
|
index=${n}
|
|
5330
5330
|
></rtg-input-otp-slot>`),s=i=>c`<rtg-input-otp-group>${i}</rtg-input-otp-group>`,r=()=>c`<rtg-input-otp-separator></rtg-input-otp-separator>`;switch(e){case"with_spacing":return c`<rtg-input-otp-group class="gap-2"
|
|
@@ -5434,7 +5434,7 @@ body {
|
|
|
5434
5434
|
customStyle=${E(d)}
|
|
5435
5435
|
variant=${this.otpVariant}
|
|
5436
5436
|
>
|
|
5437
|
-
${
|
|
5437
|
+
${_v(this.otpVariant,this.otpLength)}
|
|
5438
5438
|
</rtg-input-otp>
|
|
5439
5439
|
<p class="sb-text-[12px] sb-font-medium">
|
|
5440
5440
|
Resend Verification Code
|
|
@@ -5468,7 +5468,7 @@ body {
|
|
|
5468
5468
|
customClass=${s}
|
|
5469
5469
|
customStyle=${E(r)}
|
|
5470
5470
|
>
|
|
5471
|
-
${((C=this.content)==null?void 0:C.icon)||
|
|
5471
|
+
${((C=this.content)==null?void 0:C.icon)||gv()}
|
|
5472
5472
|
<span>${(($=this.content)==null?void 0:$.title)||"Account"}</span>
|
|
5473
5473
|
</rtg-card-title>
|
|
5474
5474
|
</rtg-card-header>
|
|
@@ -5517,7 +5517,7 @@ body {
|
|
|
5517
5517
|
</div>
|
|
5518
5518
|
</rtg-card-content>
|
|
5519
5519
|
</rtg-card>
|
|
5520
|
-
`}createRenderRoot(){return this}};dt([a({type:Object})],exports.SbAccountInfo.prototype,"account",2);dt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showAvatarMenu",2);dt([a({type:Object})],exports.SbAccountInfo.prototype,"customizations",2);dt([a({type:Function})],exports.SbAccountInfo.prototype,"toggleAvatarMenu",2);dt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarChange",2);dt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarRemove",2);dt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showIcons",2);dt([a({type:Object})],exports.SbAccountInfo.prototype,"content",2);dt([a({type:String})],exports.SbAccountInfo.prototype,"otpVariant",2);dt([a({type:Number})],exports.SbAccountInfo.prototype,"otpLength",2);dt([a({type:String})],exports.SbAccountInfo.prototype,"layout",2);dt([R()],exports.SbAccountInfo.prototype,"isEditingEmail",2);dt([R()],exports.SbAccountInfo.prototype,"isVerifyingEmail",2);dt([R()],exports.SbAccountInfo.prototype,"isEditingPhone",2);dt([R()],exports.SbAccountInfo.prototype,"isVerifyingPhone",2);exports.SbAccountInfo=dt([p("sb-account-info")],exports.SbAccountInfo);var
|
|
5520
|
+
`}createRenderRoot(){return this}};dt([a({type:Object})],exports.SbAccountInfo.prototype,"account",2);dt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showAvatarMenu",2);dt([a({type:Object})],exports.SbAccountInfo.prototype,"customizations",2);dt([a({type:Function})],exports.SbAccountInfo.prototype,"toggleAvatarMenu",2);dt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarChange",2);dt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarRemove",2);dt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showIcons",2);dt([a({type:Object})],exports.SbAccountInfo.prototype,"content",2);dt([a({type:String})],exports.SbAccountInfo.prototype,"otpVariant",2);dt([a({type:Number})],exports.SbAccountInfo.prototype,"otpLength",2);dt([a({type:String})],exports.SbAccountInfo.prototype,"layout",2);dt([R()],exports.SbAccountInfo.prototype,"isEditingEmail",2);dt([R()],exports.SbAccountInfo.prototype,"isVerifyingEmail",2);dt([R()],exports.SbAccountInfo.prototype,"isEditingPhone",2);dt([R()],exports.SbAccountInfo.prototype,"isVerifyingPhone",2);exports.SbAccountInfo=dt([p("sb-account-info")],exports.SbAccountInfo);var Sv=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,ir=(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.SbPersonalInfo=class extends y{constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=yt.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=Rt("default",this.customizations),o=Rt("outline",this.customizations),s=Rt("ghost",this.customizations),r=O(fs,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),i=O(vs,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=O(pn,{},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?bs:V(ps);return O(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 O(V(hs,this.layout!==yt.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,u;return O(V(t?gs+" sb-mb-4":ms),{},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:(u=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:u.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const o=this.getInputStyles(this.isEditing);return c`
|
|
5521
5521
|
<rtg-input
|
|
5522
5522
|
customClass="${o.class}"
|
|
5523
5523
|
customStyle="${E(o.style)}"
|
|
@@ -5560,7 +5560,7 @@ body {
|
|
|
5560
5560
|
customClass=${d.class}
|
|
5561
5561
|
customStyle=${E(d.style)}
|
|
5562
5562
|
>
|
|
5563
|
-
${(W=this.content)!=null&&W.icon?(J=this.content)==null?void 0:J.icon:
|
|
5563
|
+
${(W=this.content)!=null&&W.icon?(J=this.content)==null?void 0:J.icon:mv()}
|
|
5564
5564
|
|
|
5565
5565
|
<span>
|
|
5566
5566
|
${(P=this.content)!=null&&P.title?(xt=this.content)==null?void 0:xt.title:"Personal Info"}
|
|
@@ -5602,7 +5602,7 @@ body {
|
|
|
5602
5602
|
<!-- Footer -->
|
|
5603
5603
|
${this.isEditing?this.renderFooter(r,i):null}
|
|
5604
5604
|
</rtg-card>
|
|
5605
|
-
`}};ir([a({type:Object})],exports.SbPersonalInfo.prototype,"personal",2);ir([a({type:Object})],exports.SbPersonalInfo.prototype,"customizations",2);ir([a({type:Boolean})],exports.SbPersonalInfo.prototype,"showIcons",2);ir([a({type:String})],exports.SbPersonalInfo.prototype,"layout",2);ir([a({type:Object})],exports.SbPersonalInfo.prototype,"content",2);ir([R()],exports.SbPersonalInfo.prototype,"isEditing",2);exports.SbPersonalInfo=ir([p("sb-personal-info")],exports.SbPersonalInfo);var
|
|
5605
|
+
`}};ir([a({type:Object})],exports.SbPersonalInfo.prototype,"personal",2);ir([a({type:Object})],exports.SbPersonalInfo.prototype,"customizations",2);ir([a({type:Boolean})],exports.SbPersonalInfo.prototype,"showIcons",2);ir([a({type:String})],exports.SbPersonalInfo.prototype,"layout",2);ir([a({type:Object})],exports.SbPersonalInfo.prototype,"content",2);ir([R()],exports.SbPersonalInfo.prototype,"isEditing",2);exports.SbPersonalInfo=ir([p("sb-personal-info")],exports.SbPersonalInfo);var Cv=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,nr=(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&&Cv(t,o,r),r};exports.SbLocationInfo=class extends y{constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=yt.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=Rt("default",this.customizations),o=Rt("outline",this.customizations),s=Rt("ghost",this.customizations),r=O(fs,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),i=O(vs,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=O(pn,{},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?bs:V(ps);return O(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 O(V(hs,this.layout!==yt.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,u;return O(V(t?gs+" sb-mb-4":ms),{},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:(u=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:u.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const o=this.getInputStyles(this.isEditing);return c`
|
|
5606
5606
|
<rtg-input
|
|
5607
5607
|
customClass="${o.class}"
|
|
5608
5608
|
customStyle="${E(o.style)}"
|
|
@@ -5645,7 +5645,7 @@ body {
|
|
|
5645
5645
|
customClass=${d.class}
|
|
5646
5646
|
customStyle=${E(d.style)}
|
|
5647
5647
|
>
|
|
5648
|
-
${(W=this.content)!=null&&W.icon?this.content.icon:
|
|
5648
|
+
${(W=this.content)!=null&&W.icon?this.content.icon:bv()}
|
|
5649
5649
|
<span>
|
|
5650
5650
|
${(J=this.content)!=null&&J.title?this.content.title:"Location"}
|
|
5651
5651
|
</span>
|
|
@@ -5687,7 +5687,7 @@ body {
|
|
|
5687
5687
|
<!-- Footer -->
|
|
5688
5688
|
${this.isEditing?this.renderFooter(r,i):null}
|
|
5689
5689
|
</rtg-card>
|
|
5690
|
-
`}};nr([a({type:Object})],exports.SbLocationInfo.prototype,"locationInfo",2);nr([a({type:Object})],exports.SbLocationInfo.prototype,"customizations",2);nr([a({type:Boolean})],exports.SbLocationInfo.prototype,"showIcons",2);nr([a({type:String})],exports.SbLocationInfo.prototype,"layout",2);nr([a({type:Object})],exports.SbLocationInfo.prototype,"content",2);nr([R()],exports.SbLocationInfo.prototype,"isEditing",2);exports.SbLocationInfo=nr([p("sb-location-info")],exports.SbLocationInfo);var
|
|
5690
|
+
`}};nr([a({type:Object})],exports.SbLocationInfo.prototype,"locationInfo",2);nr([a({type:Object})],exports.SbLocationInfo.prototype,"customizations",2);nr([a({type:Boolean})],exports.SbLocationInfo.prototype,"showIcons",2);nr([a({type:String})],exports.SbLocationInfo.prototype,"layout",2);nr([a({type:Object})],exports.SbLocationInfo.prototype,"content",2);nr([R()],exports.SbLocationInfo.prototype,"isEditing",2);exports.SbLocationInfo=nr([p("sb-location-info")],exports.SbLocationInfo);var Ev=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,ar=(e,t,o,s)=>{for(var r=s>1?void 0:s?Rv(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.SbUrlsInfo=class extends y{constructor(){super(...arguments),this.showIcons=!0,this.customizations=null,this.layout=yt.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=Rt("default",this.customizations),o=Rt("outline",this.customizations),s=Rt("ghost",this.customizations),r=O(fs,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),i=O(vs,{},o,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=O(pn,{},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?bs:V(ps);return O(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 O(V(hs,this.layout!==yt.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,u;return O(V(t?gs:ms,"!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:(u=(d=(l=(n=this.customizations)==null?void 0:n.byType)==null?void 0:l.userProfile)==null?void 0:d.userProfileCard)==null?void 0:u.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const o=this.getInputStyles(this.isEditing);return c`
|
|
5691
5691
|
<rtg-input
|
|
5692
5692
|
customClass="${o.class}"
|
|
5693
5693
|
customStyle="${E(o.style)}"
|
|
@@ -5730,7 +5730,7 @@ body {
|
|
|
5730
5730
|
customClass=${d.class}
|
|
5731
5731
|
customStyle=${E(d.style)}
|
|
5732
5732
|
>
|
|
5733
|
-
${(W=this.content)!=null&&W.icon?this.content.icon:
|
|
5733
|
+
${(W=this.content)!=null&&W.icon?this.content.icon:fv()}
|
|
5734
5734
|
<span>${((J=this.content)==null?void 0:J.title)??"URLs"}</span>
|
|
5735
5735
|
</rtg-card-title>
|
|
5736
5736
|
|
|
@@ -5771,7 +5771,7 @@ body {
|
|
|
5771
5771
|
<!-- Footer -->
|
|
5772
5772
|
${this.isEditing?this.renderFooter(r,i):null}
|
|
5773
5773
|
</rtg-card>
|
|
5774
|
-
`}};ar([a({type:Object})],exports.SbUrlsInfo.prototype,"URLsInfo",2);ar([a({type:Boolean})],exports.SbUrlsInfo.prototype,"showIcons",2);ar([a({type:Object})],exports.SbUrlsInfo.prototype,"customizations",2);ar([a({type:String})],exports.SbUrlsInfo.prototype,"layout",2);ar([a({type:Object})],exports.SbUrlsInfo.prototype,"content",2);ar([R()],exports.SbUrlsInfo.prototype,"isEditing",2);exports.SbUrlsInfo=ar([p("sb-urls-info")],exports.SbUrlsInfo);var
|
|
5774
|
+
`}};ar([a({type:Object})],exports.SbUrlsInfo.prototype,"URLsInfo",2);ar([a({type:Boolean})],exports.SbUrlsInfo.prototype,"showIcons",2);ar([a({type:Object})],exports.SbUrlsInfo.prototype,"customizations",2);ar([a({type:String})],exports.SbUrlsInfo.prototype,"layout",2);ar([a({type:Object})],exports.SbUrlsInfo.prototype,"content",2);ar([R()],exports.SbUrlsInfo.prototype,"isEditing",2);exports.SbUrlsInfo=ar([p("sb-urls-info")],exports.SbUrlsInfo);var Ov=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,nt=(e,t,o,s)=>{for(var r=s>1?void 0:s?Av(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&&Ov(t,o,r),r};exports.Profile=class extends y{constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.orientation=Lt.HORIZONTAL,this.sidebarDisplayType=Et.REGULAR,this.mode=fe==null?void 0:fe.PAGE,this.widgetsLayout=yt.ROW,this.content=null}createRenderRoot(){return this}render(){var s,r,i,n;return c`
|
|
5775
5775
|
${this.orientation===Lt.VERTICAL||this.sidebarDisplayType===Et.BURGER?null:c`
|
|
5776
5776
|
<div class=${"sb-flex sb-items-center sb-justify-between sb-mb-4"}>
|
|
5777
5777
|
<div class=${"sb-font-medium sb-text-[18px] sb-text-foreground"}>Profile</div>
|
|
@@ -5805,17 +5805,17 @@ body {
|
|
|
5805
5805
|
.URLsInfo=${this.urls}
|
|
5806
5806
|
.layout=${this.widgetsLayout}
|
|
5807
5807
|
></sb-urls-info>
|
|
5808
|
-
`}};nt([a({type:Object})],exports.Profile.prototype,"account",2);nt([a({type:Object})],exports.Profile.prototype,"personal",2);nt([a({type:Object})],exports.Profile.prototype,"location",2);nt([a({type:Object})],exports.Profile.prototype,"urls",2);nt([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);nt([a({type:Object})],exports.Profile.prototype,"customizations",2);nt([a({type:Boolean})],exports.Profile.prototype,"showIcons",2);nt([a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);nt([a({type:String})],exports.Profile.prototype,"orientation",2);nt([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);nt([a({type:String})],exports.Profile.prototype,"mode",2);nt([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);nt([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);nt([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);nt([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);nt([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=nt([p("sb-profile")],exports.Profile);const
|
|
5808
|
+
`}};nt([a({type:Object})],exports.Profile.prototype,"account",2);nt([a({type:Object})],exports.Profile.prototype,"personal",2);nt([a({type:Object})],exports.Profile.prototype,"location",2);nt([a({type:Object})],exports.Profile.prototype,"urls",2);nt([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);nt([a({type:Object})],exports.Profile.prototype,"customizations",2);nt([a({type:Boolean})],exports.Profile.prototype,"showIcons",2);nt([a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);nt([a({type:String})],exports.Profile.prototype,"orientation",2);nt([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);nt([a({type:String})],exports.Profile.prototype,"mode",2);nt([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);nt([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);nt([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);nt([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);nt([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=nt([p("sb-profile")],exports.Profile);const Iv="!sb-bg-background",ul={vertical:"sb-justify-between sb-w-full",horizontal:"sb-flex-col !sb-items-start sb-mx-4 md:sb-ml-6"},Pv="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",Tv="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 zv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,lr=(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};const Ns=[{label:"Profile",value:Si.PROFILE},{label:"Security",value:Si.SECURITY}];let Ce=class extends y{constructor(){super(...arguments),this.orientation=Lt.HORIZONTAL,this.displayType=Et.REGULAR,this.mode=fe.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=Ns,t=!1,o){var i,n,l;const{class:s,style:r}=O("",{},(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`
|
|
5809
5809
|
<rtg-tab-list
|
|
5810
5810
|
orientation=${t?"vertical":"horizontal"}
|
|
5811
5811
|
class="sb-flex sb-w-full ${t?"":"sb-mb-4"}"
|
|
5812
5812
|
customStyle="${E(r)}"
|
|
5813
|
-
customClass="${V(
|
|
5813
|
+
customClass="${V(Iv,t?kf:Cf,s)}"
|
|
5814
5814
|
>
|
|
5815
5815
|
${e.map(d=>c`
|
|
5816
5816
|
<div class=${t?"sb-mb-2":""}>
|
|
5817
5817
|
<rtg-tab-trigger
|
|
5818
|
-
customClass="${
|
|
5818
|
+
customClass="${$f}"
|
|
5819
5819
|
value=${d.value}
|
|
5820
5820
|
@tab-trigger-click=${o}
|
|
5821
5821
|
>
|
|
@@ -5834,15 +5834,15 @@ body {
|
|
|
5834
5834
|
></sb-watermark>
|
|
5835
5835
|
`}renderBurger(){return c`
|
|
5836
5836
|
<div class="sb-flex sb-items-center">
|
|
5837
|
-
<div class="${
|
|
5838
|
-
${
|
|
5837
|
+
<div class="${Pv}" @click=${this.toggleMenu}>
|
|
5838
|
+
${yv()}
|
|
5839
5839
|
</div>
|
|
5840
|
-
<div class="${
|
|
5840
|
+
<div class="${Lv}">Profile</div>
|
|
5841
5841
|
</div>
|
|
5842
5842
|
`}renderMobileDrawer(){var o,s,r;const{class:e,style:t}=O("",{},(r=(s=(o=this.customizations)==null?void 0:o.byType)==null?void 0:s.userProfile)==null?void 0:r.sidebarBurgerMenu,T.USER_PROFILE_SIDEBAR_BURGER_MENU,this.customizations);return c`
|
|
5843
5843
|
<div
|
|
5844
5844
|
style="${E(t)}"
|
|
5845
|
-
class="${V(
|
|
5845
|
+
class="${V(Tv,this.isMenuOpen?"sb-translate-x-0 sb-opacity-100":"sb-translate-x-[-100%] sb-opacity-0",e)}"
|
|
5846
5846
|
>
|
|
5847
5847
|
<div
|
|
5848
5848
|
class="sb-flex sb-flex-col sb-justify-between sb-h-[100%] sb-p-4 sb-w-min"
|
|
@@ -5854,7 +5854,7 @@ body {
|
|
|
5854
5854
|
</div>
|
|
5855
5855
|
</div>
|
|
5856
5856
|
<div
|
|
5857
|
-
class="${
|
|
5857
|
+
class="${Dv} ${this.isMenuOpen?"sb-block sb-opacity-100":"sb-hidden sb-opacity-0"}"
|
|
5858
5858
|
@click=${this.toggleMenu}
|
|
5859
5859
|
></div>
|
|
5860
5860
|
`}render(){var r,i,n;const e=this.orientation===Lt.VERTICAL,t=this.orientation===Lt.HORIZONTAL,{class:o,style:s}=O("",{},(n=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:n.sidebar,T.USER_PROFILE_SIDEBAR,this.customizations);return c`
|
|
@@ -5871,12 +5871,12 @@ body {
|
|
|
5871
5871
|
`:null}
|
|
5872
5872
|
</div>
|
|
5873
5873
|
${this.displayType===Et.BURGER?this.renderMobileDrawer():null}
|
|
5874
|
-
`}};lr([a({type:String})],Ce.prototype,"orientation",2);lr([a({type:String})],Ce.prototype,"displayType",2);lr([a({type:String})],Ce.prototype,"mode",2);lr([a({type:Object})],Ce.prototype,"config",2);lr([a({type:Object})],Ce.prototype,"customizations",2);lr([R()],Ce.prototype,"isMenuOpen",2);Ce=lr([p("sb-profile-sidebar")],Ce);var
|
|
5874
|
+
`}};lr([a({type:String})],Ce.prototype,"orientation",2);lr([a({type:String})],Ce.prototype,"displayType",2);lr([a({type:String})],Ce.prototype,"mode",2);lr([a({type:Object})],Ce.prototype,"config",2);lr([a({type:Object})],Ce.prototype,"customizations",2);lr([R()],Ce.prototype,"isMenuOpen",2);Ce=lr([p("sb-profile-sidebar")],Ce);var Nv=Object.defineProperty,Qt=(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&&Nv(t,o,r),r};const hl={xs:640,sm:768};class It extends y{constructor(){super(...arguments),this.showAvatarMenu=!1,this.orientation=Lt.HORIZONTAL,this.mobileDisplay=Et.REGULAR,this.mode=fe.PAGE,this.widgetsLayout=yt.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===fe.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<hl.xs?"xs":t<hl.sm?"sm":"md"}get effectiveCustomizations(){return ls(this.providedCustomizations??{},this.customizations??{})}get isModal(){return this.mode===fe.MODAL}get sidebarDisplayType(){return this.orientation===Lt.VERTICAL||this.currentBreakpoint==="md"?Et.REGULAR:Et.BURGER}get containerClasses(){return V(xf,this.isModal?Sf:_f,this.isModal?vf:ff,this.sidebarDisplayType===Et.BURGER||this.orientation===Lt.VERTICAL?"!sb-flex-col":"!sb-flex-row")}get contentClasses(){return V("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===Lt.VERTICAL?"md:sb-pl-6 sb-mb-16":"")}renderCloseButton(){return this.isModal?c`
|
|
5875
5875
|
<button
|
|
5876
5876
|
class="sb-absolute sb-bg-background sb-right-8 sb-top-8 sb-z-10"
|
|
5877
5877
|
@click=${()=>this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}
|
|
5878
5878
|
>
|
|
5879
|
-
${
|
|
5879
|
+
${vv()}
|
|
5880
5880
|
</button>
|
|
5881
5881
|
`:v}renderWatermark(){return this.orientation!==Lt.VERTICAL?v:c`
|
|
5882
5882
|
<div
|
|
@@ -5936,10 +5936,10 @@ body {
|
|
|
5936
5936
|
@click=${()=>this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}
|
|
5937
5937
|
></div>
|
|
5938
5938
|
|
|
5939
|
-
<div class=${
|
|
5940
|
-
<div class=${
|
|
5939
|
+
<div class=${yf}>
|
|
5940
|
+
<div class=${wf}>${this.renderProfileContent()}</div>
|
|
5941
5941
|
</div>
|
|
5942
|
-
`:this.renderProfileContent():v}createRenderRoot(){return this}}Qt([a({type:Boolean})],It.prototype,"showAvatarMenu");Qt([a({type:String})],It.prototype,"orientation");Qt([a({type:String})],It.prototype,"mobileDisplay");Qt([a({type:String})],It.prototype,"mode");Qt([a({type:String})],It.prototype,"widgetsLayout");Qt([a({type:Object})],It.prototype,"content");Qt([a({type:Object})],It.prototype,"customizations");Qt([Ct({context:as,subscribe:!0})],It.prototype,"providedCustomizations");Qt([R()],It.prototype,"isOpen");Qt([R()],It.prototype,"currentBreakpoint");customElements.define("sb-user-profile",It);var
|
|
5942
|
+
`:this.renderProfileContent():v}createRenderRoot(){return this}}Qt([a({type:Boolean})],It.prototype,"showAvatarMenu");Qt([a({type:String})],It.prototype,"orientation");Qt([a({type:String})],It.prototype,"mobileDisplay");Qt([a({type:String})],It.prototype,"mode");Qt([a({type:String})],It.prototype,"widgetsLayout");Qt([a({type:Object})],It.prototype,"content");Qt([a({type:Object})],It.prototype,"customizations");Qt([Ct({context:as,subscribe:!0})],It.prototype,"providedCustomizations");Qt([R()],It.prototype,"isOpen");Qt([R()],It.prototype,"currentBreakpoint");customElements.define("sb-user-profile",It);var Uv=Object.defineProperty,Mv=Object.getOwnPropertyDescriptor,ys=(e,t,o,s)=>{for(var r=s>1?void 0:s?Mv(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.PreviewComponent=class extends y{constructor(){super(...arguments),this.loading=!1,this.renderSpec=null,this.customizations={byType:{},config:{font:"font-geist"}}}createRenderRoot(){return this}render(){return c`
|
|
5943
5943
|
${this.loading?c`<div class="sb-p-8 sb-text-center">Loading...</div>`:c`
|
|
5944
5944
|
<sb-provider>
|
|
5945
5945
|
<signed-out>
|
|
@@ -5951,7 +5951,7 @@ body {
|
|
|
5951
5951
|
</signed-out>
|
|
5952
5952
|
</sb-provider>
|
|
5953
5953
|
`}
|
|
5954
|
-
`}};ys([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);ys([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);ys([a({type:Object})],exports.PreviewComponent.prototype,"customizations",2);exports.PreviewComponent=ys([p("sb-preview")],exports.PreviewComponent);var
|
|
5954
|
+
`}};ys([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);ys([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);ys([a({type:Object})],exports.PreviewComponent.prototype,"customizations",2);exports.PreviewComponent=ys([p("sb-preview")],exports.PreviewComponent);var Fv=Object.defineProperty,Bv=Object.getOwnPropertyDescriptor,ws=(e,t,o,s)=>{for(var r=s>1?void 0:s?Bv(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&&Fv(t,o,r),r};exports.SbSignIn=class extends y{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 ls(t,o)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var r;const o=ut??((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 ut.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=ut??((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 ut.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}=O("",{},(i=(r=t==null?void 0:t.byType)==null?void 0:r.loader)==null?void 0:i.linear,"",t);return this.renderSpec?c`
|
|
5955
5955
|
<sb-layout
|
|
5956
5956
|
.renderSpec=${this.renderSpec}
|
|
5957
5957
|
.customizations=${t}
|
|
@@ -5962,7 +5962,7 @@ body {
|
|
|
5962
5962
|
customClass=${o}
|
|
5963
5963
|
.customStyle=${s}
|
|
5964
5964
|
></linear-loader>
|
|
5965
|
-
`}};ws([Ct({context:dn,subscribe:!0})],exports.SbSignIn.prototype,"renderSpec",2);ws([a({type:Object})],exports.SbSignIn.prototype,"customizations",2);ws([Ct({context:as,subscribe:!0})],exports.SbSignIn.prototype,"providedCustomizations",2);exports.SbSignIn=ws([p("sb-signin")],exports.SbSignIn);var
|
|
5965
|
+
`}};ws([Ct({context:dn,subscribe:!0})],exports.SbSignIn.prototype,"renderSpec",2);ws([a({type:Object})],exports.SbSignIn.prototype,"customizations",2);ws([Ct({context:as,subscribe:!0})],exports.SbSignIn.prototype,"providedCustomizations",2);exports.SbSignIn=ws([p("sb-signin")],exports.SbSignIn);var qv=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,xs=(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&&qv(t,o,r),r};exports.SbSignUp=class extends y{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 ls(t,o)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var r;const o=ut??((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 ut.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=ut??((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 ut.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}=O("",{},(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`
|
|
5966
5966
|
<sb-layout
|
|
5967
5967
|
.renderSpec=${this.renderSpec}
|
|
5968
5968
|
.customizations=${t}
|
|
@@ -5973,7 +5973,7 @@ body {
|
|
|
5973
5973
|
customClass=${o}
|
|
5974
5974
|
.customStyle=${s}
|
|
5975
5975
|
></linear-loader>
|
|
5976
|
-
`}};xs([Ct({context:dn,subscribe:!0})],exports.SbSignUp.prototype,"renderSpec",2);xs([a({type:Object})],exports.SbSignUp.prototype,"customizations",2);xs([Ct({context:as,subscribe:!0})],exports.SbSignUp.prototype,"providedCustomizations",2);exports.SbSignUp=xs([p("sb-signup")],exports.SbSignUp);var
|
|
5976
|
+
`}};xs([Ct({context:dn,subscribe:!0})],exports.SbSignUp.prototype,"renderSpec",2);xs([a({type:Object})],exports.SbSignUp.prototype,"customizations",2);xs([Ct({context:as,subscribe:!0})],exports.SbSignUp.prototype,"providedCustomizations",2);exports.SbSignUp=xs([p("sb-signup")],exports.SbSignUp);var Vv=Object.defineProperty,Wv=Object.getOwnPropertyDescriptor,gn=(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&&Vv(t,o,r),r};exports.SbTextRenderer=class extends y{createRenderRoot(){return this}render(){var i,n;if(!this.element)return null;const{class:t,style:o}=O(this.element.class,{...this.element.style,textAlign:this.element.properties.text_alignment},void 0,this.element.id,void 0),{base:s,responsive:r}=ht(o);return pt(this.element.id,r,((n=(i=this.component.customizations)==null?void 0:i.config)==null?void 0:n.breakpoints)??ot),c`
|
|
5977
5977
|
<p id=${this.element.id} class=${t} style=${E(s)}>
|
|
5978
5978
|
${this.element.properties.content}
|
|
5979
5979
|
</p>
|
|
@@ -5981,7 +5981,7 @@ body {
|
|
|
5981
5981
|
* @license
|
|
5982
5982
|
* Copyright 2017 Google LLC
|
|
5983
5983
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5984
|
-
*/class ki extends Eo{}ki.directiveName="unsafeSVG",ki.resultType=2;const _s=Jo(ki);var
|
|
5984
|
+
*/class ki extends Eo{}ki.directiveName="unsafeSVG",ki.resultType=2;const _s=Jo(ki);var Gv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,Ss=(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&&Gv(t,o,r),r};exports.SbButtonRenderer=class extends y{constructor(){super(...arguments),this.theme=dl(),this._onClick=()=>{this._disabled||this.component.handleEvent(this.element.properties.event,this.element)}}createRenderRoot(){return this}get _disabled(){var t;return!this.component||!this.element?!1:((t=this.element.properties.requires_valid)==null?void 0:t.some(o=>{var r;const s=this.component.findElementByKey(o);return s&&"validation"in s.properties&&((r=s.properties.validation)==null?void 0:r.on_event)!=="submit"&&!this.component.isFieldValid(o)}))??!1}get _loading(){var t,o;return((o=(t=this.component)==null?void 0:t.loadingButtons)==null?void 0:o[this.element.id])??!1}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}}observeThemeChanges(){this.observer=new MutationObserver(()=>{this.theme=dl()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate(),this.observeThemeChanges()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observer)==null||t.disconnect()}_renderIcon(){const t=this.element.properties.icon_url;if(!t)return null;const o=cs(t);return o?c`${_s(o)}`:null}render(){var S,_;if(!this.element)return null;const{type:t,size:o,invalid:s,href:r,target:i,text:n,icon_position:l}=this.element.properties,d=Rt(t,this.component.customizations),{class:u,style:m}=O(this.element.class,this.element.style,d,this.element.id,this.component.customizations),{base:f,responsive:x}=ht(m);return pt(this.element.id,x,((_=(S=this.component.customizations)==null?void 0:S.config)==null?void 0:_.breakpoints)??ot),c`
|
|
5985
5985
|
<rtg-button
|
|
5986
5986
|
variant=${t}
|
|
5987
5987
|
size=${o??v}
|
|
@@ -6002,15 +6002,15 @@ body {
|
|
|
6002
6002
|
* @license
|
|
6003
6003
|
* Copyright 2020 Google LLC
|
|
6004
6004
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6005
|
-
*/const Jc=Symbol.for(""),
|
|
6005
|
+
*/const Jc=Symbol.for(""),Yv=e=>{if((e==null?void 0:e.r)===Jc)return e==null?void 0:e._$litStatic$},Qc=e=>({_$litStatic$:e,r:Jc}),pl=new Map,Xv=e=>(t,...o)=>{const s=o.length;let r,i;const n=[],l=[];let d,u=0,m=!1;for(;u<s;){for(d=t[u];u<s&&(i=o[u],(r=Yv(i))!==void 0);)d+=r+t[++u],m=!0;u!==s&&l.push(i),n.push(d),u++}if(u===s&&n.push(t[s]),m){const f=n.join("$$lit$$");(t=pl.get(f))===void 0&&(n.raw=n,pl.set(f,t=n)),o=l}return e(t,...o)},td=Xv(c);var Zv=Object.defineProperty,Jv=Object.getOwnPropertyDescriptor,mn=(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.SbDividerRenderer=class extends y{createRenderRoot(){return this}render(){var i,n,l,d;if(!this.element)return null;const{class:t,style:o}=O(this.element.class,this.element.style,(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.divider,this.element.id,this.component.customizations),{base:s,responsive:r}=ht(o);return pt(this.element.id,r,((d=(l=this.component.customizations)==null?void 0:l.config)==null?void 0:d.breakpoints)??ot),td`
|
|
6006
6006
|
<rtg-field-separator
|
|
6007
6007
|
id=${this.element.id}
|
|
6008
6008
|
class=${t}
|
|
6009
6009
|
style=${E(s)}
|
|
6010
6010
|
>
|
|
6011
|
-
${
|
|
6011
|
+
${Qc(this.element.properties.text??"")}
|
|
6012
6012
|
</rtg-field-separator>
|
|
6013
|
-
`}};mn([a({type:Object})],exports.SbDividerRenderer.prototype,"element",2);mn([a({attribute:!1})],exports.SbDividerRenderer.prototype,"component",2);exports.SbDividerRenderer=mn([p("sb-divider-renderer")],exports.SbDividerRenderer);var Qv=Object.defineProperty,ty=Object.getOwnPropertyDescriptor,bn=(e,t,o,s)=>{for(var r=s>1?void 0:s?ty(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&&Qv(t,o,r),r};exports.SbCheckboxRenderer=class extends y{constructor(){super(...arguments),this._handleChange=t=>{
|
|
6013
|
+
`}};mn([a({type:Object})],exports.SbDividerRenderer.prototype,"element",2);mn([a({attribute:!1})],exports.SbDividerRenderer.prototype,"component",2);exports.SbDividerRenderer=mn([p("sb-divider-renderer")],exports.SbDividerRenderer);var Qv=Object.defineProperty,ty=Object.getOwnPropertyDescriptor,bn=(e,t,o,s)=>{for(var r=s>1?void 0:s?ty(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&&Qv(t,o,r),r};exports.SbCheckboxRenderer=class extends y{constructor(){super(...arguments),this._handleChange=t=>{this.element.data_key&&(this.component.handleInputChange(this.element.data_key,t),this.component.handleFocus(this.element.data_key))},this._handleFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key)},this._toggleCheckboxFromLabel=()=>{const t=this.querySelector(`#${this._fieldKey}`);t&&t.click()}}createRenderRoot(){return this}get _fieldKey(){return this.element.data_key||this.element.id}get _checked(){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]||[]:[]}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}}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate()}_renderLabel(){var s,r,i;const{class:t,style:o}=O("",{},(i=(r=(s=this.component.customizations)==null?void 0:s.byType)==null?void 0:r.labels)==null?void 0:i.checkboxLabel,"",this.component.customizations);return c`
|
|
6014
6014
|
<rtg-field-label
|
|
6015
6015
|
for=${this._fieldKey}
|
|
6016
6016
|
class=${t}
|
|
@@ -6038,13 +6038,13 @@ body {
|
|
|
6038
6038
|
?checked=${this._checked}
|
|
6039
6039
|
?invalid=${this._errors.length>0}
|
|
6040
6040
|
data-key=${this.element.data_key||""}
|
|
6041
|
-
.
|
|
6041
|
+
.onCheckedChange=${this._handleChange}
|
|
6042
6042
|
@focus=${this._handleFocus}
|
|
6043
6043
|
></rtg-checkbox>
|
|
6044
6044
|
${this._renderLabel()}
|
|
6045
6045
|
${this._renderError()}
|
|
6046
6046
|
</rtg-field>
|
|
6047
|
-
`}};bn([a({type:Object})],exports.SbCheckboxRenderer.prototype,"element",2);bn([a({attribute:!1})],exports.SbCheckboxRenderer.prototype,"component",2);exports.SbCheckboxRenderer=bn([p("sb-checkbox-renderer")],exports.SbCheckboxRenderer);var ey=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,
|
|
6047
|
+
`}};bn([a({type:Object})],exports.SbCheckboxRenderer.prototype,"element",2);bn([a({attribute:!1})],exports.SbCheckboxRenderer.prototype,"component",2);exports.SbCheckboxRenderer=bn([p("sb-checkbox-renderer")],exports.SbCheckboxRenderer);var ey=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,ed=(e,t,o,s)=>{for(var r=s>1?void 0:s?ry(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&&ey(t,o,r),r};exports.SbError=class extends y{constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return c`<p>${this.content}</p>`}};ed([a({type:String})],exports.SbError.prototype,"content",2);exports.SbError=ed([p("sb-error")],exports.SbError);var oy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,rd=(e,t,o,s)=>{for(var r=s>1?void 0:s?sy(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&&oy(t,o,r),r};exports.SbHint=class extends y{constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return c`<p class="sb-mt-2">${this.content}</p>`}};rd([a({type:String})],exports.SbHint.prototype,"content",2);exports.SbHint=rd([p("sb-hint")],exports.SbHint);var iy=Object.defineProperty,ny=Object.getOwnPropertyDescriptor,Mr=(e,t,o,s)=>{for(var r=s>1?void 0:s?ny(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&&iy(t,o,r),r};exports.SbWatermark=class extends y{constructor(){super(...arguments),this.label="Powered by",this.image_url="",this.content="",this.customId="",this.fontSize="12px"}render(){const t=cs(this.image_url);return c`
|
|
6048
6048
|
<style>
|
|
6049
6049
|
#${this.customId} {
|
|
6050
6050
|
display: flex;
|
|
@@ -6148,26 +6148,10 @@ body {
|
|
|
6148
6148
|
${this.label?c`<span class="sr-only">${this.label}</span>`:null}
|
|
6149
6149
|
`}};Fr([a({type:Number})],exports.SbSpinner.prototype,"size",2);Fr([a({type:Number,attribute:"stroke-width"})],exports.SbSpinner.prototype,"strokeWidth",2);Fr([a()],exports.SbSpinner.prototype,"color",2);Fr([a()],exports.SbSpinner.prototype,"label",2);Fr([a({type:Number})],exports.SbSpinner.prototype,"duration",2);exports.SbSpinner=Fr([p("sb-spinner")],exports.SbSpinner);var cy=Object.defineProperty,dy=Object.getOwnPropertyDescriptor,fn=(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.LinearLoader=class extends y{constructor(){super(...arguments),this.customClass="",this.customStyle={}}createRenderRoot(){return this}render(){return c`
|
|
6150
6150
|
<div
|
|
6151
|
-
class=${V(
|
|
6151
|
+
class=${V(bf,this.customClass)}
|
|
6152
6152
|
style=${E(this.customStyle)}
|
|
6153
6153
|
></div>
|
|
6154
|
-
`}};fn([a({type:String})],exports.LinearLoader.prototype,"customClass",2);fn([a({type:Object})],exports.LinearLoader.prototype,"customStyle",2);exports.LinearLoader=fn([p("linear-loader")],exports.LinearLoader);var uy=Object.defineProperty,hy=Object.getOwnPropertyDescriptor,vn=(e,t,o,s)=>{for(var r=s>1?void 0:s?hy(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.SbOtpRenderer=class extends y{constructor(){super(...arguments),this._onComplete=t=>{if(!this.element.data_key)return;this.component.handleInputChange(this.element.data_key,t
|
|
6155
|
-
<rtg-input-otp-group>${s.slice(0,r)}</rtg-input-otp-group>
|
|
6156
|
-
<rtg-input-otp-separator></rtg-input-otp-separator>
|
|
6157
|
-
<rtg-input-otp-group>${s.slice(r)}</rtg-input-otp-group>
|
|
6158
|
-
`}if(t==="with_separator"){const r=Math.ceil(o/3);return c`
|
|
6159
|
-
<rtg-input-otp-group>${s.slice(0,r)}</rtg-input-otp-group>
|
|
6160
|
-
<rtg-input-otp-separator></rtg-input-otp-separator>
|
|
6161
|
-
<rtg-input-otp-group>
|
|
6162
|
-
${s.slice(r,r*2)}
|
|
6163
|
-
</rtg-input-otp-group>
|
|
6164
|
-
<rtg-input-otp-separator></rtg-input-otp-separator>
|
|
6165
|
-
<rtg-input-otp-group>${s.slice(r*2)}</rtg-input-otp-group>
|
|
6166
|
-
`}return t==="with_spacing"?c`
|
|
6167
|
-
${s.forEach(r=>c`
|
|
6168
|
-
<rtg-input-otp-group>${r}</rtg-input-otp-group>
|
|
6169
|
-
`)}
|
|
6170
|
-
`:c`<rtg-input-otp-group>${s}</rtg-input-otp-group>`}render(){var n,l,d,u,m;if(!this.element)return null;const{class:t,style:o}=O(this.element.class,this.element.style,(d=(l=(n=this.component.customizations)==null?void 0:n.byType)==null?void 0:l.inputs)==null?void 0:d.inputField,this.element.id,this.component.customizations),{base:s,responsive:r}=ht(o);pt(this.element.id,r,((m=(u=this.component.customizations)==null?void 0:u.config)==null?void 0:m.breakpoints)??ot);const i=this.element.properties.variant||"digits_only";return c`
|
|
6154
|
+
`}};fn([a({type:String})],exports.LinearLoader.prototype,"customClass",2);fn([a({type:Object})],exports.LinearLoader.prototype,"customStyle",2);exports.LinearLoader=fn([p("linear-loader")],exports.LinearLoader);var uy=Object.defineProperty,hy=Object.getOwnPropertyDescriptor,vn=(e,t,o,s)=>{for(var r=s>1?void 0:s?hy(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.SbOtpRenderer=class extends y{constructor(){super(...arguments),this._onComplete=t=>{if(!this.element.data_key)return;this.component.handleInputChange(this.element.data_key,t);const{event:o}=this.element.properties;o&&this.component.handleEvent(o,this.element)},this._onFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key,this.element.id)},this._onBlur=()=>{this.element.data_key&&this.component.handleBlur(this.element.data_key)}}createRenderRoot(){return this}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}}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}_buildOTPContentHTML(){const t=this.element.properties.variant||"digits_only",o=this.element.properties.length||6,s=(n,l)=>Array.from({length:l-n},(d,u)=>`<rtg-input-otp-slot index="${n+u}"></rtg-input-otp-slot>`).join(""),r=n=>`<rtg-input-otp-group>${n}</rtg-input-otp-group>`,i="<rtg-input-otp-separator></rtg-input-otp-separator>";if(t==="simple"){const n=Math.ceil(o/2);return r(s(0,n))+i+r(s(n,o))}if(t==="with_separator"){const n=Math.ceil(o/3);return r(s(0,n))+i+r(s(n,n*2))+i+r(s(n*2,o))}return t==="with_spacing"?Array.from({length:o},(n,l)=>r(`<rtg-input-otp-slot index="${l}"></rtg-input-otp-slot>`)).join(""):r(s(0,o))}render(){var n,l,d,u,m;if(!this.element)return null;const{class:t,style:o}=O(this.element.class,this.element.style,(d=(l=(n=this.component.customizations)==null?void 0:n.byType)==null?void 0:l.inputs)==null?void 0:d.inputField,this.element.id,this.component.customizations),{base:s,responsive:r}=ht(o);pt(this.element.id,r,((m=(u=this.component.customizations)==null?void 0:u.config)==null?void 0:m.breakpoints)??ot);const i=this.element.properties.variant||"digits_only";return td`
|
|
6171
6155
|
<rtg-input-otp
|
|
6172
6156
|
id=${this.element.data_key??this.element.id??v}
|
|
6173
6157
|
name=${this.element.data_key??this.element.id??v}
|
|
@@ -6177,12 +6161,10 @@ body {
|
|
|
6177
6161
|
data-key=${this.element.data_key||""}
|
|
6178
6162
|
class=${t}
|
|
6179
6163
|
style=${E(s)}
|
|
6180
|
-
.
|
|
6181
|
-
.
|
|
6182
|
-
.
|
|
6183
|
-
>
|
|
6184
|
-
${this._renderOTPContent()}
|
|
6185
|
-
</rtg-input-otp>
|
|
6164
|
+
.onComplete=${this._onComplete}
|
|
6165
|
+
.onFocus=${this._onFocus}
|
|
6166
|
+
.onBlur=${this._onBlur}
|
|
6167
|
+
>${Qc(this._buildOTPContentHTML())}</rtg-input-otp>
|
|
6186
6168
|
`}};vn([a({type:Object})],exports.SbOtpRenderer.prototype,"element",2);vn([a({attribute:!1})],exports.SbOtpRenderer.prototype,"component",2);exports.SbOtpRenderer=vn([p("sb-otp-renderer")],exports.SbOtpRenderer);var py=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,yn=(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&&py(t,o,r),r};exports.SbErrorRenderer=class extends y{createRenderRoot(){return this}_renderIcon(){const t=this.element.properties.icon_url;if(!t)return null;const o=cs(t);return o?c`${_s(o)}`:null}_renderTitle(){const{title:t}=this.element.properties;return t?c`<rtg-alert-title>${t}</rtg-alert-title>`:null}_renderDescription(){const{description:t,message:o}=this.element.properties;return!t&&!o?null:c`
|
|
6187
6169
|
<rtg-alert-description>${t??o}</rtg-alert-description>
|
|
6188
6170
|
`}render(){var i,n,l,d,u;if(!this.element)return null;const{class:t,style:o}=O(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}=ht(o);return pt(this.element.id,r,((u=(d=this.component.customizations)==null?void 0:d.config)==null?void 0:u.breakpoints)??ot),c`
|
|
@@ -6197,7 +6179,7 @@ body {
|
|
|
6197
6179
|
</rtg-alert>
|
|
6198
6180
|
`}};yn([a({type:Object})],exports.SbErrorRenderer.prototype,"element",2);yn([a({attribute:!1})],exports.SbErrorRenderer.prototype,"component",2);exports.SbErrorRenderer=yn([p("sb-error-renderer")],exports.SbErrorRenderer);var my=Object.defineProperty,by=Object.getOwnPropertyDescriptor,wn=(e,t,o,s)=>{for(var r=s>1?void 0:s?by(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&&my(t,o,r),r};exports.SbHtmlRenderer=class extends y{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}=O(this.element.class,this.element.style,void 0,this.element.id,void 0),{base:s,responsive:r}=ht(o);return pt(this.element.id,r,((n=(i=this.component.customizations)==null?void 0:i.config)==null?void 0:n.breakpoints)??ot),c`
|
|
6199
6181
|
<div id=${this.element.id} class=${t} style=${E(s)}>
|
|
6200
|
-
${Pi(
|
|
6182
|
+
${Pi(pv(this.element.properties.content))}
|
|
6201
6183
|
</div>
|
|
6202
6184
|
`}};wn([a({type:Object})],exports.SbHtmlRenderer.prototype,"element",2);wn([a({attribute:!1})],exports.SbHtmlRenderer.prototype,"component",2);exports.SbHtmlRenderer=wn([p("sb-html-renderer")],exports.SbHtmlRenderer);var fy=Object.defineProperty,vy=Object.getOwnPropertyDescriptor,xn=(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.SbGapRenderer=class extends y{createRenderRoot(){return this}render(){var l,d;if(!this.element)return null;const{class:t,style:o}=O(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}=ht(o);return pt(this.element.id,n,((d=(l=this.component.customizations)==null?void 0:l.config)==null?void 0:d.breakpoints)??ot),c`
|
|
6203
6185
|
<div
|
|
@@ -6280,7 +6262,7 @@ body {
|
|
|
6280
6262
|
.component=${e}
|
|
6281
6263
|
.element=${t}
|
|
6282
6264
|
?hidden=${s}
|
|
6283
|
-
></sb-countdown-renderer>`;default:return c`<p>Unknown element type: ${t.element_type}</p>`}}var Sy=Object.defineProperty,$y=Object.getOwnPropertyDescriptor,$n=(e,t,o,s)=>{for(var r=s>1?void 0:s?$y(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};exports.SbContainerRenderer=class extends y{constructor(){super(...arguments),this.prevChildCount=0,this.prevContainerWidth=0,this.widthUpdateScheduled=!1}async firstUpdated(t){await this.updateComplete,await Ci(),this.updateWidthsIfNeeded()}async updated(t){await this.updateComplete,await Ci(),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,
|
|
6265
|
+
></sb-countdown-renderer>`;default:return c`<p>Unknown element type: ${t.element_type}</p>`}}var Sy=Object.defineProperty,$y=Object.getOwnPropertyDescriptor,$n=(e,t,o,s)=>{for(var r=s>1?void 0:s?$y(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};exports.SbContainerRenderer=class extends y{constructor(){super(...arguments),this.prevChildCount=0,this.prevContainerWidth=0,this.widthUpdateScheduled=!1}async firstUpdated(t){await this.updateComplete,await Ci(),this.updateWidthsIfNeeded()}async updated(t){await this.updateComplete,await Ci(),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,hv(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=>Sn(this.component,t)):v}render(){var i,n,l,d;if(!this.element)return null;const{class:t,style:o}=O(this.element.class,this.containerStyles,(n=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:n.container,this.element.id,this.component.customizations,!0),{base:s,responsive:r}=ht(o);return pt(this.element.id,r,((d=(l=this.component.customizations)==null?void 0:l.config)==null?void 0:d.breakpoints)??ot),c`
|
|
6284
6266
|
<div id=${this.element.id} class=${t} style=${E(s)}>
|
|
6285
6267
|
${this.renderChildren()}
|
|
6286
6268
|
</div>
|
|
@@ -6303,7 +6285,7 @@ body {
|
|
|
6303
6285
|
style=${E(s)}
|
|
6304
6286
|
src=${Zc(i)}
|
|
6305
6287
|
/>
|
|
6306
|
-
`}};ks([a({type:Object})],exports.SbLogoRenderer.prototype,"element",2);ks([a({attribute:!1})],exports.SbLogoRenderer.prototype,"component",2);ks([R()],exports.SbLogoRenderer.prototype,"theme",2);exports.SbLogoRenderer=ks([p("sb-logo-renderer")],exports.SbLogoRenderer);var Iy=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,kn=(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&&Iy(t,o,r),r};exports.SbInputRenderer=class extends y{constructor(){super(...arguments),this._onInput=t=>{const o=this.element.data_key;o&&this.component.handleInputChange(o,t.
|
|
6288
|
+
`}};ks([a({type:Object})],exports.SbLogoRenderer.prototype,"element",2);ks([a({attribute:!1})],exports.SbLogoRenderer.prototype,"component",2);ks([R()],exports.SbLogoRenderer.prototype,"theme",2);exports.SbLogoRenderer=ks([p("sb-logo-renderer")],exports.SbLogoRenderer);var Iy=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,kn=(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&&Iy(t,o,r),r};exports.SbInputRenderer=class extends y{constructor(){super(...arguments),this._onInput=t=>{const o=this.element.data_key;o&&this.component.handleInputChange(o,t.target.value)},this._onFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key)},this._onBlur=()=>{const t=this.element.data_key;t&&this.component.handleBlur(t)}}createRenderRoot(){return this}get _key(){return this.element.data_key||this.element.id}get _errors(){return this.element.data_key?this.component.errors[this.element.data_key]||[]:[]}get _invalid(){return this._errors.length>0}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}}_initValue(){this.element.data_key&&this.element.properties.initial_value&&this.component.handleInputChange(this.element.data_key,this.element.properties.initial_value)}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}updated(t){t.has("element")&&this._initValue()}_renderLabel(){var r,i,n;const{label:t}=this.element.properties;if(!t)return null;const{class:o,style:s}=O("",{},(n=(i=(r=this.component.customizations)==null?void 0:r.byType)==null?void 0:i.inputs)==null?void 0:n.inputLabel,this.element.id,this.component.customizations);return c`
|
|
6307
6289
|
<rtg-field-label for=${this._key} class=${o} style=${s}>
|
|
6308
6290
|
${t}
|
|
6309
6291
|
</rtg-field-label>
|
|
@@ -6335,9 +6317,9 @@ body {
|
|
|
6335
6317
|
data-key=${this.element.data_key||""}
|
|
6336
6318
|
class=${i}
|
|
6337
6319
|
style=${n}
|
|
6338
|
-
.
|
|
6339
|
-
.
|
|
6340
|
-
.
|
|
6320
|
+
.onInput=${this._onInput}
|
|
6321
|
+
.onFocus=${this._onFocus}
|
|
6322
|
+
.onBlur=${this._onBlur}
|
|
6341
6323
|
></rtg-input>
|
|
6342
6324
|
${this._invalid?this._renderError():this._renderHint()}
|
|
6343
6325
|
</rtg-field>
|
|
@@ -6371,9 +6353,9 @@ body {
|
|
|
6371
6353
|
${this._wrapSubmitButtons(Sn(this,this.renderSpec.root_container,this.theme))}
|
|
6372
6354
|
</div>
|
|
6373
6355
|
</form>
|
|
6374
|
-
`}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,u;const o=(((u=(d=this.customizations)==null?void 0:d.config)==null?void 0:u.breakpoints)??ot).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 m=Math.min(600,Math.max(200,l*1));i.style.transition="none",i.style.height=this.prevHeight+"px",i.offsetHeight,i.style.transition=`height ${m}ms ease`,i.style.height=n+"px";const f=()=>{i.style.transition="",i.style.height="auto",this.prevHeight=i.scrollHeight,this.isAnimating=!1};let x=!1;const S=()=>{x||(x=!0,f())};i.addEventListener("transitionend",S,{once:!0}),setTimeout(S,m)})}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},zs(this,t,"change"),this.requestUpdate())}handleBlur(t){zs(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 ut.processLoginflowEvent({event:t,data:{}})}finally{this.eventEmitting=!1}else if(o.element_type==="otp")try{await ut.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=>{zs(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 ut.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 Lc(o);case"min_length":return Tc(o,t.length);case"max_length":return Dc(o,t.length);case"min_value":return zc(o,t.value);case"max_value":return jc(o,t.value);case"regex":return Nc(o,t.regex);case"field_match":return Uc(o,t.field_match?this.formData[t.field_match]:void 0);case"email":return Mc(o);case"phone":return Fc(o);case"date":return Bc(o);default:return!0}}};Oe([a({type:Object})],exports.SaasBaseLayout.prototype,"renderSpec",2);Oe([a({type:Object})],exports.SaasBaseLayout.prototype,"customizations",2);Oe([R()],exports.SaasBaseLayout.prototype,"formData",2);Oe([R()],exports.SaasBaseLayout.prototype,"errors",2);Oe([R()],exports.SaasBaseLayout.prototype,"loadingButtons",2);Oe([R()],exports.SaasBaseLayout.prototype,"eventEmitting",2);Oe([R()],exports.SaasBaseLayout.prototype,"theme",2);exports.SaasBaseLayout=Oe([p("sb-layout")],exports.SaasBaseLayout);var jy=Object.defineProperty,Ny=Object.getOwnPropertyDescriptor,cr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ny(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&&jy(t,o,r),r};exports.SbProvider=class extends y{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(),
|
|
6356
|
+
`}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,u;const o=(((u=(d=this.customizations)==null?void 0:d.config)==null?void 0:u.breakpoints)??ot).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 m=Math.min(600,Math.max(200,l*1));i.style.transition="none",i.style.height=this.prevHeight+"px",i.offsetHeight,i.style.transition=`height ${m}ms ease`,i.style.height=n+"px";const f=()=>{i.style.transition="",i.style.height="auto",this.prevHeight=i.scrollHeight,this.isAnimating=!1};let x=!1;const S=()=>{x||(x=!0,f())};i.addEventListener("transitionend",S,{once:!0}),setTimeout(S,m)})}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},zs(this,t,"change"),this.requestUpdate())}handleBlur(t){zs(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 ut.processLoginflowEvent({event:t,data:{}})}finally{this.eventEmitting=!1}else if(o.element_type==="otp")try{await ut.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=>{zs(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 ut.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 Lc(o);case"min_length":return Tc(o,t.length);case"max_length":return Dc(o,t.length);case"min_value":return zc(o,t.value);case"max_value":return jc(o,t.value);case"regex":return Nc(o,t.regex);case"field_match":return Uc(o,t.field_match?this.formData[t.field_match]:void 0);case"email":return Mc(o);case"phone":return Fc(o);case"date":return Bc(o);default:return!0}}};Oe([a({type:Object})],exports.SaasBaseLayout.prototype,"renderSpec",2);Oe([a({type:Object})],exports.SaasBaseLayout.prototype,"customizations",2);Oe([R()],exports.SaasBaseLayout.prototype,"formData",2);Oe([R()],exports.SaasBaseLayout.prototype,"errors",2);Oe([R()],exports.SaasBaseLayout.prototype,"loadingButtons",2);Oe([R()],exports.SaasBaseLayout.prototype,"eventEmitting",2);Oe([R()],exports.SaasBaseLayout.prototype,"theme",2);exports.SaasBaseLayout=Oe([p("sb-layout")],exports.SaasBaseLayout);var jy=Object.defineProperty,Ny=Object.getOwnPropertyDescriptor,cr=(e,t,o,s)=>{for(var r=s>1?void 0:s?Ny(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&&jy(t,o,r),r};exports.SbProvider=class extends y{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(),dv(),(async()=>{for(;!this.env||!this.env.domain;)await new Promise(o=>setTimeout(o,20));ut.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&&ut.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:ut.isAuthenticated()}}};cr([a({type:Object})],exports.SbProvider.prototype,"customizations",2);cr([ke({context:as})],exports.SbProvider.prototype,"providedCustomizations",2);cr([a({type:Object}),ke({context:qc})],exports.SbProvider.prototype,"env",2);cr([R(),ke({context:ns})],exports.SbProvider.prototype,"auth",2);cr([R(),ke({context:dn})],exports.SbProvider.prototype,"renderSpec",2);cr([a({type:Boolean})],exports.SbProvider.prototype,"autoRedirect",2);exports.SbProvider=cr([p("sb-provider")],exports.SbProvider);var Uy=Object.defineProperty,My=Object.getOwnPropertyDescriptor,od=(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&&Uy(t,o,r),r};exports.SignedOut=class extends y{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`
|
|
6375
6357
|
<div ?hidden=${this.auth.isAuthenticated}>${this._cachedChildren}</div>
|
|
6376
|
-
`:v}};
|
|
6358
|
+
`:v}};od([Ct({context:ns,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=od([p("sb-signed-out")],exports.SignedOut);var Fy=Object.defineProperty,By=Object.getOwnPropertyDescriptor,sd=(e,t,o,s)=>{for(var r=s>1?void 0:s?By(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.SignedIn=class extends y{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`
|
|
6377
6359
|
<div ?hidden=${!this.auth.isAuthenticated}>${this._cachedChildren}</div>
|
|
6378
|
-
`:v}};
|
|
6360
|
+
`:v}};sd([Ct({context:ns,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=sd([p("sb-signed-in")],exports.SignedIn);var qy=Object.defineProperty,Hy=Object.getOwnPropertyDescriptor,Es=(e,t,o,s)=>{for(var r=s>1?void 0:s?Hy(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&&qy(t,o,r),r};exports.SbAuthenticated=class extends y{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),v):v}};Es([a({type:String})],exports.SbAuthenticated.prototype,"redirectUrl",2);Es([Ct({context:qc}),a({attribute:!1})],exports.SbAuthenticated.prototype,"env",2);Es([Ct({context:ns,subscribe:!0}),a({attribute:!1})],exports.SbAuthenticated.prototype,"auth",2);exports.SbAuthenticated=Es([p("sb-authenticated")],exports.SbAuthenticated);function Vy(){return ut}exports.BaseElement=Cl;exports.SbUserProfile=It;exports.renderElement=Sn;exports.useAuthProvider=Vy;
|
|
6379
6361
|
//# sourceMappingURL=index.js.map
|