| Current Path : /var/www/homesaver/www/bitrix/js/ui/vue3/components/rich-loc/dist/ |
| Current File : /var/www/homesaver/www/bitrix/js/ui/vue3/components/rich-loc/dist/rich-loc.bundle.min.js |
this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};this.BX.UI.Vue3=this.BX.UI.Vue3||{};(function(t,e,n){"use strict";const i=t=>String(t).replaceAll(/[\\^$*+?.()|[\]{}]/g,"\\$&");function s(t){const e=`${t.slice(0,1)}/${t.slice(1)}`;return new RegExp(`${i(t)}.*?${i(e)}`,"gmi")}function c(t,e){const n=(Array.isArray(e)?[...e]:[e]).flatMap((e=>[...t.matchAll(s(e))].map((t=>({index:t.index,placeholder:e,template:t[0]})))));if(n.length>1){n.sort(((t,e)=>t.index-e.index))}return n}function l(t,e){return t.slice(e.length,t.length-e.length-1)}function o(t,n,i){const s=[];let c=0;for(const o of n){if(o.index>c){s.push(t.slice(c,o.index));c=o.index}if(o.index===c){const t=o.placeholder;const n=t.slice(1,-1);if(e.Type.isFunction(i.slots[n])){s.push(i.slots[n]({text:l(o.template,t)}))}c+=o.template.length}}if(c<t.length){s.push(t.slice(c))}return s}function r(t,e){const i=c(t.text,t.placeholder);const s=o(t.text,i,e);return n.h(t.tag||"div",{...e.attrs},s)}const h=["text","placeholder","tag"];r.props=h;t.RichLoc=r})(this.BX.UI.Vue3.Components=this.BX.UI.Vue3.Components||{},BX,BX.Vue3);
//# sourceMappingURL=rich-loc.bundle.map.js