1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6121,1409,8188,6568],{46465:function(e,t,n){"use strict";n.d(t,{B:function(){return q}});var r=n(82684);function c(e,t){let n=(0,r.useRef)(!1);(0,r.useEffect)(()=>{n.current?e():n.current=!0},t)}function d(...e){return e.filter(e=>e).join(" ")}function m({text:e,remove:t,disabled:n,className:a}){return r.createElement("span",{className:d("rti--tag",a)},r.createElement("span",null,e),!n&&r.createElement("button",{type:"button",onClick:n=>{n.stopPropagation(),t(e)},"aria-label":`remove ${e}`},"â"))}!function(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`.rti--container *{box-sizing:border-box;transition:all .2s ease}.rti--container{--rti-bg: #fff;--rti-border: #ccc;--rti-main: #3182ce;--rti-radius: .375rem;--rti-s: .5rem;--rti-tag: #edf2f7;--rti-tag-remove: #e53e3e;--rti-tag-padding: .15rem .25rem;align-items:center;background:var(--rti-bg);border:1px solid var(--rti-border);border-radius:var(--rti-radius);display:flex;flex-wrap:wrap;gap:var(--rti-s);line-height:1.4;padding:var(--rti-s)}.rti--container:focus-within{border-color:var(--rti-main);box-shadow:var(--rti-main) 0 0 0 1px}.rti--input{border:0;outline:0;font-size:inherit;line-height:inherit;width:50%}.rti--tag{align-items:center;background:var(--rti-tag);border-radius:var(--rti-radius);display:inline-flex;justify-content:center;padding:var(--rti-tag-padding)}.rti--tag button{background:none;border:0;border-radius:50%;cursor:pointer;line-height:inherit;padding:0 var(--rti-s)}.rti--tag button:hover{color:var(--rti-tag-remove)} 2`);var a=["Enter"],q=({name:e,placeHolder:t,value:n,onChange:i,onBlur:l,separators:o,disableBackspaceRemove:s,onExisting:u,onRemoved:p,disabled:f,isEditOnRemove:x,beforeAddValidate:h,onKeyUp:g,classNames:v})=>{let[b,y]=(0,r.useState)(n||[]);c(()=>{i&&i(b)},[b]),c(()=>{JSON.stringify(n)!==JSON.stringify(b)&&y(n)},[n]);let B=e=>{y(b.filter(t=>t!==e)),p&&p(e)};return r.createElement("div",{"aria-labelledby":e,className:"rti--container"},b.map(e=>r.createElement(m,{key:e,className:null==v?void 0:v.tag,text:e,remove:B,disabled:f})),r.createElement("input",{className:d("rti--input",null==v?void 0:v.input),type:"text",name:e,placeholder:t,onKeyDown:e=>{e.stopPropagation();let t=e.target.value;if(t||s||!b.length||"Backspace"!==e.key||(e.target.value=x?`${b.at(-1)} `:"",y([...b.slice(0,-1)])),t&&(o||a).includes(e.key)){if(e.preventDefault(),h&&!h(t,b))return;if(b.includes(t)){u&&u(t);return}y([...b,t]),e.target.value=""}},onBlur:l,disabled:f,onKeyUp:g}))}},45282:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/home/micro-sites/default-sites/pqrsd/[id]/new/[item]",function(){return n(97680)}])},90326:function(e,t,n){"use strict";var r=n(28598);n(82684);var a=n(78133);t.Z=e=>{let{header:t,content:n,className:i,headerClassName:l,contentClassName:o}=e;return(0,r.jsxs)("div",{className:(0,a.cx)("flex flex-col rounded-lg border-[2px] border-blueLight bg-white shadow-lg",i),children:[t&&(0,r.jsx)("div",{className:(0,a.cx)("px-4 py-3",l),children:t}),(0,r.jsx)("div",{className:(0,a.cx)("border-t-blueLight px-4 py-3",{"border-t-[3px]":t},o),children:n})]})}},91409:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseLexicalComponent:function(){return BaseLexicalComponent}});var r=n(28598);n(82684);var a=n(60424),i=n(94190),l=n(73801),o=n(88418),s=n(98195),u=n(13362),p=n(68317),f=n(28771);
2function BaseLexicalComponent(e){let{config:t,placeholder:n,editable:x=!0,children:h,contentEditableProps:g}=e;return(0,r.jsxs)(i.R,{initialConfig:{...f.FD,...t,editable:x},children:[(0,r.jsx)(u.B,{contentEditable:(0,r.jsx)(l.f,{spellCheck:!1,...g}),placeholder:(0,r.jsx)(Placeholder,{placeholder:n}),ErrorBoundary:o.Z}),(0,r.jsx)(s.r,{transformers:a.XC}),(0,r.jsx)(p.Te,{}),h]})}let Placeholder=e=>{let{placeholder:t=""}=e;return(0,r.jsx)("div",{className:"pointer-events-none absolute left-4 top-4 opacity-50",children:t})}},28771:function(e,t,n){"use strict";n.d(t,{FD:function(){return u},J8:function(){return s},_q:function(){return o}});var r=n(88023),a=n(34718),i=n(89055),l=n(77542);let o="lexical-editor",s=[a.qp,r.wg,l.c2,a.GR,i.EG,i.NK,l.rT],u={namespace:o,nodes:s,theme:{link:"cursor-pointer underline text-blue-600 hover:text-blue-800"},onError:e=>{console.error(e)}}},87053:function(e,t,n){"use strict";n.d(t,{h:function(){return IconButton}});var r=n(28598),a=n(68925),i=n.n(a);function IconButton(e){let{icon:t,active:n,className:a,...o}=e;return t?(0,r.jsx)("button",{...o,className:i()("rounded-sm px-1 py-[1px] ".concat(n?"text-blue-gray-800":""," ").concat(o.disabled?"bg-blue-gray-50 text-blue-gray-400":n?"cursor-pointer bg-blue-gray-50 text-blue-gray-800 hover:bg-blue-gray-100 hover:text-blue-gray-800":"cursor-pointer bg-blue-gray-50 text-blue-gray-400 hover:bg-blue-gray-100 hover:text-blue-gray-800"),a),children:l[t]}):null}let l={bold:(0,r.jsxs)("svg",{viewBox:"0 0 100 100",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",children:[(0,r.jsx)("title",{children:"Bold"}),(0,r.jsx)("path",{d:"M62.73 49.109c5.347-1.103 9.76-5.94 9.76-12.985 0-7.553-5.517-14.428-16.295-14.428H29.011a2.604 2.604 0 0 0-2.604 2.604v51.399a2.604 2.604 0 0 0 2.604 2.604h28.118c10.863 0 16.464-6.79 16.464-15.361.001-7.043-4.752-12.9-10.863-13.833zM38.458 32.305h15.107c4.074 0 6.62 2.461 6.62 5.94 0 3.649-2.546 5.941-6.62 5.941H38.458V32.305zm15.615 35.39H38.458v-12.9h15.616c4.668 0 7.214 2.886 7.214 6.45 0 4.074-2.716 6.45-7.215 6.45z"})]}),check:(0,r.jsxs)("svg",{viewBox:"0 0 20 20",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",children:[(0,r.jsx)("title",{children:"Check"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0z",clipRule:"evenodd"})]}),code:(0,r.jsxs)("svg",{viewBox:"0 0 16 16",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",children:[(0,r.jsx)("title",{children:"Inline Code"}),(0,r.jsx)("path",{d:"M5.854 4.854a.5.5 0 1 0-.708-.708l-3.5 3.5a.5.5 0 0 0 0 .708l3.5 3.5a.5.5 0 0 0 .708-.708L2.707 8l3.147-3.146zm4.292 0a.5.5 0 0 1 .708-.708l3.5 3.5a.5.5 0 0 1 0 .708l-3.5 3.5a.5.5 0 0 1-.708-.708L13.293 8l-3.147-3.146z"})]}),copy:(0,r.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:[(0,r.jsx)("title",{children:"Copy"}),(0,r.jsx)("path",{d:"M20 2H10c-1.103 0-2 .897-2 2v4H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2v-4h4c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM4 20V10h10l.002 10H4zm16-6h-4v-4c0-1.103-.897-2-2-2h-4V4h10v10z"})]}),italic:(0,r.jsxs)("svg",{viewBox:"0 0 100 100",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",children:[(0,r.jsx)("title",{children:"Italic"}),(0,r.jsx)("path",{d:"M60.571 24.301a2.604 2.604 0 0 0-2.604-2.604h-4.594a2.598 2.598 0 0 0-2.59 2.463l-.014-.001-11.276 50.978-.015.066-.011.048h.006a2.55 2.55 0 0 0-.045.449 2.595 2.595 0 0 0 2.406 2.584v.02h4.792a2.595 2.595 0 0 0 2.577-2.336l.013.001 11.257-50.972-.008-.001a2.58 2.58 0 0 0 .106-.695z"})]}),link:(0,r.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-[18px] w-[18px]",children:[(0,r.jsx)("title",{children:"Link"}),(0,r.jsx)("path",{d:"m17.657 14.828-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9 1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"})]}),underline:(0,r.jsxs)("svg",{viewBox:"0 0 100 100",focusable:"false",role:"img",fill:"
2currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",children:[(0,r.jsx)("title",{children:"Underline"}),(0,r.jsx)("path",{d:"M77.5 75.545c-.036 0-.068.009-.103.01v-.01h-55v.01c-1.608.056-2.897 1.368-2.897 2.99s1.288 2.934 2.897 2.99v.01h55v-.01c.035.001.068.01.103.01a3 3 0 0 0 0-6zM50 72.12c15.829 0 23.581-9.057 23.581-22.521V21.383a2.928 2.928 0 0 0-2.929-2.928h-3.864a2.928 2.928 0 0 0-2.929 2.928c0 .04.01.076.012.116v27.856c0 8.649-4.814 14.28-13.871 14.28s-13.871-5.631-13.871-14.28V21.49c.001-.036.011-.071.011-.107a2.928 2.928 0 0 0-2.928-2.928h-3.865a2.929 2.929 0 0 0-2.929 2.928v28.216c0 13.464 7.834 22.521 23.582 22.521z"})]}),strike:(0,r.jsxs)("svg",{viewBox:"0 0 100 100",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",children:[(0,r.jsx)("title",{children:"Strikethrough"}),(0,r.jsx)("path",{d:"M77.5 49.719c-.035 0-.068.009-.103.01v-.01h-55v.01a2.995 2.995 0 0 0-2.897 2.99 2.996 2.996 0 0 0 2.897 2.99v.01h55v-.01c.035.001.068.01.103.01a3 3 0 1 0 0-6zm-6.572 9.75h-7.14v.011c-.035-.002-.069-.011-.105-.011-.863 0-1.562.699-1.562 1.562 0 .126.019.247.047.365h-.018c.092.393.157.802.157 1.249 0 3.819-3.14 7.808-11.288 7.808-7.741 0-13.842-3.592-17.678-7.653a1.555 1.555 0 0 0-1.237-.617 1.56 1.56 0 0 0-1.275.664l-.001-.002-.01.015a.48.48 0 0 0-.019.029l-3.425 5.212.003.001a1.55 1.55 0 0 0-.398 1.033c0 .515.253.969.637 1.253 5.091 5.205 12.61 8.891 22.978 8.891 15.191 0 21.896-8.147 21.896-17.568 0-.172-.011-.335-.018-.501.007-.06.018-.118.018-.179 0-.863-.699-1.562-1.562-1.562zm-39.06-13.792c.269.471.77.792 1.351.792h23.542a.502.502 0 0 0 0-1.004v-.008c-8.471-2.48-17.2-3.403-17.2-8.866 0-4.159 3.734-7.044 9.505-7.044 5.941 0 11.967 2.037 16.465 6.535l.006-.008c.272.231.62.375 1.005.375.491 0 .923-.231 1.21-.584l.002.003.028-.039c.028-.037.056-.074.081-.114l3.409-4.788-.003-.001a1.55 1.55 0 0 0 .398-1.033c0-.473-.215-.892-.547-1.178l.011-.015C65.956 23.606 58.742 20.72 50 20.72c-12.476 0-20.623 7.214-20.623 16.634 0 3.499.939 6.195 2.491 8.323z"})]}),trash:(0,r.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",stroke:"currentColor",children:[(0,r.jsx)("title",{children:"Trash"}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 7-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16"})]})}},16568:function(e,t,n){"use strict";n.d(t,{L:function(){return LexicalEditor},w:function(){return getPlainTextFromEditorState}});var r=n(28598),a=n(82684),i=n(78133),l=n(13811),o=n(76311),s=n(41597),u=n(78448),p=n(91409),f=n(85115);let x=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,h=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,g=[e=>{let t=x.exec(e);return(null==t?void 0:t.length)?{index:t.index,length:t[0].length,text:t[0],url:t[0].startsWith("http")?t[0]:"https://".concat(t[0])}:null},e=>{let t=h.exec(e);return(null==t?void 0:t.length)?{index:t.index,length:t[0].length,text:t[0],url:"mailto:".concat(t[0])}:null}];function AutoLinkPlugin(){return(0,r.jsx)(f.$,{matchers:g})}var v=n(16595),b=n(69205),y=n(34718),w=n(66866),j=n(85202),N=n(87053);function FloatingMenu(e){let{show:t,...n}=e,i=(0,a.useRef)(null),[l,o]=(0,a.useState)(void 0),s=window.getSelection();return(0,a.useEffect)(()=>{let e=(null==s?void 0:s.rangeCount)===0||(null==s?void 0:s.isCollapsed);if(!t||!i.current||!s||e){o(void 0);return}let n=s.getRangeAt(0);(0,b.oo)(n,i.current,{placement:"top"}).then(e=>{o({x:e.x,y:e.y-10})}).catch(()=>{o(void 0)})},[t,s,null==s?void 0:s.anchorOffset]),(0,r.jsxs)("div",{ref:i,style:{top:(null==l?void 0:l.y)||-9999,left:(null==l?void 0:l.x)||-9999,...(!(null==l?void 0:l.x)||!(null==l?void 0:l.y))&&{position:"fixed",pointerEvents:"none"}},className:"absolute z-50 flex items-center justify-between gap-1 rounded-md border-[1px] border-blue-gray-100 bg-blue-gray-50 p-1 transition-opacity duration-200 ".concat((null==l?void 0:l.x)&&(null==l?void 0:l.y)?"opacity-100":"opacity-0"),children:[(0,r.jsx)(N.h,{icon:"bold","aria-label":"Format text as bold",active:n.isBold,onClick:()=>{n.editor.dispatchCommand(u.Ew,"bold")}}),(0,r.jsx)(N.h,{icon:"italic","aria-label":"Format text as italics",active:n.isItalic,onClick:()=>{n.editor.dispatchCommand(u.Ew,"italic")}}),(0,r.jsx)(N.h,{icon:"underline","aria-label":"Format text to underlined",active:n.isUnderline,onClick:()=>{n.editor.dispatchCommand(u.Ew,"underline")}}),(0,r.jsx)(N.h,{icon:"strike","aria-label":"Format text with a strikethrough",active:n.isStrikethrough,onClick:()=>{n.editor.dispatchCommand(u.Ew,"strikethrough")}}),(0,r.jsx)(N.h,{icon:"code","aria-label":"Format text with inline code",active:n.isCode,onClick:()=>{n.editor.dispatchCommand(u.Ew,"code")}}),(0,r.jsx)(N.h,{icon:"link","aria-label":"Add or edit link",active:n.isLink,onClick:()=>{n.editor.dispatchCommand(v.w,void 0)}})]})}function FloatingMenuPlugin(){let[e,t]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[l,o]=(0,a.useState)(!1),[s,p]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),{isPointerDown:N,isKeyDown:k}=function(){let[e,t]=(0,a.useState)(!1),[n,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let handlePointerUp=()=>{t(!1),document.removeEventListener("pointerup",handlePointerUp)},handlePointerDown=()=>{t(!0),document.addEventListener("pointerup",handlePointerUp)};return document.addEventListener("pointerdown",handlePointerDown),()=>{document.removeEventListener("pointerdown",handlePointerDown)}},[]),(0,a.useEffect)(()=>{let handleKeyUp=()=>{r(!1),document.removeEventListener("keyup",handleKeyUp)},handleKeyDown=()=>{r(!0),document.addEventListener("keyup",handleKeyUp)};return document.addEventListener("keydown",handleKeyDown),()=>{document.removeEventListener("keydown",handleKeyDown)}},[]),{isPointerDown:e,isKeyDown:n}}(),[C]=(0,w.g)(),S=document.body,E=(0,a.useCallback)(()=>{C.getEditorState().read(()=>
2{if(C.isComposing()||N||k)return;if(C.getRootElement()!==document.activeElement){t(!1);return}let e=(0,u.dL)();if((0,u.OP)(e)&&!e.anchor.is(e.focus)){let n=e.getNodes();i(e.hasFormat("bold")),o(e.hasFormat("code")),x(e.hasFormat("italic")),g(e.hasFormat("underline")),b(e.hasFormat("strikethrough")),p(n.every(e=>(0,y.Pq)(e.getParent()))),t(!0)}else t(!1)})},[C,N,k]);return(0,a.useEffect)(()=>C.registerUpdateListener(()=>{E()}),[C,E]),(0,a.useEffect)(()=>{E()},[N,k,E]),(0,j.createPortal)((0,r.jsx)(FloatingMenu,{editor:C,show:e,isBold:n,isCode:l,isLink:s,isItalic:f,isStrikethrough:v,isUnderline:h}),S)}var k=n(61107);function LocalStoragePlugin(e){let{namespace:t}=e,[n]=(0,w.g)(),r=(0,a.useCallback)(e=>{localStorage.setItem(t,e)},[t]),i=(0,k.D)(r,500);return(0,a.useEffect)(()=>n.registerUpdateListener(e=>{let{editorState:t,dirtyElements:n,dirtyLeaves:r}=e;if(0===n.size&&0===r.size)return;let a=JSON.stringify(t);i(a)}),[i,n]),null}function MaxLengthPlugin(e){let{maxLength:t}=e,[n]=(0,w.g)();return(0,a.useEffect)(()=>{if(t)return n.registerUpdateListener(e=>{let{editorState:r,prevEditorState:a,dirtyElements:i,dirtyLeaves:l}=e;(0!==i.size||0!==l.size)&&n.update(()=>{let e=(0,u.Gv)(),n="",r=!1;
2if(e.getChildren().forEach(e=>{(0,u.Gg)(e)&&(n+=e.getTextContent())}),n.length>t){r=!0;let n=t;e.getChildren().forEach(e=>{if((0,u.Gg)(e)){let t=e.getTextContent();if(n>0){let r=t.slice(0,n);e.setTextContent(r),n-=r.length}else e.remove()}})}if(r){let t=e.getLastDescendant();t&&t.getTextContent().length}})})},[n,t]),null}var C=n(84500),S=n(48188),E=n(28771);function LexicalEditor(e){let{config:t,...n}=e,[f,x]=(0,a.useState)(0),h=void 0!==n.maxLength&&f>n.maxLength;return(0,r.jsxs)(p.BaseLexicalComponent,{placeholder:"test",contentEditableProps:{className:(0,i.cx)("relative h-auto resize-y rounded border-2 p-4 focus:outline-none focus-visible:border-black",h?"border-red-500 focus-visible:border-red-500":"border-black focus-visible:border-black")},config:t,...n,children:[(0,r.jsx)(l.e,{}),(0,r.jsx)(s.B,{}),(0,r.jsx)(o.H,{}),(0,r.jsx)(AutoLinkPlugin,{}),(0,r.jsx)(v.v,{}),(0,r.jsx)(FloatingMenuPlugin,{}),(0,r.jsx)(LocalStoragePlugin,{namespace:E._q}),n.maxLength&&(0,r.jsx)(MaxLengthPlugin,{maxLength:n.maxLength}),(0,r.jsx)(C.V,{onChange:function(e){var t;e.read(()=>{let e=(0,u.Gv)(),t=e.getTextContent();x(t.length)}),null===(t=n.callbackRoot)||void 0===t||t.call(n,e)},maxLength:n.maxLength}),(0,r.jsx)(S.ValueUpdatePlugin,{value:n.value})]})}function getPlainTextFromEditorState(e){let t;try{t=JSON.parse(e)}catch(t){return e}if("object"!=typeof t||null===t||!("root"in t))return e;let n=(0,u.Jh)({nodes:E.J8}),r=n.parseEditorState(e),a=r.read(()=>(0,u.Gv)().getTextContent());return a}},16595:function(e,t,n){"use strict";n.d(t,{v:function(){return EditLinkPlugin},w:function(){return f}});var r=n(28598),a=n(82684),i=n(69205),l=n(34718),o=n(66866),s=n(78448),u=n(85202),p=n(87053);function $getSharedLinkTarget(e){let t;if(!e)return;let n=e.getNodes();if(0!==n.length){for(let e=0;e<n.length;e++){let r=n[e],a=r.getParent();if(!(0,l.Pq)(a))return;let i=a.getURL();if(0===e)t=i;else if(i!==t)return}return t}}let f=(0,s.fA)("TOGGLE_EDIT_LINK_MENU");function EditLinkPlugin(){let e=(0,a.useRef)(null),t=(0,a.useRef)(null),[n,u]=(0,a.useState)(""),[x,h]=(0,a.useState)(!1),[g,v]=(0,a.useState)(void 0),[b,y]=(0,a.useState)(void 0),[w,j]=(0,a.useState)(!1),[N]=(0,o.g)(),k=(0,a.useCallback)(()=>{u(""),h(!1),v(void 0),y(void 0)},[]);(0,a.useEffect)(()=>N.registerCommand(f,()=>{let t=window.getSelection(),n=(null==t?void 0:t.rangeCount)===0||(null==t?void 0:t.isCollapsed);if((null==g?void 0:g.x)||(null==g?void 0:g.y)||!e.current||!t||n)return k(),!1;let r=t.getRangeAt(0);return(0,i.oo)(r,e.current,{placement:"bottom"}).then(e=>{v({x:e.x,y:e.y+10}),y(r),N.getEditorState().read(()=>{let e=(0,s.dL)();if(e&&"getNodes"in e){let t=$getSharedLinkTarget(e);j(!!t)}})}).catch(()=>{k()}),!0},s.KB),[N,g,k]),(0,a.useEffect)(()=>{if((null==g?void 0:g.x)&&(null==g?void 0:g.y)){var e;N.getEditorState().read(()=>{let e=(0,s.dL)();if(e&&"getNodes"in e){var t;let n=null!==(t=$getSharedLinkTarget(e))&&void 0!==t?t:"";u(n)}}),null===(e=t.current)||void 0===e||e.focus()}},[g,N]),(0,a.useEffect)(()=>{let t=null==e?void 0:e.current;function handleClickOutside(e){t&&!t.contains(e.target)&&k()}return document.addEventListener("mousedown",handleClickOutside),()=>{document.removeEventListener("mousedown",handleClickOutside)}},[e,k]);let handleSetLink=()=>{if(!n)return;let e=N.dispatchCommand(l.k0,{url:n,target:"_blank"});e?k():h(!0)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(FakeSelection,{range:b}),(0,r.jsxs)("div",{ref:e,style:{top:null==g?void 0:g.y,left:null==g?void 0:g.x},"aria-hidden":!(null==g?void 0:g.x)||!(null==g?void 0:g.y),className:"absolute flex items-center justify-between border-[1px] bg-blue-gray-100 ".concat(x?"border-red-600":"border-blue-gray-300"," gap-1 rounded-md p-1 ").concat((null==g?void 0:g.x)&&g.y?"opacity-1 visible":"invisible opacity-0"),children:[(0,r.jsx)("input",{ref:t,value:n,onChange:e=>u(e.target.value),className:"border-none bg-transparent px-2 py-1 text-xs outline-none",placeholder:"Enter URL",onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),handleSetLink()):"Escape"===e.key&&(e.preventDefault(),k())}}),w?(0,r.jsx)(p.h,{icon:"trash",onClick:()=>{N.dispatchCommand(l.k0,null),k()}}):null,(0,r.jsx)(p.h,{icon:"check",disabled:!n,onClick:handleSetLink})]})]})}function FakeSelection(e){let{range:t}=e;if(!t)return null;let n=t.getBoundingClientRect();return(0,u.createPortal)((0,r.jsx)("div",{className:"absolute -z-[1] bg-blue-gray-200",style:{left:n.left,width:n.width,top:n.top-2,height:n.height+4}}),document.body)}},84500:function(e,t,n){"use strict";n.d(t,{V:function(){return MyOnChangePlugin}});var r=n(82684),a=n(66866),i=n(85681),l=n(78448);function MyOnChangePlugin(e){let{onChange:t,maxLength:n}=e,[o]=(0,a.g)();return(0,r.useEffect)(()=>
2{if(t)return o.registerUpdateListener(e=>{let{editorState:n}=e;t(n)})},[o,t]),(0,r.useEffect)(()=>o.registerTextContentListener(e=>{n&&e.length>n&&o.update(()=>{let t=(0,l.dL)();if((0,l.OP)(t)){let r=t.anchor;(0,i.V_)(o,r,e.length-n)}})}),[o,n]),null}},68317:function(e,t,n){"use strict";n.d(t,{Te:function(){return OpenLinkPlugin}});var r=n(28598),a=n(82684),i=n(69205),l=n(34718),o=n(66866),s=n(78448),u=n(7304),p=n(87053),f=n(61107);let x="open-link-menu";function OpenLinkPlugin(){let e=(0,a.useRef)(null),t=(0,a.useRef)(new Set),[n,s]=(0,a.useState)(!1),[h,g]=(0,a.useState)(void 0),[v,b]=(0,a.useState)(void 0),[y,w]=(0,a.useState)(null),[j]=(0,o.g)();return(0,a.useEffect)(()=>{let n=(0,f.D)(t=>{let n=t.target.closest("#".concat(x));if(n)return;let r=t.target.closest("[data-lexical-editor] a");if(!r||!e.current){b(void 0),w(null);return}return(0,i.oo)(r,e.current,{placement:"bottom"}).then(e=>{b({x:e.x,y:e.y+10}),w(r.getAttribute("href"))}).catch(()=>{b(void 0)}),!0},200);return j.registerMutationListener(l.GR,e=>{for(let[r,a]of e)switch(a){case"created":case"updated":t.current.add(r),1===t.current.size&&document.addEventListener("mousemove",n);break;case"destroyed":t.current.delete(r),0===t.current.size&&document.removeEventListener("mousemove",n)}})},[j,v]),(0,r.jsxs)("div",{id:x,ref:e,style:{top:null==v?void 0:v.y,left:null==v?void 0:v.x,width:h},"aria-hidden":!(null==v?void 0:v.x)||!(null==v?void 0:v.y),className:"absolute flex items-center justify-between gap-[2px] rounded-md border-[1px] border-blue-gray-300 bg-blue-gray-100 p-1 ".concat((null==v?void 0:v.x)&&v.y?"opacity-1 visible":"invisible opacity-0"),children:[y&&!n?(0,r.jsx)("a",{className:"cursor-pointer text-xs opacity-75",href:y,target:"_blank",rel:"noreferrer noopener",children:y}):(0,r.jsx)(u.ZT,{variant:"body3",as:"span",className:"w-full cursor-pointer text-center opacity-75",children:n?"\uD83C\uDF89 Copied!":"No link"}),y?(0,r.jsx)(p.h,{icon:"copy",onClick:()=>{var t;navigator.clipboard.writeText(y),s(!0),g(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().width),setTimeout(()=>{s(!1),g(void 0)},1e3)}}):void 0]})}(0,s.fA)()},48188:function(e,t,n){"use strict";n.r(t),n.d(t,{ValueUpdatePlugin:function(){return ValueUpdatePlugin}});var r=n(82684),a=n(60424),i=n(66866);let ValueUpdatePlugin=e=>{let{value:t}=e,[n]=(0,i.g)(),l=(0,r.useRef)(!1),o=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{if(l.current){let e=JSON.stringify(n.getEditorState().toJSON()),r="string"==typeof t?t:JSON.stringify(t);if(e===r)return;let a="string"==typeof o.current?o.current:JSON.stringify(o.current);if(a===r)return}if("string"==typeof t)try{let e=JSON.parse(t);if(e&&"object"==typeof e){let t=n.parseEditorState(e);n.setEditorState(t)}else n.update(()=>{(0,a.Os)(t)})}catch(e){n.update(()=>{(0,a.Os)(t)})}else if("object"==typeof t&&null!==t){let e=n.parseEditorState(t);n.setEditorState(e)}o.current=t,l.current=!0},[t,n]),null}},61107:function(e,t,n){"use strict";function debounce(e,t){let n;return function(){for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];clearTimeout(n),n=window.setTimeout(()=>e.apply(this,a),t)}}n.d(t,{D:function(){return debounce}})},90546:function(e,t,n){"use strict";n.d(t,{$:function(){return NewSwitch}});var r=n(28598);n(82684);var a=n(78133),i=n(30824),l=n(19223);function Switch(e){let{className:t,...n}=e;return(0,r.jsx)(l.fC,{"data-slot":"switch",className:(0,a.cn)("peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-[1.5px] border-[#3366CC] p-[2px] outline-none transition-colors","data-[state=checked]:bg-[#3366CC] data-[state=unchecked]:bg-white","focus-visible:ring-2 focus-visible:ring-[#3366CC]/30 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-70",t),...n,children:(0,r.jsx)(l.bU,{"data-slot":"switch-thumb",className:(0,a.cn)("pointer-events-none block size-4 rounded-full shadow-sm transition-[transform,background-color]","data-[state=checked]:bg-white data-[state=unchecked]:bg-[#3366CC]","data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})}function NewSwitch(e){let{id:t,checked:n,defaultChecked:l,onCheckedChange:o,disabled:s=!1,label:u="Colored switch",showLabel:p=!0,className:f,switchClassName:x,thumbClassName:h,labelClassName:g,ariaLabel:v}=e;return(0,r.jsxs)("div",{id:t,className:(0,a.cn)("inline-flex items-center gap-[11px]",f),children:[(0,r.jsx)(Switch,{className:x,...void 0!==n?{checked:n}:{},...void 0!==l?{defaultChecked:l}:{},onCheckedChange:o,disabled:s,"aria-label":v}),p&&(0,r.jsx)(i._,{className:(0,a.cn)("font-atlassianSans text-sm font-normal leading-snug text-tundora",g),children:u})]})}},39645:function(e,t,n){"use strict";n.d(t,{J2:function(){return o},tW:function(){return u},xo:function(){return s},yk:function(){return p}});var r=n(28598),a=n(82684),i=n(78133),l=n(83992);let o=l.fC,s=l.xz,u=l.ee,p=a.forwardRef((e,t)=>
2{let{className:n,align:a="center",sideOffset:o=4,...s}=e;return(0,r.jsx)(l.h_,{children:(0,r.jsx)(l.VY,{ref:t,align:a,sideOffset:o,className:(0,i.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...s})})});p.displayName=l.VY.displayName},63424:function(e,t,n){"use strict";n.d(t,{Bw:function(){return v},Ph:function(){return p},Ql:function(){return y},i4:function(){return x},ki:function(){return f}});var r=n(28598),a=n(82684),i=n(78133),l=n(72534),o=n(50277),s=n(4666),u=n(22242);let p=l.fC;l.ZA;let f=l.B4,x=a.forwardRef((e,t)=>{let{className:n,children:a,...s}=e;return(0,r.jsxs)(l.xz,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...s,children:[a,(0,r.jsx)(l.JO,{asChild:!0,children:(0,r.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=l.xz.displayName;let h=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.u_,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",n),...a,children:(0,r.jsx)(s.Z,{className:"h-4 w-4"})})});h.displayName=l.u_.displayName;let g=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.$G,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",n),...a,children:(0,r.jsx)(o.Z,{className:"h-4 w-4"})})});g.displayName=l.$G.displayName;let v=a.forwardRef((e,t)=>{let{className:n,children:a,position:o="popper",...s}=e;return(0,r.jsx)(l.h_,{children:(0,r.jsxs)(l.VY,{ref:t,className:(0,i.cn)("relative z-popover-modal max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...s,children:[(0,r.jsx)(h,{}),(0,r.jsx)(l.l_,{className:(0,i.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(g,{})]})})});v.displayName=l.VY.displayName;let b=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.__,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",n),...a})});b.displayName=l.__.displayName;let y=a.forwardRef((e,t)=>{let{className:n,children:a,...o}=e;return(0,r.jsxs)(l.ck,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",n),...o,children:[(0,r.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(l.wU,{children:(0,r.jsx)(u.Z,{className:"h-4 w-4"})})}),(0,r.jsx)(l.eT,{children:a})]})});y.displayName=l.ck.displayName;let w=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.Z0,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",n),...a})});w.displayName=l.Z0.displayName},51668:function(e,t,n){"use strict";n.d(t,{di:function(){return g},e8:function(){return p},fu:function(){return x},mY:function(){return s},rb:function(){return f},sZ:function(){return u}});var r=n(28598),a=n(82684),i=n(78133),l=n(63778),o=n(40603);
2n(27191);let s=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.mY,{ref:t,className:(0,i.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n),...a})});s.displayName=l.mY.displayName;let u=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,r.jsx)(o.Z,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,r.jsx)(l.mY.Input,{ref:t,className:(0,i.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",n),...a})]})});u.displayName=l.mY.Input.displayName;let p=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.mY.List,{ref:t,className:(0,i.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",n),...a})});p.displayName=l.mY.List.displayName;let f=a.forwardRef((e,t)=>(0,r.jsx)(l.mY.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));f.displayName=l.mY.Empty.displayName;let x=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.mY.Group,{ref:t,className:(0,i.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",n),...a})});x.displayName=l.mY.Group.displayName;let h=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.mY.Separator,{ref:t,className:(0,i.cn)("-mx-1 h-px bg-border",n),...a})});h.displayName=l.mY.Separator.displayName;let g=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.mY.Item,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n),...a})});g.displayName=l.mY.Item.displayName},30824:function(e,t,n){"use strict";n.d(t,{_:function(){return u}});var r=n(28598),a=n(82684),i=n(78133),l=n(66010),o=n(111);let s=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(l.f,{ref:t,className:(0,i.cn)(s(),n),...a})});u.displayName=l.f.displayName},69970:function(e,t,n){"use strict";n.d(t,{Z:function(){return ActionURL_ActionURL}});var r=n(28598),a=n(82684),i=n(75367),l=n(46465),o=n(74211),s=n(91764),u=n(35961),p=n(90546),f=n(72167),x=n(52788),h=n(22242),g=n(85331),v=n(78133),b=n(39645),y=n(51668),ActionURL_DynamicPageSelectInput=e=>{let{currentId:t,title:n,disabled:l=!1,pageType:o,placeholder:s="Selecciona",searchPlaceholder:u="Buscar..."}=e,{control:p}=(0,i.Gc)(),[w,j]=(0,a.useState)(!1),[N,k]=(0,a.useState)(""),[C,S]=(0,a.useState)([]),[E,L]=(0,a.useState)(0),[R,P]=(0,a.useState)(!0),A=(0,a.useRef)(!1),T=(0,a.useRef)(null),M=(0,a.useRef)({hasMore:!0,searchTerm:"",currentSkip:0});M.current={hasMore:R,searchTerm:N,currentSkip:E};let[_,{loading:I}]=(0,f.g4H)({fetchPolicy:"cache-and-network"}),Z=(0,a.useCallback)(async(e,t,n)=>{if(!A.current){A.current=!0;try{var r,a,i;let l=await _({variables:{where:{status:[f.HSK.Active],...o?{type:o}:{},...e?{name:{_contains:e}}:{}},pagination:{skip:t,take:20}}}),s=null!==(i=null===(a=l.data)||void 0===a?void 0:null===(r=a.pageDynamics)||void 0===r?void 0:r.map(e=>{var t,n,r;return{label:e.title,value:(null==e?void 0:null===(r=e.seo)||void 0===r?void 0:null===(n=r.metadata)||void 0===n?void 0:null===(t=n.at(0))||void 0===t?void 0:t.slug)||e.id}}))&&void 0!==i?i:[];S(e=>n?s:[...e,...s]),P(20===s.length),L(t+s.length)}finally{A.current=!1}}},[_,o]);(0,a.useEffect)(()=>{Z("",0,!0)},[]);let handleOpenChange=e=>{j(e),e&&""!==N&&(k(""),Z("",0,!0))},handleSearch=e=>{k(e),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{Z(e,0,!0)},350)},G=(0,a.useCallback)(e=>{e&&e.addEventListener("scroll",()=>{let t=(e.scrollTop+e.clientHeight)/e.scrollHeight,n=M.current;t>.9&&!A.current&&n.hasMore&&Z(n.searchTerm,n.currentSkip,!1)})},[Z]);return(0,r.jsxs)("div",{className:(0,v.cx)("flex-col"),children:[n&&(0,r.jsx)("label",{className:"body-text1 text-tundora",children:n}),(0,r.jsx)(i.Qr,{control:p,name:t,render:e=>
2{let{field:{onChange:t,value:n}}=e,a=C.find(e=>e.value===n);return(0,r.jsxs)(b.J2,{open:w,onOpenChange:handleOpenChange,modal:!0,children:[(0,r.jsx)(b.xo,{asChild:!0,disabled:l,children:(0,r.jsxs)("button",{type:"button",role:"combobox","aria-expanded":w,disabled:l,className:(0,v.cn)("mt-2 flex h-10 w-full min-w-0 items-center justify-between rounded-md border-2 border-[#BABABA] bg-white px-3 py-2 text-sm hover:border-[#2563EB] focus:border-[#3B82F6] focus:outline-none",l&&"cursor-not-allowed opacity-50",!a&&"text-muted-foreground"),children:[(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate text-left",children:a?a.label:s}),(0,r.jsx)(x.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),(0,r.jsx)(b.yk,{className:"z-popover-modal w-[--radix-popover-trigger-width] p-0",onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:(0,r.jsxs)(y.mY,{shouldFilter:!1,children:[(0,r.jsx)(y.sZ,{placeholder:u,value:N,onValueChange:handleSearch}),(0,r.jsxs)(y.e8,{ref:G,children:[0===C.length&&!I&&(0,r.jsx)(y.rb,{children:"No se encontraron resultados."}),(0,r.jsx)(y.fu,{children:C.map(e=>(0,r.jsxs)(y.di,{value:e.value,onSelect:()=>{t(e.value),j(!1)},children:[(0,r.jsx)(h.Z,{className:(0,v.cn)("mr-2 h-4 w-4",n===e.value?"opacity-100":"opacity-0")}),e.label]},e.value))}),I&&(0,r.jsx)("div",{className:"flex justify-center py-2",children:(0,r.jsx)(g.Z,{className:"h-4 w-4 animate-spin text-muted-foreground"})}),!I&&!R&&C.length>0&&(0,r.jsx)("p",{className:"py-2 text-center text-xs text-muted-foreground",children:"Todos los resultados cargados"})]})]})})]})}})]})},w=n(90775),j=n(93537),ActionURL_ActionURL=e=>{var t;let{isSimpleUrl:n,title:x="Enlaces",subtitle:h="Gestione el comportamiento de los enlaces en la sede electr\xf3nica",fieldUrl:g="url",fieldTarget:v="target",fieldRouteType:b="routeType",fieldArguments:y="arguments",fieldRouteNavigation:N="routeNavigation",isDisabledAll:k=!1,showSwitch:C=!1,includeWorkflowOption:S=!1,topContent:E,children:L}=e,[R,P]=(0,a.useState)(!0),{watch:A,setValue:T,formState:{errors:M}}=(0,i.Gc)();(0,a.useEffect)(()=>{initValues()},[]);let initValues=()=>(A(b)||T(b,f.MGp.NoAction),A(v)&&(A(v)==o.L._blank||A(v)==o.L._self)||T(v,"_self"),""),_=[{label:"Sin acci\xf3n",value:f.MGp.NoAction},{label:"Abrir enlace externo",value:f.MGp.ExternalRoute},{label:"Abrir enlace interno",value:f.MGp.InternaltRoute},{label:"Abrir enlace interno con argumentos",value:f.MGp.InternalRouteWithArguments},{label:"Abrir p\xe1gina din\xe1mica",value:f.MGp.DynamicPage},{label:"Abrir micro sitio",value:f.MGp.Microsite},...S?[{label:"Iniciar tr\xe1mite (Workflow)",value:"WORKFLOW"}]:[]],I=[{label:"Abrir enlace externo",value:f.MGp.ExternalRoute}],Z=k||C&&!R;return(0,r.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"headline-h5 text-primary",children:x}),C&&(0,r.jsx)(p.$,{className:"flex-row-reverse gap-2.5",onCheckedChange:()=>P(e=>!e),checked:R,label:"Secci\xf3n con enlace"})]}),(0,r.jsx)("hr",{className:"my-[5px]"}),(0,r.jsx)("label",{className:"body-text1 text-tundora",children:h}),E&&(0,r.jsx)("div",{className:"mt-4",children:E}),(0,r.jsx)("br",{}),(0,r.jsxs)("div",{className:"mb-2 flex flex-1 flex-row gap-x-10",children:[(0,r.jsx)("div",{className:"flex flex-1 flex-col",children:S||!n||A("typeofprocedure")===f.boA.InformationOfInterest?(0,r.jsx)(j.Z,{options:_,currentId:b,title:"Tipo de acci\xf3n",disabled:Z}):(0,r.jsx)(j.Z,{options:I,currentId:b,title:"Tipo de acci\xf3n",disabled:Z})}),A(b)!==f.MGp.NoAction&&(0,r.jsx)("div",{className:"flex flex-1 flex-col",children:(0,r.jsx)(j.Z,{options:[{label:"Abrir en misma pesta\xf1a",value:"_self"},{label:"Abrir en nueva pesta\xf1a",value:"_blank"}],currentId:v,title:"Tipo de comportamiento",disabled:Z})})]}),L&&(0,r.jsx)("div",{className:"mt-4",children:L}),(0,r.jsx)("br",{}),(A(b)==f.MGp.ExternalRoute||A(b)==f.MGp.InternalRouteWithArguments)&&A(b)!==f.MGp.NoAction?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{title:"Direcci\xf3n URL",currentId:g,disabled:Z}),n&&A("typeofprocedure")!==f.boA.InformationOfInterest?null:(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("label",{className:"body-text1 text-tundora",children:"Argumentos"}),(0,r.jsxs)("div",{className:"mt-[8px]",children:[(0,r.jsx)(i.Qr,{name:y,defaultValue:[],render:e=>
2{let{field:{onChange:t,value:n}}=e;return(0,r.jsx)(l.B,{separators:["Tab","Enter"],onChange:t,value:null!=n?n:[],disabled:Z})}}),(0,r.jsx)(u.Z,{message:null===(t=M[y])||void 0===t?void 0:t.message})]})]})]}):A(b)!==f.MGp.NoAction?initValues():null,A(b)==f.MGp.InternaltRoute&&A(b)!==f.MGp.NoAction&&(0,r.jsx)(j.Z,{options:s.Pl,currentId:N,title:"P\xe1ginas internas",disabled:Z,searchable:!0,searchPlaceholder:"Buscar p\xe1gina..."}),(A(b)==f.MGp.DynamicPage||A(b)==f.MGp.Microsite)&&A(b)!==f.MGp.NoAction&&(0,r.jsx)(ActionURL_DynamicPageSelectInput,{currentId:g,title:A(b)==f.MGp.Microsite?"Micro sitios":"P\xe1ginas din\xe1micas",disabled:Z,pageType:A(b)==f.MGp.Microsite?f.Uge.Microsite:f.Uge.DynamicPage,searchPlaceholder:A(b)==f.MGp.Microsite?"Buscar micro sitio...":"Buscar p\xe1gina din\xe1mica..."},A(b))]})}},93537:function(e,t,n){"use strict";var r=n(28598),a=n(82684),i=n(78133),l=n(52788),o=n(22242),s=n(75367),u=n(7920),p=n(62313),f=n(39645),x=n(63424),h=n(51668);t.Z=e=>{let{currentId:t,options:n,title:g,onChange:v,className:b,placeholder:y="Selecciona",disabled:w=!1,infoBoolean:j=!1,infoText:N="",searchable:k=!1,searchPlaceholder:C="Buscar...",emptyText:S="No se encontraron resultados."}=e,{control:E}=(0,s.Gc)(),[L,R]=(0,a.useState)(!1),P=(0,a.useMemo)(()=>g?(0,r.jsxs)("label",{className:"body-text1 flex items-center gap-2 text-tundora",children:[g,j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{"data-tooltip-id":"tooltip-".concat(t),"data-tooltip-content":"".concat(N),className:"cursor-pointer",children:(0,r.jsx)(p.Z,{})}),(0,r.jsx)(u.u,{style:{backgroundColor:"white",cursor:"pointer",color:"black",borderRadius:"10px",height:"50px",display:"flex",justifyContent:"center",alignItems:"center",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",border:"1px solid rgba(0, 0, 0, 0.1)"},id:"tooltip-".concat(t)})]})]}):null,[g,j,t,N]);return k?(0,r.jsxs)("div",{className:(0,i.cx)("flex-col",b),children:[P,(0,r.jsx)(s.Qr,{control:E,name:t,render:e=>{let{field:{onChange:t,value:a}}=e,s=n.find(e=>e.value===a);return(0,r.jsxs)(f.J2,{open:L,onOpenChange:R,children:[(0,r.jsx)(f.xo,{asChild:!0,disabled:w,children:(0,r.jsxs)("button",{type:"button",role:"combobox","aria-expanded":L,disabled:w,className:(0,i.cn)("mt-2 flex h-10 w-full min-w-0 items-center justify-between rounded-md border-2 border-[#BABABA] bg-white px-3 py-2 text-sm hover:border-[#2563EB] focus:border-[#3B82F6] focus:outline-none",w&&"cursor-not-allowed opacity-50",!s&&"text-muted-foreground"),children:[(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate text-left",children:s?s.label:y}),(0,r.jsx)(l.Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),(0,r.jsx)(f.yk,{className:"z-popover-modal w-[--radix-popover-trigger-width] p-0",children:(0,r.jsxs)(h.mY,{children:[(0,r.jsx)(h.sZ,{placeholder:C}),(0,r.jsxs)(h.e8,{children:[(0,r.jsx)(h.rb,{children:S}),(0,r.jsx)(h.fu,{children:n.map(e=>(0,r.jsxs)(h.di,{value:e.label,onSelect:()=>{t(e.value),null==v||v(),R(!1)},children:[(0,r.jsx)(o.Z,{className:(0,i.cn)("mr-2 h-4 w-4",a===e.value?"opacity-100":"opacity-0")}),e.label]},e.value))})]})]})})]})}})]}):(0,r.jsxs)("div",{className:(0,i.cx)("flex-col",b),children:[P,(0,r.jsx)(s.Qr,{control:E,name:t,render:e=>{let{field:{onChange:t,value:a}}=e;return(0,r.jsxs)(x.Ph,{value:a||"",onValueChange:e=>{t(e),null==v||v()},disabled:w,children:[(0,r.jsx)(x.i4,{className:"mt-2 h-10 rounded-md border-2 border-[#BABABA] bg-white hover:border-[#2563EB] focus:border-[#3B82F6]",children:(0,r.jsx)(x.ki,{placeholder:y})}),(0,r.jsx)(x.Bw,{children:n.map(e=>(0,r.jsx)(x.Ql,{value:e.value,children:e.label},e.value))})]})}})]})}},95750:function(e,t,n){"use strict";n.d(t,{HD:function(){return h},Jk:function(){return f},h2:function(){return x},n4:function(){return getLinkValues}});var r=n(28598),a=n(72167),i=n(90326),l=n(69970),o=n(71746),s=n(90775),u=n(96963),p=n(11300);let f="type",x="support",getLinkValues=e=>({routeType:(null==e?void 0:e.routeType)||a.MGp.NoAction,target:(null==e?void 0:e.target)||"_self",url:(null==e?void 0:e.url)||"",arguments:(null==e?void 0:e.arguments)||[],routeNavigation:(null==e?void 0:e.routeNavigation)||void 0}),h={routeType:a.MGp.NoAction,target:"_self",url:"",arguments:[],routeNavigation:void 0};t.ZP=e=>{let{kind:t,isEdit:n=!1}=e,a=t===x;return(0,r.jsx)("div",{className:"mx-10 bg-white",children:(0,r.jsx)(i.Z,{content:(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-y-5",children:[(0,r.jsx)(p.Z,{title:a?"".concat(n?"Editar":"Nueva"," opci\xf3n de atenci\xf3n"):"".concat(n?"Editar":"Nuevo"," tipo de PQRSDF"),description:a?"Configure el canal de atenci\xf3n, su contacto directo o un enlace de navegaci\xf3n.":"Configure el nombre, descripci\xf3n, icono y tiempo legal de respuesta."}),(0,r.jsx)(s.Z,{currentId:"title",title:"T\xedtulo (*)",showLength:!0,maxLength:200}),(0,r.jsx)(u.Z,{currentId:"description",title:"Descripci\xf3n (*)",showLength:!0,maxLength:500}),a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{currentId:"contactValue",title:"Correo o tel\xe9fono de contacto",showLength:!0,maxLength:200}),(0,r.jsx)(o.Z,{supportedImageTypes:["jpg","svg","png"],currentId:"icon"}),(0,r.jsx)(l.Z,{subtitle:"Configure un enlace si la opci\xf3n de atenci\xf3n debe abrir un recurso."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{currentId:"responseDays",title:"Tiempo de respuesta en d\xedas h\xe1biles (*)",inputProps:{type:"number"}}),(0,r.jsx)(o.Z,{supportedImageTypes:["jpg","svg","png"],currentId:"icon"})]})]})})})}},97680:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _item_}});
2var r=n(28598),a=n(34376),i=n(72167),l=n(54913),o=n(92677),s=n(51192),u=n(91231),p=n(83015),f=n(99085),x=n(68197),h=n(92804),g=n(95750),PagePqrsdBlock_NewPqrsdfItem=e=>{let{defaultBreadcrumb:t,prevRoute:n="/"}=e,v=(0,a.useRouter)(),{replace:b}=v,{id:y,item:w}=v.query,j=w===g.h2?g.h2:g.Jk,{showVisible:N}=(0,s.nj)(),[k]=(0,i.dv7)(),[C]=(0,i.pTU)(),S=j===g.h2?"Nueva opci\xf3n de atenci\xf3n":"Nuevo tipo de PQRSDF",E=(null==t?void 0:t.concat([{name:"Bloque principal de PQRSDF",route:n},{name:S,route:"#"}]))||[],handleGoBack=()=>{n&&b(n)},L=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"bg-white px-10",children:[(0,r.jsx)(p.Z,{items:E,color:"text-tundora",colorLink:"text-dimGray"}),(0,r.jsx)(h.Z,{showBackButton:!0,title:S,backRoute:n,subtitle:"Los campos marcados con (*) son de car\xe1cter obligatorio"})]}),(0,r.jsx)(g.ZP,{kind:j}),(0,r.jsx)(x.Z,{onCancel:handleGoBack})]});return j===g.h2?(0,r.jsx)(f.T,{schema:l.ty,values:{...g.HD,contactValue:"",icon:[]},submit:e=>{N({modalVisible:!0,title:"Guardar cambios",message:"\xbfEst\xe1 seguro que desea guardar los cambios?",type:"info",onConfirm:()=>{var t,n;N({modalVisible:!1});let r=e.routeType&&e.routeType!==i.MGp.NoAction;(0,o.e)(C({variables:{input:{pqrsdfSupportItem:{parentId:y,title:e.title,description:e.description,contactValue:e.contactValue||null,...(null===(n=e.icon)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.id)?{iconId:e.icon[0].id}:{},...r?{link:{routeType:e.routeType,routeNavigation:e.routeNavigation,target:e.target,arguments:e.arguments,url:e.url}}:{}}}},onCompleted:()=>{(0,u.XA)("Opci\xf3n de atenci\xf3n creada exitosamente"),handleGoBack()}}))}})},children:L}):(0,r.jsx)(f.T,{schema:l.WT,values:{title:"",description:"",responseDays:15,icon:[]},submit:e=>{N({modalVisible:!0,title:"Guardar cambios",message:"\xbfEst\xe1 seguro que desea guardar los cambios?",type:"info",onConfirm:()=>{var t,n;N({modalVisible:!1}),(0,o.e)(k({variables:{input:{pqrsdfTypeItem:{parentId:y,title:e.title,description:e.description,responseDays:Number(e.responseDays),...(null===(n=e.icon)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.id)?{iconId:e.icon[0].id}:{}}}},onCompleted:()=>{(0,u.XA)("Tipo de PQRSDF creado exitosamente"),handleGoBack()}}))}})},children:L})},v=n(99676),b=n(91764),y=n(7932),_item_=()=>{let e=(0,a.useRouter)(),{id:t}=e.query,n=Array.isArray(t)?t[0]:t,l=e.isReady&&!!n;(0,i.AKR)({variables:{pageBlockSimpleId:n},skip:!l});let o={permissionsKeys:v.E.pageBlockFind,defaultBreadcrumb:y.defaultBreadcrumb,prevRoute:"".concat(b.nd,"/").concat(t)};return(0,r.jsx)(PagePqrsdBlock_NewPqrsdfItem,{...o})}},19223:function(e,t,n){"use strict";n.d(t,{bU:function(){return C},fC:function(){return k}});var r=n(82684),a=n(56913),i=n(10919),l=n(75566),o=n(42272),s=n(95515),u=n(87890),p=n(57207),f=n(28598),x="Switch",[h,g]=(0,l.b)(x),[v,b]=h(x),y=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:l,checked:s,defaultChecked:u,required:h,disabled:g,value:b="on",onCheckedChange:y,form:w,...j}=e,[k,C]=r.useState(null),S=(0,i.e)(t,e=>C(e)),E=r.useRef(!1),L=!k||w||!!k.closest("form"),[R,P]=(0,o.T)({prop:s,defaultProp:u??!1,onChange:y,caller:x});return(0,f.jsxs)(v,{scope:n,checked:R,disabled:g,children:[(0,f.jsx)(p.WV.button,{type:"button",role:"switch","aria-checked":R,"aria-required":h,"data-state":getState(R),"data-disabled":g?"":void 0,disabled:g,value:b,...j,ref:S,onClick:(0,a.Mj)(e.onClick,e=>{P(e=>!e),L&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),L&&(0,f.jsx)(N,{control:k,bubbles:!E.current,name:l,value:b,checked:R,required:h,disabled:g,form:w,style:{transform:"translateX(-100%)"}})]})});y.displayName=x;var w="SwitchThumb",j=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,a=b(w,n);return(0,f.jsx)(p.WV.span,{"data-state":getState(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});j.displayName=w;var N=r.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...l},o)=>{let p=r.useRef(null),x=(0,i.e)(p,o),h=(0,s.D)(n),g=(0,u.t)(t);return r.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked"),i=r.set;if(h!==n&&i){let t=new Event("click",{bubbles:a});i.call(e,n),e.dispatchEvent(t)}},[h,n,a]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...l,tabIndex:-1,ref:x,style:{...l.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function getState(e){return e?"checked":"unchecked"}N.displayName="SwitchBubbleInput";var k=y,C=j},52788:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(36965);let a=(0,r.Z)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},85331:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(36965);let a=(0,r.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}},function(e){e.O(0,[5445,2456,2081,7920,173,5367,590,7698,6449,9414,1502,6137,4465,9420,8234,6129,3974,3324,3429,4373,6233,1746,7265,9017,8256,9774,2888,179],function(){return e(e.s=45282)}),_N_E=e.O()}]); 3//# sourceMappingURL=[item]-20e236c527690d8c.js.map
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.