@elcrm/telegram 0.0.172 → 0.0.173

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2106,7 +2106,7 @@ const dn = ({ style: t = "default", theme: r }) => {
2106
2106
  r ? (X.setHeaderColor(C[r]["--tg-theme-bg-color"]), X.setBackgroundColor(C[r]["--tg-theme-bg-color"]), document.documentElement.setAttribute(
2107
2107
  "data-color-scheme",
2108
2108
  r
2109
- ), C[r]["--tg-theme-bg-color-alpha"] = C[r]["--tg-theme-bg-color"] + "b3", C[r]["--tg-theme-secondary-bg-color-alpha"] = C[r]["--tg-theme-secondary-bg-color"] + "d3", C[r]["--tg-theme-bg-color-alpha-25"] = C[r]["--tg-theme-bg-color"] + "40", C[r]["--tg-theme-secondary-bg-color-alpha-25"] = C[r]["--tg-theme-secondary-bg-color"] + "40") : (document.documentElement.style.setProperty(
2109
+ ), document.documentElement.setAttribute("data-style", t), C[r]["--tg-theme-bg-color-alpha"] = C[r]["--tg-theme-bg-color"] + "b3", C[r]["--tg-theme-secondary-bg-color-alpha"] = C[r]["--tg-theme-secondary-bg-color"] + "d3", C[r]["--tg-theme-bg-color-alpha-25"] = C[r]["--tg-theme-bg-color"] + "40", C[r]["--tg-theme-secondary-bg-color-alpha-25"] = C[r]["--tg-theme-secondary-bg-color"] + "40") : (document.documentElement.style.setProperty(
2110
2110
  "--tg-theme-secondary-bg-color-alpha",
2111
2111
  X.themeParams.secondary_bg_color + "d3"
2112
2112
  ), document.documentElement.style.setProperty(
package/dist/index.umd.js CHANGED
@@ -57,4 +57,4 @@ Check the top-level render call using <`+n+">.")}return o}}function et(e,o){{if(
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,ke,I,Wt,I),rt[I+ke]=!0}}return e===s?Yt(R):Dt(R),R}}function Ut(e,o,n){return at(e,o,n,!0)}function Lt(e,o,n){return at(e,o,n,!1)}var Ft=Lt,qt=Ut;it.Fragment=s,it.jsx=Ft,it.jsxs=qt}()),it}process.env.NODE_ENV==="production"?wr():kr();const Sr="0.0.46",ar={version:Sr},ee={},D={module:"",v:ar.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function X(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}X().elcrm||(X().elcrm={}),Object.assign(X().elcrm,{router:ar.version});function Z(t){var r,a,s,i;const c=X();if(c.ROUTER_PARAMS){t.debug||c.ROUTER_PARAMS.debug;const d={page:(r=c.ROUTER_PARAMS)==null?void 0:r.page,module:(a=c.ROUTER_PARAMS)==null?void 0:a.module,tab:(s=c.ROUTER_PARAMS)==null?void 0:s.tab,id:(i=c.ROUTER_PARAMS)==null?void 0:i.id};c.ROUTER_PARAMS={...c.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};c.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return X().ROUTER_PARAMS||D}function ge(t){const r=X();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(a=>{r.ROUTER_PARAMS.LISTENER[a]||(r.ROUTER_PARAMS.LISTENER[a]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[a])||(r.ROUTER_PARAMS.LISTENER[a]=[r.ROUTER_PARAMS.LISTENER[a]]),r.ROUTER_PARAMS.LISTENER[a].includes(t[a])||r.ROUTER_PARAMS.LISTENER[a].push(t[a])})}function V(){var t;const r=X();let a=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return a||(a={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=a:D.LISTENER=a),new Proxy(a,{get(s,i){const c=s[i];return Array.isArray(c)&&c.length>0?(...d)=>{c.forEach(g=>{if(typeof g=="function")try{g(...d)}catch{}})}:c==null?()=>{}:typeof c=="function"?c:()=>{}}})}function or(t,r){const a=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[s,i]of Object.entries(r))if(s.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===a)return i;return null}function pt(t){const{basePath:r=".",devExtensions:a=[".tsx",".ts",".jsx",".js"],prodExtension:s=".js"}=t||{};return i=>{const c=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function Er(t){const{basePath:r=".",modules:a,pages:s}=t||{};return i=>{if(a){const d=or(i,a);if(d)return d()}if(s){const d=or(i,s);if(d)return d()}const c=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function nr(t=".",r,a){return r||a?Er({basePath:t,modules:r,pages:a}):pt({basePath:t})}function Rr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=le.deCode(r),!r)return!1;Z({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else Z({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function gt(){return A().tab}function lr(){return A().id}function jr(t){let r=i=>(Z({page:i}),i);const[a,s]=y.useState(ir()||t&&r(t)||A().page);return y.useEffect(()=>{const i=c=>{s(c)};return ge({page:i}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.page){const u=g.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(u)){const p=u.indexOf(i);p>-1&&u.splice(p,1)}}}},[]),a}function Ar(t,r=!0,a={}){Z({page:t,...a}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().page(t)}function $r(t){return A().page===t}function zr(){return A().prev}function Or(t,r){const[a,s]=y.useState(sr()||t||A().module);return y.useEffect(()=>(ge({module:s}),()=>{const i=V();i.module===s&&delete i.module}),[]),a}function Cr(t,r=!0){Z({module:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().module(t)}function Pr(t){return A().module===t}function Tr(t,r){if(typeof t!="function"){const[a,s]=y.useState(!r),[i,c]=y.useState(t||gt());return ge({tabs:c}),r&&y.useEffect(()=>{s(!0)},[]),[i,a]}else ge({tabs:t})}function Mr(t){let r=i=>(Z({tab:i}),i);const[a,s]=y.useState(gt()||t&&r(t)||A().tab);return y.useEffect(()=>{const i=c=>{s(c)};return ge({tabs:i}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.tabs){const u=g.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(u)){const p=u.indexOf(i);p>-1&&u.splice(p,1)}}}},[]),a}async function Br(t,r=!0){Z({tab:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&(V().tabs&&V().tabs(t))}function Nr(t){return A().tab===t}function Ir(t){if(typeof t!="function"){const[r,a]=y.useState(t||lr());return y.useEffect(()=>{const s=i=>{a(i)};return ge({id:s}),()=>{const i=V();i.id===s&&delete i.id}},[]),r}else y.useEffect(()=>(ge({id:t}),()=>{var r,a;const s=X();if((a=(r=s.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&a.id){const i=s.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(i)){const c=i.indexOf(t);c>-1&&i.splice(c,1)}}}),[t])}function Dr(t){}async function Yr(t,r=!0){Z({id:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().id(t)}function Ur(t){return Number(A().id)===t}async function Lr(t){var r,a,s,i,c,d,g,u;const{page:p,module:_,tab:h,id:k}=t;p!==void 0&&(ee.page=p),_!==void 0&&(ee.module=_),h!==void 0&&(ee.tab=h),k!==void 0&&(ee.id=k),Z({...ee}),k!==void 0&&((a=(r=V()).id)==null||a.call(r,k)),h!==void 0&&((i=(s=V()).tabs)==null||i.call(s,h)),_!==void 0&&((d=(c=V()).module)==null||d.call(c,_)),p!==void 0&&((u=(g=V()).page)==null||u.call(g,p)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}const Ee={Reset(){ee.id=0,ee.tab="",ee.page=A().page,ee.module=A().module},Default({module:t=A().module,page:r=A().page,auth:a=A().auth,debug:s=A().debug,dir:i=A().dir||".",importModules:c,modules:d,pages:g,glob:u}){let p=c,_=d,h=g;u?(_=typeof d=="object"?d:u,h=typeof g=="object"?g:u):(_=_||u,h=h||u),!p&&(_||h)?!u&&(typeof _=="string"||typeof h=="string")?p=pt({basePath:i}):p=nr(i,_,h):p||(p=pt({basePath:i})),Z({page:r,module:t,auth:a,debug:s,dir:i,importModules:p}),Rr()},createImportModules:nr,getImportModules:()=>A().importModules,usePage:jr,setPage:Ar,getPage:ir,isPage:$r,getBack:zr,useModule:Or,setModule:Cr,getModule:sr,isModule:Pr,useTabs:Tr,useTab:Mr,setTabs:Br,getTabs:gt,isTabs:Nr,useId:Ir,subId:Dr,setId:Yr,getId:lr,isId:Ur,navigate:Lr},ce={n:"_n_wzw51_1",i:"_i_wzw51_11",closing:"_closing_wzw51_51",t:"_t_wzw51_58",e:"_e_wzw51_62",s:"_s_wzw51_65",w:"_w_wzw51_68",h:"_h_wzw51_71"};let st={};function Fr(){const[t,r]=y.useState([]);return st.set=a=>{r([...t,a])},st.del=a=>{t.forEach((s,i)=>{s.key===a&&t.splice(i,1)}),r(t)},t.length===0?l.jsx(l.Fragment,{}):l.jsx("div",{className:ce.n,children:t.map(a=>a.item)})}function qr(t){let r=new Date().getTime();t.key=r,st.set({item:l.jsx(Wr,{data:t},r),key:r})}function Wr(t){const r=t.data;let[a]=y.useState("show"),[s,i]=y.useState(!1),[c,d]=y.useState(!1);const g=()=>{d(!0),setTimeout(()=>{i(!0),st.del(r.key)},300)};y.useEffect(()=>{const _=setTimeout(()=>{g()},5e3);return()=>{clearTimeout(_)}},[r.key]);let u;switch(r.type){case"error":u=l.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":u=l.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":u=l.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:u="icon fa fa-exclamation-circle";break}const p={error:ce.e,success:ce.s,warning:ce.w};return l.jsx(l.Fragment,{children:s?l.jsx(l.Fragment,{}):l.jsxs("div",{className:Y(ce.i,p[r.type],r.thema!==void 0?ce.h:"",c&&ce.closing),"data-status":a,onClick:g,children:[l.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",viewBox:"0 0 24 24",children:u}),l.jsxs("span",{className:ce.t,children:[r.title&&l.jsx("b",{children:r.title}),r.text&&l.jsx("p",{children:r.text})]})]})})}let be={Send:qr,Init:Fr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},q={is:!1,MainButton:{},BackButton:{},styled:"default"};let C={};C.dark={"--tg-color-scheme":"dark","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#3e88f7","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-section-bg-color":"#2c2c2e","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-bottom-bar-bg-color":"#1d1d1d"},C.light={"--tg-color-scheme":"light","--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},C.users={"--tg-color-scheme":"users","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const Vr=({style:t="default",theme:r})=>{if(location.hostname==="localhost"){let[a,s]=y.useState(!1),[i,c]=y.useState(!1),[d,g]=y.useState(r||"dark"),[u,p]=y.useState(!1),[_,h]=y.useState(!1);q.is=!0,q.MainButton.set=s,q.BackButton.set=c,q.styled=t,y.useEffect(()=>{var $;C[d]["--tg-theme-bg-color-alpha"]=C[d]["--tg-theme-bg-color"]+"b3",C[d]["--tg-theme-secondary-bg-color-alpha"]=C[d]["--tg-theme-secondary-bg-color"]+"d3",C[d]["--tg-theme-bg-color-alpha-25"]=C[d]["--tg-theme-bg-color"]+"40",C[d]["--tg-theme-secondary-bg-color-alpha-25"]=C[d]["--tg-theme-secondary-bg-color"]+"40";for(let H in C[d])document.documentElement.style.setProperty(H,C[d][H]);document.documentElement.setAttribute("data-color-scheme",C[d]["--tg-color-scheme"]),document.documentElement.setAttribute("data-style",t),document.documentElement.style.setProperty("--tg-content-safe-area-inset-top","0px"),(($=W.safeAreaInset)==null?void 0:$.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):W.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let k=$=>{for(let H in C[$])document.documentElement.style.setProperty(H,C[$][H]),document.documentElement.setAttribute("data-color-scheme",$);g($),p(!1)},S=()=>{p(!1),h(!0)};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:ue.d,children:[i===!1?l.jsx("div",{className:ue.b,children:"Отмена"}):l.jsx("div",{onClick:()=>{var $;i.page===void 0?($=i.callback)==null||$.call(i):Ee.setPage(i.page)},className:ue.b,children:"Назад"}),l.jsx("div",{className:ue.o,onClick:()=>p(!u),children:"Меню"})]}),l.jsx(be.Init,{}),a&&l.jsx("div",{className:ue.m,children:l.jsx("button",{onClick:()=>{a.page&&Ee.setPage(a.page),a.callback&&a.callback()},children:a.text})}),u?l.jsxs("div",{className:ue.t,children:[l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("button",{onClick:S,children:"Authorization"})}),l.jsx("li",{})]}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("button",{children:"Thema"}),l.jsxs("ol",{children:[l.jsx("li",{children:l.jsx("button",{onClick:()=>k("dark"),children:"Dark"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("light"),children:"Light"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("users"),children:"Users"})})]})]}),l.jsx("li",{children:l.jsx("button",{onClick:()=>p(!u),children:"Closed"})})]})]}):"",_?l.jsx(Hr,{setAuthorization:h}):""]})}else return q.styled=t,y.useEffect(()=>{var a;r?(W.setHeaderColor(C[r]["--tg-theme-bg-color"]),W.setBackgroundColor(C[r]["--tg-theme-bg-color"]),document.documentElement.setAttribute("data-color-scheme",r),C[r]["--tg-theme-bg-color-alpha"]=C[r]["--tg-theme-bg-color"]+"b3",C[r]["--tg-theme-secondary-bg-color-alpha"]=C[r]["--tg-theme-secondary-bg-color"]+"d3",C[r]["--tg-theme-bg-color-alpha-25"]=C[r]["--tg-theme-bg-color"]+"40",C[r]["--tg-theme-secondary-bg-color-alpha-25"]=C[r]["--tg-theme-secondary-bg-color"]+"40"):(document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",W.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",W.themeParams.bg_color+"b3"),((a=W.safeAreaInset)==null?void 0:a.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):W.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"),document.documentElement.setAttribute("data-color-scheme",W.colorScheme),document.documentElement.setAttribute("data-style",t))},[]),l.jsx(l.Fragment,{children:l.jsx(be.Init,{})})},Hr=({setAuthorization:t})=>{let r={},a=()=>{localStorage.setItem("auth",r)};return l.jsx("div",{className:ue.a,children:l.jsxs("div",{className:ue.v,children:[l.jsx("fieldset",{}),l.jsx("div",{onClick:a,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Kr=({className:t,children:r,isScroll:a=!0})=>l.jsx("div",{className:[cr.p,a&&cr.s,t].filter(s=>s!==void 0).join(" "),children:r}),Jr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>l.jsx("div",{className:[Jr.l,r].filter(a=>a!==void 0).join(" "),children:t}),fe={q:"_q_z5mg9_2",m:"_m_z5mg9_8",g:"_g_z5mg9_15",i:"_i_z5mg9_23",c:"_c_z5mg9_40",l:"_l_z5mg9_47",a:"_a_z5mg9_62",n:"_n_z5mg9_68"},Xr=({items:t})=>{const r=s=>{Ee.setPage(s)},a=s=>{W.openTelegramLink(s)};return l.jsx("div",{className:Y(fe[q.styled==="liquid-glass"?"q":""],fe.m),children:t.map(s=>l.jsx("div",{className:fe.g,children:s.items.map((i,c)=>l.jsxs("div",{className:fe.i,onClick:()=>{i.link&&a(i.link),i.page&&r(i.page),i.callback&&i.callback()},children:[l.jsxs("div",{className:fe.c,children:[l.jsx("span",{className:fe.l,style:{background:i.color},children:i.icon}),i.title,i.count&&l.jsx("span",{className:fe.n,children:i.count})]}),l.jsx("span",{className:fe.a,children:"›"})]},c))},s.id))})},te={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},lt={};function Zr({children:t,icon:r,iconBadge:a=0,title:s,className:i,view:c="list",position:d="left",id:g="default"}){const[u,p]=y.useState(!1),[_,h]=y.useState(null);y.useEffect(()=>{let S=document.querySelector(".p_sb");return S||(S=document.createElement("div"),S.className="_p_sb",document.body.appendChild(S)),h(S),lt[g]=$=>p($),()=>{S&&S.parentNode&&S.parentNode.removeChild(S)}},[]);const k=l.jsxs(l.Fragment,{children:[u&&l.jsx("div",{className:te.o,onClick:()=>p(!1)}),l.jsxs("div",{className:Y(te.m,d==="left"?te.l:te.r,u&&te.x,i),children:[l.jsxs("div",{className:te.h,children:[s&&l.jsx("h3",{className:te.t,children:s}),l.jsxs("svg",{onClick:()=>p(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[l.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),l.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),l.jsx("div",{className:te.c,children:c==="list"?l.jsx("ul",{className:te.u,children:t}):t})]})]});return l.jsxs(l.Fragment,{children:[r&&l.jsx("div",{onClick:()=>p(!0),className:"bage","data-count":a,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var a;(a=lt[t])==null||a.call(lt,r)},Oe={h:"_h_1mg30_2",r:"_r_1mg30_32",c:"_c_1mg30_35",b:"_b_1mg30_55",draw:"_draw_1mg30_1",a:"_a_1mg30_111",scaleToggleVar:"_scaleToggleVar_1mg30_1"},ea={b:"_b_r6m8n_1"},ta=({className:t,value:r})=>l.jsx("div",{className:[ea.b,t].filter(a=>a!==void 0).join(" "),children:r}),ur=(t,r)=>t.findIndex(a=>(a==null?void 0:a.page)===r),ra=({after:t,before:r,actions:a,children:s,className:i,actual:c,page:d,onPageChange:g,direction:u="row"})=>{const[p,_]=y.useState(null),h=y.useRef(null),[k,S]=y.useState(d?ur(a||[],d):0),[$,H]=y.useState("right"),re=y.useRef(k);y.useEffect(()=>{if(d){const pe=ur(a||[],d);pe!==-1&&pe!==re.current&&(re.current=pe,S(pe))}},[d,a]),y.useEffect(()=>{re.current!==k&&(H(k>re.current?"left":"right"),re.current=k)},[k]);const[B,j]=y.useState(!1),K=y.useRef(null),Re=()=>{K.current&&(clearTimeout(K.current),K.current=null),j(!0)},je=()=>{requestAnimationFrame(()=>{K.current=setTimeout(()=>{j(!1),K.current=null},50)})};y.useEffect(()=>()=>{K.current&&clearTimeout(K.current)},[]);const ae={};return q.styled==="liquid-glass"&&(ae.onMouseDown=Re,ae.onMouseUp=je,ae.onTouchStart=Re,ae.onTouchEnd=je),l.jsxs(l.Fragment,{children:[p,l.jsxs("div",{className:Oe.h,ref:h,children:[r,a&&l.jsx(aa,{"data-direction":$,"data-scale":B?"true":"false",...ae,actions:a,activeIndex:k,setActiveIndex:S,onPageChange:g,setComponent:_,actual:c,direction:u,className:Y(Oe.f,Oe[u==="row"?"r":"c"],i)}),s,t]})]})},aa=y.forwardRef(({actions:t,activeIndex:r,setActiveIndex:a,onPageChange:s,setComponent:i,actual:c,direction:d,className:g,"data-direction":u,"data-scale":p,children:_,...h},k)=>l.jsxs("div",{"data-direction":u,"data-scale":p,...h,className:Y(Oe.b,g),children:[t.map((S,$)=>l.jsxs("div",{"data-active":r===$?"true":"false",onClick:()=>{S.page&&(a($),s==null||s(S.page)),S.onClick&&S.onClick(()=>a($)),S.component&&(r===$||(i(S.component),a($)))},children:[S.icon,S.title&&l.jsx("span",{children:S.title}),S.badge&&l.jsx(ta,{value:S.badge})]},$)),c&&l.jsx("div",{className:Oe.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]})),oa={a:"_a_15zsz_1"};function na({children:t,className:r,text:a}){return l.jsxs("div",{className:Y(oa.a,r),children:[t,a&&l.jsx("b",{children:a})]})}const ct={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},bt={};function ia({children:t,id:r,onClose:a,isOpen:s,isScroll:i=!0,nextBackButton:c}){const[d,g]=y.useState(!1);return y.useEffect(()=>{if(!s)return;const u=c===void 0?dr().pop():c,p=()=>{g(!1),setTimeout(()=>{_t(u||!1),a==null||a()},300)};bt[r]={onClose:p,onOpen:()=>{g(!0)}},_t({callback:p});const _=setTimeout(()=>{g(!0)},10);return()=>{clearTimeout(_)}},[s]),s?l.jsxs("div",{className:Y(ct.w,d&&ct.v,i&&ct.s),children:[l.jsx("div",{className:ct.n}),t]}):""}const sa=(t,r)=>{var a,s;r?(a=bt[t])==null||a.onOpen():(s=bt[t])==null||s.onClose()},ut={s:"_s_tecim_3",n:"_n_tecim_14",b:"_b_tecim_19",f:"_f_tecim_29"};function la({className:t,children:r,onScrollEnd:a,offset:s=100,isLoading:i,fullscreen:c=!1,isScrollBar:d=!1}){const[g,u]=y.useState(i||!1);y.useEffect(()=>{u(i||!1)},[i]);let p={onScroll:_=>{const{scrollTop:h,scrollHeight:k,clientHeight:S}=_.currentTarget;h+S>=k-s&&!g&&(u(!0),a==null||a())}};return l.jsxs(l.Fragment,{children:[!d&&l.jsx("div",{className:ut.b}),l.jsx("div",{...p,className:Y(ut.s,!d&&ut.n,c&&ut.f,t),children:r})]})}const Ce={f:"_f_145iw_1",a:"_a_145iw_6",l:"_l_145iw_18",r:"_r_145iw_21",b:"_b_145iw_24"};function ca({children:t,className:r,position:a="center",title:s,fixed:i=!1}){let c="";return a==="left"?c=Ce.l:a==="right"?c=Ce.r:a==="between"&&(c=Ce.b),l.jsxs("div",{className:Y(Ce.a,c,i&&Ce.f,r),children:[t,s&&l.jsx("b",{children:s})]})}const de={o:"_o_xdy5u_2",x:"_x_xdy5u_16",c:"_c_xdy5u_20",p:"_p_xdy5u_25",f:"_f_xdy5u_41",h:"_h_xdy5u_49",b:"_b_xdy5u_66"},Q={},fr=({children:t,title:r,isOverlay:a=!0,footer:s=!0,className:i,id:c,onOpen:d})=>{const[g,u]=y.useState(!1),[p,_]=y.useState(!1);return y.useEffect(()=>{Q[c]=h=>{h?(_(!1),u(!0),d==null||d(!0)):(_(!0),d==null||d(!1),setTimeout(()=>{u(!1),_(!1)},300))}},[name,d]),!g&&!p?null:l.jsx("div",{className:Y(de.o,a&&de.x,p&&de.c),onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:l.jsxs("div",{className:Y(de.p,p&&de.c,s&&de.f,i),onClick:h=>h.stopPropagation(),children:[r&&l.jsxs("div",{className:de.h,children:[l.jsx("h3",{children:r}),l.jsx("button",{className:de.b,onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:"✕"})]}),t]})})},ua=(t,r)=>{var a;(a=Q[t])==null||a.call(Q,r)},M={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.state.length!==1&&M.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.listen.push(()=>{var a;let r=M.state.pop();M.prev=Ee.getPage(),r.page!==void 0?Ee.setPage(r.page):(a=r.callback)==null||a.call(r)}),W.BackButton.onClick(M.listen[0]))}},Y=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var a;return((a=t.WebApp.initDataUnsafe)==null?void 0:a.user)===void 0?{}:t.WebApp.initDataUnsafe},t.isKeyboard=a=>document.documentElement.setAttribute("data-keyboard",a.toString()),t.Location=a=>{if(q.is)return a({latitude:55.752555,longitude:37.623123});let s=()=>{t.WebApp.LocationManager.getLocation(async i=>{if(!i){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}a(i)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{s()}):s()},t.Notice={Send:(a,s,i,c)=>{var d,g;i!==void 0?(be.Send({type:a,title:s,text:i,thema:c}),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(a)):(be.Send(a),(g=t.WebApp.HapticFeedback)==null||g.notificationOccurred(a.type))},Error:(a,s)=>{var i;be.Send({type:"error",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:(a,s)=>{var i;be.Send({type:"success",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:(a,s)=>{var i;be.Send({type:"warning",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ra,t.Title=na,t.BottomSheet=fr,t.BottomSheetController=ua,t.SafeArea=Kr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=ia,t.AppBar=ca,t.SideBarController=Qr,t.SidePanelController=sa,t.Scroll=la,t.Modal=dt,t.Menu=Xr,t.MainButton={callback:[],set:a=>{q.is?q.MainButton.set(a):(t.WebApp.MainButton.callback.forEach(s=>{t.WebApp.MainButton.offClick(s)}),t.WebApp.MainButton.callback=[],typeof a=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=a.text,a.color&&(t.WebApp.MainButton.color=a.color),a.textColor&&(t.WebApp.MainButton.textColor=a.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=a.isActive===void 0?!0:a.isActive,t.WebApp.MainButton.callback.push(()=>{var s;a.page===void 0?(s=a.callback)==null||s.call(a):Ee.setPage(a.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{M.prev&&(0,t.BackButton)(M.prev)},t.BackButtonState=()=>M.state,t.BackButton=a=>{q.is?q.BackButton.set(a):(M.state.push(a),M.router(a))}})(v.default||(v.default={}));const fa=v.default.TabBar,da=fr,_t=v.default.BackButton,pa=v.default.BackButtonPrev,dr=v.default.BackButtonState,ga=v.default.Notice,ba=v.default.SafeArea,_a=v.default.Loading,ma=v.default.Menu,ha=v.default.SidePanel,va=v.default.Scroll,xa=v.default.AppBar,ya=v.default.Title,wa=v.default.Sidebar,ka=v.default.Location,Sa=v.default.isKeyboard,Ea=v.default.SidePanelController,Ra=v.default.SideBarController,ja=v.default.BottomSheetController,{Header:Aa,Modal:$a,MainButton:za,WebApp:W,getUser:Oa}=v.default;v.AppBar=xa,v.BackButton=_t,v.BackButtonPrev=pa,v.BackButtonState=dr,v.BottomSheet=da,v.BottomSheetController=ja,v.Header=Aa,v.Loading=_a,v.Location=ka,v.MainButton=za,v.Menu=ma,v.Modal=$a,v.Notice=ga,v.SafeArea=ba,v.Scroll=va,v.SideBarController=Ra,v.SidePanel=ha,v.SidePanelController=Ea,v.Sidebar=wa,v.TabBar=fa,v.Title=ya,v.WebApp=W,v.clsx=Y,v.getUser=Oa,v.isKeyboard=Sa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,ke,I,Wt,I),rt[I+ke]=!0}}return e===s?Yt(R):Dt(R),R}}function Ut(e,o,n){return at(e,o,n,!0)}function Lt(e,o,n){return at(e,o,n,!1)}var Ft=Lt,qt=Ut;it.Fragment=s,it.jsx=Ft,it.jsxs=qt}()),it}process.env.NODE_ENV==="production"?wr():kr();const Sr="0.0.46",ar={version:Sr},ee={},D={module:"",v:ar.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function X(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}X().elcrm||(X().elcrm={}),Object.assign(X().elcrm,{router:ar.version});function Z(t){var r,a,s,i;const c=X();if(c.ROUTER_PARAMS){t.debug||c.ROUTER_PARAMS.debug;const d={page:(r=c.ROUTER_PARAMS)==null?void 0:r.page,module:(a=c.ROUTER_PARAMS)==null?void 0:a.module,tab:(s=c.ROUTER_PARAMS)==null?void 0:s.tab,id:(i=c.ROUTER_PARAMS)==null?void 0:i.id};c.ROUTER_PARAMS={...c.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};c.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return X().ROUTER_PARAMS||D}function ge(t){const r=X();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(a=>{r.ROUTER_PARAMS.LISTENER[a]||(r.ROUTER_PARAMS.LISTENER[a]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[a])||(r.ROUTER_PARAMS.LISTENER[a]=[r.ROUTER_PARAMS.LISTENER[a]]),r.ROUTER_PARAMS.LISTENER[a].includes(t[a])||r.ROUTER_PARAMS.LISTENER[a].push(t[a])})}function V(){var t;const r=X();let a=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return a||(a={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=a:D.LISTENER=a),new Proxy(a,{get(s,i){const c=s[i];return Array.isArray(c)&&c.length>0?(...d)=>{c.forEach(g=>{if(typeof g=="function")try{g(...d)}catch{}})}:c==null?()=>{}:typeof c=="function"?c:()=>{}}})}function or(t,r){const a=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[s,i]of Object.entries(r))if(s.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===a)return i;return null}function pt(t){const{basePath:r=".",devExtensions:a=[".tsx",".ts",".jsx",".js"],prodExtension:s=".js"}=t||{};return i=>{const c=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function Er(t){const{basePath:r=".",modules:a,pages:s}=t||{};return i=>{if(a){const d=or(i,a);if(d)return d()}if(s){const d=or(i,s);if(d)return d()}const c=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function nr(t=".",r,a){return r||a?Er({basePath:t,modules:r,pages:a}):pt({basePath:t})}function Rr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=le.deCode(r),!r)return!1;Z({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else Z({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function gt(){return A().tab}function lr(){return A().id}function jr(t){let r=i=>(Z({page:i}),i);const[a,s]=y.useState(ir()||t&&r(t)||A().page);return y.useEffect(()=>{const i=c=>{s(c)};return ge({page:i}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.page){const u=g.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(u)){const p=u.indexOf(i);p>-1&&u.splice(p,1)}}}},[]),a}function Ar(t,r=!0,a={}){Z({page:t,...a}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().page(t)}function $r(t){return A().page===t}function zr(){return A().prev}function Or(t,r){const[a,s]=y.useState(sr()||t||A().module);return y.useEffect(()=>(ge({module:s}),()=>{const i=V();i.module===s&&delete i.module}),[]),a}function Cr(t,r=!0){Z({module:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().module(t)}function Pr(t){return A().module===t}function Tr(t,r){if(typeof t!="function"){const[a,s]=y.useState(!r),[i,c]=y.useState(t||gt());return ge({tabs:c}),r&&y.useEffect(()=>{s(!0)},[]),[i,a]}else ge({tabs:t})}function Mr(t){let r=i=>(Z({tab:i}),i);const[a,s]=y.useState(gt()||t&&r(t)||A().tab);return y.useEffect(()=>{const i=c=>{s(c)};return ge({tabs:i}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.tabs){const u=g.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(u)){const p=u.indexOf(i);p>-1&&u.splice(p,1)}}}},[]),a}async function Br(t,r=!0){Z({tab:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&(V().tabs&&V().tabs(t))}function Nr(t){return A().tab===t}function Ir(t){if(typeof t!="function"){const[r,a]=y.useState(t||lr());return y.useEffect(()=>{const s=i=>{a(i)};return ge({id:s}),()=>{const i=V();i.id===s&&delete i.id}},[]),r}else y.useEffect(()=>(ge({id:t}),()=>{var r,a;const s=X();if((a=(r=s.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&a.id){const i=s.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(i)){const c=i.indexOf(t);c>-1&&i.splice(c,1)}}}),[t])}function Dr(t){}async function Yr(t,r=!0){Z({id:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().id(t)}function Ur(t){return Number(A().id)===t}async function Lr(t){var r,a,s,i,c,d,g,u;const{page:p,module:_,tab:h,id:k}=t;p!==void 0&&(ee.page=p),_!==void 0&&(ee.module=_),h!==void 0&&(ee.tab=h),k!==void 0&&(ee.id=k),Z({...ee}),k!==void 0&&((a=(r=V()).id)==null||a.call(r,k)),h!==void 0&&((i=(s=V()).tabs)==null||i.call(s,h)),_!==void 0&&((d=(c=V()).module)==null||d.call(c,_)),p!==void 0&&((u=(g=V()).page)==null||u.call(g,p)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}const Ee={Reset(){ee.id=0,ee.tab="",ee.page=A().page,ee.module=A().module},Default({module:t=A().module,page:r=A().page,auth:a=A().auth,debug:s=A().debug,dir:i=A().dir||".",importModules:c,modules:d,pages:g,glob:u}){let p=c,_=d,h=g;u?(_=typeof d=="object"?d:u,h=typeof g=="object"?g:u):(_=_||u,h=h||u),!p&&(_||h)?!u&&(typeof _=="string"||typeof h=="string")?p=pt({basePath:i}):p=nr(i,_,h):p||(p=pt({basePath:i})),Z({page:r,module:t,auth:a,debug:s,dir:i,importModules:p}),Rr()},createImportModules:nr,getImportModules:()=>A().importModules,usePage:jr,setPage:Ar,getPage:ir,isPage:$r,getBack:zr,useModule:Or,setModule:Cr,getModule:sr,isModule:Pr,useTabs:Tr,useTab:Mr,setTabs:Br,getTabs:gt,isTabs:Nr,useId:Ir,subId:Dr,setId:Yr,getId:lr,isId:Ur,navigate:Lr},ce={n:"_n_wzw51_1",i:"_i_wzw51_11",closing:"_closing_wzw51_51",t:"_t_wzw51_58",e:"_e_wzw51_62",s:"_s_wzw51_65",w:"_w_wzw51_68",h:"_h_wzw51_71"};let st={};function Fr(){const[t,r]=y.useState([]);return st.set=a=>{r([...t,a])},st.del=a=>{t.forEach((s,i)=>{s.key===a&&t.splice(i,1)}),r(t)},t.length===0?l.jsx(l.Fragment,{}):l.jsx("div",{className:ce.n,children:t.map(a=>a.item)})}function qr(t){let r=new Date().getTime();t.key=r,st.set({item:l.jsx(Wr,{data:t},r),key:r})}function Wr(t){const r=t.data;let[a]=y.useState("show"),[s,i]=y.useState(!1),[c,d]=y.useState(!1);const g=()=>{d(!0),setTimeout(()=>{i(!0),st.del(r.key)},300)};y.useEffect(()=>{const _=setTimeout(()=>{g()},5e3);return()=>{clearTimeout(_)}},[r.key]);let u;switch(r.type){case"error":u=l.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":u=l.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":u=l.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:u="icon fa fa-exclamation-circle";break}const p={error:ce.e,success:ce.s,warning:ce.w};return l.jsx(l.Fragment,{children:s?l.jsx(l.Fragment,{}):l.jsxs("div",{className:Y(ce.i,p[r.type],r.thema!==void 0?ce.h:"",c&&ce.closing),"data-status":a,onClick:g,children:[l.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",viewBox:"0 0 24 24",children:u}),l.jsxs("span",{className:ce.t,children:[r.title&&l.jsx("b",{children:r.title}),r.text&&l.jsx("p",{children:r.text})]})]})})}let be={Send:qr,Init:Fr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},q={is:!1,MainButton:{},BackButton:{},styled:"default"};let C={};C.dark={"--tg-color-scheme":"dark","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#3e88f7","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-section-bg-color":"#2c2c2e","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-bottom-bar-bg-color":"#1d1d1d"},C.light={"--tg-color-scheme":"light","--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},C.users={"--tg-color-scheme":"users","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const Vr=({style:t="default",theme:r})=>{if(location.hostname==="localhost"){let[a,s]=y.useState(!1),[i,c]=y.useState(!1),[d,g]=y.useState(r||"dark"),[u,p]=y.useState(!1),[_,h]=y.useState(!1);q.is=!0,q.MainButton.set=s,q.BackButton.set=c,q.styled=t,y.useEffect(()=>{var $;C[d]["--tg-theme-bg-color-alpha"]=C[d]["--tg-theme-bg-color"]+"b3",C[d]["--tg-theme-secondary-bg-color-alpha"]=C[d]["--tg-theme-secondary-bg-color"]+"d3",C[d]["--tg-theme-bg-color-alpha-25"]=C[d]["--tg-theme-bg-color"]+"40",C[d]["--tg-theme-secondary-bg-color-alpha-25"]=C[d]["--tg-theme-secondary-bg-color"]+"40";for(let H in C[d])document.documentElement.style.setProperty(H,C[d][H]);document.documentElement.setAttribute("data-color-scheme",C[d]["--tg-color-scheme"]),document.documentElement.setAttribute("data-style",t),document.documentElement.style.setProperty("--tg-content-safe-area-inset-top","0px"),(($=W.safeAreaInset)==null?void 0:$.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):W.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let k=$=>{for(let H in C[$])document.documentElement.style.setProperty(H,C[$][H]),document.documentElement.setAttribute("data-color-scheme",$);g($),p(!1)},S=()=>{p(!1),h(!0)};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:ue.d,children:[i===!1?l.jsx("div",{className:ue.b,children:"Отмена"}):l.jsx("div",{onClick:()=>{var $;i.page===void 0?($=i.callback)==null||$.call(i):Ee.setPage(i.page)},className:ue.b,children:"Назад"}),l.jsx("div",{className:ue.o,onClick:()=>p(!u),children:"Меню"})]}),l.jsx(be.Init,{}),a&&l.jsx("div",{className:ue.m,children:l.jsx("button",{onClick:()=>{a.page&&Ee.setPage(a.page),a.callback&&a.callback()},children:a.text})}),u?l.jsxs("div",{className:ue.t,children:[l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("button",{onClick:S,children:"Authorization"})}),l.jsx("li",{})]}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("button",{children:"Thema"}),l.jsxs("ol",{children:[l.jsx("li",{children:l.jsx("button",{onClick:()=>k("dark"),children:"Dark"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("light"),children:"Light"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("users"),children:"Users"})})]})]}),l.jsx("li",{children:l.jsx("button",{onClick:()=>p(!u),children:"Closed"})})]})]}):"",_?l.jsx(Hr,{setAuthorization:h}):""]})}else return q.styled=t,y.useEffect(()=>{var a;r?(W.setHeaderColor(C[r]["--tg-theme-bg-color"]),W.setBackgroundColor(C[r]["--tg-theme-bg-color"]),document.documentElement.setAttribute("data-color-scheme",r),document.documentElement.setAttribute("data-style",t),C[r]["--tg-theme-bg-color-alpha"]=C[r]["--tg-theme-bg-color"]+"b3",C[r]["--tg-theme-secondary-bg-color-alpha"]=C[r]["--tg-theme-secondary-bg-color"]+"d3",C[r]["--tg-theme-bg-color-alpha-25"]=C[r]["--tg-theme-bg-color"]+"40",C[r]["--tg-theme-secondary-bg-color-alpha-25"]=C[r]["--tg-theme-secondary-bg-color"]+"40"):(document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",W.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",W.themeParams.bg_color+"b3"),((a=W.safeAreaInset)==null?void 0:a.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):W.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"),document.documentElement.setAttribute("data-color-scheme",W.colorScheme),document.documentElement.setAttribute("data-style",t))},[]),l.jsx(l.Fragment,{children:l.jsx(be.Init,{})})},Hr=({setAuthorization:t})=>{let r={},a=()=>{localStorage.setItem("auth",r)};return l.jsx("div",{className:ue.a,children:l.jsxs("div",{className:ue.v,children:[l.jsx("fieldset",{}),l.jsx("div",{onClick:a,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Kr=({className:t,children:r,isScroll:a=!0})=>l.jsx("div",{className:[cr.p,a&&cr.s,t].filter(s=>s!==void 0).join(" "),children:r}),Jr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>l.jsx("div",{className:[Jr.l,r].filter(a=>a!==void 0).join(" "),children:t}),fe={q:"_q_z5mg9_2",m:"_m_z5mg9_8",g:"_g_z5mg9_15",i:"_i_z5mg9_23",c:"_c_z5mg9_40",l:"_l_z5mg9_47",a:"_a_z5mg9_62",n:"_n_z5mg9_68"},Xr=({items:t})=>{const r=s=>{Ee.setPage(s)},a=s=>{W.openTelegramLink(s)};return l.jsx("div",{className:Y(fe[q.styled==="liquid-glass"?"q":""],fe.m),children:t.map(s=>l.jsx("div",{className:fe.g,children:s.items.map((i,c)=>l.jsxs("div",{className:fe.i,onClick:()=>{i.link&&a(i.link),i.page&&r(i.page),i.callback&&i.callback()},children:[l.jsxs("div",{className:fe.c,children:[l.jsx("span",{className:fe.l,style:{background:i.color},children:i.icon}),i.title,i.count&&l.jsx("span",{className:fe.n,children:i.count})]}),l.jsx("span",{className:fe.a,children:"›"})]},c))},s.id))})},te={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},lt={};function Zr({children:t,icon:r,iconBadge:a=0,title:s,className:i,view:c="list",position:d="left",id:g="default"}){const[u,p]=y.useState(!1),[_,h]=y.useState(null);y.useEffect(()=>{let S=document.querySelector(".p_sb");return S||(S=document.createElement("div"),S.className="_p_sb",document.body.appendChild(S)),h(S),lt[g]=$=>p($),()=>{S&&S.parentNode&&S.parentNode.removeChild(S)}},[]);const k=l.jsxs(l.Fragment,{children:[u&&l.jsx("div",{className:te.o,onClick:()=>p(!1)}),l.jsxs("div",{className:Y(te.m,d==="left"?te.l:te.r,u&&te.x,i),children:[l.jsxs("div",{className:te.h,children:[s&&l.jsx("h3",{className:te.t,children:s}),l.jsxs("svg",{onClick:()=>p(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[l.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),l.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),l.jsx("div",{className:te.c,children:c==="list"?l.jsx("ul",{className:te.u,children:t}):t})]})]});return l.jsxs(l.Fragment,{children:[r&&l.jsx("div",{onClick:()=>p(!0),className:"bage","data-count":a,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var a;(a=lt[t])==null||a.call(lt,r)},Oe={h:"_h_1mg30_2",r:"_r_1mg30_32",c:"_c_1mg30_35",b:"_b_1mg30_55",draw:"_draw_1mg30_1",a:"_a_1mg30_111",scaleToggleVar:"_scaleToggleVar_1mg30_1"},ea={b:"_b_r6m8n_1"},ta=({className:t,value:r})=>l.jsx("div",{className:[ea.b,t].filter(a=>a!==void 0).join(" "),children:r}),ur=(t,r)=>t.findIndex(a=>(a==null?void 0:a.page)===r),ra=({after:t,before:r,actions:a,children:s,className:i,actual:c,page:d,onPageChange:g,direction:u="row"})=>{const[p,_]=y.useState(null),h=y.useRef(null),[k,S]=y.useState(d?ur(a||[],d):0),[$,H]=y.useState("right"),re=y.useRef(k);y.useEffect(()=>{if(d){const pe=ur(a||[],d);pe!==-1&&pe!==re.current&&(re.current=pe,S(pe))}},[d,a]),y.useEffect(()=>{re.current!==k&&(H(k>re.current?"left":"right"),re.current=k)},[k]);const[B,j]=y.useState(!1),K=y.useRef(null),Re=()=>{K.current&&(clearTimeout(K.current),K.current=null),j(!0)},je=()=>{requestAnimationFrame(()=>{K.current=setTimeout(()=>{j(!1),K.current=null},50)})};y.useEffect(()=>()=>{K.current&&clearTimeout(K.current)},[]);const ae={};return q.styled==="liquid-glass"&&(ae.onMouseDown=Re,ae.onMouseUp=je,ae.onTouchStart=Re,ae.onTouchEnd=je),l.jsxs(l.Fragment,{children:[p,l.jsxs("div",{className:Oe.h,ref:h,children:[r,a&&l.jsx(aa,{"data-direction":$,"data-scale":B?"true":"false",...ae,actions:a,activeIndex:k,setActiveIndex:S,onPageChange:g,setComponent:_,actual:c,direction:u,className:Y(Oe.f,Oe[u==="row"?"r":"c"],i)}),s,t]})]})},aa=y.forwardRef(({actions:t,activeIndex:r,setActiveIndex:a,onPageChange:s,setComponent:i,actual:c,direction:d,className:g,"data-direction":u,"data-scale":p,children:_,...h},k)=>l.jsxs("div",{"data-direction":u,"data-scale":p,...h,className:Y(Oe.b,g),children:[t.map((S,$)=>l.jsxs("div",{"data-active":r===$?"true":"false",onClick:()=>{S.page&&(a($),s==null||s(S.page)),S.onClick&&S.onClick(()=>a($)),S.component&&(r===$||(i(S.component),a($)))},children:[S.icon,S.title&&l.jsx("span",{children:S.title}),S.badge&&l.jsx(ta,{value:S.badge})]},$)),c&&l.jsx("div",{className:Oe.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]})),oa={a:"_a_15zsz_1"};function na({children:t,className:r,text:a}){return l.jsxs("div",{className:Y(oa.a,r),children:[t,a&&l.jsx("b",{children:a})]})}const ct={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},bt={};function ia({children:t,id:r,onClose:a,isOpen:s,isScroll:i=!0,nextBackButton:c}){const[d,g]=y.useState(!1);return y.useEffect(()=>{if(!s)return;const u=c===void 0?dr().pop():c,p=()=>{g(!1),setTimeout(()=>{_t(u||!1),a==null||a()},300)};bt[r]={onClose:p,onOpen:()=>{g(!0)}},_t({callback:p});const _=setTimeout(()=>{g(!0)},10);return()=>{clearTimeout(_)}},[s]),s?l.jsxs("div",{className:Y(ct.w,d&&ct.v,i&&ct.s),children:[l.jsx("div",{className:ct.n}),t]}):""}const sa=(t,r)=>{var a,s;r?(a=bt[t])==null||a.onOpen():(s=bt[t])==null||s.onClose()},ut={s:"_s_tecim_3",n:"_n_tecim_14",b:"_b_tecim_19",f:"_f_tecim_29"};function la({className:t,children:r,onScrollEnd:a,offset:s=100,isLoading:i,fullscreen:c=!1,isScrollBar:d=!1}){const[g,u]=y.useState(i||!1);y.useEffect(()=>{u(i||!1)},[i]);let p={onScroll:_=>{const{scrollTop:h,scrollHeight:k,clientHeight:S}=_.currentTarget;h+S>=k-s&&!g&&(u(!0),a==null||a())}};return l.jsxs(l.Fragment,{children:[!d&&l.jsx("div",{className:ut.b}),l.jsx("div",{...p,className:Y(ut.s,!d&&ut.n,c&&ut.f,t),children:r})]})}const Ce={f:"_f_145iw_1",a:"_a_145iw_6",l:"_l_145iw_18",r:"_r_145iw_21",b:"_b_145iw_24"};function ca({children:t,className:r,position:a="center",title:s,fixed:i=!1}){let c="";return a==="left"?c=Ce.l:a==="right"?c=Ce.r:a==="between"&&(c=Ce.b),l.jsxs("div",{className:Y(Ce.a,c,i&&Ce.f,r),children:[t,s&&l.jsx("b",{children:s})]})}const de={o:"_o_xdy5u_2",x:"_x_xdy5u_16",c:"_c_xdy5u_20",p:"_p_xdy5u_25",f:"_f_xdy5u_41",h:"_h_xdy5u_49",b:"_b_xdy5u_66"},Q={},fr=({children:t,title:r,isOverlay:a=!0,footer:s=!0,className:i,id:c,onOpen:d})=>{const[g,u]=y.useState(!1),[p,_]=y.useState(!1);return y.useEffect(()=>{Q[c]=h=>{h?(_(!1),u(!0),d==null||d(!0)):(_(!0),d==null||d(!1),setTimeout(()=>{u(!1),_(!1)},300))}},[name,d]),!g&&!p?null:l.jsx("div",{className:Y(de.o,a&&de.x,p&&de.c),onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:l.jsxs("div",{className:Y(de.p,p&&de.c,s&&de.f,i),onClick:h=>h.stopPropagation(),children:[r&&l.jsxs("div",{className:de.h,children:[l.jsx("h3",{children:r}),l.jsx("button",{className:de.b,onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:"✕"})]}),t]})})},ua=(t,r)=>{var a;(a=Q[t])==null||a.call(Q,r)},M={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.state.length!==1&&M.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.listen.push(()=>{var a;let r=M.state.pop();M.prev=Ee.getPage(),r.page!==void 0?Ee.setPage(r.page):(a=r.callback)==null||a.call(r)}),W.BackButton.onClick(M.listen[0]))}},Y=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var a;return((a=t.WebApp.initDataUnsafe)==null?void 0:a.user)===void 0?{}:t.WebApp.initDataUnsafe},t.isKeyboard=a=>document.documentElement.setAttribute("data-keyboard",a.toString()),t.Location=a=>{if(q.is)return a({latitude:55.752555,longitude:37.623123});let s=()=>{t.WebApp.LocationManager.getLocation(async i=>{if(!i){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}a(i)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{s()}):s()},t.Notice={Send:(a,s,i,c)=>{var d,g;i!==void 0?(be.Send({type:a,title:s,text:i,thema:c}),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(a)):(be.Send(a),(g=t.WebApp.HapticFeedback)==null||g.notificationOccurred(a.type))},Error:(a,s)=>{var i;be.Send({type:"error",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:(a,s)=>{var i;be.Send({type:"success",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:(a,s)=>{var i;be.Send({type:"warning",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ra,t.Title=na,t.BottomSheet=fr,t.BottomSheetController=ua,t.SafeArea=Kr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=ia,t.AppBar=ca,t.SideBarController=Qr,t.SidePanelController=sa,t.Scroll=la,t.Modal=dt,t.Menu=Xr,t.MainButton={callback:[],set:a=>{q.is?q.MainButton.set(a):(t.WebApp.MainButton.callback.forEach(s=>{t.WebApp.MainButton.offClick(s)}),t.WebApp.MainButton.callback=[],typeof a=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=a.text,a.color&&(t.WebApp.MainButton.color=a.color),a.textColor&&(t.WebApp.MainButton.textColor=a.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=a.isActive===void 0?!0:a.isActive,t.WebApp.MainButton.callback.push(()=>{var s;a.page===void 0?(s=a.callback)==null||s.call(a):Ee.setPage(a.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{M.prev&&(0,t.BackButton)(M.prev)},t.BackButtonState=()=>M.state,t.BackButton=a=>{q.is?q.BackButton.set(a):(M.state.push(a),M.router(a))}})(v.default||(v.default={}));const fa=v.default.TabBar,da=fr,_t=v.default.BackButton,pa=v.default.BackButtonPrev,dr=v.default.BackButtonState,ga=v.default.Notice,ba=v.default.SafeArea,_a=v.default.Loading,ma=v.default.Menu,ha=v.default.SidePanel,va=v.default.Scroll,xa=v.default.AppBar,ya=v.default.Title,wa=v.default.Sidebar,ka=v.default.Location,Sa=v.default.isKeyboard,Ea=v.default.SidePanelController,Ra=v.default.SideBarController,ja=v.default.BottomSheetController,{Header:Aa,Modal:$a,MainButton:za,WebApp:W,getUser:Oa}=v.default;v.AppBar=xa,v.BackButton=_t,v.BackButtonPrev=pa,v.BackButtonState=dr,v.BottomSheet=da,v.BottomSheetController=ja,v.Header=Aa,v.Loading=_a,v.Location=ka,v.MainButton=za,v.Menu=ma,v.Modal=$a,v.Notice=ga,v.SafeArea=ba,v.Scroll=va,v.SideBarController=Ra,v.SidePanel=ha,v.SidePanelController=Ea,v.Sidebar=wa,v.TabBar=fa,v.Title=ya,v.WebApp=W,v.clsx=Y,v.getUser=Oa,v.isKeyboard=Sa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.172",
3
+ "version": "0.0.173",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",