diff --git a/dist/assets/index-Bs2muxxu.js b/dist/assets/index-BNWWHLDD.js similarity index 99% rename from dist/assets/index-Bs2muxxu.js rename to dist/assets/index-BNWWHLDD.js index 84b7a65..a43cd14 100644 --- a/dist/assets/index-Bs2muxxu.js +++ b/dist/assets/index-BNWWHLDD.js @@ -1 +1 @@ -var Zt=Object.defineProperty;var es=(n,e,t)=>e in n?Zt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var b=(n,e,t)=>es(n,typeof e!="symbol"?e+"":e,t);import{u as O,i as ts,j as a,H as ss,F as ns,c as Z,a as is,b as as,d as rs,e as os,f as ls,g as cs,h as us,k as ds,z as v,l as Oe,m as ke,S as tt,n as ms,P as je,o as ie,p as vt,q as ps,r as hs,s as Ke,t as Se,v as T,w as ze,x as W,y as U,A as q,B as N,C as H,L as We,D as Ie,E as Fe,G as he,I as Ue,J as $e,K as fs,M as ue,N as gs,O as xs,Q as ys,R as bs,T as ks,U as vs,V as ws,W as ge,X as js,Y as Ss,Z as ee,_ as Ts,$ as wt,a0 as Ns,a1 as jt,a2 as _s,a3 as fe,a4 as qe,a5 as Es,a6 as St,a7 as Tt,a8 as zs,a9 as st,aa as Cs,ab as Nt,ac as Rs,ad as Ls,ae as Ps,af as Os,ag as Is,ah as Fs,ai as $s}from"./ui-library-Du5AO6gB.js";import{f as As,a as y,O as Ds,e as le,u as Ms,g as Je,L as nt,h as Bs,i as Gs}from"./react-vendor-CJoWVsUG.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();var _e={},it;function Vs(){if(it)return _e;it=1;var n=As();return _e.createRoot=n.createRoot,_e.hydrateRoot=n.hydrateRoot,_e}var Hs=Vs();const j=n=>typeof n=="string",ye=()=>{let n,e;const t=new Promise((s,i)=>{n=s,e=i});return t.resolve=n,t.reject=e,t},at=n=>n==null?"":""+n,Ks=(n,e,t)=>{n.forEach(s=>{e[s]&&(t[s]=e[s])})},Ws=/###/g,rt=n=>n&&n.indexOf("###")>-1?n.replace(Ws,"."):n,ot=n=>!n||j(n),be=(n,e,t)=>{const s=j(e)?e.split("."):e;let i=0;for(;i{const{obj:s,k:i}=be(n,e,Object);if(s!==void 0||e.length===1){s[i]=t;return}let r=e[e.length-1],o=e.slice(0,e.length-1),c=be(n,o,Object);for(;c.obj===void 0&&o.length;)r=`${o[o.length-1]}.${r}`,o=o.slice(0,o.length-1),c=be(n,o,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=t},Us=(n,e,t,s)=>{const{obj:i,k:r}=be(n,e,Object);i[r]=i[r]||[],i[r].push(t)},Ce=(n,e)=>{const{obj:t,k:s}=be(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},qs=(n,e,t)=>{const s=Ce(n,t);return s!==void 0?s:Ce(e,t)},_t=(n,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in n?j(n[s])||n[s]instanceof String||j(e[s])||e[s]instanceof String?t&&(n[s]=e[s]):_t(n[s],e[s],t):n[s]=e[s]);return n},de=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Js={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ys=n=>j(n)?n.replace(/[&<>"'\/]/g,e=>Js[e]):n;class Xs{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const Qs=[" ",",","?","!",";"],Zs=new Xs(20),en=(n,e,t)=>{e=e||"",t=t||"";const s=Qs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const i=Zs.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let r=!i.test(n);if(!r){const o=n.indexOf(t);o>0&&!i.test(n.substring(0,o))&&(r=!0)}return r},Ge=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const s=e.split(t);let i=n;for(let r=0;r-1&&ln==null?void 0:n.replace("_","-"),tn={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,s;(s=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||s.call(t,console,e)}};class Le{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||tn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const i=this.observers[s].get(t)||0;this.observers[s].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i{let[c,l]=o;for(let u=0;u{let[c,l]=o;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,m;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,t],s&&(Array.isArray(s)?c.push(...s):j(s)&&r?c.push(...s.split(r)):c.push(s)));const l=Ce(this.data,c);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=c[0],t=c[1],s=c.slice(2).join(".")),l||!o||!j(s)?l:Ge((m=(u=this.data)==null?void 0:u[e])==null?void 0:m[t],s,r)}addResource(e,t,s,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let c=[e,t];s&&(c=c.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(c=e.split("."),i=t,t=c[1]),this.addNamespaces(t),lt(this.data,c,i),r.silent||this.emit("added",e,t,s,i)}addResources(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in s)(j(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});i.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,r){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),i=s,s=t,t=c[1]),this.addNamespaces(t);let l=Ce(this.data,c)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?_t(l,s,r):l={...l,...s},lt(this.data,c,l),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var Et={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,s,i){return n.forEach(r=>{var o;e=((o=this.processors[r])==null?void 0:o.process(e,t,s,i))??e}),e}};const ut={},dt=n=>!j(n)&&typeof n!="boolean"&&typeof n!="number";class Pe extends Ae{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ks(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Q.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!en(e,s,i);if(o&&!c){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:j(r)?[r]:r};const u=e.split(s);(s!==i||s===i&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(i)}return{key:e,namespaces:j(r)?[r]:r}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(e[e.length-1],t),l=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(m){const I=t.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${I}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${I}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:o}const h=this.resolve(e,t);let d=h==null?void 0:h.res;const f=(h==null?void 0:h.usedKey)||o,p=(h==null?void 0:h.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k=t.count!==void 0&&!j(t.count),S=Pe.hasDefaultValue(t),E=k?this.pluralResolver.getSuffix(u,t.count,t):"",L=t.ordinal&&k?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",C=k&&!t.ordinal&&t.count===0,z=C&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${E}`]||t[`defaultValue${L}`]||t.defaultValue;let _=d;w&&!d&&S&&(_=z);const M=dt(_),te=Object.prototype.toString.apply(_);if(w&&_&&M&&g.indexOf(te)<0&&!(j(x)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,_,{...t,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=I,h.usedParams=this.getUsedParamsDetails(t),h):I}if(r){const I=Array.isArray(_),B=I?[]:{},Te=I?p:f;for(const J in _)if(Object.prototype.hasOwnProperty.call(_,J)){const Y=`${Te}${r}${J}`;S&&!d?B[J]=this.translate(Y,{...t,defaultValue:dt(z)?z[J]:void 0,joinArrays:!1,ns:c}):B[J]=this.translate(Y,{...t,joinArrays:!1,ns:c}),B[J]===Y&&(B[J]=_[J])}d=B}}else if(w&&j(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let I=!1,B=!1;!this.isValidLookup(d)&&S&&(I=!0,d=z),this.isValidLookup(d)||(B=!0,d=o);const J=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:d,Y=S&&z!==d&&this.options.updateMissing;if(B||I||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,l,o,Y?z:d),r){const V=this.resolve(o,{...t,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let V=0;V{var et;const Ze=S&&xe!==d?xe:J;this.options.missingKeyHandler?this.options.missingKeyHandler(V,l,oe,Ze,Y,t):(et=this.backendConnector)!=null&&et.saveMissing&&this.backendConnector.saveMissing(V,l,oe,Ze,Y,t),this.emit("missingKey",V,l,oe,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?G.forEach(V=>{const oe=this.pluralResolver.getSuffixes(V,t);C&&t[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(xe=>{Qe([V],o+xe,t[`defaultValue${xe}`]||z)})}):Qe(G,o,z))}d=this.extendTranslation(d,e,t,h,s),B&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${o}`),(B||I)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,I?d:void 0))}return i?(h.res=d,h.usedParams=this.getUsedParamsDetails(t),h):d}extendTranslation(e,t,s,i,r){var u,m;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const h=j(e)&&(((m=s==null?void 0:s.interpolation)==null?void 0:m.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=s.replace&&!j(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||i.usedLng,s),h){const p=e.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,i,r,o,c;return j(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),m=u.key;i=m;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=t.count!==void 0&&!j(t.count),f=d&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(j(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(x=>{var w,k;this.isValidLookup(s)||(c=x,!ut[`${g[0]}-${x}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(c))&&(ut[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(S=>{var C;if(this.isValidLookup(s))return;o=S;const E=[m];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(E,m,S,x,t);else{let z;d&&(z=this.pluralResolver.getSuffix(S,t.count,t));const _=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(E.push(m+z),t.ordinal&&z.indexOf(M)===0&&E.push(m+z.replace(M,this.options.pluralSeparator)),f&&E.push(m+_)),p){const te=`${m}${this.options.contextSeparator}${t.context}`;E.push(te),d&&(E.push(te+z),t.ordinal&&z.indexOf(M)===0&&E.push(te+z.replace(M,this.options.pluralSeparator)),f&&E.push(te+_))}}let L;for(;L=E.pop();)this.isValidLookup(s)||(r=L,s=this.getResource(S,x,L,t))}))})}),{res:s,usedKey:i,exactUsedKey:r,usedLng:o,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var r;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!j(e.replace);let i=s?e.replace:e;if(s&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const r of t)delete i[r]}return i}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class mt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Q.create("languageUtils")}getScriptPartFromCode(e){if(e=Re(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Re(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(j(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const i=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const i=this.getLanguagePartFromCode(s);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(r=>{if(r===i)return r;if(!(r.indexOf("-")<0&&i.indexOf("-")<0)&&(r.indexOf("-")>0&&i.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===i||r.indexOf(i)===0&&i.length>1))return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),j(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],r=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return j(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):j(e)&&r(this.formatLanguageCode(e)),s.forEach(o=>{i.indexOf(o)<0&&r(this.formatLanguageCode(o))}),i}}const pt={zero:0,one:1,two:2,few:3,many:4,other:5},ht={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Q.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=Re(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let o;try{o=new Intl.PluralRules(s,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ht;if(!e.match(/-|_/))return ht;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[r]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((i,r)=>pt[i]-pt[r]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const ft=function(n,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=qs(n,e,t);return!r&&i&&j(t)&&(r=Ge(n,t,s),r===void 0&&(r=Ge(e,t,s))),r},Me=n=>n.replace(/\$/g,"$$$$");class nn{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:c,suffixEscaped:l,formatSeparator:u,unescapeSuffix:m,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:w,alwaysFormat:k}=e.interpolation;this.escape=t!==void 0?t:Ys,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?de(r):o||"{{",this.suffix=c?de(c):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=m?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?de(d):f||de("$t("),this.nestingSuffix=p?de(p):g||de(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=w||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,i){var f;let r,o,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const k=ft(t,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,s,{...i,...t,interpolationkey:p}):k}const g=p.split(this.formatSeparator),x=g.shift().trim(),w=g.join(this.formatSeparator).trim();return this.format(ft(t,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,s,{...i,...t,interpolationkey:x})};this.resetRegExp();const m=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((f=i==null?void 0:i.interpolation)==null?void 0:f.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>Me(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Me(this.escape(p)):Me(p)}].forEach(p=>{for(c=0;r=p.regex.exec(e);){const g=r[1].trim();if(o=u(g),o===void 0)if(typeof m=="function"){const w=m(e,r,i);o=j(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))o="";else if(h){o=r[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!j(o)&&!this.useRawValueToEscape&&(o=at(o));const x=p.safeValue(o);if(e=e.replace(r[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,r,o;const c=(l,u)=>{const m=this.nestingOptionsSeparator;if(l.indexOf(m)<0)return l;const h=l.split(new RegExp(`${m}[ ]*{`));let d=`{${h[1]}`;l=h[0],d=this.interpolate(d,o);const f=d.match(/'/g),p=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${m}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];o={...s},o=o.replace&&!j(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const m=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=m.shift(),l=m,u=!0}if(r=t(c.call(this,i[1].trim(),o),o),r&&i[0]===e&&!j(r))return r;j(r)||(r=at(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),r=""),u&&(r=l.reduce((m,h)=>this.format(m,h,s.lng,{...s,interpolationkey:i[1].trim()}),r.trim())),e=e.replace(i[0],r),this.regexp.lastIndex=0}return e}}const an=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const s=n.split("(");e=s[0].toLowerCase().trim();const i=s[1].substring(0,s[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(o=>{if(o){const[c,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();t[m]||(t[m]=u),u==="false"&&(t[m]=!1),u==="true"&&(t[m]=!0),isNaN(u)||(t[m]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},me=n=>{const e={};return(t,s,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});const o=s+JSON.stringify(r);let c=e[o];return c||(c=n(Re(s),i),e[o]=c),c(t)}};class rn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create("formatter"),this.options=e,this.formats={number:me((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return r=>i.format(r)}),currency:me((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return r=>i.format(r)}),datetime:me((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return r=>i.format(r)}),relativetime:me((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return r=>i.format(r,s.range||"day")}),list:me((t,s)=>{const i=new Intl.ListFormat(t,{...s});return r=>i.format(r)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=me(t)}format(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(c=>c.indexOf(")")>-1)){const c=r.findIndex(l=>l.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,c)].join(this.formatSeparator)}return r.reduce((c,l)=>{var h;const{formatName:u,formatOptions:m}=an(l);if(this.formats[u]){let d=c;try{const f=((h=i==null?void 0:i.formatParams)==null?void 0:h[i.interpolationkey])||{},p=f.locale||f.lng||i.locale||i.lng||s;d=this.formats[u](c,p,{...m,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return c},e)}}const on=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class ln extends Ae{constructor(e,t,s){var r,o;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=Q.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(r=this.backend)==null?void 0:r.init)==null||o.call(r,s,i.backend,i)}queueLoad(e,t,s,i){const r={},o={},c={},l={};return e.forEach(u=>{let m=!0;t.forEach(h=>{const d=`${u}|${h}`;!s.reload&&this.store.hasResourceBundle(u,h)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,m=!1,o[d]===void 0&&(o[d]=!0),r[d]===void 0&&(r[d]=!0),l[h]===void 0&&(l[h]=!0)))}),m||(c[u]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),!t&&s&&this.store.addResourceBundle(r,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const c={};this.queue.forEach(l=>{Us(l.loaded,[r],o),on(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{c[u]||(c[u]={});const m=l.loaded[u];m.length&&m.forEach(h=>{c[u][h]===void 0&&(c[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:r,callback:o});return}this.readingCalls++;const c=(u,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&m&&i{this.read.call(this,e,t,s,i+1,r*2,o)},r);return}o(u,m)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(m=>c(null,m)).catch(c):c(null,u)}catch(u){c(u)}return}return l(e,t,c)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();j(e)&&(e=this.languageUtils.toResolveHierarchy(e)),j(t)&&(t=[t]);const r=this.queueLoad(e,t,s,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),i=s[0],r=s[1];this.read(i,r,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,o),!o&&c&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,c),this.loaded(e,o,c)})}saveMissing(e,t,s,i,r){var l,u,m,h,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((h=(m=this.services)==null?void 0:m.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:r},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(e,t,s,i,f):g=p(e,t,s,i),g&&typeof g.then=="function"?g.then(x=>c(null,x)).catch(c):c(null,g)}catch(g){c(g)}else p(e,t,s,i,c,f)}!e||!e[0]||this.store.addResource(e[0],t,s,i)}}}const gt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),j(n[1])&&(e.defaultValue=n[1]),j(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),xt=n=>{var e,t;return j(n.ns)&&(n.ns=[n.ns]),j(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),j(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},Ee=()=>{},cn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class ve extends Ae{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=xt(e),this.services={},this.logger=Q,this.modules={external:[]},cn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),t.defaultNS==null&&t.ns&&(j(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=gt();this.options={...i,...this.options,...xt(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const r=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Q.init(r(this.modules.logger),this.options):Q.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=rn;const h=new mt(this.options);this.store=new ct(this.options.resources,this.options);const d=this.services;d.logger=Q,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new sn(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=r(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new nn(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new ln(r(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),x=1;x1?p-1:0),x=1;x{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return e.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return e.store[m](...arguments),e}});const l=ye(),u=()=>{const m=(h,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),s(h,d)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(e){var r,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee;const i=j(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&c.indexOf(h)<0&&c.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>l(m)),(o=(r=this.options.preload)==null?void 0:r.forEach)==null||o.call(r,u=>l(u)),this.services.backendConnector.load(c,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const i=ye();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=Ee),this.services.backendConnector.reload(e,t,r=>{i.resolve(),s(r)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Et.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const i=ye();this.emit("languageChanging",e);const r=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return s.t(...arguments)}),t&&t(l,function(){return s.t(...arguments)})},c=l=>{var m,h;!e&&!l&&this.services.languageDetector&&(l=[]);const u=j(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||r(u),this.translator.language||this.translator.changeLanguage(u),(h=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||h.call(m,u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),i}getFixedT(e,t,s){var i=this;const r=function(o,c){let l;if(typeof c!="object"){for(var u=arguments.length,m=new Array(u>2?u-2:0),h=2;h`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${o}`:o,i.t(f,l)};return j(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=s,r}t(){var i;for(var e=arguments.length,t=new Array(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(c,l)=>{const u=this.services.backendConnector.state[`${c}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const c=t.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!i||o(r,e)))}loadNamespaces(e,t){const s=ye();return this.options.ns?(j(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{s.resolve(),t&&t(i)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=ye();j(e)&&(e=[e]);const i=this.options.preload||[],r=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return r.length?(this.options.preload=i.concat(r),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var i,r;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((r=this.services)==null?void 0:r.languageUtils)||new mt(gt());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ve(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},r=new ve(i);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s){const c=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},Object.keys(l[u]).reduce((m,h)=>(m[h]={...l[u][h]},m),{})),{});r.store=new ct(c,i),r.services.resourceStore=r.store}return r.translator=new Pe(r.services,i),r.translator.on("*",function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),m=1;m{const n=O(e=>e.lang);return y.useEffect(()=>{F.changeLanguage(n)},[n]),null};var fa="1.3.17";function zt(n,e,t){return Math.max(n,Math.min(e,t))}function ga(n,e,t){return(1-t)*n+t*e}function xa(n,e,t,s){return ga(n,e,1-Math.exp(-t*s))}function ya(n,e){return(n%e+e)%e}var ba=class{constructor(){b(this,"isRunning",!1);b(this,"value",0);b(this,"from",0);b(this,"to",0);b(this,"currentTime",0);b(this,"lerp");b(this,"duration");b(this,"easing");b(this,"onUpdate")}advance(n){var t;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=n;const s=zt(0,this.currentTime/this.duration,1);e=s>=1;const i=e?1:this.easing(s);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=xa(this.value,this.to,this.lerp*60,n),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(n,e,{lerp:t,duration:s,easing:i,onStart:r,onUpdate:o}){this.from=this.value=n,this.to=e,this.lerp=t,this.duration=s,this.easing=i,this.currentTime=0,this.isRunning=!0,r==null||r(),this.onUpdate=o}};function ka(n,e){let t;return function(...s){let i=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(i,s)},e)}}var va=class{constructor(n,e,{autoResize:t=!0,debounce:s=250}={}){b(this,"width",0);b(this,"height",0);b(this,"scrollHeight",0);b(this,"scrollWidth",0);b(this,"debouncedResize");b(this,"wrapperResizeObserver");b(this,"contentResizeObserver");b(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});b(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});b(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=n,this.content=e,t&&(this.debouncedResize=ka(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var n,e;(n=this.wrapperResizeObserver)==null||n.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Ct=class{constructor(){b(this,"events",{})}emit(n,...e){var s;let t=this.events[n]||[];for(let i=0,r=t.length;i{var s;this.events[n]=(s=this.events[n])==null?void 0:s.filter(i=>e!==i)}}off(n,e){var t;this.events[n]=(t=this.events[n])==null?void 0:t.filter(s=>e!==s)}destroy(){this.events={}}},yt=100/6,ae={passive:!1},wa=class{constructor(n,e={wheelMultiplier:1,touchMultiplier:1}){b(this,"touchStart",{x:0,y:0});b(this,"lastDelta",{x:0,y:0});b(this,"window",{width:0,height:0});b(this,"emitter",new Ct);b(this,"onTouchStart",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:n})});b(this,"onTouchMove",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n,s=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(t-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:s,y:i},this.emitter.emit("scroll",{deltaX:s,deltaY:i,event:n})});b(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});b(this,"onWheel",n=>{let{deltaX:e,deltaY:t,deltaMode:s}=n;const i=s===1?yt:s===2?this.window.width:1,r=s===1?yt:s===2?this.window.height:1;e*=i,t*=r,e*=this.options.wheelMultiplier,t*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:t,event:n})});b(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=n,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,ae),this.element.addEventListener("touchstart",this.onTouchStart,ae),this.element.addEventListener("touchmove",this.onTouchMove,ae),this.element.addEventListener("touchend",this.onTouchEnd,ae)}on(n,e){return this.emitter.on(n,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,ae),this.element.removeEventListener("touchstart",this.onTouchStart,ae),this.element.removeEventListener("touchmove",this.onTouchMove,ae),this.element.removeEventListener("touchend",this.onTouchEnd,ae)}},bt=n=>Math.min(1,1.001-Math.pow(2,-10*n)),ja=class{constructor({wrapper:n=window,content:e=document.documentElement,eventsTarget:t=n,smoothWheel:s=!0,syncTouch:i=!1,syncTouchLerp:r=.075,touchInertiaExponent:o=1.7,duration:c,easing:l,lerp:u=.1,infinite:m=!1,orientation:h="vertical",gestureOrientation:d=h==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:p=1,autoResize:g=!0,prevent:x,virtualScroll:w,overscroll:k=!0,autoRaf:S=!1,anchors:E=!1,autoToggle:L=!1,allowNestedScroll:C=!1,__experimental__naiveDimensions:z=!1,naiveDimensions:_=z,stopInertiaOnNavigate:M=!1}={}){b(this,"_isScrolling",!1);b(this,"_isStopped",!1);b(this,"_isLocked",!1);b(this,"_preventNextNativeScrollEvent",!1);b(this,"_resetVelocityTimeout",null);b(this,"_rafId",null);b(this,"isTouching");b(this,"time",0);b(this,"userData",{});b(this,"lastVelocity",0);b(this,"velocity",0);b(this,"direction",0);b(this,"options");b(this,"targetScroll");b(this,"animatedScroll");b(this,"animate",new ba);b(this,"emitter",new Ct);b(this,"dimensions");b(this,"virtualScroll");b(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});b(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});b(this,"onTransitionEnd",n=>{n.propertyName.includes("overflow")&&this.checkOverflow()});b(this,"onClick",n=>{const t=n.composedPath().filter(s=>s instanceof HTMLAnchorElement&&s.getAttribute("href"));if(this.options.anchors){const s=t.find(i=>{var r;return(r=i.getAttribute("href"))==null?void 0:r.includes("#")});if(s){const i=s.getAttribute("href");if(i){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,o=`#${i.split("#")[1]}`;this.scrollTo(o,r)}}}this.options.stopInertiaOnNavigate&&t.find(i=>i.host===window.location.host)&&this.reset()});b(this,"onPointerDown",n=>{n.button===1&&this.reset()});b(this,"onVirtualScroll",n=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(n)===!1)return;const{deltaX:e,deltaY:t,event:s}=n;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:t,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const i=s.type.includes("touch"),r=s.type.includes("wheel");this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=e===0&&t===0;if(this.options.syncTouch&&i&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&t===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||l)return;let u=s.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const m=this.options.prevent;if(u.find(x=>{var w,k,S;return x instanceof HTMLElement&&(typeof m=="function"&&(m==null?void 0:m(x))||((w=x.hasAttribute)==null?void 0:w.call(x,"data-lenis-prevent"))||i&&((k=x.hasAttribute)==null?void 0:k.call(x,"data-lenis-prevent-touch"))||r&&((S=x.hasAttribute)==null?void 0:S.call(x,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:e,deltaY:t}))}))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let d=t;this.options.gestureOrientation==="both"?d=Math.abs(t)>Math.abs(e)?t:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&t<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const f=i&&this.options.syncTouch,g=i&&s.type==="touchend";g&&(d=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});b(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const n=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-n,this.direction=Math.sign(this.animatedScroll-n),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});b(this,"raf",n=>{const e=n-(this.time||n);this.time=n,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=fa,(!n||n===document.documentElement)&&(n=window),typeof c=="number"&&typeof l!="function"?l=bt:typeof l=="function"&&typeof c!="number"&&(c=1),this.options={wrapper:n,content:e,eventsTarget:t,smoothWheel:s,syncTouch:i,syncTouchLerp:r,touchInertiaExponent:o,duration:c,easing:l,lerp:u,infinite:m,gestureOrientation:d,orientation:h,touchMultiplier:f,wheelMultiplier:p,autoResize:g,prevent:x,virtualScroll:w,overscroll:k,autoRaf:S,anchors:E,autoToggle:L,allowNestedScroll:C,naiveDimensions:_,stopInertiaOnNavigate:M},this.dimensions=new va(n,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new wa(t,{touchMultiplier:f,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(n,e){return this.emitter.on(n,e)}off(n,e){return this.emitter.off(n,e)}get overflow(){const n=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[n]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(n){this.isHorizontal?this.options.wrapper.scrollTo({left:n,behavior:"instant"}):this.options.wrapper.scrollTo({top:n,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(n,{offset:e=0,immediate:t=!1,lock:s=!1,programmatic:i=!0,lerp:r=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:c=i?this.options.easing:void 0,onStart:l,onComplete:u,force:m=!1,userData:h}={}){if(!((this.isStopped||this.isLocked)&&!m)){if(typeof n=="string"&&["top","left","start","#"].includes(n))n=0;else if(typeof n=="string"&&["bottom","right","end"].includes(n))n=this.limit;else{let d;if(typeof n=="string"?(d=document.querySelector(n),d||(n==="#top"?n=0:console.warn("Lenis: Target not found",n))):n instanceof HTMLElement&&(n!=null&&n.nodeType)&&(d=n),d){if(this.options.wrapper!==window){const p=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?p.left:p.top}const f=d.getBoundingClientRect();n=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof n=="number"){if(n+=e,n=Math.round(n),this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;const d=n-this.animatedScroll;d>this.limit/2?n=n-this.limit:d<-this.limit/2&&(n=n+this.limit)}}else n=zt(0,n,this.limit);if(n===this.targetScroll){l==null||l(this),u==null||u(this);return}if(this.userData=h??{},t){this.animatedScroll=this.targetScroll=n,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=n),typeof o=="number"&&typeof c!="function"?c=bt:typeof c=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,n,{duration:o,easing:c,lerp:r,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(d,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=d-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=d,this.setScroll(this.scroll),i&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(n,{deltaX:e,deltaY:t}){const s=Date.now(),i=n._lenis??(n._lenis={});let r,o,c,l,u,m,h,d;const f=this.options.gestureOrientation;if(s-(i.time??0)>2e3){i.time=Date.now();const L=window.getComputedStyle(n);i.computedStyle=L;const C=L.overflowX,z=L.overflowY;if(r=["auto","overlay","scroll"].includes(C),o=["auto","overlay","scroll"].includes(z),i.hasOverflowX=r,i.hasOverflowY=o,!r&&!o||f==="vertical"&&!o||f==="horizontal"&&!r)return!1;u=n.scrollWidth,m=n.scrollHeight,h=n.clientWidth,d=n.clientHeight,c=u>h,l=m>d,i.isScrollableX=c,i.isScrollableY=l,i.scrollWidth=u,i.scrollHeight=m,i.clientWidth=h,i.clientHeight=d}else c=i.isScrollableX,l=i.isScrollableY,r=i.hasOverflowX,o=i.hasOverflowY,u=i.scrollWidth,m=i.scrollHeight,h=i.clientWidth,d=i.clientHeight;if(!r&&!o||!c&&!l||f==="vertical"&&(!o||!l)||f==="horizontal"&&(!r||!c))return!1;let p;if(f==="horizontal")p="x";else if(f==="vertical")p="y";else{const L=e!==0,C=t!==0;L&&r&&c&&(p="x"),C&&o&&l&&(p="y")}if(!p)return!1;let g,x,w,k,S;if(p==="x")g=n.scrollLeft,x=u-h,w=e,k=r,S=c;else if(p==="y")g=n.scrollTop,x=m-d,w=t,k=o,S=l;else return!1;return(w>0?g0)&&k&&S}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const n=this.options.wrapper;return this.isHorizontal?n.scrollX??n.scrollLeft:n.scrollY??n.scrollTop}get scroll(){return this.options.infinite?ya(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(n){this._isScrolling!==n&&(this._isScrolling=n,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(n){this._isStopped!==n&&(this._isStopped=n,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(n){this._isLocked!==n&&(this._isLocked=n,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let n="lenis";return this.options.autoToggle&&(n+=" lenis-autoToggle"),this.isStopped&&(n+=" lenis-stopped"),this.isLocked&&(n+=" lenis-locked"),this.isScrolling&&(n+=" lenis-scrolling"),this.isScrolling==="smooth"&&(n+=" lenis-smooth"),n}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},Sa=class{constructor(n){b(this,"listeners",[]);this.state=n}set(n){this.state=n;for(let e of this.listeners)e(this.state)}subscribe(n){return this.listeners=[...this.listeners,n],()=>{this.listeners=this.listeners.filter(e=>e!==n)}}get(){return this.state}};function Ta(n){const[e,t]=y.useState(n.get());return y.useEffect(()=>n.subscribe(s=>t(s)),[n]),e}var Rt=y.createContext(null),Ve=new Sa(null),Na=y.forwardRef(({children:n,root:e=!1,options:t={},autoRaf:s=!0,...i},r)=>{const o=y.useRef(null),c=y.useRef(null),[l,u]=y.useState(void 0);y.useImperativeHandle(r,()=>({wrapper:o.current,content:c.current,lenis:l}),[l]),y.useEffect(()=>{const f=new ja({...t,...o.current&&c.current&&{wrapper:o.current,content:c.current},autoRaf:(t==null?void 0:t.autoRaf)??s});return u(f),()=>{f.destroy(),u(void 0)}},[e,JSON.stringify({...t,wrapper:null,content:null})]);const m=y.useRef([]),h=y.useCallback((f,p)=>{m.current.push({callback:f,priority:p}),m.current.sort((g,x)=>g.priority-x.priority)},[]),d=y.useCallback(f=>{m.current=m.current.filter(p=>p.callback!==f)},[]);return y.useEffect(()=>{if(e&&l)return Ve.set({lenis:l,addCallback:h,removeCallback:d}),()=>Ve.set(null)},[e,l,h,d]),y.useEffect(()=>{if(!l)return;const f=p=>{var g;for(let x=0;x{l.off("scroll",f)}},[l]),n?a.jsx(Rt.Provider,{value:{lenis:l,addCallback:h,removeCallback:d},children:e&&e!=="asChild"?n:a.jsx("div",{ref:o,...i,children:a.jsx("div",{ref:c,children:n})})}):null}),_a={};function Ea(n,e=[],t=0){const s=y.useContext(Rt),i=Ta(Ve),r=s??i??_a,{lenis:o,addCallback:c,removeCallback:l}=r;return y.useEffect(()=>{},[o,c,l,t,...e]),o}function za(){return a.jsxs(Na,{root:!0,options:{lerp:.1},children:[a.jsx(ss,{}),a.jsxs("main",{className:"flex flex-col min-h-screen",children:[a.jsx(ha,{}),a.jsx("div",{className:"flex-auto",children:a.jsx(Ds,{})})]}),a.jsx(ns,{})]})}const A=({className:n})=>a.jsx("div",{className:Z("container py-32",n),children:a.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),$=n=>{const e=Ea();y.useEffect(()=>{e&&e.scrollTo(0,{lerp:.3,duration:.3})},[e,n])};function Ca(){return $(),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(is,{}),a.jsx(as,{}),a.jsx(rs,{}),a.jsx(os,{}),a.jsx(ls,{}),a.jsx(cs,{}),a.jsx(us,{}),a.jsx(ds,{})]})}const D=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,Ra=n=>v.object({type:v.string(),company_name:v.string().min(3,{message:D("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),representative_name:v.string().min(3,{message:D("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:D("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),participants_number:v.string().min(1,{message:D("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",n)}),country:v.string().min(3,{message:D("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email_address:v.string().email({message:D("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone_number:v.string().min(8,{message:D("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),meeting_objective:v.string().min(3,{message:D("Укажите цель встречи","Specify the meeting objective","Duşuşygyň maksadyny görkeziň",n)}),proposal_description:v.string().optional(),government_agency:v.string().optional(),sector_industry:v.string().optional(),key_services:v.string().optional(),government_experience:v.string().optional(),preferred_meeting_datetime:v.string().optional(),meeting_mode:v.string().optional(),language_preference:v.string().optional(),technical_requirements:v.string().optional(),company_profile:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional(),proposal_presentation:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional(),relevant_certification:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional()}),La={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""};function Pa(n){const e=n+"CollectionProvider",[t,s]=Oe(e),[i,r]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:p,children:g}=f,x=le.useRef(null),w=le.useRef(new Map).current;return a.jsx(i,{scope:p,itemMap:w,collectionRef:x,children:g})};o.displayName=e;const c=n+"CollectionSlot",l=le.forwardRef((f,p)=>{const{scope:g,children:x}=f,w=r(c,g),k=ke(p,w.collectionRef);return a.jsx(tt,{ref:k,children:x})});l.displayName=c;const u=n+"CollectionItemSlot",m="data-radix-collection-item",h=le.forwardRef((f,p)=>{const{scope:g,children:x,...w}=f,k=le.useRef(null),S=ke(p,k),E=r(u,g);return le.useEffect(()=>(E.itemMap.set(k,{ref:k,...w}),()=>void E.itemMap.delete(k))),a.jsx(tt,{[m]:"",ref:S,children:x})});h.displayName=u;function d(f){const p=r(n+"CollectionConsumer",f);return le.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(p.itemMap.values()).sort((E,L)=>w.indexOf(E.ref.current)-w.indexOf(L.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:o,Slot:l,ItemSlot:h},d,s]}function Oa(n){const e=y.useRef(n);return y.useEffect(()=>{e.current=n}),y.useMemo(()=>(...t)=>{var s;return(s=e.current)==null?void 0:s.call(e,...t)},[])}var Ia=y.createContext(void 0);function Fa(n){const e=y.useContext(Ia);return n||e||"ltr"}var Be="rovingFocusGroup.onEntryFocus",$a={bubbles:!1,cancelable:!0},De="RovingFocusGroup",[He,Lt,Aa]=Pa(De),[Da,Pt]=Oe(De,[Aa]),[Ma,Ba]=Da(De),Ot=y.forwardRef((n,e)=>a.jsx(He.Provider,{scope:n.__scopeRovingFocusGroup,children:a.jsx(He.Slot,{scope:n.__scopeRovingFocusGroup,children:a.jsx(Ga,{...n,ref:e})})}));Ot.displayName=De;var Ga=y.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:i=!1,dir:r,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...h}=n,d=y.useRef(null),f=ke(e,d),p=Fa(r),[g=null,x]=vt({prop:o,defaultProp:c,onChange:l}),[w,k]=y.useState(!1),S=Oa(u),E=Lt(t),L=y.useRef(!1),[C,z]=y.useState(0);return y.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(Be,S),()=>_.removeEventListener(Be,S)},[S]),a.jsx(Ma,{scope:t,orientation:s,dir:p,loop:i,currentTabStopId:g,onItemFocus:y.useCallback(_=>x(_),[x]),onItemShiftTab:y.useCallback(()=>k(!0),[]),onFocusableItemAdd:y.useCallback(()=>z(_=>_+1),[]),onFocusableItemRemove:y.useCallback(()=>z(_=>_-1),[]),children:a.jsx(je.div,{tabIndex:w||C===0?-1:0,"data-orientation":s,...h,ref:f,style:{outline:"none",...n.style},onMouseDown:ie(n.onMouseDown,()=>{L.current=!0}),onFocus:ie(n.onFocus,_=>{const M=!L.current;if(_.target===_.currentTarget&&M&&!w){const te=new CustomEvent(Be,$a);if(_.currentTarget.dispatchEvent(te),!te.defaultPrevented){const I=E().filter(G=>G.focusable),B=I.find(G=>G.active),Te=I.find(G=>G.id===g),Y=[B,Te,...I].filter(Boolean).map(G=>G.ref.current);$t(Y,m)}}L.current=!1}),onBlur:ie(n.onBlur,()=>k(!1))})})}),It="RovingFocusGroupItem",Ft=y.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:i=!1,tabStopId:r,...o}=n,c=ms(),l=r||c,u=Ba(It,t),m=u.currentTabStopId===l,h=Lt(t),{onFocusableItemAdd:d,onFocusableItemRemove:f}=u;return y.useEffect(()=>{if(s)return d(),()=>f()},[s,d,f]),a.jsx(He.ItemSlot,{scope:t,id:l,focusable:s,active:i,children:a.jsx(je.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:ie(n.onMouseDown,p=>{s?u.onItemFocus(l):p.preventDefault()}),onFocus:ie(n.onFocus,()=>u.onItemFocus(l)),onKeyDown:ie(n.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const g=Ka(p,u.orientation,u.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let w=h().filter(k=>k.focusable).map(k=>k.ref.current);if(g==="last")w.reverse();else if(g==="prev"||g==="next"){g==="prev"&&w.reverse();const k=w.indexOf(p.currentTarget);w=u.loop?Wa(w,k+1):w.slice(k+1)}setTimeout(()=>$t(w))}})})})});Ft.displayName=It;var Va={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ha(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Ka(n,e,t){const s=Ha(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Va[s]}function $t(n,e=!1){const t=document.activeElement;for(const s of n)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function Wa(n,e){return n.map((t,s)=>n[(e+s)%n.length])}var Ua=Ot,qa=Ft,Ja=y.createContext(void 0);function Ya(n){const e=y.useContext(Ja);return n||e||"ltr"}function Xa(n){const e=y.useRef({value:n,previous:n});return y.useMemo(()=>(e.current.value!==n&&(e.current.previous=e.current.value,e.current.value=n),e.current.previous),[n])}var Ye="Radio",[Qa,At]=Oe(Ye),[Za,er]=Qa(Ye),Dt=y.forwardRef((n,e)=>{const{__scopeRadio:t,name:s,checked:i=!1,required:r,disabled:o,value:c="on",onCheck:l,form:u,...m}=n,[h,d]=y.useState(null),f=ke(e,x=>d(x)),p=y.useRef(!1),g=h?u||!!h.closest("form"):!0;return a.jsxs(Za,{scope:t,checked:i,disabled:o,children:[a.jsx(je.button,{type:"button",role:"radio","aria-checked":i,"data-state":Gt(i),"data-disabled":o?"":void 0,disabled:o,value:c,...m,ref:f,onClick:ie(n.onClick,x=>{i||l==null||l(),g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})}),g&&a.jsx(tr,{control:h,bubbles:!p.current,name:s,value:c,checked:i,required:r,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Dt.displayName=Ye;var Mt="RadioIndicator",Bt=y.forwardRef((n,e)=>{const{__scopeRadio:t,forceMount:s,...i}=n,r=er(Mt,t);return a.jsx(hs,{present:s||r.checked,children:a.jsx(je.span,{"data-state":Gt(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:e})})});Bt.displayName=Mt;var tr=n=>{const{control:e,checked:t,bubbles:s=!0,...i}=n,r=y.useRef(null),o=Xa(t),c=ps(e);return y.useEffect(()=>{const l=r.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&h){const d=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(d)}},[o,t,s]),a.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:r,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Gt(n){return n?"checked":"unchecked"}var sr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xe="RadioGroup",[nr,Vr]=Oe(Xe,[Pt,At]),Vt=Pt(),Ht=At(),[ir,ar]=nr(Xe),Kt=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:i,value:r,required:o=!1,disabled:c=!1,orientation:l,dir:u,loop:m=!0,onValueChange:h,...d}=n,f=Vt(t),p=Ya(u),[g,x]=vt({prop:r,defaultProp:i,onChange:h});return a.jsx(ir,{scope:t,name:s,required:o,disabled:c,value:g,onValueChange:x,children:a.jsx(Ua,{asChild:!0,...f,orientation:l,dir:p,loop:m,children:a.jsx(je.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":c?"":void 0,dir:p,...d,ref:e})})})});Kt.displayName=Xe;var Wt="RadioGroupItem",Ut=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,disabled:s,...i}=n,r=ar(Wt,t),o=r.disabled||s,c=Vt(t),l=Ht(t),u=y.useRef(null),m=ke(e,u),h=r.value===i.value,d=y.useRef(!1);return y.useEffect(()=>{const f=g=>{sr.includes(g.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",p)}},[]),a.jsx(qa,{asChild:!0,...c,focusable:!o,active:h,children:a.jsx(Dt,{disabled:o,required:r.required,checked:h,...l,...i,name:r.name,ref:m,onCheck:()=>r.onValueChange(i.value),onKeyDown:ie(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:ie(i.onFocus,()=>{var f;d.current&&((f=u.current)==null||f.click())})})})});Ut.displayName=Wt;var rr="RadioGroupIndicator",or=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,...s}=n,i=Ht(t);return a.jsx(Bt,{...i,...s,ref:e})});or.displayName=rr;var qt=Kt,Jt=Ut;const we=y.forwardRef(({className:n,...e},t)=>a.jsx(qt,{className:Z("grid gap-2",n),...e,ref:t}));we.displayName=qt.displayName;const ne=y.forwardRef(({className:n,...e},t)=>a.jsx(Jt,{ref:t,className:Z(e.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",n),...e}));ne.displayName=Jt.displayName;const se=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Веб-сайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"Email"},{label:"Phone number"},{label:"Website"}]},{h2:"Eksponent barada maglumat:",data:[{label:"Kompaniýanyň/guramanyň ady"},{label:"Wekiliniň ady"},{label:"Wezipesi"},{label:"Gatnaşyjylaryň sany"},{label:"Ýurt"},{label:"Email salgysy"},{label:"Telefon belgisi"},{label:"Web-saýt"}]}],re=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]},{h2:"Duşuşygyň maksady:",secondH2:"Kompaniýa/gurama barada maglumat:",data:[{label:"Duşuşygyň esasy maksady"},{label:"Teklibiňiziň/taslamaňyzyň/islegiňiziň gysgaça beýany"},{label:"Degişli döwlet edarasy/bölümi"},{label:"Pudak senagaty"},{label:"Esasy hyzmatlar/önümler"},{label:"Hökümetler bilen ozalky iş tejribesi (eger bar bolsa)"}]}],X=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"},{h2:"Duşuşygyň logistikasy:",secondH2:"Goşmaçalar",subtitle:"(Zerur bolsa aşakdaky resminamalary goşuň)",data:[{label:"Duşuşyk üçin islenýän sene we wagt"},{label:"Duşuşygyň islenýän görnüşi (ýüzbe-ýüz, wirtual (zoom/teams/başga), gibrid)"},{label:"Dil saýlamasy (iňlis, türkmen, rus, başga)"},{label:"Goşmaça tehniki ýa-da logistik talaplar (meselem, AW enjamlar, terjimeçiler we ş.m.)"},{label:"Kompaniýanyň/guramanyň profili"},{label:"Teklip/prezentasiýa"},{label:"Degişli şahadatnama/ygtyýarnama"}],button:"Ugratmak"}],lr=({handleNext:n})=>{$();const{control:e,formState:t}=Ke(),s=O(i=>i.lang);return a.jsxs(Se.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[a.jsx("h2",{className:"h2 mb-8",children:se[T(s)].h2}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(ze,{defaultValue:1,control:e,name:"type",render:({field:i})=>a.jsxs(W,{className:"space-y-3",children:[a.jsx(U,{className:"text-xl",children:{ru:"Тип:",en:"Type:",tm:"Görnüşi:"}[s]}),a.jsx(q,{children:a.jsxs(we,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[a.jsxs(W,{className:"flex items-center space-x-3 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"B2B",checked:i.value==="B2B"})}),a.jsx(U,{className:"text-base",children:"B2B"})]}),a.jsxs(W,{className:"flex items-center space-x-3 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"B2G",checked:i.value==="B2G"})}),a.jsx(U,{className:"text-base",children:"B2G"})]})]})})]})}),a.jsx(N,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:se[T(s)].data[0].label}),a.jsx(N,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:se[T(s)].data[1].label}),a.jsx(N,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:se[T(s)].data[2].label}),a.jsx(N,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:se[T(s)].data[3].label}),a.jsx(N,{control:e,name:"country",error:t.errors.country,placeholder:"",label:se[T(s)].data[4].label}),a.jsx(N,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:se[T(s)].data[5].label}),a.jsx(N,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:se[T(s)].data[6].label}),a.jsx(N,{control:e,name:"website",placeholder:"",label:se[T(s)].data[7].label})]}),a.jsx(H,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:{ru:"Далее",en:"Next",tm:"Indiki"}[s]})]})},cr=({handleNext:n,handlePrev:e})=>{$();const t=O(r=>r.lang),{control:s,formState:i}=Ke();return a.jsxs(Se.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[a.jsx("h2",{className:"h2 mb-8",children:re[T(t)].h2}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(N,{control:s,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:re[T(t)].data[0].label}),a.jsx(N,{control:s,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:re[T(t)].data[1].label}),a.jsx(N,{control:s,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:re[T(t)].data[2].label}),a.jsx("h2",{className:"h2 mt-4",children:re[T(t)].secondH2}),a.jsx(N,{control:s,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:re[T(t)].data[3].label}),a.jsx(N,{control:s,name:"key_services",error:i.errors.key_services,placeholder:"",label:re[T(t)].data[4].label}),a.jsx(N,{control:s,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:re[T(t)].data[5].label})]}),a.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[a.jsx(H,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[t]}),a.jsx(H,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:{ru:"Далее",en:"Next",tm:"Indiki"}[t]})]})]})},ur=({handlePrev:n})=>{$();const{control:e,formState:t}=Ke(),s=O(i=>i.lang);return a.jsxs(Se.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[a.jsx("h2",{className:"h2 mb-8",children:X[T(s)].h2}),a.jsxs("div",{className:"flex flex-col gap-6",children:[a.jsx(N,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:X[T(s)].data[0].label}),a.jsx(N,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:X[T(s)].data[1].label}),a.jsx(N,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:X[T(s)].data[2].label}),a.jsx(N,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:X[T(s)].data[3].label})]}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"h2 mt-10",children:X[T(s)].secondH2}),a.jsx("h5",{className:"text-on_surface_v",children:X[T(s)].subtitle})]}),a.jsx(N,{control:e,name:"company_profile",label:X[T(s)].data[4].label,type:"file",textDark:!0}),a.jsx(N,{control:e,name:"proposal_presentation",label:X[T(s)].data[5].label,type:"file",textDark:!0}),a.jsx(N,{control:e,name:"relevant_certification",label:X[T(s)].data[6].label,type:"file",textDark:!0})]}),a.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[a.jsx(H,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[s]}),a.jsx(H,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?a.jsx(We,{className:"animate-spin"}):X[T(s)].button})]})]})},dr=({stage:n,setStage:e,success:t,setSuccess:s})=>{const i=O(h=>h.lang),r=y.useMemo(()=>Ra(i),[i]),o=Ie({resolver:$e(r),defaultValues:La,mode:"onChange"}),c=h=>{switch(h){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},l=async()=>{const h=c(n);await o.trigger(h)&&e(f=>f+1)},u=()=>e(h=>h-1),m=async h=>{try{const d=new FormData;Object.entries(h).forEach(([p,g])=>{(g instanceof File||g!==void 0)&&d.append(p,g)}),(await fs.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",d,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(d){console.error("Ошибка при отправке B2B формы:",d)}};return a.jsx(Fe,{...o,children:a.jsx("form",{onSubmit:o.handleSubmit(m),children:a.jsxs("div",{className:"relative",children:[a.jsx(he,{children:n===1&&a.jsx(lr,{handleNext:l})}),a.jsx(he,{children:n===2&&a.jsx(cr,{handleNext:l,handlePrev:u})}),a.jsx(he,{children:n===3&&t===!1&&a.jsx(ur,{handlePrev:u})}),t&&a.jsx(Ue,{})]})})})};function mr(){$();const n=O(r=>r.lang),[e,t]=y.useState(1),[s,i]=y.useState(!1);return a.jsxs("div",{className:"pb-[120px]",children:[a.jsx(ue,{title:{ru:"B2B | B2G встречи",en:"B2B | B2G meetings",tm:"B2B | B2G duşuşyklar"}[n]}),!s&&e!==0&&a.jsx(gs,{stage:e}),a.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:a.jsx(dr,{success:s,setSuccess:i,stage:e,setStage:t})})]})}function pr(){$();const n=O(e=>e.lang);return a.jsxs("div",{className:Z(""),children:[a.jsx(ue,{title:{ru:"О выставке",en:"About exhibition",tm:"Sergi hakynda"}[n]}),a.jsx(xs,{}),a.jsx(ys,{}),a.jsx(bs,{}),a.jsx(ks,{}),a.jsx(vs,{})]})}const pe=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,hr=n=>v.object({company_name:v.string().min(3,{message:pe("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),rep_name:v.string().min(3,{message:pe("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:pe("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),country:v.string().min(3,{message:pe("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email:v.string().email({message:pe("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone:v.string().min(8,{message:pe("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),visa_support:v.string().optional()}),fr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},R=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Необорудованная площадь",radio_2:"Оборудованная площадь",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"Email адрес",label_6:"Номер телефона",label_7:"Веб-сайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book a stand:",h2:"Select one of the options:",radio:"Stand space only",radio_2:"Prefabricated stand",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"Email",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"},{cover:"Stend bronlamak",h2:"Wariantlaryň birini saýlaň:",radio:"Enjamlaşdyrylmadyk meýdan",radio_2:"Enjamlaşdyrylan meýdan",label_1:"Kompaniýanyň/guramanyň ady",label_2:"Wekiliniň ady",label_3:"Wezipesi",number_of_participants:"Gatnaşyjylaryň sany",label_4:"Ýurt",label_5:"Email salgysy",label_6:"Telefon belgisi",label_7:"Web-saýt",visa:"Wiza goldawy:",visa_radio:"Hawa",visa_radio_2:"Ýok",button:"Ugratmak"}];function gr(){$();const n=O(c=>c.lang),[e,t]=y.useState(!1),s=y.useMemo(()=>hr(n),[n]),i=Ie({resolver:$e(s),defaultValues:fr}),r=async c=>{try{await ws(c)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:o}=i.formState;return a.jsxs("div",{children:[a.jsx(ue,{title:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[n]}),a.jsx(he,{children:!e&&a.jsx(Fe,{...i,children:a.jsxs(Se.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:i.handleSubmit(r),children:[a.jsx(N,{label:R[T(n)].label_1,name:"company_name",control:i.control,error:o.company_name}),a.jsx(N,{label:R[T(n)].label_2,name:"rep_name",control:i.control,error:o.rep_name}),a.jsx(N,{label:R[T(n)].label_3,name:"job_title",control:i.control,error:o.job_title}),a.jsx(N,{label:R[T(n)].label_4,name:"country",control:i.control,error:o.country}),a.jsx(N,{label:R[T(n)].label_5,name:"email",control:i.control,error:o.email}),a.jsx(N,{label:R[T(n)].label_6,name:"phone",control:i.control,error:o.phone}),a.jsx(N,{label:R[T(n)].label_7,name:"website",control:i.control}),a.jsx(ze,{control:i.control,name:"visa_support",render:({field:c})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[T(n)].visa}),a.jsx(q,{children:a.jsxs(we,{onValueChange:c.onChange,defaultValue:c.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"yes",checked:c.value==="yes"})}),a.jsx(U,{className:"text-base",children:R[T(n)].visa_radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0 ",children:[a.jsx(q,{children:a.jsx(ne,{value:"no",checked:c.value==="no"})}),a.jsx(U,{className:"text-base",children:R[T(n)].visa_radio_2})]})]})})]})}),a.jsx(H,{disabled:i.formState.isSubmitting,className:"mt-5",children:i.formState.isSubmitting?a.jsx(We,{className:"animate-spin"}):R[T(n)].button})]})})}),e&&a.jsx(Ue,{delay:.3})]})}const xr=v.object({name:v.string().min(2,"error"),email:v.string().email(),phone:v.string().min(8,"error"),company:v.string().min(2,"error"),msg:v.string().min(5,"error")}),yr={name:"",email:"",phone:"",company:"",msg:""},br=({className:n})=>{const{t:e}=ge("contacts"),[t,s]=y.useState(!1),i=Ie({resolver:$e(xr),defaultValues:yr});async function r(c){try{const l=await Ss(c);s(l)}catch(l){console.error("POST contact",l)}}const{errors:o}=i.formState;return a.jsx("div",{className:Z("bg-primary rounded-[8px] py-8 px-6 ",n),children:a.jsx(Fe,{...i,children:a.jsxs("form",{onSubmit:i.handleSubmit(r),children:[a.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(N,{onPrimary:!0,name:"name",control:i.control,label:e("name"),error:o.name}),a.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[a.jsx(N,{onPrimary:!0,name:"email",control:i.control,label:"Email",error:o.email}),a.jsx(N,{onPrimary:!0,name:"phone",control:i.control,label:e("phone"),error:o.phone})]}),a.jsx(N,{onPrimary:!0,name:"company",control:i.control,label:e("company"),error:o.name}),a.jsx(N,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:i.control,error:o.msg}),a.jsx(H,{disabled:i.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):i.formState.isSubmitting?a.jsx(js,{className:"animate-spin text-white"}):e("button")})]})]})})})};function kr(){$();const{t:n}=ge("contacts");return a.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[a.jsx(ee,{children:a.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[a.jsx(br,{}),a.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[a.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:n("title_2")}),a.jsxs("div",{className:"flex flex-col gap-20",children:[a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/map.svg",alt:"address"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:n("address")}),a.jsx("address",{className:"text-base normal not-italic",children:n("venue")})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:n("phone")}),a.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/email.svg",alt:"email"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),a.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),a.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:a.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}const vr=[{id:0,title:"Фото",titleEn:"Photo",titleTm:"Surat"},{id:1,title:"Видео",titleEn:"Video",titleTm:"Wideo"}],wr=({className:n})=>{var w,k,S,E,L;$();const[e,t]=y.useState(0),{data:s,isPending:i,status:r}=Ts(1),{data:o}=wt(1),[c,l]=y.useState(!1),[u,m]=y.useState({id:0,type:"photo"}),h=O(C=>C.lang),d=({id:C,type:z})=>{l(!0),m({id:C,type:z})},{t:f}=ge("main"),[p,g]=y.useState(!1),x=C=>C===0&&i?a.jsx(fe,{}):a.jsx(fe,{});return console.log(r),a.jsxs(a.Fragment,{children:[a.jsx(he,{children:c&&a.jsx(Ns,{activeItem:u,setActiveItem:m,setIsOpen:l})}),a.jsxs("section",{className:Z("md:mb-[120px] mb-20",n),children:[a.jsx(ue,{title:{ru:"Моменты",en:"Moments",tm:"Pursatlar"}[h]}),a.jsx(ee,{className:"page-bottom md:pt-10 pt-6",children:a.jsxs("div",{className:"flex justify-center flex-col",children:[a.jsx(jt,{state:e,setState:t,data:vr,className:"mb-6"}),e===0&&i?x(e):a.jsxs(a.Fragment,{children:[a.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"TurkmenTextile Expo-2025"}),a.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(k=(w=s==null?void 0:s.photos)==null?void 0:w.slice(0,p?1e3:16))==null?void 0:k.map((C,z)=>{var _,M;return a.jsx("div",{onClick:()=>d({id:z,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:a.jsx("img",{src:((_=C==null?void 0:C.photo)==null?void 0:_.path)??"",alt:((M=C==null?void 0:C.photo)==null?void 0:M.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},z)}):(S=o==null?void 0:o.videos)==null?void 0:S.map((C,z)=>{var _;return a.jsxs("div",{onClick:()=>d({id:z,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[a.jsx(_s,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),a.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),a.jsx("img",{src:((_=C==null?void 0:C.video_photo)==null?void 0:_.path)??"",className:"size-full object-cover"})]},z)})})]}),((E=s==null?void 0:s.photos)==null?void 0:E.length)&&((L=s==null?void 0:s.photos)==null?void 0:L.length)>16&&!p&&a.jsx(H,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:f("media.button")})]})})]})]})},jr=(n,e)=>{const{data:t,isPending:s}=qe({queryKey:["news-inner",n,e],queryFn:()=>Es(n,e),select:({data:i})=>i.data});return{data:t,isPending:s}};function Sr(){var o;const{id:n}=Ms(),e=O(c=>c.lang),t=Number(n);$(t);const{data:s,isPending:i}=jr(t,e),{data:r}=St(e);return i?a.jsx(fe,{}):a.jsxs(ee,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[a.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),a.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),a.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:a.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),a.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),a.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),a.jsxs("section",{children:[a.jsx("h2",{className:"h2 mb-6",children:{ru:"Читайте также:",en:"Read more:",tm:"Şeýle hem okaň:"}[e]}),a.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:r==null?void 0:r.filter(c=>c.id!==t).slice(0,3).map(c=>y.createElement(Tt,{...c,key:c.title}))})]})]})}function Tr(){$();const n=O(s=>s.lang),{data:e,isPending:t}=St(n);return t?a.jsx(fe,{}):a.jsxs(ee,{className:"page-padding",children:[a.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[n]}),a.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>y.createElement(Tt,{...s,key:s.title}))})]})}const Nr=()=>{const n=O(s=>s.lang),{data:e,isPending:t}=qe({queryKey:["participants",n],queryFn:()=>zs(n),select:({data:s})=>s.data});return{data:e,isPending:t}},_r=({className:n})=>{var u,m,h,d,f;$();const e=O(p=>p.lang),{data:t,isPending:s}=Nr(),i={company:{ru:"Название компании",en:"Company name",tm:"Kompaniýanyň ady"}[e],country:{ru:"Страна",en:"Country",tm:"Ýurt"}[e],industry:{ru:"Сфера деятельности",en:"Industry",tm:"Pudak"}[e]},[r,o]=y.useState(0),c=(h=t==null?void 0:t[0])==null?void 0:h.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(m=t==null?void 0:t[2])==null?void 0:m.participants),l=t==null?void 0:t.filter(p=>r===1?p.id===3:r===2?p.id===1:p.id===2);return console.log(r),a.jsx(ee,{children:a.jsxs("section",{className:Z("page-padding overflow-x-hidden",n),children:[a.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:{ru:"Список участников",en:"List of participants",tm:"Gatnasyjylaryň sanawy"}[e]}),a.jsx(jt,{state:r,setState:o,className:"mb-6 md:w-fit"}),a.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[a.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[a.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:i==null?void 0:i.company}),a.jsx("h3",{className:"flex-[0_0_19.80%]",children:i==null?void 0:i.country}),a.jsx("h3",{className:"flex-[0_0_34.65%]",children:i==null?void 0:i.industry})]}),s?a.jsx(fe,{}):r===0?c==null?void 0:c.map((p,g,x)=>a.jsx(st,{...p,arr:x==null?void 0:x.length,index:g,image:p.image??{path:""},image_country:p.image_country??{path:""}})):(f=(d=l==null?void 0:l[0])==null?void 0:d.participants)==null?void 0:f.map((p,g,x)=>a.jsx(st,{...p,arr:x==null?void 0:x.length,index:g,image:p.image??{path:""},image_country:p.image_country??{path:""}}))]})]})})},ce=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,Er=n=>v.object({space_package:v.string(),company_name:v.string().min(3,{message:ce("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),rep_name:v.string().min(3,{message:ce("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:ce("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),participants_number:v.preprocess(e=>Number(e),v.number().min(1,ce("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",n))),country:v.string().min(3,{message:ce("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email:v.string().email({message:ce("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone:v.string().min(8,{message:ce("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),visa_support:v.string().optional()}),zr={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function Cr(){$();const n=O(l=>l.lang),[e,t]=y.useState(!1),s=y.useMemo(()=>Er(n),[n]),i=Ie({resolver:$e(s),defaultValues:zr}),r=async l=>{await Cs(l)&&t(!0)};y.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:o}=i.formState,c=T(n);return a.jsxs("div",{children:[a.jsx(ue,{title:R[T(n)].cover}),a.jsx(he,{children:!e&&a.jsx(Fe,{...i,children:a.jsxs(Se.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:i.handleSubmit(r),children:[a.jsx(ze,{control:i.control,name:"space_package",render:({field:l})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[c].h2}),a.jsx(q,{children:a.jsxs(we,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"space",checked:l.value==="space"})}),a.jsx(U,{className:"text-base",children:R[c].radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"package",checked:l.value==="package"})}),a.jsx(U,{className:"text-base",children:R[c].radio_2})]})]})})]})}),a.jsx(N,{label:R[c].label_1,name:"company_name",control:i.control,error:o.company_name}),a.jsx(N,{label:R[c].label_2,name:"rep_name",control:i.control,error:o.rep_name}),a.jsx(N,{label:R[c].label_3,name:"job_title",control:i.control,error:o.job_title}),a.jsx(N,{label:R[c].number_of_participants,type:"number",name:"participants_number",control:i.control,error:o.participants_number}),a.jsx(N,{label:R[c].label_4,name:"country",control:i.control,error:o.country}),a.jsx(N,{label:R[c].label_5,name:"email",control:i.control,error:o.email}),a.jsx(N,{label:R[c].label_6,name:"phone",control:i.control,error:o.phone}),a.jsx(N,{label:R[c].label_7,name:"website",control:i.control}),a.jsx(ze,{control:i.control,name:"visa_support",render:({field:l})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[c].visa}),a.jsx(q,{children:a.jsxs(we,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"yes",checked:l.value==="yes"})}),a.jsx(U,{className:"text-base",children:R[c].visa_radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0 ",children:[a.jsx(q,{children:a.jsx(ne,{value:"no",checked:l.value==="no"})}),a.jsx(U,{className:"text-base",children:R[c].visa_radio_2})]})]})})]})}),a.jsx(H,{disabled:i.formState.isSubmitting,className:"mt-5",children:i.formState.isSubmitting?a.jsx(We,{className:"animate-spin"}):R[c].button})]})})}),e&&a.jsx(Ue,{delay:.3})]})}const Yt=()=>{var p;const{t:n}=ge("main"),e=O(g=>g.lang),{pathname:t}=Je(),[s]=Nt({loop:!0},[Rs({delay:5e3,stopOnInteraction:!1})]),{title:i,texts:r,button:o,button2:c}=n("impressions.hero",{returnObjects:!0}),{title2:l,texts2:u}=n("impressions.hero",{returnObjects:!0}),m=(g,x)=>t==="/impressions"?g:x,h=(g,x)=>t==="/impressions"?g:x,d={en:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"],ru:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg"],tm:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"]},f=()=>d[e]??d.en;return a.jsxs("section",{className:"",children:[t==="/impressions-tm"?a.jsx("div",{ref:s,className:"embla overflow-hidden",children:a.jsx("div",{className:"flex",children:f().map((g,x)=>a.jsx("img",{src:g,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):a.jsx("img",{src:n("impressions.banner")}),a.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:{ru:"Модные показы",en:"Fashion shows",tm:"Moda görkezişler"}[e]}),a.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:a.jsxs(ee,{className:"md:py-20 py-10",children:[a.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:m(i,l)}),a.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(p=h(r,u))==null?void 0:p.map((g,x)=>a.jsx("p",{className:"md:text-lg !normal",children:g},x))}),a.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[a.jsx(nt,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:a.jsx(H,{size:"sm",className:"w-full",children:o})}),a.jsx(nt,{to:e==="ru"?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_en.pdf",target:"_blank",className:"w-full",children:a.jsx(H,{size:"sm",className:"w-full",children:c})})]})]})})]})},Xt=()=>{var m,h,d;const{t:n}=ge("main"),{pathname:e}=Je(),[t,s]=y.useState(1),{data:i}=wt(1),o=[...(i==null?void 0:i.videos.filter(f=>f.sections[0]==="fashion_shows"))??[]].sort((f,p)=>(f==null?void 0:f.fashion_shows_order_id)+(p==null?void 0:p.fashion_shows_order_id)),{videosTitle:c,videosTitle2:l}=n("impressions",{returnObjects:!0}),u=()=>e!=="/impressions";return a.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:a.jsxs(ee,{children:[a.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:u()?c:l}),a.jsxs("div",{className:"flex flex-col lg:flex-row lg:mx-20 gap-4 text-white overflow-hidden h-fit lg:h-[490px]",children:[a.jsxs("div",{className:"bg-gray_10 flex-auto p-2 rounded-[8px] border border-gray_09 flex flex-col justify-center h-full",children:[a.jsx("div",{className:"max-h-[450px]",children:a.jsx("video",{src:(d=(h=(m=i==null?void 0:i.videos)==null?void 0:m[t])==null?void 0:h.video)==null?void 0:d.path,muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})}),a.jsx("div",{className:"flex items-center justify-between mt-auto"})]}),a.jsx("div",{className:"bg-gray_10 flex-[0_0_20%] px-2 pt-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:a.jsx("div",{className:"flex flex-col gap-2 w-full overflow-y-auto overflow-x-hidden h-full",children:o==null?void 0:o.map((f,p)=>{var g;return a.jsx("div",{onClick:()=>s(p+1),className:"basis-[70px] w-[80%] cursor-pointer mx-auto overflow-hidden",children:a.jsx("img",{src:(g=f==null?void 0:f.video_photo)==null?void 0:g.path,alt:"",className:"object-cover size-full rounded-tl hover:scale-105 transition-transform rounded-bl"})},p)})})})]})]})})},Rr=n=>{const e=O(i=>i.lang),{data:t,isPending:s}=qe({queryKey:["designers",e],queryFn:()=>Ls(e,n),select:({data:i})=>i.data});return{data:t,isPending:s}},Qt=()=>{const{pathname:n}=Je(),e=()=>n!=="/impressions",{data:t,isPending:s}=Rr(e()?2:1),[i,r]=Nt({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,c]=y.useState(0),{t:l}=ge("main"),[u,m]=y.useState(!1),[h,d]=y.useState(!0),f=y.useCallback(S=>{r&&r.scrollTo(S)},[r]);y.useEffect(()=>{if(!r)return;const S=()=>{c(r==null?void 0:r.selectedScrollSnap()),m(r.canScrollPrev()),d(r.canScrollNext())};return r.on("select",S),()=>{r.off("select",S)}},[r]);const{title:p,text:g,title2:x,text2:w}=l("impressions.designers",{returnObjects:!0}),k=[...(t==null?void 0:t.designers)??[]].sort((S,E)=>(S==null?void 0:S.order_id)-(E==null?void 0:E.order_id));return console.log(k),a.jsx("section",{className:"md:py-20 py-10",children:a.jsxs(ee,{className:"flex flex-col md:gap-10 gap-6",children:[a.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?p:x}),a.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?g:w}),a.jsxs("div",{ref:i,className:"embla",children:[a.jsx("div",{className:"flex embla__container",children:s?a.jsx(fe,{}):k==null?void 0:k.map((S,E)=>a.jsx(Ps,{...S,className:"embla__slide flex-[0_0_714px] mr-4"},E))}),a.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[a.jsx("button",{onClick:()=>r==null?void 0:r.scrollPrev(),className:Z("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:a.jsx(Os,{})}),a.jsx("div",{className:"flex items-center gap-2",children:[...Array(k!=null&&k.length?Math.round((k==null?void 0:k.length)/2):5)].map((S,E)=>a.jsx("div",{onClick:()=>f==null?void 0:f(E),className:Z("w-5 h-1 rounded-[2px] cursor-pointer",o===E?"bg-teritary":"bg-on_surface_v")},E))}),a.jsx("button",{onClick:()=>r==null?void 0:r.scrollNext(),className:Z("size-12 flex items-center justify-center",!h&&"opacity-20 pointer-events-none"),children:a.jsx(Is,{})})]})]})]})})};function Lr(){return $(),a.jsxs("div",{className:"overflow-x-hidden",children:[a.jsx(Yt,{}),a.jsx(Xt,{}),a.jsx(Qt,{})]})}function Pr(){return $(),a.jsxs("div",{className:"overflow-x-hidden",children:[a.jsx(Yt,{}),a.jsx(Xt,{}),a.jsx(Qt,{})]})}const Or="/about-place.jpg",P={title:{ruText:"Варианты участия",enText:"Participation Options",tmText:"Gatnaşmagyň görnüşleri"},exhibitionSpace:{ruText:"Аренда выставочной площади",enText:"Exhibition Space Rental",tmText:"Sergi meýdanyny kärendesine almak"},spaceOnly:{ruText:"Необорудованная площадь",enText:"Space Only",tmText:"Enjamlaşdyrylmadyk meýdan"},example:{ruText:"Пример",enText:"Example",tmText:"Mysal"},spaceOnlyDescription:{ruText:"Чистая площадь для последующей застройки (стандартная застройка или по индивидуальному дизайну). Включает: общую уборку и охрану павильона. Электричество в стоимость не включено.",enText:"Raw exhibition space for subsequent construction (standard booth or customized design). Includes general cleaning and pavilion security. Electricity is not included in the price.",tmText:"Soňky gurluşyk üçin arassa meýdan (standart gurluşyk ýa-da indiwidual dizaýn). Öz içine alýar: umumy arassaçylyk we pawilýonyň goragy. Elektrik energiýasy bahasynyň içine girenok."},standardBooth:{ruText:"Стандартная застройка",enText:"Standard Booth Construction",tmText:"Standart gurluşyk"},customBooth:{ruText:"Индивидуальный дизайн",enText:"Custom Booth Design",tmText:"Indiwidual dizaýn"},boothExampleDescription:{ruText:"Включает: базовое электроподключение (220V - 2 кВт), стены (стандартные или индивидуальный дизайн). Общую уборку и охрану павильона.",enText:"Includes: basic electrical connection (220V - 2 kW), walls (standard or customized design), general cleaning, and pavilion security.",tmText:"Öz içine alýar: esasy elektrik birikdirmesi (220V - 2 kWt), diwarlar (standart ýa-da indiwidual dizaýn). Umumy arassaçylyk we pawilýonyň goragy."},registrationFee:{ruText:"Участие со стендом включает регистрационную оплату.",enText:"Participation with a booth includes a registration fee.",tmText:"Stend bilen gatnaşmak hasaba alyş tölegini öz içine alýar."},pricingNote:{ruText:"Пожалуйста уточните стоимость у менеджера проекта.",enText:"Please check the pricing with the project manager.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},partnershipTitle:{ruText:"Партнёрские возможности",enText:"Partnership Opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},partnershipIntro:{ruText:'Если Вы заинтересованы в более активном выходе на рынок или целью Вашей компании является максимальное продвижение на рынок, используйте пакет "Партнерство выставки". Приобретая данную опцию, Вы получаете:',enText:'If your company is interested in a more active market presence or aims to maximize market promotion, we recommend the "Exhibition Partnership" package. By choosing this option, you will receive:',tmText:'Eger siziň kompaniýaňyz bazara has işjeň çykmaga gyzyklanýan bolsa, "Serginiň hyzmatdaşlygy" paketini ulanyň. Bu opsiýany alyp, siz şulary alarsyňyz:'},partnershipItems:[{ruText:"Статус Партнера выставки, в зависимости от выбранного пакета",enText:"Exhibition Partner status, depending on the selected package",tmText:"Saýlanan pakete baglylykda Serginiň hyzmatdaşy statusy"},{ruText:"Масштабную рекламную кампанию (размещение логотипа компании на всей рекламной продукции выставки)",enText:"A large-scale advertising campaign (placement of your company logo on all exhibition promotional materials)",tmText:"Uly gerimli reklama kampaniýasy (kompaniýanyň logotipini serginiň ähli reklama önümlerinde ýerleşdirmek)"},{ruText:"Широкую узнаваемость",enText:"Wide recognition",tmText:"Giň tanalmaklyk"},{ruText:"Ассоциирование выставки с именем Вашей компании и др.",enText:"Association of the exhibition with your company's name, and more",tmText:"Serginiň siziň kompaniýaňyzyň ady bilen assosiasiýasy we ş.m."}],partnershipNote:{ruText:"Пожалуйста, уточните стоимость у менеджера проекта.",enText:"Please contact the project manager to clarify the cost.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},exampleImageAlt:{ruText:"Пример площадки",enText:"Example space",tmText:"Meýdançanyň mysaly"},standardExampleAlt:{ruText:"Пример стандартной застройки",enText:"Standard booth example",tmText:"Standart gurluşygyň mysaly"},customExampleAlt:{ruText:"Пример индивидуального дизайна",enText:"Custom booth example",tmText:"Indiwidual dizaýnyň mysaly"}},kt=()=>a.jsx("svg",{width:"14",height:"20",viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M7 1V15M7 15L2 10M7 15L12 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function Ir(){$();const n=O(t=>t.lang),e=t=>n==="ru"?t.ruText:n==="tm"?t.tmText??t.enText:t.enText;return a.jsxs("div",{children:[a.jsx(ue,{title:e(P.title)}),a.jsx(ee,{className:"page-padding",children:a.jsxs("div",{className:"mx-auto max-w-[900px] text-on_surface",children:[a.jsx("p",{className:"mb-10 text-3xl font-medium",children:e(P.title)}),a.jsxs(H,{className:"mb-2 bg-primary md:text-base w-full",children:["1. ",e(P.exhibitionSpace)]}),a.jsx(H,{variant:"outline",className:"w-full mb-10 border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.spaceOnly)}),a.jsx("p",{className:"mb-5 text-center text-lg",children:e(P.example)}),a.jsx("div",{className:"mx-auto h-[180px] w-full max-w-[754px] md:h-[377px]",children:a.jsx("img",{src:Or,alt:e(P.exampleImageAlt),className:"size-full rounded-sm object-cover"})}),a.jsx("div",{className:"mt-5 text-center text-base leading-relaxed",children:a.jsx("p",{children:e(P.spaceOnlyDescription)})}),a.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[a.jsxs("div",{className:"w-full flex flex-col items-center gap-2 text-primary",children:[a.jsx(kt,{}),a.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.standardBooth)})]}),a.jsxs("div",{className:"flex flex-col items-center gap-2 text-primary",children:[a.jsx(kt,{}),a.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.customBooth)})]})]}),a.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),a.jsx("img",{src:"/example.jpeg",alt:e(P.standardExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),a.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]}),a.jsxs("div",{children:[a.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),a.jsx("img",{src:"/example-2.jpeg",alt:e(P.customExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),a.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]})]}),a.jsx("p",{className:"mt-6 text-2xl",children:e(P.registrationFee)}),a.jsx("p",{className:"text-base mt-3",children:e(P.pricingNote)}),a.jsxs("div",{className:"mt-6 bg-primary py-3 text-center text-xs font-medium text-on_primary md:text-base",children:["2. ",e(P.partnershipTitle)]}),a.jsxs("div",{className:"mt-3 text-base leading-relaxed font-normal",children:[a.jsx("p",{className:"mb-2",children:e(P.partnershipIntro)}),a.jsx("ul",{className:"list-disc pl-5",children:P.partnershipItems.map(t=>a.jsx("li",{children:e(t)},t.enText))}),a.jsx("p",{className:"mt-2",children:e(P.partnershipNote)})]})]})})]})}const K={title:{ruText:"Партнерские возможности",enText:"Partner opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},intro:{ruText:"Предлагаем Вам воспользоваться комплексными возможностями - партнерскими пакетами, разработанными под различные маркетинговые задачи компании-участника, которые позволят максимально использовать коммерческий потенциал выставки для усиления бренда Вашей компании и бесспорно повысят эффективность продвижения Вашей компании.",enText:"We invite you to take advantage of integrated opportunities - partnership packages designed for various marketing objectives of the exhibiting company. They allow you to maximize the exhibition's commercial potential, strengthen your brand, and significantly increase the effectiveness of your promotion.",tmText:"Size dürli marketing wezipelerine gönükdirilen hyzmatdaşlyk paketlerinden peýdalanmagy teklip edýäris. Olar serginiň söwda potensialyny iň ýokary derejede ulanmaga, brendiňizi güýçlendirmäge we kompaniýaňyzy öňe sürmegiň netijeliligini ep-esli artdyrmaga mümkinçilik berýär."},partnership:{ruText:"Партнерство выставки - это всегда больше, чем просто участие. Это прекрасная возможность выгодно подать Вашу продукцию широкой публике в соответствии с Вашими основными целями и задачами. В каждом партнерском пакете предоставлены уникальные позиции, специально сформированные таким образом, что Вы наиболее точно и эффективно передаете обращение к целевой аудитории.",enText:"Exhibition partnership is always more than just participation. It is a great opportunity to present your products to a wide audience in line with your goals and objectives. Each partnership package includes unique placements structured so you can communicate your message to the target audience as precisely and effectively as possible.",tmText:"Serginiň hyzmatdaşlygy – bu diňe bir gatnaşmakdan has köp zatdyr. Bu öz önümleriňizi giň köpçülige hödürlemek üçin ajaýyp mümkinçilikdir. Her hyzmatdaşlyk paketinde maksatly auditoriýa iň takyk we netijeli ýol bilen ýüzlenmegiňiz üçin ýörite düzülen özboluşly orunlar bar."},benefitsTitle:{ruText:"Партнерство выставки Turkmen Textile позволит:",enText:"Partnership with Turkmen Textile will allow you:",tmText:"Turkmen Textile sergisiniň hyzmatdaşlygy mümkinçilik berer:"},benefits:[{ruText:"Укрепить позиции Вашей компании на рынке.",enText:"Strengthen your company's position in the market.",tmText:"Kompaniýaňyzyň bazardaky pozisiýasyny berkitmek."},{ruText:"Обеспечить существенное преимущество в конкурентной среде.",enText:"Gain a significant advantage in the competitive environment.",tmText:"Bäsdeşlik gurşawynda ep-esli artykmaçlyk gazanmak."},{ruText:"Закрепить имидж успешного бренда Вашей компании.",enText:"Reinforce the image of your company as a successful brand.",tmText:"Kompaniýaňyzyň üstünlikli brend hökmünde abraýyny berkitmek."},{ruText:"Сделать Вашу торговую марку узнаваемой для широкого круга участников и посетителей выставки.",enText:"Make your trademark recognizable to a wide range of exhibition participants and visitors.",tmText:"Söwda belgiňizi serginiň gatnaşyjylarynyň we gelýänleriniň giň topary üçin tanalýan etmek."},{ruText:"Выделить Вашу компанию среди других участников.",enText:"Stand out among other exhibitors.",tmText:"Kompaniýaňyzy beýleki gatnaşyjylaryň arasynda tapawutlandyrmak."}],highlight:{ruText:"Вы хотите, чтобы в профессиональной среде именно Вашу компанию считали ключевым игроком на рынке? Тогда заявите о себе громче всех!",enText:"Do you want your company to be seen as a key player in the professional community? Then make yourself heard louder than anyone else!",tmText:"Siz professional gurşawda kompaniýaňyzyň bazardaky esasy oýunçy hökmünde tanalmagyny isleýärsiňizmi? Onda hemmelerden has gaty sesleniniň!"},packagesTitle:{ruText:"Варианты партнерских пакетов:",enText:"Partnership package options:",tmText:"Hyzmatdaşlyk paketleriniň görnüşleri:"},packages:[{ruText:"Генеральный партнер выставки",enText:"General partner of the exhibition.",tmText:"Serginiň baş hyzmatdaşy"},{ruText:"Партнер Ленты Ведущих Посетителей",enText:"Lead visitor lanyard partner.",tmText:"Öňdebaryjy gelýänleriň lentasynyň hyzmatdaşy"},{ruText:"Партнер деловой программы",enText:"Business program partner.",tmText:"Işewür programmanyň hyzmatdaşy"},{ruText:"Партнер вечернего приема",enText:"Evening reception partner.",tmText:"Agşamky kabul edişligiň hyzmatdaşy"},{ruText:"Партнер пакетов посетителей",enText:"Visitor package partner.",tmText:"Gelýänleriň paketiniň hyzmatdaşy"},{ruText:"Партнер каталога выставки",enText:"Exhibition catalog partner.",tmText:"Serginiň katalogynyň hyzmatdaşy"},{ruText:"Партнер VIP делегации",enText:"VIP delegation partner.",tmText:"VIP delegasiýanyň hyzmatdaşy"},{ruText:"Партнер выставки",enText:"Exhibition partner.",tmText:"Serginiň hyzmatdaşy"}],optionsNote:{ruText:"Данные опции являются базовыми, но мы всегда готовы обсудить вопрос о специальных проектах в рамках партнерства выставки, которые будут соответствовать Вашему бюджету, потребностям и целям.",enText:"These options are basic, but we are always ready to discuss special projects within the exhibition partnership that match your budget, needs, and goals.",tmText:"Bu opsiýalar esasy opsiýalardyr, emma biz elmydama siziň býudjetiňize, zerurlyklarňyza we maksatlaryňyza laýyk gelýän ýörite taslamalary ara alyp maslahatlaşmaga taýýardyrys."},contactNote:{text:{ruText:"По вопросам цен и дополнительных опций партнерских пакетов выставки KIFT, пожалуйста, обращайтесь к ",enText:"For pricing and additional options of KIFT exhibition partnership packages, please contact the ",tmText:"Serginiň hyzmatdaşlyk paketleriniň bahalary we goşmaça opsiýalary boýunça haýyş edýäris, ýüz tutuň "},linkText:{ruText:"ОРГАНИЗАТОРАМ",enText:"ORGANIZERS",tmText:"GURAMAÇYLARA"}}};function Fr(){$();const n=O(t=>t.lang),e=t=>n==="ru"?t.ruText:n==="tm"?t.tmText??t.enText:t.enText;return a.jsxs("div",{children:[a.jsx(ue,{title:e(K.title)}),a.jsx(ee,{className:"page-padding text-sm!",children:a.jsxs("div",{className:"mx-auto max-w-[900px]",children:[a.jsx("h2",{className:"mb-3 text-2xl font-medium",children:e(K.title)}),a.jsx("div",{className:"mb-4 rounded-sm bg-surface_container px-4 py-3 text-sm leading-relaxed text-on_surface_v",children:e(K.intro)}),a.jsx("p",{className:"mb-4 text-sm leading-relaxed text-on_surface_v",children:e(K.partnership)}),a.jsx("h3",{className:"mb-2 text-base font-medium",children:e(K.benefitsTitle)}),a.jsx("ul",{className:"mb-4 list-disc pl-5 text-sm leading-relaxed text-on_surface_v",children:K.benefits.map(t=>a.jsx("li",{children:e(t)},t.enText))}),a.jsx("div",{className:"mb-6 rounded-sm border border-outline px-4 py-3 text-center text-[10px] uppercase text-on_surface_v",children:e(K.highlight)}),a.jsx("h3",{className:"mb-2 text-base font-medium",children:e(K.packagesTitle)}),a.jsx("ul",{className:"mb-4 border-t border-outline_v",children:K.packages.map(t=>a.jsxs("li",{className:"flex items-center gap-2 border-b border-outline_v py-2 text-sm text-on_surface_v",children:[a.jsx("span",{className:"text-xs text-primary",children:"✓"}),a.jsx("span",{children:e(t)})]},t.enText))}),a.jsx("p",{className:"text-sm leading-relaxed text-on_surface_v",children:e(K.optionsNote)}),a.jsxs("p",{className:"text-sm leading-relaxed text-on_surface_v",children:[e(K.contactNote.text),a.jsx("span",{className:"text-primary underline",children:e(K.contactNote.linkText)})]})]})})]})}const $r=[{element:a.jsx(za,{}),path:"/",children:[{element:a.jsx(Ca,{}),path:"",errorElement:a.jsx(A,{})},{element:a.jsx(pr,{}),path:"about",errorElement:a.jsx(A,{})},{element:a.jsx(mr,{}),path:"B2B-B2G",errorElement:a.jsx(A,{})},{element:a.jsx(gr,{}),path:"become-sponsor",errorElement:a.jsx(A,{})},{element:a.jsx(Cr,{}),path:"stend-form",errorElement:a.jsx(A,{})},{element:a.jsx(kr,{}),path:"contacts",errorElement:a.jsx(A,{})},{element:a.jsx(Tr,{}),path:"news",errorElement:a.jsx(A,{})},{element:a.jsx(Sr,{}),path:"news/:id",errorElement:a.jsx(A,{})},{element:a.jsx(_r,{}),path:"participants",errorElement:a.jsx(A,{})},{element:a.jsx(wr,{}),path:"media",errorElement:a.jsx(A,{})},{element:a.jsx(Lr,{}),path:"impressions",errorElement:a.jsx(A,{})},{element:a.jsx(Pr,{}),path:"impressions-tm",errorElement:a.jsx(A,{})},{element:a.jsx(Ir,{}),path:"participation-options",errorElement:a.jsx(A,{})},{element:a.jsx(Fr,{}),path:"partner-opportunities",errorElement:a.jsx(A,{})}]}],Ar=Bs($r),Dr=new Fs;Hs.createRoot(document.getElementById("root")).render(a.jsx(y.StrictMode,{children:a.jsx($s,{client:Dr,children:a.jsx(Gs,{router:Ar})})})); +var Zt=Object.defineProperty;var es=(n,e,t)=>e in n?Zt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var b=(n,e,t)=>es(n,typeof e!="symbol"?e+"":e,t);import{u as O,i as ts,j as a,H as ss,F as ns,c as Z,a as is,b as as,d as rs,e as os,f as ls,g as cs,h as us,k as ds,z as v,l as Oe,m as ke,S as tt,n as ms,P as je,o as ie,p as vt,q as ps,r as hs,s as Ke,t as Se,v as T,w as ze,x as W,y as U,A as q,B as N,C as H,L as We,D as Ie,E as Fe,G as he,I as Ue,J as $e,K as fs,M as ue,N as gs,O as xs,Q as ys,R as bs,T as ks,U as vs,V as ws,W as ge,X as js,Y as Ss,Z as ee,_ as Ts,$ as wt,a0 as Ns,a1 as jt,a2 as _s,a3 as fe,a4 as qe,a5 as Es,a6 as St,a7 as Tt,a8 as zs,a9 as st,aa as Cs,ab as Nt,ac as Rs,ad as Ls,ae as Ps,af as Os,ag as Is,ah as Fs,ai as $s}from"./ui-library-DV79vey3.js";import{f as As,a as y,O as Ds,e as le,u as Ms,g as Je,L as nt,h as Bs,i as Gs}from"./react-vendor-CJoWVsUG.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();var _e={},it;function Vs(){if(it)return _e;it=1;var n=As();return _e.createRoot=n.createRoot,_e.hydrateRoot=n.hydrateRoot,_e}var Hs=Vs();const j=n=>typeof n=="string",ye=()=>{let n,e;const t=new Promise((s,i)=>{n=s,e=i});return t.resolve=n,t.reject=e,t},at=n=>n==null?"":""+n,Ks=(n,e,t)=>{n.forEach(s=>{e[s]&&(t[s]=e[s])})},Ws=/###/g,rt=n=>n&&n.indexOf("###")>-1?n.replace(Ws,"."):n,ot=n=>!n||j(n),be=(n,e,t)=>{const s=j(e)?e.split("."):e;let i=0;for(;i{const{obj:s,k:i}=be(n,e,Object);if(s!==void 0||e.length===1){s[i]=t;return}let r=e[e.length-1],o=e.slice(0,e.length-1),c=be(n,o,Object);for(;c.obj===void 0&&o.length;)r=`${o[o.length-1]}.${r}`,o=o.slice(0,o.length-1),c=be(n,o,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=t},Us=(n,e,t,s)=>{const{obj:i,k:r}=be(n,e,Object);i[r]=i[r]||[],i[r].push(t)},Ce=(n,e)=>{const{obj:t,k:s}=be(n,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},qs=(n,e,t)=>{const s=Ce(n,t);return s!==void 0?s:Ce(e,t)},_t=(n,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in n?j(n[s])||n[s]instanceof String||j(e[s])||e[s]instanceof String?t&&(n[s]=e[s]):_t(n[s],e[s],t):n[s]=e[s]);return n},de=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Js={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ys=n=>j(n)?n.replace(/[&<>"'\/]/g,e=>Js[e]):n;class Xs{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const Qs=[" ",",","?","!",";"],Zs=new Xs(20),en=(n,e,t)=>{e=e||"",t=t||"";const s=Qs.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const i=Zs.getRegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let r=!i.test(n);if(!r){const o=n.indexOf(t);o>0&&!i.test(n.substring(0,o))&&(r=!0)}return r},Ge=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const s=e.split(t);let i=n;for(let r=0;r-1&&ln==null?void 0:n.replace("_","-"),tn={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){var t,s;(s=(t=console==null?void 0:console[n])==null?void 0:t.apply)==null||s.call(t,console,e)}};class Le{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||tn,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s{this.observers[s]||(this.observers[s]=new Map);const i=this.observers[s].get(t)||0;this.observers[s].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i{let[c,l]=o;for(let u=0;u{let[c,l]=o;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,m;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,t],s&&(Array.isArray(s)?c.push(...s):j(s)&&r?c.push(...s.split(r)):c.push(s)));const l=Ce(this.data,c);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=c[0],t=c[1],s=c.slice(2).join(".")),l||!o||!j(s)?l:Ge((m=(u=this.data)==null?void 0:u[e])==null?void 0:m[t],s,r)}addResource(e,t,s,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let c=[e,t];s&&(c=c.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(c=e.split("."),i=t,t=c[1]),this.addNamespaces(t),lt(this.data,c,i),r.silent||this.emit("added",e,t,s,i)}addResources(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in s)(j(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});i.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,r){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),i=s,s=t,t=c[1]),this.addNamespaces(t);let l=Ce(this.data,c)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?_t(l,s,r):l={...l,...s},lt(this.data,c,l),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var Et={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,s,i){return n.forEach(r=>{var o;e=((o=this.processors[r])==null?void 0:o.process(e,t,s,i))??e}),e}};const ut={},dt=n=>!j(n)&&typeof n!="boolean"&&typeof n!="number";class Pe extends Ae{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ks(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Q.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!en(e,s,i);if(o&&!c){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:j(r)?[r]:r};const u=e.split(s);(s!==i||s===i&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(i)}return{key:e,namespaces:j(r)?[r]:r}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:c}=this.extractFromKey(e[e.length-1],t),l=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(m){const I=t.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${I}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${I}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:o}const h=this.resolve(e,t);let d=h==null?void 0:h.res;const f=(h==null?void 0:h.usedKey)||o,p=(h==null?void 0:h.exactUsedKey)||o,g=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k=t.count!==void 0&&!j(t.count),S=Pe.hasDefaultValue(t),E=k?this.pluralResolver.getSuffix(u,t.count,t):"",L=t.ordinal&&k?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",C=k&&!t.ordinal&&t.count===0,z=C&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${E}`]||t[`defaultValue${L}`]||t.defaultValue;let _=d;w&&!d&&S&&(_=z);const M=dt(_),te=Object.prototype.toString.apply(_);if(w&&_&&M&&g.indexOf(te)<0&&!(j(x)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,_,{...t,ns:c}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=I,h.usedParams=this.getUsedParamsDetails(t),h):I}if(r){const I=Array.isArray(_),B=I?[]:{},Te=I?p:f;for(const J in _)if(Object.prototype.hasOwnProperty.call(_,J)){const Y=`${Te}${r}${J}`;S&&!d?B[J]=this.translate(Y,{...t,defaultValue:dt(z)?z[J]:void 0,joinArrays:!1,ns:c}):B[J]=this.translate(Y,{...t,joinArrays:!1,ns:c}),B[J]===Y&&(B[J]=_[J])}d=B}}else if(w&&j(x)&&Array.isArray(d))d=d.join(x),d&&(d=this.extendTranslation(d,e,t,s));else{let I=!1,B=!1;!this.isValidLookup(d)&&S&&(I=!0,d=z),this.isValidLookup(d)||(B=!0,d=o);const J=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:d,Y=S&&z!==d&&this.options.updateMissing;if(B||I||Y){if(this.logger.log(Y?"updateKey":"missingKey",u,l,o,Y?z:d),r){const V=this.resolve(o,{...t,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let V=0;V{var et;const Ze=S&&xe!==d?xe:J;this.options.missingKeyHandler?this.options.missingKeyHandler(V,l,oe,Ze,Y,t):(et=this.backendConnector)!=null&&et.saveMissing&&this.backendConnector.saveMissing(V,l,oe,Ze,Y,t),this.emit("missingKey",V,l,oe,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?G.forEach(V=>{const oe=this.pluralResolver.getSuffixes(V,t);C&&t[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(xe=>{Qe([V],o+xe,t[`defaultValue${xe}`]||z)})}):Qe(G,o,z))}d=this.extendTranslation(d,e,t,h,s),B&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${o}`),(B||I)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,I?d:void 0))}return i?(h.res=d,h.usedParams=this.getUsedParamsDetails(t),h):d}extendTranslation(e,t,s,i,r){var u,m;var o=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const h=j(e)&&(((m=s==null?void 0:s.interpolation)==null?void 0:m.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=s.replace&&!j(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||i.usedLng,s),h){const p=e.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},s,i,r,o,c;return j(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),m=u.key;i=m;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=t.count!==void 0&&!j(t.count),f=d&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(j(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(x=>{var w,k;this.isValidLookup(s)||(c=x,!ut[`${g[0]}-${x}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(c))&&(ut[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(S=>{var C;if(this.isValidLookup(s))return;o=S;const E=[m];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(E,m,S,x,t);else{let z;d&&(z=this.pluralResolver.getSuffix(S,t.count,t));const _=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(E.push(m+z),t.ordinal&&z.indexOf(M)===0&&E.push(m+z.replace(M,this.options.pluralSeparator)),f&&E.push(m+_)),p){const te=`${m}${this.options.contextSeparator}${t.context}`;E.push(te),d&&(E.push(te+z),t.ordinal&&z.indexOf(M)===0&&E.push(te+z.replace(M,this.options.pluralSeparator)),f&&E.push(te+_))}}let L;for(;L=E.pop();)this.isValidLookup(s)||(r=L,s=this.getResource(S,x,L,t))}))})}),{res:s,usedKey:i,exactUsedKey:r,usedLng:o,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var r;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!j(e.replace);let i=s?e.replace:e;if(s&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const r of t)delete i[r]}return i}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class mt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Q.create("languageUtils")}getScriptPartFromCode(e){if(e=Re(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Re(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(j(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const i=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const i=this.getLanguagePartFromCode(s);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(r=>{if(r===i)return r;if(!(r.indexOf("-")<0&&i.indexOf("-")<0)&&(r.indexOf("-")>0&&i.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===i||r.indexOf(i)===0&&i.length>1))return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),j(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],r=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return j(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):j(e)&&r(this.formatLanguageCode(e)),s.forEach(o=>{i.indexOf(o)<0&&r(this.formatLanguageCode(o))}),i}}const pt={zero:0,one:1,two:2,few:3,many:4,other:5},ht={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Q.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=Re(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let o;try{o=new Intl.PluralRules(s,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ht;if(!e.match(/-|_/))return ht;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[r]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((i,r)=>pt[i]-pt[r]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const ft=function(n,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=qs(n,e,t);return!r&&i&&j(t)&&(r=Ge(n,t,s),r===void 0&&(r=Ge(e,t,s))),r},Me=n=>n.replace(/\$/g,"$$$$");class nn{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:c,suffixEscaped:l,formatSeparator:u,unescapeSuffix:m,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:w,alwaysFormat:k}=e.interpolation;this.escape=t!==void 0?t:Ys,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?de(r):o||"{{",this.suffix=c?de(c):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=m?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?de(d):f||de("$t("),this.nestingSuffix=p?de(p):g||de(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=w||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,i){var f;let r,o,c;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const k=ft(t,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,s,{...i,...t,interpolationkey:p}):k}const g=p.split(this.formatSeparator),x=g.shift().trim(),w=g.join(this.formatSeparator).trim();return this.format(ft(t,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,s,{...i,...t,interpolationkey:x})};this.resetRegExp();const m=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((f=i==null?void 0:i.interpolation)==null?void 0:f.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>Me(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Me(this.escape(p)):Me(p)}].forEach(p=>{for(c=0;r=p.regex.exec(e);){const g=r[1].trim();if(o=u(g),o===void 0)if(typeof m=="function"){const w=m(e,r,i);o=j(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))o="";else if(h){o=r[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!j(o)&&!this.useRawValueToEscape&&(o=at(o));const x=p.safeValue(o);if(e=e.replace(r[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,r,o;const c=(l,u)=>{const m=this.nestingOptionsSeparator;if(l.indexOf(m)<0)return l;const h=l.split(new RegExp(`${m}[ ]*{`));let d=`{${h[1]}`;l=h[0],d=this.interpolate(d,o);const f=d.match(/'/g),p=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${m}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];o={...s},o=o.replace&&!j(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const m=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=m.shift(),l=m,u=!0}if(r=t(c.call(this,i[1].trim(),o),o),r&&i[0]===e&&!j(r))return r;j(r)||(r=at(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),r=""),u&&(r=l.reduce((m,h)=>this.format(m,h,s.lng,{...s,interpolationkey:i[1].trim()}),r.trim())),e=e.replace(i[0],r),this.regexp.lastIndex=0}return e}}const an=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const s=n.split("(");e=s[0].toLowerCase().trim();const i=s[1].substring(0,s[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(o=>{if(o){const[c,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();t[m]||(t[m]=u),u==="false"&&(t[m]=!1),u==="true"&&(t[m]=!0),isNaN(u)||(t[m]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},me=n=>{const e={};return(t,s,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});const o=s+JSON.stringify(r);let c=e[o];return c||(c=n(Re(s),i),e[o]=c),c(t)}};class rn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create("formatter"),this.options=e,this.formats={number:me((t,s)=>{const i=new Intl.NumberFormat(t,{...s});return r=>i.format(r)}),currency:me((t,s)=>{const i=new Intl.NumberFormat(t,{...s,style:"currency"});return r=>i.format(r)}),datetime:me((t,s)=>{const i=new Intl.DateTimeFormat(t,{...s});return r=>i.format(r)}),relativetime:me((t,s)=>{const i=new Intl.RelativeTimeFormat(t,{...s});return r=>i.format(r,s.range||"day")}),list:me((t,s)=>{const i=new Intl.ListFormat(t,{...s});return r=>i.format(r)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=me(t)}format(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(c=>c.indexOf(")")>-1)){const c=r.findIndex(l=>l.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,c)].join(this.formatSeparator)}return r.reduce((c,l)=>{var h;const{formatName:u,formatOptions:m}=an(l);if(this.formats[u]){let d=c;try{const f=((h=i==null?void 0:i.formatParams)==null?void 0:h[i.interpolationkey])||{},p=f.locale||f.lng||i.locale||i.lng||s;d=this.formats[u](c,p,{...m,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return c},e)}}const on=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class ln extends Ae{constructor(e,t,s){var r,o;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=Q.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(r=this.backend)==null?void 0:r.init)==null||o.call(r,s,i.backend,i)}queueLoad(e,t,s,i){const r={},o={},c={},l={};return e.forEach(u=>{let m=!0;t.forEach(h=>{const d=`${u}|${h}`;!s.reload&&this.store.hasResourceBundle(u,h)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,m=!1,o[d]===void 0&&(o[d]=!0),r[d]===void 0&&(r[d]=!0),l[h]===void 0&&(l[h]=!0)))}),m||(c[u]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),!t&&s&&this.store.addResourceBundle(r,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const c={};this.queue.forEach(l=>{Us(l.loaded,[r],o),on(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{c[u]||(c[u]={});const m=l.loaded[u];m.length&&m.forEach(h=>{c[u][h]===void 0&&(c[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:r,callback:o});return}this.readingCalls++;const c=(u,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&m&&i{this.read.call(this,e,t,s,i+1,r*2,o)},r);return}o(u,m)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(m=>c(null,m)).catch(c):c(null,u)}catch(u){c(u)}return}return l(e,t,c)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();j(e)&&(e=this.languageUtils.toResolveHierarchy(e)),j(t)&&(t=[t]);const r=this.queueLoad(e,t,s,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),i=s[0],r=s[1];this.read(i,r,"read",void 0,void 0,(o,c)=>{o&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,o),!o&&c&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,c),this.loaded(e,o,c)})}saveMissing(e,t,s,i,r){var l,u,m,h,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((h=(m=this.services)==null?void 0:m.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:r},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(e,t,s,i,f):g=p(e,t,s,i),g&&typeof g.then=="function"?g.then(x=>c(null,x)).catch(c):c(null,g)}catch(g){c(g)}else p(e,t,s,i,c,f)}!e||!e[0]||this.store.addResource(e[0],t,s,i)}}}const gt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),j(n[1])&&(e.defaultValue=n[1]),j(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),xt=n=>{var e,t;return j(n.ns)&&(n.ns=[n.ns]),j(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),j(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((t=(e=n.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},Ee=()=>{},cn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class ve extends Ae{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=xt(e),this.services={},this.logger=Q,this.modules={external:[]},cn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),t.defaultNS==null&&t.ns&&(j(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=gt();this.options={...i,...this.options,...xt(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const r=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Q.init(r(this.modules.logger),this.options):Q.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=rn;const h=new mt(this.options);this.store=new ct(this.options.resources,this.options);const d=this.services;d.logger=Q,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new sn(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=r(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new nn(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new ln(r(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),x=1;x1?p-1:0),x=1;x{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ee),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return e.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return e.store[m](...arguments),e}});const l=ye(),u=()=>{const m=(h,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),s(h,d)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(e){var r,o;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee;const i=j(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(h=>{h!=="cimode"&&c.indexOf(h)<0&&c.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>l(m)),(o=(r=this.options.preload)==null?void 0:r.forEach)==null||o.call(r,u=>l(u)),this.services.backendConnector.load(c,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const i=ye();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=Ee),this.services.backendConnector.reload(e,t,r=>{i.resolve(),s(r)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Et.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const i=ye();this.emit("languageChanging",e);const r=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return s.t(...arguments)}),t&&t(l,function(){return s.t(...arguments)})},c=l=>{var m,h;!e&&!l&&this.services.languageDetector&&(l=[]);const u=j(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||r(u),this.translator.language||this.translator.changeLanguage(u),(h=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||h.call(m,u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),i}getFixedT(e,t,s){var i=this;const r=function(o,c){let l;if(typeof c!="object"){for(var u=arguments.length,m=new Array(u>2?u-2:0),h=2;h`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${o}`:o,i.t(f,l)};return j(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=s,r}t(){var i;for(var e=arguments.length,t=new Array(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(c,l)=>{const u=this.services.backendConnector.state[`${c}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const c=t.precheck(this,o);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!i||o(r,e)))}loadNamespaces(e,t){const s=ye();return this.options.ns?(j(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{s.resolve(),t&&t(i)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=ye();j(e)&&(e=[e]);const i=this.options.preload||[],r=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return r.length?(this.options.preload=i.concat(r),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){var i,r;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((r=this.services)==null?void 0:r.languageUtils)||new mt(gt());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ve(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},r=new ve(i);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s){const c=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},Object.keys(l[u]).reduce((m,h)=>(m[h]={...l[u][h]},m),{})),{});r.store=new ct(c,i),r.services.resourceStore=r.store}return r.translator=new Pe(r.services,i),r.translator.on("*",function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),m=1;m{const n=O(e=>e.lang);return y.useEffect(()=>{F.changeLanguage(n)},[n]),null};var fa="1.3.17";function zt(n,e,t){return Math.max(n,Math.min(e,t))}function ga(n,e,t){return(1-t)*n+t*e}function xa(n,e,t,s){return ga(n,e,1-Math.exp(-t*s))}function ya(n,e){return(n%e+e)%e}var ba=class{constructor(){b(this,"isRunning",!1);b(this,"value",0);b(this,"from",0);b(this,"to",0);b(this,"currentTime",0);b(this,"lerp");b(this,"duration");b(this,"easing");b(this,"onUpdate")}advance(n){var t;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=n;const s=zt(0,this.currentTime/this.duration,1);e=s>=1;const i=e?1:this.easing(s);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=xa(this.value,this.to,this.lerp*60,n),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(n,e,{lerp:t,duration:s,easing:i,onStart:r,onUpdate:o}){this.from=this.value=n,this.to=e,this.lerp=t,this.duration=s,this.easing=i,this.currentTime=0,this.isRunning=!0,r==null||r(),this.onUpdate=o}};function ka(n,e){let t;return function(...s){let i=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,n.apply(i,s)},e)}}var va=class{constructor(n,e,{autoResize:t=!0,debounce:s=250}={}){b(this,"width",0);b(this,"height",0);b(this,"scrollHeight",0);b(this,"scrollWidth",0);b(this,"debouncedResize");b(this,"wrapperResizeObserver");b(this,"contentResizeObserver");b(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});b(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});b(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=n,this.content=e,t&&(this.debouncedResize=ka(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var n,e;(n=this.wrapperResizeObserver)==null||n.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Ct=class{constructor(){b(this,"events",{})}emit(n,...e){var s;let t=this.events[n]||[];for(let i=0,r=t.length;i{var s;this.events[n]=(s=this.events[n])==null?void 0:s.filter(i=>e!==i)}}off(n,e){var t;this.events[n]=(t=this.events[n])==null?void 0:t.filter(s=>e!==s)}destroy(){this.events={}}},yt=100/6,ae={passive:!1},wa=class{constructor(n,e={wheelMultiplier:1,touchMultiplier:1}){b(this,"touchStart",{x:0,y:0});b(this,"lastDelta",{x:0,y:0});b(this,"window",{width:0,height:0});b(this,"emitter",new Ct);b(this,"onTouchStart",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:n})});b(this,"onTouchMove",n=>{const{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n,s=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(t-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:s,y:i},this.emitter.emit("scroll",{deltaX:s,deltaY:i,event:n})});b(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});b(this,"onWheel",n=>{let{deltaX:e,deltaY:t,deltaMode:s}=n;const i=s===1?yt:s===2?this.window.width:1,r=s===1?yt:s===2?this.window.height:1;e*=i,t*=r,e*=this.options.wheelMultiplier,t*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:t,event:n})});b(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=n,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,ae),this.element.addEventListener("touchstart",this.onTouchStart,ae),this.element.addEventListener("touchmove",this.onTouchMove,ae),this.element.addEventListener("touchend",this.onTouchEnd,ae)}on(n,e){return this.emitter.on(n,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,ae),this.element.removeEventListener("touchstart",this.onTouchStart,ae),this.element.removeEventListener("touchmove",this.onTouchMove,ae),this.element.removeEventListener("touchend",this.onTouchEnd,ae)}},bt=n=>Math.min(1,1.001-Math.pow(2,-10*n)),ja=class{constructor({wrapper:n=window,content:e=document.documentElement,eventsTarget:t=n,smoothWheel:s=!0,syncTouch:i=!1,syncTouchLerp:r=.075,touchInertiaExponent:o=1.7,duration:c,easing:l,lerp:u=.1,infinite:m=!1,orientation:h="vertical",gestureOrientation:d=h==="horizontal"?"both":"vertical",touchMultiplier:f=1,wheelMultiplier:p=1,autoResize:g=!0,prevent:x,virtualScroll:w,overscroll:k=!0,autoRaf:S=!1,anchors:E=!1,autoToggle:L=!1,allowNestedScroll:C=!1,__experimental__naiveDimensions:z=!1,naiveDimensions:_=z,stopInertiaOnNavigate:M=!1}={}){b(this,"_isScrolling",!1);b(this,"_isStopped",!1);b(this,"_isLocked",!1);b(this,"_preventNextNativeScrollEvent",!1);b(this,"_resetVelocityTimeout",null);b(this,"_rafId",null);b(this,"isTouching");b(this,"time",0);b(this,"userData",{});b(this,"lastVelocity",0);b(this,"velocity",0);b(this,"direction",0);b(this,"options");b(this,"targetScroll");b(this,"animatedScroll");b(this,"animate",new ba);b(this,"emitter",new Ct);b(this,"dimensions");b(this,"virtualScroll");b(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});b(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});b(this,"onTransitionEnd",n=>{n.propertyName.includes("overflow")&&this.checkOverflow()});b(this,"onClick",n=>{const t=n.composedPath().filter(s=>s instanceof HTMLAnchorElement&&s.getAttribute("href"));if(this.options.anchors){const s=t.find(i=>{var r;return(r=i.getAttribute("href"))==null?void 0:r.includes("#")});if(s){const i=s.getAttribute("href");if(i){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,o=`#${i.split("#")[1]}`;this.scrollTo(o,r)}}}this.options.stopInertiaOnNavigate&&t.find(i=>i.host===window.location.host)&&this.reset()});b(this,"onPointerDown",n=>{n.button===1&&this.reset()});b(this,"onVirtualScroll",n=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(n)===!1)return;const{deltaX:e,deltaY:t,event:s}=n;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:t,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const i=s.type.includes("touch"),r=s.type.includes("wheel");this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=e===0&&t===0;if(this.options.syncTouch&&i&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&t===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||l)return;let u=s.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const m=this.options.prevent;if(u.find(x=>{var w,k,S;return x instanceof HTMLElement&&(typeof m=="function"&&(m==null?void 0:m(x))||((w=x.hasAttribute)==null?void 0:w.call(x,"data-lenis-prevent"))||i&&((k=x.hasAttribute)==null?void 0:k.call(x,"data-lenis-prevent-touch"))||r&&((S=x.hasAttribute)==null?void 0:S.call(x,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:e,deltaY:t}))}))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let d=t;this.options.gestureOrientation==="both"?d=Math.abs(t)>Math.abs(e)?t:e:this.options.gestureOrientation==="horizontal"&&(d=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&t<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const f=i&&this.options.syncTouch,g=i&&s.type==="touchend";g&&(d=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});b(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const n=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-n,this.direction=Math.sign(this.animatedScroll-n),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});b(this,"raf",n=>{const e=n-(this.time||n);this.time=n,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=fa,(!n||n===document.documentElement)&&(n=window),typeof c=="number"&&typeof l!="function"?l=bt:typeof l=="function"&&typeof c!="number"&&(c=1),this.options={wrapper:n,content:e,eventsTarget:t,smoothWheel:s,syncTouch:i,syncTouchLerp:r,touchInertiaExponent:o,duration:c,easing:l,lerp:u,infinite:m,gestureOrientation:d,orientation:h,touchMultiplier:f,wheelMultiplier:p,autoResize:g,prevent:x,virtualScroll:w,overscroll:k,autoRaf:S,anchors:E,autoToggle:L,allowNestedScroll:C,naiveDimensions:_,stopInertiaOnNavigate:M},this.dimensions=new va(n,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new wa(t,{touchMultiplier:f,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(n,e){return this.emitter.on(n,e)}off(n,e){return this.emitter.off(n,e)}get overflow(){const n=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[n]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(n){this.isHorizontal?this.options.wrapper.scrollTo({left:n,behavior:"instant"}):this.options.wrapper.scrollTo({top:n,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(n,{offset:e=0,immediate:t=!1,lock:s=!1,programmatic:i=!0,lerp:r=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:c=i?this.options.easing:void 0,onStart:l,onComplete:u,force:m=!1,userData:h}={}){if(!((this.isStopped||this.isLocked)&&!m)){if(typeof n=="string"&&["top","left","start","#"].includes(n))n=0;else if(typeof n=="string"&&["bottom","right","end"].includes(n))n=this.limit;else{let d;if(typeof n=="string"?(d=document.querySelector(n),d||(n==="#top"?n=0:console.warn("Lenis: Target not found",n))):n instanceof HTMLElement&&(n!=null&&n.nodeType)&&(d=n),d){if(this.options.wrapper!==window){const p=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?p.left:p.top}const f=d.getBoundingClientRect();n=(this.isHorizontal?f.left:f.top)+this.animatedScroll}}if(typeof n=="number"){if(n+=e,n=Math.round(n),this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;const d=n-this.animatedScroll;d>this.limit/2?n=n-this.limit:d<-this.limit/2&&(n=n+this.limit)}}else n=zt(0,n,this.limit);if(n===this.targetScroll){l==null||l(this),u==null||u(this);return}if(this.userData=h??{},t){this.animatedScroll=this.targetScroll=n,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=n),typeof o=="number"&&typeof c!="function"?c=bt:typeof c=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,n,{duration:o,easing:c,lerp:r,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(d,f)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=d-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=d,this.setScroll(this.scroll),i&&(this.targetScroll=d),f||this.emit(),f&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(n,{deltaX:e,deltaY:t}){const s=Date.now(),i=n._lenis??(n._lenis={});let r,o,c,l,u,m,h,d;const f=this.options.gestureOrientation;if(s-(i.time??0)>2e3){i.time=Date.now();const L=window.getComputedStyle(n);i.computedStyle=L;const C=L.overflowX,z=L.overflowY;if(r=["auto","overlay","scroll"].includes(C),o=["auto","overlay","scroll"].includes(z),i.hasOverflowX=r,i.hasOverflowY=o,!r&&!o||f==="vertical"&&!o||f==="horizontal"&&!r)return!1;u=n.scrollWidth,m=n.scrollHeight,h=n.clientWidth,d=n.clientHeight,c=u>h,l=m>d,i.isScrollableX=c,i.isScrollableY=l,i.scrollWidth=u,i.scrollHeight=m,i.clientWidth=h,i.clientHeight=d}else c=i.isScrollableX,l=i.isScrollableY,r=i.hasOverflowX,o=i.hasOverflowY,u=i.scrollWidth,m=i.scrollHeight,h=i.clientWidth,d=i.clientHeight;if(!r&&!o||!c&&!l||f==="vertical"&&(!o||!l)||f==="horizontal"&&(!r||!c))return!1;let p;if(f==="horizontal")p="x";else if(f==="vertical")p="y";else{const L=e!==0,C=t!==0;L&&r&&c&&(p="x"),C&&o&&l&&(p="y")}if(!p)return!1;let g,x,w,k,S;if(p==="x")g=n.scrollLeft,x=u-h,w=e,k=r,S=c;else if(p==="y")g=n.scrollTop,x=m-d,w=t,k=o,S=l;else return!1;return(w>0?g0)&&k&&S}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const n=this.options.wrapper;return this.isHorizontal?n.scrollX??n.scrollLeft:n.scrollY??n.scrollTop}get scroll(){return this.options.infinite?ya(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(n){this._isScrolling!==n&&(this._isScrolling=n,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(n){this._isStopped!==n&&(this._isStopped=n,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(n){this._isLocked!==n&&(this._isLocked=n,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let n="lenis";return this.options.autoToggle&&(n+=" lenis-autoToggle"),this.isStopped&&(n+=" lenis-stopped"),this.isLocked&&(n+=" lenis-locked"),this.isScrolling&&(n+=" lenis-scrolling"),this.isScrolling==="smooth"&&(n+=" lenis-smooth"),n}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},Sa=class{constructor(n){b(this,"listeners",[]);this.state=n}set(n){this.state=n;for(let e of this.listeners)e(this.state)}subscribe(n){return this.listeners=[...this.listeners,n],()=>{this.listeners=this.listeners.filter(e=>e!==n)}}get(){return this.state}};function Ta(n){const[e,t]=y.useState(n.get());return y.useEffect(()=>n.subscribe(s=>t(s)),[n]),e}var Rt=y.createContext(null),Ve=new Sa(null),Na=y.forwardRef(({children:n,root:e=!1,options:t={},autoRaf:s=!0,...i},r)=>{const o=y.useRef(null),c=y.useRef(null),[l,u]=y.useState(void 0);y.useImperativeHandle(r,()=>({wrapper:o.current,content:c.current,lenis:l}),[l]),y.useEffect(()=>{const f=new ja({...t,...o.current&&c.current&&{wrapper:o.current,content:c.current},autoRaf:(t==null?void 0:t.autoRaf)??s});return u(f),()=>{f.destroy(),u(void 0)}},[e,JSON.stringify({...t,wrapper:null,content:null})]);const m=y.useRef([]),h=y.useCallback((f,p)=>{m.current.push({callback:f,priority:p}),m.current.sort((g,x)=>g.priority-x.priority)},[]),d=y.useCallback(f=>{m.current=m.current.filter(p=>p.callback!==f)},[]);return y.useEffect(()=>{if(e&&l)return Ve.set({lenis:l,addCallback:h,removeCallback:d}),()=>Ve.set(null)},[e,l,h,d]),y.useEffect(()=>{if(!l)return;const f=p=>{var g;for(let x=0;x{l.off("scroll",f)}},[l]),n?a.jsx(Rt.Provider,{value:{lenis:l,addCallback:h,removeCallback:d},children:e&&e!=="asChild"?n:a.jsx("div",{ref:o,...i,children:a.jsx("div",{ref:c,children:n})})}):null}),_a={};function Ea(n,e=[],t=0){const s=y.useContext(Rt),i=Ta(Ve),r=s??i??_a,{lenis:o,addCallback:c,removeCallback:l}=r;return y.useEffect(()=>{},[o,c,l,t,...e]),o}function za(){return a.jsxs(Na,{root:!0,options:{lerp:.1},children:[a.jsx(ss,{}),a.jsxs("main",{className:"flex flex-col min-h-screen",children:[a.jsx(ha,{}),a.jsx("div",{className:"flex-auto",children:a.jsx(Ds,{})})]}),a.jsx(ns,{})]})}const A=({className:n})=>a.jsx("div",{className:Z("container py-32",n),children:a.jsx("h1",{className:"text-5xl text-center",children:"Oops, something went wrong"})}),$=n=>{const e=Ea();y.useEffect(()=>{e&&e.scrollTo(0,{lerp:.3,duration:.3})},[e,n])};function Ca(){return $(),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(is,{}),a.jsx(as,{}),a.jsx(rs,{}),a.jsx(os,{}),a.jsx(ls,{}),a.jsx(cs,{}),a.jsx(us,{}),a.jsx(ds,{})]})}const D=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,Ra=n=>v.object({type:v.string(),company_name:v.string().min(3,{message:D("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),representative_name:v.string().min(3,{message:D("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:D("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),participants_number:v.string().min(1,{message:D("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",n)}),country:v.string().min(3,{message:D("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email_address:v.string().email({message:D("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone_number:v.string().min(8,{message:D("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),meeting_objective:v.string().min(3,{message:D("Укажите цель встречи","Specify the meeting objective","Duşuşygyň maksadyny görkeziň",n)}),proposal_description:v.string().optional(),government_agency:v.string().optional(),sector_industry:v.string().optional(),key_services:v.string().optional(),government_experience:v.string().optional(),preferred_meeting_datetime:v.string().optional(),meeting_mode:v.string().optional(),language_preference:v.string().optional(),technical_requirements:v.string().optional(),company_profile:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional(),proposal_presentation:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional(),relevant_certification:v.custom(e=>e instanceof File,{message:D("Выберите корректный файл","Select a valid file","Dogry faýly saýlaň",n)}).refine(e=>e&&["image/jpeg","image/png","application/pdf"].includes(e.type),{message:D("Допускаются только файлы JPG, PNG и PDF","Only JPG, PNG and PDF files are allowed","Diňe JPG, PNG we PDF faýllary kabul edilýär",n)}).optional()}),La={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""};function Pa(n){const e=n+"CollectionProvider",[t,s]=Oe(e),[i,r]=t(e,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:p,children:g}=f,x=le.useRef(null),w=le.useRef(new Map).current;return a.jsx(i,{scope:p,itemMap:w,collectionRef:x,children:g})};o.displayName=e;const c=n+"CollectionSlot",l=le.forwardRef((f,p)=>{const{scope:g,children:x}=f,w=r(c,g),k=ke(p,w.collectionRef);return a.jsx(tt,{ref:k,children:x})});l.displayName=c;const u=n+"CollectionItemSlot",m="data-radix-collection-item",h=le.forwardRef((f,p)=>{const{scope:g,children:x,...w}=f,k=le.useRef(null),S=ke(p,k),E=r(u,g);return le.useEffect(()=>(E.itemMap.set(k,{ref:k,...w}),()=>void E.itemMap.delete(k))),a.jsx(tt,{[m]:"",ref:S,children:x})});h.displayName=u;function d(f){const p=r(n+"CollectionConsumer",f);return le.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${m}]`));return Array.from(p.itemMap.values()).sort((E,L)=>w.indexOf(E.ref.current)-w.indexOf(L.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:o,Slot:l,ItemSlot:h},d,s]}function Oa(n){const e=y.useRef(n);return y.useEffect(()=>{e.current=n}),y.useMemo(()=>(...t)=>{var s;return(s=e.current)==null?void 0:s.call(e,...t)},[])}var Ia=y.createContext(void 0);function Fa(n){const e=y.useContext(Ia);return n||e||"ltr"}var Be="rovingFocusGroup.onEntryFocus",$a={bubbles:!1,cancelable:!0},De="RovingFocusGroup",[He,Lt,Aa]=Pa(De),[Da,Pt]=Oe(De,[Aa]),[Ma,Ba]=Da(De),Ot=y.forwardRef((n,e)=>a.jsx(He.Provider,{scope:n.__scopeRovingFocusGroup,children:a.jsx(He.Slot,{scope:n.__scopeRovingFocusGroup,children:a.jsx(Ga,{...n,ref:e})})}));Ot.displayName=De;var Ga=y.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,orientation:s,loop:i=!1,dir:r,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...h}=n,d=y.useRef(null),f=ke(e,d),p=Fa(r),[g=null,x]=vt({prop:o,defaultProp:c,onChange:l}),[w,k]=y.useState(!1),S=Oa(u),E=Lt(t),L=y.useRef(!1),[C,z]=y.useState(0);return y.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(Be,S),()=>_.removeEventListener(Be,S)},[S]),a.jsx(Ma,{scope:t,orientation:s,dir:p,loop:i,currentTabStopId:g,onItemFocus:y.useCallback(_=>x(_),[x]),onItemShiftTab:y.useCallback(()=>k(!0),[]),onFocusableItemAdd:y.useCallback(()=>z(_=>_+1),[]),onFocusableItemRemove:y.useCallback(()=>z(_=>_-1),[]),children:a.jsx(je.div,{tabIndex:w||C===0?-1:0,"data-orientation":s,...h,ref:f,style:{outline:"none",...n.style},onMouseDown:ie(n.onMouseDown,()=>{L.current=!0}),onFocus:ie(n.onFocus,_=>{const M=!L.current;if(_.target===_.currentTarget&&M&&!w){const te=new CustomEvent(Be,$a);if(_.currentTarget.dispatchEvent(te),!te.defaultPrevented){const I=E().filter(G=>G.focusable),B=I.find(G=>G.active),Te=I.find(G=>G.id===g),Y=[B,Te,...I].filter(Boolean).map(G=>G.ref.current);$t(Y,m)}}L.current=!1}),onBlur:ie(n.onBlur,()=>k(!1))})})}),It="RovingFocusGroupItem",Ft=y.forwardRef((n,e)=>{const{__scopeRovingFocusGroup:t,focusable:s=!0,active:i=!1,tabStopId:r,...o}=n,c=ms(),l=r||c,u=Ba(It,t),m=u.currentTabStopId===l,h=Lt(t),{onFocusableItemAdd:d,onFocusableItemRemove:f}=u;return y.useEffect(()=>{if(s)return d(),()=>f()},[s,d,f]),a.jsx(He.ItemSlot,{scope:t,id:l,focusable:s,active:i,children:a.jsx(je.span,{tabIndex:m?0:-1,"data-orientation":u.orientation,...o,ref:e,onMouseDown:ie(n.onMouseDown,p=>{s?u.onItemFocus(l):p.preventDefault()}),onFocus:ie(n.onFocus,()=>u.onItemFocus(l)),onKeyDown:ie(n.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const g=Ka(p,u.orientation,u.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let w=h().filter(k=>k.focusable).map(k=>k.ref.current);if(g==="last")w.reverse();else if(g==="prev"||g==="next"){g==="prev"&&w.reverse();const k=w.indexOf(p.currentTarget);w=u.loop?Wa(w,k+1):w.slice(k+1)}setTimeout(()=>$t(w))}})})})});Ft.displayName=It;var Va={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ha(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Ka(n,e,t){const s=Ha(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Va[s]}function $t(n,e=!1){const t=document.activeElement;for(const s of n)if(s===t||(s.focus({preventScroll:e}),document.activeElement!==t))return}function Wa(n,e){return n.map((t,s)=>n[(e+s)%n.length])}var Ua=Ot,qa=Ft,Ja=y.createContext(void 0);function Ya(n){const e=y.useContext(Ja);return n||e||"ltr"}function Xa(n){const e=y.useRef({value:n,previous:n});return y.useMemo(()=>(e.current.value!==n&&(e.current.previous=e.current.value,e.current.value=n),e.current.previous),[n])}var Ye="Radio",[Qa,At]=Oe(Ye),[Za,er]=Qa(Ye),Dt=y.forwardRef((n,e)=>{const{__scopeRadio:t,name:s,checked:i=!1,required:r,disabled:o,value:c="on",onCheck:l,form:u,...m}=n,[h,d]=y.useState(null),f=ke(e,x=>d(x)),p=y.useRef(!1),g=h?u||!!h.closest("form"):!0;return a.jsxs(Za,{scope:t,checked:i,disabled:o,children:[a.jsx(je.button,{type:"button",role:"radio","aria-checked":i,"data-state":Gt(i),"data-disabled":o?"":void 0,disabled:o,value:c,...m,ref:f,onClick:ie(n.onClick,x=>{i||l==null||l(),g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})}),g&&a.jsx(tr,{control:h,bubbles:!p.current,name:s,value:c,checked:i,required:r,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});Dt.displayName=Ye;var Mt="RadioIndicator",Bt=y.forwardRef((n,e)=>{const{__scopeRadio:t,forceMount:s,...i}=n,r=er(Mt,t);return a.jsx(hs,{present:s||r.checked,children:a.jsx(je.span,{"data-state":Gt(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:e})})});Bt.displayName=Mt;var tr=n=>{const{control:e,checked:t,bubbles:s=!0,...i}=n,r=y.useRef(null),o=Xa(t),c=ps(e);return y.useEffect(()=>{const l=r.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==t&&h){const d=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(d)}},[o,t,s]),a.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:r,style:{...n.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Gt(n){return n?"checked":"unchecked"}var sr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xe="RadioGroup",[nr,Vr]=Oe(Xe,[Pt,At]),Vt=Pt(),Ht=At(),[ir,ar]=nr(Xe),Kt=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,name:s,defaultValue:i,value:r,required:o=!1,disabled:c=!1,orientation:l,dir:u,loop:m=!0,onValueChange:h,...d}=n,f=Vt(t),p=Ya(u),[g,x]=vt({prop:r,defaultProp:i,onChange:h});return a.jsx(ir,{scope:t,name:s,required:o,disabled:c,value:g,onValueChange:x,children:a.jsx(Ua,{asChild:!0,...f,orientation:l,dir:p,loop:m,children:a.jsx(je.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":c?"":void 0,dir:p,...d,ref:e})})})});Kt.displayName=Xe;var Wt="RadioGroupItem",Ut=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,disabled:s,...i}=n,r=ar(Wt,t),o=r.disabled||s,c=Vt(t),l=Ht(t),u=y.useRef(null),m=ke(e,u),h=r.value===i.value,d=y.useRef(!1);return y.useEffect(()=>{const f=g=>{sr.includes(g.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",p)}},[]),a.jsx(qa,{asChild:!0,...c,focusable:!o,active:h,children:a.jsx(Dt,{disabled:o,required:r.required,checked:h,...l,...i,name:r.name,ref:m,onCheck:()=>r.onValueChange(i.value),onKeyDown:ie(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:ie(i.onFocus,()=>{var f;d.current&&((f=u.current)==null||f.click())})})})});Ut.displayName=Wt;var rr="RadioGroupIndicator",or=y.forwardRef((n,e)=>{const{__scopeRadioGroup:t,...s}=n,i=Ht(t);return a.jsx(Bt,{...i,...s,ref:e})});or.displayName=rr;var qt=Kt,Jt=Ut;const we=y.forwardRef(({className:n,...e},t)=>a.jsx(qt,{className:Z("grid gap-2",n),...e,ref:t}));we.displayName=qt.displayName;const ne=y.forwardRef(({className:n,...e},t)=>a.jsx(Jt,{ref:t,className:Z(e.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",n),...e}));ne.displayName=Jt.displayName;const se=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"Email адрес"},{label:"Номер телефона"},{label:"Веб-сайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"Email"},{label:"Phone number"},{label:"Website"}]},{h2:"Eksponent barada maglumat:",data:[{label:"Kompaniýanyň/guramanyň ady"},{label:"Wekiliniň ady"},{label:"Wezipesi"},{label:"Gatnaşyjylaryň sany"},{label:"Ýurt"},{label:"Email salgysy"},{label:"Telefon belgisi"},{label:"Web-saýt"}]}],re=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]},{h2:"Duşuşygyň maksady:",secondH2:"Kompaniýa/gurama barada maglumat:",data:[{label:"Duşuşygyň esasy maksady"},{label:"Teklibiňiziň/taslamaňyzyň/islegiňiziň gysgaça beýany"},{label:"Degişli döwlet edarasy/bölümi"},{label:"Pudak senagaty"},{label:"Esasy hyzmatlar/önümler"},{label:"Hökümetler bilen ozalky iş tejribesi (eger bar bolsa)"}]}],X=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Приложения:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"},{h2:"Duşuşygyň logistikasy:",secondH2:"Goşmaçalar",subtitle:"(Zerur bolsa aşakdaky resminamalary goşuň)",data:[{label:"Duşuşyk üçin islenýän sene we wagt"},{label:"Duşuşygyň islenýän görnüşi (ýüzbe-ýüz, wirtual (zoom/teams/başga), gibrid)"},{label:"Dil saýlamasy (iňlis, türkmen, rus, başga)"},{label:"Goşmaça tehniki ýa-da logistik talaplar (meselem, AW enjamlar, terjimeçiler we ş.m.)"},{label:"Kompaniýanyň/guramanyň profili"},{label:"Teklip/prezentasiýa"},{label:"Degişli şahadatnama/ygtyýarnama"}],button:"Ugratmak"}],lr=({handleNext:n})=>{$();const{control:e,formState:t}=Ke(),s=O(i=>i.lang);return a.jsxs(Se.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[a.jsx("h2",{className:"h2 mb-8",children:se[T(s)].h2}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(ze,{defaultValue:1,control:e,name:"type",render:({field:i})=>a.jsxs(W,{className:"space-y-3",children:[a.jsx(U,{className:"text-xl",children:{ru:"Тип:",en:"Type:",tm:"Görnüşi:"}[s]}),a.jsx(q,{children:a.jsxs(we,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[a.jsxs(W,{className:"flex items-center space-x-3 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"B2B",checked:i.value==="B2B"})}),a.jsx(U,{className:"text-base",children:"B2B"})]}),a.jsxs(W,{className:"flex items-center space-x-3 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"B2G",checked:i.value==="B2G"})}),a.jsx(U,{className:"text-base",children:"B2G"})]})]})})]})}),a.jsx(N,{control:e,name:"company_name",error:t.errors.company_name,placeholder:"",label:se[T(s)].data[0].label}),a.jsx(N,{control:e,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:se[T(s)].data[1].label}),a.jsx(N,{control:e,name:"job_title",error:t.errors.job_title,placeholder:"",label:se[T(s)].data[2].label}),a.jsx(N,{control:e,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:se[T(s)].data[3].label}),a.jsx(N,{control:e,name:"country",error:t.errors.country,placeholder:"",label:se[T(s)].data[4].label}),a.jsx(N,{control:e,name:"email_address",error:t.errors.email_address,placeholder:"",label:se[T(s)].data[5].label}),a.jsx(N,{control:e,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:se[T(s)].data[6].label}),a.jsx(N,{control:e,name:"website",placeholder:"",label:se[T(s)].data[7].label})]}),a.jsx(H,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:{ru:"Далее",en:"Next",tm:"Indiki"}[s]})]})},cr=({handleNext:n,handlePrev:e})=>{$();const t=O(r=>r.lang),{control:s,formState:i}=Ke();return a.jsxs(Se.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[a.jsx("h2",{className:"h2 mb-8",children:re[T(t)].h2}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(N,{control:s,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:re[T(t)].data[0].label}),a.jsx(N,{control:s,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:re[T(t)].data[1].label}),a.jsx(N,{control:s,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:re[T(t)].data[2].label}),a.jsx("h2",{className:"h2 mt-4",children:re[T(t)].secondH2}),a.jsx(N,{control:s,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:re[T(t)].data[3].label}),a.jsx(N,{control:s,name:"key_services",error:i.errors.key_services,placeholder:"",label:re[T(t)].data[4].label}),a.jsx(N,{control:s,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:re[T(t)].data[5].label})]}),a.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[a.jsx(H,{type:"button",onClick:e,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[t]}),a.jsx(H,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:{ru:"Далее",en:"Next",tm:"Indiki"}[t]})]})]})},ur=({handlePrev:n})=>{$();const{control:e,formState:t}=Ke(),s=O(i=>i.lang);return a.jsxs(Se.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[a.jsx("h2",{className:"h2 mb-8",children:X[T(s)].h2}),a.jsxs("div",{className:"flex flex-col gap-6",children:[a.jsx(N,{control:e,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:X[T(s)].data[0].label}),a.jsx(N,{control:e,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:X[T(s)].data[1].label}),a.jsx(N,{control:e,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:X[T(s)].data[2].label}),a.jsx(N,{control:e,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:X[T(s)].data[3].label})]}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"h2 mt-10",children:X[T(s)].secondH2}),a.jsx("h5",{className:"text-on_surface_v",children:X[T(s)].subtitle})]}),a.jsx(N,{control:e,name:"company_profile",label:X[T(s)].data[4].label,type:"file",textDark:!0}),a.jsx(N,{control:e,name:"proposal_presentation",label:X[T(s)].data[5].label,type:"file",textDark:!0}),a.jsx(N,{control:e,name:"relevant_certification",label:X[T(s)].data[6].label,type:"file",textDark:!0})]}),a.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[a.jsx(H,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:{ru:"Назад",en:"Back",tm:"Yza"}[s]}),a.jsx(H,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?a.jsx(We,{className:"animate-spin"}):X[T(s)].button})]})]})},dr=({stage:n,setStage:e,success:t,setSuccess:s})=>{const i=O(h=>h.lang),r=y.useMemo(()=>Ra(i),[i]),o=Ie({resolver:$e(r),defaultValues:La,mode:"onChange"}),c=h=>{switch(h){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},l=async()=>{const h=c(n);await o.trigger(h)&&e(f=>f+1)},u=()=>e(h=>h-1),m=async h=>{try{const d=new FormData;Object.entries(h).forEach(([p,g])=>{(g instanceof File||g!==void 0)&&d.append(p,g)}),(await fs.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",d,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&s(!0)}catch(d){console.error("Ошибка при отправке B2B формы:",d)}};return a.jsx(Fe,{...o,children:a.jsx("form",{onSubmit:o.handleSubmit(m),children:a.jsxs("div",{className:"relative",children:[a.jsx(he,{children:n===1&&a.jsx(lr,{handleNext:l})}),a.jsx(he,{children:n===2&&a.jsx(cr,{handleNext:l,handlePrev:u})}),a.jsx(he,{children:n===3&&t===!1&&a.jsx(ur,{handlePrev:u})}),t&&a.jsx(Ue,{})]})})})};function mr(){$();const n=O(r=>r.lang),[e,t]=y.useState(1),[s,i]=y.useState(!1);return a.jsxs("div",{className:"pb-[120px]",children:[a.jsx(ue,{title:{ru:"B2B | B2G встречи",en:"B2B | B2G meetings",tm:"B2B | B2G duşuşyklar"}[n]}),!s&&e!==0&&a.jsx(gs,{stage:e}),a.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:a.jsx(dr,{success:s,setSuccess:i,stage:e,setStage:t})})]})}function pr(){$();const n=O(e=>e.lang);return a.jsxs("div",{className:Z(""),children:[a.jsx(ue,{title:{ru:"О выставке",en:"About exhibition",tm:"Sergi hakynda"}[n]}),a.jsx(xs,{}),a.jsx(ys,{}),a.jsx(bs,{}),a.jsx(ks,{}),a.jsx(vs,{})]})}const pe=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,hr=n=>v.object({company_name:v.string().min(3,{message:pe("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),rep_name:v.string().min(3,{message:pe("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:pe("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),country:v.string().min(3,{message:pe("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email:v.string().email({message:pe("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone:v.string().min(8,{message:pe("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),visa_support:v.string().optional()}),fr={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""},R=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Необорудованная площадь",radio_2:"Оборудованная площадь",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"Email адрес",label_6:"Номер телефона",label_7:"Веб-сайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book a stand:",h2:"Select one of the options:",radio:"Stand space only",radio_2:"Prefabricated stand",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"Email",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"},{cover:"Stend bronlamak",h2:"Wariantlaryň birini saýlaň:",radio:"Enjamlaşdyrylmadyk meýdan",radio_2:"Enjamlaşdyrylan meýdan",label_1:"Kompaniýanyň/guramanyň ady",label_2:"Wekiliniň ady",label_3:"Wezipesi",number_of_participants:"Gatnaşyjylaryň sany",label_4:"Ýurt",label_5:"Email salgysy",label_6:"Telefon belgisi",label_7:"Web-saýt",visa:"Wiza goldawy:",visa_radio:"Hawa",visa_radio_2:"Ýok",button:"Ugratmak"}];function gr(){$();const n=O(c=>c.lang),[e,t]=y.useState(!1),s=y.useMemo(()=>hr(n),[n]),i=Ie({resolver:$e(s),defaultValues:fr}),r=async c=>{try{await ws(c)&&t(!0)}catch(l){console.error("POST sponsor error",l)}},{errors:o}=i.formState;return a.jsxs("div",{children:[a.jsx(ue,{title:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[n]}),a.jsx(he,{children:!e&&a.jsx(Fe,{...i,children:a.jsxs(Se.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:i.handleSubmit(r),children:[a.jsx(N,{label:R[T(n)].label_1,name:"company_name",control:i.control,error:o.company_name}),a.jsx(N,{label:R[T(n)].label_2,name:"rep_name",control:i.control,error:o.rep_name}),a.jsx(N,{label:R[T(n)].label_3,name:"job_title",control:i.control,error:o.job_title}),a.jsx(N,{label:R[T(n)].label_4,name:"country",control:i.control,error:o.country}),a.jsx(N,{label:R[T(n)].label_5,name:"email",control:i.control,error:o.email}),a.jsx(N,{label:R[T(n)].label_6,name:"phone",control:i.control,error:o.phone}),a.jsx(N,{label:R[T(n)].label_7,name:"website",control:i.control}),a.jsx(ze,{control:i.control,name:"visa_support",render:({field:c})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[T(n)].visa}),a.jsx(q,{children:a.jsxs(we,{onValueChange:c.onChange,defaultValue:c.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"yes",checked:c.value==="yes"})}),a.jsx(U,{className:"text-base",children:R[T(n)].visa_radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0 ",children:[a.jsx(q,{children:a.jsx(ne,{value:"no",checked:c.value==="no"})}),a.jsx(U,{className:"text-base",children:R[T(n)].visa_radio_2})]})]})})]})}),a.jsx(H,{disabled:i.formState.isSubmitting,className:"mt-5",children:i.formState.isSubmitting?a.jsx(We,{className:"animate-spin"}):R[T(n)].button})]})})}),e&&a.jsx(Ue,{delay:.3})]})}const xr=v.object({name:v.string().min(2,"error"),email:v.string().email(),phone:v.string().min(8,"error"),company:v.string().min(2,"error"),msg:v.string().min(5,"error")}),yr={name:"",email:"",phone:"",company:"",msg:""},br=({className:n})=>{const{t:e}=ge("contacts"),[t,s]=y.useState(!1),i=Ie({resolver:$e(xr),defaultValues:yr});async function r(c){try{const l=await Ss(c);s(l)}catch(l){console.error("POST contact",l)}}const{errors:o}=i.formState;return a.jsx("div",{className:Z("bg-primary rounded-[8px] py-8 px-6 ",n),children:a.jsx(Fe,{...i,children:a.jsxs("form",{onSubmit:i.handleSubmit(r),children:[a.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:e("title")}),a.jsxs("div",{className:"flex flex-col gap-8",children:[a.jsx(N,{onPrimary:!0,name:"name",control:i.control,label:e("name"),error:o.name}),a.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[a.jsx(N,{onPrimary:!0,name:"email",control:i.control,label:"Email",error:o.email}),a.jsx(N,{onPrimary:!0,name:"phone",control:i.control,label:e("phone"),error:o.phone})]}),a.jsx(N,{onPrimary:!0,name:"company",control:i.control,label:e("company"),error:o.name}),a.jsx(N,{onPrimary:!0,textArea:!0,name:"msg",label:e("message"),control:i.control,error:o.msg}),a.jsx(H,{disabled:i.formState.isSubmitting||t,className:"w-full h-12 overflow-hidden",variant:"secondary",children:t?e("submitted"):i.formState.isSubmitting?a.jsx(js,{className:"animate-spin text-white"}):e("button")})]})]})})})};function kr(){$();const{t:n}=ge("contacts");return a.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[a.jsx(ee,{children:a.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[a.jsx(br,{}),a.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[a.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:n("title_2")}),a.jsxs("div",{className:"flex flex-col gap-20",children:[a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/map.svg",alt:"address"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:n("address")}),a.jsx("address",{className:"text-base normal not-italic",children:n("venue")})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:n("phone")}),a.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),a.jsxs("div",{className:"flex items-center gap-6",children:[a.jsx("img",{src:"/contacts/email.svg",alt:"email"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),a.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),a.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:a.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}const vr=[{id:0,title:"Фото",titleEn:"Photo",titleTm:"Surat"},{id:1,title:"Видео",titleEn:"Video",titleTm:"Wideo"}],wr=({className:n})=>{var w,k,S,E,L;$();const[e,t]=y.useState(0),{data:s,isPending:i,status:r}=Ts(1),{data:o}=wt(1),[c,l]=y.useState(!1),[u,m]=y.useState({id:0,type:"photo"}),h=O(C=>C.lang),d=({id:C,type:z})=>{l(!0),m({id:C,type:z})},{t:f}=ge("main"),[p,g]=y.useState(!1),x=C=>C===0&&i?a.jsx(fe,{}):a.jsx(fe,{});return console.log(r),a.jsxs(a.Fragment,{children:[a.jsx(he,{children:c&&a.jsx(Ns,{activeItem:u,setActiveItem:m,setIsOpen:l})}),a.jsxs("section",{className:Z("md:mb-[120px] mb-20",n),children:[a.jsx(ue,{title:{ru:"Моменты",en:"Moments",tm:"Pursatlar"}[h]}),a.jsx(ee,{className:"page-bottom md:pt-10 pt-6",children:a.jsxs("div",{className:"flex justify-center flex-col",children:[a.jsx(jt,{state:e,setState:t,data:vr,className:"mb-6"}),e===0&&i?x(e):a.jsxs(a.Fragment,{children:[a.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"TurkmenTextile Expo-2025"}),a.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:e===0?(k=(w=s==null?void 0:s.photos)==null?void 0:w.slice(0,p?1e3:16))==null?void 0:k.map((C,z)=>{var _,M;return a.jsx("div",{onClick:()=>d({id:z,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:a.jsx("img",{src:((_=C==null?void 0:C.photo)==null?void 0:_.path)??"",alt:((M=C==null?void 0:C.photo)==null?void 0:M.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},z)}):(S=o==null?void 0:o.videos)==null?void 0:S.map((C,z)=>{var _;return a.jsxs("div",{onClick:()=>d({id:z,type:"video"}),className:"cursor-pointer group embla__slide h-[155px] w-full basis-1/1 overflow-hidden relative",children:[a.jsx(_s,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),a.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),a.jsx("img",{src:((_=C==null?void 0:C.video_photo)==null?void 0:_.path)??"",className:"size-full object-cover"})]},z)})})]}),((E=s==null?void 0:s.photos)==null?void 0:E.length)&&((L=s==null?void 0:s.photos)==null?void 0:L.length)>16&&!p&&a.jsx(H,{onClick:()=>g(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:f("media.button")})]})})]})]})},jr=(n,e)=>{const{data:t,isPending:s}=qe({queryKey:["news-inner",n,e],queryFn:()=>Es(n,e),select:({data:i})=>i.data});return{data:t,isPending:s}};function Sr(){var o;const{id:n}=Ms(),e=O(c=>c.lang),t=Number(n);$(t);const{data:s,isPending:i}=jr(t,e),{data:r}=St(e);return i?a.jsx(fe,{}):a.jsxs(ee,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[a.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:s==null?void 0:s.title}),a.jsx("h4",{children:s==null?void 0:s.published_at.slice(0,10).split("-").reverse().join(".")})]}),a.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:a.jsx("img",{src:((o=s==null?void 0:s.featured_images[0])==null?void 0:o.path)||"",alt:"news image",className:"size-full object-cover"})}),a.jsx("div",{dangerouslySetInnerHTML:{__html:(s==null?void 0:s.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),a.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),a.jsxs("section",{children:[a.jsx("h2",{className:"h2 mb-6",children:{ru:"Читайте также:",en:"Read more:",tm:"Şeýle hem okaň:"}[e]}),a.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:r==null?void 0:r.filter(c=>c.id!==t).slice(0,3).map(c=>y.createElement(Tt,{...c,key:c.title}))})]})]})}function Tr(){$();const n=O(s=>s.lang),{data:e,isPending:t}=St(n);return t?a.jsx(fe,{}):a.jsxs(ee,{className:"page-padding",children:[a.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[n]}),a.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:e==null?void 0:e.map(s=>y.createElement(Tt,{...s,key:s.title}))})]})}const Nr=()=>{const n=O(s=>s.lang),{data:e,isPending:t}=qe({queryKey:["participants",n],queryFn:()=>zs(n),select:({data:s})=>s.data});return{data:e,isPending:t}},_r=({className:n})=>{var u,m,h,d,f;$();const e=O(p=>p.lang),{data:t,isPending:s}=Nr(),i={company:{ru:"Название компании",en:"Company name",tm:"Kompaniýanyň ady"}[e],country:{ru:"Страна",en:"Country",tm:"Ýurt"}[e],industry:{ru:"Сфера деятельности",en:"Industry",tm:"Pudak"}[e]},[r,o]=y.useState(0),c=(h=t==null?void 0:t[0])==null?void 0:h.participants.concat((u=t==null?void 0:t[1])==null?void 0:u.participants,(m=t==null?void 0:t[2])==null?void 0:m.participants),l=t==null?void 0:t.filter(p=>r===1?p.id===3:r===2?p.id===1:p.id===2);return console.log(r),a.jsx(ee,{children:a.jsxs("section",{className:Z("page-padding overflow-x-hidden",n),children:[a.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:{ru:"Список участников",en:"List of participants",tm:"Gatnasyjylaryň sanawy"}[e]}),a.jsx(jt,{state:r,setState:o,className:"mb-6 md:w-fit"}),a.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[a.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[a.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:i==null?void 0:i.company}),a.jsx("h3",{className:"flex-[0_0_19.80%]",children:i==null?void 0:i.country}),a.jsx("h3",{className:"flex-[0_0_34.65%]",children:i==null?void 0:i.industry})]}),s?a.jsx(fe,{}):r===0?c==null?void 0:c.map((p,g,x)=>a.jsx(st,{...p,arr:x==null?void 0:x.length,index:g,image:p.image??{path:""},image_country:p.image_country??{path:""}})):(f=(d=l==null?void 0:l[0])==null?void 0:d.participants)==null?void 0:f.map((p,g,x)=>a.jsx(st,{...p,arr:x==null?void 0:x.length,index:g,image:p.image??{path:""},image_country:p.image_country??{path:""}}))]})]})})},ce=(n,e,t,s)=>s==="ru"?n:s==="tm"?t:e,Er=n=>v.object({space_package:v.string(),company_name:v.string().min(3,{message:ce("Название компании должно быть не менее 3 символов","Company name must be at least 3 characters","Kompaniýanyň ady azyndan 3 simwoldan ybarat bolmaly",n)}),rep_name:v.string().min(3,{message:ce("Имя представителя должно быть не менее 3 символов","Representative name must be at least 3 characters","Wekiliniň ady azyndan 3 simwoldan ybarat bolmaly",n)}),job_title:v.string().min(3,{message:ce("Должность должна быть не менее 3 символов","Job title must be at least 3 characters","Wezipesi azyndan 3 simwoldan ybarat bolmaly",n)}),participants_number:v.preprocess(e=>Number(e),v.number().min(1,ce("Укажите количество участников","Specify the number of participants","Gatnaşyjylaryň sanyny görkeziň",n))),country:v.string().min(3,{message:ce("Название страны должно быть не менее 3 символов","Country must be at least 3 characters","Ýurduň ady azyndan 3 simwoldan ybarat bolmaly",n)}),email:v.string().email({message:ce("Укажите корректный email","Enter a valid email","Dogry email salgysyny giriziň",n)}),phone:v.string().min(8,{message:ce("Номер телефона должен быть не менее 8 символов","Phone number must be at least 8 characters","Telefon belgisi azyndan 8 simwoldan ybarat bolmaly",n)}),website:v.string().optional(),visa_support:v.string().optional()}),zr={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function Cr(){$();const n=O(l=>l.lang),[e,t]=y.useState(!1),s=y.useMemo(()=>Er(n),[n]),i=Ie({resolver:$e(s),defaultValues:zr}),r=async l=>{await Cs(l)&&t(!0)};y.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[]);const{errors:o}=i.formState,c=T(n);return a.jsxs("div",{children:[a.jsx(ue,{title:R[T(n)].cover}),a.jsx(he,{children:!e&&a.jsx(Fe,{...i,children:a.jsxs(Se.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:i.handleSubmit(r),children:[a.jsx(ze,{control:i.control,name:"space_package",render:({field:l})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[c].h2}),a.jsx(q,{children:a.jsxs(we,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"space",checked:l.value==="space"})}),a.jsx(U,{className:"text-base",children:R[c].radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"package",checked:l.value==="package"})}),a.jsx(U,{className:"text-base",children:R[c].radio_2})]})]})})]})}),a.jsx(N,{label:R[c].label_1,name:"company_name",control:i.control,error:o.company_name}),a.jsx(N,{label:R[c].label_2,name:"rep_name",control:i.control,error:o.rep_name}),a.jsx(N,{label:R[c].label_3,name:"job_title",control:i.control,error:o.job_title}),a.jsx(N,{label:R[c].number_of_participants,type:"number",name:"participants_number",control:i.control,error:o.participants_number}),a.jsx(N,{label:R[c].label_4,name:"country",control:i.control,error:o.country}),a.jsx(N,{label:R[c].label_5,name:"email",control:i.control,error:o.email}),a.jsx(N,{label:R[c].label_6,name:"phone",control:i.control,error:o.phone}),a.jsx(N,{label:R[c].label_7,name:"website",control:i.control}),a.jsx(ze,{control:i.control,name:"visa_support",render:({field:l})=>a.jsxs(W,{className:"space-y-5",children:[a.jsx(U,{className:"text-xl",children:R[c].visa}),a.jsx(q,{children:a.jsxs(we,{onValueChange:l.onChange,defaultValue:l.value,className:"flex flex-col space-y-4 ml-3",children:[a.jsxs(W,{className:"flex items-center space-x-5 space-y-0",children:[a.jsx(q,{children:a.jsx(ne,{value:"yes",checked:l.value==="yes"})}),a.jsx(U,{className:"text-base",children:R[c].visa_radio})]}),a.jsxs(W,{className:"flex items-center space-x-5 space-y-0 ",children:[a.jsx(q,{children:a.jsx(ne,{value:"no",checked:l.value==="no"})}),a.jsx(U,{className:"text-base",children:R[c].visa_radio_2})]})]})})]})}),a.jsx(H,{disabled:i.formState.isSubmitting,className:"mt-5",children:i.formState.isSubmitting?a.jsx(We,{className:"animate-spin"}):R[c].button})]})})}),e&&a.jsx(Ue,{delay:.3})]})}const Yt=()=>{var p;const{t:n}=ge("main"),e=O(g=>g.lang),{pathname:t}=Je(),[s]=Nt({loop:!0},[Rs({delay:5e3,stopOnInteraction:!1})]),{title:i,texts:r,button:o,button2:c}=n("impressions.hero",{returnObjects:!0}),{title2:l,texts2:u}=n("impressions.hero",{returnObjects:!0}),m=(g,x)=>t==="/impressions"?g:x,h=(g,x)=>t==="/impressions"?g:x,d={en:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"],ru:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg"],tm:["https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg","https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg"]},f=()=>d[e]??d.en;return a.jsxs("section",{className:"",children:[t==="/impressions-tm"?a.jsx("div",{ref:s,className:"embla overflow-hidden",children:a.jsx("div",{className:"flex",children:f().map((g,x)=>a.jsx("img",{src:g,alt:"imperssions",className:"w-full object-cover flex-[0_0_100%] object-top max-h-[610px]"},x))})}):a.jsx("img",{src:n("impressions.banner")}),a.jsx("h1",{className:"absolute opacity-0 top-0 left-0",children:{ru:"Модные показы",en:"Fashion shows",tm:"Moda görkezişler"}[e]}),a.jsx("div",{className:"bg-[url('/impressions-bg.png')]",children:a.jsxs(ee,{className:"md:py-20 py-10",children:[a.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%] md:mb-10 mb-6",children:m(i,l)}),a.jsx("div",{className:"text-on_surface_v flex flex-col gap-3",children:(p=h(r,u))==null?void 0:p.map((g,x)=>a.jsx("p",{className:"md:text-lg !normal",children:g},x))}),a.jsxs("div",{className:"flex md:flex-row flex-col items-center gap-6 mt-6",children:[a.jsx(nt,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/ICS%20file/TurkmenTextile%20Expo-2025.ics",className:"w-full",children:a.jsx(H,{size:"sm",className:"w-full",children:o})}),a.jsx(nt,{to:e==="ru"?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/agenda/agenda_en.pdf",target:"_blank",className:"w-full",children:a.jsx(H,{size:"sm",className:"w-full",children:c})})]})]})})]})},Xt=()=>{var m,h,d;const{t:n}=ge("main"),{pathname:e}=Je(),[t,s]=y.useState(1),{data:i}=wt(1),o=[...(i==null?void 0:i.videos.filter(f=>f.sections[0]==="fashion_shows"))??[]].sort((f,p)=>(f==null?void 0:f.fashion_shows_order_id)+(p==null?void 0:p.fashion_shows_order_id)),{videosTitle:c,videosTitle2:l}=n("impressions",{returnObjects:!0}),u=()=>e!=="/impressions";return a.jsx("section",{className:"bg-[url('/impressions/videos-block-bg.png')] md:py-20 py-10",children:a.jsxs(ee,{children:[a.jsx("h2",{className:"mb-10 md:text-5xl text-2xl leading-[120%] text-white text-center",children:u()?c:l}),a.jsxs("div",{className:"flex flex-col lg:flex-row lg:mx-20 gap-4 text-white overflow-hidden h-fit lg:h-[490px]",children:[a.jsxs("div",{className:"bg-gray_10 flex-auto p-2 rounded-[8px] border border-gray_09 flex flex-col justify-center h-full",children:[a.jsx("div",{className:"max-h-[450px]",children:a.jsx("video",{src:(d=(h=(m=i==null?void 0:i.videos)==null?void 0:m[t])==null?void 0:h.video)==null?void 0:d.path,muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full size-full mb-2 rounded"})}),a.jsx("div",{className:"flex items-center justify-between mt-auto"})]}),a.jsx("div",{className:"bg-gray_10 flex-[0_0_20%] px-2 pt-2 rounded-[8px] border border-gray_09 flex flex-col h-full",children:a.jsx("div",{className:"flex flex-col gap-2 w-full overflow-y-auto overflow-x-hidden h-full",children:o==null?void 0:o.map((f,p)=>{var g;return a.jsx("div",{onClick:()=>s(p+1),className:"basis-[70px] w-[80%] cursor-pointer mx-auto overflow-hidden",children:a.jsx("img",{src:(g=f==null?void 0:f.video_photo)==null?void 0:g.path,alt:"",className:"object-cover size-full rounded-tl hover:scale-105 transition-transform rounded-bl"})},p)})})})]})]})})},Rr=n=>{const e=O(i=>i.lang),{data:t,isPending:s}=qe({queryKey:["designers",e],queryFn:()=>Ls(e,n),select:({data:i})=>i.data});return{data:t,isPending:s}},Qt=()=>{const{pathname:n}=Je(),e=()=>n!=="/impressions",{data:t,isPending:s}=Rr(e()?2:1),[i,r]=Nt({align:"center",skipSnaps:!0,slidesToScroll:2,dragFree:!0}),[o,c]=y.useState(0),{t:l}=ge("main"),[u,m]=y.useState(!1),[h,d]=y.useState(!0),f=y.useCallback(S=>{r&&r.scrollTo(S)},[r]);y.useEffect(()=>{if(!r)return;const S=()=>{c(r==null?void 0:r.selectedScrollSnap()),m(r.canScrollPrev()),d(r.canScrollNext())};return r.on("select",S),()=>{r.off("select",S)}},[r]);const{title:p,text:g,title2:x,text2:w}=l("impressions.designers",{returnObjects:!0}),k=[...(t==null?void 0:t.designers)??[]].sort((S,E)=>(S==null?void 0:S.order_id)-(E==null?void 0:E.order_id));return console.log(k),a.jsx("section",{className:"md:py-20 py-10",children:a.jsxs(ee,{className:"flex flex-col md:gap-10 gap-6",children:[a.jsx("h2",{className:"md:text-5xl text-2xl leading-[120%]",children:e()?p:x}),a.jsx("p",{className:"md:text-xl text-lg normal text-on_surface_v",children:e()?g:w}),a.jsxs("div",{ref:i,className:"embla",children:[a.jsx("div",{className:"flex embla__container",children:s?a.jsx(fe,{}):k==null?void 0:k.map((S,E)=>a.jsx(Ps,{...S,className:"embla__slide flex-[0_0_714px] mr-4"},E))}),a.jsxs("div",{className:"flex items-center justify-center gap-4 mt-6",children:[a.jsx("button",{onClick:()=>r==null?void 0:r.scrollPrev(),className:Z("size-12 flex items-center justify-center",!u&&"opacity-20 pointer-events-none"),children:a.jsx(Os,{})}),a.jsx("div",{className:"flex items-center gap-2",children:[...Array(k!=null&&k.length?Math.round((k==null?void 0:k.length)/2):5)].map((S,E)=>a.jsx("div",{onClick:()=>f==null?void 0:f(E),className:Z("w-5 h-1 rounded-[2px] cursor-pointer",o===E?"bg-teritary":"bg-on_surface_v")},E))}),a.jsx("button",{onClick:()=>r==null?void 0:r.scrollNext(),className:Z("size-12 flex items-center justify-center",!h&&"opacity-20 pointer-events-none"),children:a.jsx(Is,{})})]})]})]})})};function Lr(){return $(),a.jsxs("div",{className:"overflow-x-hidden",children:[a.jsx(Yt,{}),a.jsx(Xt,{}),a.jsx(Qt,{})]})}function Pr(){return $(),a.jsxs("div",{className:"overflow-x-hidden",children:[a.jsx(Yt,{}),a.jsx(Xt,{}),a.jsx(Qt,{})]})}const Or="/about-place.jpg",P={title:{ruText:"Варианты участия",enText:"Participation Options",tmText:"Gatnaşmagyň görnüşleri"},exhibitionSpace:{ruText:"Аренда выставочной площади",enText:"Exhibition Space Rental",tmText:"Sergi meýdanyny kärendesine almak"},spaceOnly:{ruText:"Необорудованная площадь",enText:"Space Only",tmText:"Enjamlaşdyrylmadyk meýdan"},example:{ruText:"Пример",enText:"Example",tmText:"Mysal"},spaceOnlyDescription:{ruText:"Чистая площадь для последующей застройки (стандартная застройка или по индивидуальному дизайну). Включает: общую уборку и охрану павильона. Электричество в стоимость не включено.",enText:"Raw exhibition space for subsequent construction (standard booth or customized design). Includes general cleaning and pavilion security. Electricity is not included in the price.",tmText:"Soňky gurluşyk üçin arassa meýdan (standart gurluşyk ýa-da indiwidual dizaýn). Öz içine alýar: umumy arassaçylyk we pawilýonyň goragy. Elektrik energiýasy bahasynyň içine girenok."},standardBooth:{ruText:"Стандартная застройка",enText:"Standard Booth Construction",tmText:"Standart gurluşyk"},customBooth:{ruText:"Индивидуальный дизайн",enText:"Custom Booth Design",tmText:"Indiwidual dizaýn"},boothExampleDescription:{ruText:"Включает: базовое электроподключение (220V - 2 кВт), стены (стандартные или индивидуальный дизайн). Общую уборку и охрану павильона.",enText:"Includes: basic electrical connection (220V - 2 kW), walls (standard or customized design), general cleaning, and pavilion security.",tmText:"Öz içine alýar: esasy elektrik birikdirmesi (220V - 2 kWt), diwarlar (standart ýa-da indiwidual dizaýn). Umumy arassaçylyk we pawilýonyň goragy."},registrationFee:{ruText:"Участие со стендом включает регистрационную оплату.",enText:"Participation with a booth includes a registration fee.",tmText:"Stend bilen gatnaşmak hasaba alyş tölegini öz içine alýar."},pricingNote:{ruText:"Пожалуйста уточните стоимость у менеджера проекта.",enText:"Please check the pricing with the project manager.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},partnershipTitle:{ruText:"Партнёрские возможности",enText:"Partnership Opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},partnershipIntro:{ruText:'Если Вы заинтересованы в более активном выходе на рынок или целью Вашей компании является максимальное продвижение на рынок, используйте пакет "Партнерство выставки". Приобретая данную опцию, Вы получаете:',enText:'If your company is interested in a more active market presence or aims to maximize market promotion, we recommend the "Exhibition Partnership" package. By choosing this option, you will receive:',tmText:'Eger siziň kompaniýaňyz bazara has işjeň çykmaga gyzyklanýan bolsa, "Serginiň hyzmatdaşlygy" paketini ulanyň. Bu opsiýany alyp, siz şulary alarsyňyz:'},partnershipItems:[{ruText:"Статус Партнера выставки, в зависимости от выбранного пакета",enText:"Exhibition Partner status, depending on the selected package",tmText:"Saýlanan pakete baglylykda Serginiň hyzmatdaşy statusy"},{ruText:"Масштабную рекламную кампанию (размещение логотипа компании на всей рекламной продукции выставки)",enText:"A large-scale advertising campaign (placement of your company logo on all exhibition promotional materials)",tmText:"Uly gerimli reklama kampaniýasy (kompaniýanyň logotipini serginiň ähli reklama önümlerinde ýerleşdirmek)"},{ruText:"Широкую узнаваемость",enText:"Wide recognition",tmText:"Giň tanalmaklyk"},{ruText:"Ассоциирование выставки с именем Вашей компании и др.",enText:"Association of the exhibition with your company's name, and more",tmText:"Serginiň siziň kompaniýaňyzyň ady bilen assosiasiýasy we ş.m."}],partnershipNote:{ruText:"Пожалуйста, уточните стоимость у менеджера проекта.",enText:"Please contact the project manager to clarify the cost.",tmText:"Bahany taslamanyň menejeri bilen anyklaň."},exampleImageAlt:{ruText:"Пример площадки",enText:"Example space",tmText:"Meýdançanyň mysaly"},standardExampleAlt:{ruText:"Пример стандартной застройки",enText:"Standard booth example",tmText:"Standart gurluşygyň mysaly"},customExampleAlt:{ruText:"Пример индивидуального дизайна",enText:"Custom booth example",tmText:"Indiwidual dizaýnyň mysaly"}},kt=()=>a.jsx("svg",{width:"14",height:"20",viewBox:"0 0 14 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a.jsx("path",{d:"M7 1V15M7 15L2 10M7 15L12 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function Ir(){$();const n=O(t=>t.lang),e=t=>n==="ru"?t.ruText:n==="tm"?t.tmText??t.enText:t.enText;return a.jsxs("div",{children:[a.jsx(ue,{title:e(P.title)}),a.jsx(ee,{className:"page-padding",children:a.jsxs("div",{className:"mx-auto max-w-[900px] text-on_surface",children:[a.jsx("p",{className:"mb-10 text-3xl font-medium",children:e(P.title)}),a.jsxs(H,{className:"mb-2 bg-primary md:text-base w-full",children:["1. ",e(P.exhibitionSpace)]}),a.jsx(H,{variant:"outline",className:"w-full mb-10 border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.spaceOnly)}),a.jsx("p",{className:"mb-5 text-center text-lg",children:e(P.example)}),a.jsx("div",{className:"mx-auto h-[180px] w-full max-w-[754px] md:h-[377px]",children:a.jsx("img",{src:Or,alt:e(P.exampleImageAlt),className:"size-full rounded-sm object-cover"})}),a.jsx("div",{className:"mt-5 text-center text-base leading-relaxed",children:a.jsx("p",{children:e(P.spaceOnlyDescription)})}),a.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[a.jsxs("div",{className:"w-full flex flex-col items-center gap-2 text-primary",children:[a.jsx(kt,{}),a.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.standardBooth)})]}),a.jsxs("div",{className:"flex flex-col items-center gap-2 text-primary",children:[a.jsx(kt,{}),a.jsx("div",{className:"w-full border border-primary py-1 text-center text-base text-primary md:text-base",children:e(P.customBooth)})]})]}),a.jsxs("div",{className:"mt-10 grid grid-cols-1 gap-6 md:grid-cols-2",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),a.jsx("img",{src:"/example.jpeg",alt:e(P.standardExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),a.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]}),a.jsxs("div",{children:[a.jsxs("p",{className:"mb-5 text-base",children:[e(P.example),":"]}),a.jsx("img",{src:"/example-2.jpeg",alt:e(P.customExampleAlt),className:"h-[160px] w-full rounded-sm object-cover md:h-[190px]"}),a.jsx("p",{className:"mt-2 text-base leading-relaxed",children:e(P.boothExampleDescription)})]})]}),a.jsx("p",{className:"mt-6 text-2xl",children:e(P.registrationFee)}),a.jsx("p",{className:"text-base mt-3",children:e(P.pricingNote)}),a.jsxs("div",{className:"mt-6 bg-primary py-3 text-center text-xs font-medium text-on_primary md:text-base",children:["2. ",e(P.partnershipTitle)]}),a.jsxs("div",{className:"mt-3 text-base leading-relaxed font-normal",children:[a.jsx("p",{className:"mb-2",children:e(P.partnershipIntro)}),a.jsx("ul",{className:"list-disc pl-5",children:P.partnershipItems.map(t=>a.jsx("li",{children:e(t)},t.enText))}),a.jsx("p",{className:"mt-2",children:e(P.partnershipNote)})]})]})})]})}const K={title:{ruText:"Партнерские возможности",enText:"Partner opportunities",tmText:"Hyzmatdaşlyk mümkinçilikleri"},intro:{ruText:"Предлагаем Вам воспользоваться комплексными возможностями - партнерскими пакетами, разработанными под различные маркетинговые задачи компании-участника, которые позволят максимально использовать коммерческий потенциал выставки для усиления бренда Вашей компании и бесспорно повысят эффективность продвижения Вашей компании.",enText:"We invite you to take advantage of integrated opportunities - partnership packages designed for various marketing objectives of the exhibiting company. They allow you to maximize the exhibition's commercial potential, strengthen your brand, and significantly increase the effectiveness of your promotion.",tmText:"Size dürli marketing wezipelerine gönükdirilen hyzmatdaşlyk paketlerinden peýdalanmagy teklip edýäris. Olar serginiň söwda potensialyny iň ýokary derejede ulanmaga, brendiňizi güýçlendirmäge we kompaniýaňyzy öňe sürmegiň netijeliligini ep-esli artdyrmaga mümkinçilik berýär."},partnership:{ruText:"Партнерство выставки - это всегда больше, чем просто участие. Это прекрасная возможность выгодно подать Вашу продукцию широкой публике в соответствии с Вашими основными целями и задачами. В каждом партнерском пакете предоставлены уникальные позиции, специально сформированные таким образом, что Вы наиболее точно и эффективно передаете обращение к целевой аудитории.",enText:"Exhibition partnership is always more than just participation. It is a great opportunity to present your products to a wide audience in line with your goals and objectives. Each partnership package includes unique placements structured so you can communicate your message to the target audience as precisely and effectively as possible.",tmText:"Serginiň hyzmatdaşlygy – bu diňe bir gatnaşmakdan has köp zatdyr. Bu öz önümleriňizi giň köpçülige hödürlemek üçin ajaýyp mümkinçilikdir. Her hyzmatdaşlyk paketinde maksatly auditoriýa iň takyk we netijeli ýol bilen ýüzlenmegiňiz üçin ýörite düzülen özboluşly orunlar bar."},benefitsTitle:{ruText:"Партнерство выставки Turkmen Textile позволит:",enText:"Partnership with Turkmen Textile will allow you:",tmText:"Turkmen Textile sergisiniň hyzmatdaşlygy mümkinçilik berer:"},benefits:[{ruText:"Укрепить позиции Вашей компании на рынке.",enText:"Strengthen your company's position in the market.",tmText:"Kompaniýaňyzyň bazardaky pozisiýasyny berkitmek."},{ruText:"Обеспечить существенное преимущество в конкурентной среде.",enText:"Gain a significant advantage in the competitive environment.",tmText:"Bäsdeşlik gurşawynda ep-esli artykmaçlyk gazanmak."},{ruText:"Закрепить имидж успешного бренда Вашей компании.",enText:"Reinforce the image of your company as a successful brand.",tmText:"Kompaniýaňyzyň üstünlikli brend hökmünde abraýyny berkitmek."},{ruText:"Сделать Вашу торговую марку узнаваемой для широкого круга участников и посетителей выставки.",enText:"Make your trademark recognizable to a wide range of exhibition participants and visitors.",tmText:"Söwda belgiňizi serginiň gatnaşyjylarynyň we gelýänleriniň giň topary üçin tanalýan etmek."},{ruText:"Выделить Вашу компанию среди других участников.",enText:"Stand out among other exhibitors.",tmText:"Kompaniýaňyzy beýleki gatnaşyjylaryň arasynda tapawutlandyrmak."}],highlight:{ruText:"Вы хотите, чтобы в профессиональной среде именно Вашу компанию считали ключевым игроком на рынке? Тогда заявите о себе громче всех!",enText:"Do you want your company to be seen as a key player in the professional community? Then make yourself heard louder than anyone else!",tmText:"Siz professional gurşawda kompaniýaňyzyň bazardaky esasy oýunçy hökmünde tanalmagyny isleýärsiňizmi? Onda hemmelerden has gaty sesleniniň!"},packagesTitle:{ruText:"Варианты партнерских пакетов:",enText:"Partnership package options:",tmText:"Hyzmatdaşlyk paketleriniň görnüşleri:"},packages:[{ruText:"Генеральный партнер выставки",enText:"General partner of the exhibition.",tmText:"Serginiň baş hyzmatdaşy"},{ruText:"Партнер Ленты Ведущих Посетителей",enText:"Lead visitor lanyard partner.",tmText:"Öňdebaryjy gelýänleriň lentasynyň hyzmatdaşy"},{ruText:"Партнер деловой программы",enText:"Business program partner.",tmText:"Işewür programmanyň hyzmatdaşy"},{ruText:"Партнер вечернего приема",enText:"Evening reception partner.",tmText:"Agşamky kabul edişligiň hyzmatdaşy"},{ruText:"Партнер пакетов посетителей",enText:"Visitor package partner.",tmText:"Gelýänleriň paketiniň hyzmatdaşy"},{ruText:"Партнер каталога выставки",enText:"Exhibition catalog partner.",tmText:"Serginiň katalogynyň hyzmatdaşy"},{ruText:"Партнер VIP делегации",enText:"VIP delegation partner.",tmText:"VIP delegasiýanyň hyzmatdaşy"},{ruText:"Партнер выставки",enText:"Exhibition partner.",tmText:"Serginiň hyzmatdaşy"}],optionsNote:{ruText:"Данные опции являются базовыми, но мы всегда готовы обсудить вопрос о специальных проектах в рамках партнерства выставки, которые будут соответствовать Вашему бюджету, потребностям и целям.",enText:"These options are basic, but we are always ready to discuss special projects within the exhibition partnership that match your budget, needs, and goals.",tmText:"Bu opsiýalar esasy opsiýalardyr, emma biz elmydama siziň býudjetiňize, zerurlyklarňyza we maksatlaryňyza laýyk gelýän ýörite taslamalary ara alyp maslahatlaşmaga taýýardyrys."},contactNote:{text:{ruText:"По вопросам цен и дополнительных опций партнерских пакетов выставки KIFT, пожалуйста, обращайтесь к ",enText:"For pricing and additional options of KIFT exhibition partnership packages, please contact the ",tmText:"Serginiň hyzmatdaşlyk paketleriniň bahalary we goşmaça opsiýalary boýunça haýyş edýäris, ýüz tutuň "},linkText:{ruText:"ОРГАНИЗАТОРАМ",enText:"ORGANIZERS",tmText:"GURAMAÇYLARA"}}};function Fr(){$();const n=O(t=>t.lang),e=t=>n==="ru"?t.ruText:n==="tm"?t.tmText??t.enText:t.enText;return a.jsxs("div",{children:[a.jsx(ue,{title:e(K.title)}),a.jsx(ee,{className:"page-padding text-sm!",children:a.jsxs("div",{className:"mx-auto max-w-[900px]",children:[a.jsx("h2",{className:"mb-3 text-2xl font-medium",children:e(K.title)}),a.jsx("div",{className:"mb-4 rounded-sm bg-surface_container px-4 py-3 text-sm leading-relaxed text-on_surface_v",children:e(K.intro)}),a.jsx("p",{className:"mb-4 text-sm leading-relaxed text-on_surface_v",children:e(K.partnership)}),a.jsx("h3",{className:"mb-2 text-base font-medium",children:e(K.benefitsTitle)}),a.jsx("ul",{className:"mb-4 list-disc pl-5 text-sm leading-relaxed text-on_surface_v",children:K.benefits.map(t=>a.jsx("li",{children:e(t)},t.enText))}),a.jsx("div",{className:"mb-6 rounded-sm border border-outline px-4 py-3 text-center text-[10px] uppercase text-on_surface_v",children:e(K.highlight)}),a.jsx("h3",{className:"mb-2 text-base font-medium",children:e(K.packagesTitle)}),a.jsx("ul",{className:"mb-4 border-t border-outline_v",children:K.packages.map(t=>a.jsxs("li",{className:"flex items-center gap-2 border-b border-outline_v py-2 text-sm text-on_surface_v",children:[a.jsx("span",{className:"text-xs text-primary",children:"✓"}),a.jsx("span",{children:e(t)})]},t.enText))}),a.jsx("p",{className:"text-sm leading-relaxed text-on_surface_v",children:e(K.optionsNote)}),a.jsxs("p",{className:"text-sm leading-relaxed text-on_surface_v",children:[e(K.contactNote.text),a.jsx("span",{className:"text-primary underline",children:e(K.contactNote.linkText)})]})]})})]})}const $r=[{element:a.jsx(za,{}),path:"/",children:[{element:a.jsx(Ca,{}),path:"",errorElement:a.jsx(A,{})},{element:a.jsx(pr,{}),path:"about",errorElement:a.jsx(A,{})},{element:a.jsx(mr,{}),path:"B2B-B2G",errorElement:a.jsx(A,{})},{element:a.jsx(gr,{}),path:"become-sponsor",errorElement:a.jsx(A,{})},{element:a.jsx(Cr,{}),path:"stend-form",errorElement:a.jsx(A,{})},{element:a.jsx(kr,{}),path:"contacts",errorElement:a.jsx(A,{})},{element:a.jsx(Tr,{}),path:"news",errorElement:a.jsx(A,{})},{element:a.jsx(Sr,{}),path:"news/:id",errorElement:a.jsx(A,{})},{element:a.jsx(_r,{}),path:"participants",errorElement:a.jsx(A,{})},{element:a.jsx(wr,{}),path:"media",errorElement:a.jsx(A,{})},{element:a.jsx(Lr,{}),path:"impressions",errorElement:a.jsx(A,{})},{element:a.jsx(Pr,{}),path:"impressions-tm",errorElement:a.jsx(A,{})},{element:a.jsx(Ir,{}),path:"participation-options",errorElement:a.jsx(A,{})},{element:a.jsx(Fr,{}),path:"partner-opportunities",errorElement:a.jsx(A,{})}]}],Ar=Bs($r),Dr=new Fs;Hs.createRoot(document.getElementById("root")).render(a.jsx(y.StrictMode,{children:a.jsx($s,{client:Dr,children:a.jsx(Gs,{router:Ar})})})); diff --git a/dist/assets/ui-library-Du5AO6gB.js b/dist/assets/ui-library-DV79vey3.js similarity index 97% rename from dist/assets/ui-library-Du5AO6gB.js rename to dist/assets/ui-library-DV79vey3.js index 6e630c9..51bce60 100644 --- a/dist/assets/ui-library-Du5AO6gB.js +++ b/dist/assets/ui-library-DV79vey3.js @@ -160,4 +160,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do `,p_2:"The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry.",data:[{nums:"10,000 m²",text:"Exhibition area"},{nums:"10000+",text:"Expected visitors "},{nums:"100+",text:"Exhibitors from over 30 countries"},{nums:"80%",text:"Participants are top-management"}],button:"Report",button2:"Catalog"},{h2:"Aşgabatda «TurkmenTextile Expo-2025» sergi-ýarmarkasy",p:`Pudagyň dünýä liderlerini, innowasion önümçileri we döredijilikli dizaýnerleri birleşdirjek halkara sergi-ýarmarka. Biziň maksadymyz – Türkmenistany dokma we moda senagatynyň esasy merkezi hökmünde berkitmek. `,p_2:`Sergi durnukly praktikalary, häzirkizaman tilsimatlary we dizaýn çözgütlerini öwrenmek üçin platforma bolar. - «TurkmenTextile Expo-2025» – bu däp-dessurlary we innowasiýalary, önüm öndürijileri we sarp edijileri, Türkmenistany we dünýäni birleşdirýän platformadyr!`,data:[{nums:"10,000 m²",text:"Sergi meýdanyňky"},{nums:"10000+",text:"Geljek adamlaryň garaşylýan sany"},{nums:"100+",text:"30 ýurtdan gowurak eksponentler"},{nums:"80%",text:"Top-menejmentden gatnaşyjylar"}],button:"Hasabat",button2:"Katalog"}],Q1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["stats",e],queryFn:()=>$k(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eM=()=>{var l,u;const[e]=Tn(),t=_e(d=>d.lang),{t:n}=Nr("home"),{data:r,isPending:s}=Ex("1"),{data:i}=Q1(),o=(l=r==null?void 0:r.find(d=>d.key==="index_1"))==null?void 0:l.text,a=(u=r==null?void 0:r.find(d=>d.key==="index_2"))==null?void 0:u.text,c=yt(t);return s?f.jsx(Jn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2 text-left",children:o}),f.jsx("div",{dangerouslySetInnerHTML:{__html:a||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsxs("div",{className:"flex w-full gap-8",children:[f.jsx(Se,{to:n("reportLink"),target:"_blank",className:"w-fit",children:f.jsx(tt,{variant:"outline",children:$h[c].button})}),f.jsx(Se,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(tt,{variant:"outline",className:"px-16",children:$h[c].button2})})]})]}),f.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),f.jsx("div",{ref:e,className:"embla overflow-hidden",children:f.jsx("div",{className:"flex embla__container items-center gap-6",children:i==null?void 0:i.map(d=>f.jsx(fS,{...d,className:"embla__slide flex-[0_0_288px]"},d.text))})})]})})},tM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=Sx();return n?f.jsx(Jn,{}):f.jsx("section",{className:"",children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:al[yt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((r,s)=>f.jsx(lm,{...r},s))})]})})},X1=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-1.png",title:"Myhmanhanalar, transfer, wizalar",btnText:"Ýol görkezijini ýüklemek",text:"Myhmanhanalara ýerleşmek, wiza goldawy, ulag we ekskursiýa meseleleri boýunça Siz ýol görkezijiden tanyşyp bilersiňiz",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"TurkmenTextile Expo 2026 serginiň meýilnamasy bilen tanyşmak",btnText:"Serginiň meýilnamasyny ýüklemeli",text:"Sergide oňat ýeri nädip saýlamaly? Sergi ekspozisiýasyny şowly ýerleşdirmegiň Siziň potensial müşderileriňizi çekmek boýunça mümkinçilikleriňizi has-da artdyrýandygyny Siz hemişe ýatda saklamalysyňyz.",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],nM=()=>{const[e,t]=Tn({align:"start"}),[n,r]=m.useState(0),s=_e(o=>o.lang),i=m.useCallback(o=>{t&&t.scrollTo(o)},[t]);return m.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),f.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:f.jsx(Ke,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:X1[yt(s)].data.map(o=>m.createElement(hS,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(wA,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Y1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["sponsors",e],queryFn:()=>Kk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},rM=({className:e})=>{const[t]=Tn({loop:!0,align:"start",skipSnaps:!0,duration:75},[ga({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:r}=Y1(),{t:s}=Nr("home",{keyPrefix:"sponsors"});return r?f.jsx(Jn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:s("title")}),f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,c;return i.link?f.jsxs(Se,{target:"_blank",to:i.link,className:"bg-surface_container flex flex-col embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center min-h-[128px] w-full",children:[f.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):f.jsxs("div",{className:"bg-surface_container embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center minh-[128px] w-full",children:[f.jsx("div",{className:"h-[128px] w-full",children:f.jsx("img",{src:(c=i==null?void 0:i.image)==null?void 0:c.path,alt:"logo",className:"object-contain size-full"})}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},J1=e=>{const{data:t,isPending:n}=En({queryKey:["news",e],queryFn:()=>Hk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eO=({className:e,featured_images:t,title:n,id:r,published_at:s})=>{var i;return f.jsx(Se,{to:`/news/${r}`,children:f.jsxs("article",{className:V("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[f.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h4",{children:s.slice(0,10).split("-").reverse().join(".")}),f.jsx(qw,{})]}),f.jsx("hr",{}),f.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:n})]}),f.jsx("img",{src:((i=t==null?void 0:t[0])==null?void 0:i.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},sM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=J1(e);return n?f.jsx(Jn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[e]}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(r=>m.createElement(eO,{...r,key:r.title}))})]})})},iM=({className:e})=>{const{t}=Nr("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(Ke,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((r,s)=>r.dropdown?f.jsx($o,{dropDownContent:r.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(tt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[r.text,f.jsx(Dv,{w:"40",h:"40",color:"white"})]})},s):f.jsx(Se,{to:r.link??"",target:r.blank?"_blank":"",children:f.jsx(tt,{variant:"teritary",size:"lg",className:"w-full !flex drop-shadow-sm px-2 shadow-md md:text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:r.text})},s))})})})},tO=()=>{const{t:e}=Nr("nav"),t=_e(i=>i.lang),n=Bo(i=>i.sheet),r=Bo(i=>i.setSheet),s=e("navigation",{returnObjects:!0});return f.jsxs(z0,{onOpenChange:()=>r(!n),open:n,children:[f.jsx(W0,{children:f.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),f.jsxs(rm,{className:"overflow-y-auto z-[100]",children:[f.jsx(H0,{}),f.jsxs(sm,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Se,{to:t===Ze.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[t]})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[t]})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:s.map(i=>i.drop?f.jsx($o,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(Se,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>r(!1),children:i.title},i.title))})]})]})},oM=()=>{const e=_e(r=>r.lang),{t}=Nr("nav"),n=t("navigation",{returnObjects:!0});return f.jsx("div",{className:"lg:h-[128px] h-20",children:f.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100]",children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden bg-background",children:f.jsxs(Ke,{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(s0,{}),f.jsx("h4",{className:"text-sm",children:{ru:"Ашхабад, Туркменистан",en:"Ashgabat, Turkmenistan",tm:"Aşgabat, Türkmenistan"}[e]})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(r=>r.drop?f.jsx($o,{color:"black",dropDownContent:r.dropDownContent,title:r.title},r.title):f.jsx(Se,{target:r.blank?"_blank":"",className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(a0,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(uh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(Ke,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Se,{to:"/",children:f.jsx(cm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(r=>r.drop?f.jsx($o,{dropDownContent:r.dropDownContent,title:r.title,color:"white"},r.title):f.jsx(Se,{className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(uh,{className:"lg:hidden",light:!0}),f.jsx(tO,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Se,{to:e===Ze.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90 h-12 w-fit",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[e]})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90 h-12 w-fit",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[e]})})]})]})})]})})},aM=()=>{const e=_e(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Mv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[f.jsx(cm,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(Se,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(e0,{className:"text-white"})}),f.jsx(Se,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(Se,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(Se,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:f.jsx("img",{src:"/x.svg"})})]})]}),f.jsx("hr",{className:"border-white/50"}),f.jsx("h5",{className:"text-base text-center normal text-white",children:{ru:"©2025 Все права защищены",en:"All rights reserved",tm:"Ähli hukuklar goralan"}[e]})]})})]})},Ke=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),cM=({title:e})=>f.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[f.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),f.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{Oj as $,uy as A,mO as B,tt as C,lA as D,pO as E,aM as F,dO as G,oM as H,gO as I,eP as J,Le as K,cO as L,cM as M,hO as N,XO as O,lt as P,ZO as Q,KO as R,ms as S,GO as T,QO as U,LO as V,Nr as W,Qp as X,FO as Y,Ke as Z,jj as _,YO as a,WO as a0,UO as a1,lO as a2,Jn as a3,En as a4,VO as a5,J1 as a6,eO as a7,BO as a8,zO as a9,IO as aa,Tn as ab,ga as ac,$O as ad,HO as ae,mc as af,Gp as ag,sO as ah,iO as ai,iM as b,V as c,eM as d,rM as e,nM as f,tM as g,JO as h,uO as i,f as j,sM as k,ml as l,zt as m,to as n,vt as o,fp as p,_R as q,gs as r,na as s,zs as t,_e as u,yt as v,fA as w,cy as x,ly as y,ph as z}; + «TurkmenTextile Expo-2025» – bu däp-dessurlary we innowasiýalary, önüm öndürijileri we sarp edijileri, Türkmenistany we dünýäni birleşdirýän platformadyr!`,data:[{nums:"10,000 m²",text:"Sergi meýdanyňky"},{nums:"10000+",text:"Geljek adamlaryň garaşylýan sany"},{nums:"100+",text:"30 ýurtdan gowurak eksponentler"},{nums:"80%",text:"Top-menejmentden gatnaşyjylar"}],button:"Hasabat",button2:"Katalog"}],Q1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["stats",e],queryFn:()=>$k(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eM=()=>{var l,u;const[e]=Tn(),t=_e(d=>d.lang),{t:n}=Nr("home"),{data:r,isPending:s}=Ex("1"),{data:i}=Q1(),o=(l=r==null?void 0:r.find(d=>d.key==="index_1"))==null?void 0:l.text,a=(u=r==null?void 0:r.find(d=>d.key==="index_2"))==null?void 0:u.text,c=yt(t);return s?f.jsx(Jn,{}):f.jsx("section",{className:"py-20",children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[f.jsxs("div",{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2 text-left",children:o}),f.jsx("div",{dangerouslySetInnerHTML:{__html:a||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),f.jsxs("div",{className:"flex w-full gap-8",children:[f.jsx(Se,{to:n("reportLink"),target:"_blank",className:"w-fit",children:f.jsx(tt,{children:$h[c].button})}),f.jsx(Se,{target:"_blank",to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf",children:f.jsx(tt,{className:"px-16",children:$h[c].button2})})]})]}),f.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),f.jsx("div",{ref:e,className:"embla overflow-hidden",children:f.jsx("div",{className:"flex embla__container items-center gap-6",children:i==null?void 0:i.map(d=>f.jsx(fS,{...d,className:"embla__slide flex-[0_0_288px]"},d.text))})})]})})},tM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=Sx();return n?f.jsx(Jn,{}):f.jsx("section",{className:"",children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 mb-10 text-center",children:al[yt(e)].title}),f.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((r,s)=>f.jsx(lm,{...r},s))})]})})},X1=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-1.png",title:"Myhmanhanalar, transfer, wizalar",btnText:"Ýol görkezijini ýüklemek",text:"Myhmanhanalara ýerleşmek, wiza goldawy, ulag we ekskursiýa meseleleri boýunça Siz ýol görkezijiden tanyşyp bilersiňiz",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"TurkmenTextile Expo 2026 serginiň meýilnamasy bilen tanyşmak",btnText:"Serginiň meýilnamasyny ýüklemeli",text:"Sergide oňat ýeri nädip saýlamaly? Sergi ekspozisiýasyny şowly ýerleşdirmegiň Siziň potensial müşderileriňizi çekmek boýunça mümkinçilikleriňizi has-da artdyrýandygyny Siz hemişe ýatda saklamalysyňyz.",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],nM=()=>{const[e,t]=Tn({align:"start"}),[n,r]=m.useState(0),s=_e(o=>o.lang),i=m.useCallback(o=>{t&&t.scrollTo(o)},[t]);return m.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),f.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:f.jsx(Ke,{children:f.jsxs("div",{ref:e,className:"embla ",children:[f.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:X1[yt(s)].data.map(o=>m.createElement(hS,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),f.jsx(wA,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Y1=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=En({queryKey:["sponsors",e],queryFn:()=>Kk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},rM=({className:e})=>{const[t]=Tn({loop:!0,align:"start",skipSnaps:!0,duration:75},[ga({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:r}=Y1(),{t:s}=Nr("home",{keyPrefix:"sponsors"});return r?f.jsx(Jn,{}):f.jsx("section",{className:V("md:py-20",e),children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsx("h2",{className:"h2",children:s("title")}),f.jsx("div",{ref:t,className:"embla overflow-hidden",children:f.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,c;return i.link?f.jsxs(Se,{target:"_blank",to:i.link,className:"bg-surface_container flex flex-col embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center min-h-[128px] w-full",children:[f.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):f.jsxs("div",{className:"bg-surface_container embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center minh-[128px] w-full",children:[f.jsx("div",{className:"h-[128px] w-full",children:f.jsx("img",{src:(c=i==null?void 0:i.image)==null?void 0:c.path,alt:"logo",className:"object-contain size-full"})}),f.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},J1=e=>{const{data:t,isPending:n}=En({queryKey:["news",e],queryFn:()=>Hk(e),select:({data:r})=>r.data});return{data:t,isPending:n}},eO=({className:e,featured_images:t,title:n,id:r,published_at:s})=>{var i;return f.jsx(Se,{to:`/news/${r}`,children:f.jsxs("article",{className:V("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[f.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h4",{children:s.slice(0,10).split("-").reverse().join(".")}),f.jsx(qw,{})]}),f.jsx("hr",{}),f.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:n})]}),f.jsx("img",{src:((i=t==null?void 0:t[0])==null?void 0:i.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},sM=()=>{const e=_e(r=>r.lang),{data:t,isPending:n}=J1(e);return n?f.jsx(Jn,{}):f.jsx("section",{className:V("md:mb-[120px] mb-20"),children:f.jsxs(Ke,{children:[f.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:{ru:"Новости",en:"News",tm:"Täzelikler"}[e]}),f.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(r=>m.createElement(eO,{...r,key:r.title}))})]})})},iM=({className:e})=>{const{t}=Nr("home"),{items:n}=t("buttons",{returnObjects:!0});return f.jsx("section",{className:V("",e),children:f.jsx(Ke,{children:f.jsx("div",{className:"grid lg:grid-cols-6 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((r,s)=>r.dropdown?f.jsx($o,{dropDownContent:r.items,triggerClassName:"w-full",className:"!w-full",children:f.jsxs(tt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[r.text,f.jsx(Dv,{w:"40",h:"40",color:"white"})]})},s):f.jsx(Se,{to:r.link??"",target:r.blank?"_blank":"",children:f.jsx(tt,{variant:"teritary",size:"lg",className:"w-full !flex drop-shadow-sm px-2 shadow-md md:text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:r.text})},s))})})})},tO=()=>{const{t:e}=Nr("nav"),t=_e(i=>i.lang),n=Bo(i=>i.sheet),r=Bo(i=>i.setSheet),s=e("navigation",{returnObjects:!0});return f.jsxs(z0,{onOpenChange:()=>r(!n),open:n,children:[f.jsx(W0,{children:f.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),f.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),f.jsxs(rm,{className:"overflow-y-auto z-[100]",children:[f.jsx(H0,{}),f.jsxs(sm,{className:"mt-16 flex flex-col gap-2",children:[f.jsx(Se,{to:t===Ze.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[t]})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[t]})})]}),f.jsx("hr",{className:"border-slate-500/20 my-8"}),f.jsx("div",{className:"flex flex-col gap-6",children:s.map(i=>i.drop?f.jsx($o,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):f.jsx(Se,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>r(!1),children:i.title},i.title))})]})]})},oM=()=>{const e=_e(r=>r.lang),{t}=Nr("nav"),n=t("navigation",{returnObjects:!0});return f.jsx("div",{className:"lg:h-[128px] h-20",children:f.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100]",children:[f.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden bg-background",children:f.jsxs(Ke,{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(s0,{}),f.jsx("h4",{className:"text-sm",children:{ru:"Ашхабад, Туркменистан",en:"Ashgabat, Turkmenistan",tm:"Aşgabat, Türkmenistan"}[e]})]}),f.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(r=>r.drop?f.jsx($o,{color:"black",dropDownContent:r.dropDownContent,title:r.title},r.title):f.jsx(Se,{target:r.blank?"_blank":"",className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(a0,{size:16,strokeWidth:"3px"}),f.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),f.jsx(uh,{className:"!text-on_surface"})]})]})}),f.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:f.jsxs(Ke,{className:"flex items-center justify-between ",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsx(Se,{to:"/",children:f.jsx(cm,{className:""})}),f.jsx("nav",{className:"lg:flex hidden items-center gap-3 xl:gap-6 text-white",children:n.slice(3,6).map(r=>r.drop?f.jsx($o,{dropDownContent:r.dropDownContent,title:r.title,color:"white"},r.title):f.jsx(Se,{className:"py-2",to:r.link||"",children:r.title},r.title))})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(uh,{className:"lg:hidden",light:!0}),f.jsx(tO,{})]}),f.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[f.jsx(Se,{to:e===Ze.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90 h-12 w-fit",children:{ru:"Официальная поддержка",en:"Official Support",tm:"Resmi goldaw"}[e]})}),f.jsx(Se,{to:"/become-sponsor",children:f.jsx(tt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90 h-12 w-fit",children:{ru:"Стать спонсором",en:"Become a sponsor",tm:"Hemaýatkär bolmak"}[e]})})]})]})})]})})},aM=()=>{const e=_e(t=>t.lang);return f.jsxs("footer",{children:[f.jsx(Mv,{}),f.jsx("div",{className:"py-5 bg-primary",children:f.jsxs(Ke,{className:"flex flex-col gap-6",children:[f.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[f.jsx(cm,{}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx(Se,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:f.jsx(e0,{className:"text-white"})}),f.jsx(Se,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:f.jsx("img",{src:"/inst.svg"})}),f.jsx(Se,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:f.jsx("img",{src:"/in.svg"})}),f.jsx(Se,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:f.jsx("img",{src:"/x.svg"})})]})]}),f.jsx("hr",{className:"border-white/50"}),f.jsx("h5",{className:"text-base text-center normal text-white",children:{ru:"©2025 Все права защищены",en:"All rights reserved",tm:"Ähli hukuklar goralan"}[e]})]})})]})},Ke=({className:e,children:t})=>f.jsx("div",{className:V("w-full mx-auto max-w-[1240px] px-4",e),children:t}),cM=({title:e})=>f.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[f.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),f.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{Oj as $,uy as A,mO as B,tt as C,lA as D,pO as E,aM as F,dO as G,oM as H,gO as I,eP as J,Le as K,cO as L,cM as M,hO as N,XO as O,lt as P,ZO as Q,KO as R,ms as S,GO as T,QO as U,LO as V,Nr as W,Qp as X,FO as Y,Ke as Z,jj as _,YO as a,WO as a0,UO as a1,lO as a2,Jn as a3,En as a4,VO as a5,J1 as a6,eO as a7,BO as a8,zO as a9,IO as aa,Tn as ab,ga as ac,$O as ad,HO as ae,mc as af,Gp as ag,sO as ah,iO as ai,iM as b,V as c,eM as d,rM as e,nM as f,tM as g,JO as h,uO as i,f as j,sM as k,ml as l,zt as m,to as n,vt as o,fp as p,_R as q,gs as r,na as s,zs as t,_e as u,yt as v,fA as w,cy as x,ly as y,ph as z}; diff --git a/dist/index.html b/dist/index.html index 477be94..6bba224 100644 --- a/dist/index.html +++ b/dist/index.html @@ -66,9 +66,9 @@ })(window, document, "script", "dataLayer", "GTM-NK394LVK"); Turkmen Textile - + - + diff --git a/src/components/shared/home/home-about.tsx b/src/components/shared/home/home-about.tsx index b809d8d..3c223d1 100644 --- a/src/components/shared/home/home-about.tsx +++ b/src/components/shared/home/home-about.tsx @@ -41,7 +41,7 @@ export const HomeAbout: FC = () => {
- @@ -49,7 +49,7 @@ export const HomeAbout: FC = () => { target="_blank" to="https://turkmentextile.turkmenexpo.com/app/storage/app/media/Catalogue/catalogue.pdf" > -