PageSourceSearch

https://app.superfuel.io/assets/theme-CZ2lX7II.js

js superfuel.io collected 2026-10-04 14:37:58 UTC 10,069 bytes, 11 lines download raw bytes

1import{c as V,a as f}from"./createLucideIcon-C3p9ePf8.js";import{r as d,j as t}from"./components-CVD5VjrI.js";import{B as U}from"./badge-CvZ_FbAd.js";import{I as le}from"./icon-DCS0ur00.js";import{U as ie}from"./user-BmagxPLn.js";import{u as ce}from"./useControlled-Dq0AJwtz.js";import{g as de,h as pe,u as ue,c as fe,o as xe,p as me,q as he,d as H,E as ge,j as ye,v as be,r as we,f as ve,n as ke}from"./useValueChanged-B6WVjUNz.js";import{f as je,a as Ne,b as Ie,u as Se,c as Ce,d as Re}from"./useAriaLabelledBy-D-6QKz77.js";import{u as _e}from"./useLabelableId-DQ_MAEYi.js";/**
2 * @license lucide-react v1.21.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Ee=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Qe=V("moon",Ee);/**
7 * @license lucide-react v1.21.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Me=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Xe=V("sun",Me),T=d.createContext(void 0);function Pe(){const e=d.useContext(T);if(e===void 0)throw new Error(de(63));return e}let q=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const W={...je,checked(e){return e?{[q.checked]:""}:{[q.unchecked]:""}}},Fe=d.forwardRef(function(s,r){const{checked:p,className:u,defaultChecked:m,"aria-labelledby":l,form:i,id:n,inputRef:k,name:b,nativeButton:x=!1,onCheckedChange:h,readOnly:g=!1,required:w=!1,disabled:S=!1,render:Ve,uncheckedValue:_,value:E,style:Ue,...$}=s,{clearErrors:J}=Ne(),{state:M,setTouched:O,setDirty:D,validityData:Y,setFilled:C,setFocused:P,validationMode:G,disabled:Q,name:X,validation:j}=Ie(),{labelId:Z}=Se(),o=Q||S,N=X??b,y=d.useRef(null),A=pe(y,k,j.inputRef),I=d.useRef(null),F=ue(),B=_e({id:n,implicit:!1,controlRef:I}),z=x?void 0:B,[c,ee]=ce({controlled:p,default:!!m,name:"Switch",state:"checked"});Ce(I,F,c,void 0,!o,b),fe(()=>{y.current&&C(y.current.checked)},[y,C]),xe(c,()=>{J(N),D(c!==Y.initialValue),C(c),j.change(c)});const{getButtonProps:te,buttonRef:ae}=me({disabled:o,native:x}),se=Re(l,Z,y,!x,z),re={id:x?B:F,role:"switch","aria-checked":c,"aria-readonly":g||void 0,"aria-required":w||void 0,"aria-labelledby":se,onFocus(){o||P(!0)},onBlur(){const a=y.current;!a||o||(O(!0),P(!1),G==="onBlur"&&j.commit(a.checked))},onClick(a){if(g||o)return;a.preventDefault();const v=y.current;v&&v.dispatchEvent(new(ye(v)).PointerEvent("click",{bubbles:!0,shiftKey:a.shiftKey,ctrlKey:a.ctrlKey,altKey:a.altKey,metaKey:a.metaKey}))}},ne=he({checked:c,disabled:o,form:i,id:z,name:N,required:w,style:N?be:we,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:A,onChange(a){if(a.nativeEvent.defaultPrevented)return;if(g){a.preventDefault();return}const v=a.currentTarget.checked,L=ve(ke,a.nativeEvent);h==null||h(v,L),!L.isCanceled&&ee(v)},onFocus(){var a;(a=I.current)==null||a.focus()}},a=>j.getValidationProps(o,a),E!==void 0?{value:E}:ge),K=d.useMemo(()=>({...M,checked:c,disabled:o,readOnly:g,required:w}),[M,c,o,g,w]),oe=H("span",s,{state:K,ref:[r,I,ae],props:[re,$,te,a=>j.getValidationProps(o,a)],stateAttributesMapping:W});return t.jsxs(T.Provider,{value:K,children:[oe,!c&&N&&_!==void 0&&t.jsx("input",{type:"hidden",form:i,name:N,value:_,disabled:o}),t.jsx("input",{...ne,suppressHydrationWarning:!0})]})}),Be=d.forwardRef(function(s,r){const{render:p,className:u,style:m,...l}=s,i=Pe();return H("span",s,{state:i,ref:r,stateAttributesMapping:W,props:l})}),ze=f("absolute left-1/2 top-1/2 h-[16px] w-[28px] -translate-x-1/2 -translate-y-1/2 roun
11ded-full transition-colors","bg-soft","group-hover:bg-sub group-active:bg-soft","group-data-[force-hover]:bg-sub","group-data-[checked]:bg-primary-base group-data-[checked]:group-hover:bg-primary-dark group-data-[checked]:group-active:bg-primary-base","group-data-[checked]:group-data-[force-hover]:bg-primary-dark","group-data-[disabled]:bg-white group-data-[disabled]:border group-data-[disabled]:border-soft group-data-[disabled]:group-hover:bg-white"),Ke=f("absolute left-[4px] top-[4px] size-[12px] rounded-full bg-white transition-[transform,width,height,top,left,box-shadow]","shadow-[0px_2px_4px_-2px_rgba(27,28,29,0.12)]","group-data-[checked]:translate-x-[12px]","group-active:left-[5px] group-active:top-[5px] group-active:size-[10px]","group-active:group-data-[checked]:left-[5px] group-active:group-data-[checked]:translate-x-[12px]","group-data-[disabled]:shadow-none group-data-[disabled]:bg-white group-data-[disabled]:group-active:size-[10px]"),R=d.forwardRef(({className:e,disabled:s,...r},p)=>t.jsxs(Fe,{ref:p,disabled:s,className:f("group relative inline-flex h-[20px] w-[32px] shrink-0",e),...r,children:[t.jsx("span",{"aria-hidden":!0,className:ze}),t.jsx(Be,{className:Ke})]}));R.displayName="DesignSystemSwitch";const Le=d.forwardRef(({disabled:e,readOnly:s,required:r,label:p,sublabel:u,badgeText:m,description:l,linkText:i,onLinkClick:n,switchPosition:k="left",className:b,...x},h)=>{const g=t.jsx(R,{disabled:e,readOnly:s,required:r,...x}),w=t.jsxs("span",{className:f("flex min-w-0 flex-col",l||i?"gap-[10px]":"gap-0"),children:[t.jsxs("span",{className:"flex min-w-0 flex-wrap items-center gap-[4px]",children:[t.jsx("span",{className:"font-['Inter:Regular',sans-serif] font-normal text-[14px] leading-[20px] tracking-[-0.084px] text-strong whitespace-nowrap",style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:p}),u?t.jsx("span",{className:"font-['Inter:Regular',sans-serif] font-normal text-[12px] leading-[16px] text-soft whitespace-nowrap",style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:u}):null,m?t.jsx(U,{title:m,state:"info",style:"lighter",size:"xs"}):null]}),l?t.jsx("span",{className:"min-w-0 w-full text-[12px] leading-[16px] font-normal text-soft",style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:l}):null,i?t.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),n==null||n()},disabled:e,className:"inline-flex items-center justify-start whitespace-nowrap text-[12px] leading-[16px] font-medium text-primary-base transition-opacity hover:opacity-80 disabled:opacity-60",style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:i}):null]});return t.jsxs("label",{ref:h,className:f("relative inline-flex w-[300px] cursor-pointer select-none gap-[8px]",l?"items-start":"items-center",k==="right"&&"flex-row-reverse justify-between",e&&"cursor-not-allowed opacity-70",b),children:[g,w]})});Le.displayName="DesignSystemSwitchLabel";const qe=d.forwardRef(({label:e,sublabel:s,badgeText:r,description:p,leading:u="none",initials:m,leadingIcon:l,leadingCompany:i,disabled:n,className:k,...b},x)=>{const h=u!=="none";return t.jsxs("label",{ref:x,className:f("relative flex w-[360px] cursor-pointer items-start gap-[14px] overflow-clip rounded-[12px] p-[16px] transition-colors","bg-white border border-soft shadow-[0px_1px_2px_0px_rgba(10,13,20,0.03)]","hover:bg-weak","has-data-checked:border-primary-base",n&&"cursor-not-allowed opacity-60 hover:bg-white",k),children:[h?t.jsx("span",{className:"shrink-0",children:u==="leftIcon"?t.jsx("span",{className:"flex size-[40px] items-center justify-center rounded-full border border-soft bg-white p-[10px] shadow-[0px_1px_2px_0px_rgba(10,13,20,0.03)]",children:l??t.jsx(le,{base:ie,size:"base",className:"text-sub"})}):u==="avatar"?t.jsx("span",{className:"flex size-[40px] items-center justify-center rounded-full bg-sub",children:t.jsx("span",{className:"font-['Inter:Medium',sans-serif] font-medium text-[14px] leading-[20px] tracking-[-0.176px] text-strong",style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:(m??"JB").toUpperCase()})}):u==="company"?i??t.jsx("span",{className:"flex size-[40px] items-center justify-center rounded-full bg-primary-base text-white",children:t.jsx("span",{className:"sr-only",children:"Company"})}):null}):null,t.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-[4px]",children:[t.jsxs("span",{className:"flex flex-wrap items-center gap-[4px]",children:[t.jsx("span",{className:f("font-['Inter:Medium',sans-serif] font-medium text-[14px] leading-[20px] tracking-[-0.084px] whitespace-nowrap",n?"text-soft":"text-strong"),style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:e}),s?t.jsx("span",{className:f("font-['Inter:Regular',sans-serif] font-normal text-[12px] leading-[16
11px] whitespace-nowrap",n?"text-disabled":"text-soft"),style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:s}):null,r?t.jsx(U,{title:r,state:"info",style:n?"stroke":"lighter",size:"xs"}):null]}),p?t.jsx("span",{className:f("min-w-0 w-full text-[12px] leading-[16px] font-normal",n?"text-disabled":"text-soft"),style:{fontFeatureSettings:"'ss11', 'calt' 0, 'liga' 0"},children:p}):null]}),t.jsx(R,{disabled:n,...b})]})});qe.displayName="DesignSystemSwitchCard";function Ze(){var r;if(typeof document>"u")return!1;const s=((r=document.cookie.match(/(?:^|;\s*)theme=(dark|light)/))==null?void 0:r[1])??localStorage.getItem("theme");return s?s==="dark":document.documentElement.classList.contains("dark")}function Ae(e){localStorage.setItem("theme",e);let s="path=/;max-age=31536000;SameSite=Lax";const r=location.hostname;(r==="superfuel.io"||r.endsWith(".superfuel.io"))&&(s+=";domain=.superfuel.io;Secure"),document.cookie=`theme=${e};${s}`}export{Qe as M,Xe as S,R as a,Le as b,qe as c,Ze as g,Ae as p};

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.