PageSourceSearch

https://nlinea.nl.gob.mx/_nuxt/qTCmevQT.js

js nl.gob.mx collected 2026-09-24 09:24:04 UTC 59,621 bytes, 1 lines download raw bytes

1import{fd as nt,fe as Ve,ff as ye,fg as Ht,fh as gt,fi as bt,fj as ze,X as Ue,Z as Ge,cd as je,a1 as Fe,a3 as We,I as $e,fk as qe,fl as Qe,fm as Ke,fn as Xe,_ as Mt,a4 as we,o as w,b as k,w as b,d as R,h as S,M as ct,N as yt,e as z,aH as Ot,b9 as St,R as E,Q as D,f as L,V as dt,fo as Ye,b8 as Je,fp as Ze,fq as tn,fr as en,fs as nn,ft as on,fu as sn,fv as ln,by as Bt,j as ft,bz as rn,be as Nt,bv as Vt,O as jt,c as an,bi as cn,bd as dn,aF as fn,L as xt,g as un,P as hn,cS as ee,az as pn}from"./DDDL0Jn_.js";import{f as zt}from"./CEN171sj.js";import{i as ne}from"./BAD-3r6c.js";import{i as mn}from"./D1hLHx03.js";import{i as gn}from"./z7mQQLb5.js";import"./ciG39NzV.js";import"./FXZaW1gO.js";import"./D3Ff4FMM.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"8d1006f63956406f81992318d8812f4374ba5f92"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="00b480bb-976e-4ca9-88a9-c26d0ab75a54",t._sentryDebugIdIdentifier="sentry-dbid-00b480bb-976e-4ca9-88a9-c26d0ab75a54")}catch{}})();const be=["top","right","bottom","left"],oe=["start","end"],ie=be.reduce((t,e)=>t.concat(e,e+"-"+oe[0],e+"-"+oe[1]),[]),Z=Math.min,N=Math.max,Tt=Math.round,Y=t=>({x:t,y:t}),yn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ft(t,e,o){return N(t,Z(e,o))}function ot(t,e){return typeof t=="function"?t(e):t}function W(t){return t.split("-")[0]}function q(t){return t.split("-")[1]}function ve(t){return t==="x"?"y":"x"}function Qt(t){return t==="y"?"height":"width"}function X(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Kt(t){return ve(X(t))}function xe(t,e,o){o===void 0&&(o=!1);const i=q(t),n=Kt(t),s=Qt(n);let l=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(l=Dt(l)),[l,Dt(l)]}function wn(t){const e=Dt(t);return[kt(t),e,kt(e)]}function kt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const se=["left","right"],le=["right","left"],bn=["top","bottom"],vn=["bottom","top"];function xn(t,e,o){switch(t){case"top":case"bottom":return o?e?le:se:e?se:le;case"left":case"right":return e?bn:vn;default:return[]}}function Cn(t,e,o,i){const n=q(t);let s=xn(W(t),o==="start",i);return n&&(s=s.map(l=>l+"-"+n),e&&(s=s.concat(s.map(kt)))),s}function Dt(t){const e=W(t);return yn[e]+t.slice(e.length)}function Rn(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xt(t){return typeof t!="number"?Rn(t):{top:t,right:t,bottom:t,left:t}}function ht(t){const{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function re(t,e,o){let{reference:i,floating:n}=t;const s=X(e),l=Kt(e),r=Qt(l),a=W(e),c=s==="y",f=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,u=i[r]/2-n[r]/2;let h;switch(a){case"top":h={x:f,y:i.y-n.height};break;case"bottom":h={x:f,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}switch(q(e)){case"start":h[l]-=u*(o&&c?-1:1);break;case"end":h[l]+=u*(o&&c?-1:1);break}return h}async function _n(t,e){var o;e===void 0&&(e={});const{x:i,y:n,platform:s,rects:l,elements:r,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:h=0}=ot(e,t),p=Xt(h),g=r[u?d==="floating"?"reference":"floating":d],y=ht(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(g)))==null||o?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:c,rootBoundary:f,strategy:a})),x=d==="floating"?{x:i,y:n,width:l.floating.width,height:l.floating.height}:l.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),_=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},A=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:x,offsetParent:v,strategy:a}):x);return{top:(y.top-A.top+p.top)/_.y,bottom:(A.bottom-y.bottom+p.bottom)/_.y,left
1:(y.left-A.left+p.left)/_.x,right:(A.right-y.right+p.right)/_.x}}const An=50,On=async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:l}=o,r=l.detectOverflow?l:{...l,detectOverflow:_n},a=await(l.isRTL==null?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:d}=re(c,i,a),u=i,h=0;const p={};for(let m=0;m<s.length;m++){const g=s[m];if(!g)continue;const{name:y,fn:x}=g,{x:v,y:_,data:A,reset:O}=await x({x:f,y:d,initialPlacement:i,placement:u,strategy:n,middlewareData:p,rects:c,platform:r,elements:{reference:t,floating:e}});f=v??f,d=_??d,p[y]={...p[y],...A},O&&h<An&&(h++,typeof O=="object"&&(O.placement&&(u=O.placement),O.rects&&(c=O.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:n}):O.rects),{x:f,y:d}=re(c,u,a)),m=-1)}return{x:f,y:d,placement:u,strategy:n,middlewareData:p}},Sn=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:s,platform:l,elements:r,middlewareData:a}=e,{element:c,padding:f=0}=ot(t,e)||{};if(c==null)return{};const d=Xt(f),u={x:o,y:i},h=Kt(n),p=Qt(h),m=await l.getDimensions(c),g=h==="y",y=g?"top":"left",x=g?"bottom":"right",v=g?"clientHeight":"clientWidth",_=s.reference[p]+s.reference[h]-u[h]-s.floating[p],A=u[h]-s.reference[h],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let T=O?O[v]:0;(!T||!await(l.isElement==null?void 0:l.isElement(O)))&&(T=r.floating[v]||s.floating[p]);const P=_/2-A/2,H=T/2-m[p]/2-1,C=Z(d[y],H),M=Z(d[x],H),B=C,V=T-m[p]-M,I=T/2-m[p]/2+P,$=Ft(B,I,V),F=!a.arrow&&q(n)!=null&&I!==$&&s.reference[p]/2-(I<B?C:M)-m[p]/2<0,U=F?I<B?I-B:I-V:0;return{[h]:u[h]+U,data:{[h]:$,centerOffset:I-$-U,...F&&{alignmentOffset:U}},reset:F}}});function Tn(t,e,o){return(t?[...o.filter(n=>q(n)===t),...o.filter(n=>q(n)!==t)]:o.filter(n=>W(n)===n)).filter(n=>t?q(n)===t||(e?kt(n)!==n:!1):!0)}const kn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;const{rects:s,middlewareData:l,placement:r,platform:a,elements:c}=e,{crossAxis:f=!1,alignment:d,allowedPlacements:u=ie,autoAlignment:h=!0,...p}=ot(t,e),m=d!==void 0||u===ie?Tn(d||null,h,u):u,g=await a.detectOverflow(e,p),y=((o=l.autoPlacement)==null?void 0:o.index)||0,x=m[y];if(x==null)return{};const v=xe(x,s,await(a.isRTL==null?void 0:a.isRTL(c.floating)));if(r!==x)return{reset:{placement:m[0]}};const _=[g[W(x)],g[v[0]],g[v[1]]],A=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:x,overflows:_}],O=m[y+1];if(O)return{data:{index:y+1,overflows:A},reset:{placement:O}};const T=A.map(C=>{const M=q(C.placement);return[C.placement,M&&f?C.overflows.slice(0,2).reduce((B,V)=>B+V,0):C.overflows[0],C.overflows]}).sort((C,M)=>C[1]-M[1]),H=((n=T.filter(C=>C[2].slice(0,q(C[0])?2:3).every(M=>M<=0))[0])==null?void 0:n[0])||T[0][0];return H!==r?{data:{index:y+1,overflows:A},reset:{placement:H}}:{}}}},Dn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:n,middlewareData:s,rects:l,initialPlacement:r,platform:a,elements:c}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=ot(t,e);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const y=W(n),x=X(r),v=W(r)===r,_=await(a.isRTL==null?void 0:a.isRTL(c.floating)),A=u||(v||!m?[Dt(r)]:wn(r)),O=p!=="none";!u&&O&&A.push(...Cn(r,m,p,_));const T=[r,...A],P=await a.detectOverflow(e,g),H=[];let C=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&H.push(P[y]),d){const I=xe(n,l,_);H.push(P[I[0]],P[I[1]])}if(C=[...C,{placement:n,overflows:H}],!H.every(I=>I<=0)){var M,B;const I=(((M=s.flip)==null?void 0:M.index)||0)+1,$=T[I];if($&&(!(d==="alignment"?x!==X($):!1)||C.every(G=>X(G.placement)===x?G.overflows[0]>0:!0)))return{data:{index:I,overflows:C},reset:{placement:$}};let F=(B=C.filter(U=>U.overflows[0]<=0).sort((U,G)=>U.overflows[1]-G.overflows[1])[0])==null?void 0:B.placement;if(!F)switch(h){case"bestFit":{var V;const U=(V=C.filter(G=>{if(O){const lt=X(G.placement);return lt===x||lt==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(lt=>lt>0).reduce((lt,Ne)=>lt+Ne,0)]).sort((G,lt)=>G[1]-lt[1])[0])==null?void 0:V[0];U&&(F=U);break}case"initialPlacement":F=r;break}if(n!==F)return{reset:{placement:F}}}return{}}}};function ae(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ce(t){return be.some(e=>t[e]>=0)}const Mn=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o,platform:i}=e,{strategy:n="referenceHidden",...s}=ot(t,e);switch(n){case"referenceHidden":{const l=await i.detectOverflow(e,{...s,elementContext:"reference"}),r=ae(l,o.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:ce(r)}}}case"escaped":{const l=await i.detectOverflow(e,{...s,altBoundary:!0}),r=ae(l,o.floating);return{data:{escapedOffsets:r,escaped:ce(r)}}}default:return{}}}}};function Ce(t){const e=Z(...t.map(s=>s.left)),o=Z(...t.map(s=>s.top)),i=N(...t.map(s=>s.right)),n=N(...t.map(s=>s.bottom));return{x:e,y:o,width:i-e,height:n-o}}function In(t){const e=t.slice().sort((n,s)=>n.y-s.y),o=[];let i=null;for(let n=0;n<e.length;n++){const s=e[n];!i||s.y-i.y>i.height/2?o.push([s]):o[o.length-1].push(s),i=s}return o.map(n=>ht(Ce(n)))}const Ln=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:i,rects:n,platform:s,strategy:l}=e,{padding:r=2,x:a,y:c}=ot(t,e),f=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(i.reference))||[]),d=In(f),u=ht(Ce(f)),h=Xt(r);function p(){if(d.length===2&&d[0].left>d[1].right&&a!=null&&c!=null)return d.find(g=>a>g.left-h.left&&a<g.right+h.right&&c>g.top-h.top&&c<g.bottom+h.bottom)||u;if(d.length>=2){if(X(o)==="y"){const C=d[0],M=d[d.length-1],B=W(o)==="top",V=C.top,I=M.bottom,$=B?C.left
1:M.left,F=B?C.right:M.right,U=F-$,G=I-V;return{top:V,bottom:I,left:$,right:F,width:U,height:G,x:$,y:V}}const g=W(o)==="left",y=N(...d.map(C=>C.right)),x=Z(...d.map(C=>C.left)),v=d.filter(C=>g?C.left===x:C.right===y),_=v[0].top,A=v[v.length-1].bottom,O=x,T=y,P=T-O,H=A-_;return{top:_,bottom:A,left:O,right:T,width:P,height:H,x:O,y:_}}return u}const m=await s.getElementRects({reference:{getBoundingClientRect:p},floating:i.floating,strategy:l});return n.reference.x!==m.reference.x||n.reference.y!==m.reference.y||n.reference.width!==m.reference.width||n.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},En=new Set(["left","top"]);async function Pn(t,e){const{placement:o,platform:i,elements:n}=t,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),l=W(o),r=q(o),a=X(o)==="y",c=En.has(l)?-1:1,f=s&&a?-1:1,d=ot(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&typeof p=="number"&&(h=r==="end"?p*-1:p),a?{x:h*f,y:u*c}:{x:u*c,y:h*f}}const Hn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:n,y:s,placement:l,middlewareData:r}=e,a=await Pn(e,t);return l===((o=r.offset)==null?void 0:o.placement)&&(i=r.arrow)!=null&&i.alignmentOffset?{}:{x:n+a.x,y:s+a.y,data:{...a,placement:l}}}}},Bn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n,platform:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:y=>{let{x,y:v}=y;return{x,y:v}}},...c}=ot(t,e),f={x:o,y:i},d=await s.detectOverflow(e,c),u=X(W(n)),h=ve(u);let p=f[h],m=f[u];if(l){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",v=p+d[y],_=p-d[x];p=Ft(v,p,_)}if(r){const y=u==="y"?"top":"left",x=u==="y"?"bottom":"right",v=m+d[y],_=m
1-d[x];m=Ft(v,m,_)}const g=a.fn({...e,[h]:p,[u]:m});return{...g,data:{x:g.x-o,y:g.y-i,enabled:{[h]:l,[u]:r}}}}}},Nn=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var o,i;const{placement:n,rects:s,platform:l,elements:r}=e,{apply:a=()=>{},...c}=ot(t,e),f=await l.detectOverflow(e,c),d=W(n),u=q(n),h=X(n)==="y",{width:p,height:m}=s.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=u===(await(l.isRTL==null?void 0:l.isRTL(r.floating))?"start":"end")?"left":"right"):(y=d,g=u==="end"?"top":"bottom");const x=m-f.top-f.bottom,v=p-f.left-f.right,_=Z(m-f[g],x),A=Z(p-f[y],v),O=!e.middlewareData.shift;let T=_,P=A;if((o=e.middlewareData.shift)!=null&&o.enabled.x&&(P=v),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(T=x),O&&!u){const C=N(f.left,0),M=N(f.right,0),B=N(f.top,0),V=N(f.bottom,0);h?P=p-2*(C!==0||M!==0?C+M:N(f.left,f.right)):T=m-2*(B!==0||V!==0?B+V:N(f.top,f.bottom))}await a({...e,availableWidth:P,availableHeight:T});const H=await l.getDimensions(r.floating);return p!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function mt(t){return Re(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(Re(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Re(t){return It()?t instanceof Node||t instanceof j(t).Node:!1}function Q(t){return It()?t instanceof Element||t instanceof j(t).Element:!1}function st(t){return It()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function de(t){return!It()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}function vt(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&n!=="inline"&&n!=="contents"}function Vn(t){return/^(table|td|th)$/.test(mt(t))}function Lt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const zn=/transform|translate|scale|rotate|perspective|filter/,Un=/paint|layout|strict|content/,at=t=>!!t&&t!=="none";let Ut;function Yt(t){const e=Q(t)?K(t):t;return at(e.transform)||at(e.translate)||at(e.scale)||at(e.rotate)||at(e.perspective)||!Jt()&&(at(e.backdropFilter)||at(e.filter))||zn.test(e.willChange||"")||Un.test(e.contain||"")}function Gn(t){let e=rt(t);for(;st(e)&&!pt(e);){if(Yt(e))return e;if(Lt(e))return null;e=rt(e)}return null}function Jt(){return Ut==null&&(Ut=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ut}function pt(t){return/^(html|body|#document)$/.test(mt(t))}function K(t){return j(t).getComputedStyle(t)}function Et(t){return Q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function rt(t){if(mt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||de(t)&&t.host||it(t);return de(e)?e.host:e}function _e(t){const e=rt(t);return pt(e)?t.ownerDocument?t.ownerDocument.body:t.body:st(e)&&vt(e)?e:_e(e)}function Ae(t,e,o){var i;e===void 0&&(e=[]);const n=_e(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),l=j(n);return s?(Wt(l),e.concat(l,l.visualViewport||[],vt(n)?n:[],[])):e.concat(n,Ae(n,[]))}function Wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Oe(t){const e=K(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=st(t),s=n?t.offsetWidth:o,l=n?t.offsetHeight:i,r=Tt(o)!==s||Tt(i)!==l;return r&&(o=s,i=l),{width:o,height:i,$:r}}function Se(t){return Q(t)?t:t.contextElement}function ut(t){const e=Se(t);if(!st(e))return Y(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:s}=Oe(e);let l=(s?Tt(o.width):o.width)/i,r=(s?Tt(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!r||!Number.isFinite(r))&&(r=1),{x:l,y:r}}const jn=Y(0);function Te(t){const e=j(t);
1return!Jt()||!e.visualViewport?jn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fn(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==j(t)?!1:e}function wt(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);const n=t.getBoundingClientRect(),s=Se(t);let l=Y(1);e&&(i?Q(i)&&(l=ut(i)):l=ut(t));const r=Fn(s,o,i)?Te(s):Y(0);let a=(n.left+r.x)/l.x,c=(n.top+r.y)/l.y,f=n.width/l.x,d=n.height/l.y;if(s){const u=j(s),h=i&&Q(i)?j(i):i;let p=u,m=Wt(p);for(;m&&i&&h!==p;){const g=ut(m),y=m.getBoundingClientRect(),x=K(m),v=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*g.x,_=y.top+(m.clientTop+parseFloat(x.paddingTop))*g.y;a*=g.x,c*=g.y,f*=g.x,d*=g.y,a+=v,c+=_,p=j(m),m=Wt(p)}}return ht({width:f,height:d,x:a,y:c})}function Pt(t,e){const o=Et(t).scrollLeft;return e?e.left+o:wt(it(t)).left+o}function ke(t,e){const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-Pt(t,o),n=o.top+e.scrollTop;return{x:i,y:n}}function Wn(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const s=n==="fixed",l=it(i),r=e?Lt(e.floating):!1;if(i===l||r&&s)return o;let a={scrollLeft:0,scrollTop:0},c=Y(1);const f=Y(0),d=st(i);
1if((d||!d&&!s)&&((mt(i)!=="body"||vt(l))&&(a=Et(i)),d)){const h=wt(i);c=ut(i),f.x=h.x+i.clientLeft,f.y=h.y+i.clientTop}const u=l&&!d&&!s?ke(l,a):Y(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-a.scrollLeft*c.x+f.x+u.x,y:o.y*c.y-a.scrollTop*c.y+f.y+u.y}}function $n(t){return Array.from(t.getClientRects())}function qn(t){const e=it(t),o=Et(t),i=t.ownerDocument.body,n=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-o.scrollLeft+Pt(t);const r=-o.scrollTop;return K(i).direction==="rtl"&&(l+=N(e.clientWidth,i.clientWidth)-n),{width:n,height:s,x:l,y:r}}const fe=25;function Qn(t,e){const o=j(t),i=it(t),n=o.visualViewport;let s=i.clientWidth,l=i.clientHeight,r=0,a=0;if(n){s=n.width,l=n.height;const f=Jt();(!f||f&&e==="fixed")&&(r=n.offsetLeft,a=n.offsetTop)}const c=Pt(i);if(c<=0){const f=i.ownerDocument,d=f.body,u=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,p=Math.abs(i.clientWidth-d.clientWidth-h);p<=fe&&(s-=p)}else c<=fe&&(s+=c);return{width:s,height:l,x:r,y:a}}function Kn(t,e){const o=wt(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,s=st(t)?ut(t):Y(1),l=t.clientWidth*s.x,r=t.clientHeight*s.y,a=n*s.x,c=i*s.y;return{width:l,height:r,x:a,y:c}}function ue(t,e,o){let i;if(e==="viewport")i=Qn(t,o);else if(e==="document")i=qn(it(t));else if(Q(e))i=Kn(e,o);else{const n=Te(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ht(i)}function De(t,e){const o=rt(t);return o===e||!Q(o)||pt(o)?!1:K(o).position==="fixed"||De(o,e)}function Xn(t,e){const o=e.get(t);if(o)return o;let i=Ae(t,[]).filter(r=>Q(r)&&mt(r)!=="body"),n=null;const s=K(t).position==="fixed";let l=s?rt(t):t;for(;Q(l)&&!pt(l);){const r=K(l),a=Yt(l);!a&&r.position==="fixed"&&(n=null),(s?!a&&!n:!a&&r.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||vt(l)&&!a&&De(t,l))?i=i.filter(f=>f!==l):n=r,l=rt(l)}return e.set(t,i),i}function Yn(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const l=[...o==="clippingAncestors"?Lt(e)?[]:Xn(e,this._c):[].concat(o),i],r=ue(e,l[0],n);let a=r.top,c=r.right,f=r.bottom,d=r.left;for(let u=1;u<l.length;u++){const h=ue(e,l[u],n);a=N(h.top,a),c=Z(h.right,c),f=Z(h.bottom,f),d=N(h.left,d)}return{width:c-d,height:f-a,x:d,y:a}}function Jn(t){const{width:e,height:o}=Oe(t);return{width:e,height:o}}function Zn(t,e,o){const i=st(e),n=it(e),s=o==="fixed",l=wt(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const a=Y(0);function c(){a.x=Pt(n)}if(i||!i&&!s)if((mt(e)!=="body"||vt(n))&&(r=Et(e)),i){const h=wt(e,!0,s,e);a.x=h.x+e.clientLeft,a.y=h.y+e.clientTop}else n&&c();s&&!i&&n&&c();const f=n&&!i&&!s?ke(n,r):Y(0),d=l.left+r.scrollLeft-a.x-f.x,u=l.top+r.scrollTop-a.y-f.y;return{x:d,y:u,width:l.width,height:l.height}}function Gt(t){return K(t).position==="static"}function he(t,e){if(!st(t)||K(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return it(t)===o&&(o=o.ownerDocument.body),o}function Me(t,e){const o=j(t);if(Lt(t))return o;if(!st(t)){let n=rt(t);for(;n&&!pt(n);){if(Q(n)&&!Gt(n))return n;n=rt(n)}return o}let i=he(t,e);for(;i&&Vn(i)&&Gt(i);)i=he(i,e);return i&&pt(i)&&Gt(i)&&!Yt(i)?o:i||Gn(t)||o}const to=async function(t){const e=this.getOffsetParent||Me,o=this.getDimensions,i=await o(t.floating);return{reference:Zn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function eo(t){return K(t).direction==="rtl"}const no={convertOffsetParentRelativeRectToViewportRelativeRect:Wn,getDocumentElement:it,getClippingRect:Yn,getOffsetParent:Me,getElementRects:to,getClientRects:$n,getDimensions:Jn,getScale:ut,isElement:Q,isRTL:eo},oo=Hn,io=kn,so=Bn,lo=Dn,ro=Nn,ao=Mn,co=Sn,fo=Ln,uo=(t,e,o)=>{const i=new Map,n={platform:no,...o},s={...n.platform,_c:i};return On(t,e,{...n,platform:s})};let $t,qt;if(typeof WeakMap<"u"){let t=new WeakMap;$t=e=>t.get(e),qt=(e,o)=>(t.set(e,o),o)}else{const t=[];let o=0;$t=i=>{for(let n=0;n<t.length;n+=2)if(t[n]==i)return t[n+1]},qt=(i,n)=>(o==10&&(o=0),t[o++]=i,t[o++]=n)}var et=class{constructor(t,e,o,i){this.width=t,this.height=e,this.map=o,this.problems=i}findCell(t){for(let e=0;e<this.map.length;e++){const o=this.map[e];if(o!=t)continue;const i=e%this.width,n=e/this.width|0;let s=i+1,l=n+1;for(let r=1;s<this.width&&this.map[e+r]==o;r++)s++;for(let r=1;l<this.height&&this.map[e+this.width*r]==o;r++)l++;
1return{left:i,top:n,right:s,bottom:l}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,o){const{left:i,right:n,top:s,bottom:l}=this.findCell(t);return e=="horiz"?(o<0?i==0:n==this.width)?null:this.map[s*this.width+(o<0?i-1:n)]:(o<0?s==0:l==this.height)?null:this.map[i+this.width*(o<0?s-1:l)]}rectBetween(t,e){const{left:o,right:i,top:n,bottom:s}=this.findCell(t),{left:l,right:r,top:a,bottom:c}=this.findCell(e);return{left:Math.min(o,l),top:Math.min(n,a),right:Math.max(i,r),bottom:Math.max(s,c)}}cellsInRect(t){const e=[],o={};for(let i=t.top;i<t.bottom;i++)for(let n=t.left;n<t.right;n++){const s=i*this.width+n,l=this.map[s];o[l]||(o[l]=!0,!(n==t.left&&n&&this.map[s-1]==l||i==t.top&&i&&this.map[s-this.width]==l)&&e.push(l))}return e}positionAt(t,e,o){for(let i=0,n=0;;i++){const s=n+o.child(i).nodeSize;if(i==t){let l=e+t*this.width;const r=(t+1)*this.width;for(;l<r&&this.map[l]<n;)l++;return l==r?s-1:this.map[l]}n=s}}static get(t){return $t(t)||qt(t,ho(t))}};function ho(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=po(t),o=t.childCount,i=[];let n=0,s=null;const l=[];for(let c=0,f=e*o;c<f;c++)i[c]=0;for(let c=0,f=0;c<o;c++){const d=t.child(c);f++;for(let p=0;;p++){for(;n<i.length&&i[n]!=0;)n++;if(p==d.childCount)break;const m=d.child(p),{colspan:g,rowspan:y,colwidth:x}=m.attrs;for(let v=0;v<y;v++){if(v+c>=o){(s||(s=[])).push({type:"overlong_rowspan",pos:f,n:y-v});break}const _=n+v*e;for(let A=0;A<g;A++){i[_+A]==0?i[_+A]=f:(s||(s=[])).push({type:"collision",row:c,pos:f,n:g-A});const O=x&&x[A];if(O){const T=(_+A)%e*2,P=l[T];P==null||P!=O&&l[T+1]==1?(l[T]=O,l[T+1]=1):P==O&&l[T+1]++}}}n+=g,f+=m.nodeSize}const u=(c+1)*e;let h=0;for(;n<u;)i[n++]==0&&h++;h&&(s||(s=[])).push({type:"missing",row:c,n:h}),f++}(e===0||o===0)&&(s||(s=[])).push({type:"zero_sized"});const r=new et(e,o,i,s);let a=!1;for(let c=0;!a&&c<l.length;c+=2)l[c]!=null&&l[c+1]<o&&(a=!0);return a&&mo(r,l,t),r}function po(t){let e=-1,o=!1;for(let i=0;i<t.childCount;i++){const n=t.child(i);let s=0;if(o)for(let l=0;l<i;l++){const r=t.child(l);for(let a=0;a<r.childCount;a++){const c=r.child(a);l+c.attrs.rowspan>i&&(s+=c.attrs.colspan)}}for(let l=0;l<n.childCount;l++){const r=n.child(l);s+=r.attrs.colspan,r.attrs.rowspan>1&&(o=!0)}e==-1?e=s:e!=s&&(e=Math.max(e,s))}return e}function mo(t,e,o){t.problems||(t.problems=[]);const i={};for(let n=0;n<t.map.length;n++){const s=t.map[n];if(i[s])continue;i[s]=!0;const l=o.nodeAt(s);if(!l)throw new RangeError(`No cell with offset ${s} found`);let r=null;const a=l.attrs;for(let c=0;c<a.colspan;c++){const f=e[(n+c)%t.width*2];f!=null&&(!a.colwidth||a.colwidth[c]!=f)&&((r||(r=go(a)))[c]=f)}r&&t.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:r})}}function go(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let o=0;o<t.colspan;o++)e.push(0);return e}function Zt(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const o in t.nodes){const i=t.nodes[o],n=i.spec.tableRole;n&&(e[n]=i)}}return e}new bt("selectingCells");function yo(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function Ie(t){const e=t.selection.$head;for(let o=e.depth;o>0;o--)if(e.node(o).type.spec.tableRole=="row")return!0;return!1}function wo(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const o=yo(e.$head)||bo(e.$head);if(o)return o;throw new RangeError(`No cell found around position ${e.head}`)}function bo(t){for(let e=t.nodeAfter,o=t.pos;e;e=e.firstChild,o++){const i=e.type.spec.tableRole;if(i=="cell"||i=="header_cell")return t.doc.resolve(o)}for(let e=t.nodeBefore,o=t.pos;e;e=e.lastChild,o--){const i=e.type.spec.tableRole;if(i=="cell"||i=="header_cell")return t.doc.resolve(o-e.nodeSize)}}function pe(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function Le(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function Ee(t,e,o){const i=t.node(-1),n=et.get(i),s=t.start(-1),l=n.nextCell(t.pos-s,e,o);return l==null?null:t.node(0).resolve(s+l)}function me(t,e,o=1){const i={...t,colspan:t.colspan-o};return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(e,o),i.colwidth.some(n=>n>0)||(i.colwidth=null)),i}var J=class tt extends nt{constructor(e,o=e){const i=e.node(-1),n=et.get(i),s=e.start(-1),l=n.rectBetween(e.pos-s,o.pos-s),r=e.node(0),a=n.cells
1InRect(l).filter(f=>f!=o.pos-s);a.unshift(o.pos-s);const c=a.map(f=>{const d=i.nodeAt(f);if(!d)throw new RangeError(`No cell with offset ${f} found`);const u=s+f+1;return new Ve(r.resolve(u),r.resolve(u+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=o}map(e,o){const i=e.resolve(o.map(this.$anchorCell.pos)),n=e.resolve(o.map(this.$headCell.pos));if(pe(i)&&pe(n)&&Le(i,n)){const s=this.$anchorCell.node(-1)!=i.node(-1);return s&&this.isRowSelection()?tt.rowSelection(i,n):s&&this.isColSelection()?tt.colSelection(i,n):new tt(i,n)}return ye.between(i,n)}content(){const e=this.$anchorCell.node(-1),o=et.get(e),i=this.$anchorCell.start(-1),n=o.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),s={},l=[];for(let a=n.top;a<n.bottom;a++){const c=[];for(let f=a*o.width+n.left,d=n.left;d<n.right;d++,f++){const u=o.map[f];if(s[u])continue;s[u]=!0;const h=o.findCell(u);let p=e.nodeAt(u);if(!p)throw new RangeError(`No cell with offset ${u} found`);const m=n.left-h.left,g=h.right-n.right;if(m>0||g>0){let y=p.attrs;if(m>0&&(y=me(y,0,m)),g>0&&(y=me(y,y.colspan-g,g)),h.left<n.left){if(p=p.type.createAndFill(y),!p)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(y)}`)}else p=p.type.create(y,p.content)}if(h.top<n.top||h.bottom>n.bottom){const y={...p.attrs,rowspan:Math.min(h.bottom,n.bottom)-Math.max(h.top,n.top)};h.top<n.top?p=p.type.createAndFill(y):p=p.type.create(y,p.content)}c.push(p)}l.push(e.child(a).copy(Ht.from(c)))}const r=this.isColSelection()&&this.isRowSelection()?e:l;return new gt(Ht.from(r),1,1)}replace(e,o=gt.empty){const i=e.steps.length,n=this.ranges;for(let l=0;l<n.length;l++){const{$from:r,$to:a}=n[l],c=e.mapping.slice(i);e.replace(c.map(r.pos),c.map(a.pos),l?gt.empty:o)}const s=nt.findFrom(e.doc.resolve(e.mapping.slice(i).map(this.to)),-1);s&&e.setSelection(s)}replaceWith(e,o){this.replace(e,new gt(Ht.from(o),0,0))}forEachCell(e){const o=this.$anchorCell.node(-1),i=et.get(o),n=this.$anchorCell.start(-1),s=i.cellsInRect(i.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let l=0;l<s.length;l++)e(o.nodeAt(s[l]),n+s[l])}isColSelection(){const e=this.$anchorCell.index(-1),o=this.$headCell.index(-1);if(Math.min(e,o)>0)return!1;const i=e+this.$anchorCell.nodeAfter.attrs.rowspan,n=o+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(i,n)==this.$headCell.node(-1).childCount}static colSelection(e,o=e){const i=e.node(-1),n=et.get(i),s=e.start(-1),l=n.findCell(e.pos-s),r=n.findCell(o.pos-s),a=e.node(0);return l.top<=r.top?(l.top>0&&(e=a.resolve(s+n.map[l.left])),r.bottom<n.height&&(o=a.resolve(s+n.map[n.width*(n.height-1)+r.right-1]))):(r.top>0&&(o=a.resolve(s+n.map[r.left])),l.bottom<n.height&&(e=a.resolve(s+n.map[n.width*(n.height-1)+l.right-1]))),new tt(e,o)}isRowSelection(){const e=this.$anchorCell.node(-1),o=et.get(e),i=this.$anchorCell.start(-1),n=o.colCount(this.$anchorCell.pos-i),s=o.colCount(this.$headCell.pos-i);
1if(Math.min(n,s)>0)return!1;const l=n+this.$anchorCell.nodeAfter.attrs.colspan,r=s+this.$headCell.nodeAfter.attrs.colspan;return Math.max(l,r)==o.width}eq(e){return e instanceof tt&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,o=e){const i=e.node(-1),n=et.get(i),s=e.start(-1),l=n.findCell(e.pos-s),r=n.findCell(o.pos-s),a=e.node(0);return l.left<=r.left?(l.left>0&&(e=a.resolve(s+n.map[l.top*n.width])),r.right<n.width&&(o=a.resolve(s+n.map[n.width*(r.top+1)-1]))):(r.left>0&&(o=a.resolve(s+n.map[r.top*n.width])),l.right<n.width&&(e=a.resolve(s+n.map[n.width*(l.top+1)-1]))),new tt(e,o)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,o){return new tt(e.resolve(o.anchor),e.resolve(o.head))}static create(e,o,i=o){return new tt(e.resolve(o),e.resolve(i))}getBookmark(){return new vo(this.$anchorCell.pos,this.$headCell.pos)}};J.prototype.visible=!1;nt.jsonID("cell",J);var vo=class Pe{constructor(e,o){this.anchor=e,this.head=o}map(e){return new Pe(e.map(this.anchor),e.map(this.head))}resolve(e){const o=e.resolve(this.anchor),i=e.resolve(this.head);return o.parent.type.spec.tableRole=="row"&&i.parent.type.spec.tableRole=="row"&&o.index()<o.parent.childCount&&i.index()<i.parent.childCount&&Le(o,i)?new J(o,i):nt.near(i,1)}};new bt("fix-tables");function He(t){const e=t.selection,o=wo(t),i=o.node(-1),n=o.start(-1),s=et.get(i);return{...e instanceof J?s.rectBetween(e.$anchorCell.pos-n,e.$headCell.pos-n):s.findCell(o.pos-n),tableStart:n,map:s,table:i}}function xo(t){return function(e,o){if(!Ie(e))return!1;if(o){const i=Zt(e.schema),n=He(e),s=e.tr,l=n.map.cellsInRect(t=="column"?{left:n.left,top:0,right:n.right,bottom:n.map.height}:t=="row"?{left:0,top:n.top,right:n.map.width,bottom:n.bottom}:n),r=l.map(a=>n.table.nodeAt(a));for(let a=0;a<l.length;a++)r[a].type==i.header_cell&&s.setNodeMarkup(n.tableStart+l[a],i.cell,r[a].attrs);if(s.steps.length===0)for(let a=0;a<l.length;a++)s.setNodeMarkup(n.tableStart+l[a],i.header_cell,r[a].attrs);o(s)}return!0}}function ge(t,e,o){const i=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let n=0;n<i.length;n++){const s=e.table.nodeAt(i[n]);if(s&&s.type!==o.header_cell)return!1}return!0}function te(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?xo(t):function(o,i){if(!Ie(o))return!1;if(i){const n=Zt(o.schema),s=He(o),l=o.tr,r=ge("row",s,n),a=ge("column",s,n),c=(t==="column"?r:t==="row"&&a)?1:0,f=t=="column"?{left:0,top:c,right:1,bottom:s.map.height}:t=="row"?{left:c,top:0,right:s.map.width,bottom:1}:s,d=t=="column"?a?n.cell:n.header_cell:t=="row"?r?n.cell:n.header_cell:n.cell;s.map.cellsInRect(f).forEach(u=>{const h=u+s.tableStart,p=l.doc.nodeAt(h);p&&l.setNodeMarkup(h,d,p.attrs)}),i(l)}return!0}}te("row",{useDeprecatedLogic:!0});te("column",{useDeprecatedLogic:!0});te("cell",{useDeprecatedLogic:!0});function Ct(t,e){const o=t.selection;if(!(o instanceof J))return!1;if(e){const i=t.tr,n=Zt(t.schema).cell.createAndFill().content;o.forEachCell((s,l)=>{s.content.eq(n)||i.replace(i.mapping.map(l+1),i.mapping.map(l+s.nodeSize-1),new gt(n,0,0))}),i.docChanged&&e(i)}return!0}ze({ArrowLeft:Rt("horiz",-1),ArrowRight:Rt("horiz",1),ArrowUp:Rt("vert",
1-1),ArrowDown:Rt("vert",1),"Shift-ArrowLeft":_t("horiz",-1),"Shift-ArrowRight":_t("horiz",1),"Shift-ArrowUp":_t("vert",-1),"Shift-ArrowDown":_t("vert",1),Backspace:Ct,"Mod-Backspace":Ct,Delete:Ct,"Mod-Delete":Ct});function At(t,e,o){return o.eq(t.selection)?!1:(e&&e(t.tr.setSelection(o).scrollIntoView()),!0)}function Rt(t,e){return(o,i,n)=>{if(!n)return!1;const s=o.selection;if(s instanceof J)return At(o,i,nt.near(s.$headCell,e));if(t!="horiz"&&!s.empty)return!1;const l=Be(n,t,e);if(l==null)return!1;if(t=="horiz")return At(o,i,nt.near(o.doc.resolve(s.head+e),e));{const r=o.doc.resolve(l),a=Ee(r,t,e);let c;return a?c=nt.near(a,1):e<0?c=nt.near(o.doc.resolve(r.before(-1)),-1):c=nt.near(o.doc.resolve(r.after(-1)),1),At(o,i,c)}}}function _t(t,e){return(o,i,n)=>{if(!n)return!1;const s=o.selection;let l;if(s instanceof J)l=s;else{const a=Be(n,t,e);if(a==null)return!1;l=new J(o.doc.resolve(a))}const r=Ee(l.$headCell,t,e);return r?At(o,i,new J(l.$anchorCell,r)):!1}}function Be(t,e,o){if(!(t.state.selection instanceof ye))return null;const{$head:i}=t.state.selection;for(let n=i.depth-1;n>=0;n--){const s=i.node(n);if((o<0?i.index(n):i.indexAfter(n))!=(o<0?0:s.childCount))return null;if(s.type.spec.tableRole=="cell"||s.type.spec.tableRole=="header_cell"){const l=i.before(n),r=e=="vert"?o>0?"down":"up":o>0?"right":"left";return t.endOfTextblock(r)?l:null}}return null}new bt("tableColumnResizing");function Co(t,e){const o=Math.min(t.top,e.top),i=Math.max(t.bottom,e.bottom),n=Math.min(t.left,e.left),l=Math.max(t.right,e.right)-n,r=i-o,a=n,c=o;return new DOMRect(a,c,l,r)}var Ro=class{constructor({editor:t,element:e,view:o,pluginKey:i="bubbleMenu",updateDelay:n=250,resizeDelay:s=60,shouldShow:l,appendTo:r,getReferencedVirtualElement:a,options:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:d,state:u,from:h,to:p})=>{const{doc:m,selection:g}=u,{empty:y}=g,x=!m.textBetween(h,p).length&&Qe(u.selection),v=this.element.contains(document.activeElement);return!(!(d.hasFocus()||v)||y||x||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:d})=>{var u;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}d?.relatedTarget&&((u=this.element.parentNode)!=null&&u.contains(d.relatedTarget))||d?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(d,u)=>{const h=!u?.selection.eq(d.state.selection),p=!u?.doc.eq(d.state.doc);!h&&!p||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(d,h,p,u)},this.updateDelay))},this.updateHandler=(d,u,h,p)=>{const{composing:m}=d;if(m||!u&&!h)return;if(!this.getShouldShow(p)){this.hide();return}this.show(),this.updatePosition()},this.transactionHandler=({transaction:d})=>{const u=d.getMeta(this.pluginKey);u==="updatePosition"?this.updatePosition():u&&typeof u=="object"&&u.type==="updateOptions"?this.updateOptions(u.options):u==="hide"?this.hide():u==="show"&&(this.updatePosition(),this.show())};var f;this.editor=t,this.element=e,this.view=o,this.pluginKey=i,this.updateDelay=n,this.resizeDelay=s,this.appendTo=r,this.scrollTarget=(f=c?.scrollTarget)!=null?f:window,this.getReferencedVirtualElement=a,this.floatingUIOptions={...this.floatingUIOptions,...c},this.element.tabIndex=0,l&&(this.shouldShow=l),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(o,o.state),this.get
1ShouldShow()&&(this.show(),this.updatePosition())}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(lo(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(so(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(oo(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(co(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(ro(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(io(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(ao(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(fo(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e,o;const{selection:i}=this.editor.state,n=(t=this.getReferencedVirtualElement)==null?void 0:t.call(this);if(n)return n;if(!((o=(e=this.view)==null?void 0:e.dom)!=null&&o.parentNode))return;const s=Ke(this.view,i.from,i.to);let l={getBoundingClientRect:()=>s,getClientRects:()=>[s]};if(i instanceof Xe){let r=this.view.nodeDOM(i.from);const a=r.dataset.nodeViewWrapper?r:r.querySelector("[data-node-view-wrapper]");a&&(r=a),r&&(l={getBoundingClientRect:()=>r.getBoundingClientRect(),getClientRects:()=>[r.getBoundingClientRect()]})}if(i instanceof J){const{$anchorCell:r,$headCell:a}=i,c=r?r.pos:a.pos,f=a?a.pos:r.pos,d=this.view.nodeDOM(c),u=this.view.nodeDOM(f);if(!d||!u)return;const h=d===u?d.getBoundingClientRect():Co(d.getBoundingClientRect(),u.getBoundingClientRect());l={getBoundingClientRect:()=>h,getClientRects:()=>[h]}}return l}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&uo(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:o,strategy:i,middlewareData:n})=>{var s,l;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if((s=n.hide)!=null&&s.referenceHidden||(l=n.hide)!=null&&l.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=i,this.element.style.left=`${e}px`,this.element.style.top=`${o}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:o}=t,i=o.selection.from!==o.selection.to;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(t,e);return}const n=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,n,s,e)}getShouldShow(t){var e;const{state:o}=this.view,{selection:i}=o,{ranges:n}=i,s=Math.min(...n.map(a=>a.$from.pos)),l=Math.max(...n.map(a=>a.$to.pos));return((e=this.shouldShow)==null?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:o,oldState:t,from:s,to:l}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)==null||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){var e;if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){const o=(e=t.options.scrollTarget)!=null?e:window;o!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=o,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},_o=t=>new qe({key:typeof t.pluginKey=="string"?new bt(t.pluginKey):t.pluginKey,view:e=>
1new Ro({view:e,...t})}),Ao=Ue({name:"BubbleMenu",inheritAttrs:!1,props:{pluginKey:{type:[String,Object],default:void 0},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},resizeDelay:{type:Number,default:void 0},options:{type:Object,default:()=>({})},appendTo:{type:[Object,Function],default:void 0},shouldShow:{type:Function,default:null},getReferencedVirtualElement:{type:Function,default:void 0}},setup(t,{slots:e,attrs:o}){var i;const n=$e(null),s=(i=t.pluginKey)!=null?i:new bt("bubbleMenu");return Ge(()=>{const{editor:l,options:r,resizeDelay:a,appendTo:c,shouldShow:f,getReferencedVirtualElement:d,updateDelay:u}=t,h=n.value;h&&(h.style.visibility="hidden",h.style.position="absolute",h.remove(),je(()=>{l.registerPlugin(_o({editor:l,element:h,options:r,pluginKey:s,resizeDelay:a,appendTo:c,shouldShow:f,getReferencedVirtualElement:d,updateDelay:u}))}))}),Fe(()=>{const{editor:l}=t;l.unregisterPlugin(s)}),()=>{var l;return We("div",{ref:n,...o},(l=e.default)==null?void 0:l.call(e))}}});const Oo={name:"TipTapMenuBar",components:{BubbleMenu:Ao},props:{editor:{type:Object,required:!0},miniMenu:{type:Boolean,default:!1},fullText:{type:Boolean,default:!1}},data(){return{toggle_multiple:[],items:[{icon:"mdi-format-bold",title:"Bold",slug:"bold",action:()=>this.editor.chain().focus().toggleBold().run(),isActive:()=>this.editor.isActive("bold"),showInMiniMenu:!0},{icon:"mdi-format-italic",title:"Italic",slug:"italic",action:()=>this.editor.chain().focus().toggleItalic().run(),isActive:()=>this.editor.isActive("italic"),showInMiniMenu:!0},{icon:"mdi-format-strikethrough",title:"Strike",slug:"sgtrike",action:()=>this.editor.chain().focus().toggleStrike().run(),isActive:()=>this.editor.isActive("strike"),showInMiniMenu:!0},{icon:"mdi-format-header-2",title:"Heading 2",action:()=>this.editor.chain().focus().toggleHeading({level:2}).run(),isActive:()=>this.editor.isActive("heading",{level:2}),showInMiniMenu:!1},{icon:"mdi-format-header-3",title:"Heading 3",action:()=>this.editor.chain().focus().toggleHeading({level:3}).run(),isActive:()=>this.editor.isActive("heading",{level:3}),showInMiniMenu:!1},{icon:"mdi-format-paragraph",title:"Paragraph",action:()=>this.editor.chain().focus().setParagraph().run(),isActive:()=>this.editor.isActive("paragraph"),showInMiniMenu:!1},{icon:"mdi-format-clear",title:"Clear Format",action:()=>this.editor.chain().focus().clearNodes().unsetAllMarks().run(),showInMiniMenu:!0}],fullItems:[{icon:"mdi-format-bold",title:"Bold",slug:"bold",action:()=>this.editor.chain().focus().toggleBold().run(),isActive:()=>this.editor.isActive("bold")},{icon:"mdi-format-italic",title:"Italic",slug:"italic",action:()=>this.editor.chain().focus().toggleItalic().run(),isActive:()=>this.editor.isActive("italic")},{icon:"mdi-format-strikethrough",title:"Strike",slug:"sgtrike",action:()=>this.editor.chain().focus().toggleStrike().run(),isActive:()=>this.editor.isActive("strike")},{icon:"mdi-link",title:"Link",slug:"link",action:this.setLink,isActive:()=>this.editor.isActive("link")},{icon:"mdi-link-off",title:"Unset link",slug:"unlink",action:()=>this.editor.chain().focus().unsetLink().run(),isActive:()=>this.editor.isActive("link")},{icon:"mdi-format-header-2",title:"Heading 2",action:()=>this.editor.chain().focus().toggleHeading({level:2}).run(),isActive:()=>this.editor.isActive("heading",{level:2})},{icon:"mdi-format-header-3",title:"Heading 3",action:()=>this.editor.chain().focus().toggleHeading({level:3}).run(),isActive:()=>this.editor.isActive("heading",{level:3})},{icon:"mdi-format-paragraph",title:"Paragraph",action:()=>this.editor.chain().focus().setParagraph().run(),isActive:()=>this.editor.isActive("paragraph")},{icon:"mdi-format-list-bulleted",title:"Bullet List",action:()=>this.editor.chain().focus().toggleBulletList().run(),isActive:()=>this.editor.isActive("bulletList"),showInMiniMenu:!0},{icon:"mdi-format-list-numbered",title:"Ordered List",action:()=>this.editor.chain().focus().toggleOrderedList().run(),isActive:()=>this.editor.isActive("orderedList"),showInMiniMenu:!0},{icon:"mdi-minus",title:"Horizontal Rule",action:()=>this.editor.chain().focus().setHorizontalRule().run(),showInMiniMenu:!0},{icon:"mdi-format-clear",title:"Clear Format",action:()=>this.editor.chain().focus().clearNodes().unsetAllMarks().run(),showInMiniMenu:!0}]}},methods:{setLink(){const t=this.editor.getAttributes("link").href,e=window.prompt("URL",t);if(e!==null){if(e===""){this.editor.chain().focus().extendMarkRange("link").unsetLink().run();return}this.editor.chain().focus().extendMarkRange("link").setLink({href:e}).run()}}}};function So(t,e,o,i,n,s){const l=we("bubble-menu");return w(),k(dt,{"no-gutters":""},{default:b(()=>[R(l,{class:"bubble-menu",style:{visibility:"visible"},"tippy-options":{duration:100,popperOptions:{strategy:"fixed",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom","right"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!1}}]}},editor:o.editor},{default:b(()=>[(w(!0),S(ct,null,yt(o.fullText?n.fullItems:n.items,r=>(w(),S("div",{key:`btn_${r.title}`},[!o.miniMenu||r.showInMiniMenu?(w(),k(z,{key:0},{default:b(()=>[R(Ot,{title:r.title,size:"x-small",value:r.slug,color:r.isActive&&r.isActive()?"primary":"none",onClick:r.action},{default:b(()=>[R(St,{size:"small"},{default:b(()=>[E(D(r.icon),1)]),_:2},1024)]),_:2},1032,["title","value","color","onClick"])]),_:2},1024)):L("",!0)]))),128))]),_:1},8,["editor"])]),_:1})}const To=Object.assign(Mt(Oo,[["render",So],["__scopeId","data-v-3fa0e488"]]),{__name:"MenuBarPlaylist"}),ko={name:"TextEditor",components:{EditorContent:Ye},props:{value:{type:String,default:""},onlyRead:{type:Boolean,default:!1},headingClasses:{type:Object,default(){return{h1:"editor_title",h2:"editor_subtitle"}}},paragraphClass:{type:String,default:"editor_paragraph font-weight-regular"},miniMenu:{type:Boolean,default:!1},fullText:{type:Boolean,default:!1},idElement:{type:String,required:!1,default:""}},data(){return{editor:null}},watch:{value(t){this.editor.getHTML()!==t&&this.editor.commands.setContent(t)}},mounted(){const t=this;this.emitUpdate=Ze(e=>{t.$emit("update",e)},500),this.editor=new tn({editable:!t.onlyRead,content:t.value,onUpdate({editor:e}){t.emitUpdate(e.getHTML())},extensions:[en.configure({heading:!1,placeholder:!1,paragraph:!1}),nn.configure({levels:[1,2,3,4,5,6]}).extend({renderHTML({node:e,HTMLAttributes:o}){const n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,on(this.options.HTMLAttributes,o,{class:`${t.headingClasses[`h${n}`]}`}),0]}}),sn.configure({HTMLAttributes:{class:t.paragraphClass}}),ln.configure({placeholder:t.onlyRead?`[${t.$t("editor.edit_text")}]`:t.$t("editor.edit_text")})]}),this.editor.commands.focus("end")},beforeUnmount(){this.emitUpdate?.flush(),this.editor&&this.editor.destroy()}},Do=["id"];function Mo(t,e,o,i,n,s){const l=To,r=we("editor-content");return n.editor?(w(),S("div",{id:o.idElement,key:o.idElement},[o.onlyRead?L("",!0):(w(),k(l,{key:0,class:"editor__header",editor:n.editor,"mini-menu":o.miniMenu,"full-text":o.fullText},null,8,["editor","mini-menu","full-text"])),R(r,{class:"editor__content",style:Je(!o.onlyRead&&"outline: 1px solid; border-radius: 5px"),editor:n.editor},null,8,["style","editor"]),o.onlyRead?L("",!0):(w(),k(dt,{key:1,align:"end",justify:"end"},{default:b(()=>[R(z,{justify:"end",align:"end"},{default:b(()=>[R(Ot,{"data-pw":"saveTextButton",color:"primary",icon:"",variant:"elevated",height:"30px",width:"30px",tile:"",elevation:"0",onClick:e[0]||(e[0]=a=>t.$emit("saveRichText",n.editor.getHTML()))},{default:b(()=>[R(St,{size:"small"},{default:b(()=>[...e[2]||(e[2]=[E("mdi-content-save-outline ",-1)])]),_:1})]),_:1}),R(Ot,{"data-pw":"closeTextButton",color:"red",icon:"",variant:"elevated",height:"30px",width:"30px",tile:"",elevation:"0",onClick:e[1]||(e[1]=a=>t.$emit("closeRichText"))},{default:b(()=>[R(St,{size:"small"},{default:b(()=>[...e[3]||(e[3]=[E("mdi-close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}))],8,Do)):L("",!0)}const Io=Object.assign(Mt(ko,[["render",Mo],["__scopeId","data-v-a456800d"]]),{__name:"TextEditorPlaylist"}),Lo={name:"ProcedureInfo",props:{procedureInfo:{type:Object,default:()=>{}},preview:{type:Boolean,default:!1},settingsProcedures:{type:Object,default:()=>{}}},data(){return{defaultObligatoryQuestionsNA:{modalidad0sC1ty:!1,costo0sC1ty:!1,tiempoDeRespuesta0sC1ty:!1},datosGenerales:null,datosGeneralesNA:null,obligatoryQuestions:[],isNLInstance:this.$config.firebase.projectId==="os-sandbox-nuevo-leon"||this.$config.firebase.projectId==="os-gobierno-de-nuevo-leon"}},async mounted(){await this.getObligatoryQuestions(),this.datosGenerales=await this.getDatosGenerales(this.procedureInfo),this.datosGeneralesNA=this.procedureInfo.obligatoryQuestionsNA?this.procedureInfo.obligatoryQuestionsNA:this.defaultObligatoryQuestionsNA},methods:{valueIsArray(t){return mn(t)},valueIsString(t){return gn(t)},valueIsObject(t){return ne(t)},getJointArray(t){let e="";return ne(t[0])?e=t.map(i=>i.name).join(", "):e=t.join(", "),e},getObligatoryQuestions(){if(this.settingsProcedures&&this.settingsProcedures?.questions){const t=zt(this.settingsProcedures.questions,["id","costo0sC1ty"]);t&&this.obligatoryQuestions.push(t);const e=zt(this.settingsProcedures.questions,["id","modalidad0sC1ty"]);e&&this.obligatoryQuestions.push(e);const o=zt(this.settingsProcedures.questions,["id","tiempoDeRespuesta0sC1ty"]);o&&this.obligatoryQuestions.push(o)}},getDatosGenerales(t){try{const e={};if(this.obligatoryQuestions&&this.obligatoryQuestions.length>0)for(const o of this.obligatoryQuestions)o?.section&&o?.id&&t?.answersOperator&&t?.answersOperator[o.section]&&t?.answersOperator[o.section]?.schema&&t?.answersOperator[o.section]?.schema[o.id]&&(e[o.id]=t.answersOperator[o.section].schema[o.id]);return e}catch(e){console.error("Error in ProcedureInfo",e),an(e)}}}},Eo={class:"d-flex flex-column"},Po={class:"mb-0 title-item-content pb-sm-3"},Ho={key:0},Bo=["innerHTML"],No={key:1},Vo={key:0},zo=["innerHTML"],Uo={key:1},Go={key:0},jo={key:0,class:"body-2 card-time d-block"},Fo=["innerHTML"],Wo={key:1,class:"body-2 card-time d-block"},$o=["innerHTML"],qo={key:2,class:"body-2 card-time d-block"},Qo={key:0,class:"d-inline-block"},Ko={key:0},Xo={key:1,class:"d-inline-block"},Yo={key:0},Jo={class:"v-btn-more text-decoration-underline"};function Zo(t,e,o,i,n,s){return w(),k(jt,{class:"mx-auto my-1 cardborder card-content roun
1ded-lg"},{default:b(()=>[n.datosGenerales?(w(),k(Bt,{key:0,class:"px-6 py-2"},{default:b(()=>[ft("div",Eo,[R(dt,null,{default:b(()=>[R(z,{cols:"12",sm:"9",md:"10",class:"py-sm-4"},{default:b(()=>[ft("h5",Po,D(o.procedureInfo.title),1),R(rn,{class:"text-card-description"},{default:b(()=>[E(D(o.procedureInfo.description),1)]),_:1})]),_:1}),n.isNLInstance?L("",!0):(w(),k(z,{key:0,cols:"12",sm:"3",md:"2",class:"text-sm-right"},{default:b(()=>[n.datosGenerales&&n.datosGenerales.costo0sC1ty?(w(),S("div",Ho,[typeof n.datosGenerales.costo0sC1ty!="string"&&n.datosGenerales.costo0sC1ty&&!n.datosGeneralesNA.costo0sC1ty&&n.datosGenerales.costo0sC1ty.name?(w(),k(Bt,{key:0,class:"price wrap-costo font-weight-semibold"},{default:b(()=>[E(D(n.datosGenerales.costo0sC1ty.name),1)]),_:1})):n.datosGenerales.costo0sC1ty&&!n.datosGeneralesNA.costo0sC1ty?(w(),k(Bt,{key:1,class:"price wrap-costo font-weight-semibold"},{default:b(()=>[/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(n.datosGenerales.costo0sC1ty)?(w(),S("div",{key:0,class:"mt-4",innerHTML:n.datosGenerales.costo0sC1ty},null,8,Bo)):(w(),S("div",No,D(n.datosGenerales.costo0sC1ty),1))]),_:1})):L("",!0)])):L("",!0)]),_:1}))]),_:1}),R(dt,{class:"justify-end mt-2 mt-sm-4"},{default:b(()=>[n.isNLInstance?L("",!0):(w(),k(z,{key:0,cols:"12",sm:"4",class:"d-flex align-center"},{default:b(()=>[n.datosGenerales&&n.datosGenerales.modalidad0sC1ty?(w(),S("div",Vo,[typeof n.datosGenerales.modalidad0sC1ty=="object"&&!Array.isArray(n.datosGenerales.modalidad0sC1ty)&&n.datosGenerales.modalidad0sC1ty!==null&&n.datosGenerales.modalidad0sC1ty&&n.datosGenerales.modalidad0sC1ty.name?(w(),k(Nt,{key:0,class:"font-weight-medium",color:"chipsPost",size:"small"},{default:b(()=>[E(D(n.datosGenerales.modalidad0sC1ty.name),1)]),_:1})):typeof n.datosGenerales.modalidad0sC1ty=="string"&&n.datosGenerales.modalidad0sC1ty&&!n.datosGeneralesNA.modalidad0sC1ty?(w(),k(Nt,{key:1,class:"font-weight-medium",color:"chipsPost",size:"small"},{default:b(()=>[/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(n.datosGenerales.modalidad0sC1ty)?(w(),S("div",{key:0,class:"mt-4",innerHTML:n.datosGenerales.modalidad0sC1ty},null,8,zo)):(w(),S("div",Uo,D(n.datosGenerales.modalidad0sC1ty),1))]),_:1})):Array.isArray(n.datosGenerales.modalidad0sC1ty)&&!n.datosGeneralesNA.modalidad0sC1ty?(w(!0),S(ct,{key:2},yt(n.datosGenerales.modalidad0sC1ty,(l,r)=>(w(),k(Nt,{key:r,class:"font-weight-medium",color:"chipsPost",size:"small"},{default:b(()=>[typeof l=="string"?(w(),S(ct,{key:0},[E(D(l),1)],64)):(w(),S(ct,{key:1},[E(D(l.name),1)],64))]),_:2},1024))),128)):L("",!0)])):L("",!0)]),_:1})),n.isNLInstance?L("",!0):(w(),k(z,{key:1,cols:"12",sm:"5",class:Vt(["d-flex align-center",{"py-0":t.$vuetify.display.mdAndDown}])},{default:b(()=>[n.datosGenerales&&n.datosGenerales.tiempoDeRespuesta0sC1ty?(w(),S("div",Go,[typeof n.datosGenerales.tiempoDeRespuesta0sC1ty=="object"&&!Array.isArray(n.datosGenerales.tiempoDeRespuesta0sC1ty)&&n.datosGenerales.tiempoDeRespuesta0sC1ty!==null&&n.datosGenerales.tiempoDeRespuesta0sC1ty&&n.datosGenerales.tiempoDeRespuesta0sC1ty.name?(w(),S("span",jo,[E(D(t.$t("post.response_time"))+": ",1),ft("span",{class:"d-inline-block",innerHTML:n.datosGenerales.tiempoDeRespuesta0sC1ty.name},null,8,Fo)])):n.datosGenerales.tiempoDeRespuesta0sC1ty&&typeof n.datosGenerales.tiempoDeRespuesta0sC1ty=="string"&&!n.datosGeneralesNA.tiempoDeRespuesta0sC1ty?(w(),S("span",Wo,[E(D(t.$t("post.response_time"))+": ",1),ft("span",{class:"d-inline-block",innerHTML:n.datosGenerales.tiempoDeRespuesta0sC1ty},null,8,$o)])):Array.isArray(n.datosGenerales.tiempoDeRespuesta0sC1ty)&&!n.datosGeneralesNA.tiempoDeRespuesta0sC1ty?(w(),S("span",qo,[E(D(t.$t("post.response_time"))+": ",1),(w(!0),S(ct,null,yt(n.datosGenerales.tiempoDeRespuesta0sC1ty,(l,r)=>(w(),S("div",{key:r,class:"d-inline-block"},[typeof l=="string"?(w(),S("span",Qo,[E(D(l)+" ",1),r+1<n.datosGenerales.tiempoDeRespuesta0sC1ty.length?(w(),S("span",Ko," ,   ")):L("",!0)])):(w(),S("span",Xo,[E(D(l.name)+" ",1),r+1<n.datosGenerales.tiempoDeRespuesta0sC1ty.length?(w(),S("span",Yo," ,   ")):L("",!0)]))]))),128))])):L("",!0)])):L("",!0)]),_:1},8,["class"])),R(z,{cols:"12",sm:"3",class:"d-flex justify-end"},{default:b(()=>[o.preview?(w(),S("div",{key:0,cols:"12",class:Vt({"pl-0 pt-0":t.$vuetify.display.mdAndDown})},[ft("a",Jo,D(t.$t("playlist.learnMore")),1)],2)):(w(),S("div",{key:1,cols:"12",class:Vt({"pl-0 pt-0":t.$vuetify.display.mdAndDown})},[R(Ot,{variant:"text",class:"v-btn-more text-decoration-underline",to:o.procedureInfo.configPath&&o.procedureInfo.configPath.url&&o.procedureInfo.configPath.url.length>2?o.procedureInfo.configPath.url:o.procedureInfo.path},{default:b(()=>[E(D(t.$t("playlist.learnMore")),1)]),_:1},8,["to"])],2))]),_:1})]),_:1})])]),_:1})):L("",!0)]),_:1})}const ti=Object.assign(Mt(Lo,[["render",Zo],["__scopeId","data-v-84fe579d"]]),{__name:"ProcedureInfo"}),ei={props:{},data(){return{playlistContent:{},loading:!0}},computed:{settingsProcedures(){return pn().getSettingsProcedures}},async mounted(){this.loading=!0;const t=(this._.provides[hn]||this.$route).params.id;if(t){const o=await ee(`modules/ventanillaDigital/playlist/${t}`);o.exists()&&(this.playlistContent={...o.data(),id:t})}const e=[];for(let o=0;o<this.playlistContent.playlistContent.length;o++){const i=this.playlistContent.playlistContent[o];if(i.type==="procedure"){const n=await ee(`modules/${i.module}/${i.submodule}/${i.id}`);n.exists()?e.push({...i,...n.data()}):e.push({...i})}else e.push(i)}this.playlistContent.playlistContent=e,this.loading=!1}},ni={class:"icon-container mr-2"};function oi(t,e,o,i,n,s){const l=Io,r=ti;return w(),k(un,{class:"catalogo-container d-flex justify-center py-8 py-md-12"},{default:b(()=>[R(z,{cols:"12",md:"12",xl:"10",class:"px-2 px-md-3"},{default:b(()=>[n.loading?(w(),k(jt,{key:1,class:"px-4 px-md-12 py-4 py-md-8"},{default:b(()=>[R(dt,{class:"pa-2 pa-md-5"},{default:b(()=>[R(z,{cols:"5"},{default:b(()=>[R(xt,{type:"image"})]),_:1}),R(z,{cols:"12",md:"7"},{default:b(()=>[R(xt,{class:"py-1",type:"heading"}),R(xt,{class:"py-1",type:"paragraph"})]),_:1}),R(z,{cols:"12"},{default:b(()=>[(w(),S(ct,null,yt(5,a=>R(xt,{key:a,type:"list-item-three-line"})),64))]),_:1})]),_:1})]),_:1})):(w(),k(jt,{key:0,class:"px-4 px-md-12 py-4 py-md-8"},{default:b(()=>[R(dt,{class:"pt-5"},{default:b(()=>[R(z,{cols:"12",md:"6",xl:"5"},{default:b(()=>[R(cn,{class:"d-flex flex-column align-center text-center justify-center rounded-lg",src:n.playlistContent.playlistImage,height:t.$vuetify.display.xs?260:"380"},null,8,["src","height"])]),_:1}),R(z,{cols:"12",md:"6",xl:"7",class:"pl-4 pr-4 pr-md-8"},{default:b(()=>[R(dn,{class:"px-0 pt-0 pt-md-6 font-weight-bold"},{default:b(()=>[ft("div",ni,[R(St,null,{default:b(()=>
1[E(D(n.playlistContent.listIcon),1)]),_:1})]),E(" "+D(n.playlistContent.listName),1)]),_:1}),R(fn,{class:"px-0 pb-0"},{default:b(()=>[E(D(n.playlistContent.listDescription),1)]),_:1})]),_:1})]),_:1}),R(dt,{class:"pt-5 mt-0"},{default:b(()=>[(w(!0),S(ct,null,yt(n.playlistContent.playlistContent,(a,c)=>(w(),k(z,{key:c,cols:"12",class:"py-2"},{default:b(()=>[a.type==="richText"?(w(),k(l,{key:0,modelValue:a.richTextLabel,"onUpdate:modelValue":f=>a.richTextLabel=f,"heading-classes":{h2:"text-h6",h3:"text-h6"},"paragraph-class":"text-body-1 mb-0","only-read":!0},null,8,["modelValue","onUpdate:modelValue"])):L("",!0),a.type==="procedure"?(w(),k(r,{key:1,"procedure-info":a,"settings-procedures":s.settingsProcedures},null,8,["procedure-info","settings-procedures"])):L("",!0)]),_:2},1024))),128))]),_:1})]),_:1}))]),_:1})]),_:1})}const ui=Mt(ei,[["render",oi]]);export{ui as default};

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.