@oneb/ui-vue 0.0.78 → 0.0.81

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("../XMarkIcon-f94baa4c.cjs"),w={id:{type:String,required:!1},validation:{type:Object,required:!1}},F={id:{type:String,required:!1},label:{type:String,required:!1},name:{type:String,required:!1},hint:{type:String,required:!1,default:""},errors:{type:Array,required:!1}},S={name:{type:String,required:!1},errors:{type:Array,required:!1}},$={label:{type:String,required:!1}},N={id:{type:String,required:!1},name:{type:String,required:!1},placeholder:{type:String,default:""},icon:{type:[Function,Object]},type:{type:String,default:"text"},inputClass:{required:!1,type:[Array,String]},modelValue:{required:!1,type:[String,Number,Array,Boolean,Object,null]},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},large:{type:Boolean,default:!1},invalid:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!1,default:[]}},v=()=>e.inject("BaseForm",()=>({formId:e.computed(()=>{}),validation:e.computed(()=>{})}),!0),y=()=>e.inject("BaseFormField",()=>({inputId:e.computed(()=>{}),inputName:e.computed(()=>{}),hasError:e.computed(()=>!1)}),!0),q=["id"],O=e.defineComponent({__name:"OneForm",props:w,emits:["submit"],setup(d,{emit:l}){const o=d,n=l;e.provide("BaseForm",{formId:e.computed(()=>o.id),validation:e.computed(()=>o.validation)});const a=()=>{n("submit")};return(t,u)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(a,["prevent"]),id:t.id,class:"space-y-3"},[e.renderSlot(t.$slots,"default")],40,q))}}),_=["for"],h=e.defineComponent({__name:"OneFormLabel",props:$,setup(d){const{inputId:l}=y();return(o,n)=>(e.openBlock(),e.createElementBlock("label",{for:e.unref(l),class:"block text-sm font-medium text-primary-content select-none"},[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])],8,_))}}),I={key:0,class:"text-danger-content text-xs space-y-1"},b=e.defineComponent({__name:"OneFormFeedback",props:S,setup(d){const l=d,{validation:o}=v(),{inputName:n}=y(),a=e.computed(()=>n.value==null&&l.name==null?l.errors??[]:o.value==null?l.errors??[]:(o.value??{})[l.name||n.value]??l.errors??[]);return(t,u)=>a.value.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s},e.toDisplayString(s),1))),128))])):e.createCommentVNode("",!0)}});function j(d,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function L(d,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})])}const M=["id","disabled"],A=["selected"],D=["selected","value"],z=["name","id","value","placeholder","disabled","readonly"],P={key:2,class:"flex w-full space-x-3 items-center"},T=["type","name","id","disabled","readonly","checked"],X=["for"],G={key:3,class:"w-full space-y-1"},H=["name","id","value","disabled","readonly","checked"],J=["for"],K={key:4,class:"relative"},Q={class:"absolute p-2 px-3 rounded-md h-full flex items-center select-none"},R=["type","name","id","value","placeholder","disabled","readonly"],B=e.defineComponent({__name:"OneFormInput",props:N,emits:["update:modelValue"],setup(d,{emit:l}){const o=d,n=l,{inputId:a,inputName:t,hasError:u}=y(),s=e.ref(null),p=e.ref(!1);e.onMounted(()=>{o.autofocus&&s.value&&s.value.focus()});const g=e.computed(()=>o.modelValue!=null&&o.modelValue!==""),c=e.computed(()=>{if(o.id)return o.id;const r=(a==null?void 0:a.value)||"";return o.name?`${r}-${o.name}`:r||""}),E=()=>{n("update:modelValue","")},V=e.computed(()=>{const r={"shadow-sm":o.type!=="range","border-danger-base":u.value||o.invalid,"pl-10":o.icon!=null,"pr-10":o.type==="password","rounded-full":o.rounded,"rounded-md":!o.rounded,"text-lg":o.large,"py-2.5":o.large,"py-2":!o.large};return o.inputClass!=null&&(typeof o.inputClass=="string"?r[o.inputClass]=!0:o.inputClass instanceof Array&&o.inputClass.forEach(f=>{r[f]=!0})),r}),m=r=>{o.type==="checkbox"?n("update:modelValue",r.target.checked):n("update:modelValue",r.target.value)};return(r,f)=>r.type==="select"?(e.openBlock(),e.createElementBlock("select",{key:0,id:c.value,ref_key:"inputElement",ref:s,class:e.normalizeClass(["border border-primary-stroke px-3 w-full",{"border-danger-base":e.unref(u)||r.invalid,"text-secondary-content":r.modelValue===""||r.modelValue==null,"rounded-full":r.rounded,"rounded-md":!r.rounded,"text-lg":r.large,"py-2.5":r.large,"py-2":!r.large}]),disabled:r.disabled},[r.placeholder?(e.openBlock(),e.createElementBlock("option",{key:0,selected:r.modelValue===""||r.modelValue==null,disabled:"",hidden:""},e.toDisplayString(r.placeholder),9,A)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,i=>(e.openBlock(),e.createElementBlock("option",{selected:i.key===r.modelValue,key:i.key,value:i.key},e.toDisplayString(i.value),9,D))),128))],10,M)):r.type==="textarea"?(e.openBlock(),e.createElementBlock("textarea",{key:1,name:r.name||e.unref(t),id:c.value,value:r.modelValue,onInput:m,rows:"3",class:e.normalizeClass(["border border-primary-stroke px-3 w-full placeholder-gray-400",{"border-danger-base":e.unref(u),"rounded-3xl":r.rounded,"rounded-md":!r.rounded,"text-lg":r.large,"py-2.5":r.large,"py-2":!r.large}]),placeholder:r.placeholder,disabled:r.disabled,readonly:r.readonly,ref_key:"inputElement",ref:s},null,42,z)):r.type==="checkbox"?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("input",{type:r.type,name:r.name||e.unref(t),id:c.value,value:!0,onInput:m,disabled:r.disabled,readonly:r.readonly,class:e.normalizeClass(["rounded-md border border-primary-stroke px-2 py-2 shadow-sm",{"border-danger-base":e.unref(u)||r.invalid}]),checked:r.modelValue===!0,ref_key:"inputElement",ref:s},null,42,T),e.createElementVNode("label",{for:c.value,class:"text-primary-content select-none"},e.toDisplayString(r.placeholder),9,X)])):r.type==="radio"?(e.openBlock(),e.createElementBlock("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,(i,k)=>(e.openBlock(),e.createElementBlock("div",{key:i.key,class:"flex w-full space-x-3 items-center"},[e.createElementVNode("input",{type:"radio",name:r.name||e.unref(t),id:`${c.value}-${k}`,value:i.key,onInput:m,disabled:r.disabled,readonly:r.readonly,class:e.normalizeClass(["rounded-md border border-primary-stroke px-3 py-2 shadow-sm",{"border-danger-base":e.unref(u)||r.invalid}]),checked:i.key===r.modelValue,ref_for:!0,ref_key:"inputElement",ref:s},null,42,H),e.createElementVNode("label",{for:`${c.value}-${k}`,class:"text-primary-content select-none"},e.toDisplayString(i.value),9,J)]))),128))])):(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[r.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{key:0,class:"w-5 h-5 text-primary-content"})):e.createCommentVNode("",!0)]),e.createElementVNode("input",{type:p.value?"text":r.type,name:r.name||e.unref(t),id:c.value,value:r.modelValue,onInput:m,placeholder:r.placeholder,disabled:r.disabled,readonly:r.readonly,class:e.normalizeClass(["border border-primary-stroke w-full px-3 placeholder-gray-400 disabled:bg-gray-50",V.value]),ref_key:"inputElement",ref:s},null,42,R),r.clearable&&g.value?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:E,class:"absolute p-2 px-3 rounded-md h-full flex items-center right-0 top-0 hover:cursor-pointer select-none"},[e.createVNode(e.unref(C.render),{class:"w-5 h-5 text-secondary-content hover:text-primary-base"})])):r.type==="password"?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:f[0]||(f[0]=i=>p.value=!p.value),class:"absolute p-2 px-3 rounded-md h-full flex items-center right-0 top-0 hover:cursor-pointer select-none"},[p.value?(e.openBlock(),e.createBlock(e.unref(L),{key:0,class:"w-5 h-5 text-primary-content hover:text-primary-base"})):(e.openBlock(),e.createBlock(e.unref(j),{key:1,class:"w-5 h-5 text-secondary-content hover:text-primary-base"}))])):e.createCommentVNode("",!0)]))}}),U={class:"space-y-1"},W={key:2,class:"text-xs text-secondary-content select-none"},Y=e.defineComponent({__name:"OneFormField",props:F,setup(d){const l=d,{formId:o,validation:n}=v(),a=e.computed(()=>l.errors!=null&&l.errors.length>0?!0:l.name==null?!1:(n.value??{})[l.name]!=null);return e.provide("BaseFormField",{inputId:e.computed(()=>{const t=o.value||"form";if(l.id!=null)return`${t}-${l.id}`;if(l.name!=null)return`${t}-field-${l.name}`}),inputName:e.computed(()=>l.name),hasError:a}),(t,u)=>(e.openBlock(),e.createElementBlock("div",U,[t.label?(e.openBlock(),e.createBlock(h,{key:0,label:t.label},null,8,["label"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(B)]),a.value?(e.openBlock(),e.createBlock(b,{key:1,errors:t.errors},null,8,["errors"])):t.hint.length>0?(e.openBlock(),e.createElementBlock("p",W,e.toDisplayString(t.hint),1)):e.createCommentVNode("",!0)]))}});exports.OneForm=O;exports.OneFormFeedback=b;exports.OneFormField=Y;exports.OneFormInput=B;exports.OneFormLabel=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("../XMarkIcon-f94baa4c.cjs"),w={id:{type:String,required:!1},validation:{type:Object,required:!1}},F={id:{type:String,required:!1},label:{type:String,required:!1},name:{type:String,required:!1},hint:{type:String,required:!1,default:""},errors:{type:Array,required:!1}},S={name:{type:String,required:!1},errors:{type:Array,required:!1}},$={label:{type:String,required:!1}},N={id:{type:String,required:!1},name:{type:String,required:!1},placeholder:{type:String,default:""},icon:{type:[Function,Object]},type:{type:String,default:"text"},inputClass:{required:!1,type:[Array,String]},modelValue:{required:!1,type:[String,Number,Array,Boolean,Object,null]},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},large:{type:Boolean,default:!1},invalid:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!1,default:[]}},v=()=>e.inject("BaseForm",()=>({formId:e.computed(()=>{}),validation:e.computed(()=>{})}),!0),y=()=>e.inject("BaseFormField",()=>({inputId:e.computed(()=>{}),inputName:e.computed(()=>{}),hasError:e.computed(()=>!1)}),!0),q=["id"],O=e.defineComponent({__name:"OneForm",props:w,emits:["submit"],setup(d,{emit:l}){const o=d,n=l;e.provide("BaseForm",{formId:e.computed(()=>o.id),validation:e.computed(()=>o.validation)});const a=()=>{n("submit")};return(t,u)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(a,["prevent"]),id:t.id,class:"space-y-3"},[e.renderSlot(t.$slots,"default")],40,q))}}),_=["for"],h=e.defineComponent({__name:"OneFormLabel",props:$,setup(d){const{inputId:l}=y();return(o,n)=>(e.openBlock(),e.createElementBlock("label",{for:e.unref(l),class:"block text-sm font-medium text-primary-content select-none"},[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])],8,_))}}),I={key:0,class:"text-danger-content text-xs space-y-1"},b=e.defineComponent({__name:"OneFormFeedback",props:S,setup(d){const l=d,{validation:o}=v(),{inputName:n}=y(),a=e.computed(()=>n.value==null&&l.name==null?l.errors??[]:o.value==null?l.errors??[]:(o.value??{})[l.name||n.value]??l.errors??[]);return(t,u)=>a.value.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s},e.toDisplayString(s),1))),128))])):e.createCommentVNode("",!0)}});function j(d,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function L(d,l){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})])}const M=["id","disabled"],A=["selected"],D=["selected","value"],z=["name","id","value","placeholder","disabled","readonly"],P={key:2,class:"flex w-full space-x-3 items-center"},T=["type","name","id","disabled","readonly","checked"],X=["for"],G={key:3,class:"w-full space-y-1"},H=["name","id","value","disabled","readonly","checked"],J=["for"],K={key:4,class:"relative"},Q={class:"absolute p-2 px-3 rounded-md h-full flex items-center select-none pointer-events-none"},R=["type","name","id","value","placeholder","disabled","readonly"],B=e.defineComponent({__name:"OneFormInput",props:N,emits:["update:modelValue"],setup(d,{emit:l}){const o=d,n=l,{inputId:a,inputName:t,hasError:u}=y(),s=e.ref(null),p=e.ref(!1);e.onMounted(()=>{o.autofocus&&s.value&&s.value.focus()});const g=e.computed(()=>o.modelValue!=null&&o.modelValue!==""),c=e.computed(()=>{if(o.id)return o.id;const r=(a==null?void 0:a.value)||"";return o.name?`${r}-${o.name}`:r||""}),E=()=>{n("update:modelValue","")},V=e.computed(()=>{const r={"shadow-sm":o.type!=="range","border-danger-base":u.value||o.invalid,"pl-10":o.icon!=null,"pr-10":o.type==="password","rounded-full":o.rounded,"rounded-md":!o.rounded,"text-lg":o.large,"py-2.5":o.large,"py-2":!o.large};return o.inputClass!=null&&(typeof o.inputClass=="string"?r[o.inputClass]=!0:o.inputClass instanceof Array&&o.inputClass.forEach(f=>{r[f]=!0})),r}),m=r=>{o.type==="checkbox"?n("update:modelValue",r.target.checked):n("update:modelValue",r.target.value)};return(r,f)=>r.type==="select"?(e.openBlock(),e.createElementBlock("select",{key:0,id:c.value,ref_key:"inputElement",ref:s,class:e.normalizeClass(["border border-primary-stroke px-3 w-full",{"border-danger-base":e.unref(u)||r.invalid,"text-secondary-content":r.modelValue===""||r.modelValue==null,"rounded-full":r.rounded,"rounded-md":!r.rounded,"text-lg":r.large,"py-2.5":r.large,"py-2":!r.large}]),disabled:r.disabled},[r.placeholder?(e.openBlock(),e.createElementBlock("option",{key:0,selected:r.modelValue===""||r.modelValue==null,disabled:"",hidden:""},e.toDisplayString(r.placeholder),9,A)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,i=>(e.openBlock(),e.createElementBlock("option",{selected:i.key===r.modelValue,key:i.key,value:i.key},e.toDisplayString(i.value),9,D))),128))],10,M)):r.type==="textarea"?(e.openBlock(),e.createElementBlock("textarea",{key:1,name:r.name||e.unref(t),id:c.value,value:r.modelValue,onInput:m,rows:"3",class:e.normalizeClass(["border border-primary-stroke px-3 w-full placeholder-gray-400",{"border-danger-base":e.unref(u),"rounded-3xl":r.rounded,"rounded-md":!r.rounded,"text-lg":r.large,"py-2.5":r.large,"py-2":!r.large}]),placeholder:r.placeholder,disabled:r.disabled,readonly:r.readonly,ref_key:"inputElement",ref:s},null,42,z)):r.type==="checkbox"?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("input",{type:r.type,name:r.name||e.unref(t),id:c.value,value:!0,onInput:m,disabled:r.disabled,readonly:r.readonly,class:e.normalizeClass(["rounded-md border border-primary-stroke px-2 py-2 shadow-sm",{"border-danger-base":e.unref(u)||r.invalid}]),checked:r.modelValue===!0,ref_key:"inputElement",ref:s},null,42,T),e.createElementVNode("label",{for:c.value,class:"text-primary-content select-none"},e.toDisplayString(r.placeholder),9,X)])):r.type==="radio"?(e.openBlock(),e.createElementBlock("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,(i,k)=>(e.openBlock(),e.createElementBlock("div",{key:i.key,class:"flex w-full space-x-3 items-center"},[e.createElementVNode("input",{type:"radio",name:r.name||e.unref(t),id:`${c.value}-${k}`,value:i.key,onInput:m,disabled:r.disabled,readonly:r.readonly,class:e.normalizeClass(["rounded-md border border-primary-stroke px-3 py-2 shadow-sm",{"border-danger-base":e.unref(u)||r.invalid}]),checked:i.key===r.modelValue,ref_for:!0,ref_key:"inputElement",ref:s},null,42,H),e.createElementVNode("label",{for:`${c.value}-${k}`,class:"text-primary-content select-none"},e.toDisplayString(i.value),9,J)]))),128))])):(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[r.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{key:0,class:"w-5 h-5 text-primary-content"})):e.createCommentVNode("",!0)]),e.createElementVNode("input",{type:p.value?"text":r.type,name:r.name||e.unref(t),id:c.value,value:r.modelValue,onInput:m,placeholder:r.placeholder,disabled:r.disabled,readonly:r.readonly,class:e.normalizeClass(["border border-primary-stroke w-full px-3 placeholder-gray-400 disabled:bg-gray-50",V.value]),ref_key:"inputElement",ref:s},null,42,R),r.clearable&&g.value?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:E,class:"absolute p-2 px-3 rounded-md h-full flex items-center right-0 top-0 hover:cursor-pointer select-none"},[e.createVNode(e.unref(C.render),{class:"w-5 h-5 text-secondary-content hover:text-primary-base"})])):r.type==="password"?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:f[0]||(f[0]=i=>p.value=!p.value),class:"absolute p-2 px-3 rounded-md h-full flex items-center right-0 top-0 hover:cursor-pointer select-none"},[p.value?(e.openBlock(),e.createBlock(e.unref(L),{key:0,class:"w-5 h-5 text-primary-content hover:text-primary-base"})):(e.openBlock(),e.createBlock(e.unref(j),{key:1,class:"w-5 h-5 text-secondary-content hover:text-primary-base"}))])):e.createCommentVNode("",!0)]))}}),U={class:"space-y-1"},W={key:2,class:"text-xs text-secondary-content select-none"},Y=e.defineComponent({__name:"OneFormField",props:F,setup(d){const l=d,{formId:o,validation:n}=v(),a=e.computed(()=>l.errors!=null&&l.errors.length>0?!0:l.name==null?!1:(n.value??{})[l.name]!=null);return e.provide("BaseFormField",{inputId:e.computed(()=>{const t=o.value||"form";if(l.id!=null)return`${t}-${l.id}`;if(l.name!=null)return`${t}-field-${l.name}`}),inputName:e.computed(()=>l.name),hasError:a}),(t,u)=>(e.openBlock(),e.createElementBlock("div",U,[t.label?(e.openBlock(),e.createBlock(h,{key:0,label:t.label},null,8,["label"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(B)]),a.value?(e.openBlock(),e.createBlock(b,{key:1,errors:t.errors},null,8,["errors"])):t.hint.length>0?(e.openBlock(),e.createElementBlock("p",W,e.toDisplayString(t.hint),1)):e.createCommentVNode("",!0)]))}});exports.OneForm=O;exports.OneFormFeedback=b;exports.OneFormField=Y;exports.OneFormInput=B;exports.OneFormLabel=h;
@@ -220,7 +220,7 @@ const ee = ["id", "disabled"], re = ["selected"], le = ["selected", "value"], ae
220
220
  }, de = ["name", "id", "value", "disabled", "readonly", "checked"], ie = ["for"], ue = {
221
221
  key: 4,
222
222
  class: "relative"
223
- }, pe = { class: "absolute p-2 px-3 rounded-md h-full flex items-center select-none" }, me = ["type", "name", "id", "value", "placeholder", "disabled", "readonly"], ce = /* @__PURE__ */ g({
223
+ }, pe = { class: "absolute p-2 px-3 rounded-md h-full flex items-center select-none pointer-events-none" }, me = ["type", "name", "id", "value", "placeholder", "disabled", "readonly"], ce = /* @__PURE__ */ g({
224
224
  __name: "OneFormInput",
225
225
  props: Q,
226
226
  emits: ["update:modelValue"],
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../_plugin-vue_export-helper-f246444f.cjs"),H=require("../OneBrowserMenu-8b60a8d7.cjs"),q=require("../index-176aeb3b.cjs"),K=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const W={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},app:{type:Object},news:{type:Object}},Q={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},href:{type:String},app:{type:Object},label:{type:String,required:!0},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},Y={sidebarItems:W.items,logoSrc:{type:String},helpUrl:{type:String},app:{type:Object},user:{type:Object,required:!0},labels:{type:Object},apps:{type:Array},workspaces:{type:Array},workspace:{type:Object},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object}},ee=["href"],te={class:"flex flex-nowrap items-center w-full h-[24px]"},oe={key:0,class:"w-[44px] flex-shrink-0"},le={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},ne={class:"py-[8px] pl-0 pr-[8px]"},se={class:"flex flex-nowrap items-center w-full h-[24px]"},re={key:0,class:"w-[44px] flex-shrink-0"},ae={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},ce={class:"py-[8px] pl-0 pr-[8px]"},ie=e.defineComponent({__name:"OneSidebarLink",props:Q,setup(n){const r=n,w=e.computed(()=>r.href!=null?r.href:!1),d=e.computed(()=>r.route!=null?r.route:r.routeName!=null?{name:r.routeName}:"/");return(s,p)=>{const m=e.resolveComponent("RouterLink");return w.value?(e.openBlock(),e.createElementBlock("a",{key:0,href:w.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",[s.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",te,[s.icon?(e.openBlock(),e.createElementBlock("div",oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",le,[e.createElementVNode("span",ne,e.toDisplayString(s.label),1)])])],10,ee)):(e.openBlock(),e.createBlock(m,{key:1,to:d.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",[s.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":s.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":s.exact?"bg-primary-10 !text-primary-base":"",exact:s.exact},{default:e.withCtx(()=>[e.createElementVNode("div",se,[s.icon?(e.openBlock(),e.createElementBlock("div",re,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[e.createElementVNode("span",ce,e.toDisplayString(s.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"]))}}}),de={},pe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},me=e.createElementVNode("path",{d:"M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",fill:"currentColor"},null,-1),ue=e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),Ce=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1),he=[me,ue,Ce];function fe(n,r){return e.openBlock(),e.createElementBlock("svg",pe,he)}const X=P._export_sfc(de,[["render",fe]]);function we(n,r){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})])}function ke(n,r){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}function G(n,r){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z"})])}const ve=n=>(e.pushScopeId("data-v-7d2c4502"),n=n(),e.popScopeId(),n),xe={class:"h-full relative"},_e={class:"space-y-1 p-2 h-full relative"},ge={class:"absolute left-2 bottom-2 right-2"},ye={key:0,class:"ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"},be={class:"flex items-center space-x-2 text-[#525B66]"},Le={class:"text-sm"},Be={class:"text-xs"},Ve=["href"],Ne={class:"flex flex-nowrap items-center w-max h-[24px]"},Ee={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},Se={class:"py-[8px] pl-0 pr-[8px]"},$e=["href"],Oe={class:"flex flex-nowrap items-center w-max h-[24px]"},De={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},je={class:"py-[8px] pl-0 pr-[8px]"},ze={key:3,class:"custom-select ml-3 w-full relative pt-3"},Me={class:"pl-2"},Ie={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},Ae=["onClick"],He={key:0,class:"mt-3 h-0 border-t border-secondary-stroke mb-3"},qe={key:0,class:"tooltip-text"},Pe={class:"flex flex-nowrap items-center w-full h-[24px]"},Fe={class:"w-[44px] flex-shrink-0 relative"},Te={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},Ze={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},Re={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ue={class:"py-[8px] pl-0 pr-[8px]"},We=["href"],Xe={key:0,class:"tooltip-text"},Ge={class:"flex flex-nowrap items-center w-full h-[24px]"},Je={class:"w-[44px] flex-shrink-0 relative"},Ke={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Qe={class:"py-[8px] pl-0 pr-[8px]"},Ye=ve(()=>e.createElementVNode("span",null,"Powered by OneB",-1)),e1=e.defineComponent({__name:"OneSidebar",props:W,emits:["show-news","show-tariff","select-language"],setup(n,{emit:r}){var c,M,k;const w=r,d=n,s=e.computed(()=>{var o;return((o=d.news)==null?void 0:o.unseenCount)||0}),p=()=>{w("show-news")},m=e.ref(!1),a=e.ref((c=d.app)!=null&&c.availableLang&&((M=d.app)==null?void 0:M.availableLang.length)>0?(k=d.app)==null?void 0:k.availableLang.find(o=>{var u;return o.id==((u=d.app)==null?void 0:u.lang)}):null),I=()=>{m.value=!m.value},A=o=>{a.value=o,m.value=!1,w("select-language",o)},t=()=>{var o,u,C,h;console.log("Selected Plan URL:",(u=(o=d.app)==null?void 0:o.selectedPlan)==null?void 0:u.url),(h=(C=d.app)==null?void 0:C.selectedPlan)!=null&&h.url&&(window.location.href=d.app.selectedPlan.url)};return(o,u)=>{var C,h,v,x,_,g,y,b,L,B,V,N,E,S,$,O,D,j,l,f,z,F,T;return e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,i=>(e.openBlock(),e.createBlock(ie,{key:i.label,icon:i.icon,label:i.label,route:i.route,href:i.href,"route-name":i.routeName,exact:i.exact||!1,slim:o.slim},null,8,["icon","label","route","href","route-name","exact","slim"]))),128)),e.createElementVNode("div",ge,[e.createElementVNode("div",{class:e.normalizeClass([o.slim?"hidden":"w-max"])},[(C=o.app)!=null&&C.selectedPlan?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",be,[e.createVNode(e.unref(G),{class:"w-[24px] h-[24px]"}),e.createElementVNode("div",null,[e.createElementVNode("p",Le,e.toDisplayString(((h=o.app)==null?void 0:h.selectedPlan.name)||"Free"),1),e.createElementVNode("p",Be,e.toDisplayString(((v=o.app)==null?void 0:v.selectedPlan.title)||"Тарифний план"),1)])]),e.createElementVNode("div",null,[e.createVNode(q._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(H.render),onClick:t},null,8,["icon"])])])):e.createCommentVNode("",!0),(x=o.app)!=null&&x.terms?(e.openBlock(),e.createElementBlock("a",{key:1,href:(_=o.app)==null?void 0:_.terms.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",Ne,[e.createElementVNode("div",Ee,[e.createElementVNode("span",Se,e.toDisplayString(((g=o.app)==null?void 0:g.terms.label)||"Terms"),1)])])],8,Ve)):e.createCommentVNode("",!0),(y=o.app)!=null&&y.offer?(e.openBlock(),e.createElementBlock("a",{key:2,href:(b=o.app)==null?void 0:b.offer.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",Oe,[e.createElementVNode("div",De,[e.createElementVNode("span",je,e.toDisplayString(((L=o.app)==null?void 0:L.offer.label)||"Offert"),1)])])],8,$e)):e.createCommentVNode("",!0),(V=(B=o.app)==null?void 0:B.availableLang)!=null&&V.length?(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:I},[e.createVNode(e.unref(ke),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((N=a.value)==null?void 0:N.name)+" ",1),e.createElementVNode("span",Me,e.toDisplayString(m.value?"▲":"▼"),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=o.app)==null?void 0:E.availableLang,i=>{var Z,R;return e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":i.id!==((Z=a.value)==null?void 0:Z.id),"text-gray-300":i.id===((R=a.value)==null?void 0:R.id)}]),onClick:U1=>{var U;return i.id!==((U=a.value)==null?void 0:U.id)&&A(i)}},e.toDisplayString(i.name),11,Ae)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),o.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",He)),e.createElementVNode("div",{class:e.normalizeClass(["flex",[o.slim?" grid":"w-max"]])},[o.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[(o.slim,"w-[44px] h-[44px]")]]),onClick:p},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",qe,e.toDisplayString(o.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Pe,[e.createElementVNode("div",Fe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(X),{class:"w-[24px] h-[24px] mx-auto"})),s.value>0?(e.openBlock(),e.createElementBlock("span",Te)):e.createCommentVNode("",!0),s.value>0?(e.openBlock(),e.createElementBlock("span",Ze)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Re,[e.createElementVNode("span",Ue,e.toDisplayString(o.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0),(S=o.app)!=null&&S.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(O=($=o.app)==null?void 0:$.support)==null?void 0:O.url,target:"_blank",class:e.normalizeClass(["text-[#525B66] tooltip flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all",[(o.slim,"w-[44px] h-[44px]")]])},[(j=(D=o.app)==null?void 0:D.support)!=null&&j.label?(e.openBlock(),e.createElementBlock("div",Xe,e.toDisplayString(((f=(l=o.app)==null?void 0:l.support)==null?void 0:f.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ge,[e.createElementVNode("div",Je,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(we)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",Ke,[e.createElementVNode("span",Qe,e.toDisplayString(((F=(z=o.app)==null?void 0:z.support)==null?void 0:F.label)||"Support"),1)])])],10,We)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[o.slim?"hidden":"w-full"],"text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])},[Ye,e.createElementVNode("span",null,e.toDisplayString((T=o.app)==null?void 0:T.version),1)],2)])])])}}});const J=P._export_sfc(e1,[["__scopeId","data-v-7d2c4502"]]);function t1(n,r){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function o1(n,r){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}const l1=n=>(e.pushScopeId("data-v-907ec8fc"),n=n(),e.popScopeId(),n),n1={class:"h-full relative"},s1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(245, 247, 251, 0.80)","backdrop-filter":"blur(5px)"}},r1={class:"p-2 flex-shrink-0"},a1={class:"w-10 h-10 flex items-center flex-shrink-0"},c1=["src"],i1={class:"whitespace-nowrap font-semibold text-xl"},d1={class:"text-xs whitespace-nowrap"},p1={class:"w-full"},m1={class:"w-full flex justify-end pr-3"},u1={class:"flex items-center space-x-1"},C1={key:0,class:"module-border-wrap flex justify-center items-center"},h1={class:"ml-2 hidden sm:flex"},f1=["href"],w1={class:"body w-full h-full"},k1={key:0},v1={key:0,class:"sm:w-[560px] w-full relative h-full"},x1={class:"h-full relative"},_1={class:"flex items-center p-3 space-x-1.5"},g1=l1(()=>e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),y1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},b1={key:0,class:"p-5"},L1={key:1},B1={class:"p-4 text-gray text-center"},V1={key:2},N1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},E1={key:0},S1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},$1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},O1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},D1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},j1={class:"text-lg font-medium"},z1={class:"text-sm text-gray-600"},M1={key:0},I1=["src"],A1={class:"text-sm whitespace-pre-wrap break-words"},H1={key:1},q1=["href"],P1={class:"text-sm flex items-center justify-between mt-1"},F1={class:"text-gray-800"},T1=["href"],Z1=e.defineComponent({__name:"OneMainLayout",props:Y,emits:["load-news","load-tariff","open-tariff"],setup(n,{emit:r}){const w=r,d=n;let s=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),s="1");const p=e.ref(s==="1");e.watch(p,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const m=()=>{window.document.body.offsetWidth<1024&&!p.value&&(p.value=!0)},a=e.ref(!1),I=()=>{a.value=!a.value,a.value&&w("load-news")},A=t=>{var c;(c=d.handlers)==null||c.onSetLang(t)};return(t,c)=>{var k,o,u,C,h,v,x,_,g,y,b,L,B,V,N,E,S,$,O,D,j;const M=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",n1,[e.createElementVNode("div",s1,[e.createElementVNode("div",r1,[e.createElementVNode("button",{onClick:c[0]||(c[0]=l=>p.value=!p.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(t1),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",a1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,c1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(M,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var l,f;return[e.createElementVNode("div",i1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",d1,e.toDisplayString((f=(l=t.app)==null?void 0:l.workspace)==null?void 0:f.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",p1,[e.createElementVNode("div",m1,[e.createElementVNode("div",u1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff?(e.openBlock(),e.createElementBlock("div",C1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:c[1]||(c[1]=(...l)=>{var f,z;return((f=t.handlers)==null?void 0:f.onImproveTariff)&&((z=t.handlers)==null?void 0:z.onImproveTariff(...l))}),style:{"font-size":"10px"}},[e.createVNode(e.unref(G),{class:"h-4 w-4 text-[#e1a308f2]"}),e.createElementVNode("span",h1,e.toDisplayString((k=t.improveTariff)==null?void 0:k.label),1)])])):e.createCommentVNode("",!0),(u=(o=t.app)==null?void 0:o.help)!=null&&u.url?(e.openBlock(),e.createElementBlock("a",{key:1,href:(h=(C=t.app)==null?void 0:C.help)==null?void 0:h.url,target:"_blank",title:"Help",class:"p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"},[e.createVNode(e.unref(o1),{class:"text-secondary-base w-full p-1 hover:text-blue-600"})],8,f1)):e.createCommentVNode("",!0),((v=t.handlers)==null?void 0:v.onBrowse)!=null?(e.openBlock(),e.createBlock(H.OneBrowserMenu,{key:2,workspace:(x=t.app)==null?void 0:x.workspace,apps:((_=t.app)==null?void 0:_.apps)||[],"change-label":((g=t.labels)==null?void 0:g.change)||"Change","apps-title":((y=t.labels)==null?void 0:y.apps)||"Apps","on-app":(b=t.handlers)==null?void 0:b.onApp,"on-change":(L=t.handlers)==null?void 0:L.onChange,onOpen:(B=t.handlers)==null?void 0:B.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(H._sfc_main$2,{user:t.user,app:t.app,"account-label":((V=t.labels)==null?void 0:V.account)||"Account","logout-label":((N=t.labels)==null?void 0:N.logout)||"Logout","version-label":((E=t.labels)==null?void 0:E.version)||"","on-account":(S=t.handlers)==null?void 0:S.onAccount,"on-logout":($=t.handlers)==null?void 0:$.onLogout},null,8,["user","app","account-label","logout-label","version-label","on-account","on-logout"])])])])]),e.createElementVNode("div",{class:e.normalizeClass(["sidebar fixed top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50",[p.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:m},[e.createVNode(J,{slim:p.value,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,onShowNews:I,onSelectLanguage:A},null,8,["slim","app","items","with-news","news"])],2),e.createElementVNode("div",w1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full",[p.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",k1,[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",onClick:c[2]||(c[2]=e.withModifiers(l=>a.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white",[a.value?"sm:w-[560px] w-full":"w-0"]])},[a.value?(e.openBlock(),e.createElementBlock("div",v1,[e.createElementVNode("div",x1,[e.createElementVNode("div",_1,[e.createVNode(X,{class:"w-10 h-10"}),g1,e.createElementVNode("div",null,[e.createVNode(q._sfc_main,{variant:"touch",icon:e.unref(K.render),onClick:c[3]||(c[3]=l=>a.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",y1,[t.news.isLoading&&((O=t.news.items)==null?void 0:O.length)===0?(e.openBlock(),e.createElementBlock("div",b1,[e.createVNode(q.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((D=t.news.items)==null?void 0:D.length)===0?(e.openBlock(),e.createElementBlock("div",L1,[e.createElementVNode("div",B1,e.toDisplayString(t.news.emptyText),1)])):((j=t.news.items)==null?void 0:j.length)>0?(e.openBlock(),e.createElementBlock("div",V1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"p-3"},[e.createElementVNode("div",N1,[e.createElementVNode("div",null,[l.type?(e.openBlock(),e.createElementBlock("div",E1,[l.type===10?(e.openBlock(),e.createElementBlock("span",S1,"update")):l.type===11?(e.openBlock(),e.createElementBlock("span",$1,"warning")):l.type===12?(e.openBlock(),e.createElementBlock("span",O1,"notice")):l.type===13?(e.openBlock(),e.createElementBlock("span",D1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",j1,e.toDisplayString(l.title),1),e.createElementVNode("div",z1,e.toDisplayString(l.summary),1)]),l.image_url?(e.openBlock(),e.createElementBlock("div",M1,[e.createElementVNode("img",{src:l.image_url,alt:"",class:"w-full rounded-md"},null,8,I1)])):e.createCommentVNode("",!0),e.createElementVNode("div",A1,e.toDisplayString(l.body),1),l.video_url?(e.openBlock(),e.createElementBlock("div",H1,[e.createElementVNode("a",{href:l.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,q1)])):e.createCommentVNode("",!0),e.createElementVNode("div",P1,[e.createElementVNode("span",F1,e.toDisplayString(l.published),1),l.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,T1)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const R1=P._export_sfc(Z1,[["__scopeId","data-v-907ec8fc"]]);exports.OneMainLayout=R1;exports.OneSidebar=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),H=require("../_plugin-vue_export-helper-f246444f.cjs"),F=require("../OneBrowserMenu-8b60a8d7.cjs"),A=require("../index-176aeb3b.cjs"),ne=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const ee={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},app:{type:Object},news:{type:Object}},se={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},href:{type:String},app:{type:Object},label:{type:String,required:!0},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},re={sidebarItems:ee.items,logoSrc:{type:String},helpUrl:{type:String},app:{type:Object},user:{type:Object,required:!0},labels:{type:Object},apps:{type:Array},workspaces:{type:Array},workspace:{type:Object},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object}},ae=["href"],ce={class:"flex flex-nowrap items-center w-full h-[24px]"},ie={key:0,class:"w-[44px] flex-shrink-0"},de={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},pe={class:"py-[8px] pl-0 pr-[8px]"},me={class:"flex flex-nowrap items-center w-full h-[24px]"},ue={key:0,class:"w-[44px] flex-shrink-0"},Ce={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},he={class:"py-[8px] pl-0 pr-[8px]"},fe=e.defineComponent({__name:"OneSidebarLink",props:se,setup(n){const s=n,w=e.computed(()=>s.href!=null?s.href:!1),d=e.computed(()=>s.route!=null?s.route:s.routeName!=null?{name:s.routeName}:"/");return(r,p)=>{const m=e.resolveComponent("RouterLink");return w.value?(e.openBlock(),e.createElementBlock("a",{key:0,href:w.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",[r.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",ce,[r.icon?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",de,[e.createElementVNode("span",pe,e.toDisplayString(r.label),1)])])],10,ae)):(e.openBlock(),e.createBlock(m,{key:1,to:d.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",[r.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base",exact:r.exact},{default:e.withCtx(()=>[e.createElementVNode("div",me,[r.icon?(e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ce,[e.createElementVNode("span",he,e.toDisplayString(r.label),1)])])]),_:1},8,["to","exact","class"]))}}}),we={},ke={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ve=e.createElementVNode("path",{d:"M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",fill:"currentColor"},null,-1),xe=e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),_e=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1),ge=[ve,xe,_e];function ye(n,s){return e.openBlock(),e.createElementBlock("svg",ke,ge)}const te=H._export_sfc(we,[["render",ye]]);function be(n,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})])}function Le(n,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}function Be(n,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z"})])}const oe=n=>(e.pushScopeId("data-v-b50c1a4c"),n=n(),e.popScopeId(),n),Ve={class:"h-full relative"},Ee={class:"space-y-1 p-2 h-full relative"},Ne={class:"absolute left-2 bottom-2 right-2"},$e=["href"],Se=oe(()=>e.createElementVNode("div",{class:"absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]"},null,-1)),De={class:"relative rounded-lg bg-[#FFF8E4] px-2 py-3"},Oe={class:"w-[44px] mx-auto"},je={class:"text-center text-xs pt-2"},ze={key:1,class:"ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"},Me={class:"flex items-center space-x-2 text-[#525B66]"},Pe={class:"w-[24px] mx-auto"},Ie={class:"text-sm"},Fe={class:"text-xs"},Ae=["href"],He={class:"flex flex-nowrap items-center w-max h-[24px]"},qe={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},Te={class:"py-[8px] pl-0 pr-[8px]"},Ze=["href"],Re={class:"flex flex-nowrap items-center w-max h-[24px]"},Ue={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},We={class:"py-[8px] pl-0 pr-[8px]"},Xe={key:4,class:"custom-select ml-3 w-full relative pt-3"},Ge={class:"pl-2"},Je={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},Ke=["onClick"],Qe={key:0,class:"mt-3 h-0 border-t border-secondary-stroke mb-3"},Ye={key:0,class:"tooltip-text"},e1={class:"flex flex-nowrap items-center w-full h-[24px]"},t1={class:"w-[44px] flex-shrink-0 relative"},o1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},l1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},n1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},s1={class:"py-[8px] pl-0 pr-[8px]"},r1=["href"],a1={key:0,class:"tooltip-text"},c1={class:"flex flex-nowrap items-center w-full h-[24px]"},i1={class:"w-[44px] flex-shrink-0 relative"},d1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},p1={class:"py-[8px] pl-0 pr-[8px]"},m1=oe(()=>e.createElementVNode("span",null,"Powered by OneB",-1)),u1=e.defineComponent({__name:"OneSidebar",props:ee,emits:["show-news","show-tariff","select-language"],setup(n,{emit:s}){var c,M,k;const w=s,d=n,r=e.computed(()=>{var t;return((t=d.news)==null?void 0:t.unseenCount)||0}),p=()=>{w("show-news")},m=e.ref(!1),a=e.ref((c=d.app)!=null&&c.availableLang&&((M=d.app)==null?void 0:M.availableLang.length)>0?(k=d.app)==null?void 0:k.availableLang.find(t=>{var u;return t.id==((u=d.app)==null?void 0:u.lang)}):null),P=()=>{m.value=!m.value},I=t=>{a.value=t,m.value=!1,w("select-language",t)},o=()=>{var t,u,C,h;console.log("Selected Plan URL:",(u=(t=d.app)==null?void 0:t.selectedPlan)==null?void 0:u.url),(h=(C=d.app)==null?void 0:C.selectedPlan)!=null&&h.url&&(window.location.href=d.app.selectedPlan.url)};return(t,u)=>{var C,h,v,x,_,g,y,b,L,B,V,E,N,$,S,D,O,j,l,f,z,q,T,Z,R,U,W,X,G,J;return e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,i=>(e.openBlock(),e.createBlock(fe,{key:i.label,icon:i.icon,label:i.label,route:i.route,href:i.href,"route-name":i.routeName,exact:i.exact||!1,slim:t.slim},null,8,["icon","label","route","href","route-name","exact","slim"]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",{class:e.normalizeClass([t.slim?"hidden":"w-max"])},[(C=t.app)!=null&&C.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(h=t.app)==null?void 0:h.offerPlan.url,class:"relative w-[220px] ml-3 border rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",target:"_blank",rel:"noopener noreferrer"},[Se,e.createElementVNode("div",De,[e.createElementVNode("div",Oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((v=t.app)==null?void 0:v.offerPlan.icon),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("p",je,e.toDisplayString((x=t.app)==null?void 0:x.offerPlan.title)+" «"+e.toDisplayString((_=t.app)==null?void 0:_.offerPlan.name)+"» "+e.toDisplayString((g=t.app)==null?void 0:g.offerPlan.title1),1)])],8,$e)):e.createCommentVNode("",!0),(y=t.app)!=null&&y.selectedPlan?(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Me,[e.createElementVNode("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((b=t.app)==null?void 0:b.offerPlan.icon),{class:"w-[24px] h-[24px]"}))]),e.createElementVNode("div",null,[e.createElementVNode("p",Ie,e.toDisplayString(((L=t.app)==null?void 0:L.selectedPlan.name)||"Free"),1),e.createElementVNode("p",Fe,e.toDisplayString(((B=t.app)==null?void 0:B.selectedPlan.title)||"Тарифний план"),1)])]),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(F.render),onClick:o},null,8,["icon"])])])):e.createCommentVNode("",!0),(V=t.app)!=null&&V.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(E=t.app)==null?void 0:E.terms.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",He,[e.createElementVNode("div",qe,[e.createElementVNode("span",Te,e.toDisplayString(((N=t.app)==null?void 0:N.terms.label)||"Terms"),1)])])],8,Ae)):e.createCommentVNode("",!0),($=t.app)!=null&&$.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(S=t.app)==null?void 0:S.offer.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",Re,[e.createElementVNode("div",Ue,[e.createElementVNode("span",We,e.toDisplayString(((D=t.app)==null?void 0:D.offer.label)||"Offert"),1)])])],8,Ze)):e.createCommentVNode("",!0),(j=(O=t.app)==null?void 0:O.availableLang)!=null&&j.length?(e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:P},[e.createVNode(e.unref(Le),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((l=a.value)==null?void 0:l.name)+" ",1),e.createElementVNode("span",Ge,e.toDisplayString(m.value?"▲":"▼"),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((f=t.app)==null?void 0:f.availableLang,i=>{var K,Q;return e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":i.id!==((K=a.value)==null?void 0:K.id),"text-gray-300":i.id===((Q=a.value)==null?void 0:Q.id)}]),onClick:st=>{var Y;return i.id!==((Y=a.value)==null?void 0:Y.id)&&I(i)}},e.toDisplayString(i.name),11,Ke)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qe)),e.createElementVNode("div",{class:e.normalizeClass(["flex",[t.slim?" grid":"w-max"]])},[t.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[(t.slim,"w-[44px] h-[44px]")]]),onClick:p},[t.news.menuLabel?(e.openBlock(),e.createElementBlock("div",Ye,e.toDisplayString(t.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",e1,[e.createElementVNode("div",t1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(te),{class:"w-[24px] h-[24px] mx-auto"})),r.value>0?(e.openBlock(),e.createElementBlock("span",o1)):e.createCommentVNode("",!0),r.value>0?(e.openBlock(),e.createElementBlock("span",l1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",n1,[e.createElementVNode("span",s1,e.toDisplayString(t.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0),(z=t.app)!=null&&z.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(T=(q=t.app)==null?void 0:q.support)==null?void 0:T.url,target:"_blank",class:e.normalizeClass(["text-[#525B66] tooltip flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all",[(t.slim,"w-[44px] h-[44px]")]])},[(R=(Z=t.app)==null?void 0:Z.support)!=null&&R.label?(e.openBlock(),e.createElementBlock("div",a1,e.toDisplayString(((W=(U=t.app)==null?void 0:U.support)==null?void 0:W.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",c1,[e.createElementVNode("div",i1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(be)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",d1,[e.createElementVNode("span",p1,e.toDisplayString(((G=(X=t.app)==null?void 0:X.support)==null?void 0:G.label)||"Support"),1)])])],10,r1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[t.slim?"hidden":"w-full"],"text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])},[m1,e.createElementVNode("span",null,e.toDisplayString((J=t.app)==null?void 0:J.version),1)],2)])])])}}});const le=H._export_sfc(u1,[["__scopeId","data-v-b50c1a4c"]]);function C1(n,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function h1(n,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}const f1=n=>(e.pushScopeId("data-v-907ec8fc"),n=n(),e.popScopeId(),n),w1={class:"h-full relative"},k1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(245, 247, 251, 0.80)","backdrop-filter":"blur(5px)"}},v1={class:"p-2 flex-shrink-0"},x1={class:"w-10 h-10 flex items-center flex-shrink-0"},_1=["src"],g1={class:"whitespace-nowrap font-semibold text-xl"},y1={class:"text-xs whitespace-nowrap"},b1={class:"w-full"},L1={class:"w-full flex justify-end pr-3"},B1={class:"flex items-center space-x-1"},V1={key:0,class:"module-border-wrap flex justify-center items-center"},E1={class:"ml-2 hidden sm:flex"},N1=["href"],$1={class:"body w-full h-full"},S1={key:0},D1={key:0,class:"sm:w-[560px] w-full relative h-full"},O1={class:"h-full relative"},j1={class:"flex items-center p-3 space-x-1.5"},z1=f1(()=>e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),M1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},P1={key:0,class:"p-5"},I1={key:1},F1={class:"p-4 text-gray text-center"},A1={key:2},H1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},q1={key:0},T1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},Z1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},R1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},U1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},W1={class:"text-lg font-medium"},X1={class:"text-sm text-gray-600"},G1={key:0},J1=["src"],K1={class:"text-sm whitespace-pre-wrap break-words"},Q1={key:1},Y1=["href"],et={class:"text-sm flex items-center justify-between mt-1"},tt={class:"text-gray-800"},ot=["href"],lt=e.defineComponent({__name:"OneMainLayout",props:re,emits:["load-news","load-tariff","open-tariff"],setup(n,{emit:s}){const w=s,d=n;let r=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),r="1");const p=e.ref(r==="1");e.watch(p,o=>{window.localStorage.setItem("sidebar-slim",String(o?1:0))});const m=()=>{window.document.body.offsetWidth<1024&&!p.value&&(p.value=!0)},a=e.ref(!1),P=()=>{a.value=!a.value,a.value&&w("load-news")},I=o=>{var c;(c=d.handlers)==null||c.onSetLang(o)};return(o,c)=>{var k,t,u,C,h,v,x,_,g,y,b,L,B,V,E,N,$,S,D,O,j;const M=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",w1,[e.createElementVNode("div",k1,[e.createElementVNode("div",v1,[e.createElementVNode("button",{onClick:c[0]||(c[0]=l=>p.value=!p.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(C1),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",x1,[o.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,_1)):e.createCommentVNode("",!0)]),o.app!=null?(e.openBlock(),e.createBlock(M,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var l,f;return[e.createElementVNode("div",g1,e.toDisplayString(o.app.name),1),e.createElementVNode("div",y1,e.toDisplayString((f=(l=o.app)==null?void 0:l.workspace)==null?void 0:f.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",b1,[e.createElementVNode("div",L1,[e.createElementVNode("div",B1,[e.renderSlot(o.$slots,"before-header-menu",{},void 0,!0),o.improveTariff?(e.openBlock(),e.createElementBlock("div",V1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:c[1]||(c[1]=(...l)=>{var f,z;return((f=o.handlers)==null?void 0:f.onImproveTariff)&&((z=o.handlers)==null?void 0:z.onImproveTariff(...l))}),style:{"font-size":"10px"}},[e.createVNode(e.unref(Be),{class:"h-4 w-4 text-[#e1a308f2]"}),e.createElementVNode("span",E1,e.toDisplayString((k=o.improveTariff)==null?void 0:k.label),1)])])):e.createCommentVNode("",!0),(u=(t=o.app)==null?void 0:t.help)!=null&&u.url?(e.openBlock(),e.createElementBlock("a",{key:1,href:(h=(C=o.app)==null?void 0:C.help)==null?void 0:h.url,target:"_blank",title:"Help",class:"p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"},[e.createVNode(e.unref(h1),{class:"text-secondary-base w-full p-1 hover:text-blue-600"})],8,N1)):e.createCommentVNode("",!0),((v=o.handlers)==null?void 0:v.onBrowse)!=null?(e.openBlock(),e.createBlock(F.OneBrowserMenu,{key:2,workspace:(x=o.app)==null?void 0:x.workspace,apps:((_=o.app)==null?void 0:_.apps)||[],"change-label":((g=o.labels)==null?void 0:g.change)||"Change","apps-title":((y=o.labels)==null?void 0:y.apps)||"Apps","on-app":(b=o.handlers)==null?void 0:b.onApp,"on-change":(L=o.handlers)==null?void 0:L.onChange,onOpen:(B=o.handlers)==null?void 0:B.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(F._sfc_main$2,{user:o.user,app:o.app,"account-label":((V=o.labels)==null?void 0:V.account)||"Account","logout-label":((E=o.labels)==null?void 0:E.logout)||"Logout","version-label":((N=o.labels)==null?void 0:N.version)||"","on-account":($=o.handlers)==null?void 0:$.onAccount,"on-logout":(S=o.handlers)==null?void 0:S.onLogout},null,8,["user","app","account-label","logout-label","version-label","on-account","on-logout"])])])])]),e.createElementVNode("div",{class:e.normalizeClass(["sidebar fixed top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50",[p.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:m},[e.createVNode(le,{slim:p.value,app:o.app,items:o.sidebarItems,"with-news":o.news!=null,news:o.news,onShowNews:P,onSelectLanguage:I},null,8,["slim","app","items","with-news","news"])],2),e.createElementVNode("div",$1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full",[p.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(o.$slots,"default",{},void 0,!0)],2)]),o.news?(e.openBlock(),e.createElementBlock("div",S1,[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",onClick:c[2]||(c[2]=e.withModifiers(l=>a.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white",[a.value?"sm:w-[560px] w-full":"w-0"]])},[a.value?(e.openBlock(),e.createElementBlock("div",D1,[e.createElementVNode("div",O1,[e.createElementVNode("div",j1,[e.createVNode(te,{class:"w-10 h-10"}),z1,e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{variant:"touch",icon:e.unref(ne.render),onClick:c[3]||(c[3]=l=>a.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",M1,[o.news.isLoading&&((D=o.news.items)==null?void 0:D.length)===0?(e.openBlock(),e.createElementBlock("div",P1,[e.createVNode(A.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((O=o.news.items)==null?void 0:O.length)===0?(e.openBlock(),e.createElementBlock("div",I1,[e.createElementVNode("div",F1,e.toDisplayString(o.news.emptyText),1)])):((j=o.news.items)==null?void 0:j.length)>0?(e.openBlock(),e.createElementBlock("div",A1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.news.items,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"p-3"},[e.createElementVNode("div",H1,[e.createElementVNode("div",null,[l.type?(e.openBlock(),e.createElementBlock("div",q1,[l.type===10?(e.openBlock(),e.createElementBlock("span",T1,"update")):l.type===11?(e.openBlock(),e.createElementBlock("span",Z1,"warning")):l.type===12?(e.openBlock(),e.createElementBlock("span",R1,"notice")):l.type===13?(e.openBlock(),e.createElementBlock("span",U1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",W1,e.toDisplayString(l.title),1),e.createElementVNode("div",X1,e.toDisplayString(l.summary),1)]),l.image_url?(e.openBlock(),e.createElementBlock("div",G1,[e.createElementVNode("img",{src:l.image_url,alt:"",class:"w-full rounded-md"},null,8,J1)])):e.createCommentVNode("",!0),e.createElementVNode("div",K1,e.toDisplayString(l.body),1),l.video_url?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("a",{href:l.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(o.news.openVideoText),9,Y1)])):e.createCommentVNode("",!0),e.createElementVNode("div",et,[e.createElementVNode("span",tt,e.toDisplayString(l.published),1),l.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(o.news.moreText),9,ot)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const nt=H._export_sfc(lt,[["__scopeId","data-v-907ec8fc"]]);exports.OneMainLayout=nt;exports.OneSidebar=le;
@@ -1,10 +1,10 @@
1
- import { defineComponent as X, computed as J, resolveComponent as a1, openBlock as t, createElementBlock as l, normalizeClass as m, createElementVNode as e, createBlock as L, resolveDynamicComponent as D, createCommentVNode as n, toDisplayString as r, withCtx as r1, ref as U, Fragment as K, renderList as Q, createVNode as w, unref as y, createTextVNode as C1, pushScopeId as i1, popScopeId as p1, watch as f1, renderSlot as n1, withModifiers as w1 } from "vue";
1
+ import { defineComponent as X, computed as J, resolveComponent as h1, openBlock as t, createElementBlock as o, normalizeClass as w, createElementVNode as e, createBlock as v, resolveDynamicComponent as $, createCommentVNode as n, toDisplayString as r, withCtx as C1, ref as U, Fragment as K, renderList as Q, createVNode as m, unref as k, createTextVNode as b1, pushScopeId as f1, popScopeId as w1, watch as g1, renderSlot as u1, withModifiers as y1 } from "vue";
2
2
  import { _ as Y } from "../_plugin-vue_export-helper-dad06003.js";
3
- import { r as m1, O as v1, b as x1 } from "../OneBrowserMenu-954210ad.js";
4
- import { _ as d1, S as _1 } from "../index-3f2d6084.js";
5
- import { r as b1 } from "../XMarkIcon-51ef0691.js";
3
+ import { r as L1, O as k1, b as $1 } from "../OneBrowserMenu-954210ad.js";
4
+ import { _ as m1, S as S1 } from "../index-3f2d6084.js";
5
+ import { r as O1 } from "../XMarkIcon-51ef0691.js";
6
6
  import "../common/index.js";
7
- const c1 = {
7
+ const v1 = {
8
8
  items: {
9
9
  required: !0,
10
10
  type: Array
@@ -19,7 +19,7 @@ const c1 = {
19
19
  news: {
20
20
  type: Object
21
21
  }
22
- }, g1 = {
22
+ }, B1 = {
23
23
  route: {
24
24
  required: !1,
25
25
  type: [Object, String]
@@ -58,8 +58,8 @@ const c1 = {
58
58
  type: Boolean,
59
59
  default: !0
60
60
  }
61
- }, y1 = {
62
- sidebarItems: c1.items,
61
+ }, j1 = {
62
+ sidebarItems: v1.items,
63
63
  logoSrc: {
64
64
  type: String
65
65
  },
@@ -97,82 +97,82 @@ const c1 = {
97
97
  improveTariff: {
98
98
  type: Object
99
99
  }
100
- }, L1 = ["href"], k1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, $1 = {
100
+ }, M1 = ["href"], P1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, V1 = {
101
101
  key: 0,
102
102
  class: "w-[44px] flex-shrink-0"
103
- }, S1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, O1 = { class: "py-[8px] pl-0 pr-[8px]" }, B1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, j1 = {
103
+ }, z1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, A1 = { class: "py-[8px] pl-0 pr-[8px]" }, F1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, I1 = {
104
104
  key: 0,
105
105
  class: "w-[44px] flex-shrink-0"
106
- }, M1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, V1 = { class: "py-[8px] pl-0 pr-[8px]" }, z1 = /* @__PURE__ */ X({
106
+ }, H1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, N1 = { class: "py-[8px] pl-0 pr-[8px]" }, T1 = /* @__PURE__ */ X({
107
107
  __name: "OneSidebarLink",
108
- props: g1,
108
+ props: B1,
109
109
  setup(i) {
110
- const d = i, k = J(() => d.href != null ? d.href : !1), C = J(() => d.route != null ? d.route : d.routeName != null ? { name: d.routeName } : "/");
111
- return (p, f) => {
112
- const v = a1("RouterLink");
113
- return k.value ? (t(), l("a", {
110
+ const p = i, L = J(() => p.href != null ? p.href : !1), C = J(() => p.route != null ? p.route : p.routeName != null ? { name: p.routeName } : "/");
111
+ return (d, f) => {
112
+ const x = h1("RouterLink");
113
+ return L.value ? (t(), o("a", {
114
114
  key: 0,
115
- href: k.value,
116
- class: m(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [p.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
115
+ href: L.value,
116
+ class: w(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [d.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
117
117
  }, [
118
- e("div", k1, [
119
- p.icon ? (t(), l("div", $1, [
120
- (t(), L(D(p.icon), { class: "w-[24px] h-[24px] mx-auto" }))
118
+ e("div", P1, [
119
+ d.icon ? (t(), o("div", V1, [
120
+ (t(), v($(d.icon), { class: "w-[24px] h-[24px] mx-auto" }))
121
121
  ])) : n("", !0),
122
- e("div", S1, [
123
- e("span", O1, r(p.label), 1)
122
+ e("div", z1, [
123
+ e("span", A1, r(d.label), 1)
124
124
  ])
125
125
  ])
126
- ], 10, L1)) : (t(), L(v, {
126
+ ], 10, M1)) : (t(), v(x, {
127
127
  key: 1,
128
128
  to: C.value,
129
- class: m(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [p.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
130
- "active-class": p.exact ? "" : "bg-primary-10 !text-primary-base",
131
- "exact-active-class": p.exact ? "bg-primary-10 !text-primary-base" : "",
132
- exact: p.exact
129
+ class: w(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [d.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
130
+ "active-class": "bg-primary-10 !text-primary-base",
131
+ "exact-active-class": "bg-primary-10 !text-primary-base",
132
+ exact: d.exact
133
133
  }, {
134
- default: r1(() => [
135
- e("div", B1, [
136
- p.icon ? (t(), l("div", j1, [
137
- (t(), L(D(p.icon), { class: "w-[24px] h-[24px] mx-auto" }))
134
+ default: C1(() => [
135
+ e("div", F1, [
136
+ d.icon ? (t(), o("div", I1, [
137
+ (t(), v($(d.icon), { class: "w-[24px] h-[24px] mx-auto" }))
138
138
  ])) : n("", !0),
139
- e("div", M1, [
140
- e("span", V1, r(p.label), 1)
139
+ e("div", H1, [
140
+ e("span", N1, r(d.label), 1)
141
141
  ])
142
142
  ])
143
143
  ]),
144
144
  _: 1
145
- }, 8, ["to", "active-class", "exact-active-class", "exact", "class"]));
145
+ }, 8, ["to", "exact", "class"]));
146
146
  };
147
147
  }
148
- }), A1 = {}, I1 = {
148
+ }), E1 = {}, q1 = {
149
149
  xmlns: "http://www.w3.org/2000/svg",
150
150
  width: "24",
151
151
  height: "24",
152
152
  viewBox: "0 0 24 24",
153
153
  fill: "none"
154
- }, H1 = /* @__PURE__ */ e("path", {
154
+ }, Z1 = /* @__PURE__ */ e("path", {
155
155
  d: "M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",
156
156
  fill: "currentColor"
157
- }, null, -1), N1 = /* @__PURE__ */ e("path", {
157
+ }, null, -1), R1 = /* @__PURE__ */ e("path", {
158
158
  d: "M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",
159
159
  fill: "currentColor"
160
- }, null, -1), P1 = /* @__PURE__ */ e("path", {
160
+ }, null, -1), D1 = /* @__PURE__ */ e("path", {
161
161
  "fill-rule": "evenodd",
162
162
  "clip-rule": "evenodd",
163
163
  d: "M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",
164
164
  fill: "currentColor"
165
- }, null, -1), T1 = [
166
- H1,
167
- N1,
168
- P1
165
+ }, null, -1), U1 = [
166
+ Z1,
167
+ R1,
168
+ D1
169
169
  ];
170
- function F1(i, d) {
171
- return t(), l("svg", I1, T1);
170
+ function W1(i, p) {
171
+ return t(), o("svg", q1, U1);
172
172
  }
173
- const u1 = /* @__PURE__ */ Y(A1, [["render", F1]]);
174
- function q1(i, d) {
175
- return t(), l("svg", {
173
+ const x1 = /* @__PURE__ */ Y(E1, [["render", W1]]);
174
+ function G1(i, p) {
175
+ return t(), o("svg", {
176
176
  xmlns: "http://www.w3.org/2000/svg",
177
177
  fill: "none",
178
178
  viewBox: "0 0 24 24",
@@ -187,8 +187,8 @@ function q1(i, d) {
187
187
  })
188
188
  ]);
189
189
  }
190
- function Z1(i, d) {
191
- return t(), l("svg", {
190
+ function J1(i, p) {
191
+ return t(), o("svg", {
192
192
  xmlns: "http://www.w3.org/2000/svg",
193
193
  fill: "none",
194
194
  viewBox: "0 0 24 24",
@@ -203,8 +203,8 @@ function Z1(i, d) {
203
203
  })
204
204
  ]);
205
205
  }
206
- function h1(i, d) {
207
- return t(), l("svg", {
206
+ function K1(i, p) {
207
+ return t(), o("svg", {
208
208
  xmlns: "http://www.w3.org/2000/svg",
209
209
  fill: "none",
210
210
  viewBox: "0 0 24 24",
@@ -224,57 +224,57 @@ function h1(i, d) {
224
224
  })
225
225
  ]);
226
226
  }
227
- const R1 = (i) => (i1("data-v-7d2c4502"), i = i(), p1(), i), E1 = { class: "h-full relative" }, D1 = { class: "space-y-1 p-2 h-full relative" }, U1 = { class: "absolute left-2 bottom-2 right-2" }, W1 = {
228
- key: 0,
227
+ const _1 = (i) => (f1("data-v-b50c1a4c"), i = i(), w1(), i), Q1 = { class: "h-full relative" }, X1 = { class: "space-y-1 p-2 h-full relative" }, Y1 = { class: "absolute left-2 bottom-2 right-2" }, ee = ["href"], te = /* @__PURE__ */ _1(() => /* @__PURE__ */ e("div", { class: "absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]" }, null, -1)), se = { class: "relative rounded-lg bg-[#FFF8E4] px-2 py-3" }, le = { class: "w-[44px] mx-auto" }, oe = { class: "text-center text-xs pt-2" }, ne = {
228
+ key: 1,
229
229
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"
230
- }, G1 = { class: "flex items-center space-x-2 text-[#525B66]" }, J1 = { class: "text-sm" }, K1 = { class: "text-xs" }, Q1 = ["href"], X1 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Y1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, e0 = { class: "py-[8px] pl-0 pr-[8px]" }, t0 = ["href"], s0 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, l0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, o0 = { class: "py-[8px] pl-0 pr-[8px]" }, n0 = {
231
- key: 3,
230
+ }, ae = { class: "flex items-center space-x-2 text-[#525B66]" }, re = { class: "w-[24px] mx-auto" }, ie = { class: "text-sm" }, pe = { class: "text-xs" }, de = ["href"], ce = { class: "flex flex-nowrap items-center w-max h-[24px]" }, ue = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, he = { class: "py-[8px] pl-0 pr-[8px]" }, Ce = ["href"], fe = { class: "flex flex-nowrap items-center w-max h-[24px]" }, we = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, me = { class: "py-[8px] pl-0 pr-[8px]" }, ve = {
231
+ key: 4,
232
232
  class: "custom-select ml-3 w-full relative pt-3"
233
- }, a0 = { class: "pl-2" }, r0 = {
233
+ }, xe = { class: "pl-2" }, _e = {
234
234
  key: 0,
235
235
  class: "dropdown w-[220px] z-10 text-[#525B66]"
236
- }, i0 = ["onClick"], p0 = {
236
+ }, be = ["onClick"], ge = {
237
237
  key: 0,
238
238
  class: "mt-3 h-0 border-t border-secondary-stroke mb-3"
239
- }, d0 = {
239
+ }, ye = {
240
240
  key: 0,
241
241
  class: "tooltip-text"
242
- }, c0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, u0 = { class: "w-[44px] flex-shrink-0 relative" }, h0 = {
242
+ }, Le = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ke = { class: "w-[44px] flex-shrink-0 relative" }, $e = {
243
243
  key: 0,
244
244
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
245
- }, C0 = {
245
+ }, Se = {
246
246
  key: 1,
247
247
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
248
- }, f0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, w0 = { class: "py-[8px] pl-0 pr-[8px]" }, m0 = ["href"], v0 = {
248
+ }, Oe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Be = { class: "py-[8px] pl-0 pr-[8px]" }, je = ["href"], Me = {
249
249
  key: 0,
250
250
  class: "tooltip-text"
251
- }, x0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, _0 = { class: "w-[44px] flex-shrink-0 relative" }, b0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, g0 = { class: "py-[8px] pl-0 pr-[8px]" }, y0 = /* @__PURE__ */ R1(() => /* @__PURE__ */ e("span", null, "Powered by OneB", -1)), L0 = /* @__PURE__ */ X({
251
+ }, Pe = { class: "flex flex-nowrap items-center w-full h-[24px]" }, Ve = { class: "w-[44px] flex-shrink-0 relative" }, ze = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ae = { class: "py-[8px] pl-0 pr-[8px]" }, Fe = /* @__PURE__ */ _1(() => /* @__PURE__ */ e("span", null, "Powered by OneB", -1)), Ie = /* @__PURE__ */ X({
252
252
  __name: "OneSidebar",
253
- props: c1,
253
+ props: v1,
254
254
  emits: ["show-news", "show-tariff", "select-language"],
255
- setup(i, { emit: d }) {
256
- var u, E, $;
257
- const k = d, C = i, p = J(() => {
258
- var o;
259
- return ((o = C.news) == null ? void 0 : o.unseenCount) || 0;
255
+ setup(i, { emit: p }) {
256
+ var u, D, S;
257
+ const L = p, C = i, d = J(() => {
258
+ var s;
259
+ return ((s = C.news) == null ? void 0 : s.unseenCount) || 0;
260
260
  }), f = () => {
261
- k("show-news");
262
- }, v = U(!1), c = U((u = C.app) != null && u.availableLang && ((E = C.app) == null ? void 0 : E.availableLang.length) > 0 ? ($ = C.app) == null ? void 0 : $.availableLang.find((o) => {
263
- var x;
264
- return o.id == ((x = C.app) == null ? void 0 : x.lang);
261
+ L("show-news");
262
+ }, x = U(!1), c = U((u = C.app) != null && u.availableLang && ((D = C.app) == null ? void 0 : D.availableLang.length) > 0 ? (S = C.app) == null ? void 0 : S.availableLang.find((s) => {
263
+ var _;
264
+ return s.id == ((_ = C.app) == null ? void 0 : _.lang);
265
265
  }) : null), W = () => {
266
- v.value = !v.value;
267
- }, G = (o) => {
268
- c.value = o, v.value = !1, k("select-language", o);
269
- }, s = () => {
270
- var o, x, _, b;
271
- console.log("Selected Plan URL:", (x = (o = C.app) == null ? void 0 : o.selectedPlan) == null ? void 0 : x.url), (b = (_ = C.app) == null ? void 0 : _.selectedPlan) != null && b.url && (window.location.href = C.app.selectedPlan.url);
266
+ x.value = !x.value;
267
+ }, G = (s) => {
268
+ c.value = s, x.value = !1, L("select-language", s);
269
+ }, l = () => {
270
+ var s, _, b, g;
271
+ console.log("Selected Plan URL:", (_ = (s = C.app) == null ? void 0 : s.selectedPlan) == null ? void 0 : _.url), (g = (b = C.app) == null ? void 0 : b.selectedPlan) != null && g.url && (window.location.href = C.app.selectedPlan.url);
272
272
  };
273
- return (o, x) => {
274
- var _, b, S, O, B, j, M, V, z, A, I, H, N, P, T, F, q, Z, a, g, R, e1, t1;
275
- return t(), l("div", E1, [
276
- e("div", D1, [
277
- (t(!0), l(K, null, Q(o.items, (h) => (t(), L(z1, {
273
+ return (s, _) => {
274
+ var b, g, O, B, j, M, P, V, z, A, F, I, H, N, T, E, q, Z, a, y, R, e1, t1, s1, l1, o1, n1, a1, r1, i1;
275
+ return t(), o("div", Q1, [
276
+ e("div", X1, [
277
+ (t(!0), o(K, null, Q(s.items, (h) => (t(), v(T1, {
278
278
  key: h.label,
279
279
  icon: h.icon,
280
280
  label: h.label,
@@ -282,121 +282,138 @@ const R1 = (i) => (i1("data-v-7d2c4502"), i = i(), p1(), i), E1 = { class: "h-fu
282
282
  href: h.href,
283
283
  "route-name": h.routeName,
284
284
  exact: h.exact || !1,
285
- slim: o.slim
285
+ slim: s.slim
286
286
  }, null, 8, ["icon", "label", "route", "href", "route-name", "exact", "slim"]))), 128)),
287
- e("div", U1, [
287
+ e("div", Y1, [
288
288
  e("div", {
289
- class: m([o.slim ? "hidden" : "w-max"])
289
+ class: w([s.slim ? "hidden" : "w-max"])
290
290
  }, [
291
- (_ = o.app) != null && _.selectedPlan ? (t(), l("div", W1, [
292
- e("div", G1, [
293
- w(y(h1), { class: "w-[24px] h-[24px]" }),
291
+ (b = s.app) != null && b.offerPlan ? (t(), o("a", {
292
+ key: 0,
293
+ href: (g = s.app) == null ? void 0 : g.offerPlan.url,
294
+ class: "relative w-[220px] ml-3 border rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",
295
+ target: "_blank",
296
+ rel: "noopener noreferrer"
297
+ }, [
298
+ te,
299
+ e("div", se, [
300
+ e("div", le, [
301
+ (t(), v($((O = s.app) == null ? void 0 : O.offerPlan.icon), { class: "w-[24px] h-[24px] mx-auto" }))
302
+ ]),
303
+ e("p", oe, r((B = s.app) == null ? void 0 : B.offerPlan.title) + " «" + r((j = s.app) == null ? void 0 : j.offerPlan.name) + "» " + r((M = s.app) == null ? void 0 : M.offerPlan.title1), 1)
304
+ ])
305
+ ], 8, ee)) : n("", !0),
306
+ (P = s.app) != null && P.selectedPlan ? (t(), o("div", ne, [
307
+ e("div", ae, [
308
+ e("div", re, [
309
+ (t(), v($((V = s.app) == null ? void 0 : V.offerPlan.icon), { class: "w-[24px] h-[24px]" }))
310
+ ]),
294
311
  e("div", null, [
295
- e("p", J1, r(((b = o.app) == null ? void 0 : b.selectedPlan.name) || "Free"), 1),
296
- e("p", K1, r(((S = o.app) == null ? void 0 : S.selectedPlan.title) || "Тарифний план"), 1)
312
+ e("p", ie, r(((z = s.app) == null ? void 0 : z.selectedPlan.name) || "Free"), 1),
313
+ e("p", pe, r(((A = s.app) == null ? void 0 : A.selectedPlan.title) || "Тарифний план"), 1)
297
314
  ])
298
315
  ]),
299
316
  e("div", null, [
300
- w(d1, {
317
+ m(m1, {
301
318
  class: "text-[#525B66] hover:text-[#4089E0]",
302
319
  variant: "touch",
303
- icon: y(m1),
304
- onClick: s
320
+ icon: k(L1),
321
+ onClick: l
305
322
  }, null, 8, ["icon"])
306
323
  ])
307
324
  ])) : n("", !0),
308
- (O = o.app) != null && O.terms ? (t(), l("a", {
309
- key: 1,
310
- href: (B = o.app) == null ? void 0 : B.terms.url,
325
+ (F = s.app) != null && F.terms ? (t(), o("a", {
326
+ key: 2,
327
+ href: (I = s.app) == null ? void 0 : I.terms.url,
311
328
  target: "_blank",
312
329
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
313
330
  }, [
314
- e("div", X1, [
315
- e("div", Y1, [
316
- e("span", e0, r(((j = o.app) == null ? void 0 : j.terms.label) || "Terms"), 1)
331
+ e("div", ce, [
332
+ e("div", ue, [
333
+ e("span", he, r(((H = s.app) == null ? void 0 : H.terms.label) || "Terms"), 1)
317
334
  ])
318
335
  ])
319
- ], 8, Q1)) : n("", !0),
320
- (M = o.app) != null && M.offer ? (t(), l("a", {
321
- key: 2,
322
- href: (V = o.app) == null ? void 0 : V.offer.url,
336
+ ], 8, de)) : n("", !0),
337
+ (N = s.app) != null && N.offer ? (t(), o("a", {
338
+ key: 3,
339
+ href: (T = s.app) == null ? void 0 : T.offer.url,
323
340
  target: "_blank",
324
341
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
325
342
  }, [
326
- e("div", s0, [
327
- e("div", l0, [
328
- e("span", o0, r(((z = o.app) == null ? void 0 : z.offer.label) || "Offert"), 1)
343
+ e("div", fe, [
344
+ e("div", we, [
345
+ e("span", me, r(((E = s.app) == null ? void 0 : E.offer.label) || "Offert"), 1)
329
346
  ])
330
347
  ])
331
- ], 8, t0)) : n("", !0),
332
- (I = (A = o.app) == null ? void 0 : A.availableLang) != null && I.length ? (t(), l("div", n0, [
348
+ ], 8, Ce)) : n("", !0),
349
+ (Z = (q = s.app) == null ? void 0 : q.availableLang) != null && Z.length ? (t(), o("div", ve, [
333
350
  e("div", {
334
351
  class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
335
352
  onClick: W
336
353
  }, [
337
- w(y(Z1), { class: "w-4" }),
338
- C1(" " + r((H = c.value) == null ? void 0 : H.name) + " ", 1),
339
- e("span", a0, r(v.value ? "▲" : "▼"), 1)
354
+ m(k(J1), { class: "w-4" }),
355
+ b1(" " + r((a = c.value) == null ? void 0 : a.name) + " ", 1),
356
+ e("span", xe, r(x.value ? "▲" : "▼"), 1)
340
357
  ]),
341
- v.value ? (t(), l("div", r0, [
342
- (t(!0), l(K, null, Q((N = o.app) == null ? void 0 : N.availableLang, (h) => {
343
- var s1, l1;
344
- return t(), l("div", {
358
+ x.value ? (t(), o("div", _e, [
359
+ (t(!0), o(K, null, Q((y = s.app) == null ? void 0 : y.availableLang, (h) => {
360
+ var p1, d1;
361
+ return t(), o("div", {
345
362
  key: h.id,
346
- class: m(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": h.id !== ((s1 = c.value) == null ? void 0 : s1.id), "text-gray-300": h.id === ((l1 = c.value) == null ? void 0 : l1.id) }]),
347
- onClick: (we) => {
348
- var o1;
349
- return h.id !== ((o1 = c.value) == null ? void 0 : o1.id) && G(h);
363
+ class: w(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": h.id !== ((p1 = c.value) == null ? void 0 : p1.id), "text-gray-300": h.id === ((d1 = c.value) == null ? void 0 : d1.id) }]),
364
+ onClick: (B0) => {
365
+ var c1;
366
+ return h.id !== ((c1 = c.value) == null ? void 0 : c1.id) && G(h);
350
367
  }
351
- }, r(h.name), 11, i0);
368
+ }, r(h.name), 11, be);
352
369
  }), 128))
353
370
  ])) : n("", !0)
354
371
  ])) : n("", !0)
355
372
  ], 2),
356
- o.slim ? n("", !0) : (t(), l("div", p0)),
373
+ s.slim ? n("", !0) : (t(), o("div", ge)),
357
374
  e("div", {
358
- class: m(["flex", [o.slim ? " grid" : "w-max"]])
375
+ class: w(["flex", [s.slim ? " grid" : "w-max"]])
359
376
  }, [
360
- o.news ? (t(), l("a", {
377
+ s.news ? (t(), o("a", {
361
378
  key: 0,
362
379
  href: "#",
363
- class: m(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [(o.slim, "w-[44px] h-[44px]")]]),
380
+ class: w(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [(s.slim, "w-[44px] h-[44px]")]]),
364
381
  onClick: f
365
382
  }, [
366
- o.news.menuLabel ? (t(), l("div", d0, r(o.news.menuLabel || "News"), 1)) : n("", !0),
367
- e("div", c0, [
368
- e("div", u0, [
369
- (t(), L(D(u1), { class: "w-[24px] h-[24px] mx-auto" })),
370
- p.value > 0 ? (t(), l("span", h0)) : n("", !0),
371
- p.value > 0 ? (t(), l("span", C0)) : n("", !0)
383
+ s.news.menuLabel ? (t(), o("div", ye, r(s.news.menuLabel || "News"), 1)) : n("", !0),
384
+ e("div", Le, [
385
+ e("div", ke, [
386
+ (t(), v($(x1), { class: "w-[24px] h-[24px] mx-auto" })),
387
+ d.value > 0 ? (t(), o("span", $e)) : n("", !0),
388
+ d.value > 0 ? (t(), o("span", Se)) : n("", !0)
372
389
  ]),
373
- e("div", f0, [
374
- e("span", w0, r(o.news.menuLabel || "News"), 1)
390
+ e("div", Oe, [
391
+ e("span", Be, r(s.news.menuLabel || "News"), 1)
375
392
  ])
376
393
  ])
377
394
  ], 2)) : n("", !0),
378
- (P = o.app) != null && P.support ? (t(), l("a", {
395
+ (R = s.app) != null && R.support ? (t(), o("a", {
379
396
  key: 1,
380
- href: (F = (T = o.app) == null ? void 0 : T.support) == null ? void 0 : F.url,
397
+ href: (t1 = (e1 = s.app) == null ? void 0 : e1.support) == null ? void 0 : t1.url,
381
398
  target: "_blank",
382
- class: m(["text-[#525B66] tooltip flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(o.slim, "w-[44px] h-[44px]")]])
399
+ class: w(["text-[#525B66] tooltip flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(s.slim, "w-[44px] h-[44px]")]])
383
400
  }, [
384
- (Z = (q = o.app) == null ? void 0 : q.support) != null && Z.label ? (t(), l("div", v0, r(((g = (a = o.app) == null ? void 0 : a.support) == null ? void 0 : g.label) || "Support"), 1)) : n("", !0),
385
- e("div", x0, [
386
- e("div", _0, [
387
- (t(), L(D(y(q1)), { class: "w-[24px] h-[24px] mx-auto" }))
401
+ (l1 = (s1 = s.app) == null ? void 0 : s1.support) != null && l1.label ? (t(), o("div", Me, r(((n1 = (o1 = s.app) == null ? void 0 : o1.support) == null ? void 0 : n1.label) || "Support"), 1)) : n("", !0),
402
+ e("div", Pe, [
403
+ e("div", Ve, [
404
+ (t(), v($(k(G1)), { class: "w-[24px] h-[24px] mx-auto" }))
388
405
  ]),
389
- e("div", b0, [
390
- e("span", g0, r(((e1 = (R = o.app) == null ? void 0 : R.support) == null ? void 0 : e1.label) || "Support"), 1)
406
+ e("div", ze, [
407
+ e("span", Ae, r(((r1 = (a1 = s.app) == null ? void 0 : a1.support) == null ? void 0 : r1.label) || "Support"), 1)
391
408
  ])
392
409
  ])
393
- ], 10, m0)) : n("", !0)
410
+ ], 10, je)) : n("", !0)
394
411
  ], 2),
395
412
  e("p", {
396
- class: m([[o.slim ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
413
+ class: w([[s.slim ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
397
414
  }, [
398
- y0,
399
- e("span", null, r((t1 = o.app) == null ? void 0 : t1.version), 1)
415
+ Fe,
416
+ e("span", null, r((i1 = s.app) == null ? void 0 : i1.version), 1)
400
417
  ], 2)
401
418
  ])
402
419
  ])
@@ -404,9 +421,9 @@ const R1 = (i) => (i1("data-v-7d2c4502"), i = i(), p1(), i), E1 = { class: "h-fu
404
421
  };
405
422
  }
406
423
  });
407
- const k0 = /* @__PURE__ */ Y(L0, [["__scopeId", "data-v-7d2c4502"]]);
408
- function $0(i, d) {
409
- return t(), l("svg", {
424
+ const He = /* @__PURE__ */ Y(Ie, [["__scopeId", "data-v-b50c1a4c"]]);
425
+ function Ne(i, p) {
426
+ return t(), o("svg", {
410
427
  xmlns: "http://www.w3.org/2000/svg",
411
428
  fill: "none",
412
429
  viewBox: "0 0 24 24",
@@ -421,8 +438,8 @@ function $0(i, d) {
421
438
  })
422
439
  ]);
423
440
  }
424
- function S0(i, d) {
425
- return t(), l("svg", {
441
+ function Te(i, p) {
442
+ return t(), o("svg", {
426
443
  xmlns: "http://www.w3.org/2000/svg",
427
444
  fill: "none",
428
445
  viewBox: "0 0 24 24",
@@ -437,227 +454,227 @@ function S0(i, d) {
437
454
  })
438
455
  ]);
439
456
  }
440
- const O0 = (i) => (i1("data-v-907ec8fc"), i = i(), p1(), i), B0 = { class: "h-full relative" }, j0 = {
457
+ const Ee = (i) => (f1("data-v-907ec8fc"), i = i(), w1(), i), qe = { class: "h-full relative" }, Ze = {
441
458
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
442
459
  style: { background: "rgba(245, 247, 251, 0.80)", "backdrop-filter": "blur(5px)" }
443
- }, M0 = { class: "p-2 flex-shrink-0" }, V0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, z0 = ["src"], A0 = { class: "whitespace-nowrap font-semibold text-xl" }, I0 = { class: "text-xs whitespace-nowrap" }, H0 = { class: "w-full" }, N0 = { class: "w-full flex justify-end pr-3" }, P0 = { class: "flex items-center space-x-1" }, T0 = {
460
+ }, Re = { class: "p-2 flex-shrink-0" }, De = { class: "w-10 h-10 flex items-center flex-shrink-0" }, Ue = ["src"], We = { class: "whitespace-nowrap font-semibold text-xl" }, Ge = { class: "text-xs whitespace-nowrap" }, Je = { class: "w-full" }, Ke = { class: "w-full flex justify-end pr-3" }, Qe = { class: "flex items-center space-x-1" }, Xe = {
444
461
  key: 0,
445
462
  class: "module-border-wrap flex justify-center items-center"
446
- }, F0 = { class: "ml-2 hidden sm:flex" }, q0 = ["href"], Z0 = { class: "body w-full h-full" }, R0 = { key: 0 }, E0 = {
463
+ }, Ye = { class: "ml-2 hidden sm:flex" }, e0 = ["href"], t0 = { class: "body w-full h-full" }, s0 = { key: 0 }, l0 = {
447
464
  key: 0,
448
465
  class: "sm:w-[560px] w-full relative h-full"
449
- }, D0 = { class: "h-full relative" }, U0 = { class: "flex items-center p-3 space-x-1.5" }, W0 = /* @__PURE__ */ O0(() => /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1)), G0 = {
466
+ }, o0 = { class: "h-full relative" }, n0 = { class: "flex items-center p-3 space-x-1.5" }, a0 = /* @__PURE__ */ Ee(() => /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1)), r0 = {
450
467
  class: "overflow-auto",
451
468
  style: { height: "calc(100% - 62px)" }
452
- }, J0 = {
469
+ }, i0 = {
453
470
  key: 0,
454
471
  class: "p-5"
455
- }, K0 = { key: 1 }, Q0 = { class: "p-4 text-gray text-center" }, X0 = { key: 2 }, Y0 = {
472
+ }, p0 = { key: 1 }, d0 = { class: "p-4 text-gray text-center" }, c0 = { key: 2 }, u0 = {
456
473
  class: "p-3 space-y-1.5 rounded-lg",
457
474
  style: { "box-shadow": "0 0 6px #eaeaea" }
458
- }, ee = { key: 0 }, te = {
475
+ }, h0 = { key: 0 }, C0 = {
459
476
  key: 0,
460
477
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
461
- }, se = {
478
+ }, f0 = {
462
479
  key: 1,
463
480
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
464
- }, le = {
481
+ }, w0 = {
465
482
  key: 2,
466
483
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
467
- }, oe = {
484
+ }, m0 = {
468
485
  key: 3,
469
486
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
470
- }, ne = { class: "text-lg font-medium" }, ae = { class: "text-sm text-gray-600" }, re = { key: 0 }, ie = ["src"], pe = { class: "text-sm whitespace-pre-wrap break-words" }, de = { key: 1 }, ce = ["href"], ue = { class: "text-sm flex items-center justify-between mt-1" }, he = { class: "text-gray-800" }, Ce = ["href"], fe = /* @__PURE__ */ X({
487
+ }, v0 = { class: "text-lg font-medium" }, x0 = { class: "text-sm text-gray-600" }, _0 = { key: 0 }, b0 = ["src"], g0 = { class: "text-sm whitespace-pre-wrap break-words" }, y0 = { key: 1 }, L0 = ["href"], k0 = { class: "text-sm flex items-center justify-between mt-1" }, $0 = { class: "text-gray-800" }, S0 = ["href"], O0 = /* @__PURE__ */ X({
471
488
  __name: "OneMainLayout",
472
- props: y1,
489
+ props: j1,
473
490
  emits: ["load-news", "load-tariff", "open-tariff"],
474
- setup(i, { emit: d }) {
475
- const k = d, C = i;
476
- let p = window.localStorage.getItem("sidebar-slim");
477
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), p = "1");
478
- const f = U(p === "1");
479
- f1(f, (s) => {
480
- window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
491
+ setup(i, { emit: p }) {
492
+ const L = p, C = i;
493
+ let d = window.localStorage.getItem("sidebar-slim");
494
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), d = "1");
495
+ const f = U(d === "1");
496
+ g1(f, (l) => {
497
+ window.localStorage.setItem("sidebar-slim", String(l ? 1 : 0));
481
498
  });
482
- const v = () => {
499
+ const x = () => {
483
500
  window.document.body.offsetWidth < 1024 && !f.value && (f.value = !0);
484
501
  }, c = U(!1), W = () => {
485
- c.value = !c.value, c.value && k("load-news");
486
- }, G = (s) => {
502
+ c.value = !c.value, c.value && L("load-news");
503
+ }, G = (l) => {
487
504
  var u;
488
- (u = C.handlers) == null || u.onSetLang(s);
505
+ (u = C.handlers) == null || u.onSetLang(l);
489
506
  };
490
- return (s, u) => {
491
- var $, o, x, _, b, S, O, B, j, M, V, z, A, I, H, N, P, T, F, q, Z;
492
- const E = a1("RouterLink");
493
- return t(), l("div", B0, [
494
- e("div", j0, [
495
- e("div", M0, [
507
+ return (l, u) => {
508
+ var S, s, _, b, g, O, B, j, M, P, V, z, A, F, I, H, N, T, E, q, Z;
509
+ const D = h1("RouterLink");
510
+ return t(), o("div", qe, [
511
+ e("div", Ze, [
512
+ e("div", Re, [
496
513
  e("button", {
497
514
  onClick: u[0] || (u[0] = (a) => f.value = !f.value),
498
515
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
499
516
  }, [
500
- w(y($0), { class: "w-[24px] h-[24px]" })
517
+ m(k(Ne), { class: "w-[24px] h-[24px]" })
501
518
  ])
502
519
  ]),
503
- e("div", V0, [
504
- s.logoSrc != null ? (t(), l("img", {
520
+ e("div", De, [
521
+ l.logoSrc != null ? (t(), o("img", {
505
522
  key: 0,
506
- src: s.logoSrc,
523
+ src: l.logoSrc,
507
524
  class: "w-8 h-8 mx-auto",
508
525
  alt: "logo"
509
- }, null, 8, z0)) : n("", !0)
526
+ }, null, 8, Ue)) : n("", !0)
510
527
  ]),
511
- s.app != null ? (t(), L(E, {
528
+ l.app != null ? (t(), v(D, {
512
529
  key: 0,
513
530
  to: "/",
514
531
  class: "pl-2 max-w-xs"
515
532
  }, {
516
- default: r1(() => {
517
- var a, g;
533
+ default: C1(() => {
534
+ var a, y;
518
535
  return [
519
- e("div", A0, r(s.app.name), 1),
520
- e("div", I0, r((g = (a = s.app) == null ? void 0 : a.workspace) == null ? void 0 : g.name), 1)
536
+ e("div", We, r(l.app.name), 1),
537
+ e("div", Ge, r((y = (a = l.app) == null ? void 0 : a.workspace) == null ? void 0 : y.name), 1)
521
538
  ];
522
539
  }),
523
540
  _: 1
524
541
  })) : n("", !0),
525
- e("div", H0, [
526
- e("div", N0, [
527
- e("div", P0, [
528
- n1(s.$slots, "before-header-menu", {}, void 0, !0),
529
- s.improveTariff ? (t(), l("div", T0, [
542
+ e("div", Je, [
543
+ e("div", Ke, [
544
+ e("div", Qe, [
545
+ u1(l.$slots, "before-header-menu", {}, void 0, !0),
546
+ l.improveTariff ? (t(), o("div", Xe, [
530
547
  e("button", {
531
548
  type: "button",
532
549
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
533
550
  onClick: u[1] || (u[1] = //@ts-ignore
534
551
  (...a) => {
535
- var g, R;
536
- return ((g = s.handlers) == null ? void 0 : g.onImproveTariff) && ((R = s.handlers) == null ? void 0 : R.onImproveTariff(...a));
552
+ var y, R;
553
+ return ((y = l.handlers) == null ? void 0 : y.onImproveTariff) && ((R = l.handlers) == null ? void 0 : R.onImproveTariff(...a));
537
554
  }),
538
555
  style: { "font-size": "10px" }
539
556
  }, [
540
- w(y(h1), { class: "h-4 w-4 text-[#e1a308f2]" }),
541
- e("span", F0, r(($ = s.improveTariff) == null ? void 0 : $.label), 1)
557
+ m(k(K1), { class: "h-4 w-4 text-[#e1a308f2]" }),
558
+ e("span", Ye, r((S = l.improveTariff) == null ? void 0 : S.label), 1)
542
559
  ])
543
560
  ])) : n("", !0),
544
- (x = (o = s.app) == null ? void 0 : o.help) != null && x.url ? (t(), l("a", {
561
+ (_ = (s = l.app) == null ? void 0 : s.help) != null && _.url ? (t(), o("a", {
545
562
  key: 1,
546
- href: (b = (_ = s.app) == null ? void 0 : _.help) == null ? void 0 : b.url,
563
+ href: (g = (b = l.app) == null ? void 0 : b.help) == null ? void 0 : g.url,
547
564
  target: "_blank",
548
565
  title: "Help",
549
566
  class: "p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"
550
567
  }, [
551
- w(y(S0), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
552
- ], 8, q0)) : n("", !0),
553
- ((S = s.handlers) == null ? void 0 : S.onBrowse) != null ? (t(), L(v1, {
568
+ m(k(Te), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
569
+ ], 8, e0)) : n("", !0),
570
+ ((O = l.handlers) == null ? void 0 : O.onBrowse) != null ? (t(), v(k1, {
554
571
  key: 2,
555
- workspace: (O = s.app) == null ? void 0 : O.workspace,
556
- apps: ((B = s.app) == null ? void 0 : B.apps) || [],
557
- "change-label": ((j = s.labels) == null ? void 0 : j.change) || "Change",
558
- "apps-title": ((M = s.labels) == null ? void 0 : M.apps) || "Apps",
559
- "on-app": (V = s.handlers) == null ? void 0 : V.onApp,
560
- "on-change": (z = s.handlers) == null ? void 0 : z.onChange,
561
- onOpen: (A = s.handlers) == null ? void 0 : A.onBrowse
572
+ workspace: (B = l.app) == null ? void 0 : B.workspace,
573
+ apps: ((j = l.app) == null ? void 0 : j.apps) || [],
574
+ "change-label": ((M = l.labels) == null ? void 0 : M.change) || "Change",
575
+ "apps-title": ((P = l.labels) == null ? void 0 : P.apps) || "Apps",
576
+ "on-app": (V = l.handlers) == null ? void 0 : V.onApp,
577
+ "on-change": (z = l.handlers) == null ? void 0 : z.onChange,
578
+ onOpen: (A = l.handlers) == null ? void 0 : A.onBrowse
562
579
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : n("", !0),
563
- w(x1, {
564
- user: s.user,
565
- app: s.app,
566
- "account-label": ((I = s.labels) == null ? void 0 : I.account) || "Account",
567
- "logout-label": ((H = s.labels) == null ? void 0 : H.logout) || "Logout",
568
- "version-label": ((N = s.labels) == null ? void 0 : N.version) || "",
569
- "on-account": (P = s.handlers) == null ? void 0 : P.onAccount,
570
- "on-logout": (T = s.handlers) == null ? void 0 : T.onLogout
580
+ m($1, {
581
+ user: l.user,
582
+ app: l.app,
583
+ "account-label": ((F = l.labels) == null ? void 0 : F.account) || "Account",
584
+ "logout-label": ((I = l.labels) == null ? void 0 : I.logout) || "Logout",
585
+ "version-label": ((H = l.labels) == null ? void 0 : H.version) || "",
586
+ "on-account": (N = l.handlers) == null ? void 0 : N.onAccount,
587
+ "on-logout": (T = l.handlers) == null ? void 0 : T.onLogout
571
588
  }, null, 8, ["user", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
572
589
  ])
573
590
  ])
574
591
  ])
575
592
  ]),
576
593
  e("div", {
577
- class: m(["sidebar fixed top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50", [f.value ? "w-0 lg:w-[60px]" : "w-full lg:w-60"]]),
594
+ class: w(["sidebar fixed top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50", [f.value ? "w-0 lg:w-[60px]" : "w-full lg:w-60"]]),
578
595
  style: { height: "calc(100% - 56px)" },
579
- onClick: v
596
+ onClick: x
580
597
  }, [
581
- w(k0, {
598
+ m(He, {
582
599
  slim: f.value,
583
- app: s.app,
584
- items: s.sidebarItems,
585
- "with-news": s.news != null,
586
- news: s.news,
600
+ app: l.app,
601
+ items: l.sidebarItems,
602
+ "with-news": l.news != null,
603
+ news: l.news,
587
604
  onShowNews: W,
588
605
  onSelectLanguage: G
589
606
  }, null, 8, ["slim", "app", "items", "with-news", "news"])
590
607
  ], 2),
591
- e("div", Z0, [
608
+ e("div", t0, [
592
609
  e("div", {
593
- class: m(["content transition-all pt-[56px] h-full", [f.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
610
+ class: w(["content transition-all pt-[56px] h-full", [f.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
594
611
  }, [
595
- n1(s.$slots, "default", {}, void 0, !0)
612
+ u1(l.$slots, "default", {}, void 0, !0)
596
613
  ], 2)
597
614
  ]),
598
- s.news ? (t(), l("div", R0, [
599
- c.value ? (t(), l("div", {
615
+ l.news ? (t(), o("div", s0, [
616
+ c.value ? (t(), o("div", {
600
617
  key: 0,
601
618
  class: "fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",
602
- onClick: u[2] || (u[2] = w1((a) => c.value = !1, ["self"]))
619
+ onClick: u[2] || (u[2] = y1((a) => c.value = !1, ["self"]))
603
620
  })) : n("", !0),
604
621
  e("div", {
605
- class: m(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [c.value ? "sm:w-[560px] w-full" : "w-0"]])
622
+ class: w(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [c.value ? "sm:w-[560px] w-full" : "w-0"]])
606
623
  }, [
607
- c.value ? (t(), l("div", E0, [
608
- e("div", D0, [
609
- e("div", U0, [
610
- w(u1, { class: "w-10 h-10" }),
611
- W0,
624
+ c.value ? (t(), o("div", l0, [
625
+ e("div", o0, [
626
+ e("div", n0, [
627
+ m(x1, { class: "w-10 h-10" }),
628
+ a0,
612
629
  e("div", null, [
613
- w(d1, {
630
+ m(m1, {
614
631
  variant: "touch",
615
- icon: y(b1),
632
+ icon: k(O1),
616
633
  onClick: u[3] || (u[3] = (a) => c.value = !1)
617
634
  }, null, 8, ["icon"])
618
635
  ])
619
636
  ]),
620
- e("div", G0, [
621
- s.news.isLoading && ((F = s.news.items) == null ? void 0 : F.length) === 0 ? (t(), l("div", J0, [
622
- w(_1, { class: "w-6 h-6 text-gray-600 mx-auto" })
623
- ])) : ((q = s.news.items) == null ? void 0 : q.length) === 0 ? (t(), l("div", K0, [
624
- e("div", Q0, r(s.news.emptyText), 1)
625
- ])) : ((Z = s.news.items) == null ? void 0 : Z.length) > 0 ? (t(), l("div", X0, [
626
- (t(!0), l(K, null, Q(s.news.items, (a) => (t(), l("div", {
637
+ e("div", r0, [
638
+ l.news.isLoading && ((E = l.news.items) == null ? void 0 : E.length) === 0 ? (t(), o("div", i0, [
639
+ m(S1, { class: "w-6 h-6 text-gray-600 mx-auto" })
640
+ ])) : ((q = l.news.items) == null ? void 0 : q.length) === 0 ? (t(), o("div", p0, [
641
+ e("div", d0, r(l.news.emptyText), 1)
642
+ ])) : ((Z = l.news.items) == null ? void 0 : Z.length) > 0 ? (t(), o("div", c0, [
643
+ (t(!0), o(K, null, Q(l.news.items, (a) => (t(), o("div", {
627
644
  key: a.id,
628
645
  class: "p-3"
629
646
  }, [
630
- e("div", Y0, [
647
+ e("div", u0, [
631
648
  e("div", null, [
632
- a.type ? (t(), l("div", ee, [
633
- a.type === 10 ? (t(), l("span", te, "update")) : a.type === 11 ? (t(), l("span", se, "warning")) : a.type === 12 ? (t(), l("span", le, "notice")) : a.type === 13 ? (t(), l("span", oe, "ads")) : n("", !0)
649
+ a.type ? (t(), o("div", h0, [
650
+ a.type === 10 ? (t(), o("span", C0, "update")) : a.type === 11 ? (t(), o("span", f0, "warning")) : a.type === 12 ? (t(), o("span", w0, "notice")) : a.type === 13 ? (t(), o("span", m0, "ads")) : n("", !0)
634
651
  ])) : n("", !0),
635
- e("div", ne, r(a.title), 1),
636
- e("div", ae, r(a.summary), 1)
652
+ e("div", v0, r(a.title), 1),
653
+ e("div", x0, r(a.summary), 1)
637
654
  ]),
638
- a.image_url ? (t(), l("div", re, [
655
+ a.image_url ? (t(), o("div", _0, [
639
656
  e("img", {
640
657
  src: a.image_url,
641
658
  alt: "",
642
659
  class: "w-full rounded-md"
643
- }, null, 8, ie)
660
+ }, null, 8, b0)
644
661
  ])) : n("", !0),
645
- e("div", pe, r(a.body), 1),
646
- a.video_url ? (t(), l("div", de, [
662
+ e("div", g0, r(a.body), 1),
663
+ a.video_url ? (t(), o("div", y0, [
647
664
  e("a", {
648
665
  href: a.video_url,
649
666
  target: "_blank",
650
667
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
651
- }, r(s.news.openVideoText), 9, ce)
668
+ }, r(l.news.openVideoText), 9, L0)
652
669
  ])) : n("", !0),
653
- e("div", ue, [
654
- e("span", he, r(a.published), 1),
655
- a.post_url ? (t(), l("a", {
670
+ e("div", k0, [
671
+ e("span", $0, r(a.published), 1),
672
+ a.post_url ? (t(), o("a", {
656
673
  key: 0,
657
674
  href: a.post_url,
658
675
  target: "_blank",
659
676
  class: "text-blue-600 hover:text-blue-700 block"
660
- }, r(s.news.moreText), 9, Ce)) : n("", !0)
677
+ }, r(l.news.moreText), 9, S0)) : n("", !0)
661
678
  ])
662
679
  ])
663
680
  ]))), 128))
@@ -671,8 +688,8 @@ const O0 = (i) => (i1("data-v-907ec8fc"), i = i(), p1(), i), B0 = { class: "h-fu
671
688
  };
672
689
  }
673
690
  });
674
- const ye = /* @__PURE__ */ Y(fe, [["__scopeId", "data-v-907ec8fc"]]);
691
+ const F0 = /* @__PURE__ */ Y(O0, [["__scopeId", "data-v-907ec8fc"]]);
675
692
  export {
676
- ye as OneMainLayout,
677
- k0 as OneSidebar
693
+ F0 as OneMainLayout,
694
+ He as OneSidebar
678
695
  };
@@ -57,6 +57,14 @@ export type AppType = {
57
57
  name: string;
58
58
  url: string;
59
59
  title?: string;
60
+ icon: FunctionalComponent | Component;
61
+ };
62
+ offerPlan: {
63
+ name: string;
64
+ title: string;
65
+ title1: string;
66
+ url: string;
67
+ icon: FunctionalComponent | Component;
60
68
  };
61
69
  };
62
70
  export type SupportType = {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.dropdown[data-v-7d2c4502]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-7d2c4502]{position:relative}.tooltip-text[data-v-7d2c4502]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-7d2c4502]{visibility:visible;opacity:1}.module-border-wrap[data-v-907ec8fc]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
1
+ .text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.dropdown[data-v-b50c1a4c]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-b50c1a4c]{position:relative}.tooltip-text[data-v-b50c1a4c]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-b50c1a4c]{visibility:visible;opacity:1}.module-border-wrap[data-v-907ec8fc]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.0.78",
3
+ "version": "0.0.81",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [