PageSourceSearch

https://insights.trendscopes.ai/assets/index-2ada76e2.js

js trendscopes.ai collected 2026-10-05 14:02:05 UTC 7,084 bytes, 1 lines download raw bytes

1import{eC as K,eD as H,cb as Q,r as R,cd as S,d as U,i as J,bp as C,j as r,U as X,V as Y,cj as Z,W as V,cl as ee,cm as re,B,n as G,cz as ae,cn as te,co as se,cp as M,cq as E,p as W,F as ne,c as g,cr as ce,y as D,cs as le,O as oe}from"./main-29867b87.js";import{F as ie,k as _}from"./index-406bb166.js";import{u as de,R as ue,C as me,a as fe,A as he}from"./more-filter-c0c51d46.js";import{F as ve}from"./fashion-industry-category-num-cascader-multi-c67ae195.js";import{A as xe,F as je}from"./goods-851b33da.js";import{g as pe}from"./index-9e7aff73.js";import{G as ye}from"./goods-lf-region-combobox-0cedaf53.js";import{C as ge}from"./category-combobox-0301390b.js";import"./date-22f3f265.js";import{u as be,a as Pe,d as Se}from"./store-ec04b3ad.js";import"./parse-ff393092.js";import"./multi-d1724548.js";import"./range-3d4c9cb5.js";import"./_isIterateeCall-a9d535cf.js";import"./month-combobox-015b8b25.js";import"./data-convert-efd6f964.js";function Ce(s,n){return function(c){return s(n(c))}}var Ae=Ce,Oe=Ae,Le=Oe(Object.getPrototypeOf,Object),Ne=Le,we=K,Fe=Ne,Re=H,Ie="[object Object]",Te=Function.prototype,_e=Object.prototype,q=Te.toString,ke=_e.hasOwnProperty,Me=q.call(Object);function Ee(s){if(!Re(s)||we(s)!=Ie)return!1;var n=Fe(s);if(n===null)return!0;var c=ke.call(n,"constructor")&&n.constructor;return typeof c=="function"&&c instanceof c&&q.call(c)==Me}var De=Ee;const z=pe(De);function $e(s,n){var c,l,i=[],d;Array.isArray(n)?i=n:z(n)&&(i=(c=n==null?void 0:n.defaultSelected)!==null&&c!==void 0?c:i,d=(l=n==null?void 0:n.itemKey)!==null&&l!==void 0?l:d);var f=function(a){return U(d)?d(a):J(d)&&z(a)?a[d]:a},O=Q(R.useState(i),2),b=O[0],h=O[1],o=R.useMemo(function(){var a=new Map;return Array.isArray(b)&&b.forEach(function(F){a.set(f(F),F)}),a},[b]),y=function(a){return o.has(f(a))},x=function(a){o.set(f(a),a),h(Array.from(o.values()))},L=function(a){o.delete(f(a)),h(Array.from(o.values()))},A=function(a){y(a)?L(a):x(a)},N=function(){s.forEach(function(a){o.set(f(a),a)}),h(Array.from(o.values()))},I=function(){s.forEach(function(a){o.delete(f(a))}),h(Array.from(o.values()))},j=R.useMemo(function(){return s.every(function(a){return!o.has(f(a))})},[s,o]),P=R.useMemo(function(){return s.every(function(a){return o.has(f(a))})&&!j},[s,o,j]),w=R.useMemo(function(){return!j&&!P},[j,P]),p=function(){return P?I():N()},T=function(){o.clear(),h([])};return{selected:b,noneSelected:j,allSelected:P,partiallySelected:w,setSelected:h,isSelected:y,select:S(x),unSelect:S(L),toggle:S(A),selectAll:S(N),unSelectAll:S(I),clearAll:S(T),toggleAll:S(p)}}
1function Be({placeholder:s=t("placeholder.season"),columnClassName:n,value:c,onValueChange:l,allowClear:i}){var F;const d=de(),f=d.flatMap(e=>{var u;return((u=e.childrenList)==null?void 0:u.map(m=>({...m,parent:e.actualParam})))||[]}),[O,b]=C.useState(!1),[h,o]=C.useState(d[0]),{selected:y,setSelected:x,toggle:L,isSelected:A}=$e(d.map(e=>e.actualParam)),[N,I]=C.useState(""),j=C.useRef(null),P=C.useMemo(()=>{var u,m;const e=[h];for(;(m=(u=e.at(-1))==null?void 0:u.childrenList)!=null&&m.length;)e.push(e.at(-1).childrenList[0]);return e},[h,d]),w=C.useRef(null),[p,T]=C.useState(!1),a=()=>{if(!w.current)return;const{left:e}=w.current.getBoundingClientRect();window.innerWidth-e<600?T(!0):T(!1)};return r.jsxs(X,{open:O,onOpenChange:e=>{b(e),e&&x(c||[])},children:[r.jsx(Y,{asChild:!0,children:r.jsxs(Z,{canClear:i&&c&&c.length>0,onClear:()=>l==null?void 0:l([]),role:"combobox","aria-expanded":O,ref:w,onClick:()=>a(),children:[s," ",c&&c.length>0?`(${c==null?void 0:c.length})`:null]})}),r.jsx(V,{className:"w-auto p-0",align:p?"end":"start",children:r.jsxs(ee,{children:[r.jsxs("div",{className:"flex items-center gap-2.5 p-3",children:[r.jsx(re,{onValueChange:e=>{I(e),setTimeout(()=>{j.current&&(j.current.scrollTop=0)},50)},value:N,placeholder:"Search..."}),i&&r.jsx(B,{onClick:()=>{x([]),l==null||l([])},variant:"outline",className:"text-muted-foreground-2 hover:text-muted-foreground",children:r.jsx(G,{t:"text.cancel"})}),r.jsx(B,{variant:"accent",disabled:i===!1&&y.length===0,onClick:()=>{ae(c,y)||l==null||l(y),b(!1)},children:r.jsx(G,{t:"text.apply"})})]}),r.jsx(te,{children:t("common.no_data")}),r.jsx(se,{children:N?r.jsx(M,{className:n,ref:j,children:f.map(e=>r.jsxs(E,{keywords:[e.displayName],value:e.actualParam,onSelect:()=>{y.every(u=>{var m;return((m=f.find(v=>v.actualParam===u))==null?void 0:m.parent)===e.parent})?L(e.actualParam):x([e.actualParam])},children:[r.jsx(W,{className:"mr-2",checked:A(e.actualParam)}),r.jsx("label",{children:e.displayName})]},e.actualParam))}):r.jsxs(ne,{className:g(p?"flex-row-reverse":"flex-row"),children:[r.jsx(M,{className:g("border-r first:min-w-52",p?"first::border-r-0":"last:border-r-0",n),children:d==null?void 0:d.map(e=>{var u,m;return r.jsxs(E,{className:g({"bg-accent-select":P.some(v=>v===e&&e.childrenList)}),value:e.actualParam,onSelect:()=>{var v,$;(v=e.childrenList)!=null&&v.every(k=>A(k.actualParam))?x([]):x((($=e.childrenList)==null?void 0:$.map(k=>k.actualParam))||[])},onMouseEnter:()=>{o(e)},children:[r.jsx(ce,{className:g((u=e.childrenList)!=null&&u.some(v=>A(v.actualParam))?"opacity-100":"opacity-0",D("h-4 w-4",{variants:{reverse:{true:"order-1 ml-auto",false:"mr-2"}}})({reverse:p}))}),r.jsx("label",{className:"mr-2 line-clamp-1",children:e.displayName}),r.jsx(le,{className:g((m=e.childrenList)!=null&&m.length?"visible":"hidden",D("h-4 w-4",{variants:{reverse:{true:"-order-1 mr-2 rotate-180",false:"ml-auto"}}})({reverse:p}))})]},e.actualParam)})}),r.jsx(M,{className:g("border-r first:min-w-52",p?"first::border-r-0":"last:border-r-0",n),children:(F=h.childrenList)==null?void 0:F.map(e=>r.jsxs(E,{className:g({"bg-accent-select":P.some(u=>u===e&&e.childrenList)}),value:e.actualParam,onSelect:()=>{y.every(u=>{var m;return(m=h.childrenList)==null?void 0:m.some(v=>v.actualParam===u)})?L(e.actualParam):x([e.actualParam])},children:[r.jsx(W,{wrapClassName:g(D("",{variants:{reverse:{true:"order-1 ml-auto",false:"mr-2"}}})({reverse:p})),checked:A(e.actualParam)}),r.jsx("label",{className:"mr-2 line-clamp-1",children:e.displayName})]},e.actualParam))})]})})]})})]})}function Ge(){var l;const[s,n]=be(),[,c]=Pe();return r.jsx(ie,{value:s,onValueChange:n,children:r.jsxs(ue,{children:[r.jsxs(me,{children:[r.jsx(_,{name:"runwayRegion",children:r.jsx(ye,{})}),r.jsx(_,{name:"rootCategoryId",onValueChange:i=>n({...s,rootCategoryId:i,categoryList:void 0,trendCategory:void 0}),children:r.jsx(ge,{supportedIndustries:[xe,je]})}),r.jsx(_,{name:"categoryList",children:r.jsx(ve,{industry:s.rootCategoryId,params:{...s,industry:s.rootCategoryId,cityList:s.region?[[s.region]]:void 0,categoryList:void 0,seasonColumnList:(l=s.seasons)==null?void 0:l.map(i=>i.split(","))}})}),r.jsx(_,{name:"seasons",children:r.jsx(Be,{allowClear:!1})})]}),r.jsxs("div",{className:"flex justify-end items-center gap-2 border-t mx-8 mt-8 pt-4",children:[r.jsx(fe,{onClear:()=>n(Se)}),r.jsx(he,{apply:()=>c(i=>!i)})]})]})})}function sr(){return r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx(Ge,{}),r.jsx(oe,{})]})}
1export{sr as default};

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.