Rocky_Mountain_Vending/.pnpm-store/v10/files/43/7cab168adc46ba5a5ad1f235b529a2801ccc27595483a97b87ae3b14cd4470440c9524bcf4da2688679acd3dcfc35378b2cb1599810aa877d61a2c6377548b
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

71 lines
No EOL
1.8 KiB
Text

/**
* @license
* Copyright 2023 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import { JSHandle } from '../api/JSHandle.js';
import { UnsupportedOperation } from '../common/Errors.js';
import { BidiDeserializer } from './Deserializer.js';
/**
* @internal
*/
export class BidiJSHandle extends JSHandle {
static from(value, realm) {
return new BidiJSHandle(value, realm);
}
#remoteValue;
realm;
#disposed = false;
constructor(value, realm) {
super();
this.#remoteValue = value;
this.realm = realm;
}
get disposed() {
return this.#disposed;
}
async jsonValue() {
return await this.evaluate(value => {
return value;
});
}
asElement() {
return null;
}
async dispose() {
if (this.#disposed) {
return;
}
this.#disposed = true;
await this.realm.destroyHandles([this]);
}
get isPrimitiveValue() {
switch (this.#remoteValue.type) {
case 'string':
case 'number':
case 'bigint':
case 'boolean':
case 'undefined':
case 'null':
return true;
default:
return false;
}
}
toString() {
if (this.isPrimitiveValue) {
return 'JSHandle:' + BidiDeserializer.deserialize(this.#remoteValue);
}
return 'JSHandle@' + this.#remoteValue.type;
}
get id() {
return 'handle' in this.#remoteValue ? this.#remoteValue.handle : undefined;
}
remoteValue() {
return this.#remoteValue;
}
remoteObject() {
throw new UnsupportedOperation('Not available in WebDriver BiDi');
}
}
//# sourceMappingURL=JSHandle.js.map