PageSourceSearch

https://ministrypro.ai/_next/static/chunks/6519.a349e7566f5130ac.js

js ministrypro.ai collected 2026-10-05 15:40:47 UTC 14,171 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6519],{98664:function(e,t,n){n.d(t,{Kb:function(){return r},WW:function(){return i},XQ:function(){return s},co:function(){return a}});let r="glass-color border-0 p-0 md:max-w-[1344px] md:rounded-[var(--portal-roundness)]",a="min-[860px]:top-[120px] min-[860px]:bottom-8 min-[860px]:translate-y-0 min-[860px]:overflow-hidden",i="xl:left-[349px] xl:right-4 xl:w-auto xl:max-w-none xl:translate-x-0",s="xl:pl-[349px] xl:pr-4"},55891:function(e,t,n){n.r(t),n.d(t,{MemoriesContent:function(){return E},default:function(){return Z}});var r=n(11527),a=n(50959),i=n(57355),s=n(88717),l=n(63947),o=n(94985),d=n(32975),c=n(98664),u=n(43352),f=n(19048),m=n(53346),p=n(37110),x=n(7242),h=n(18905),g=n(50323),v=n(70577),b=n(82139),y=n(71428),w=n(57897),j=n(8807),N=n(22711),S=n(36789),k=n(49565),z=n(43051),C=n(97442),R=n(61098);let M=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(R.Z,{className:(0,C.Z)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...a})});M.displayName="Textarea";var V=e=>{let{data:{id:t,name:n,tag:i,pickaxe:s,value:l,formId:c}}=e,f=(0,o.m)(),{t:m}=(0,x.$G)("popup"),[h,g]=(0,a.useState)(l),[v,y]=(0,a.useState)(!1),[j,N]=(0,a.useState)(!1),[C,R]=(0,a.useState)(!1),V=u.S.useUtils(),E=u.S.user.update.userMemory.useMutation({onSuccess:async()=>{await V.user.get.memoriesInfinite.invalidate()}}),Z=u.S.user.delete.memories.useMutation({onSuccess:async()=>{await V.user.get.memoriesInfinite.invalidate()}}),P=(0,a.useMemo)(()=>(null==s?void 0:s.formtitle)||(null==s?void 0:s.formid)||c+" (Deleted)",[s,c]),W=(0,a.useMemo)(()=>(0,S.WU)(new Date,"MMM d, yyyy h:mmaaa"),[]);(0,a.useEffect)(()=>{g(l)},[l]);let F=async()=>{try{if(h===l){y(!1);return}N(!0),await E.mutateAsync({id:t,value:h}),y(!1)}catch(e){alert(f((0,d.Z)(e)))}finally{N(!1)}},O=async()=>{try{R(!0),await Z.mutateAsync({ids:[t]})}catch(e){alert(f((0,d.Z)(e)))}finally{R(!1)}};return(0,r.jsxs)(p.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"glass flex min-h-[171px] w-full flex-col overflow-hidden rounded-[var(--portal-roundness)]",children:[(0,r.jsxs)("div",{className:"relative flex flex-col gap-4 border-b bg-white/40 px-6 py-4 text-sm glass-dark:bg-black/50 md:flex-row md:flex-wrap md:items-center md:justify-between md:gap-6",children:[(0,r.jsxs)("div",{className:"flex min-w-0 select-none flex-col gap-0 pr-24 leading-7 md:flex-row md:items-center md:gap-2 md:pr-0 md:leading-normal",children:[(0,r.jsx)("p",{className:"break-words text-lg",children:n||i}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"lowercase opacity-70",children:m("memories.collectedBy",{defaultValue:"collected by"})}),(0,r.jsx)("p",{className:"break-words text-lg",children:P})]})]}),(0,r.jsxs)("div",{className:v?"flex w-full items-center justify-between gap-3 md:static md:w-auto md:flex-row md:items-center md:justify-start md:gap-2":"absolute right-6 top-11 flex flex-col items-end gap-1 md:static md:flex-row md:items-center md:gap-2",children:[(0,r.jsx)(w.z,{variant:"transparent",size:"blank",className:"h-7 px-0 py-0 leading-7 md:h-9 md:px-4 md:py-2",onClick:()=>{let e=!v;y(e),e||g(l)},disabled:j||C,children:v?m("cancel",{defaultValue:"Cancel"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z.Z,{}),m("memories.edit",{defaultValue:"Edit"})]})}),v&&(0,r.jsxs)(w.z,{variant:"transparent",size:"blank",className:"h-7 px-0 py-0 leading-7 md:h-9 md:px-4 md:py-2",onClick:F,disabled:j||C,children:[(0,r.jsx)(k.Z,{}),j?m("saving",{defaultValue:"Saving..."}):m("memories.saveChanges",{defaultValue:"Save changes"})]}),(0,r.jsx)(w.z,{variant:"transparent",size:"blank",className:"hidden h-9 px-4 py-2 md:flex",onClick:O,disabled:C||j,children:(0,r.jsx)(b.Z,{})})]}),(0,r.jsx)("div",{className:"absolute right-6 top-4 md:hidden",children:(0,r.jsx)(w.z,{variant:"transparent",size:"blank",className:"flex h-7 w-7 items-center justify-center p-0 md:h-9 md:w-auto md:px-4 md:py-2",onClick:O,disabled:C||j,children:(0,r.jsx)(b.Z,{})})})]}),(0,r.jsxs)("div",{className:"flex flex-col px-6 py-4",children:[v?(0,r.jsx)(M,{value:h,rows:2,onChange:e=>g(e.target.value)}):(0,r.jsx)("p",{className:"break-words [overflow-wrap:anywhere]",children:l}),(0,r.jsx)("div",{className:"mt-4 flex select-none justify-end md:absolute md:bottom-4 md:right-4 md:mt-0",children:(0,r.jsx)("p",{className:"text-sm",children:W})})]})]})};let E=e=>{let{className:t}=e,n=(0,o.m)(),{t:s}=(0,x.$G)("popup"),{search:l,searchQuery:c,setSearchQuery:m}=(0,i.R)(),[y,j]=(0,a.useState)(!1),S=u.S.useUtils(),k=u.S.user.get.memoriesInfinite.useInfiniteQuery({search:l,limit:3},{getNextPageParam:e=>e.nextCursor}),z=u.S.user.delete.allMemories.useMutation({onSuccess:async()=>{await S.user.get.memoriesInfinite.invalidate()}}),C=(0,a.useMemo)(()=>{var e;return(null===(e=k.data)||void 0===e?void 0:e.pages.flatMap(e=>e.memories))||[]},[k.data]),{ref:R}=(0,h.YD)({async onChange(e){e&&k.hasNextPage&&(await new Promise(e=>setTimeout(e,200)),k.fetchNextPage())}}),M=async()=>{try{if(!confirm(s("delete-memories",{defaultValue:"Are you sure you want to delete all memories? This action cannot be undone."})))return;j(!0),await z.mutateAsync()}catch(e){alert(n((0,d.Z)(e)))}finally{j(!1)}};return(0,r.jsxs)("div",{className:(0,f.cn)("flex flex-grow flex-col gap-6 p-8 pt-6",t),children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(v.Z,{className:"pointer-events-none absolute left-4 top-1/2 z-10 size-5 shrink-0 -translate-y-1/2 text-black/80 glass-dark:text-white/80"}),(0,r.jsx)(N.I,{type:"text",placeholder:s("memories.searchPlaceholder",{defaultValue:"Search Memories"}),className:"h-14 rounded-[var(--portal-roundness)] pl-12 placeholder:text-black/80 glass-dark:placeholder:text-white/80",value:c,onChange:e=>m(e.target.value)})]}),(0,r.jsxs)("div",{className:"glass flex flex-col rounded-[var(--portal-roundness)] bg-white/20 glass-dark:bg-black/20 md:min-h-0 md:flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b px-8 py-6",children:[(0,r.jsx)("p",{children:"".concat(C.length," ").concat(s("memories.title",{defaultValue:"Memories"}))}),C.length>0&&(0,r.jsxs)(w.z,{variant:"transparent",className:"p-0 px-4",onClick:M,disabled:y,children:[(0,r.jsx)(b.Z,{}),s("deleteAll",{defaultValue:"Delete all"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 p-8",children:[C.map((e,t)=>(0,r.jsx)(V,{data:e},t)),k.hasNextPage&&(0,r.jsx)("div",{className:"relative flex items-center justify-center",children:(0,r.jsxs)("button",{className:"flex select-none flex-col items-center justify-between pt-[2em] outline-none disabled:cursor-wait disabled:opacity-50",disabled:k.isFetchingNextPage,onClick:()=>k.fetchNextPage(),children:[(0,r.jsxs)(p.E.div,{animate:{y:[-5,5]},transition:{repeat:1/0,repeatType:"reverse",duration:1,ease:"easeInOut"},className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("p",{className:"text-sm font-semibold",children:s("seeMore",{defaultValue:"See more"})}),(0,r.jsx)(g.Z,{className:"h-5 w-5 shrink-0"})]}),(0,r.jsx)("div",{ref:R,className:"invisible h-2 w-2"})]})})]})]})]})};var Z=e=>{let{isOpen:t,onClose:n}=e,{t:a}=(0,x.$G)("popup"),{isSidebarOpen:i}=(0,l.D)(),{style:o}=(0,s.H)();return(0,r.jsx)(j.Vq,{open:t,onOpenChange:n,children:(0,r.jsx)(j.cZ,{className:(0,f.cn)(c.Kb,c.co,i&&c.WW),..."Real Head Pro"!==o.font&&{style:{fontFamily:o.font}},children:(0,r.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-[var(--portal-roundness)] border shadow-lg",children:[(0,r.jsxs)(j.fK,{className:"p-4 px-8 md:rounded-t-[var(--portal-roundness)]",children:[(0,r.jsx)(j.$N,{className:"font-semibold",children:a("memories.title",{defaultValue:"Search"})}),(0,r.jsx)(m.TX,{children:(0,r.jsx)(j.Be,{children:a("memories.searchPlaceholder",{defaultValue:"Search Memories"})})}),(0,r.jsx)(w.z,{variant:"transparent",size:"icon",onClick:n,children:(0,r.jsx)(y.Z,{})})]}),(0,r.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto scrollbar",children:(0,r.jsx)(E,{})})]})})})}},61098:function(e,t,n){n.d(t,{Z:function(){return N}});var r=n(99441),a=n(12834),i=n(50959),s=i.useLayoutEffect,l=function(e){var t=i.useRef(e);return s(function(){t.current=e}),t},o=function(e,t){if("function"==typeof e){e(t);return}e.current=t},d=function(e,t){var n=i.useRef();return i.useCallback(function(r){e.current=r,n.current&&o(n.current,null),n.current=t,t&&o(t,r)},[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"}
1,u=function(e){Object.keys(c).forEach(function(t){e.style.setProperty(t,c[t],"important")})},f=null,m=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},p=function(){},x=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],h=!!document.documentElement.currentStyle,g=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=x.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;h&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var a=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:a,borderSize:i}};function v(e,t,n){var r=l(n);i.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var b=function(e,t){v(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},y=function(e){v(window,"resize",e)},w=function(e){v(document.fonts,"loadingdone",e)},j=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],N=i.forwardRef(function(e,t){var n=e.cacheMeasurements,s=e.maxRows,l=e.minRows,o=e.onChange,c=void 0===o?p:o,x=e.onHeightChange,h=void 0===x?p:x,v=(0,a.Z)(e,j),N=void 0!==v.value,S=i.useRef(null),k=d(S,t),z=i.useRef(0),C=i.useRef(),R=function(){var e,t,r,a,i,o,d,c,p,x,v,b=S.current,y=n&&C.current?C.current:g(b);if(y){C.current=y;var w=(e=b.value||b.placeholder||"x",void 0===(t=l)&&(t=1),void 0===(r=s)&&(r=1/0),f||((f=document.createElement("textarea")).setAttribute("tabindex","-1"),f.setAttribute("aria-hidden","true"),u(f)),null===f.parentNode&&document.body.appendChild(f),a=y.paddingSize,i=y.borderSize,d=(o=y.sizingStyle).boxSizing,Object.keys(o).forEach(function(e){f.style[e]=o[e]}),u(f),f.value=e,c=m(f,y),f.value=e,c=m(f,y),f.value="x",x=(p=f.scrollHeight-a)*t,"border-box"===d&&(x=x+a+i),c=Math.max(x,c),v=p*r,"border-box"===d&&(v=v+a+i),[c=Math.min(v,c),p]),j=w[0],N=w[1];z.current!==j&&(z.current=j,b.style.setProperty("height",j+"px","important"),h(j,{rowHeight:N}))}};return i.useLayoutEffect(R),b(S,function(){if(!N){var e=S.current.value;requestAnimationFrame(function(){var t=S.current;t&&e!==t.value&&R()})}}),y(R),w(R),i.createElement("textarea",(0,r.Z)({},v,{onChange:function(e){N||R(),c(e)},ref:k}))})},99441:function(e,t,n){n.d(t,{Z:function(){return r}});function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}},12834:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}},18905:function(e,t,n){n.d(t,{YD:function(){return d}});var r=n(50959),a=Object.defineProperty,i=new Map,s=new WeakMap,l=0,o=void 0;function d({threshold:e,delay:t,trackVisibility:n,rootMargin:a,root:d,triggerOnce:c,skip:u,initialInView:f,fallbackInView:m,onChange:p}={}){var x;let[h,g]=r.useState(null),v=r.useRef(p),[b,y]=r.useState({inView:!!f,entry:void 0});v.current=p,r.useEffect(()=>{let r;if(!u&&h)return r=function(e,t,n={},r=o){if(void 0===window.IntersectionObserver&&void 0!==r){let a=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}let{id:a,observer:d,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(s.has(n)||(l+=1,s.set(n,l.toString())),s.get(n)):"0":e[t]}`}).toString(),n=i.get(t);if(!n){let r;let a=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=a.get(t.target))||n.forEac
1h(e=>{e(i,t)})})},e);r=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:a},i.set(t,n)}return n}(n),u=c.get(e)||[];return c.has(e)||c.set(e,u),u.push(t),d.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(c.delete(e),d.unobserve(e)),0===c.size&&(d.disconnect(),i.delete(a))}}(h,(e,t)=>{y({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&c&&r&&(r(),r=void 0)},{root:d,rootMargin:a,threshold:e,trackVisibility:n,delay:t},m),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,h,d,a,c,u,n,m,t]);let w=null==(x=b.entry)?void 0:x.target,j=r.useRef(void 0);h||!w||c||u||j.current===w||(j.current=w,y({inView:!!f,entry:void 0}));let N=[g,b.inView,b.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}r.Component}}]);

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.