PageSourceSearch

https://app.textmagic.com/assets/BIYw2wuB.js

js textmagic.com collected 2026-10-01 08:45:34 UTC 11,603 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`20261001-39361-126a85bd`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:textmagic-web-app":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2f90e2d0-a9d2-4fa0-95e1-b21c69678024`,e._sentryDebugIdIdentifier=`sentry-dbid-2f90e2d0-a9d2-4fa0-95e1-b21c69678024`)}catch{}})();import{Q as e,Z as t}from"./D1KcagSz.js";import{A as n,At as r,Ct as i,D as a,E as o,F as s,Ft as c,H as l,L as u,M as d,O as f,P as p,Qt as m,R as h,Wt as g,_t as _,dn as v,f as y,fn as b,ft as x,gn as S,it as C,k as w,kt as T,lt as E,m as D,q as O,tt as k,ut as A,y as j,yt as M,z as N}from"./CPzLrubv.js";import{Sp as ee,kp as P}from"./DAD6CFn-.js";import{Gp as F}from"./TmSZSC_3.js";import{a as I}from"./BjAQM_Oc.js";import{n as L}from"./CzXJs3IN.js";import{H as R,J as z,q as B}from"./Ba8ehXid.js";import{t as V}from"./CcI5nlVs.js";import{Ft as te,Gr as H,Lr as ne,pi as U}from"./index_6BOmQYt5.js";import{i as W,n as G,r as K,t as re}from"./DLuxFkgo.js";l(),m(),T(),y();var q={class:`select-search-interactive-list`},J={class:`truncate`},Y=I(u({__name:`SelectSearchInteractiveList`,props:{selectedIndex:{default:-1},showDropdown:{type:Boolean},filterValue:{},filterFieldClass:{default:`px-3 pb-3`},filterPlaceholder:{default:`Search`},filterSize:{default:`medium`},debounce:{},showSkeleton:{type:Boolean},loading:{type:Boolean},subheaderStyle:{default:`bold`},subHeaderClass:{},itemStyle:{default:`regular`},itemClass:{},options:{},optionLabel:{default:B},isDisabledOptions:{type:Boolean,default:!1},isLoadingOptions:{type:Boolean,default:!1},loadMoreItemsHandler:{},isLoadingMorePage:{type:Boolean},isLoadingFirstPage:{type:Boolean},hasSearch:{type:Boolean,default:!0}},emits:[`select`,`update:filter`,`load-more-items`,`create-new-item`],setup(r,{expose:o,emit:l}){let u=l,d=h()?.uid,m=c(),_=c(),y=e=>{if(e.code===P.keyEsc){m.value?.blur();return}e.code===P.keyEnter&&e.preventDefault(),_.value&&_.value.onKeydown(e)},x=e=>u(`update:filter`,e),T=e=>u(`select`,e),D=()=>{m.value?.focus()};return k(async()=>{await F(.1),D()}),o({onKeydown:y}),(o,c)=>{let l=A(`tm-icon`);return C(),n(`div`,q,[o.$slots[`menu-header`]?(C(),n(`div`,{key:0,class:v([`select-search-interactive-list__header`,{"select-search-interactive-list__header--bordered":!r.hasSearch}])},[E(o.$slots,`menu-header`,{},void 0,!0)],2)):w(``,!0),r.hasSearch?(C(),f(U,{key:1,ref_key:`filterEl`,ref:m,class:`select-search-interactive-list__search`,"model-value":r.filterValue,"field-class":r.filterFieldClass,placeholder:r.filterPlaceholder,debounce:r.debounce,size:r.filterSize,autofocus:``,"aria-expanded":r.showDropdown,"aria-controls":`${g(d)}_lb`,role:`combobox`,tabindex:`0`,onClick:c[0]||(c[0]=j(()=>{},[`stop`])),onKeydown:y,"onUpdate:modelValue":x},null,8,[`model-value`,`field-class`,`placeholder`,`debounce`,`size`,`aria-expanded`,`aria-controls`])):w(``,!0),r.showSkeleton&&r.loading?E(o.$slots,`skeleton-list`,{key:2},()=>[s(K,{class:`px-3`})],!0):r.options?.length?(C(),f(H,{key:3,ref_key:`interactiveListEl`,ref:_,"combobox-id":g(d),items:r.options,"initial-index":r.selectedIndex,"load-more-items-handler":r.loadMoreItemsHandler,"is-loading-more":r.isLoadingMorePage,overflow:``,"onUpdate:modelValue":T},{default:i(({opt:e,focused:t})=>[e.subheader?(C(),f(G,{key:0,"class-name":r.subHeaderClass,"subheader-style":r.subheaderStyle,onClick:D},{default:i(()=>[p(S(e.subheader),1)]),_:2},1032,[`class-name`,`subheader-style`])):e.overrideOption?E(o.$slots,`override-option`,b(O({key:1},{opt:e,focused:t,focusFilter:D})),void 0,!0):(C(),f(W,{key:2,"item-style":r.itemStyle,"class-name":r.itemClass,focused:t,disable:e.disabled||r.isDisabledOptions,loading:r.isLoadingOptions||r.isLoadingFirstPage},{default:i(()=>[E(o.$slots,`option`,b(N({opt:e,filterValue:r.filterValue})),()=>[e.icon?(C(),f(l,{key:0,class:`neutral--text`,name:e.icon,left:``},null,8,[`name`])):w(``,!0),a(`span`,J,S(e[r.optionLabel]),1)],!0)]),_:2},1032,[`item-style`,`class-name`,`focused`,`disable`,`loading`]))]),_:3},8,[`combobox-id`,`items`,`initial-index`,`load-more-items-handler`,`is-loading-more`])):(C(),f(e,{key:4,class:`px-3`},{default:i(()=>[s(t,{class:`text-grey`},{default:i(()=>[p(S(o.$t(`common.noResults`)),1)]),_:1})]),_:1})),E(o.$slots,`menu-footer`,{},void 0,!0)])}}}),[[`__scopeId`,`data-v-c65453f7`]]);y(),l(),T(),m();var ie={class:`truncate`},ae={key:0,class:`mt-1 body-text-regular-12 lh-16 distinct--text`},X=u({inheritAttrs:!1,__name:`FieldSelectSearch`,props:{...L,modelValue:{type:[String,Array],required:!0},open:{type:Boolean},options:{type:Array},optionLabel:{type:String,default:B},optionValue:{type:String,default:z},filterPlaceholder:{type:String,default:`Search`},filterFunction:{type:Function,default:(e,t)=>e.subheader||t.test(e.text)},showSkeleton:{type:Boolean},loading:{type:Boolean},offFiltering:{type:Boolean},autofocus:{type:Boolean},size:{type:String},menuMaxHeight:{type:String},subheaderStyle:{type:String,default:`bold`},itemStyle:{type:String,default:`regular`},debounce:{type:Number},isDisabledOptions:{type:Boolean,default:!1},isLoadingOptions:{type:Boolean,default:!1},closeOnContentClick:{type:Boolean,default:!0},closeOnOutsideClick:{type:Boolean,default:!0},errorState:{type:Boolean,default:!1},isLoadingFirstPage:{type:Boolean},isLoadingMorePage:{type:Boolean},notFilter:{type:Boolean},interactiveListClass:{type:String},dropdownPosition:{type:String},multiple:{type:Boolean},menuFit:{type:Boolean,default:!0},menuWidth:{type:String,default:`1px`},hasSearch:{type:Boolean,default:!0},overflowHidden:{type:Boolean,default:!0},useVirtualList:{type:Boolean,default:!1},widthForSmallSize:{type:String,default:`320px`}},emits:{...R(),show:()=>!0,hide:()=>!0,"update:filter":e=>!0,"load-more-items":()=>!0,focus:e=>!0,blur:e=>!0},setup(e,{expose:t,emit:l}){D(t=>({v71498b1e:e.widthForSmallSize}));let{keyEnter:u,keySpace:p,keyDown:m,keyUp:h}=P,y=()=>{let e=[];for(let t=0;t<10;t++)e.push({id:t.toString()});return e},T=e,A=l,j=_(),{emitInput:F}=V(T,A),I=c(),L=c(),R=c(),z=c(),B=c(-1),H=c(!1),U=c(``),W=o(()=>T.useVirtualList?re:Y),G=o(()=>T.options.map(e=>{let t=e.disabled;return`disable`in e&&(t=e.disable),{...e,disabled:t}})),K=o(()=>
1G.value.reduce((e,t,n)=>(e[t[T.optionValue]]={...t,index:n},e),{})),q=e=>{if(T.isDisabled)return;Z(``),H.value=e,A(e?`show`:`hide`);let t=Array.isArray(T.modelValue)?T.modelValue.at(-1):T.modelValue;H.value&&t&&K.value[t]&&(B.value=K.value[t].index)},J=()=>q(!1),X=o(()=>{if(T.isLoadingFirstPage)return y();if(T.notFilter||!U.value)return G.value||[];let e=new RegExp(te(U.value),`i`);return(G.value||[]).filter(t=>T.filterFunction(t,e,U.value)).filter((e,t,n)=>{let r=n[t+1],i=!r?.subheader;return!e.subheader||e.subheader&&r&&i})}),Z=e=>{U.value=e,A(`update:filter`,e)},oe=e=>{if(e.disabled||T.isDisabledOptions||T.isLoadingOptions||T.isLoadingFirstPage)return;T.closeOnContentClick&&!T.multiple&&q(!1);let t=e[T.optionValue];return Array.isArray(T.modelValue)?T.modelValue.find(e=>e===t)?F(T.modelValue.filter(e=>e!==t)):F([...T.modelValue,t]):F(t)},se=e=>{R.value&&!T.useVirtualList&&!T.hasSearch&&R.value.onKeydown(e),[u,p,h,m].includes(e.code)&&q(!0)},ce=()=>{A(`load-more-items`)},le=e=>{A(`focus`,e)},Q=e=>{if(!e)return;let t=e.relatedTarget??e.target;I.value?.contains(t)||t?.closest(`.tm-dropdown`)||A(`blur`,e)},$=()=>!!j[`activation-dropdown`],ue=async()=>{$()||T.closeOnOutsideClick&&q(!1)},de=()=>{$()||q(!0)},fe=()=>{$()&&q(!H.value)};return k(()=>{T.autofocus&&q(!0)}),M(()=>T.open,e=>{e&&q(!0)},{immediate:!0}),M(H,e=>{e||L.value?.hidePopup()}),t({focus:()=>{L.value.focus()},blur:()=>{L.value.hidePopup(),L.value.blur()}}),(t,o)=>(C(),n(`div`,{ref_key:`rootElementRef`,ref:I,class:v([`field-select-search`,{"field-select-search--small":e.size===`small`}])},[a(`div`,{ref_key:`dropdownAnchorEl`,ref:z,class:`field-select-search__control`,onClick:fe},[E(t.$slots,`activation-dropdown`,{},()=>[s(ne,O(t.$attrs,{ref_key:`fieldSelectRef`,ref:L,open:e.open,errors:t.errors,"model-value":e.modelValue,clearable:!1,class:{"q-field--focused":g(H)},placeholder:t.placeholder,autofocus:e.autofocus,size:e.size,"is-disabled":t.isDisabled,"is-focused":t.isFocused,flat:t.flat,transparent:t.transparent,"hide-no-result":``,"error-state":e.errorState,"bottom-slots":e.errorState&&!!t.$slots.error,multiple:e.multiple,"tab-index":t.tabIndex,"is-stateless":t.isStateless,onKeydown:se,onFocus:le,onBlur:Q,onPopupHide:ue,onPopupShow:de}),d({"selected-item":i(({opt:n})=>[E(t.$slots,`selected-item`,{opt:n,option:g(K)[n]},()=>[a(`span`,ie,S(g(K)[n]?.[e.optionLabel]),1)],!0)]),error:i(()=>[E(t.$slots,`error`,{},void 0,!0)]),_:2},[t.$slots.label?{name:`label`,fn:i(()=>[E(t.$slots,`label`,{},void 0,!0)]),key:`0`}:void 0]),1040,[`open`,`errors`,`model-value`,`class`,`placeholder`,`autofocus`,`size`,`is-disabled`,`is-focused`,`flat`,`transparent`,`error-state`,`bottom-slots`,`multiple`,`tab-index`,`is-stateless`])],!0)],512),t.hint?(C(),n(`div`,ae,S(t.hint),1)):w(``,!0),s(ee,{ref:`dropdownEl`,modelValue:g(H),"onUpdate:modelValue":o[0]||(o[0]=e=>r(H)?H.value=e:null),"close-on-content-click":e.closeOnContentClick,"close-on-outside-click":e.closeOnOutsideClick,target:g(z),position:e.dropdownPosition,"hide-dropdown-wrapper":``,"no-parent-event":``,"no-focus-on-show":e.hasSearch,"scrollbar-style":`thumb-with-track-hover`,"max-height":e.menuMaxHeight,"overflow-hidden":e.overflowHidden,width:e.menuWidth,"menu-fit":e.menuFit,onHide:o[1]||(o[1]=e=>t.$emit(`hide`))},{menu:i(()=>[(C(),f(x(g(W)),{ref_key:`listComponentElement`,ref:R,class:v([`flex-grow-1`,[e.interactiveListClass,e.hasSearch||t.$slots[`menu-header`]?`pt-4`:`pt-2`,{"pb-1":!t.$slots[`menu-footer`]}]]),"show-dropdown":g(H),"selected-index":g(B),options:g(X),"option-label":e.optionLabel,loading:e.loading,"show-skeleton":e.showSkeleton,"load-more-items-handler":ce,"is-loading-more-page":e.isLoadingMorePage,"is-loading-first-page":e.isLoadingFirstPage,"is-disabled-options":e.isDisabledOptions,"is-loading-options":e.isLoadingOptions,"filter-value":g(U),"filter-placeholder":e.filterPlaceholder,debounce:e.debounce,"subheader-style":e.subheaderStyle,"item-style":e.itemStyle,"has-search":e.hasSearch,onSelect:oe,"onUpdate:filter":Z},d({"override-option":i(({opt:e,focused:n,focusFilter:r})=>[E(t.$slots,`override-option`,b(N({opt:e,focused:n,focusFilter:r})),void 0,!0)]),option:i(({opt:e})=>[E(t.$slots,`option`,b(N({opt:e,filterValue:g(U),closeDropdown:J})),void 0,!0)]),"menu-footer":i(()=>[E(t.$slots,`menu-footer`,{},void 0,!0)]),"skeleton-list":i(()=>[E(t.$slots,`skeleton-list`,{},void 0,!0)]),_:2},[t.$slots[`menu-header`]?{name:`menu-header`,fn:i(()=>[E(t.$slots,`menu-header`,{},void 0,!0)]),key:`0`}:void 0]),1064,[`class`,`show-dropdown`,`selected-index`,`options`,`option-label`,`loading`,`show-skeleton`,`is-loading-more-page`,`is-loading-first-page`,`is-disabled-options`,`is-loading-options`,`filter-value`,`filter-placeholder`,`debounce`,`subheader-style`,`item-style`,`has-search`]))]),_:3},8,[`modelValue`,`close-on-content-click`,`close-on-outside-click`,`target`,`position`,`no-focus-on-show`,`max-height`,`overflow-hidden`,`width`,`menu-fit`])],2))}}),Z=I(X,[[`__scopeId`,`data-v-5c065c6e`]]);export{Z as t};
2//# sourceMappingURL=BIYw2wuB.js.map

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.