1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Cqm4V8nj.js","./B0Z9INg1.js","./CB5-eA5X.js","./DIs47Bu1.js","./D-g7Qx7p.js","./BQpMFI2t.js","./IWdLy2RQ.js","./CpGqhs4Q.js","./DC1376r_.js","./DNnrF5Vr.js","./CJQ8nj8y.js","./DK2X3B4V.js","./DOJMSN2f.js","./DXz3NCaH.js","./rqsZAQa3.js","./DbZS7guw.js","./CgcImUzp.js","./DSPOfPkl.js","./B01tAdpj.js","./_y03iwcl.js","./lD-y08w-.js","./auGkZwkN.js","./DHZeu7WS.js","./dUxCMWiY.js","./B-LHD64o.js","./entry.iDg4HLXH.css","./CMCgLPNn.js","./UiModal.BirmT4wR.css"])))=>i.map(i=>d[i]); 2import{$t as e,C as t,Et as n,I as r,J as i,L as ee,Pt as a,R as o,S as s,Z as c,b as l,d as u,dt as d,f,h as p,ht as te,m,mt as h,ot as ne,p as g,r as _,rn as v,s as re,x as y,xt as b}from"./CB5-eA5X.js";import{d as x,l as ie,t as ae}from"./DIs47Bu1.js";import{l as S}from"./DNnrF5Vr.js";import{t as oe}from"./BxvlFwtD.js";import{t as se}from"./B01tAdpj.js";import{t as C}from"./_y03iwcl.js";import{L as w,s as ce,w as T}from"#entry";import{t as le}from"./DUIhvRT2.js";import{t as ue}from"./DqtGymlf.js";var de=s(()=>w(()=>import(`./Cqm4V8nj.js`).then(e=>e.n).then(e=>e.default||e),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url)),fe={key:0,class:`input-select__icon`},pe=[`value`,`placeholder`,`disabled`],me={key:0,class:`input-select__options-search`},he=[`onClick`],ge={class:`d-flex align-center ga-1 flex-wrap`},E={key:1,class:`input-select__options-item-subtext`},D=[`onClick`],O={key:2,class:`input-select__options-item`},k={key:1,class:`input-select__error`},A={key:2,class:`input-select__hint`},j={class:`modal-base-header`},M=[`onClick`],N={class:`modal-base-content`},P={class:`input-select__options`},F={key:0,class:`input-select__options-search`},I=[`onClick`],L={class:`d-flex align-center ga-1 flex-wrap`},_e={key:1,class:`input-select__options-item-subtext`},ve=[`onClick`],ye={key:1,class:`input-select__options-item`},R=Object.assign(t({__name:`UiSelect`,props:r({inputValue:{default:`id`},inputText:{default:`name`},inputSubText:{},inputIcon:{default:`icon`},options:{},returnObject:{type:Boolean},label:{},hideLabel:{type:Boolean},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},required:{type:Boolean},multiple:{type:Boolean},addNewItemMode:{type:Boolean},addNewItemText:{},addNewItemFast:{type:Boolean},editItemsMode:{type:Boolean},hideNoDataText:{type:Boolean},noDataText:{default:`ÐаÑианÑÑ Ð¾ÑÑÑÑÑÑвÑÑÑ`},icon:{},searchable:{type:Boolean},hint:{},error:{},withoutPreloader:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:r([`blur`,`add-new-item`,`edit`],[`update:modelValue`]),setup(t,{emit:r}){let s=t,w=ne(t,`modelValue`),R=r,z=n(!1),B=n(!1),V=n(``),H=n(null),U=n(null),{isLoading:be,screenWidth:W}=S(se()),{authUser:G}=S(C()),K=u(()=>{if(w.value!==``&&w.value!==void 0){if(s.multiple){let e=w.value,t=s.options.filter(t=>s.returnObject?e.find(e=>t[s.inputValue]===e[s.inputValue]):e.find(e=>t[s.inputValue]===e));return t.length?t.map(e=>e[s.inputText]).join(`, `):e.length?`ÐнаÑение не найдено`:``}{let e=!s.returnObject||!w.value?w.value:w.value[s.inputValue],t=s.options.find(t=>t[s.inputValue]===e);return t?t[s.inputText]:w.value===null?``:`ÐнаÑение не найдено`}}return``}),q=u(()=>{if(!s.multiple){let e=!s.returnObject||!w.value?w.value:w.value[s.inputValue],t=s.options.find(t=>t[s.inputValue]===e);if(t)return t[s.inputIcon]}return``}),J=u(()=>s.searchable&&V.value?s.options.filter(e=>`${e[s.inputText]}`.toLowerCase().includes(V.value.toLowerCase())):s.options);d(()=>B.value,async e=>{if(!(!H.value||W.value<=991)){if(e){let e=document.documentElement.scrollHeight,t=H.value.getBoundingClientRect().top+H.value.clientHeight+scrollY;await o(),t+U.value.clientHeight>e&&(U.value.style.position=`fixed`,U.value.style.width=H.value.clientWidth+`px`,U.value.style.bottom=`16px`,U.value.style.top=`auto`,U.value.style.borderRadius=`16px`,U.value.style.paddingTop=`0`,U.value.style.zIndex=`10`)}else setTimeout(()=>{U.value&&(U.value.style.position=``,U.value.style.width=``,U.value.style.bottom=``,U.value.style.top=``,U.value.style.paddingTop=``,U.value.style.borderRadius=``,U.value.style.zIndex=``)},400)}}),ce(document,`click`,e=>{xe(e)});function Y(e){let t=s.returnObject?e:e[s.inputValue];if(!s.multiple)w.value=t,Q();else if(Array.isArray(w.value)){let e=w.value.find(e=>T(e,t));e?w.value=w.value.filter(t=>t!==e):w.value=[...w.value,t]}}function X(e){return s.returnObject?w.value.find(t=>T(t,e)):w.value.find(t=>t===e[s.inputValue])}function Z(){!s.readonly&&!s.disabled&&(!s.addNewItemFast||s.options.length?B.value?Q():(B.value=!0,z.value=!0):R(`add-new-item`))}async function Q(){await o(),B.value=!1,R(`blur`),setTimeout(()=>{z.value=!1},150)}function xe(e){let t=e.target;H.value&&!H.value.contains(t)&&B.value&&Q()}function $(e,t){if(s.multiple&&w.value&&Array.isArray(w.value)){let n=w.value.find(t=>t===(s.returnObject?e:e[s.inputValue])),r=w.value.find(e=>e===(s.returnObject?t:t[s.inputValue]));if(n&&!r)return-1;if(!n&&r)return 1;if(n&&r)return 0}return 0}return(n,r)=>{let o=oe,s=ue,u=de,d=le;return t.withoutPreloader||!a(be)?(i(),p(`div`,ee({key:0,ref_key:`
2input`,ref:H,class:[`input-select-wrap`,{"input-select-wrap--with-icon":t.icon||a(q),"is-focused":a(z),disabled:t.disabled,"error-item":t.error}]},n.$attrs),[t.label&&!t.hideLabel?(i(),p(`label`,{key:0,class:e([`input-select__label`,{"input-select__label--is-top":a(K)}]),onClick:x(Z,[`prevent`])},v(t.label),3)):m(``,!0),f(`div`,{class:e([`input-select__input-block`,{"input-select__input-block--required":t.required}])},[t.icon||a(q)?(i(),p(`div`,fe,[a(q)?(i(),g(o,{key:0,icon:a(q),color:`#868FAC`},null,8,[`icon`])):t.icon?(i(),g(o,{key:1,icon:t.icon,color:`#868FAC`},null,8,[`icon`])):m(``,!0)])):m(``,!0),f(`input`,{type:`text`,class:`input-select__input`,value:a(K),readonly:``,placeholder:t.placeholder,disabled:t.disabled,onFocus:r[0]||=e=>z.value=!0,onClick:x(Z,[`prevent`])},null,40,pe),f(`div`,{class:e([`input-select__arrow`,{rotate:a(B)}])},[y(o,{icon:`arrow-dropdown`,color:`#958fb1`})],2),y(ae,{name:`fade`},{default:h(()=>[a(W)>991?te((i(),p(`div`,{key:0,ref_key:`dropdown`,ref:U,class:`input-select__options hidden-tablet`,onTouchstart:r[3]||=x(()=>{},[`stop`])},[t.addNewItemMode?(i(),p(`div`,{key:0,class:`input-select__options-item input-select__options-item-add-option`,onClick:r[1]||=e=>R(`add-new-item`)},[l(v(t.addNewItemText||`ÐобавиÑÑ`)+` `,1),r[8]||=f(`svg`,{width:`20`,height:`20`,viewBox:`0 0 26 26`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[f(`path`,{d:`M13.0002 12.9997H8.3335M13.0002 8.33301V12.9997V8.33301ZM13.0002 12.9997V17.6663V12.9997ZM13.0002 12.9997H17.6668H13.0002Z`,stroke:`#6E6CAD`,"stroke-width":`2`,"stroke-linecap":`round`}),f(`path`,{d:`M13.0002 24.6663C19.4435 24.6663 24.6668 19.443 24.6668 12.9997C24.6668 6.55635 19.4435 1.33301 13.0002 1.33301C6.55684 1.33301 1.3335 6.55635 1.3335 12.9997C1.3335 19.443 6.55684 24.6663 13.0002 24.6663Z`,stroke:`#6E6CAD`,"stroke-width":`2`})],-1)])):m(``,!0),t.options.length?(i(),p(_,{key:1},[t.searchable?(i(),p(`div`,me,[y(s,{modelValue:a(V),"onUpdate:modelValue":r[2]||=e=>b(V)?V.value=e:null,placeholder:`ÐоиÑк`,"left-icon":`search`,clearable:``,"without-preloader":``},null,8,[`modelValue`])])):m(``,!0),(i(!0),p(_,null,c(a(J).slice().sort($),n=>(i(),p(`div`,{key:n[t.inputValue],class:e([`input-select__options-item`,{active:!t.returnObject||!w.value?n[t.inputValue]===w.value:n[t.inputValue]===w.value[t.inputValue],editable:t.editItemsMode}]),onClick:e=>Y(n)},[t.multiple?(i(),p(`div`,{key:0,class:e([`input-select__options-item__multiple-checkbox`,{"is-active":X(n)}])},[y(o,{icon:`check`,size:`16`,color:`#fff`})],2)):m(``,!0),f(`div`,ge,[n[t.inputIcon]?(i(),g(o,{key:0,icon:n[t.inputIcon],size:`20`,color:`#958fb1`},null,8,[`icon`])):m(``,!0),l(` `+v(n[t.inputText])+` `,1),t.inputSubText&&n[t.inputSubText]?(i(),p(`div`,E,v(n[t.inputSubText]),1)):m(``,!0)]),t.editItemsMode&&n[t.inputValue]&&a(G)?.phone!==n[t.inputValue]?(i(),p(`button`,{key:1,type:`button`,class:`input-select__options-item-edit-btn`,onClick:x(e=>R(`edit`,n),[`stop`])},[...r[9]||=[f(`svg`,{width:`23`,height:`26`,viewBox:`0 0 23 26`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[f(`path`,{d:`M15.7889 6.31748L17.8186 8.52269L15.7889 6.31748ZM17.0941 4.37477L11.6058 10.3404C11.3222 10.6482 11.1288 11.0404 11.0499 11.4675L10.543 14.2258L13.0806 13.6737C13.4736 13.5883 13.8339 13.3789 14.1176 13.0706L19.6059 7.10498C19.7709 6.92571 19.9017 6.71289 19.9909 6.47866C20.0802 6.24444 20.1261 5.9934 20.1261 5.73987C20.1261 5.48635 20.0802 5.23531 19.9909 5.00109C19.9017 4.76686 19.7709 4.55404 19.6059 4.37477C19.441 4.1955 19.2452 4.0533 19.0297 3.95628C18.8142 3.85926 18.5833 3.80933 18.35 3.80933C18.1168 3.80933 17.8858 3.85926 17.6703 3.95628C17.4549 4.0533 17.2591 4.1955 17.0941 4.37477V4.37477Z`,stroke:`#6E6CAD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),f(`path`,{d:`M18.209 16.3092V19.4342C18.209 19.9868 18.007 20.5167 17.6476 20.9074C17.2882 21.2981 16.8006 21.5176 16.2923 21.5176H5.75065C5.24232 21.5176 4.75481 21.2981 4.39536 20.9074C4.03592 20.5167 3.83398 19.9868 3.83398 19.4342V7.97591C3.83398 7.42338 4.03592 6.89347 4.39536 6.50277C4.75481 6.11207 5.24232 5.89258 5.75065 5.89258H8.62565`,stroke:`#6E6CAD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]],8,D)):m(``,!0)],10,he))),128))],64)):t.hideNoDataText?m(``,!0):(i(),p(`div`,O,v(t.noDataText),1))],544)),[[ie,a(B)]]):m(``,!0)]),_:1})],2),t.error?(i(),p(`div`,k,v(t.error),1)):m(``,!0),t.hint&&!t.error?(i(),p(`div`,A,v(t.hint),1)):m(``,!0),a(W)<=991?(i(),g(re,{key:3,to:`body`},[y(u,{modelValue:a(B),"onUpdate:modelValue":[r[6]||=e=>b(B)?B.value=e:null,r[7]||=e=>e?void 0:Q()],class:`hidden-pc`},{header:h(({close:e})=>[f(`div`,j,[f(`span`,null,v(t.placeholder||t.label||``),1),f(`button`,{class:`modal-base-btn`,onClick:t=>e()},[y(o,{icon:`close-modal`,color:`#958FB1`})],8,M)])]),content:h(()=>[f(`div`,N,[f(`div`,P,[t.options.length?(i(),p(_,{key:0},[t.searchable?(i(),p(`div`,F,[y(s,{modelValue:a(V),"onUpdate:modelValue":r[4]||=e=>b(V)?V.value=e:null,placeholder:`ÐоиÑк`,"left-icon":`search`,clearable:``,"without-preloader":``},null,8,[`modelValue`])])):m(``,!0),(i(!0),p(_,null,c(a(J).slice().sort($),n=>(i(),p(`div`,{key:n[t.inputValue],class:e([`input-select__options-item`,{active:!t.returnObject||!w.value?n[t.inputValue]===w.value:n[t.inputValue]===w.value[t.inputValue],editable:t.editItemsMode}]),onClick:e=>Y(n)},[t.multiple?(i(),p(`div`,{key:0,class:e([`input-select__options-item__multiple-checkbox`,{"is-active":X(n)}])},[y(o,{icon:`check`,size:`16`,color:`#fff`})],2)):m(``,!0),f(`div`,L,[n[t.inputIcon]?(i(),g(o,{key:0,icon:n[t.inputIcon],size:`20`,color:`#958fb1`},null,8,[`icon`])):m(``,!0),l(` `+v(n[t.inputText])+` `,1),t.inputSubText&&n[t.inputSubText]?(i(),p(`div`,_e,v(n[t.inputSubText]),1)):m(``,!0)]),t.editItemsMode&&n[t.inputValue]&&a(G)?.phone!==n[t.inputValue]?(i(),p(`button`,{key:1,type:`button`,class:`input-select__options-item-edit-btn`,onClick:x(e=>R(`edit`,n),[`stop`])},[...r[10]||=[f(`svg`,{width:`23`,height:`26`,viewBox:`0 0 23 26`,f
2ill:`none`,xmlns:`http://www.w3.org/2000/svg`},[f(`path`,{d:`M15.7889 6.31748L17.8186 8.52269L15.7889 6.31748ZM17.0941 4.37477L11.6058 10.3404C11.3222 10.6482 11.1288 11.0404 11.0499 11.4675L10.543 14.2258L13.0806 13.6737C13.4736 13.5883 13.8339 13.3789 14.1176 13.0706L19.6059 7.10498C19.7709 6.92571 19.9017 6.71289 19.9909 6.47866C20.0802 6.24444 20.1261 5.9934 20.1261 5.73987C20.1261 5.48635 20.0802 5.23531 19.9909 5.00109C19.9017 4.76686 19.7709 4.55404 19.6059 4.37477C19.441 4.1955 19.2452 4.0533 19.0297 3.95628C18.8142 3.85926 18.5833 3.80933 18.35 3.80933C18.1168 3.80933 17.8858 3.85926 17.6703 3.95628C17.4549 4.0533 17.2591 4.1955 17.0941 4.37477V4.37477Z`,stroke:`#6E6CAD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),f(`path`,{d:`M18.209 16.3092V19.4342C18.209 19.9868 18.007 20.5167 17.6476 20.9074C17.2882 21.2981 16.8006 21.5176 16.2923 21.5176H5.75065C5.24232 21.5176 4.75481 21.2981 4.39536 20.9074C4.03592 20.5167 3.83398 19.9868 3.83398 19.4342V7.97591C3.83398 7.42338 4.03592 6.89347 4.39536 6.50277C4.75481 6.11207 5.24232 5.89258 5.75065 5.89258H8.62565`,stroke:`#6E6CAD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]],8,ve)):m(``,!0)],10,I))),128))],64)):t.hideNoDataText?m(``,!0):(i(),p(`div`,ye,v(t.noDataText),1)),t.addNewItemMode?(i(),p(`div`,{key:2,class:`input-select__options-item input-select__options-item-add-option`,onClick:r[5]||=e=>R(`add-new-item`)},[l(v(t.addNewItemText||`ÐобавиÑÑ`)+` `,1),r[11]||=f(`svg`,{width:`20`,height:`20`,viewBox:`0 0 26 26`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[f(`path`,{d:`M13.0002 12.9997H8.3335M13.0002 8.33301V12.9997V8.33301ZM13.0002 12.9997V17.6663V12.9997ZM13.0002 12.9997H17.6668H13.0002Z`,stroke:`#6E6CAD`,"stroke-width":`2`,"stroke-linecap":`round`}),f(`path`,{d:`M13.0002 24.6663C19.4435 24.6663 24.6668 19.443 24.6668 12.9997C24.6668 6.55635 19.4435 1.33301 13.0002 1.33301C6.55684 1.33301 1.3335 6.55635 1.3335 12.9997C1.3335 19.443 6.55684 24.6663 13.0002 24.6663Z`,stroke:`#6E6CAD`,"stroke-width":`2`})],-1)])):m(``,!0)])])]),_:1},8,[`modelValue`])])):m(``,!0)],16)):(i(),g(d,{key:1,width:`100%`,height:`48px`}))}}}),{__name:`UiSelect`});export{R as 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.