PageSourceSearch

https://adipa.mx/_next/static/chunks/04srw8jke0s.s.js?dpl=dpl_H3UW7TTmSRMxbNf5NgV7TeeiU5XF

js adipa.mx collected 2026-10-08 03:28:08 UTC 133,503 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,555349,e=>{"use strict";var t=e.i(946956),a=e.i(523394);let s=0;function i(e=1){s=e}function r(){(0,t.c)("[nuqs] Aborting queues"),a.t.abortAll(),a.n.abort().forEach(e=>a.t.queuedQuerySync.emit(e))}var o=e.i(498337),n=e.i(340922);function l(){i(0),r()}function c(){!function(e=r){(s=Math.max(0,s-1))>0||e()}(()=>{queueMicrotask(r)})}function d(){return(0,o.useEffect)(()=>(!function(){var e;if(e="next/app","u"<typeof history||(history.nuqs?.version&&"2.8.9"!==history.nuqs.version?(console.error((0,t.s)(409),history.nuqs.version,"2.8.9",e),!0):!!history.nuqs?.adapters?.includes(e)))return;let a=history.replaceState,s=history.pushState;history.replaceState=function(e,t,s){return c(),a.call(history,e,t,s)},history.pushState=function(e,t,a){return c(),s.call(history,e,t,a)},history.nuqs=history.nuqs??{version:"2.8.9",adapters:[]},history.nuqs.adapters.push("next/app")}(),window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)),[]),null}let u=(0,t.n)(function(){let e=(0,n.useRouter)(),[a,s]=(0,o.useOptimistic)((0,n.useSearchParams)());return{searchParams:a,updateUrl:(0,o.useCallback)((a,r)=>{(0,o.startTransition)(()=>{r.shallow||s(a);let o=function(e){let{origin:a,pathname:s,hash:i}=location;return a+s+(0,t.o)(e)+i}(a);(0,t.c)("[nuqs next/app] Updating url: %s",o);let n="push"===r.history?history.pushState:history.replaceState;i(3),n.call(history,null,"",o),r.scroll&&window.scrollTo(0,0),r.shallow||e.replace(o,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!0}});e.s(["NuqsAdapter",0,function({children:e,...t}){return(0,o.createElement)(u,{...t,children:[(0,o.createElement)(o.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,o.createElement)(d)}),e]})}],555349)},546683,e=>{"use strict";let t,a,s,i,r,o,n;var l=e.i(660698);e.i(437523);var c={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},d=new class{#e=c;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},u="u"<typeof window||"Deno"in globalThis;function p(){}function h(e,t){return"function"==typeof e?e(t):e}function m(e,t){let{type:a="all",exact:s,fetchStatus:i,predicate:r,queryKey:o,stale:n}=e;if(o){if(s){if(t.queryHash!==b(o,t.options))return!1}else if(!g(t.queryKey,o))return!1}if("all"!==a){let e=t.isActive();if("active"===a&&!e||"inactive"===a&&e)return!1}return("boolean"!=typeof n||t.isStale()===n)&&(!i||i===t.state.fetchStatus)&&(!r||!!r(t))}function f(e,t){let{exact:a,status:s,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(a){if(x(t.options.mutationKey)!==x(r))return!1}else if(!g(t.options.mutationKey,r))return!1}return(!s||t.state.status===s)&&(!i||!!i(t))}function b(e,t){return(t?.queryKeyHashFn||x)(e)}function x(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,a)=>(e[a]=t[a],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(a=>g(e[a],t[a]))}var y=Object.prototype.hasOwnProperty;function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!j(e))return!1;let t=e.constructor;if(void 0===t)return!0;let a=t.prototype;return!!j(a)&&!!a.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e,t,a=0){let s=[...e,t];return a&&s.length>a?s.slice(1):s}function A(e,t,a=0){let s=[t,...e];return a&&s.length>a?s.slice(0,-1):s}var T=Symbol();function N(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==T?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var S=(t=[],a=0,s=e=>{e()},i=e=>{e()},r=function(e){setTimeout(e,0)},{batch:e=>{let o;a++;try{o=e()}finally{let e;--a||(e=t,t=[],e.length&&r(()=>{i(()=>
1{e.forEach(e=>{s(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{a?t.push(e):r(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{r=e}}),k=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_=new class extends k{#a;#s;#i;constructor(){super(),this.#i=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#s||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#i=e,this.#s?.(),this.#s=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#a!==e&&(this.#a=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#a?this.#a:globalThis.document?.visibilityState!=="hidden"}},E=new class extends k{#r=!0;#s;#i;constructor(){super(),this.#i=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#s||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#i=e,this.#s?.(),this.#s=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}},O=(n=()=>u,{isServer:()=>n(),setIsServer(e){n=e}});function F(e){return Math.min(1e3*2**e,3e4)}function P(e){return(e??"online")!=="online"||E.isOnline()}var L=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function R(e){let t,a=!1,s=0,i=function(){let e,t,a=new Promise((a,s)=>{e=a,t=s});function s(e){Object.assign(a,e),delete a.resolve,delete a.reject}return a.status="pending",a.catch(()=>{}),a.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},a.reject=e=>{s({status:"rejected",reason:e}),t(e)},a}(),r=()=>_.isFocused()&&("always"===e.networkMode||E.isOnline())&&e.canRun(),o=()=>P(e.networkMode)&&e.canRun(),n=e=>{"pending"===i.status&&(t?.(),i.resolve(e))},l=e=>{"pending"===i.status&&(t?.(),i.reject(e))},c=()=>new Promise(a=>{t=e=>{("pending"!==i.status||r())&&a(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===i.status&&e.onContinue?.()}),u=()=>{let t;if("pending"!==i.status)return;let o=0===s?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(n).catch(t=>{if("pending"!==i.status)return;let o=e.retry??3*!O.isServer(),n=e.retryDelay??F,p="function"==typeof n?n(s,t):n,h=!0===o||"number"==typeof o&&s<o||"function"==typeof o&&o(s,t);a||!h?l(t):(s++,e.onFail?.(s,t),new Promise(e=>{d.setTimeout(e,p)}).then(()=>r()?void 0:c()).then(()=>{a?l(t):u()}))})};return{promise:i,status:()=>i.status,cancel:t=>{if("pending"===i.status){let a=new L(t);l(a),e.onCancel?.(a)}},continue:()=>(t?.(),i),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1},canStart:o,start:()=>(o()?u():c().then(u),i)}}var q=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#o=d.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(O.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#o&&(d.clearTimeout(this.#o),this.#o=void 0)}};function I(e,{pages:t,pageParams:a}){let s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,a[s],a):void 0}var $=class extends q{#n;#l;#c;#d;#u;#p;#h;#m;constructor(e){super(),this.#m=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#d=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=z(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#n}get promise(){return this.#p?.promise}setOptions(e){if(this.options={...this.#h,...e},e?._type&&(this.#n=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=z(this.options);void 0!==e.data&&(this.setState(M(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,t){var a,s;let i=(a=this.state.data,"function"==typeof(s=this.options).structuralSharing?s.structuralSharing(a,e):!1!==s.structuralSharing?function e(t,a,s=0){if(t===a)return t;if(s>500)return a;let i=v(t)&&v(a);if(!i&&!(w(t)&&w(a)))return a;let r=(i?t:Object.keys(t)).length,o=i?a:Object.keys(a),n=o.length,l=i?Array(n):{},c=0;for(let d=0;d<n;d++){let n=i?d:o[d],u=t[n],p=a[n];if(u===p){l[n]=u,(i?d<r:y.call(t,n))&&c++;continue}if(null===u||null===p||"object"!=typeof u||"object"!=typeof p){l[n]=p;continue}let h=e(u,p,s+1);l[n]=h,h===u&&c++}return r===n&&c===r?t:l}(a,e):e);return this.#f({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e){this.#f({type:"setState",state:e})}cancel(e){let t=this.#p?.promise;return this.#p?.cancel(e),t?t.then(p).catch(p):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>{var t;return!1!==(t=e.options.enabled,"function"==typeof t?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===T||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===h(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#p?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#p?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#p&&(this.#m||this.#b()?this.#p.cancel({revert:!0}):this.#p.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#b(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,t){var a;let s;if("idle"!==this.state.fetchStatus&&this.#p?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#p)return this.#p.continueRetry(),this.#p.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#m=!0,i.signal)})},o=()=>{let e,a=N(this.options,t),s=(r(e={client:this.#u,queryKey:this.queryKey,meta:this.meta}),e);return(this.#m=!1,this.options.persister)?this.options.persister(a,s,this):a(s)},n=(r(s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:o}),s),l="infinite"===this.#n?(a=this.options.pages,{onFetch:(e,t)=>{let s=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,r=e.state.data?.pages||[],o=e.state.data?.pageParams||[],n={pages:[],pageParams:[]},l=0,c=async()=>{let t=!1,c=N(e.options,e.fetchOptions),d=async(a,s,i)=>{if(t)return Promise.reject(e.signal.reason);if(null==s&&a.pages.length)return Promise.resolve(a);let r=(()=>{var a,r;let o,n,l={client:e.client,queryKey:e.queryKey,pageParam:s,direction:i?"backward":"forward",meta:e.options.meta};return a=()=>e.signal,r=()=>t=!0,n=!1,Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??=a(),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),l})(),o=await c(r),{maxPages:n}=e.options,l=i?A:C;return{pages:l(a.pages,o,n),pageParams:l(a.pageParams,s,n)}};if(i&&r.length){let e="backward"===i,t={pages:r,pageParams:o},a=(e?function(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}:I)(s,t);n=await d(t,a,e)}else{let e=a??r.length;do{let e=0===l?o[0]??s.initialPageParam:I(s,n);if(l>0&&null==e)break;n=await d(n,e),l++}while(l<e)}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=c}}):this.options.behavior;l?.onFetch(n,this),this.#c=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==n.fetchOptions?.meta)&&this.#f({type:"fetch",meta:n.fetchOptions?.meta}),this.#p=R({initialPromise:t?.initialPromise,fn:n.fetchFn,onCancel:e=>{e instanceof L&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:n.options.retry,retryDelay:n.options.retryDelay,networkMode:n.options.networkMode,canRun:()=>!0});try{let e=await this.#p.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof L){if(e.silent)return this.#p.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#f({type:"error",error:e}),this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#f(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var a;return{...t,...(a=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P(this.options.networkMode)?"fetching":"paused",...void 0===a&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":let s={...t,...M(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?s:void 0,s;case"error":let i=e.error;
vendor: 4,668 bytes, line 1
1return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),S.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#d.notify({query:this,type:"updated",action:e})})}};function M(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function z(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,a=void 0!==t,s=a?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var D=class extends k{constructor(e={}){super(),this.config=e,this.#x=new Map}#x;build(e,t,a){let s=t.queryKey,i=t.queryHash??b(s,t),r=this.get(i);return r||(r=new $({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(s)}),this.add(r)),r}add(e){this.#x.has(e.queryHash)||(this.#x.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#x.get(e.queryHash);t&&(e.destroy(),t===e&&this.#x.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){S.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#x.get(e)}getAll(){return[...this.#x.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>m(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>m(e,t)):t}notify(e){S.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){S.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){S.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},U=class extends q{#u;#g;#y;#p;constructor(e){super(),this.#u=e.client,this.mutationId=e.mutationId,this.#y=e.mutationCache,this.#g=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#g.includes(e)||(this.#g.push(e),this.clearGcTimeout(),this.#y.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#g=this.#g.filter(t=>t!==e),this.scheduleGc(),this.#y.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#g.length||("pending"===this.state.status?this.scheduleGc():this.#y.remove(this))}continue(){return this.#p?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#f({type:"continue"})},a={client:this.#u,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#p=R({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#y.canRun(this)});let s="pending"===this.state.status,i=!this.#p.canStart();try{if(s)t();else{this.#f({type:"pending",variables:e,isPaused:i}),this.#y.config.onMutate&&await this.#y.config.onMutate(e,this,a);let t=await this.options.onMutate?.(e,a);t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:i})}let r=await this.#p.start();return await this.#y.config.onSuccess?.(r,e,this.state.context,this,a),await this.options.onSuccess?.(r,e,this.state.context,a),await this.#y.config.onSettled?.(r,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(r,null,e,this.state.context,a),this.#f({type:"success",data:r}),r}catch(t){try{await this.#y.config.onError?.(t,e,this.state.context,this,a)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,a)}catch(e){Promise.reject(e)}try{await this.#y.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,a)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,a)}catch(e){Promise.reject(e)}throw this.#f({type:"error",error:t}),t}finally{this.#y.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),S.batch(()=>{this.#g.forEach(t=>{t.onMutationUpdate(e)}),this.#y.notify({mutation:this,type:"updated",action:e})})}},H=class extends k{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#w=new Map,this.#j=0}#v;#w;#j;build(e,t,a){let s=new U({client:e,mutationCache:this,mutationId:++this.#j,options:e.defaultMutationOptions(t),state:a});return this.add(s),s}add(e){this.#v.add(e);let t=V(e);if("string"==typeof t){let a=this.#w.get(t);a?a.push(e):this.#w.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=V(e);if("string"==typeof t){let a=this.#w.get(t);if(a)if(a.length>1){let t=a.indexOf(e);-1!==t&&a.splice(t,1)}else a[0]===e&&this.#w.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=V(e);if("string"!=typeof t)return!0;{let a=this.#w.get(t),s=a?.find(e=>"pending"===e.state.status);return!s||s===e}}runNext(e){let t=V(e);if("string"!=typeof t)return Promise.resolve();{let a=this.#w.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return a?.continue()??Promise.resolve()}}clear(){S.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#w.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>f(t,e))}findAll(e={}){return this.getAll().filter(t=>f(e,t))}notify(e){S.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return S.batch(()=>Promise.all(e.map(e=>e.continue().catch(p))))}};function V(e){return e.options.scope?.id}var G=class{#C;#y;#h;#A;#T;#N;#S;#k;constructor(e={}){this.#C=e.queryCache||new D,this.#y=e.mutationCache||new H,this.#h=e.defaultOptions||{},this.#A=new Map,this.#T=new Map,this.#N=0}mount(){this.#N++,1===this.#N&&(this.#S=_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#k=E.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#N--,0===this.#N&&(this.#S?.(),this.#S=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#y.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),a=this.#C.build(this,t),s=a.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(h(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,a){let s=this.defaultQueryOptions({queryKey:e}),i=this.#C.get(s.queryHash),r=i?.state.data,o="function"==typeof t?t(r):t;if(void 0!==o)return this.#C.build(this,s).setData(o,{...a,manual:!0})}setQueriesData(e,t,a){return S.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,a)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){let t=this.#C;S.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let a=this.#C;return S.batch(()=>(a.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let a={revert:!0,...t};return Promise.all(S.batch(()=>this.#C.findAll(e).map(e=>e.cancel(a)))).then(p).catch(p)}invalidateQueries(e,t={}){return S.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let a={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(S.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,a);return a.throwOnError||(t=t.catch(p)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(p)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let a=this.#C.build(this,t);return a.isStaleByTime(h(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(p).catch(p)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(p).catch(p)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return E.isOnline()?this.#y.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#y}getDefaultOptions(){return this.#h}setDefaultOptions(e){this.#h=e}setQueryDefaults(e,t){this.#A.set(x(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#A.values()],a={};return t.forEach(t=>{g(e,t.queryKey)&&Object.assign(a,t.defaultOptions)}),a}setMutationDefaults(e,t){this.#T.set(x(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#T.values()],a={};return t.forEach(t=>{g(e,t.mutationKey)&&Object.assign(a,t.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#h.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=b(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===T&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#h.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#y.clear()}},Q=e.i(498337),K=Q.createContext(void 0),B=({client:e,children:t})=>(Q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,l.jsx)(K.Provider,{value:e,children:t})),X=e.i(360112);e.s(["AppProviders",0,({children:e})=>{let[t]=(0,Q.useState)(()=>new G({defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:1}}}));return(0,l.jsxs)(B,{client:t,children:[e,(0,l.jsx)(X.Toaster,{richColors:!0,position:"bottom-right",toastOptions:{className:"font-sans",classNames:{actionButton:"!bg-brand !text-white !font-semibold"}}})]})}],546683)},438405,e=>{"use strict";var t=e.i(340922),a=e.i(498337);e.s(["ScrollToTopOnNavigate",0,()=>{let e=(0,t.usePathname)(),s=(0,a.useRef)(e);return(0,a.useEffect)(()=>{s.current===e||(s.current=e,window.location.hash||window.scrollTo({top:0,left:0,behavior:"instant"}))},[e]),null}])},695555,e=>{"use strict";e.s(["formatWallClock",0,(e,t)=>{let a=Object.fromEntries(new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(e).filter(({type:e})=>"literal"!==e).map(({type:e,value:t})=>[e,t]));return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}`}])},300375,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return r}};for(var i in s)Object.defineProperty(a,i,{enumerable:!0,get:s[i]});let r="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esMo
1dule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},589651,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={default:function(){return y},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return x}};for(var i in s)Object.defineProperty(a,i,{enumerable:!0,get:s[i]});let r=e.r(481258),o=e.r(744066),n=e.r(660698),l=r._(e.r(922594)),c=o._(e.r(498337)),d=e.r(260906),u=e.r(901868),p=e.r(300375),h=new Map,m=new Set,f=e=>{let{src:t,id:a,onLoad:s=()=>{},onReady:i=null,dangerouslySetInnerHTML:r,children:o="",strategy:n="afterInteractive",onError:c,stylesheets:d}=e,p=a||t;if(p&&m.has(p))return;if(h.has(t)){m.add(p),h.get(t).then(s,c);return}let f=()=>{i&&i(),m.add(p)},b=document.createElement("script"),x=new Promise((e,t)=>{b.addEventListener("load",function(t){e(),s&&s.call(this,t),f()}),b.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});r?(b.innerHTML=r.__html||"",f()):o?(b.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",f()):t&&(b.src=t,h.set(t,x)),(0,u.setAttributesFromProps)(b,e),"worker"===n&&b.setAttribute("type","text/partytown"),b.setAttribute("data-nscript",n),d&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=e,t.appendChild(a)})}})(d),document.body.appendChild(b)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>f(e))}):f(e)}function x(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function g(e){let{id:t,src:a="",onLoad:s=()=>{},onReady:i=null,strategy:r="afterInteractive",onError:o,stylesheets:u,...h}=e,{updateScripts:b,scripts:x,getIsSsr:g,appDir:y,nonce:v}=(0,c.useContext)(d.HeadManagerContext);v=h.nonce||v;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||a;w.current||(i&&e&&m.has(e)&&i(),w.current=!0)},[i,t,a]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===r)f(e);else"lazyOnload"===r&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>f(e))}));j.current=!0}},[e,r]),("beforeInteractive"===r||"worker"===r)&&(b?(x[r]=(x[r]||[]).concat([{id:t,src:a,onLoad:s,onReady:i,onError:o,...h,nonce:v}]),b(x)):g&&g()?m.add(t||a):g&&!g()&&f({...e,nonce:v})),y){if(u&&u.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===r)if(!a)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,n.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...h,id:t}])})`}});else return l.default.preload(a,h.integrity?{as:"script",integrity:h.integrity,nonce:v,crossOrigin:h.crossOrigin}:{as:"script",nonce:v,crossOrigin:h.crossOrigin}),(0,n.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([a,{...h,id:t}])})`}});"afterInteractive"===r&&a&&l.default.preload(a,h.integrity?{as:"script",integrity:h.integrity,nonce:v,crossOrigin:h.crossOrigin}:{as:"script",nonce:v,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},519508,(e,t,a)=>{t.exports=e.r(589651)},115452,e=>{"use strict";var t=e.i(660698),a=e.i(340922),s=e.i(498337),i=e.i(359799),r=e.i(109794);let o=()=>{let e=(0,i.useAuth)(e=>e.user?.id??null),t=(0,r.useWishlist)(e=>e.replaceAll),a=(0,r.useWishlist)(e=>e.clear),o=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let s=o.current;if(o.current=e,!e){s&&a();return}let i=new AbortController;return fetch("/api/account/favorites",{signal:i.signal}).then(e=>e.ok?e.json():null).then(e=>{Array.isArray(e?.ids)&&t(e.ids.map(String))}).catch(()=>{}),()=>i.abort()},[e,t,a]),null};var n=e.i(112105),l=e.i(59274);function c(e){if(e<=0)return null;let t=Math.floor(e/1e3),a=Math.floor(t/86400),s=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),r=e=>String(e).padStart(2,"0"),o=`${r(s)}:${r(i)}:${r(t%60)}`;return a>0?`${a}d ${o}`:o}function d(e){return`adipa:campana:${e}`}function u({campaignId:e,headline:a,subtitle:i,badgeLabel:r,stripeColors:o,coupon:p,products:h,ctaLabel:m,dismissLabel:f="Ahora no",legal:b,pathname:x,enabled:g=!1,excludedPaths:y=[],cooldownDays:v=1,delayMs:w=12e3,maxPerSession:j=1,onView:C,onAccept:A,onCopyCoupon:T,onDismiss:N}
1){let[S,k]=(0,s.useState)(!1),[_,E]=(0,s.useState)(!1),[O,F]=(0,s.useState)(new Set),P=(0,s.useRef)(!1),L=function(e){let[t,a]=(0,s.useState)(()=>e?c(new Date(e).getTime()-Date.now()):null);return(0,s.useEffect)(()=>{if(!e)return;let t=new Date(e).getTime(),s=()=>a(c(t-Date.now()));s();let i=window.setInterval(s,1e3);return()=>window.clearInterval(i)},[e]),t}(p?.expiresAt),R=g||(0,n.isTestModeActive)();if((0,s.useEffect)(()=>{if(!R||y.some(e=>x.startsWith(e))||function(e,t){try{let a=Number(window.localStorage.getItem(d(e))??0);return a>0&&Date.now()-a<864e5*t}catch{return!1}}(e,v)||!(0,n.hasSessionBudget)(j))return;let t=window.setTimeout(()=>{if((0,n.hasSessionBudget)(j)){try{window.localStorage.setItem(d(e),String(Date.now()))}catch{}(0,n.consumeSessionBudget)(`campana:${e}`),k(!0)}},w);return()=>window.clearTimeout(t)},[R,e,x,y,v,w,j]),(0,s.useEffect)(()=>{S&&!P.current&&(P.current=!0,C?.({campaignId:e}))},[S,e,C]),!S)return null;let q=()=>{k(!1),N?.({campaignId:e})},I=e=>F(t=>{let a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a}),$=h??[],M=$.length>0&&O.size===$.length;return(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("button",{type:"button","aria-label":"Cerrar",className:"bg-adipa-scrim absolute inset-0 cursor-default",onClick:q}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":`campana-${e}`,className:`bg-adipa-surface shadow-adipa-card rounded-adipa-lg relative flex max-h-[92vh] w-full flex-col overflow-hidden ${$.length?"max-w-2xl":"max-w-md"}`,children:[o?.length?(0,t.jsx)("div",{"aria-hidden":"true",className:"flex h-1",children:o.map(e=>(0,t.jsx)("span",{className:"flex-1",style:{background:e}},e))}):null,(0,t.jsxs)("div",{className:"from-adipa-text-primary via-adipa-primary to-cyan relative bg-linear-to-br p-6 pb-5 text-center",children:[(0,t.jsx)("button",{type:"button","aria-label":"Cerrar",onClick:q,className:"rounded-adipa-full duration-adipa-fast absolute end-4 top-4 flex h-8 w-8 items-center justify-center bg-white/15 text-white transition-colors hover:bg-white/30",children:(0,t.jsx)(l.X,{className:"h-4 w-4"})}),r?(0,t.jsx)("span",{className:"rounded-adipa-full text-adipa-cart-meta mb-2.5 inline-flex items-center gap-1.5 border border-white/30 bg-white/15 px-3 py-1 font-bold tracking-widest text-white uppercase",children:r}):null,(0,t.jsx)("h2",{id:`campana-${e}`,className:"text-2xl leading-tight font-bold text-white",children:a}),i?(0,t.jsx)("p",{className:"text-adipa-course-teacher mt-1.5 text-white/85",children:i}):null]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto p-6",children:[p?(0,t.jsxs)("div",{className:"border-adipa-primary bg-adipa-surface-muted rounded-adipa-md flex items-center justify-between gap-3 border border-dashed p-4",children:[(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-adipa-text-secondary text-adipa-cart-meta block font-bold tracking-widest uppercase",children:"Tu cupón"}),(0,t.jsx)("span",{className:"text-adipa-primary block font-mono text-xl font-bold tracking-wider",children:p.code})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{p&&(navigator.clipboard?.writeText(p.code).catch(()=>void 0),E(!0),T?.({campaignId:e,code:p.code}))},className:"border-adipa-primary text-adipa-primary hover:bg-adipa-surface-lavender rounded-adipa-md duration-adipa-fast text-adipa-course-teacher shrink-0 border px-3 py-2 font-semibold transition-colors",children:_?"Copiado":"Copiar"})]}):null,p?.validUntilLabel||L?(0,t.jsxs)("p",{className:"text-adipa-text-secondary text-adipa-course-teacher mt-3 flex flex-wrap items-center justify-center gap-2",children:[p?.validUntilLabel?(0,t.jsx)("span",{children:p.validUntilLabel}):null,L?(0,t.jsx)("span",{className:"bg-adipa-primary text-adipa-primary-foreground rounded-adipa-md px-2.5 py-1 font-mono font-bold",children:L}):null]}):null,$.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-5 mb-3 flex items-baseline justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-adipa-text-primary text-adipa-course-teacher font-semibold",children:"Seleccionados para ti"}),(0,t.jsx)("button",{type:"button",onClick:()=>F(M?new Set:new Set($.map(e=>e.id))),className:"text-adipa-primary hover:text-adipa-primary-hover duration-adipa-fast text-adipa-cart-price shrink-0 font-semibold transition-colors",children:M?"Quitar todos":"Agregar todos"})]}),(0,t.jsx)("ul",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:$.map(e=>(0,t.jsx)(n.PopupProductCard,{item:e,checked:O.has(e.id),onToggle:I},e.id))})]}):null]}),(0,t.jsxs)("div",{className:"p-6 pt-0",children:[m?(0,t.jsx)("button",{type:"button",onClick:()=>A?.({campaignId:e,productIds:[...O]}),disabled:$.length>0&&0===O.size,className:"bg-adipa-primary text-adipa-primary-foreground hover:bg-adipa-primary-hover duration-adipa-fast rounded-adipa-md w-full px-4 py-3.5 text-base font-semibold transition-colors disabled:cursor-not-allowed disabled:opacity-40",children:m}):null,(0,t.jsx)("button",{type:"button",onClick:q,className:"text-adipa-text-primary hover:text-adipa-primary duration-adipa-fast mt-3 block w-full text-center text-base font-semibold transition-colors",children:f}),b?(0,t.jsx)("p",{className:"text-adipa-text-secondary text-adipa-cart-meta mt-2.5 text-center leading-relaxed",children:b}):null]})]})]})}let p={id:"agradecimiento-mx-2026",label:"Agradecimiento MX",byCountry:{MX:{startsAt:"2026-09-23T08:00",endsAt:"2026-09-24T00:00",coupons:{title:"Gracias por ser parte de nuestra comunidad",subtitle:"Tras la adquisición de nuestra universidad en México, queremos agradecerte por ser parte de la comunidad que está transformando la formación en salud mental en Latinoamérica. Como regalo especial por tiempo limitado, te entregamos un Cupón Flash:",items:[{code:"ADIPA-UPRADO",description:""}
1],bonus:{label:"Úsalo para obtener:",tiers:[{condition:"Cursos y sesiones magistrales",reward:"$100 MXN OFF"},{condition:"Diplomados, acreditaciones, especializaciones y postítulos",reward:"$1,000 MXN OFF"}]}},windows:[{startsAt:"2026-09-23T08:00",endsAt:"2026-09-24T00:00",ribbon:{text:"🎉¡Sigamos creciendo juntos! Te regalamos un cupón exclusivo",bg_color:"#2CB7FF",text_color:"#F3F4FF",cta_text:"aquí"},opensCoupons:!0}]}},devStates:[{id:"agradecimiento-mx-2026-cupon",label:"Cupón flash",info:"El 23 de 08:00 a 23:59 (CDMX): huincha celeste en todo el sitio, abre el modal del cupón ADIPA-UPRADO.",at:"2026-09-23T18:00:00Z"}]},h={bg_color:"#F61710",text_color:"#F3F4FF"},m="/cursos",f={text:"Este Amor y Amistad, el regalo es para ti.",...h,href:m,cta_text:"¡Ver ofertas!"},b={text:"Haz match con nuestros programas: desde 20% OFF 🎉",...h},x={text:"⏰ Solo por hoy, tienes un cupón disponible",...h,cta_text:"¡Aquí!"},g={text:"Aprovecha las ofertas de Amor y Amistad",...h,href:m,cta_text:"¡Aquí!"},y={id:"amor-y-amistad-co-2026",label:"Amor y Amistad CO",byCountry:{CO:{startsAt:"2026-09-14T08:00",endsAt:"2026-09-21T23:59",catalogTheme:"amor-mosaic",heroOverride:{caption:"Este Amor y Amistad, el regalo es para ti 💗",title:"Disfruta desde **20% OFF**",ctaLabel:"¡Ver programas!",ctaHref:m},catalogHeader:{title:"Haz match con tu próxima formación",subtitle:"Este Amor y Amistad, disfruta desde 20% OFF en cursos, diplomados y acreditaciones en psicología y salud mental, y recibe un e-book de regalo."},coupons:{title:"¡Úsalo antes de que se vaya!",frame:"envelope",reveal:{title:"¡Felicidades!",subtitle:"Este es tu cupón:"},items:[{code:"AMORYAMISTAD-2026",description:""}],bonus:{label:"Úsalo para obtener:",tiers:[{condition:"Cursos y sesiones magistrales",reward:"$20.000 COP de descuento"},{condition:"Diplomados, acreditaciones y postítulos",reward:"$100.000 COP de descuento"}]}},countdown:{from:"2026-09-21T00:00",deadline:"2026-09-21T23:59:00-05:00",label:"El 20% OFF termina en:",ctaLabel:"Ver ofertas",ctaHref:m},windows:[{startsAt:"2026-09-14T08:00",endsAt:"2026-09-16T00:00",theme:"amor-sky",ribbon:f,catalogRibbon:b},{startsAt:"2026-09-16T00:00",endsAt:"2026-09-17T00:00",theme:"amor-gift",heroOverride:{caption:"Tienes un regalo esperándote",title:"Haz clic sobre tu regalo y ábrelo",ctaLabel:"¡Solo por hoy!",ctaAction:"coupons"},ribbon:x,homeRibbon:g,opensCoupons:!0},{startsAt:"2026-09-17T00:00",endsAt:"2026-09-21T23:59",theme:"amor-sky",ribbon:f,catalogRibbon:b}]}},devStates:[{id:"amor-y-amistad-co-2026-ofertas",label:"Ofertas",info:"El 14, 15 y del 17 al 21: hero del 20% OFF, huincha de ofertas (otra en /cursos) y header del catálogo.",at:"2026-09-15T15:00:00Z"},{id:"amor-y-amistad-co-2026-cupon",label:"Cupón",info:"El 16: hero del regalo, huincha de ofertas en el home y la del cupón AMORYAMISTAD-2026 en el resto del sitio.",at:"2026-09-16T15:00:00Z"},{id:"amor-y-amistad-co-2026-cierre",label:"Cierre",info:"El 21: la misma huincha de ofertas más la cuenta regresiva inferior hasta las 23:59.",at:"2026-09-21T15:00:00Z"}]},v={AR:"2026-08-31T23:59:00-03:00",CL:"2026-08-31T23:59:00-04:00",CO:"2026-08-31T23:59:00-05:00",MX:"2026-08-31T23:59:00-06:00"},w=[{condition:"Compras bajo $100.000",reward:"$5.000 de descuento"},{condition:"Compras entre $100.000 y $199.999",reward:"$15.000 de descuento"},{condition:"Compras desde $200.000",reward:"$30.000 de descuento"}],j={id:"aniversario-globos",label:"Aniversario · Globos",info:"Gradiente de marca con rayos y globos. Huincha amarilla, hero del home y hero de /cursos.",wpFields:{promotional_text:"🎉 ¡Llegó nuestro aniversario! Desde 20% de descuento y hasta 12 cuotas sin interés",color_bg_huincha:"#FFC728",color_text_huincha:"#091E42",activar_infotimer:!0,titulo_info_timer:"La semana de aniversario termina en:",button_info_timer:"Ver programas",activar_modal_cupones:!0},front:{id:"aniversario-adipa-6",theme:"anniversary-balloons",ctaHref:"/cursos",ribbonFallback:{promotional_text:"🎉 Adipa cumple 6 años: desde 20% de descuento en programas seleccionados",color_bg_huincha:"#FFC728",color_text_huincha:"#091E42"}
1,countdownFallback:{titulo_info_timer:"La semana de aniversario termina en:",button_info_timer:"Ver programas"},deadlineByCountry:v,heroOverride:{caption:"¡Vive una gran experiencia!",title:"Alcanza un nuevo nivel de Aprendizaje con ADIPA",ctaLabel:"Ver todos los cursos",ctaHref:"/cursos"},coupons:{title:"¡Tu cupón de aniversario está aquí! 🎉",items:[{code:"ANIVERSARIO-2026",description:""}]},bonusTitle:"Mientras mayor sea el total de tu carrito, mayor es tu descuento",bonusTiersByCountry:{AR:w,CL:w,CO:[{condition:"Compras bajo $350.000",reward:"$20.000 de descuento"},{condition:"Compras entre $350.000 y $799.999",reward:"$50.000 de descuento"},{condition:"Compras desde $800.000",reward:"$100.000 de descuento"}],MX:[{condition:"Compras bajo $1.500",reward:"$100 de descuento"},{condition:"Compras entre $1.500 y $4.999",reward:"$400 de descuento"},{condition:"Compras desde $5.000",reward:"$1.000 de descuento"}]},catalogHeader:{title:"Semana de aniversario: 6 años de Adipa",subtitle:"Elige tu próxima formación con descuentos desde 20% y recibe una sesión magistral de regalo."}}
1},C={...j,id:"aniversario-confeti",label:"Aniversario · Confeti",info:"Rayos desde el borde derecho con confeti cayendo lento. Mismo copy que la variante de globos.",front:{...j.front,id:"aniversario-adipa-6-confeti",theme:"anniversary-confetti"}},A={...j,id:"aniversario-lettering",label:"Aniversario · Lettering",info:"Fondo con lettering ANIVERSARIO, 6 globos en los costados y confeti sin ráfaga inicial.",front:{...j.front,id:"aniversario-adipa-6-lettering",theme:"anniversary-lettering"}},T={...j,id:"aniversario-circulos",label:"Aniversario · Círculos",info:"Fondo de círculos con el mismo confeti y megáfono de la variante 2.",front:{...j.front,id:"aniversario-adipa-6-circulos",theme:"anniversary-circles"}},N={...j,id:"aniversario-globos-circulos",label:"Aniversario · Globos II",info:"Los mismos globos de la variante 1 sobre el fondo de círculos.",front:{...j.front,id:"aniversario-adipa-6-globos-circulos",theme:"anniversary-balloons-circles"}},S={...j,id:"aniversario-mixta",label:"Aniversario · Mixta",info:"Globos en el home y fondo de círculos con confeti en /cursos.",front:{...j.front,id:"aniversario-adipa-6-mixta",theme:"anniversary-balloons",catalogTheme:"anniversary-circles"}},k=[j,C,A,T,N,S],_={bg_color:"#FFC728",text_color:"#091E42"},E="/cursos",O={text:"Descuentos y un regalo con tu compra 🎁",..._,href:E,cta_text:"¡Aquí!"},F={text:"Compra hoy y obtén una Masterclass gratis 🎉",..._},P={text:"🎉 Tienes 1 cupón disponible",..._,cta_text:"¡Aquí!"},L={caption:"¡Estamos de aniversario!",title:"Desde 20% OFF",ctaLabel:"¡Ver programas!",ctaHref:E},R="[Bienestar emocional en la era de la inteligencia artificial](/cursos/bienestar-emocional-inteligencia-artificial)",q=`Desde 20% OFF en programas y una masterclass de regalo con tu compra: ${R}.`,I=`Aprovecha desde 20% OFF en programas, recibe una masterclass de regalo con tu compra y disfruta de 12 MSI. Conoce la masterclass: ${R}.`,$={label:"Los descuentos terminan en:",ctaLabel:"¡Ver cursos!",ctaHref:E},M=(e,t,a,s)=>({startsAt:"2026-08-24T08:30",endsAt:"2026-08-31T23:59",theme:"anniversary-balloons",catalogTheme:"anniversary-circles",heroOverride:L,catalogHeader:{title:"Tus cursos favoritos con descuento",subtitle:t},coupons:{title:"¡Tu cupón de aniversario está aquí! 🎉",items:[{code:"ANIVERSARIO-2026",description:""}],bonus:{title:"Mientras mayor sea el total de tu carrito, mayor es tu descuento",tiers:s}},countdown:{from:"2026-08-31T00:00",deadline:v[e],...$},windows:[{startsAt:"2026-08-24T08:30",endsAt:"2026-08-27T00:00",ribbon:O,catalogRibbon:F},{startsAt:"2026-08-27T00:00",endsAt:"2026-08-28T00:00",ribbon:P,opensCoupons:!0},{startsAt:"2026-08-28T00:00",endsAt:"2026-08-31T00:00",ribbon:O,catalogRibbon:F},{startsAt:"2026-08-31T00:00",endsAt:"2026-08-31T23:59",...{ribbon:{text:a,..._,href:E,cta_text:"¡Aquí!"},catalogRibbon:{text:a,..._}}}]}),z={id:"aniversario-2026",label:"Aniversario 2026",byCountry:{CL:M("CL",q,"🚨 Aprovecha las últimas horas de descuentos",[{condition:"Compras bajo $100.000",reward:"$5.000 de descuento"},{condition:"Compras entre $100.000 y $199.999",reward:"$15.000 de descuento"},{condition:"Compras desde $200.000",reward:"$30.000 de descuento"}]),MX:M("MX",I,"🚨 Últimas horas de descuentos y 12 MSI",[{condition:"Compras inferiores a $1,500 MXN",reward:"$100 MXN de descuento"},{condition:"Compras entre $1,500 y $4,999 MXN",reward:"$400 MXN de descuento"},{condition:"Compras desde $5,000 MXN",reward:"$1,000 MXN de descuento"}]),CO:M("CO",q,"🚨 Aprovecha las últimas horas de descuento",[{condition:"Compras inferiores a $350.000 COP",reward:"$20.000 COP de descuento"},{condition:"Compras entre $350.000 y $799.999 COP",reward:"$50.000 COP de descuento"},{condition:"Compras desde $800.000 COP",reward:"$100.000 COP de descuento"}])},devStates:[{id:"aniversario-2026-regalo",label:"Regalo",info:"La campaña real como se verá del 24 al 26 y del 28 al 30: huincha de regalo, hero, headers y decoración mixta.",at:"2026-08-25T18:00:00Z"},{id:"aniversario-2026-cupon",label:"Cupón",info:"La campaña real como se verá el 27: huinch
1a que abre el modal del cupón ANIVERSARIO-2026 con los tramos por país.",at:"2026-08-27T18:00:00Z"},{id:"aniversario-2026-cierre",label:"Cierre",info:"La campaña real como se verá el 31: huincha de últimas horas y cuenta regresiva inferior hasta las 23:59.",at:"2026-08-31T18:00:00Z"}]};var D=e.i(891532);let U={bg_color:"#091E42",text_color:"#F3F4FF"},H={bg_color:"#704EFD",text_color:"#F3F4FF"},V={text:"Se viene un beneficio para todo tu año en Adipa: descúbrelo aquí",...U,href:D.ANNUAL_PASS_PATH},G={text:"⏰ Inscríbete y sé de los primeros en enterarte",...H},Q={text:"🎟️ Ya está disponible el Pase Anual: conócelo aquí",...U,href:D.ANNUAL_PASS_PATH},K="annual-pass-launch",B={text:"Aprovecha los beneficios desde el primer momento 💳",...H},X={startsAt:"2026-09-21T08:30",endsAt:"2026-09-23T00:00",theme:"annual-pass-teaser",ribbon:V,annualPassRibbon:G},Z={startsAt:"2026-09-23T00:00",endsAt:"2026-10-01T00:00",theme:K,ribbon:Q,annualPassRibbon:B},W={id:"pase-anual-teaser-cl-2026",label:"Pase Anual · teaser",byCountry:{CL:{startsAt:X.startsAt,endsAt:X.endsAt,windows:[X]}},devStates:[{id:"pase-anual-teaser-cl-2026",label:"Teaser",info:"21 y 22 de septiembre desde las 08:30: huincha navy en el sitio, morada en la landing.",at:"2026-09-21T15:00:00Z"}]},Y={id:"pase-anual-lanzamiento-cl-2026",label:"Pase Anual · lanzamiento",byCountry:{CL:{startsAt:Z.startsAt,endsAt:Z.endsAt,windows:[Z]}},devStates:[{id:"pase-anual-lanzamiento-cl-2026",label:"Lanzamiento",info:"Del 23 al 30 de septiembre: huincha navy en el sitio, morada en la landing.",at:"2026-09-25T15:00:00Z"}]};var J=e.i(150877);let ee={url:(0,J.mediaUrl)("/front/images/campaigns/cyber-adipa-logo.113b6194.webp"),alt:"Cyber Adipa",width:1200,height:180},et="2026-10-01T08:30",ea="2026-10-05T00:00",es="2026-10-06T00:00",ei="2026-10-07T00:00",er="2026-10-07T23:59",eo="/cursos",en={bg_color:"#FFC728",text_color:"#091E42"},el={text:"⚡ Cyber ADIPA: hasta 35% OFF en tu próxima formación",...en,href:eo,cta_text:"¡Aquí!"},ec={text:"Tu próximo curso en oferta llegó 🎉",...en},ed=e=>`🚨 \xa1Solo ${e} cupones disponibles!`,eu=[[ea,"2026-10-05T09:30",ed(300)],["2026-10-05T09:30","2026-10-05T10:30",ed(274)],["2026-10-05T10:30","2026-10-05T11:30",ed(249)],["2026-10-05T11:30","2026-10-05T12:30",ed(227)],["2026-10-05T12:30","2026-10-05T13:30",ed(191)],["2026-10-05T13:30","2026-10-05T14:30",ed(177)],["2026-10-05T14:30","2026-10-05T15:30",ed(153)],["2026-10-05T15:30","2026-10-05T16:30",ed(121)],["2026-10-05T16:30","2026-10-05T17:30",ed(101)],["2026-10-05T17:30","2026-10-05T18:30",ed(84)],["2026-10-05T18:30","2026-10-05T19:30",ed(73)],["2026-10-05T19:30","2026-10-05T20:30",ed(53)],["2026-10-05T20:30","2026-10-05T21:30",ed(42)],["2026-10-05T21:30","2026-10-05T22:30",ed(26)],["2026-10-05T22:30","2026-10-05T23:30",ed(10)],["2026-10-05T23:30",es,"🚨 ¡Últimos cupones disponibles!"]],ep={text:"⏰ Últimas horas de descuentos ⏰",...en},eh={caption:"Solo por hoy, regalamos cupones limitados 🚨",title:"Haz clic sobre el regalo y obtén el tuyo",ctaLabel:"¡Hazlo ya!",ctaAction:"coupons"},em="Son pocos cupones disponibles, ¡no te quedes sin el tuyo!",ef={ribbon:el,catalogRibbon:ec},eb={startsAt:et,endsAt:er,theme:"cyber-comic",catalogTheme:"cyber-rays",heroOverride:{caption:"Comenzaron los super descuentos",title:"Cyber Adipa **HASTA 35% OFF**",ctaLabel:"¡Ver programas!",ctaHref:eo,titleLogo:ee},catalogHeader:{title:"**Cyber Adipa:** especialízate en psicología y salud mental",subtitle:"Hasta 35% OFF en cursos, diplomados, especializaciones y postítulos. Solo por tiempo limitado.",titleLogo:ee},coupons:{frame:"comic",title:"Usa este cupón",subtitle:em,items:[{code:"CYBER-ADIPA-2026",description:""}],bonus:{tiers:[{condition:"en cursos y sesiones magistrales",reward:"$3.000"},{condition:"en diplomados, acreditaciones, especializaciones y postítulos",reward:"$20.000"}]},reveal:{title:"¡Encontraste tu regalo!",subtitle:em},cta:{label:"Ir a cursos",href:eo}},countdown:{from:ei,deadline:`${er}:00-03:00`,label:"Las ofertas de CYBER terminan en:",ctaLabel:"Ver descuentos",ctaHref:eo},windows:[{startsAt:et,endsAt:ea,...ef},...eu.map(([e,t,a])=>({startsAt:e,endsAt:t,theme:"cyber-signal",heroOverride:eh,ribbon:{text:a,...en,cta_text:"Obtén el tuyo aquí"},ribbonHiddenOn:["home"],opensCoupons:!0})),{startsAt:es,endsAt:ei,...ef},{startsAt:ei,endsAt:er,ribbon:ep}]},ex={bg_color:"#2CB7FF",text_color:"#F3F4FF"},eg="/entuspalabras",ey={text:"📓 ¡Participa en el Concurso Salud Mental en tus Palabras 2026!",...ex,href:eg,cta_text:"Aquí"},ev={text:"Salud mental en tus palabras: ⏰ ¡Últimas horas para participar!",...ex,href:eg,cta_text:"Ir"},ew=({id:e,label:t,window:a,devInfo:s,devAt:i})=>({id:e,label:t,byCountry:{CL:{startsAt:a.startsAt,endsAt:a.endsAt,windows:[a]}},devStates:[{id:e,label:"Activa",info:s,at:i}]}),ej=ew({id:"en-tus-palabras-invitacion-cl-2026",label:"En tus Palabras · invitación",window:{startsAt:"2026-10-08T00:00",endsAt:"2026-10-12T00:00",homeRibbon:ey},devInfo:"Del 8 al 11 de octubre: huincha solo en el home, enlaza al concurso.",devAt:"2026-10-09T15:00:00Z"}),eC=ew({id:"en-tus-palabras-ultimas-horas-cl-2026",label:"En tus Palabras · últimas horas",window:{startsAt:"2026-10-18T00:00",endsAt:"2026-10-20T00:00",homeRibbon:ev},devInfo:"El 18 y 19 de octubre: huincha de últimas horas solo en el home, enlaza al concurso.",devAt:"2026-10-19T15:00:00Z"}),eA={bg_color:"#F61710",text_color:"#F3F4FF"},eT="/cursos",eN={text:"Zapatea con estas ofertas de estas fiestas patrias 🎉",...eA,href:eT,cta_text:"¡Aquí!"},eS={text:"Aro, aro, aro ¡tu curso en oferta ha llegado!",...eA},ek={theme:"patrias-sky",heroOverride:{caption:"Solo por hoy",title:"Eleva el volantín y obtén un cupón",ctaLabel:"Hazlo hoy",ctaAction:"coupons"},ribbon:{text:"⏰ Solo por hoy, tienes un cupón disponible",...eA,cta_text:"¡Aquí!"},ribbonHiddenOn:["home"],opensCoupons:!0},e_={startsAt:"2026-09-07T08:30",endsAt:"2026-09-14T23:59",catalogTheme:"patrias-fireworks",heroOverride:{caption:"¡Aro, aro aro, las ofertas ya llegaron!",title:"Disfruta desde **18% OFF**",ctaLabel:"¡Ver programas!",ctaHref:eT},catalogHeader:{title:"Tiki tiki ti, cursos de psicología con descuentos para ti",subtitle:"Comenzaron las fiestas patrias en ADIPA: disfruta de descuentos desde 18% OFF en todos nuestros programas de estudio."},coupons:{title:"¡Úsalo antes de que se vaya!",items:[{code:"VIVACHILE-2026",description:""}
1],bonus:{label:"Úsalo para obtener:",tiers:[{condition:"Cursos y sesiones magistrales",reward:"$3.000 de descuento"},{condition:"Diplomados, acreditaciones, especializaciones y postítulos",reward:"$20.000 de descuento"}]}},popup:{badgeLabel:"Especial Fiestas Patrias",headline:"Este 18, avanza en tu carrera con 18% dcto.",subtitle:"En todos nuestros programas de estudio.",stripeColors:["#0039A6","#FFFFFF","#D52B1E"],couponCode:"DIECIOCHO",validUntilLabel:"Válido hasta el 20 de septiembre",legal:"Aplica sobre el precio de lista. No acumulable con otros descuentos."},countdown:{from:"2026-09-14T00:00",deadline:"2026-09-14T23:59:00-03:00",label:"El 18% OFF se termina en:",ctaLabel:"Ver ofertas",ctaHref:eT},windows:[{startsAt:"2026-09-07T08:30",endsAt:"2026-09-08T00:00",theme:"patrias-flags",ribbon:eN,catalogRibbon:eS},{startsAt:"2026-09-08T00:00",endsAt:"2026-09-09T00:00",...ek},{startsAt:"2026-09-09T00:00",endsAt:"2026-09-14T00:00",theme:"patrias-flags",ribbon:eN,catalogRibbon:eS},{startsAt:"2026-09-14T00:00",endsAt:"2026-09-14T23:59",...ek}]},eE={bg_color:"#13631F",text_color:"#F3F4FF"},eO="/cursos",eF={text:"Solo por hoy 🎉 disfruta de un cupón especial",...eE,cta_text:"¡Aquí!"},eP={text:"Llegaron los descuentos patrios 🎉",...eE,href:eO,cta_text:"¡Ver aquí!"},eL={text:"Celebremos el grito juntos 🎉 Revisa las ofertas",...eE,href:eO,cta_text:"aquí"},eR={id:"fiestas-patrias-mx-2026",label:"Fiestas Patrias MX",byCountry:{MX:{startsAt:"2026-09-09T08:30",endsAt:"2026-09-15T23:59",catalogTheme:"patrias-confetti-mx",heroOverride:{caption:"¡Viva México!",title:"Disfruta desde **16% OFF** y 12 MSI",ctaLabel:"¡Ver programas!",ctaHref:eO},catalogHeader:{title:"Celebremos las Fiestas Patrias con una formación en descuento",subtitle:"Disfruta desde 16% de descuento y paga con hasta 12 MSI y comienza tu próximo curso hoy."},coupons:{title:"¡Úsalo antes de que se vaya!",items:[{code:"VIVAMEXICO-2026",description:""}],bonus:{label:"Úsalo para obtener:",tiers:[{condition:"Cursos y sesiones magistrales",reward:"$100 MXN de descuento"},{condition:"Diplomados, acreditaciones, especializaciones y postítulos",reward:"$1,000 MXN de descuento"}]}},countdown:{from:"2026-09-15T00:00",deadline:"2026-09-15T23:59:00-06:00",label:"El 16% OFF termina en:",ctaLabel:"¡Ver ofertas!",ctaHref:eO},windows:[{startsAt:"2026-09-09T08:30",endsAt:"2026-09-10T00:00",theme:"patrias-pinata-mx",heroOverride:{caption:"Solo por hoy",title:"Aprieta la piñata y obtén un cupón para ti",ctaLabel:"Hazlo hoy",ctaAction:"coupons"},ribbon:eF,homeRibbon:eP,opensCoupons:!0},{startsAt:"2026-09-10T00:00",endsAt:"2026-09-15T23:59",theme:"patrias-flags-mx",ribbon:eL,catalogRibbon:{text:"Lleva tu próximo curso con descuento y con 12 MSI 🔥",...eE}}]}},devStates:[{id:"fiestas-patrias-mx-2026-ofertas",label:"Ofertas",info:'Del 10 al 15: hero "¡Viva México!", huincha del grito (otra en /cursos) y header del catálogo.',at:"2026-09-11T18:00:00Z"},{id:"fiestas-patrias-mx-2026-cupon",label:"Cupón",info:'El 09: hero de la piñata, huincha "Llegaron los descuentos patrios" en el home y la del cupón VIVAMEXICO-2026 en el resto del sitio.',at:"2026-09-09T18:00:00Z"},{id:"fiestas-patrias-mx-2026-cierre",label:"Cierre",info:"El 15: lo mismo más la cuenta regresiva inferior hasta las 23:59.",at:"2026-09-15T18:00:00Z"}]},eq="2026-09-30T13:00",eI="2026-09-30T23:59",e$="/cursos",eM={bg_color:"#13631F",text_color:"#F3F4FF"},ez={bg_color:"#CE1126",text_color:"#F3F4FF"},eD=[p,y,z,{id:"cyber-cl-2026",label:"Cyber CL",byCountry:{CL:eb},devStates:[{id:"cyber-cl-2026-ofertas",label:"Ofertas",info:"Del 01 (08:30) al 04 y el 06: huincha amarilla del Cyber en el sitio (otra en /cursos), hero y header del catálogo.",at:"2026-10-02T15:00:00Z"},{id:"cyber-cl-2026-cupon",label:"Cupón",info:"El lunes 05: batiseñal en el home (sin huincha ahí) y huincha en el resto del sitio con los folios del Excel bajando cada hora desde las 09:30 (300 → 10); ambas abren el modal de CYBER-ADIPA-2026, el único día con cupón.",at:"2026-10-05T15:00:00Z"},{id:"cyber-cl-2026-cupon-cierre",label:"Cupón (cierre)",info:'El 
105 de 23:30 a 23:59: "¡Últimos cupones disponibles!". El cupón vence ese día; el 06 y el 07 ya no lo ofrecen.',at:"2026-10-06T02:45:00Z"},{id:"cyber-cl-2026-cierre",label:"Último día",info:"El 07: huincha de últimas horas en todo el sitio y cuenta regresiva inferior hasta las 23:59.",at:"2026-10-07T15:00:00Z"}]},{id:"fiestas-patrias-cl-2026",label:"Fiestas Patrias CL",byCountry:{CL:e_},devStates:[{id:"fiestas-patrias-cl-2026-ofertas",label:"Ofertas",info:"La campaña como se verá el 07 y del 09 al 13: huincha de ofertas (otra en /cursos), hero y header del catálogo.",at:"2026-09-10T15:00:00Z"},{id:"fiestas-patrias-cl-2026-cupon",label:"Cupón",info:"El 08 y el 14: hero del volantín en el home (sin huincha ahí) y huincha del cupón VIVACHILE-2026 en el resto del sitio.",at:"2026-09-08T15:00:00Z"},{id:"fiestas-patrias-cl-2026-cierre",label:"Cierre",info:"El 14: el día del cupón más la cuenta regresiva inferior hasta las 23:59.",at:"2026-09-14T15:00:00Z"}]},eR,ej,eC,{id:"cupon-flash-cl-2026",label:"Cupón flash CL",byCountry:{CL:{startsAt:eq,endsAt:eI,coupons:{title:"¡Cupón flash solo por hoy!",subtitle:"Válido hoy hasta las 11:59 p. m.",items:[{code:"FLASH",description:"",isCodeCentered:!0}],bonus:{label:"Úsalo para obtener:",tiers:[{condition:"Diplomados, acreditaciones y especializaciones",reward:"$20.000 de descuento"},{condition:"Cursos y sesiones magistrales",reward:"$5.000 de descuento"}]},cta:{label:"Ver programas",href:e$}},countdown:{from:eq,deadline:`${eI}:00-03:00`,label:"El cupón flash termina en:",ctaLabel:"Ver programas",ctaHref:e$},windows:[{startsAt:eq,endsAt:eI,theme:K,ribbon:{text:"⚡ Cupón de descuento disponible por pocas horas ⏰",bg_color:"#F61710",text_color:"#F3F4FF",cta_text:"Aquí"},annualPassRibbon:B,opensCoupons:!0}]}},devStates:[{id:"cupon-flash-cl-2026",label:"Cupón flash",info:"El 30 de septiembre de 13:00 a 23:59: huincha roja que abre el modal del cupón y cuenta regresiva hasta las 23:59. El Pase Anual sigue en el home y en su landing.",at:"2026-09-30T18:00:00Z"}]},W,Y,{id:"lanzamiento-ar-2026",label:"Lanzamiento AR",byCountry:{AR:{startsAt:"2026-09-29T00:00",endsAt:"2026-10-05T23:59",theme:"lanzamiento-ar-flags",catalogTheme:"lanzamiento-ar-fireworks",heroOverride:{caption:"Formación continua en salud mental",title:"Hola, **Argentina**",subtitle:"Somos Adipa: programas de estudio 100% online en psicología y salud mental, creados y dirigidos por docentes especialistas reconocidos internacionalmente.",ctaLabel:"Conocé los programas",ctaHref:"/cursos",secondaryCtaLabel:"Conocé quiénes somos",secondaryCtaHref:"/quienes-somos/"},catalogHeader:{title:"Formate con especialistas de toda Latinoamérica",subtitle:"Programas de estudio 100% online en psicología y salud mental. Elegí el que necesitás para tu práctica profesional."},windows:[]}},devStates:[{id:"lanzamiento-ar-2026-semana",label:"Lanzamiento",info:"Del 29/09 al 05/10: banderines celestes, blancos y amarillos con fuegos en el home, solo fuegos en /cursos, sin huincha ni cupón.",at:"2026-09-30T15:00:00Z"}]},{id:"orgullo-mx-2026",label:"Orgullo Hecho en México",byCountry:{MX:{startsAt:"2026-09-29T08:30",endsAt:"2026-09-30T23:59",theme:"patrias-flags-mx",catalogTheme:"patrias-confetti-mx",heroOverride:{seal:{url:(0,J.mediaUrl)("/front/images/campaigns/hecho-en-mexico-sello.bba33e92.svg"),alt:"Sello Hecho en México"}},coupons:{title:"¡Pocos cupones disponibles!",subtitle:"Utiliza hoy el que se acomode a tu programa:",items:[{code:"ORGULLO120",description:"$120 MXN OFF en cursos y sesiones magistrales"},{code:"ORGULLO1200",description:"$1,200 MXN OFF en diplomados, postítulos, especializaciones y acreditaciones"},{code:"MX500",description:"$500 MXN OFF en acreditaciones"}],cta:{label:"¡Ir por mi curso!",href:"/cursos"}},windows:[["2026-09-29T08:30","2026-09-29T10:00","🚨 ¡Solo 200 cupones disponibles!"],["2026-09-29T10:00","2026-09-29T12:00","🚨 ¡Solo 183 cupones disponibles!"],["2026-09-29T12:00","2026-09-29T14:00","🚨 ¡Solo 166 cupones disponibles!"],["2026-09-29T14:00","2026-09-29T16:00","🚨 ¡Solo 151 cupones dis
1ponibles!"],["2026-09-29T16:00","2026-09-29T18:00","🚨 ¡Solo 127 cupones disponibles!"],["2026-09-29T18:00","2026-09-29T20:00","🚨 ¡Solo 118 cupones disponibles!"],["2026-09-29T20:00","2026-09-29T22:00","🚨 ¡Solo 102 cupones disponibles!"],["2026-09-29T22:00","2026-09-30T08:30","🚨 ¡Solo 81 cupones disponibles!"],["2026-09-30T08:30","2026-09-30T10:00","🚨 ¡Solo 67 cupones disponibles!"],["2026-09-30T10:00","2026-09-30T12:00","🚨 ¡Solo 56 cupones disponibles!"],["2026-09-30T12:00","2026-09-30T14:00","🚨 ¡Solo 49 cupones disponibles!"],["2026-09-30T14:00","2026-09-30T16:00","🚨 ¡Solo 35 cupones disponibles!"],["2026-09-30T16:00","2026-09-30T18:00","🚨 ¡Solo 28 cupones disponibles!"],["2026-09-30T18:00","2026-09-30T20:00","🚨 ¡Solo 17 cupones disponibles!"],["2026-09-30T20:00","2026-09-30T22:00","🚨 ¡Solo 7 cupones disponibles!"],["2026-09-30T22:00","2026-09-30T23:59","🚨 ¡Últimos cupones disponibles!"]].map(([e,t,a])=>({startsAt:e,endsAt:t,ribbon:{text:a,...e>="2026-09-30T08:30"?ez:eM,cta_text:"Obtén el tuyo aquí"},opensCoupons:!0}))}},devStates:[{id:"orgullo-mx-2026-verde",label:"Folios (29)",info:"El 29: banderines y fuegos de Fiestas Patrias MX en el home (confeti en /cursos) con el hero normal y el sello Hecho en México; huincha verde con los folios bajando cada 2 horas (200 → 81); abre el modal con ORGULLO120, ORGULLO1200 y MX500.",at:"2026-09-29T17:00:00Z"},{id:"orgullo-mx-2026-rojo",label:"Folios (30)",info:"El 30 desde las 08:30: la misma huincha en rojo (67 → 7).",at:"2026-09-30T20:00:00Z"},{id:"orgullo-mx-2026-ultimos",label:"Últimos",info:'El 30 de 22:00 a 23:59: "¡Últimos cupones disponibles!" en rojo.',at:"2026-10-01T04:30:00Z"}]}];var eU=e.i(573691),eH=e.i(695555);let eV=(e,t,a)=>e>=t&&e<a,eG=(e,t,a)=>{let s=e.byCountry[t];if(!s||Number.isNaN(a.getTime()))return;let i=(0,eH.formatWallClock)(a,eU.TIMEZONE_BY_COUNTRY[t]);if(!eV(i,s.startsAt,s.endsAt))return;let r=s.windows.find(e=>eV(i,e.startsAt,e.endsAt)),{countdown:o}=s;return{id:e.id,phase:"live",theme:r?.theme??s.theme,ribbon:r?.ribbon,heroOverride:r?.heroOverride??s.heroOverride,countdown:o&&i>=o.from?{deadline:o.deadline,label:o.label,ctaLabel:o.ctaLabel,ctaHref:o.ctaHref}:void 0,coupons:r?.opensCoupons?s.coupons:void 0,popup:s.popup,surfaces:{catalogHeader:s.catalogHeader,catalogTheme:s.catalogTheme,catalogRibbon:r?.catalogRibbon,homeRibbon:r?.homeRibbon,contestRibbon:r?.contestRibbon,annualPassRibbon:r?.annualPassRibbon,ribbonHiddenOn:r?.ribbonHiddenOn}}};var eQ=e.i(486080);let eK=({country:e})=>
1{let i=(0,a.usePathname)(),[r,o]=(0,s.useState)();(0,s.useEffect)(()=>{o(((e,t)=>{for(let a of eD){let s=eG(a,e,t);if(s)return s}})(e,new Date))},[e]);let n=r?.popup;return r&&n?(0,t.jsx)(u,{badgeLabel:n.badgeLabel,campaignId:r.id,coupon:n.couponCode?{code:n.couponCode,validUntilLabel:n.validUntilLabel,expiresAt:n.expiresAt}:void 0,headline:n.headline,legal:n.legal,pathname:i??"/",stripeColors:n.stripeColors,subtitle:n.subtitle,onCopyCoupon:({campaignId:e,code:t})=>(0,eQ.trackEvent)("popup_campaign_coupon",{popup_campaign:e,popup_coupon:t}),onDismiss:({campaignId:e})=>(0,eQ.trackEvent)("popup_campaign_dismiss",{popup_campaign:e}),onView:({campaignId:e})=>(0,eQ.trackEvent)("popup_campaign_view",{popup_campaign:e})}):null};var eB=e.i(967022);let eX=(0,eB.default)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);var eZ=e.i(975636);let eW=(0,eB.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var eY="adipa:carrito:mostrado";function eJ(){if("u">typeof window)try{return window.localStorage}catch{return}}var e0=["/"];function e2({items:e,pathname:a,enabled:i=!1,excludedPaths:r=e0,cooldownDays:o=3,delayMs:c=8e3,maxPerSession:d=1,subtotalLabel:u,discountLabel:p,totalLabel:h,coupon:m,onView:f,onCheckout:b,onCopyCoupon:x,onDismiss:g}){let[y,v]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),C=(0,s.useRef)(!1),A=i||(0,n.isTestModeActive)();if((0,s.useEffect)(()=>{let t;if(!A||!e.length||(t=a.replace(/\/+$/,"")||"/",r.some(e=>"/"===e?"/"===t:t.startsWith(e))||function(e,t=Date.now()){try{let a=Number(eJ()?.getItem(eY)??0);return a>0&&t-a<864e5*e}catch{return!1}}(o)||!(0,n.hasSessionBudget)(d)))return;let s=window.setTimeout(()=>{(0,n.hasSessionBudget)(d)&&(!function(e=Date.now()){try{eJ()?.setItem(eY,String(e))}catch{}}(),(0,n.consumeSessionBudget)("carrito_abandonado"),v(!0))},c);return()=>window.clearTimeout(s)},[A,e.length,a,r,o,c,d]),(0,s.useEffect)(()=>{y&&!C.current&&(C.current=!0,f?.({items:e.length}))},[y,e.length,f]),!y)return null;let T=()=>{v(!1),g?.()},N=1===e.length?"1 curso":`${e.length} cursos`;return(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("button",{type:"button","aria-label":"Cerrar",className:"bg-adipa-scrim absolute inset-0 cursor-default",onClick:T}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"adipa-carrito-title",className:"bg-adipa-surface shadow-adipa-card rounded-adipa-lg relative flex max-h-[92vh] w-full max-w-lg flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"from-adipa-text-primary via-adipa-primary to-cyan relative bg-linear-to-br p-5 pb-4",children:[(0,t.jsx)("button",{type:"button","aria-label":"Cerrar",onClick:T,className:"rounded-adipa-full duration-adipa-fast absolute end-4 top-4 flex h-8 w-8 items-center justify-center bg-white/15 text-white transition-colors hover:bg-white/30",children:(0,t.jsx)(l.X,{className:"h-4 w-4"})}),(0,t.jsx)("p",{className:"text-adipa-cart-meta font-bold tracking-widest text-white/85 uppercase",children:"Tu carrito te espera"}),(0,t.jsxs)("h2",{id:"adipa-carrito-title",className:"mt-1.5 pe-10 text-xl leading-tight font-bold text-white",children:["Dejaste ",N," en tu carrito"]}),(0,t.jsx)("p",{className:"text-adipa-course-teacher mt-1.5 text-white/85",children:"Tus cupos siguen reservados · los precios con descuento vencen pronto"})]}),(0,t.jsx)("ul",{className:"flex max-h-60 min-h-0 flex-1 list-none flex-col gap-2.5 overflow-y-auto p-5 pb-0",children:e.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:e.url,className:"border-adipa-border rounded-adipa-md hover:border-adipa-border-strong duration-adipa-fast group flex items-center gap-3.5 border p-3 transition-colors",children:[e.imageUrl?(0,t.jsx)("img",{src:e.imageUrl,alt:"","aria-hidden":"true",className:"rounded-adipa-sm h-18 w-26 shrink-0 object-cover"}):null,(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[e.category?(0,t.jsx)("span",{className:"text-adipa-primary text-adipa-cart-currency block font-semibold",children:e.category}):null,(0,t.jsx)("span",{className:"text-adipa-text-primary group-hover:text-adipa-primary duration-adipa-fast text-adipa-cart-price mt-0.5 block leading-snug font-semibold transition-colors",children:e.title}),e.meta?(0,t.jsx)("span",{className:"text-adipa-text-secondary text-adipa-cart-meta mt-0.5 block",children:e.meta}):null,(0,t.jsxs)("span",{className:"mt-1 flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-adipa-text-primary text-adipa-course-teacher font-bold",children:e.priceLabel}),e.originalPriceLabel?(0,t.jsx)("span",{className:"text-adipa-text-secondary text-adipa-cart-meta line-through",children:e.originalPriceLabel}):null]})]})]})},e.id))}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 px-5 pt-2.5",children:[m?(0,t.jsxs)("div",{className:"border-adipa-primary bg-adip
1a-surface-muted rounded-adipa-md flex items-center gap-3 border border-dashed p-3",children:[(0,t.jsx)("span",{className:"bg-adipa-surface-lavender text-adipa-primary rounded-adipa-full flex h-9 w-9 shrink-0 items-center justify-center",children:(0,t.jsx)(eX,{"aria-hidden":"true",className:"h-4 w-4"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"text-adipa-text-primary text-adipa-course-meta block font-semibold",children:["Cupón exclusivo por volver:"," ",(0,t.jsx)("span",{className:"text-adipa-primary font-mono font-bold",children:m.code})]}),m.description?(0,t.jsx)("span",{className:"text-adipa-text-secondary text-adipa-cart-meta mt-0.5 block",children:m.description}):null]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{m&&(navigator.clipboard?.writeText(m.code).catch(()=>void 0),j(!0),x?.({code:m.code}))},className:"border-adipa-primary text-adipa-primary hover:bg-adipa-surface-lavender rounded-adipa-md duration-adipa-fast text-adipa-cart-meta flex shrink-0 items-center gap-1 border px-2.5 py-1.5 font-semibold transition-colors",children:[w?(0,t.jsx)(eZ.Check,{"aria-hidden":"true",className:"h-3 w-3"}):(0,t.jsx)(eW,{"aria-hidden":"true",className:"h-3 w-3"}),w?"Copiado":"Copiar"]})]}):null,h?(0,t.jsxs)("div",{className:"border-adipa-border bg-adipa-surface-muted rounded-adipa-md flex flex-col gap-1.5 border p-3",children:[u?(0,t.jsxs)("span",{className:"text-adipa-text-secondary text-adipa-cart-price flex justify-between",children:[(0,t.jsx)("span",{children:"Subtotal"}),(0,t.jsx)("span",{children:u})]}):null,p?(0,t.jsxs)("span",{className:"text-adipa-success text-adipa-cart-price flex justify-between font-semibold",children:[(0,t.jsx)("span",{children:"Descuento"}),(0,t.jsx)("span",{children:p})]}):null,(0,t.jsxs)("span",{className:"border-adipa-border mt-0.5 flex items-baseline justify-between border-t pt-2",children:[(0,t.jsx)("span",{className:"text-adipa-text-primary text-adipa-course-teacher font-semibold",children:"Total"}),(0,t.jsx)("span",{className:"text-adipa-text-primary text-lg font-bold",children:h})]})]}):null]}),(0,t.jsxs)("div",{className:"p-5 pt-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>b?.({items:e.length,withCoupon:w}),className:"bg-adipa-primary text-adipa-primary-foreground hover:bg-adipa-primary-hover duration-adipa-fast rounded-adipa-md w-full px-4 py-3.5 text-base font-semibold transition-colors",children:"Retomar mi compra"}),(0,t.jsx)("button",{type:"button",onClick:T,className:"text-adipa-text-secondary hover:text-adipa-text-primary duration-adipa-fast text-adipa-course-teacher mt-3 block w-full text-center font-medium transition-colors",children:"Ahora no"})]})]})]})}var e1=e.i(93790);let e3="adipa:perfil-visitante";var e6=e.i(526683);let e5=()=>{let e=(0,a.usePathname)(),i=(0,e1.useCart)(e=>e.items),r=(0,e1.useCart)(e=>e.setIsOpen),{perfil:o}=(()=>{let[e,t]=(0,s.useState)(null),[a,i]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let e=!1,a=(()=>{try{let e=window.sessionStorage.getItem(e3);return e?JSON.parse(e):void 0}catch{return}})();return void 0!==a?(t(a),i(!1)):fetch("/api/account/visitor-profile",{method:"POST"}).then(e=>204!==e.status&&e.ok?e.json():null).catch(()=>null).then(a=>{if(!e){t(a),i(!1);try{window.sessionStorage.setItem(e3,JSON.stringify(a))}catch{}}}),()=>{e=!0}},[]),{perfil:e,cargando:a}})(),n=!!(o?.urlCarro||o?.carro?.length),[l]=i;if(!n||!l)return null;let c=i.reduce((e,t)=>e+(t.original_price??t.price),0),d=i.reduce((e,t)=>e+t.price,0),u=l.currency;return(0,t.jsx)(e2,{coupon:o?.cuponCarro?{code:o.cuponCarro}:void 0,discountLabel:c>d?`−${(0,e6.formatPrice)(c-d,u)}`:void 0,items:i.map(e=>({id:e.id,title:e.title,url:`/producto/${e.slug}`,imageUrl:e.image_url,priceLabel:(0,e6.formatPrice)(e.price,u),originalPriceLabel:e.original_price?(0,e6.formatPrice)(e.original_price,u):void 0,meta:e.instructor_name})),pathname:e??"/",subtotalLabel:c>d?(0,e6.formatPrice)(c,u):void 0,totalLabel:(0,e6.formatPrice)(d,u),onCheckout:({items:e,withCoupon:t})=>{(0,eQ.trackEvent)("popup_cart_checkout",{popup_campaign:"carrito_abandonado",popup_items:e,popup_with_coupon:t}),r(!0)},onCopyCoupon:({code:e})=>(0,eQ.trackEvent)("popup_cart_coupon",{popup_campaign:"carrito_abandonado",popup_coupon:e}),onDismiss:()=>(0,eQ.trackEvent)("popup_dismiss",{popup_campaign:"carrito_abandonado",popup_product:""}),onView:({items:e})=>(0,eQ.trackEvent)("popup_cart_view",{popup_campaign:"carrito_abandonado",popup_items:e})})};var e9=e.i(360112);let e4=e=>`No pudimos agregar \xab${e}\xbb a tu carrito`,e8="Vuelve a intentarlo en unos minutos. Si sigue pasando, escríbenos y te ayudamos.";
1var e7=e.i(916353),te=e.i(415079),tt=e.i(207591),ta=e.i(722370);let ts="legacy"===ta.env.NEXT_PUBLIC_CART_SOURCE,ti=()=>{let e,t,a,i,r,o,n;return e=(0,s.useRef)(!1),t=(0,s.useRef)(null),a=(0,s.useRef)(0),i=(0,s.useRef)(0),r=(0,s.useRef)(0),o=(0,s.useRef)(Promise.resolve()),n=(0,s.useCallback)(async()=>{let s=a.current+1;a.current=s,r.current=Date.now();let o=await (0,e7.fetchLegacyCartItems)(),n=s!==a.current,l=i.current>0;if(!n&&!l){e.current=!0;try{e1.useCart.getState().hydrate(o)}finally{e.current=!1}t.current=new Set(o.map(e=>e.id))}},[]),(0,s.useEffect)(()=>{if(!ts)return;let{beginOp:s,endOp:l}=tt.useLegacyCartSyncStatus.getState(),c=()=>n().catch(e=>console.warn("[legacy-cart] hydrate failed",e));s(),c().finally(l);let d=e1.useCart.subscribe(r=>{if(e.current)return;let n=t.current;if(!n)return;let d=new Set(r.items.map(e=>e.id)),u=[...d].filter(e=>!n.has(e)),p=[...n].filter(e=>!d.has(e));if(0===u.length&&0===p.length)return;t.current=d,i.current+=1,a.current+=1,s();let h=r.items.filter(e=>u.includes(e.id));o.current=[...p.map(e=>()=>(0,e7.removeItemFromLegacyCart)(e)),...h.map(e=>()=>(0,e7.addItemToLegacyCart)(e.id).catch(t=>{console.warn("[legacy-cart] add rejected",t),e9.toast.error(e4(e.title),{description:e8})}))].reduce((e,t)=>e.then(t),o.current).catch(e=>console.warn("[legacy-cart] mutation mirror failed",e)).finally(()=>{(i.current-=1,i.current>0)?l():c().finally(l)})}),u=()=>{let e=Date.now()-r.current<5e3;document.hidden||e||i.current>0||(s(),c().finally(l))},p=(0,te.onLegacyCartRefresh)(()=>{s(),c().finally(l)});return window.addEventListener("focus",u),document.addEventListener("visibilitychange",u),()=>{d(),p(),window.removeEventListener("focus",u),document.removeEventListener("visibilitychange",u)}},[n]),null};var tr=e.i(799973),to="adipa:captura:mostrado";function tn(){if("u">typeof window)try{return window.localStorage}catch{return}}var tl=["/checkout"];function tc({pathname:e,enabled:a=!1,onlyWithoutCookie:i=!0,excludedPaths:r=tl,cooldownDays:o=30,delayMs:c=15e3,maxPerSession:d=1,couponCode:u,loginUrl:p,onSubmit:h,onView:m,onCopyCoupon:f,onDismiss:b}){let[x,g]=(0,s.useState)(!1),[y,v]=(0,s.useState)(""),[w,j]=(0,s.useState)(null),[C,A]=(0,s.useState)(!1),[T,N]=(0,s.useState)(!1),[S,k]=(0,s.useState)(!1),_=(0,s.useRef)(!1),E=(0,s.useId)(),O=a||(0,n.isTestModeActive)();if((0,s.useEffect)(()=>{if(!O||i&&!("u"<typeof document)&&RegExp("(?:^|;\\s*)hubspotutk=").test(document.cookie)||r.some(t=>e.startsWith(t))||function(e,t=Date.now()){try{let a=Number(tn()?.getItem(to)??0);return a>0&&t-a<864e5*e}catch{return!1}}(o)||!(0,n.hasSessionBudget)(d))return;let t=window.setTimeout(()=>{(0,n.hasSessionBudget)(d)&&(!function(e=Date.now()){try{tn()?.setItem(to,String(e))}catch{}}(),(0,n.consumeSessionBudget)("bienvenida"),g(!0))},c);return()=>window.clearTimeout(t)},[O,i,e,r,o,c,d]),(0,s.useEffect)(()=>{x&&!_.current&&(_.current=!0,m?.())},[x,m]),!x)return null;let F=()=>{g(!1),b?.({submitted:T})},P=async()=>{if(!/^[^@\s]+@[^@\s]+\.[A-Za-z]{2,}$/.test(y.trim()))return void j("Revisa el correo, parece incompleto.");j(null),A(!0);try{await h?.({email:y.trim()}),N(!0)}catch{j("No pudimos guardarlo. Inténtalo de nuevo en un momento.")}finally{A(!1)}};return(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("button",{type:"button","aria-label":"Cerrar",className:"bg-adipa-scrim absolute inset-0 cursor-default",onClick:F}),(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":`${E}-title`,className:"bg-adipa-surface shadow-adipa-card rounded-adipa-lg relative flex w-full max-w-sm flex-col overflow-hidden",children:T?(0,t.jsxs)("div",{className:"p-6 text-center",children:[(0,t.jsx)("span",{className:"bg-adipa-success-surface border-adipa-success-border text-adipa-success rounded-adipa-full mx-auto mb-3.5 flex h-13 w-13 items-center justify-center border",children:(0,t.jsx)(eZ.Check,{"aria-hidden":"true",className:"h-6 w-6",strokeWidth:3})}),(0,t.jsx)("h2",{id:`${E}-title`,className:"text-adipa-text-primary text-lg leading-tight font-bold",children:u?"¡Listo! Este es tu cupón":"¡Listo! Revisa tu correo"}),(0,t.jsxs)("p",{className:"text-adipa-text-secondary text-adipa-course-teacher mt-1.5",children:[u?"También lo enviamos a ":"Te enviamos tu cupón a ",(0,t.jsx)("strong",{className:"text-adipa-text-primary font-semibold",children:y})]}
1),u?(0,t.jsxs)("div",{className:"border-adipa-primary bg-adipa-surface-muted rounded-adipa-md mt-4 flex items-center justify-between gap-3 border border-dashed p-3.5",children:[(0,t.jsx)("span",{className:"text-adipa-primary font-mono text-base font-bold tracking-wider",children:u}),(0,t.jsxs)("button",{type:"button",onClick:()=>{u&&(navigator.clipboard?.writeText(u).catch(()=>void 0),k(!0),f?.({code:u}))},className:"border-adipa-primary text-adipa-primary hover:bg-adipa-surface-lavender rounded-adipa-md duration-adipa-fast text-adipa-cart-meta flex shrink-0 items-center gap-1 border px-2.5 py-1.5 font-semibold transition-colors",children:[S?(0,t.jsx)(eZ.Check,{"aria-hidden":"true",className:"h-3 w-3"}):(0,t.jsx)(eW,{"aria-hidden":"true",className:"h-3 w-3"}),S?"Copiado":"Copiar"]})]}):null,(0,t.jsx)("button",{type:"button",onClick:F,className:"bg-adipa-primary text-adipa-primary-foreground hover:bg-adipa-primary-hover duration-adipa-fast rounded-adipa-md mt-3 w-full px-4 py-3 text-sm font-semibold transition-colors",children:u?"Explorar cursos con mi 10%":"Seguir explorando cursos"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"from-adipa-text-primary via-adipa-primary to-cyan relative bg-linear-to-br p-5 pb-5",children:[(0,t.jsx)("button",{type:"button","aria-label":"Cerrar",onClick:F,className:"rounded-adipa-full duration-adipa-fast absolute end-4 top-4 flex h-8 w-8 items-center justify-center bg-white/15 text-white transition-colors hover:bg-white/30",children:(0,t.jsx)(l.X,{className:"h-4 w-4"})}),(0,t.jsxs)("span",{className:"rounded-adipa-full text-adipa-cart-meta mb-2.5 inline-flex items-center gap-1.5 border border-white/30 bg-white/15 px-3 py-1 font-bold tracking-widest text-white uppercase",children:[(0,t.jsx)(tr.Gift,{"aria-hidden":"true",className:"h-3 w-3"}),"Regalo de bienvenida"]}),(0,t.jsx)("h2",{id:`${E}-title`,className:"pe-8 text-xl leading-tight font-bold text-white",children:"Deja tu correo y te regalamos un 10% dcto."}),(0,t.jsx)("p",{className:"text-adipa-course-teacher mt-1.5 text-white/85",children:"Válido en tu primer curso. Sin necesidad de crear una cuenta."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 p-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:E,className:"text-adipa-text-primary text-adipa-cart-price mb-1.5 block font-semibold",children:"Tu correo"}),(0,t.jsx)("input",{id:E,type:"email",autoComplete:"email",inputMode:"email",placeholder:"[email protected]",value:y,"aria-invalid":!!w,"aria-describedby":w?`${E}-error`:void 0,onChange:e=>{v(e.target.value),w&&j(null)},onKeyDown:e=>{"Enter"===e.key&&P()},className:`rounded-adipa-md duration-adipa-fast w-full border px-3 py-2.5 text-sm transition-colors outline-none ${w?"border-adipa-error focus:border-adipa-error":"border-adipa-border focus:border-adipa-primary"}`}),w?(0,t.jsx)("p",{id:`${E}-error`,role:"alert",className:"text-adipa-error text-adipa-cart-meta mt-1.5",children:w}):null]}),(0,t.jsx)("button",{type:"button",onClick:()=>void P(),disabled:C,className:"bg-adipa-primary text-adipa-primary-foreground hover:bg-adipa-primary-hover duration-adipa-fast rounded-adipa-md w-full px-4 py-3 text-sm font-semibold transition-colors disabled:cursor-not-allowed disabled:opacity-60",children:C?"Enviando…":"Quiero mi 10% dcto."}),(0,t.jsxs)("div",{className:"text-adipa-cart-price flex justify-center gap-4",children:[p?(0,t.jsx)("a",{href:p,className:"text-adipa-primary font-medium",children:"Ya tengo cuenta · Iniciar sesión"}):null,(0,t.jsx)("button",{type:"button",onClick:F,className:"text-adipa-text-secondary hover:text-adipa-text-primary duration-adipa-fast font-medium transition-colors",children:"Ahora no"})]}),(0,t.jsx)("p",{className:"text-adipa-text-secondary text-adipa-cart-meta text-center leading-relaxed",children:"Solo te enviaremos el cupón y novedades de cursos. Puedes darte de baja cuando quieras."})]})]})})]})}let td="popup-bienvenida",tu=()=>{let e=(0,a.usePathname)(),s=async({email:e})=>{let t=await fetch("/api/forms/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"",lastName:"",email:e,area:"Todas las áreas",source:`adipa-${ta.env.NEXT_PUBLIC_COUNTRY.toLowerCase()}-${td}`,pageUrl:window.location.href})});if(!t.ok)throw Error(`captura fall\xf3: ${t.status}`);(0,eQ.trackEvent)("popup_capture_submit",{popup_campaign:td})};return(0,t.jsx)(tc,{loginUrl:"/login",pathname:e??"/",onDismiss:({submitted:e})=>(0,eQ.trackEvent)("popup_capture_dismiss",{popup_campaign:td,popup_submitted:e}),onSubmit:s,onView:()=>(0,eQ.trackEvent)("popup_capture_view",{popup_campaign:td})})};var tp=e.i(670446);let th="/images/chat/whatsapp-agent-default.webp",tm={CL:{href:"https://adip
1a.trb.ai/wa/3idy3N",agentImageUrl:th},MX:{href:"https://wa.link/ey5ucm",agentImageUrl:th},CO:{href:"https://api.whatsapp.com/send?phone=573144718655&text=%C2%A1Hola!%20%F0%9F%91%8B%20tengo%20una%20duda%20y%20quisiera%20contactarme%20con%20ustedes.",agentImageUrl:th},AR:{href:"https://wa.link/adipa-ar",agentImageUrl:th}},tf={CL:"https://alphifrontcl.adipa.app/alphi-widget.js",MX:"https://alphifrontmx.adipa.app/alphi-widget.js",CO:"https://alphifrontcol.adipa.app/alphi-widget.js",AR:"https://alphifrontar.adipa.app/alphi-widget.js"},tb=["/","/acreditaciones","/acreditaciones/*","/adipa-lab","/adipados","/adipados/*","/adiprensa","/adiprensa/*","/beneficios","/capacitacion-institucional","/checkout","/contacto","/convenios","/convenios/*","/cursos","/cursos/*","/diplomados","/diplomados/*","/docentes","/docentes/*","/empleos","/entuspalabras","/entuspalabras/*","/escuelas","/escuelas/*","/especializaciones","/especializaciones/*","/experiencias","/giftcard","/glosario","/glosario/*","/impacto","/investigacion","/investigacion/*","/magistrales","/newsletter","/noticias","/noticias/*","/packs/*","/pase-anual","/postitulos/*","/producto/*","/quienes-somos","/recursos/ebooks","/seminarios","/seminarios/*","/sesiones-magistrales","/sesiones-magistrales/*","/sos","/terminos-y-condiciones","/venta-nocturna"];var tx=e.i(92489);let tg=e=>{let t=(e.startsWith("/")?e:`/${e}`).replace(/\/+$/,"");return""===t?"/":t},ty=(e,t)=>{let a=tg(e);return t.some(e=>((e,t)=>{if(!t.endsWith("/*"))return e===tg(t);
1let a=tg(t.slice(0,-2));return"/"===a?"/"!==e:e.startsWith(`${a}/`)})(a,e))};var tv=e.i(519508);let tw="data-alphi-hidden",tj=({scriptUrl:e,isVisible:a})=>{let r=(0,i.useAuth)(e=>e.user),[o,n]=(0,s.useState)(a),l=r?.email??null,c=r?.name??null;return((0,s.useEffect)(()=>{a&&n(!0)},[a]),(0,s.useEffect)(()=>{document.body.toggleAttribute(tw,!a)},[a]),(0,s.useEffect)(()=>()=>{document.body.removeAttribute(tw)},[]),(0,s.useEffect)(()=>{let e=window,t=e.AlphiWidget;t?.setUser?t.setUser(l,c):e.AlphiWidget={...t,userEmail:l,userName:c}},[l,c]),o)?(0,t.jsx)(tv.default,{src:e,strategy:"lazyOnload"}):null};var tC=e.i(867881),tA=e.i(939843),tT=e.i(668889),tN=e.i(929989);let tS="¿Necesitas ayuda?",tk=({href:e,agentImageUrl:a})=>{let[i,r]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:(0,e6.cn)("adipa-chat-dock group left-(--adipa-chat-inset)",i&&"adipa-chat-dock--open"),children:[(0,t.jsx)("button",{"aria-expanded":i,"aria-label":tS,className:(0,e6.cn)("absolute bottom-0 left-0 z-[1] flex cursor-pointer items-center justify-center rounded-full","h-(--adipa-chat-bubble-size) w-(--adipa-chat-bubble-size) bg-(--color-whatsapp)","transition-transform duration-200 ease-out hover:scale-105 motion-reduce:transition-none","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--color-whatsapp)"),type:"button",onClick:()=>r(!0),children:(0,t.jsx)(tT.default,{unoptimized:!0,alt:"",className:"h-[57%] w-[57%]",height:40,src:"/images/chat/icon-whatsapp-white.svg",width:40})}),(0,t.jsx)("span",{"aria-hidden":"true",className:(0,e6.cn)("pointer-events-none absolute bottom-[calc(100%+8px)] left-0 hidden whitespace-nowrap md:block","min-w-[180px] max-w-[calc(100vw-40px)] rounded-[20px] bg-white px-[10px] py-[5px] text-center","text-sm font-medium text-(--color-foreground) shadow-[rgba(0,0,0,0.24)_0px_3px_8px]","transition-opacity duration-500 ease-out motion-reduce:transition-none",i?"opacity-0":"opacity-0 group-hover:opacity-100"),children:tS}),(0,t.jsxs)("div",{className:(0,e6.cn)("absolute bottom-0 left-0 z-[3] overflow-hidden rounded-[20px] bg-brand","w-[min(320px,calc(100vw-(var(--adipa-chat-inset)*2)))] md:w-[400px]","shadow-[rgba(0,0,0,0.24)_0px_3px_8px] transition-opacity duration-500 ease-out","motion-reduce:transition-none",i?"opacity-100":"pointer-events-none invisible opacity-0"),children:[(0,t.jsxs)("div",{className:"relative px-5 py-[10px]",children:[(0,t.jsx)("span",{className:"text-base leading-[22px] font-bold text-white uppercase",children:"ADIPA"}),(0,t.jsx)("button",{"aria-label":"Cerrar chat",className:(0,e6.cn)("absolute top-[10px] right-[10px] flex h-[25px] w-[25px] cursor-pointer items-center","justify-center rounded-full bg-white","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"),type:"button",onClick:()=>r(!1),children:(0,t.jsx)(tA.X,{"aria-hidden":"true",className:"h-3.5 w-3.5 text-(--color-foreground) opacity-80"})})]}),(0,t.jsx)("div",{className:"bg-white p-5",children:(0,t.jsx)("div",{className:"rounded-[20px] bg-white px-[10px] py-[5px] shadow-[rgba(0,0,0,0.16)_0px_1px_4px]",children:(0,t.jsxs)("span",{className:"text-(--color-foreground)",children:["Hola!",(0,t.jsx)("br",{}),"¿Cómo te podemos apoyar? Escríbenos"]})})}),(0,t.jsxs)("div",{className:"relative flex items-center justify-center bg-white px-5 py-[10px]",children:[(0,t.jsx)("div",{className:"absolute left-[18px] h-[70px] w-[70px] overflow-hidden rounded-full",children:(0,t.jsx)(tT.default,{alt:"",className:"h-full w-full object-cover",height:70,src:a,width:70})}),(0,t.jsxs)("a",{className:(0,e6.cn)("flex w-full items-center justify-center gap-2.5 rounded-[50px] bg-brand p-5 pl-24","text-base leading-5 font-semibold text-white transition-colors duration-200","hover:bg-brand-hover focus-visible:outline-2 focus-visible:outline-offset-2","focus-visible:outline-brand motion-reduce:transition-none"),href:e,rel:"nofollow noopener noreferrer",target:"_blank",title:"WhatsApp",onClick:()=>(0,tN.trackContactLinkWhatsapp)({surface:"chat_bubble",destination:e}),children:["Abrir Chat",(0,t.jsx)(tC.ArrowRight,{"aria-hidden":"true",className:"h-[18px] w-[18px]"})]})]})]})]})},t_=({country:e})=>{let i=(0,a.usePathname)(),r=tm[e],o=tf[e],n=(0,tx.useMarketingHeaderHeight)();(0,s.useEffect)(()=>{document.documentElement.style.setProperty("--adipa-chat-panel-headroom",`${n+16}px`)},[n]);let l=!!r&&ty(i,tb),c=!!o&&ty(i,tb);return(0,t.jsxs)(t.Fragment,{children:[r&&l?(0,t.jsx)(tk,{agentImageUrl:r.agentImageUrl,href:r.href}):null,o?(0,t.jsx)(tj,{isVisible:c,scriptUrl:o}):null]})};var tE=e.i(250065),tO=e.i(560446),tF=e.i(966135),tF=tF;let tP=(0,eB.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var tL=e.i(240857),tR=e.i(323288);let tq=(0,eB.default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var tI=e.i(553584);let t$=(0,eB.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),tM=(0,eB.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),tz=(0,eB.default)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]),tD=(0,eB.default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]),tU=(0,eB.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),tH=(0,eB.default)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}
1],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]),tV=(0,eB.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var tG=e.i(124055);let tQ=(0,eB.default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),tK=[{slug:"que-es-el-trauma-complejo",href:"/noticias/que-es-el-trauma-complejo",label:"Noticia · completa",info:"E-01: todos los bloques (imagen, banner intercalado, tabla, cita), editor y experto, referencias, cita APA y banner lateral."},{slug:"senales-tempranas-del-espectro-autista",href:"/noticias/senales-tempranas-del-espectro-autista",label:"Noticia · cluster",info:"E-02: pertenece a un índice de cluster con 3 artículos; sin editor ni experto, la autoría cae en autores."},{slug:"la-salud-mental-no-es-un-lujo",href:"/noticias/la-salud-mental-no-es-un-lujo",label:"Columna de opinión",info:"E-03 + capa 2: articleType opinion, cita escrita a mano (override), sin referencias y sin banner lateral."},{slug:"nuevas-becas-para-profesionales-de-la-salud",href:"/noticias/nuevas-becas-para-profesionales-de-la-salud",label:"Novedad ADIPA · mínima",info:"E-07: sin autores, sin imagen destacada, sin referencias, sin cita y con un solo heading — el índice no se muestra."},{slug:"alianza-terapeutica",href:"/glosario/alianza-terapeutica",label:"Glosario",info:"E-25: kind glossary — sin imagen destacada ni artículos relacionados, con índice A-Z al pie."},{slug:"adipa-en-el-mercurio",href:"/adiprensa/adipa-en-el-mercurio",label:"Prensa",info:"E-22: kind press — link al medio externo, sin autores, sin referencias ni cita (el grupo ACF no aplica a prensa)."}],tB=[{id:"cart",label:"Checkout · carrito base",href:"/checkout",info:"El flujo completo con el carrito por defecto."},{id:"pack",label:"Checkout · con pack",href:"/checkout?scenario=with_pack",info:"Total sobre $250.000: Mercado Pago ofrece 9 y 12 cuotas y aparece Adipago. Con el cupón GIFT500000 el total cae y se ve el reajuste."},{id:"coupon",label:"Checkout · con cupón",href:"/checkout?scenario=with_coupon",info:"Carrito que ya llega con un cupón aplicado."},{id:"free",label:"Checkout · total $0",href:"/checkout?scenario=free",info:"Cupón del 100%: no se pide medio de pago, se confirma la inscripción."},{id:"giftcard",label:"Checkout · giftcard",href:"/checkout?scenario=with_pack",info:"Códigos de prueba en el resumen: ADIPA-REGALO-2026 (saldo alto, deja vuelto), ADIPA-SALDO-PARCIAL (no alcanza y se paga la diferencia), ADIPA-YA-USADA y ADIPA-SIN-PAGAR (rechazos). Sin sesión, el campo ofrece iniciar sesión."},{id:"success",label:"Resultado · compra exitosa",href:"/compra-exitosa?order=48213&scenario=approved",info:"Pago acreditado, con acceso al aula."},{id:"pending",label:"Resultado · pago pendiente",href:"/compra-pendiente?order=48213&scenario=pending",info:"Pago en efectivo o transferencia: muestra la referencia y su vencimiento."},{id:"rejected",label:"Resultado · pago rechazado",href:"/compra-rechazada?order=48213&scenario=rejected",info:"La pasarela rechazó el cobro; el carrito sigue intacto."}];var tX=e.i(668045),tZ=e.i(800928);let tW=[{code:"AR",label:"Argentina"},{code:"CL",label:"Chile"},{code:"MX",label:"México"},{code:"CO",label:"Colombia"}],tY="qa-detalle-curso-normal",tJ=[{title:"Temporalidad",param:"temporality",options:[{label:"Pre-lanzamiento",value:"pre_launch"},{label:"Lanzamiento",value:"launch"}]},{title:"Tema",param:"theme",options:[{label:"Primario",value:"primary"},{label:"Navy",value:"navy"}]},{title:"Tipo de programa",param:"program_type",options:[{label:"Curso",value:"course"},{label:"Diplomado",value:"diploma"},{label:"Especialización",value:"specialization"},{label:"Acreditación",value:"accreditation"},{label:"Postítulo",value:"postitulo"},{label:"Postgrado",value:"postgrado"},{label:"Sesión Magistral",value:"masterclass"}]}],t0="caso",t2="skeleton",t1=[{label:"Skeleton · Normal",value:"banded"},{label:"Skeleton · Preventa",value:"presale"}],t3=[{label:"Cerrado",value:"cerrado",info:"Inscripciones cerradas: muestra el form de recordatorio en vez de la compra."},{label:"Promocional",value:"promocional",info:"Descuento + cuotas + contador, huincha y banner de etapa + cross-sell."}],t6=[{label:"Hero · 1 docente",value:"hero-1",info:'Bloque de docentes (hero y sección) con un solo docente, con bio y "Ver perfil".'},{label:"Hero · 3 docentes",value:"hero-3",info:"Bloque de docentes con tres docentes (stack de avatares)."}],t5="/seminarios/qa-card",t9="/noticias/qa-contrato",t4="estado",t8=[{label:"Todos",value:"",info:"Grilla completa: próximos, en vivo y finalizados, con y sin beneficio."},{label:"Próximos",value:"upcoming",info:"Card con inscripción abierta: beneficio visible y CTA de inscripción."},{label:"En vivo",value:"live",info:"Card durante la transmisión: badge rojo con pulso y CTA de ingreso."},{label:"Finalizados",value:"finished",info:"Card posterior: grabación y material; el beneficio ya no se muestra."}],t7=[{label:"Detalle · Futuro completo",slug:"qa-detalle-futuro",info:"E1: rail de inscripción con countdown, beca, dirigido a, objetivos, docentes con bio y relacionados."},{label:"Detalle · Futuro mínimo",slug:"qa-detalle-futuro-minimo",info:"E2: campos opcionales vacíos — sin beca, sin dirigido a, sin objetivos, docente sin bio; las secciones se omiten."}
1,{label:"Detalle · En vivo",slug:"qa-detalle-en-vivo",info:'E3: ventana de 90 min anclada a la hora actual — "Comenzó hace X min" y countdown al cierre.'},{label:"Detalle · Grabado completo",slug:"qa-detalle-pasado",info:"E6+E7: video, transcripción y Q&A de contenido (módulos nuevos), material con gate y rail Sigue aprendiendo."},{label:"Detalle · Grabado sin video",slug:"qa-detalle-pasado-sin-video",info:'E5: sin grabación ni material — imagen con aviso de "grabación pronto".'}],ae=[{label:"Automático",value:"auto",info:"Usa el cronograma oficial del país y cambia de fase según la hora local."},{label:"Off",value:"off",info:"Campaña invisible: sin huincha y /venta-nocturna redirige a /cursos."},{label:"Pre-venta",value:"presale",info:"Landing visible: guardar/actualizar carrito para el descuento extra."},{label:"Venta activa",value:"live",info:"Landing oculta (/venta-nocturna redirige a /cursos); huincha en vivo."}],at=[{label:"Automático",value:"auto",info:"Usa las fechas del YAML (2 al 19 de octubre, resultados el 12 de noviembre) con hora de Chile. Antes de abrir muestra los ganadores de ediciones anteriores."},{label:"Abierta",value:"open",info:"Convocatoria abierta: formulario al final y CTA fija para enviar el cuento."},{label:"Cerrada",value:"closed",info:"Postulaciones cerradas, jurado evaluando: fecha de resultados y sin formulario."},{label:"Resultados",value:"results",info:"Ganadores anunciados: cuentos, voces de la edición y libro para descargar."}],aa=[{label:"Amarilla",value:"amarilla",info:"Amarillo #FFC728 con texto navy, el color de campaña que el manual deja libre."},{label:"Cyan",value:"cyan",info:"Cyan #2CB7FF con texto navy, usando el secundario de marca."}],as="adipa-dev-campaign",ai="adipa-dev-ribbon";var ar=e.i(818728),ao=e.i(524685);let an=e=>{document.cookie=`${ai}=${e}; path=/; max-age=31536000; SameSite=Lax`,window.location.reload()},al=e=>{document.cookie=e?`${as}=${e}; path=/; max-age=31536000; SameSite=Lax`:`${as}=; path=/; max-age=0; SameSite=Lax`,e&&(document.cookie=`${ar.NIGHT_SALE_PHASE_COOKIE}=off; path=/; max-age=31536000; SameSite=Lax`),window.location.reload()},ac=()=>"u">typeof document&&RegExp(`(?:^|; )${D.ANNUAL_PASS_TEASER_COOKIE}=1`).test(document.cookie),ad=()=>{let e=ac()?"0":"1";document.cookie=`${D.ANNUAL_PASS_TEASER_COOKIE}=${e}; path=/; max-age=31536000; SameSite=Lax`,window.location.reload()},au="adipa-dev-tools-hidden",ap=[{value:"auto",label:"Automático (backend real)"},{value:"activo",label:"Simular pase activo"},{value:"sin_pase",label:"Simular sin pase"}],ah={auto:"Automático",activo:"Pase activo",sin_pase:"Sin pase"},am="flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm font-semibold transition duration-150 ease-out",af="rounded-xl px-3 py-2 text-left text-xs font-semibold transition duration-150 ease-out",ab=({current:e})=>{let i,r=(0,a.usePathname)(),o=(0,a.useSearchParams)(),n=(0,a.useRouter)(),l=(0,s.useRef)(null),[c,d]=(0,s.useState)(!1),[u,p]=(0,s.useState)(!1),[h,m]=(0,s.useState)("root"),[f,b]=(0,s.useState)(""),[x,g]=(0,s.useState)({}),[y,v]=(0,s.useState)("auto"),[w,j]=(0,s.useState)(!1),[C,A]=(0,s.useState)("presale"),[T,N]=(0,s.useState)("auto"),[S,_]=(0,s.useState)(!1),[E,O]=(0,s.useState)(""),[F,P]=(0,s.useState)("amarilla"),[L,R]=(0,s.useState)(""),q=r?.startsWith("/cursos/")?r.split("/").filter(Boolean).at(1):null;(0,s.useEffect)(()=>{try{p("1"===sessionStorage.getItem(au))}catch{p(!1)}},[]),(0,s.useEffect)(()=>{let e;if(!c)return;let t=window.location.search;b(t),g((e=new URLSearchParams(t),tJ.reduce((t,a)=>{let s=e.get(a.param);return s?{...t,[a.param]:s}:t},{}))),v((()=>{if("u"<typeof document)return"auto";let e=document.cookie.match(RegExp(`(?:^|; )${D.ANNUAL_PASS_SIMULATED_COOKIE}=([^;]*)`));return e?.[1]==="1"?"activo":e?.[1]==="0"?"sin_pase":"auto"})()),j(ac()),A((()=>{if("u"<typeof document)return"off";let e=document.cookie.match(RegExp(`(?:^|; )${ar.NIGHT_SALE_PHASE_COOKIE}=([^;]*)`));return e?.[1]??"off"})()),N((()=>{if("u"<typeof document)return"auto";let e=document.cookie.match(RegExp(`(?:^|; )${ao.PALABRAS_STAGE_COOKIE}
1=([^;]*)`));return e?.[1]??"auto"})()),_("1"===localStorage.getItem(tX.VN_DEV_SAVE_ERROR_STORAGE_KEY)),O((()=>{if("u"<typeof document)return"";let e=document.cookie.match(RegExp(`(?:^|; )${as}=([^;]*)`));return e?.[1]??""})()),P((()=>{if("u"<typeof document)return"amarilla";let e=document.cookie.match(RegExp(`(?:^|; )${ai}=([^;]*)`));return e?.[1]??"amarilla"})())},[c,r]),(0,s.useEffect)(()=>{let e=e=>{let{target:t}=e;!(t instanceof Node)||l.current?.contains(t)||d(!1)};return c&&document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[c]);let I=(e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1 pb-2 pt-1",children:[a?(0,t.jsx)("button",{"aria-label":"Volver",className:"inline-flex size-7 items-center justify-center rounded-lg text-white/70 transition hover:bg-white/10 hover:text-white",type:"button",onClick:()=>m(a),children:(0,t.jsx)(tP,{className:"size-4"})}):null,(0,t.jsx)("span",{className:"flex-1 font-mono text-[10px] font-bold uppercase tracking-wider text-white/45",children:e})]}),$=(e,a,s)=>(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":a,className:(0,e6.cn)(am,a?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>s(e.value),children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),a?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.label),M=new URLSearchParams(f).get(t0),z=new URLSearchParams(f).get(t2),U=r===t5,H=new URLSearchParams(f).get(t4),V=r===t9,G=e=>{let t=new URLSearchParams(f);t.get(t0)===e?t.delete(t0):t.set(t0,e);let a=t.toString(),s=`/cursos/${tY}`;b(a?`?${a}`:""),n.push(a?`${s}?${a}`:s)},Q=e=>{let a=q===tY&&M===e.value,s=(0,e6.cn)(af,"flex items-center justify-between gap-1.5",a?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-left",children:e.label}),e.info?(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"}):null]});return e.info?(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsx)(tZ.TooltipTrigger,{"aria-pressed":a,className:s,type:"button",onClick:()=>G(e.value),children:i}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.value):(0,t.jsx)("button",{"aria-pressed":a,className:s,type:"button",onClick:()=>G(e.value),children:i},e.value)},K=Object.keys(x).length>0;if("countries"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Países","root"),(0,t.jsx)("div",{className:"grid gap-1",children:tW.map(({code:a,label:s})=>{let i=e===a;return(0,t.jsxs)("button",{className:(0,e6.cn)(am,i?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{document.cookie=`${eU.DEV_COUNTRY_COOKIE}=${a}; path=/; max-age=31536000; SameSite=Lax`,localStorage.removeItem("adipa-cart"),localStorage.removeItem(tp.SAVED_CART_STORAGE_KEY),window.location.reload()},children:[(0,t.jsx)("span",{className:"flex-1",children:s}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:a}),i?(0,t.jsx)(eZ.Check,{className:"size-4"}):null]},a)})})]});else if("palabras"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("En tus Palabras","root"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Etapa del concurso en /entuspalabras. Solo Chile; en producción la deciden las fechas del YAML."}),(0,t.jsx)("div",{className:"grid gap-1",children:at.map(e=>{let a=T===e.value;return(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":a,className:(0,e6.cn)(am,a?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{var t;return t=e.value,void(document.cookie=`${ao.PALABRAS_STAGE_COOKIE}=${t}; path=/; max-age=31536000; SameSite=Lax`,window.location.reload())},children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:e.value}),a?(0,t.jsx)(eZ.Check,{className:"size-4"}
1):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.value)})})]});else if("annual-pass"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Pase Anual","root"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Sin sesión y con sesión salen del login real. En automático, el pase lo decide el backend; las otras dos opciones lo simulan. Aplica a la landing y a la cuenta."}),ap.map(e=>(0,t.jsxs)("button",{"aria-pressed":y===e.value,className:(0,e6.cn)(am,y===e.value?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{var t;let a;return t=e.value,a=`${D.ANNUAL_PASS_SIMULATED_COOKIE}=${"activo"===t?"1":"0"}; path=/; max-age=${31536e3*("auto"!==t)}`,void(document.cookie=`${a}; SameSite=Lax`,window.location.reload())},children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),y===e.value?(0,t.jsx)(eZ.Check,{className:"size-4"}):null]},e.value)),(0,t.jsx)("div",{className:"my-2 border-t border-white/10"}),(0,t.jsxs)("button",{"aria-pressed":w,className:(0,e6.cn)(am,w?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:ad,children:[(0,t.jsx)("span",{className:"flex-1",children:"Simular teaser (21 y 22)"}),w?(0,t.jsx)(eZ.Check,{className:"size-4"}):null]}),(0,t.jsx)("div",{className:"my-2 border-t border-white/10"}),(0,t.jsx)("button",{className:(0,e6.cn)(am,"/pase-anual"===r?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>n.push("/pase-anual"),children:(0,t.jsx)("span",{className:"flex-1",children:"Ir a la landing"})})]});else if("product"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Detalle de producto","root"),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("product-layers"),children:[(0,t.jsx)(tM,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Combinar capas"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("product-scenarios"),children:[(0,t.jsx)(tz,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Escenarios de ejemplo"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]})]}),(0,t.jsx)("div",{className:"my-2 border-t border-white/10"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"px-1 pb-1.5 font-mono text-[10px] font-bold uppercase tracking-wider text-white/45",children:"Skeletons"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1",children:t1.map(e=>(0,t.jsx)("button",{"aria-pressed":z===e.value,className:(0,e6.cn)(af,z===e.value?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{var t;let a,s,i;return t=e.value,a=q??tY,(s=new URLSearchParams(f)).get(t2)===t?s.delete(t2):s.set(t2,t),void(b((i=s.toString())?`?${i}`:""),n.push(i?`/cursos/${a}?${i}`:`/cursos/${a}`))},children:e.label},e.value))})]})]});else if("product-layers"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Combinar capas","product"),(0,t.jsx)("div",{className:"grid gap-3",children:tJ.map(e=>{let a=x[e.param];return(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"px-1 pb-1.5 font-mono text-[10px] font-bold uppercase tracking-wider text-white/45",children:e.title}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1",children:e.options.map(s=>{let i=a===s.value;return(0,t.jsx)("button",{"aria-pressed":i,className:(0,e6.cn)(af,i?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{var t,a;return t=e.param,a=s.value,void g(e=>{let s={...e};return s[t]===a?delete s[t]:s[t]=a,s})},children:s.label},s.value)})})]},e.param)})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 border-t border-white/10 pt-3",children:[(0,t.jsxs)("button",{className:(0,e6.cn)("inline-flex h-9 items-center justify-center gap-2 rounded-xl px-3 text-xs font-bold transition",K?"bg-brand text-white hover:bg-brand-hover":"cursor-not-allowed bg-white/10 text-white/35"),disabled:!K,type:"button",onClick:()=>
1{if(!K)return;let e=q??tY,t=new URLSearchParams(f);tJ.forEach(e=>{let a=x[e.param];a?t.set(e.param,a):t.delete(e.param)});let a=t.toString(),s=a?`/cursos/${e}?${a}`:`/cursos/${e}`;b(a?`?${a}`:""),n.push(s)},children:[(0,t.jsx)(tF.default,{className:"size-4"}),"Aplicar"]}),(0,t.jsx)("button",{className:(0,e6.cn)("inline-flex h-9 items-center justify-center rounded-xl border px-3 text-xs font-bold transition",K?"border-white/15 text-white/75 hover:bg-white/10 hover:text-white":"cursor-not-allowed border-white/10 text-white/30"),disabled:!K,type:"button",onClick:()=>{if(!K)return;let e=q??tY,t=new URLSearchParams(f);tJ.forEach(e=>t.delete(e.param));let a=t.toString(),s=a?`/cursos/${e}?${a}`:`/cursos/${e}`;g({}),b(a?`?${a}`:""),n.push(s)},children:"Limpiar"})]})]});else if("seminars"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Seminarios","root"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Card del rediseño con datos mock. El copy del certificado y la moneda siguen al país activo."}),(0,t.jsx)("div",{className:"grid gap-1",children:t8.map(e=>{let a=U&&(H??"")===e.value;return(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":a,className:(0,e6.cn)(am,a?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{var t;return t=e.value,void n.push(t?`${t5}?${t4}=${t}`:t5)},children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),a?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.value||"all")})}),(0,t.jsx)("p",{className:"px-1 pb-2 pt-3 text-[11px] leading-snug text-white/40",children:"Interior de seminario: un escenario QA por estado del contrato."}),(0,t.jsx)("div",{className:"grid gap-1",children:t7.map(e=>{let a=`/seminarios/${e.slug}`,s=r===a;return(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":s,className:(0,e6.cn)(am,s?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>n.push(a),children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),s?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.slug)})})]});else if("checkout"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Checkout","root"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"El flujo y sus tres superficies de resultado, sin armar la URL a mano."}),(0,t.jsx)("div",{className:"grid gap-1",children:tB.map(e=>{let a=o.toString(),s=(a?`${r}?${a}`:r)===e.href;return(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":s,className:(0,e6.cn)(am,s?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>n.push(e.href),children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),s?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.id)})})]});else if("articles"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Noticias","root"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Escenarios QA del detalle sobre el mock, uno por caso de la matriz."}),(0,t.jsx)("div",{className:"grid gap-1",children:tK.map(e=>{let a=r===e.href;return(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":a,className:(0,e6.cn)(am,a?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>n.push(e.href),children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),a?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.slug)})}),(0,t.jsxs)("div",{className:"grid gap-1 pt-3",children:[(0,t.jsx)("button",{className:(0,e6.cn)(am,"/noticias"===r?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>
1n.push("/noticias"),children:(0,t.jsx)("span",{className:"flex-1",children:"Ir al listado"})}),(0,t.jsx)("button",{className:(0,e6.cn)(am,V?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>n.push(t9),children:(0,t.jsx)("span",{className:"flex-1",children:"Vista de contrato"})})]})]});else if("venta-nocturna"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Venta Nocturna","campaign"),(0,t.jsx)("div",{className:"grid gap-1",children:ae.map(e=>{let a=C===e.value;return(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":a,className:(0,e6.cn)(am,a?"bg-brand text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{var t;let a;return t=e.value,a=`${ar.NIGHT_SALE_PHASE_COOKIE}=${t}`,void(document.cookie=`${a}; path=/; max-age=31536000; SameSite=Lax`,window.location.reload())},children:[(0,t.jsx)("span",{className:"flex-1",children:e.label}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:e.value}),a?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:e.info})]},e.value)})}),(0,t.jsx)("div",{className:"my-2 border-t border-white/10"}),(0,t.jsxs)(tZ.Tooltip,{children:[(0,t.jsxs)(tZ.TooltipTrigger,{"aria-pressed":S,className:(0,e6.cn)(am,S?"bg-error/80 text-white":"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{let e=!S;e?localStorage.setItem(tX.VN_DEV_SAVE_ERROR_STORAGE_KEY,"1"):localStorage.removeItem(tX.VN_DEV_SAVE_ERROR_STORAGE_KEY),_(e)},children:[(0,t.jsx)("span",{className:"flex-1",children:"Fallar al guardar"}),S?(0,t.jsx)(eZ.Check,{className:"size-4"}):(0,t.jsx)(t$,{"aria-hidden":!0,className:"size-3.5 shrink-0 opacity-60"})]}),(0,t.jsx)(tZ.TooltipContent,{positionerClassName:"z-[110]",side:"left",children:"Simula un error del endpoint al guardar/actualizar el carrito nocturno (toast de error)."})]})]});else if("campaign"===h)i=(0,t.jsxs)(t.Fragment,{children:[I("Campañas","root"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Cada campaña con sus estados reales. Encienden todas las superficies a la vez: huincha, hero del home, contador, cupones y header de /cursos."}),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("venta-nocturna"),children:[(0,t.jsx)(tU,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Venta Nocturna"}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:C}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsx)("div",{className:"-mx-1 max-h-[min(24rem,55vh)] overflow-y-auto overscroll-contain border-y border-white/10 px-1 pb-1 [scrollbar-color:rgb(255_255_255/0.25)_transparent] [scrollbar-width:thin]",children:[...tW.filter(t=>t.code===e),...tW.filter(t=>t.code!==e)].map(e=>({country:e,campaigns:eD.filter(t=>t.byCountry[e.code])})).filter(e=>e.campaigns.length>0).map(a=>(0,t.jsxs)("div",{"aria-labelledby":`dev-campaigns-${a.country.code}`,role:"group",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 px-3 pb-1 pt-3 text-[10px] font-bold uppercase tracking-wider text-white/45",id:`dev-campaigns-${a.country.code}`,children:[(0,t.jsx)("span",{className:"flex-1",children:a.country.label}),a.country.code===e?(0,t.jsx)("span",{className:"rounded-full bg-white/10 px-2 py-0.5 normal-case tracking-normal text-white/70",children:"país actual"}):null]}),(0,t.jsx)("div",{className:"grid gap-1",children:a.campaigns.map(e=>{let a=e.devStates.find(e=>e.id===E);return(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{R(e.id),m("campaign-states")},children:[(0,t.jsx)(tD,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:e.label}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:a?.label.toLowerCase()??"off"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]},e.id)})})]},a.country.code))}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/60 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("campaign-demos"),children:[(0,t.jsx)("span",{className:"flex-1",children:"Demos y variantes"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]})]})]});else if("campaign-states"===h){let e=eD.find(e=>e.id===L),a=[{label:"Off",value:"",info:"Sin override: se usa lo que venga del backend/mock del país."},...(e?.devStates??[]).map(e=>({label:e.label,value:e.id,info:e.info}))];i=(0,t.jsxs)(t.Fragment,{children:[I(e?.label??"Campaña","campaign"),(0,t.jsxs)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:["Corre en ",Object.keys(e?.byCountry??{}).join(" · "),". Cada estado fuerza la fecha real de ese tramo."]}),(0,t.jsx)("div",{className:"grid gap-1",children:a.map(e=>$(e,E===e.value,al))})]})}else if("campaign-demos"===h){let e=[{label:"Demo completa",value:"on",info:"Campaña demo genérica con los 4 elementos del contrato."},...k.map(e=>({label:e.label,value:e.id,info:e.info}))];i=(0,t.jsxs)(t.Fragment,{children:[I("Demos y variantes","campaign"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Exploraciones visuales, no la campaña real."}),(0,t.jsx)("div",{className:"grid gap-1",children:e.map(e=>$(e,E===e.value,al))}),(0,t.jsx)("p",{className:"px-1 pb-2 pt-4 text-[11px] leading-snug text-white/40",children:"Color de la huinch
1a — simula el campo color_bg_huincha del panel."}),(0,t.jsx)("div",{className:"grid gap-1",children:aa.map(e=>$(e,F===e.value,an))})]})}else i="product-scenarios"===h?(0,t.jsxs)(t.Fragment,{children:[I("Escenarios de ejemplo","product"),(0,t.jsx)("p",{className:"px-1 pb-2 text-[11px] leading-snug text-white/40",children:"Todos sobre la misma base: solo cambia lo indicado."}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"px-1 pb-1.5 font-mono text-[10px] font-bold uppercase tracking-wider text-white/45",children:"Estados especiales"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1",children:t3.map(Q)})]}),(0,t.jsx)("div",{className:"my-2 border-t border-white/10"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"px-1 pb-1.5 font-mono text-[10px] font-bold uppercase tracking-wider text-white/45",children:"Variantes de elemento"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-1",children:t6.map(Q)})]})]}):(0,t.jsxs)(t.Fragment,{children:[I("Dev tools"),(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("countries"),children:[(0,t.jsx)(tq,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Países"}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:e}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("annual-pass"),children:[(0,t.jsx)(tE.BadgeCheck,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Pase Anual"}),(0,t.jsx)("span",{className:"text-[10px] text-white/45",children:ah[y]}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("palabras"),children:[(0,t.jsx)(tO.BookOpen,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"En tus Palabras"}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:T}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("product"),children:[(0,t.jsx)(tI.GraduationCap,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Detalle de producto"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("seminars"),children:[(0,t.jsx)(tQ,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Seminarios"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("articles"),children:[(0,t.jsx)(tH,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Noticias"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("checkout"),children:[(0,t.jsx)(tG.ShoppingCart,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Checkout"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/80 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>m("campaign"),children:[(0,t.jsx)(tD,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Campañas"}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-white/45",children:E||"off"}),(0,t.jsx)(tL.ChevronRight,{className:"size-4 text-white/40"})]})]}),(0,t.jsx)("div",{className:"my-2 border-t border-white/10"}),(0,t.jsxs)("button",{className:(0,e6.cn)(am,"text-white/75 hover:bg-white/10 hover:text-white"),type:"button",onClick:()=>{try{sessionStorage.setItem(au,"1")}
1catch{return}d(!1),p(!0)},children:[(0,t.jsx)(tR.EyeOff,{className:"size-4 shrink-0 text-white/50"}),(0,t.jsx)("span",{className:"flex-1",children:"Ocultar esta burbuja"})]})]});return u?null:(0,t.jsxs)("div",{className:"fixed left-4 top-4 z-100 flex flex-col-reverse items-start gap-2",ref:l,children:[c?(0,t.jsx)("div",{className:"w-[min(18rem,calc(100vw-2rem))] overflow-hidden rounded-2xl border border-white/10 bg-navy/95 p-2 text-white shadow-2xl backdrop-blur-sm",children:(0,t.jsx)(tZ.TooltipProvider,{delay:150,children:i})}):null,(0,t.jsx)("button",{"aria-expanded":c,"aria-label":"Herramientas de desarrollo",className:(0,e6.cn)("inline-flex size-11 items-center justify-center rounded-full border border-white/10","bg-navy/95 text-white shadow-2xl backdrop-blur-sm transition duration-150 ease-out","hover:scale-105 hover:bg-brand focus-visible:outline-2 focus-visible:outline-offset-2","focus-visible:outline-brand",c&&"bg-brand"),title:"Herramientas de desarrollo",type:"button",onClick:()=>{m("root"),d(e=>!e)},children:(0,t.jsx)(tV,{className:"size-5"})})]})};var ax=e.i(578334),ag=e.i(360027);let ay=e=>(0,ag.resolveCartItemUrl)(e),av=({checkoutUrl:e="/checkout",checkoutExternal:s=!1,vnPhase:i,savedIds:r})=>{let o=(0,a.useRouter)();return(0,t.jsx)(e1.CartSheetWidget,{checkoutUrl:e,emptyStateUrl:"/cursos#catalogo",notice:"presale"===i?void 0:"Los cupones y descuentos se aplican en el checkout.",resolveCourseUrl:ay,savedIds:r,vnPhase:i,onCheckoutClick:()=>{s||!e.startsWith("/")?window.location.assign(e):o.push(e)},onItemNavigate:e=>o.push(ay(e)),onItemRemove:ax.trackCartItemRemove})};var aw=e.i(349314);e.s(["default",0,({country:e,showDevTools:r,nightSalePhase:n})=>{let l=(0,a.usePathname)(),c=(0,i.useAuth)(e=>e.user),d=(0,tp.useSavedCart)(e=>e.snapshotsByUser),u=(0,s.useMemo)(()=>{let e=c?d[c.id]:null;return e?.items.map(e=>e.id)},[d,c]);return l?.startsWith("/widgets/")?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ti,{}),(0,t.jsx)(o,{}),(0,t.jsx)(av,{checkoutExternal:(0,aw.isLegacyCartCheckout)(),checkoutUrl:(0,aw.getCartCheckoutUrl)(),savedIds:u,vnPhase:n}),(0,t.jsx)(t_,{country:e}),(0,t.jsx)(e5,{}),(0,t.jsx)(eK,{country:e}),(0,t.jsx)(tu,{}),r?(0,t.jsx)(ab,{current:e}):null]})}],115452)},624184,e=>{"use strict";var t=e.i(340922),a=e.i(498337),s=e.i(695555);let i={AR:{timeZone:"America/Argentina/Buenos_Aires",presaleWindows:[{startsAt:"2026-07-21T08:30",endsAt:"2026-07-23T18:00"}],liveWindows:[{startsAt:"2026-07-23T18:00",endsAt:"2026-07-24T01:00"}]},CL:{timeZone:"America/Santiago",presaleWindows:[{startsAt:"2026-07-21T08:30",endsAt:"2026-07-23T18:00"}],liveWindows:[{startsAt:"2026-07-23T18:00",endsAt:"2026-07-24T01:00"}]},MX:{timeZone:"America/Mexico_City",presaleWindows:[{startsAt:"2026-07-13T08:30",endsAt:"2026-07-15T18:00"}],liveWindows:[{startsAt:"2026-07-15T18:00",endsAt:"2026-07-16T01:00"},{startsAt:"2026-07-16T18:00",endsAt:"2026-07-17T01:00"}]},CO:{timeZone:"America/Bogota",presaleWindows:[{startsAt:"2026-07-13T08:30",endsAt:"2026-07-15T18:00"}],liveWindows:[{startsAt:"2026-07-15T18:00",endsAt:"2026-07-16T01:00"},{startsAt:"2026-07-16T18:00",endsAt:"2026-07-17T01:00"}]}};e.s(["NightSaleScheduleRefresh",0,({country:e,initialPhase:r,input:o})=>{let n=(0,t.useRouter)();return(0,a.useEffect)(()=>{if("auto"!==o)return;let t=!1,a=()=>{t||((e,t)=>{let a=i[e];if(!a||Number.isNaN(t.getTime()))return"off";let r=(0,s.formatWallClock)(t,a.timeZone);return a.liveWindows.some(({startsAt:e,endsAt:t})=>r>=e&&r<t)?"live":a.presaleWindows.some(({startsAt:e,endsAt:t})=>r>=e&&r<t)?"presale":"off"})(e,new Date)!==r&&(t=!0,n.refresh())};a();let l=window.setInterval(a,1e3);return()=>window.clearInterval(l)},[e,r,o,n]),null}],624184)},388959,e=>{"use strict";var t=e.i(340922),a=e.i(498337),s=e.i(686690),i=e.i(486080),r=e.i(359799);e.s(["AnalyticsTracker",0,({country:e})=>{let o=(0,t.usePathname)(),n=(0,r.useAuth)(e=>e.user?.id);return(0,a.useEffect)(()=>{(0,i.setAnalyticsCountry)(e)},[e]),(0,a.useEffect)(()=>{if(!n)return void(0,i.setAnalyticsUserProfile)(null);let e=new AbortController;return fetch("/api/account/form-prefill",{signal:e.signal}).then(e=>e.ok?e.json():{}).then(e=>(0,i.setAnalyticsUserProfile)(e)).catch(()=>(0,i.setAnalyticsUserProfile)(null)),()=>e.abort()},[n]),(0,a.useEffect)(()=>{!o||o.startsWith("/widgets/")||(0,i.trackEvent)("page_view",{page_location:window.location.href,page_title:document.title,page_type:(0,s.resolveGtagPageType)(o)})},[o]),null}])},737729,e=>{"use strict";var t=e.i(660698),a=e.i(340922),s=e.i(519508),i=e.i(498337);e.s(["HubSpotTracking",0,({portalId:e})=>{let r=(0,a.usePathname)(),o=(0,i.useRef)(!0);return(0,i.useEffect)(()=>{let e;if(!r)return;if(o.current){o.current=!1;return}let t=((e=window)._hsq=e._hsq??[],e._hsq);t.push(["setPath",`${window.location.pathname}${window.location.search}`]),t.push(["trackPageView"])},[r]),(0,t.jsx)(s.default,{id:"hs-script-loader",src:`https://js.hs-scripts.com/${e}.js`,strategy:"afterInteractive"})}])},987499,e=>{"use strict";var t=e.i(498337),a=e.i(359799);let s=async()=>{try{let e=await fetch("/api/account/avatar"),{avatarUrl:t}=await e.json();if(!t)return;let{user:s}=a.useAuth.getState();s&&!s.avatar_url&&a.useAuth.setState({user:{...s,avatar_url:t}})}catch{}};e.s(["SessionSync",0,({initialUser:e})=>{let i=(0,t.useRef)(!1);if(!i.current)if(i.current=!0,e){let t=a.useAuth.getState().user?.avatar_url;a.useAuth.setState({user:{id:e.id,name:e.name,email:e.email,avatar_url:e.image??t,provider:"keycloak"}})}else a.useAuth.setState({user:null});return(0,t.useEffect)(()=>{e&&!a.useAuth.getState().user?.avatar_url&&s()},[e]),null}])},788958,e=>{"use strict";var t=e.i(340922),a=e.i(498337),s=e.i(918035);e.s(["RoutePathnameSync",0,()=>{let e=(0,t.usePathname)(),i=(0,s.useRoutePathname)(e=>e.setPathname);return(0,a.useEffect)(()=>{i(e)},[e,i]),null}])},153322,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function({html:e,height:t=null,width:a=null,children:r,dataNtpc:o=""}){return(0,i.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})}
1,[o]),(0,s.jsxs)(s.Fragment,{children:[r,e?(0,s.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=a?`${a}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})};let s=e.r(660698),i=e.r(498337)},610909,(e,t,a)=>{"use strict";var s=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.sendGTMEvent=void 0,a.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:a,dataLayerName:s="dataLayer",auth:l,preview:c,dataLayer:d,nonce:u}=e;n=s;let p=new URL(a||"https://www.googletagmanager.com/gtm.js");return t&&p.searchParams.set("id",t),"dataLayer"!==s&&p.searchParams.set("l",s),l&&p.searchParams.set("gtm_auth",l),c&&(p.searchParams.set("gtm_preview",c),p.searchParams.set("gtm_cookies_win","x")),(0,r.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
2      (function(w,l){
3        w[l]=w[l]||[];
4        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
5        ${d?`w[l].push(${JSON.stringify(d)})`:""}
6      })(window,'${s}');`},nonce:u}),(0,i.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:p.href,nonce:u})]})};let i=e.r(660698),r=e.r(498337),o=s(e.r(519508)),n="dataLayer";a.sendGTMEvent=(e,t)=>{let a=t||n;window[a]=window[a]||[],window[a].push(e)}},707949,(e,t,a)=>{"use strict";let s;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.GoogleAnalytics=function(e){let{gaId:t,debugMode:a,dataLayerName:i="dataLayer",nonce:l}=e;return void 0===s&&(s=i),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
7          window['${i}'] = window['${i}'] || [];
8          function gtag(){window['${i}'].push(arguments);}
9          gtag('js', new Date());
10
11          gtag('config', '${t}' ${a?",{ 'debug_mode': true }":""});`},nonce:l}),(0,r.jsx)(n.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},a.sendGAEvent=function(){void 0===s?console.warn("@next/third-parties: GA has not been initialized"):window[s]?window[s].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${s} does not exist`)};let r=e.r(660698),o=e.r(498337),n=i(e.r(519508))}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.