PageSourceSearch

https://portal.chip-in.asia/build/_shared/chunk-TY43B2WU.js

js chip-in.asia collected 2026-09-24 08:52:54 UTC 3,626 bytes, 1 lines download raw bytes

1import{b as g,c as B}from"/build/_shared/chunk-RSV5R2LB.js";import{A as f,a as N}from"/build/_shared/chunk-X4AHNLAR.js";import{d as c}from"/build/_shared/chunk-DTKMK5PW.js";var k=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,L=B,O=(a,o)=>e=>{var u;if(o?.variants==null)return L(a,e?.class,e?.className);let{variants:p,defaultVariants:l}=o,m=Object.keys(p).map(t=>{let d=e?.[t],i=l?.[t];if(d===null)return null;let s=k(d)||k(i);return p[t][s]}),b=e&&Object.entries(e).reduce((t,d)=>{let[i,s]=d;return s===void 0||(t[i]=s),t},{}),v=o==null||(u=o.compoundVariants)===null||u===void 0?void 0:u.reduce((t,d)=>{let{class:i,className:s,...h}=d;return Object.entries(h).every(w=>{let[C,x]=w;return Array.isArray(x)?x.includes({...l,...b}[C]):{...l,...b}[C]===x})?[...t,i,s]:t},[]);return L(a,m,v,e?.class,e?.className)};var S=c(N(),1);var R=c(N(),1),r=c(f(),1),y=(0,R.memo)(({size:a=22})=>(0,r.jsxs)("svg",{className:"animate-spin",width:a,height:a,viewBox:"0 0 200 200",color:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"spinner-secondHalf",children:[(0,r.jsx)("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),(0,r.jsx)("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),(0,r.jsxs)("linearGradient",{id:"spinner-firstHalf",children:[(0,r.jsx)("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),(0,r.jsx)("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),(0,r.jsxs)("g",{strokeWidth:20,children:[(0,r.jsx)("path",{stroke:"url(#spinner-secondHalf)",d:"M 30 100 A 70 70 0 0 1 170 100"}),(0,r.jsx)("path",{stroke:"url(#spinner-firstHalf)",d:"M 170 100 A 70 70 0 0 1 30 100"})]})]}));y.displayName="LoadingSpinner";var n=c(f(),1),V="truncate rounded-lg duration-75 font-semibold flex gap-1 items-center justify-center disabled:opacity-30 sm:focus-visible:ring-focus-blue sm:focus-visible:ring-offset-2 sm:focus-visible:ring-[1.5px] box-border outline-none",$=O("",{variants:{variant:{primary:"bg-primary hover:enabled:bg-primary-light text-white enabled:shadow-dropshadow/button",secondary:"bg-washed text-primary-link hover:enabled:bg-outline",tertiary:"bg-white border border-outline-hover/40 hover:enabled:border-outline-hover max-sm:hover:enabled:bg-neutral-100 active:bg-neutral-100 data-[placeholder]:text-outline-hover disabled:cursor-not-allowed disabled:opacity-100 disabled:text-dim/60 disabled:border-outline-hover/40 bg-clip-padding ease-linear required:invalid:text-outline-hover enabled:shadow-dropshadow/button",transparent:"bg-transparent hover:enabled:bg-washed",danger:"bg-danger text-white",text:""},size:{micro:"max-sm:h-8 h-7 px-2.5 text-xs",small:"max-sm:h-10 h-8 px-3",medium:"max-sm:h-10 h-9 px-3",large:"max-sm:h-[52px] h-11 px-4",icon:"h-10 w-10 aspect-square flex-none",iconSmall:"px-1.5 py-0.5 aspect-square flex-none",text:""}},defaultVariants:{variant:"primary",size:"medium"}}),P=S.default.forwardRef(({className:a,variant:o="primary",size:e="medium",prefix:u,suffix:p,label:l,loading:m=!1,children:b,disabled:v,hideLabelOnMobile:t=!1,mobileLabel:d,mobileSize:i,...s},h)=>(0,n.jsxs)("button",{className:g(V,$({variant:o,size:i||e}),!i&&a),ref:h,...s,disabled:m?!0:v,"data-loading":m,children:[m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y,{}),(0,n.jsx)("span",{className:"hidden","aria-hidden":!0,children:"Loading"})]}),!m&&u&&!t&&u,b||e!=="icon"&&e!=="iconSmall"&&(0,n.jsx)("span",{className:g(t?"max-sm:hidden":"","truncate text-ellipsis overflow-hidden"),children:l||"Button"}),p??""]}));P.displayName="Button";export{O as a,y as b,$ as c,P as d};

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.