PageSourceSearch

https://1wqdhu.life/resources/v1/app/assets/control-DnbWcEGV.js

js 1wqdhu.life collected 2026-10-10 02:38:54 UTC 13,890 bytes, 2 lines download raw bytes

1import{h as p,defineComponent as f,openBlock as o,createElementBlock as a,normalizeClass as s,createVNode as w,unref as u,createElementVNode as r,renderSlot as n,createCommentVNode as i,useCssVars as L,useId as M,computed as $,createBlock as g,createSlots as k,withCtx as y,toDisplayString as v,createTextVNode as E}from"vue";import{I as H,g as I}from"./test-manager-DesYLJOQ.js";import{Z as h}from"./logger-B4OCWT-4.js";import{H as P}from"./hint-C-pjU_97.js";const J={render:(e,t)=>p(H,{...t.attrs,initialWidth:16,initialHeight:16,"data-icon":"close-circle",innerHTML:'<path fill-rule="evenodd" d="M0 8c0-4.412 3.589-8 8-8s8 3.588 8 8c0 4.41-3.59 8-8 8s-8-3.59-8-8m6.48-2.425a.64.64 0 0 0-.905.905L7.095 8l-1.52 1.52a.64.64 0 0 0 .905.905L8 8.905l1.52 1.52a.64.64 0 0 0 .905-.905L8.905 8l1.52-1.52a.64.64 0 0 0-.905-.905L8 7.095z" clip-rule="evenodd"/>'})},Z=["disabled"],A=f({__name:"clear-button",props:{disabled:{type:Boolean}},setup(e){return(t,d)=>(o(),a("button",{class:s(t.$style.root),type:"button",disabled:e.disabled},[w(u(J),{size:"s"})],10,Z))}}),N="clear-button_root-2BxqI",Q={root:N},T={$style:Q},V=h(A,[["__cssModules",T]]),z=f({__name:"field-wrapper",props:{disabled:{type:Boolean},status:{},height:{}},setup(e){return(t,d)=>(o(),a("div",{class:s([t.$style.root,t.$style[`status-${e.status}`]])},[r("div",{class:s([t.$style.control,e.disabled&&t.$style.disabled,e.height==="auto"&&t.$style.autoHeight])},[n(t.$slots,"default")],2),n(t.$slots,"hint"),t.$slots.end?(o(),a("div",{key:0,class:s(t.$style.end)},[n(t.$slots,"end")],2)):i("",!0)],2))}}),D="field-wrapper_root-xSBJ6",F="field-wrapper_end-xSBJ6",W="field-wrapper_disabled-xSBJ6",R="field-wrapper_control-xSBJ6",q="field-wrapper_autoHeight-xSBJ6",U={root:D,end:F,disabled:W,control:R,autoHeight:q,"status-error":"field-wrapper_status-error-xSBJ6","status-success":"field-wrapper_status-success-xSBJ6"},X={$style:U},j=h(z,[["__cssModules",X]]),G=["for"],S="s",K=f({__name:"base-field",props:{disabled:{type:Boolean},testId:{},status:{},label:{},clearable:{type:Boolean},hint:{},errorMessage:{},withDivider:{type:Boolean},filled:{type:Boolean},focused:{type:Boolean},labelRef:{},showHint:{type:Boolean,default:!0},cursor:{default:"text"},verticalAlignStart:{type:Boolean},showStatusWhenFocused:{type:Boolean},height:{}},emits:["clear"],setup(e){L(l=>({f081fb40:l.cursor}));const t=e,d=M(),b=$(()=>t.focused&&!t.showStatusWhenFocused?void 0:t.status),m=$(()=>b.value==="error"?"error":void 0),B=$(()=>b.value==="error"?t.errorMessage??t.hint:t.hint),C=l=>{const c=l.target;t.focused&&!["INPUT","TEXTAREA"].includes(c.tagName)&&l.preventDefault()};return(l,c)=>(o(),g(j,{disabled:e.disabled,status:b.value,class:s([l.$style.root,e.filled&&l.$style.filled,e.focused&&l.$style.focused,e.label&&l.$style.hasLabel]),title:e.label,height:e.height},k({default:y(()=>[r("label",{ref:e.labelRef,class:s([l.$style.content,e.verticalAlignStart&&l.$style.verticalStart]),for:u(d),onMousedown:C},[l.$slots.iconStart?(o(),a("div",{key:0,class:s(l.$style.iconStart)},[n(l.$slots,"iconStart",{iconSize:S})],2)):i("",!0),e.withDivider?(o(),a("div",{key:1,class:s(l.$style.divider)},null,2)):i("",!0),r("div",{class:s(l.$style.control)},[r("div",{class:s(l.$style.controlContent)},[n(l.$slots,"default",{id:u(d)})],2),e.label?(o(),a("div",{key:0,class:s(l.$style.label)},v(e.label),3)):i("",!0)],2),l.$slots.iconEnd||e.clearable?(o(),a("div",{key:2,class:s(l.$style.iconEnd)},[n(l.$slots,"iconEnd",{iconSize:S}),e.clearable?(o(),g(V,{key:0,disabled:!e.filled,"data-testid":u(I)("clear",e.testId),onClick:c[0]||(c[0]=Se=>l.$emit("clear"))},null,8,["disabled","data-testid"])):i("",!0)],2)):i("",!0)],42,G)]),_:2},[e.showHint&&B.value?{name:"hint",fn:y(()=>[w(P,{variant:m.value,hint:B.value,"test-id":e.testId},null,8,["variant","hint","test-id"])]),key:"0"}:void 0,l.$slots.end?{name:"end",fn:y(()=>[n(l.$slots,"end")]),key:"1"}:void 0]),1032,["disabled","status","class","title","height"]))}}),O="base-field_root-ttxw4",Y="base-field_label-ttxw4",x="base-field_control-ttxw4",_="base-field_controlContent-ttxw4",ee="base-field_hasLabel-ttxw4",te="base-field_focused-ttxw4",le="base-field_filled-ttxw4",se="base-field_iconStart-ttxw4",oe="base-field_iconEnd-ttxw4",ae="base-field_divider-ttxw4",ne="base-field_content-ttxw4",ie="base-field_verticalStart-ttxw4",de="base-field_alignCenter-ttxw4",re={root:O,label:Y,control:x,controlContent:_,hasLabel:ee,focused:te,filled:le,iconStart:se,iconEnd:oe,divider:ae,content:ne,verticalStart:ie,alignCenter:de},ce={$style:re},Le=h(K,[["__cssModules",ce]]),ue=f({__name:"control",props:{value:{},patternPlaceholder:{},hasLabel:{type:Boolean},alignCenter:{type:Boolean}},setup(e){return(t,d)=>(o(),a("div",{class:s([t.$style.root,!!e.value&&t.$style.filled,e.hasLabel&&t.$style.hasLabel,e.alignCenter&&t.$style.alignCenter])},[n(t.$slots,"default"),e.patternPlaceholder?(o(),a("div",{key:0,class:s(t.$style.placeholder)},[r("span",{class:s(t.$style.hiddenPlaceholder)},v(e.value?.replaceAll(" "," ")),3),E(v(e.patternPlaceholder.substring(e.value?.length||0).replaceAll(" "," ")),1)],2)):i("",!0)],2))}}),fe="control_placeholder-5SZBQ",he="control_hiddenPlaceholder-5SZBQ",be="control_root-5SZBQ",$e="control_alignCenter-5SZBQ",ye="control_hasLabel-5SZBQ",ve="control_filled-5SZBQ",Be={placeholder:fe,hiddenPlaceholder:he,root:be,alignCenter:$e,hasLabel:ye,filled:ve},ge={$style:Be},Me=h(ue,[["__cssModules",ge]]);export{Le as B,J as C,Me as a};
2(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.clear-button_root-2BxqI{color:var(--color-content-base-tertiary);cursor:pointer;background-color:#0000;justify-content:center;align-items:center;padding:0;transition:opacity .1s;display:flex}.clear-button_root-2BxqI[disabled]{opacity:0;pointer-events:none}.field-wrapper_root-xSBJ6{gap:var(--spacing-4);flex-direction:column;width:100%;display:flex}.field-wrapper_end-xSBJ6{margin-top:var(--spacing-4)}.field-wrapper_disabled-xSBJ6{opacity:var(--opacity-item-disabled);pointer-events:none}.field-wrapper_control-xSBJ6{height:var(--size-control-xl);border:var(--border-s) solid transparent;
2border-radius:var(--input-rounding);background-color:var(--input-color-bg-default);align-items:center;transition:border-color .1s,opacity .1s;display:flex;position:relative}.field-wrapper_control-xSBJ6:after{border-style:solid;border-width:1px;border-color:var(--input-color-bg-border);border-radius:inherit;content:"";pointer-events:none;position:absolute;inset:-1px}@supports (-webkit-mask-composite:xor) or (mask-composite:exclude){.field-wrapper_control-xSBJ6:after{background:var(--input-color-bg-border-grad,var(--input-color-bg-border));-webkit-mask-composite:xor;border:none;padding:1px;-webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}}.field-wrapper_control-xSBJ6.field-wrapper_autoHeight-xSBJ6{height:auto;min-height:var(--size-control-xl)}.field-wrapper_control-xSBJ6:hover{background-color:var(--input-color-bg-hover)}.field-wrapper_control-xSBJ6:active{background-color:var(--input-color-bg-hover);opacity:var(--opacity-item-active)}.field-wrapper_status-error-xSBJ6 .field-wrapper_control-xSBJ6{border-color:var(--color-solid-sentiment-negative-default);box-shadow:unset}:is(.field-wrapper_status-error-xSBJ6 .field-wrapper_control-xSBJ6):after{display:none}.field-wrapper_status-success-xSBJ6 .field-wrapper_control-xSBJ6{border-color:var(--color-solid-sentiment-positive-default);box-shadow:unset}:is(.field-wrapper_status-success-xSBJ6 .field-wrapper_control-xSBJ6):after{display:none}.field-wrapper_root-xSBJ6:not(.field-wrapper_status-error-xSBJ6) .field-wrapper_control-xSBJ6:has(:focus-visible){border-color:var(--focus-border)}:is(.field-wrapper_root-xSBJ6:not(.field-wrapper_status-error-xSBJ6) .field-wrapper_control-xSBJ6:has(:focus-visible)):after{display:none}@supports not selector(:has(:focus-visible)){.field-wrapper_root-xSBJ6:not(.field-wrapper_status-error-xSBJ6) .field-wrapper_control-xSBJ6:focus-within{border-color:var(--focus-border)}:is(.field-wrapper_root-xSBJ6:not(.field-wrapper_status-error-xSBJ6) .field-wrapper_control-xSBJ6:focus-within):after{display:none}}.base-field_root-ttxw4{--base-field__padding:var(--spacing-8) var(--spacing-16)}.base-field_label-ttxw4{pointer-events:none;text-overflow:ellipsis;transform-origin:0 100%;-webkit-user-select:none;user-select:none;white-space:nowrap;max-width:100%;font-family:var(--font-body-font-family);font-size:var(--font-body-regular-font-size);font-weight:var(--font-body-regular-font-weight);letter-spacing:var(--font-body-regular-letter-spacing);line-height:var(--font-body-regular-line-height);transition:transform .1s cubic-bezier(.4,0,.2,1);position:absolute;inset-block-start:3px;overflow:hidden}.base-field_control-ttxw4{flex-grow:1;align-items:center;height:100%;display:flex;position:relative}.base-field_controlContent-ttxw4{width:100%}:is(.base-field_root-ttxw4.base-field_hasLabel-ttxw4.base-field_focused-ttxw4,.base-field_root-ttxw4.base-field_hasLabel-ttxw4.base-field_filled-ttxw4) .base-field_label-ttxw4{transform:scale(.72)translateY(-17px)}:is(.base-field_root-ttxw4.base-field_hasLabel-ttxw4.base-field_focused-ttxw4,.base-field_root-ttxw4.base-field_hasLabel-ttxw4.base-field_filled-ttxw4) .base-field_controlContent-ttxw4{transform:translateY(7px)}.base-field_iconStart-ttxw4,.base-field_iconEnd-ttxw4{height:min-content;color:var(--color-content-base-tertiary);align-items:stretch;gap:var(--spacing-12);display:flex}.base-field_divider-ttxw4{width:1px;height:var(--spacing-16);background-color:var(--color-border-base-alfa-divider)}.base-field_content-ttxw4{height:100%;padding:var(--base-field__padding);color:var(--color-content-base-secondary);cursor:var(--f081fb40);align-items:center;gap:var(--spacing-12);flex-grow:1;display:flex}.base-field_content-ttxw4.base-field_verticalStart-ttxw4{align-items:flex-start}.base-field_content-ttxw4.base-field_verticalStart-ttxw4 .base-field_iconStart-ttxw4,.base-field_content-ttxw4.base-field_verticalStart-ttxw4 .base-field_iconEnd-ttxw4{padding-block-start:var(--spacing-2)}.base-field_alignCenter-ttxw4 .base-field_content-ttxw4{justify-content:center;padding:0}.control_placeholder-5SZBQ{width:100%;height:100%;color:var(--color-content-base-secondary);pointer-events:none;white-space:nowrap;font-family:var(--font-body-font-family);font-size:var(--font-body-regular-font-size);
2font-weight:var(--font-body-regular-font-weight);letter-spacing:var(--font-body-regular-letter-spacing);line-height:var(--font-body-regular-line-height);align-items:center;display:flex;position:absolute;overflow:hidden}.control_hiddenPlaceholder-5SZBQ{color:#0000}.control_root-5SZBQ{width:100%;min-height:20px;display:flex;position:relative}.control_root-5SZBQ input{position:absolute}.control_root-5SZBQ textarea{resize:none;max-height:174px}.control_root-5SZBQ input,.control_root-5SZBQ textarea{font-family:var(--font-body-font-family);font-size:var(--font-body-regular-font-size);font-weight:var(--font-body-regular-font-weight);letter-spacing:var(--font-body-regular-letter-spacing);line-height:var(--font-body-regular-line-height);border:var(--border-none);width:100%;caret-color:var(--focus-fg);color:var(--color-content-base-primary);font-family:var(--font-body-font-family);font-feature-settings:"case" on;background-color:#0000;padding:0}:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea)::placeholder{color:var(--color-content-base-secondary);transition:color .1s,opacity .1s}:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea):focus,:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea):active{outline:none}:is(:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea):focus,:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea):active)~.control_placeholder-5SZBQ,:is(:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea):focus,:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea):active)::placeholder{opacity:var(--opacity-item-disabled)}.control_alignCenter-5SZBQ:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea) input,.control_alignCenter-5SZBQ:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea) textarea{text-align:center}:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea)::-webkit-search-decoration{appearance:none}:is(.control_root-5SZBQ input,.control_root-5SZBQ textarea)::-webkit-search-cancel-button{appearance:none}.control_root-5SZBQ.control_hasLabel-5SZBQ input::-webkit-credentials-auto-fill-button{transform:translateY(-7px)}.control_root-5SZBQ.control_hasLabel-5SZBQ textarea::-webkit-credentials-auto-fill-button{transform:translateY(-7px)}:is(.control_root-5SZBQ.control_hasLabel-5SZBQ input:not(:focus),.control_root-5SZBQ.control_hasLabel-5SZBQ textarea:not(:focus))::placeholder{color:#0000}:is(.control_root-5SZBQ.control_hasLabel-5SZBQ input:not(:focus),.control_root-5SZBQ.control_hasLabel-5SZBQ textarea:not(:focus))+.control_placeholder-5SZBQ{display:none}:is(.control_root-5SZBQ.control_hasLabel-5SZBQ.control_filled-5SZBQ input,.control_root-5SZBQ.control_hasLabel-5SZBQ.control_filled-5SZBQ textarea,.control_root-5SZBQ.control_hasLabel-5SZBQ input:focus,.control_root-5SZBQ.control_hasLabel-5SZBQ textarea:focus)~.control_placeholder-5SZBQ{display:flex}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();

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.