PageSourceSearch

https://genixai.ai/chunk-W46FRX72.js

js genixai.ai collected 2026-10-02 01:13:06 UTC 4,986 bytes, 1 lines download raw bytes

1import{a as B}from"./chunk-KUZQDR7T.js";import{Ab as S,Db as T,Eb as b,Fb as m,Na as u,Oa as r,Qb as s,Sb as p,Tb as f,Va as P,Za as E,ba as x,ca as C,cc as _,dc as v,ja as k,jb as M,kb as g,mb as h,na as w,pb as D,qb as O,sa as y,vb as i,wb as a,zb as L}from"./chunk-2FM36RQV.js";var H=(n,d)=>d.value;function z(n,d){n&1&&(i(0,"span",8),p(1,"check"),a())}function A(n,d){if(n&1){let e=L();i(0,"button",6),b("click",function(o){let c=x(e).$implicit,l=m(2);return C(l.pick(c.value,o))}),i(1,"span",7),p(2),_(3,"t"),a(),g(4,z,2,0,"span",8),a()}if(n&2){let e=d.$implicit,t=m(2);s("selected",t.value===e.value),r(2),f(v(3,4,e.label)),r(2),h(t.value===e.value?4:-1)}}function F(n,d){if(n&1&&(i(0,"div",4),D(1,A,5,6,"button",5,H),a()),n&2){let e=m();s("align-right",e.menuAlign==="right")("placement-top",e.menuPlacement==="top"),r(),O(e.options)}}var K=(()=>{class n{constructor(e){this.host=e,this.options=[],this.value=null,this.placeholder="",this.disabled=!1,this.ariaLabel="",this.menuAlign="left",this.menuPlacement="bottom",this.block=!1,this.valueChange=new k,this.open=w(!1)}get blockClass(){return this.block}selectedLabel(){return this.options.find(e=>e.value===this.value)?.label??this.placeholder}toggle(e){e.stopPropagation(),!this.disabled&&this.open.update(t=>!t)}pick(e,t){t.stopPropagation(),this.value=e,this.valueChange.emit(e),this.open.set(!1)}onDocClick(e){this.host.nativeElement.contains(e.target)||this.open.set(!1)}onEscape(){this.open.set(!1)}static{this.\u0275fac=function(t){return new(t||n)(P(y))}}static{this.\u0275cmp=E({type:n,selectors:[["app-dropdown"]],hostVars:2,hostBindings:function(t,o){t&1&&T("click",function(l){return o.onDocClick(l)},u)("keydown.escape",function(){return o.onEscape()},u),t&2&&s("dd-block",o.blockClass)},inputs:{options:"options",value:"value",placeholder:"placeholder",disabled:"disabled",ariaLabel:"ariaLabel",menuAlign:"menuAlign",menuPlacement:"menuPlacement",block:"block"},outputs:{valueChange:"valueChange"},decls:7,vars:8,consts:[["type","button",1,"dd-trigger",3,"click","disabled"],[1,"dd-value"],[1,"material-symbols-rounded","dd-chev"],[1,"dd-menu",3,"align-right","placement-top"],[1,"dd-menu"],["type","button",1,"dd-option",3,"selected"],["type","button",1,"dd-option",3,"click"],[1,"dd-option-label"],[1,"material-symbols-rounded"]],template:function(t,o){t&1&&(i(0,"button",0),b("click",function(l){return o.toggle(l)}),i(1,"span",1),p(2),_(3,"t"),a(),i(4,"span",2),p(5,"expand_more"),a()(),g(6,F,3,4,"div",3)),t&2&&(s("open",o.open()),S("disabled",o.disabled),M("aria-label",o.ariaLabel||null),r(2),f(v(3,6,o.selectedLabel())),r(4),h(o.open()?6:-1))},dependencies:[B],styles:["[_nghost-%COMP%]{position:relative;display:inline-block}.dd-block[_nghost-%COMP%]{display:block}.dd-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:38px;padding:0 12px 0 16px;border:1.5px solid var(--d-border);border-radius:99px;background:var(--d-card);font-family:inherit;font-size:.8rem;color:var(--d-fg);cursor:pointer;outline:none;transition:border-color .18s,box-shadow .18s}.dd-trigger[_ngcontent-%COMP%]:hover:not(:disabled){border-color:color-mix(in oklch,var(--d-primary) 55%,transparent)}.dd-trigger.open[_ngcontent-%COMP%]{border-color:var(--d-primary);box-shadow:0 0 0 3px color-mix(in oklch,var(--d-primary) 18%,transparent)}.dd-trigger[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.dd-value[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1.dd-chev[_ngcontent-%COMP%]{font-size:20px;color:var(--d-muted-fg);flex-shrink:0;transition:transform .18s}.dd-trigger.open[_ngcontent-%COMP%]   .dd-chev[_ngcontent-%COMP%]{transform:rotate(180deg)}.dd-menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--d-popover);border:1px solid var(--d-border);border-radius:16px;box-shadow:0 12px 32px #00000029;padding:6px;z-index:100;max-height:264px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;animation:fadeDown .15s ease}.dd-menu.align-right[_ngcontent-%COMP%]{left:auto;right:0;min-width:100%}.dd-menu.placement-top[_ngcontent-%COMP%]{top:auto;bottom:calc(100% + 6px)}.dd-option[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:9px 14px;border:none;background:transparent;border-radius:99px;font-family:inherit;font-size:.8rem;color:var(--d-fg);cursor:pointer;text-align:left;transition:background .14s,color .14s}.dd-option-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dd-option[_ngcontent-%COMP%]:hover{background:color-mix(in oklch,var(--d-primary) 10%,transparent)}.dd-option.selected[_ngcontent-%COMP%]{color:var(--d-primary);font-weight:600;background:color-mix(in oklch,var(--d-primary) 12%,transparent)}.dd-option[_ngcontent-%COMP%]   .material-symbols-rounded[_ngcontent-%COMP%]{font-size:17px;flex-shrink:0}"],changeDetection:0})}}return n})();export{K as a};

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.