PageSourceSearch

https://dailydashboards.ai/_next/static/chunks/4314.d471b81bbd9db58a.js

js dailydashboards.ai collected 2026-10-05 13:56:07 UTC 8,536 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d494e4af-ff0a-4930-9ea3-95760d07ce42",e._sentryDebugIdIdentifier="sentry-dbid-d494e4af-ff0a-4930-9ea3-95760d07ce42")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4314],{64314:function(e,t,a){let r;a.d(t,{toJsonSchema:function(){return c}});var i=a(77861);function n(e,t){return e?(e.push(t),e):[t]}function s(e,t){switch(t?.errorMode){case"ignore":break;case"warn":console.warn(e);break;default:throw Error(e)}}let o=0;function p(e,t,a,r,c=!1){let m;if(!c){let i=r.referenceMap.get(t);if(i){if(e.$ref=`#/$defs/${i}`,a?.overrideRef){let n=a.overrideRef({...r,referenceId:i,valibotSchema:t,jsonSchema:e});n&&(e.$ref=n)}return e}}if("pipe"in t){let i=function e(t){return t.flatMap(t=>"pipe"in t?e(t.pipe):t)}(t.pipe),o=0,c=i.length-1;if(a?.typeMode==="input"){let e=i.slice(1).findIndex(e=>"schema"===e.kind||"transformation"===e.kind&&("find_item"===e.type||"parse_json"===e.type||"raw_transform"===e.type||"reduce_items"===e.type||"stringify_json"===e.type||"to_bigint"===e.type||"to_boolean"===e.type||"to_date"===e.type||"to_number"===e.type||"to_string"===e.type||"transform"===e.type));-1!==e&&(c=e)}else if(a?.typeMode==="output"){let e=i.findLastIndex(e=>"schema"===e.kind);-1!==e&&(o=e)}for(let t=o;t<=c;t++){let c=i[t];"schema"===c.kind?(t>o&&s('Set the "typeMode" config to "input" or "output" to convert pipelines with multiple schemas.',a),e=p(e,c,a,r,!0)):e=function(e,t,a){let r;if(a?.ignoreActions?.includes(t.type))return e;switch(t.type){case"base64":e.contentEncoding="base64";break;case"bic":case"cuid2":case"decimal":case"digits":case"emoji":case"hexadecimal":case"hex_color":case"nanoid":case"octal":case"ulid":e.pattern=t.requirement.source;break;case"description":e.description=t.description;break;case"email":e.format="email";break;case"empty":"array"===e.type?e.maxItems=0:("string"!==e.type&&(r=n(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.maxLength=0);break;case"entries":e.minProperties=t.requirement,e.maxProperties=t.requirement;break;case"examples":Array.isArray(e.examples)?e.examples=[...e.examples,...t.examples]:e.examples=t.examples;break;case"integer":e.type="integer";break;case"ipv4":e.format="ipv4";break;case"ipv6":e.format="ipv6";break;case"iso_date":e.format="date";break;case"iso_date_time":case"iso_timestamp":e.format="date-time";break;case"iso_time":e.format="time";break;case"length":"array"===e.type?(e.minItems=t.requirement,e.maxItems=t.requirement):("string"!==e.type&&(r=n(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.minLength=t.requirement,e.maxLength=t.requirement);break;
1case"max_entries":e.maxProperties=t.requirement;break;case"max_length":"array"===e.type?e.maxItems=t.requirement:("string"!==e.type&&(r=n(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.maxLength=t.requirement);break;case"max_value":"number"!==e.type&&"integer"!==e.type&&(r=n(r,`The "max_value" action is not supported on type "${e.type}".`)),e.maximum=t.requirement;break;case"metadata":"string"==typeof t.metadata.title&&(e.title=t.metadata.title),"string"==typeof t.metadata.description&&(e.description=t.metadata.description),Array.isArray(t.metadata.examples)&&(Array.isArray(e.examples)?e.examples=[...e.examples,...t.metadata.examples]:e.examples=t.metadata.examples);break;case"min_entries":e.minProperties=t.requirement;break;case"min_length":"array"===e.type?e.minItems=t.requirement:("string"!==e.type&&(r=n(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.minLength=t.requirement);break;case"min_value":"number"!==e.type&&"integer"!==e.type&&(r=n(r,`The "min_value" action is not supported on type "${e.type}".`)),e.minimum=t.requirement;break;case"multiple_of":e.multipleOf=t.requirement;break;case"non_empty":"array"===e.type?e.minItems=1:("string"!==e.type&&(r=n(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.minLength=1);break;case"regex":t.requirement.flags&&(r=n(r,"RegExp flags are not supported by JSON Schema.")),e.pattern=t.requirement.source;break;case"title":e.title=t.title;break;case"url":e.format="uri";break;case"uuid":e.format="uuid";break;case"value":e.const=t.requirement;break;default:r=n(r,`The "${t.type}" action cannot be converted to JSON Schema.`)}if(a?.overrideAction){let i=a.overrideAction({valibotAction:t,jsonSchema:e,errors:r});if(i)return{...i}}if(r)for(let e of r)s(e,a);return e}(e,c,a)}return e}switch(t.type){case"boolean":e.type="boolean";break;case"null":a?.target==="openapi-3.0"?e.enum=[null]:e.type="null";break;case"number":e.type="number";break;case"string":e.type="string";break;case"array":e.type="array",e.items=p({},t.item,a,r);break;case"tuple":case"tuple_with_rest":case"loose_tuple":case"strict_tuple":if(e.type="array",a?.target==="openapi-3.0"){for(let i of(e.items={anyOf:[]},e.minItems=t.items.length,t.items))e.items.anyOf.push(p({},i,a,r));"tuple_with_rest"===t.type?e.items.anyOf.push(p({},t.rest,a,r)):("strict_tuple"===t.type||"tuple"===t.type)&&(e.maxItems=t.items.length)}else if(a?.target==="draft-2020-12"){for(let i of(e.prefixItems=[],e.minItems=t.items.length,t.items))e.prefixItems.push(p({},i,a,r));"tuple_with_rest"===t.type?e.items=p({},t.rest,a,r):"strict_tuple"===t.type&&(e.items=!1)}else{for(let i of(e.items=[],e.minItems=t.items.length,t.items))e.items.push(p({},i,a,r));"tuple_with_rest"===t.type?e.additionalItems=p({},t.rest,a,r):"strict_tuple"===t.type&&(e.additionalItems=!1)}break;case"object":case"object_with_rest":case"loose_object":case"strict_object":for(let i in e.type="object",e.properties={},e.required=[],t.entries){let n=t.entries[i];e.properties[i]=p({},n,a,r),"exact_optional"!==n.type&&"nullish"!==n.type&&"optional"!==n.type&&e.required.push(i)}"object_with_rest"===t.type?e.additionalProperties=p({},t.rest,a,r):"strict_object"===t.type&&(e.additionalProperties=!1);break;case"record":a?.target==="openapi-3.0"&&"pipe"in t.key&&(m=n(m,'The "record" schema with a schema for the key that contains a "pipe" cannot be converted to JSON Schema.')),"string"!==t.key.type&&(m=n(m,`The "record" schema with the "${t.key.type}" schema for the key cannot be converted to JSON Schema.`)),e.type="object",a?.target!=="openapi-3.0"&&(e.propertyNames=p({},t.key,a,r)),e.additionalProperties=p({},t.value,a,r);break;case"any":case"unknown":break;case"nullable":case"nullish":a?.target==="openapi-3.0"?(Object.assign(e,p({},t.wrapped,a,r)),e.nullable=!0):e.anyOf=[p({},t.wrapped,a,r),{type:"null"}],void 0!==t.default&&(e.default=i.MV7(t));break;case"exact_optional":case"optional":case"undefinedable":e=p(e,t.wrapped,a,r),void 0!==t.default&&(e.default=i.MV7(t));break;case"literal":"boolean"!=typeof t.literal&&"number"!=typeof t.literal&&"string"!=typeof t.literal&&(m=n(m,'The value of the "literal" schema is not JSON compatible.')),a?.target==="openapi-3.0"?e.enum=[t.literal]:e.const=t.literal;break;case"enum":e.enum=t.options;break;case"picklist":t.options.some(e=>"number"!=typeof e&&"string"!=typeof e)&&(m=n(m,'An option of the "picklist" schema is not JSON compatible.')),e.enum=t.options;break;case"union":e.anyOf=t.options.map(e=>p({},e,a,r));break;case"variant":e.oneOf=t.options.map(e=>p({},e,a,r));break;case"intersect":e.allOf=t.options.map(e=>p({},e,a,r));break;case"lazy":{let i=r.getterMap.get(t.getter);i||(i=t.getter(void 0),r.getterMap.set(t.getter,i));let n=r.referenceMap.get(i);if(n||(n=`${o++}`,r.referenceMap.set(i,n),r.definitions[n]=p({},i,a,r,!0)),e.$ref=`#/$defs/${n}`,a?.overrideRef){let t=a.overrideRef({...r,referenceId:n,valibotSchema:i,jsonSchema:e});t&&(e.$ref=t)}break}default:m=n(m,`The "${t.type}" schema cannot be converted to JSON Schema.`)}if(a?.overrideSchema){let i=a.overrideSchema({...r,referenceId:r.referenceMap.get(t),valibotSchema:t,jsonSchema:e,errors:m});if(i)return{...i}}if(m)for(let e of m)s(e,a);return e}function c(e,t){let a={definitions:{},referenceMap:new Map,getterMap:new Map},i=t?.definitions??r;if(i){for(let e in i)a.referenceMap.set(i[e],e);for(let e in i)a.definitions[e]=p({},i[e],t,a,!0)}let n=p({},e,t,a),s=t?.target??"draft-07";
1return"draft-2020-12"===s?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===s&&(n.$schema="http://json-schema.org/draft-07/schema#"),a.referenceMap.size&&(n.$defs=a.definitions),n}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.