PageSourceSearch

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

js textmagic.com collected 2026-09-24 08:31:57 UTC 6,557 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:`20260924-39003-d97a9715`},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]=`301eff47-a9d3-473a-949d-2030f8b413ca`,e._sentryDebugIdIdentifier=`sentry-dbid-301eff47-a9d3-473a-949d-2030f8b413ca`)}catch{}})();import{r as e}from"./DtDTtmXA.js";import{A as t,Ct as n,D as r,E as i,F as a,Ft as o,H as s,L as c,M as l,O as u,Qt as d,Wt as f,dn as p,dt as m,f as h,fn as g,gn as _,it as v,k as y,kt as b,lt as x,ut as S,wt as C,y as w,yt as T,z as E}from"./B_mscWxu.js";import{ym as D}from"./Cf_pgd7T.js";import{Gp as O,Ju as k,Kc as A,Ws as j,ji as M}from"./BmC5PC1V.js";import{a as N}from"./BdV1yl7S.js";import{n as P}from"./WKYXWZrj.js";import{H as F}from"./BGPWR1KF.js";import{t as I}from"./NRYWtru9.js";import{t as L}from"./C7jFNGox.js";import{t as R}from"./B4vX2lwS.js";import{t as z}from"./SVxAzV2Z.js";import{t as B}from"./DY0YULCw.js";s(),b();var V=c({__name:`FieldSelectSearchSenderSettingsSelectedItem`,props:{option:{},smallFont:{type:Boolean},hideBadge:{type:Boolean}},setup(e){let t=e,n=i(()=>t.option.country?.id),r=i(()=>t.option.selectedItemText??t.option.text);return(t,i)=>(v(),u(R,{"show-sender-id-icon":e.option.isSenderId,"country-code":f(n),"additional-data":e.option.additionalData,text:f(r),small:e.smallFont,"icon-image":e.option.iconImage,badge:e.hideBadge?void 0:e.option.badge},null,8,[`show-sender-id-icon`,`country-code`,`additional-data`,`text`,`small`,`icon-image`,`badge`]))}});s(),b();var H=c({components:{TmIcon:D,TmSkeletonSelectSearchSenderSettings:B,SelectSearchSenderSettingsOverrideOption:z,SelectSearchSenderSettingsOption:R,FieldSelectSearch:L,FieldSelectSearchSenderSettingsSelectedItem:V},inheritAttrs:!1,props:{...P,modelValue:{type:String,required:!0},open:{type:Boolean},options:{type:Array,required:!0},size:{type:String},loading:{type:Boolean},errorState:{type:Boolean,default:!1},filterPlaceholder:{type:String},emptyText:{type:String},menuWidth:{type:String},smallFont:{type:Boolean},hideBadgeForSelectedItem:{type:Boolean}},emits:{...F(),"update:show-dropdown":e=>!0,show:()=>!0,hide:()=>!0,focus:e=>!0,blur:e=>!0},setup(e,t){let n=A(),r=k(),a=j(),{emitChangeAndInput:s}=I(e,t),c=o(),l=i(()=>a.getOptionsMap(e.options)),u=i(()=>e.loading||!e.options.length),d=(e,t,n)=>r.filterOption(e,t,n),f=()=>{e.options.find(t=>`value`in t&&t.value===e.modelValue)||t.emit(`update:model-value`,``)};return T(()=>u.value,()=>{f()}),{fieldRef:c,getSelectedItemText:e=>e.selectedItemText??e.text,getCountryCode:e=>e?.id,emitChangeAndInput:s,optionsMap:l,filterOption:d,handleShow:e=>{e?(t.emit(`update:show-dropdown`,!0),t.emit(`show`)):(t.emit(`update:show-dropdown`,!1),t.emit(`hide`))},handleOverrideOptionClick:(e,t)=>{let n=e;n.callback&&n.callback(),t()},focusHandler:e=>{t.emit(`focus`,e)},blurHandler:e=>{t.emit(`blur`,e)},blur:()=>{c.value?.blur?.()},unreachableSelectedItem:e=>{let t;if(t=typeof e==`string`?new M(`Selected option with value="${e}" was not found in optionsMap`):new M(`Selected option has unexpected type "${typeof e}", expected string`),n.logError(t),O)throw t;return!0}}}}),U=e({default:()=>J});s(),d(),h();var W={key:1},G={key:2},K={key:3};function q(e,i,o,s,c,d){let f=S(`field-select-search-sender-settings-selected-item`),h=S(`select-search-sender-settings-option`),b=S(`tm-icon`),T=S(`select-search-sender-settings-override-option`),D=S(`tm-skeleton-select-search-sender-settings`),O=S(`field-select-search`),k=m(`tooltip`);return v(),u(O,{ref:`fieldRef`,"model-value":e.modelValue,open:e.open,options:e.options,"error-state":e.errorState,loading:e.loading,size:e.size,"show-skeleton":``,"is-disabled":e.isDisabled,"is-focused":e.isFocused,"subheader-style":`bold`,"filter-placeholder":e.filterPlaceholder,"filter-function":e.filterOption,class:p(e.$attrs.class),flat:e.flat,transparent:e.transparent,"menu-width":e.menuWidth,"interactive-list-class":`select-search-sender-settings__interactive-list`,"tab-index":e.tabIndex,"is-stateless":e.isStateless,onShow:i[0]||(i[0]=t=>e.handleShow(!0)),onHide:e.handleShow,onFocus:e.focusHandler,onBlur:e.blurHandler,"onUpdate:modelValue":e.emitChangeAndInput},l({"activation-dropdown":n(()=>[x(e.$slots,`activation-dropdown`)]),option:n(({opt:e})=>[r(`div`,{class:p([`d-flex align-center overflow-hidden`,{"select-search-sender-settings-option--error":e.error}])},[a(h,{"show-sender-id-icon":e.isSenderId,"country-code":e.country&&e.country.id,"additional-data":e.additionalData,text:e.text,disabled:e.disabled,"icon-image":e.iconImage,badge:e.badge},null,8,[`show-sender-id-icon`,`country-code`,`additional-data`,`text`,`disabled`,`icon-image`,`badge`]),e.icon?C((v(),u(b,{key:0,class:`ml-1`,name:e.icon},null,8,[`name`])),[[k,{variant:`translate`,disabled:!e.tooltip,keypath:e.tooltip?.keypath,interactive:e.tooltip?.interactive}]]):y(``,!0)],2)]),"override-option":n(({opt:t,focused:n,focusFilter:r})=>[a(T,{class:`px-3`,type:t.type,to:t.to,target:t.openInNewTab?`_blank`:void 0,focused:n,text:t.text,onClick:w(n=>e.handleOverrideOptionClick(t,r),[`stop`])},null,8,[`type`,`to`,`target`,`focused`,`text`,`onClick`])]),"skeleton-list":n(()=>[a(D,{class:`pt-2 px-3`})]),"menu-footer":n(()=>[x(e.$slots,`menu-footer`)]),_:2},[e.$slots[`selected-item`]?{name:`selected-item`,fn:n(t=>[x(e.$slots,`selected-item`,g(E(t)))]),key:`0`}:{name:`selected-item`,fn:n(({opt:n})=>[e.optionsMap[n]?(v(),u(f,{key:0,option:e.optionsMap[n],"small-font":e.smallFont,"hide-badge":e.hideBadgeForSelectedItem},null,8,[`option`,`small-font`,`hide-badge`])):e.loading?(v(),t(`span`,W,_(e.$t(`common.loading`)),1)):e.emptyText?(v(),t(`span`,G,_(e.emptyText),1)):e.unreachableSelectedItem(n)?(v(),t(`span`,K)):y(``,!0)]),key:`1`},e.$slots.error?{name:`error`,fn:n(()=>[x(e.$slots,`error`)]),key:`2`}:void 0]),1032,[`model-value`,`open`,`options`,`error-state`,`loading`,`size`,`is-disabled`,`is-focused`,`filter-placeholder`,`filter-function`,`class`,`flat`,`transparent`,`menu-width`,`tab-index`,`is-stateless`,`onHide`,`onFocus`,`onBlur`,`onUpdate:modelValue`])}var J=N(H,[[`render`,q]]);export{U as n,J as t};
2//# sourceMappingURL=CrS2gS5U.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.