PageSourceSearch

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

js textmagic.com collected 2026-09-24 08:32:35 UTC 19,744 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]=`c6103209-a6a4-40fe-92e9-75d291875015`,e._sentryDebugIdIdentifier=`sentry-dbid-c6103209-a6a4-40fe-92e9-75d291875015`)}catch{}})();import{ct as e,w as t}from"./DLkVZSuR.js";import{A as n,At as r,Bt as i,Ct as a,D as o,E as s,F as c,Ft as l,H as u,J as d,L as f,O as p,P as m,Qt as h,Wt as g,_,ct as v,dn as y,f as b,gn as x,it as S,k as C,kt as w,lt as T,m as E,nt as D,q as O,tt as k,v as ee,vt as A,wt as j,x as M,y as N,yt as P}from"./B_mscWxu.js";import{Nr as te,Pr as F,_f as I,am as L,b as R,gf as z,j as B,kr as V,vf as H,xp as ne,yf as U,ym as re}from"./Cf_pgd7T.js";import{Xn as W,Xo as ie,ep as ae,ji as oe,nl as se}from"./BmC5PC1V.js";import{a as G}from"./BdV1yl7S.js";import{J as K,q}from"./BGPWR1KF.js";import{t as J}from"./DfQOJjQo.js";import{t as ce}from"./D3F14Cl-.js";import{Ct as le,Lr as ue,mi as Y,ti as X}from"./index_Dp5kRkmW.js";import{n as de,t as Z}from"./CyPEAKvW2.js";import{t as fe}from"./DpZme25B.js";import{t as pe}from"./C7jFNGox.js";import{t as me}from"./Dq1cOXXG.js";import{t as he}from"./C9_7OgZ6.js";import{t as ge}from"./DLJ51kOs.js";import{t as _e}from"./Bdfqhf3d.js";function Q(e,t){return ce({name:e.fieldId,modelValue:e.modelValue,reset:()=>t(`update:model-value`,null),validators:e.validators})}u(),w();var ve=f({__name:`FieldCFText`,props:{modelValue:{},isFocused:{type:Boolean},errorState:{type:Boolean},isDisabled:{type:Boolean},fieldId:{},validators:{}},emits:[`update:model-value`,`blur`],setup(e,{expose:t,emit:n}){let r=e,i=n,o=l(),s=e=>{e?i(`update:model-value`,{value:e,fieldType:`text`}):c()},c=()=>{i(`update:model-value`,null)},u=e=>{m.touch(),i(`blur`,e)},d=()=>{o.value?.focus()},f=()=>{o.value?.blur()},{control:m}=Q(r,i);return t({focus:d,blur:f}),(t,n)=>(S(),p(Y,{ref_key:`componentRef`,ref:o,"model-value":e.modelValue?.value??``,clearable:e.isFocused,"is-focused":e.isFocused,"error-state":e.errorState,"is-disabled":e.isDisabled,validators:[],"field-class":`truncate`,"is-stateless":``,"onUpdate:modelValue":s,onClear:c,onBlur:u},{error:a(()=>[T(t.$slots,`error`)]),_:3},8,[`model-value`,`clearable`,`is-focused`,`error-state`,`is-disabled`]))}});u(),w(),b(),h();var ye={key:0},be={key:1},xe=f({__name:`FieldCFNumber`,props:{modelValue:{},flat:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},smallPadding:{type:Boolean,default:!1},placeholder:{default:``},isFocused:{type:Boolean},isDisabled:{type:Boolean},errorState:{type:Boolean},size:{},hideArrows:{type:Boolean},fieldId:{},validators:{}},emits:[`update:model-value`,`focus`,`blur`],setup(e,{expose:t,emit:r}){let i=e,o=r,u=U,d=H,f=l(),m=l(i.isFocused),h=se(),_=s(()=>i.modelValue?h.formatDecimal(i.modelValue.value):``),v=e=>{e===null?b():o(`update:model-value`,{value:e,fieldType:`numeric`})},b=()=>{o(`update:model-value`,null)},x=()=>{m.value=!0,o(`focus`)},w=()=>{D.touch(),m.value=!1,o(`blur`)},E=()=>{f.value?.focus()},{control:D}=Q(i,o);return P(()=>i.isFocused,e=>{m.value=e}),t({focus:E}),(t,r)=>g(m)?(S(),n(`div`,be,[c(Z,{ref_key:`componentRef`,ref:f,autofocus:``,"model-value":e.modelValue?.value,flat:e.flat,transparent:e.transparent,placeholder:e.placeholder,class:y({"tm-field-transparent":e.transparent}),clearable:g(m),"hide-arrows":!g(m),"is-disabled":e.isDisabled,"small-padding":e.smallPadding,size:e.size,"error-state":e.errorState,validators:[],min:g(u),max:g(d),"onUpdate:modelValue":v,onClear:b,onFocus:x,onBlur:N(w,[`stop`])},{error:a(()=>[T(t.$slots,`error`)]),_:3},8,[`model-value`,`flat`,`transparent`,`placeholder`,`class`,`clearable`,`hide-arrows`,`is-disabled`,`small-padding`,`size`,`error-state`,`min`,`max`])])):(S(),n(`div`,ye,[c(Y,{"model-value":g(_),flat:e.flat,transparent:e.transparent,size:e.size,placeholder:e.placeholder,"small-padding":e.smallPadding,class:y({"tm-field-transparent":e.transparent,"tm-field-cf-number--focused":e.isFocused}),"is-disabled":e.isDisabled,onFocus:N(x,[`stop`])},{append:a(()=>[e.isFocused?(S(),p(de,{key:0,size:e.size,disabled:e.isDisabled},null,8,[`size`,`disabled`])):C(``,!0)]),_:1},8,[`model-value`,`flat`,`transparent`,`size`,`placeholder`,`small-padding`,`class`,`is-disabled`])]))}});u(),w(),h(),b();var Se={class:`field-cf-monetary-wrapper`},Ce={class:`field-cf-monetary__row`},we={class:`field-cf-monetary__col field-cf-monetary__col-left`},Te={class:`field-cf-monetary__col field-cf-monetary__col-right`},Ee={key:0,class:`field-cf-monetary__row tm-field-cf-monetary__bottom`},De={key:0,class:`tm-field-cf-monetary--error`},Oe=G(f({__name:`FieldCFMonetary`,props:{modelValue:{},flat:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},smallPadding:{type:Boolean,default:!1},placeholder:{default:``},isFocused:{type:Boolean},isDisabled:{type:Boolean},errorState:{type:Boolean},size:{},fieldId:{},validators:{}},emits:[`update:model-value`,`focus`,`blur`],setup(e,{expose:t,emit:r}){let i=e,a=r,u=A(`focusedNumberField`),f=l(),p=l(i.isFocused),m=
1I,h=z;P(()=>p.value,async e=>{e&&(await d(),u.value?.focus())});let v=Object.values(R).map(e=>({[K]:e,[q]:e})),b=s(()=>i.modelValue?le(i.modelValue.value,i.modelValue.currency):``),x=e=>{if(e===null){E();return}a(`update:model-value`,{value:parseFloat(e.toFixed(2)),currency:i.modelValue?.currency??R.USD,fieldType:`monetary`})},w=e=>{B(e)&&a(`update:model-value`,{currency:e,value:i.modelValue?.value??0,fieldType:`monetary`})},E=()=>{a(`update:model-value`,null)},D=()=>{p.value=!0,a(`focus`)},O=e=>{(e.relatedTarget||e.target).closest(`.field-cf-monetary`)||(ee.touch(),p.value=!1,a(`blur`))},k=()=>{if(p.value){u.value?.focus();return}f.value?.focus()},{control:ee}=Q(i,a);return P(()=>i.isFocused,e=>{p.value=e}),t({focus:k}),(t,r)=>(S(),n(`div`,Se,[j(o(`div`,null,[c(Y,{ref_key:`componentRef`,ref:f,"model-value":g(b),flat:e.flat,transparent:e.transparent,size:e.size,placeholder:e.placeholder,"small-padding":e.smallPadding,class:y({"tm-field-transparent":e.transparent}),"is-disabled":e.isDisabled,validators:[],"field-class":`truncate`,onFocus:D},null,8,[`model-value`,`flat`,`transparent`,`size`,`placeholder`,`small-padding`,`class`,`is-disabled`])],512),[[_,!g(p)]]),j(o(`div`,{class:y([`field-cf-monetary`,{"field-cf-monetary--focused":g(p)}])},[o(`div`,Ce,[o(`div`,we,[c(Z,{ref:`focusedNumberField`,"model-value":e.modelValue?.value,flat:e.flat,transparent:e.transparent,placeholder:e.placeholder,class:y({"tm-field-transparent":e.transparent}),"hide-arrows":!g(p),"is-disabled":e.isDisabled,validators:[],"small-padding":e.smallPadding,clearable:g(p),size:e.size,min:g(m),max:g(h),onClear:E,"onUpdate:modelValue":x,onFocus:D,onBlur:O},null,8,[`model-value`,`flat`,`transparent`,`placeholder`,`class`,`hide-arrows`,`is-disabled`,`small-padding`,`clearable`,`size`,`min`,`max`])]),o(`div`,Te,[c(pe,{"model-value":e.modelValue?.currency??g(R).USD,options:g(v),flat:e.flat,transparent:e.transparent,class:y({"tm-field-transparent":e.transparent}),"is-disabled":e.isDisabled,validators:[],size:e.size,"has-search":g(v).length>6,"onUpdate:modelValue":w,onFocus:D,onBlur:O},null,8,[`model-value`,`options`,`flat`,`transparent`,`class`,`is-disabled`,`size`,`has-search`])])]),e.errorState?(S(),n(`div`,Ee,[e.errorState?(S(),n(`div`,De,[T(t.$slots,`error`,{},void 0,!0)])):C(``,!0)])):C(``,!0)],2),[[_,g(p)]])]))}}),[[`__scopeId`,`data-v-c6899883`]]);u(),w();var ke={key:0,class:`tm-field-cf-date__bottom`},Ae={key:0,class:`tm-field-cf-date--error`},je=G(f({__name:`FieldCFDate`,props:{open:{type:Boolean},modelValue:{},size:{},flat:{type:Boolean},transparent:{type:Boolean},smallPadding:{type:Boolean},placeholder:{},isFocused:{type:Boolean},isDisabled:{type:Boolean},errorState:{type:Boolean},fieldId:{},validators:{},isLastActiveKeyTab:{type:Boolean}},emits:[`update:model-value`,`focus`,`blur`,`try-set-parent-as-focused-element`],setup(e,{expose:t,emit:r}){let i=ie(),a=e,o=r,l=A(`componentRef`),u=s(()=>{if(a.modelValue?.value){let e=V();return i.format(te(i.getDateFromStringFormat(a.modelValue.value,W.DATE_ONLY_FORMAT)),W.ISO_FORMAT_WITH_TIMEZONE,!1,!1,e?.timezone)}}),d=e=>{e===null||e===``?p():o(`update:model-value`,{value:i.format(F(i.toDate(e)),W.DATE_ONLY_FORMAT,!1,!1),fieldType:`date`})},f=s(()=>L()),p=()=>{o(`update:model-value`,null)},m=()=>{y.touch(),(!l.value?.onInputBlur()||a.modelValue===null)&&o(`blur`)},h=()=>{l.value?.focus()},_=()=>{o(`try-set-parent-as-focused-element`)},v=(e,t)=>
1{a.isLastActiveKeyTab?e():t()},{control:y}=Q(a,o);return D(()=>{o(`try-set-parent-as-focused-element`)}),t({focus:h}),(t,r)=>(S(),n(`div`,null,[c(fe,{ref_key:`componentRef`,ref:l,"model-value":g(u),open:e.open,clearable:!0,"is-disabled":e.isDisabled,"is-focused":e.isFocused,size:e.size,flat:e.flat,transparent:e.transparent,placeholder:e.placeholder,"small-padding":e.smallPadding,"error-state":e.errorState,position:g(f),validators:[],"input-keydown-enter-handler":v,"onUpdate:modelValue":d,onClear:p,onFocus:r[0]||(r[0]=e=>t.$emit(`focus`)),onBlur:m,onHide:_},null,8,[`model-value`,`open`,`is-disabled`,`is-focused`,`size`,`flat`,`transparent`,`placeholder`,`small-padding`,`error-state`,`position`]),e.errorState?(S(),n(`div`,ke,[e.errorState?(S(),n(`div`,Ae,[T(t.$slots,`error`,{},void 0,!0)])):C(``,!0)])):C(``,!0)]))}}),[[`__scopeId`,`data-v-d302f420`]]);u(),w(),b(),h();var Me={class:`tm-field-cf-date-time__time-section`},Ne={class:`tm-field-cf-date-time__time-label`},Pe={class:`tm-field-cf-date-time__time-controls`},Fe={key:0,class:`tm-field-cf-date-time__bottom`},Ie={class:`tm-field-cf-date-time--error`},Le=G(f({__name:`FieldCFDateTime`,props:{modelValue:{},size:{},flat:{type:Boolean},transparent:{type:Boolean},smallPadding:{type:Boolean},placeholder:{},isFocused:{type:Boolean},isDisabled:{type:Boolean},errorState:{type:Boolean},fieldId:{},validators:{},is24h:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},isInitWithCurrentDate:{type:Boolean,default:!0}},emits:[`update:model-value`,`focus`,`blur`,`try-set-parent-as-focused-element`],setup(u,{emit:d}){let f=ie(),m=u,h=d,{control:_}=Q(m,h),v=A(`menuElement`),b=e=>{h(`update:model-value`,{value:f.format(e,W.DATE_TIME_FORMAT,!1,!1),fieldType:`dateTime`})},w=e=>f.getDateFromStringFormat(e,W.DATE_TIME_FORMAT),{CALENDAR_MASK:E,AMPM_OPTIONS:O,is24hComputed:j,hoursValue:M,minutesValue:te,ampm:F,displayFormat:I,calendarValue:L,syncFromDate:R,onCalendarUpdate:z,onHoursInput:B,onMinutesInput:V,onHoursKeydown:H,onMinutesKeydown:U,onAmpmUpdate:ae,onHoursIncrement:se,onHoursDecrement:G,onMinutesDecrement:K,onMinutesIncrement:q}=he({is24hProp:i(m,`is24h`),parseValue:w,formatValue:b}),J=l(!!m.isFocused),ce=s(()=>m.modelValue?.value?f.format(w(m.modelValue.value),I.value,!1,!1):``),le=s(()=>m.modelValue?.value?L(w(m.modelValue.value)):null),Y=()=>{J.value=!0},X=()=>{h(`update:model-value`,null)},de=()=>{_.touch(),h(`blur`)},fe=()=>{if(m.modelValue?.value||R(new Date),!v.value)throw new oe(`menuElement.value is null`);v.value.focus()},pe=()=>{h(`try-set-parent-as-focused-element`)};return D(()=>{h(`try-set-parent-as-focused-element`)}),P(()=>m.modelValue,e=>{e?.value&&R(w(e.value))},{immediate:!0}),k(()=>{m.isFocused&&!m.modelValue&&m.isInitWithCurrentDate&&b(new Date)}),P(J,e=>{e||de()}),(i,s)=>(S(),n(`div`,null,[c(ne,{modelValue:g(J),"onUpdate:modelValue":s[2]||(s[2]=e=>r(J)?J.value=e:null),class:`tm-field-cf-date-time__wrap w100pr`,"no-focus":``,"no-refocus":``,"no-parent-event":``,"close-on-content-click":!1,fit:!1,onShow:fe,onHide:pe},{menu:a(()=>[o(`div`,{ref_key:`menuElement`,ref:v,class:`tm-field-cf-date-time__menu`,tabindex:`-1`},[c(t,{"model-value":g(le),class:`tm-field-cf-date-time__calendar`,outlined:``,minimal:``,"first-day-of-week":`1`,mask:g(E),"no-unset":``,"onUpdate:modelValue":g(z)},null,8,[`model-value`,`mask`,`onUpdate:modelValue`]),o(`div`,Me,[o(`div`,Ne,x(i.$t(`customFieldDateTime.time`)),1),o(`div`,Pe,[o(`div`,{class:`tm-field-cf-date-time__time-input`,onKeydown:s[0]||(s[0]=(...e)=>g(H)&&g(H)(...e))},[c(Z,{"model-value":g(M),size:`small`,min:-1,max:g(j)?24:99,integer:``,"force-hide-bottom-slot":``,"handle-arrows":!1,onIncrement:g(se),onDecrement:g(G),"onUpdate:modelValue":g(B)},null,8,[`model-value`,`max`,`onIncrement`,`onDecrement`,`onUpdate:modelValue`])],32),s[3]||(s[3]=o(`div`,{class:`tm-field-cf-date-time__time-separator`},`:`,-1)),o(`div`,{class:`tm-field-cf-date-time__time-input`,onKeydown:s[1]||(s[1]=(...e)=>g(U)&&g(U)(...e))},[c(Z,{"model-value":g(te),size:`small`,min:-1,max:60,integer:``,"pad-zero":``,"force-hide-bottom-slot":``,"handle-arrows":!1,onIncrement:g(q),onDecrement:g(K),"onUpdate:modelValue":g(V)},null,8,[`model-value`,`onIncrement`,`onDecrement`,`onUpdate:modelValue`])],32),g(j)?C(``,!0):(S(),p(ue,{key:0,class:`tm-field-cf-date-time__ampm-select`,"model-value":g(F),options:g(O),size:`small`,clearable:!1,"emit-value":``,"map-options":``,"onUpdate:modelValue":g(ae)},null,8,[`model-value`,`options`,`onUpdate:modelValue`]))])])],512)]),default:a(()=>[c(e,{"model-value":g(ce),outlined:``,dense:``,disable:u.isDisabled,class:y([`tm-field-cf-date-time__input`,{"tm-field-cf-date-time__input--small":u.size===`small`,"tm-field-cf-date-time__input--medium":u.size===`medium`,"tm-field-cf-date-time__input--small-padding":u.smallPadding,"tm-field-cf-date-time__input--flat":u.flat,"tm-field-cf-date-time__input--trans
1parent":u.transparent,"tm-field-cf-date-time__input--error":u.errorState,"tm-field-cf-date-time__input--focused":u.isFocused}]),"input-class":`truncate`,readonly:``,placeholder:u.placeholder,onClick:Y,onKeydown:ee(Y,[`enter`])},{append:a(()=>[u.clearable&&u.modelValue?(S(),p(re,{key:0,name:`cancel`,class:`tm-field-cf-date-time__clear pointer`,onClick:N(X,[`stop`])})):C(``,!0),u.isFocused||!u.transparent?(S(),p(re,{key:1,name:`tmi-calendar-time`,size:`xLarge`,class:`pointer distinct--text`,onClick:N(Y,[`stop`])})):C(``,!0)]),_:1},8,[`model-value`,`disable`,`class`,`placeholder`])]),_:1},8,[`modelValue`]),u.errorState?(S(),n(`div`,Fe,[o(`div`,Ie,[T(i.$slots,`error`,{},void 0,!0)])])):C(``,!0)]))}}),[[`__scopeId`,`data-v-62fadb86`]]);u(),w(),h();var Re=[`title`],ze={key:1},Be={key:0,class:`tm-field-cf-single-option__empty-value`},Ve=[`title`],$=`__none__`,He=G(f({__name:`FieldCFSingleOption`,props:{modelValue:{},options:{},placeholder:{},isFocused:{type:Boolean},isDisabled:{type:Boolean},fieldId:{},validators:{}},emits:[`update:model-value`,`blur`],setup(e,{expose:t,emit:r}){let i=ae(),o=e,c=r,u=l(),d=s(()=>{let e=o.options.map(e=>({[K]:`${e.id}`,[q]:e.value}));return[{[K]:$,[q]:i.t(`customFieldOptionFields.noOptionPlaceholder`)},...e]}),f=s(()=>`${o.modelValue?.value??``}`),m=e=>e&&e.text.length>25?e[q]:void 0,h=e=>{e===$?_():c(`update:model-value`,{value:e,fieldType:`singleOption`})},_=()=>{c(`update:model-value`,null)};P(()=>o.modelValue,async e=>{e&&(new Set(o.options.map(e=>`${e.id}`)).has(`${e.value}`)||_())},{immediate:!0});let v=()=>{u.value?.focus()},b=()=>{C.touch(),c(`blur`)},{control:C}=Q(o,c);return t({focus:v}),(t,r)=>(S(),p(_e,{ref_key:`componentRef`,ref:u,"model-value":g(f),options:g(d),placeholder:e.placeholder,"is-focused":e.isFocused,"is-disabled":e.isDisabled,class:y([`tm-field-cf-single-option`,{"tm-field-cf-single-option--focused":e.isFocused}]),"onUpdate:modelValue":h,onBlur:b},{"selected-item":a(({opt:e})=>[e&&e.value!==$?(S(),n(`span`,{key:0,class:`tm-field-cf-single-option__selected-item`,title:m(e)},x(e.text),9,Re)):(S(),n(`span`,ze))]),option:a(({opt:e})=>[e.value===$?(S(),n(`span`,Be,x(e.text),1)):(S(),n(`span`,{key:1,class:`truncate`,title:m(e)},x(e.text),9,Ve))]),_:1},8,[`model-value`,`options`,`placeholder`,`is-focused`,`is-disabled`,`class`]))}}),[[`__scopeId`,`data-v-ba4ba5ee`]]);b(),u(),w(),h();var Ue={key:1,class:`tm-field-cf-multi-options-preview__placeholder`},We=G(f({__name:`FieldCFMultiOptionsPreview`,props:{values:{},options:{},searchQuery:{},placeholder:{},size:{},disabled:{type:Boolean},noPadding:{type:Boolean}},setup(e){E(e=>({v5ed339dc:g(d)}));let t=e,r=l(null),i=l(null),o=l({}),u=l(0),d=s(()=>w.value>0?`${u.value+10}px`:`0px`),f=s(()=>Object.values(o.value).filter(e=>!!e)),h=s(()=>u.value+28),_=l(!1),{countRef:b}=me(r,f,{offsetX:h}),w=s(()=>t.values.length-(b.value??0)),T=(e,t)=>{o.value[t]=e},O=()=>{i.value&&(u.value=i.value.$el.getBoundingClientRect().width)},k=e=>t.options.find(t=>`${t.id}`==`${e}`)?.value;return P(()=>t.values.length,()=>{o.value={}}),P(i,e=>{O(),e&&e.$el.addEventListener(`resize`,O)}),D(()=>{i.value&&i.value.$el.removeEventListener(`resize`,O)}),(t,o)=>(S(),n(`div`,{ref_key:`previewWrapperRef`,ref:r,class:y([`tm-field-cf-multi-options-preview`,`tm-field-cf-multi-options-preview_${e.size}`,{"tm-field-cf-multi-options-preview_show-all":g(_),"tm-field-cf-multi-options-preview_disabled":e.disabled,"tm-field-cf-multi-options-preview_no-padding":e.noPadding}])},[e.values?.length?(S(),n(M,{key:0},[(S(!0),n(M,null,v(e.values,(t,r)=>(S(),n(M,{key:t},[g(_)||g(b)===void 0||g(b)>=r+1?(S(),p(X,{key:0,ref_for:!0,ref:e=>{e&&T(e.$el,t)},class:`tm-field-cf-multi-options-preview__value`,"search-query":e.searchQuery},{default:a(()=>[c(J,{class:`truncate`,title:k(t),text:k(t),search:e.searchQuery},null,8,[`title`,`text`,`search`])]),_:2},1032,[`search-query`])):C(``,!0)],64))),128)),g(w)>0?(S(),n(M,{key:0},[g(_)?(S(),p(X,{key:1,icon:`expand_less`,tabindex:`-1`,class:`tm-field-cf-multi-options-preview__suffix`,onClick:o[1]||(o[1]=N(e=>_.value=!1,[`prevent`,`stop`]))})):(S(),p(X,{key:0,ref_key:`previewSuffixRef`,ref:i,tabindex:`-1`,class:`tm-field-cf-multi-options-preview__suffix`,onClick:o[0]||(o[0]=N(e=>_.value=!0,[`prevent`,`stop`]))},{default:a(()=>[m(` +`+x(g(w)),1)]),_:1},512))],64)):C(``,!0)],64)):(S(),n(`span`,Ue,x(e.placeholder),1))],2))}}),[[`__scopeId`,`data-v-37e97da5`]]);u(),w();var Ge=f({__name:`FieldCFMultiOptions`,props:{modelValue:{},options:{},previewMode:{type:Boolean},placeholder:{},isDisabled:{type:Boolean},size:{},fieldId:{},validators:{}},emits:[`update:model-value`,`focus`,`blur`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=l(null),o=s(()=>({paddingTop:`10px`,paddingBottom:`10px`})),c=s(()=>r.modelValue?.value.map(e=>`${e}`)??[]),u=s(()=>r.options.map(e=>({[K]:`${e.id}`,[q]:e.value}))),f=e=>
1{e.length?i(`update:model-value`,{value:e,fieldType:`multiOption`}):i(`update:model-value`,null)},m=()=>{_.touch(),i(`blur`)};P(()=>r.modelValue,async e=>{if(!e)return;let t=e.value,n=new Set(r.options.map(e=>`${e.id}`)),i=t.filter(e=>n.has(`${e}`));i.length!==t.length&&f(i)},{immediate:!0});let h=()=>{a.value?.focus()};P(()=>r.previewMode,async e=>{e||(await d(),h())});let{control:_}=Q(r,i);return t({focus:h}),(t,n)=>e.previewMode?(S(),p(We,O({key:0},t.$attrs,{values:g(c),options:e.options,size:e.size,disabled:e.isDisabled,validators:[],placeholder:e.placeholder,onClick:n[0]||(n[0]=e=>i(`focus`))}),null,16,[`values`,`options`,`size`,`disabled`,`placeholder`])):(S(),p(ge,O({key:1,ref_key:`fieldSelectRef`,ref:a,class:`tm-field-cf-multi-options`},t.$attrs,{"model-value":g(c),options:g(u),placeholder:e.placeholder,size:e.size,"is-disabled":e.isDisabled,"q-field-native-style":g(o),"onUpdate:modelValue":f,onBlur:m}),null,16,[`model-value`,`options`,`placeholder`,`size`,`is-disabled`,`q-field-native-style`]))}});export{je as a,ve as c,Le as i,We as n,Oe as o,He as r,xe as s,Ge as t};
2//# sourceMappingURL=BtvA5vHk.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.