PageSourceSearch

https://lopinion.ma/_next/static/chunks/7156.26645a456450c4f0.js

js lopinion.ma collected 2026-10-02 04:28:00 UTC 29,129 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7156],{1160:()=>{},27156:(e,t,a)=>{"use strict";a.r(t),a.d(t,{MinimalTiptapThree:()=>eA,default:()=>eH});var r=a(95155),l=a(74979),n=a(66377),i=a(50099),s=a(17e3),o=a(75109),d=a(16683),c=a(12115),u=a(4701),m=a(27677),h=a(67269),p=a(33096);let g=e=>{let{node:t}=e,a=t.attrs.images||[],l=t.attrs.caption,n=c.useRef(null);return(0,r.jsx)(o.VR,{children:(0,r.jsxs)("div",{className:"my-4 group relative",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(m.RC,{modules:[h.Ij],onSwiper:e=>n.current=e,autoplay:{delay:3e3},spaceBetween:0,className:"w-full",loop:a.length>1,children:a.map((e,t)=>(0,r.jsx)(m.qr,{className:"!w-full !h-auto",children:(0,r.jsx)("div",{className:"w-full aspect-[16/9] bg-[#fbfbfc] flex items-center justify-center overflow-hidden",children:(0,r.jsx)("img",{src:e.src,alt:e.alt||"",className:"w-full h-full object-contain"})})},t))}),a.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=n.current)?void 0:e.slidePrev()},className:"absolute left-2 top-1/2 -translate-y-1/2 z-10 p-2 rounded-full bg-background/80 backdrop-blur-sm border border-border shadow-lg hover:bg-accent transition-all hover:scale-110 text-muted-foreground hover:text-foreground",title:"Previous slide",children:(0,r.jsx)(p.YJP,{className:"size-5"})}),(0,r.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=n.current)?void 0:e.slideNext()},className:"absolute right-2 top-1/2 -translate-y-1/2 z-10 p-2 rounded-full bg-background/80 backdrop-blur-sm border border-border shadow-lg hover:bg-accent transition-all hover:scale-110 text-muted-foreground hover:text-foreground",title:"Next slide",children:(0,r.jsx)(p.vKP,{className:"size-5"})})]})]}),l&&(0,r.jsx)("div",{className:"text-left text-[12px] text-muted-foreground leading-snug border-b border-muted p-2 italic bg-[#f6f6f6] dark:bg-[#1b1b1b]",children:l})]})})},f=u.bP.create({name:"carousel",addOptions:()=>({HTMLAttributes:{class:"block-node"}}),group:"block",draggable:!0,addAttributes:()=>({images:{default:[],parseHTML:e=>{let t=e.getAttribute("data-images");return t?JSON.parse(t):[]},renderHTML:e=>({"data-images":JSON.stringify(e.images)})},caption:{default:null,parseHTML:e=>e.getAttribute("data-caption"),renderHTML:e=>({"data-caption":e.caption})}}),parseHTML:()=>[{tag:'div[data-type="carousel"]'}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",(0,u.KV)(this.options.HTMLAttributes,t,{"data-type":"carousel"})]},addCommands(){var e=this;return{setCarousel:function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r=>{let{commands:l}=r;return l.insertContent({type:e.name,attrs:{images:t,caption:a}})}}}},addNodeView:()=>(0,o.gu)(g)});var b=a(45254),w=a(10034),v=a(56850);let x=b.d.extend({addOptions(){var e;return{...null==(e=this.parent)?void 0:e.call(this),lowlight:(0,w.$)(v.l),defaultLanguage:null,HTMLAttributes:{class:"block-node"}}}});var y=a(4589),k=a(52571);let M=y.Q.extend({addProseMirrorPlugins(){var e;return[...(null==(e=this.parent)?void 0:e.call(this))||[],new k.k_({props:{handleKeyDown:(e,t)=>("Enter"===t.key&&this.editor.commands.unsetColor(),!1)}})]}}),L=()=>!0,T=()=>L()&&"MacIntel"===window.navigator.platform;T(),T();let A=(e,t)=>{switch(t){case"json":return e.getJSON();case"html":return e.getText()?e.getHTML():"";default:return e.getText()}},H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{requireHostname:!1};if(e.includes("\n"))return!1;try{let a=new URL(e);if(["javascript:","file:","vbscript:",...t.allowBase64?[]:["data:"]].includes(a.protocol))return!1;if(t.allowBase64&&"data:"===a.protocol)return/^data:image\/[a-z]+;base64,/.test(e);if(a.hostname)return!0;return""!==a.protocol&&(a.pathname.startsWith("//")||a.pathname.startsWith("http"))&&!t.requireHostname}catch(e){return!1}},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e)return t.allowBase64&&e.startsWith("data:image")?H(e,{requireHostname:!1,allowBase64:!0})?e:void 0:H(e,{requireHostname:!1,allowBase64:t.allowBase64})||/^(\/|#|mailto:|sms:|fax:|tel:)/.test(e)?e:"https://".concat(e)},N=()=>Math.random().toString(36).slice(2,11),C=(e,t,a,r,l)=>{let{isValidType:n,isValidSize:i}=E(e,t);
1n&&i?r.push(a):(n||l.push({file:e,reason:"type"}),i||l.push({file:e,reason:"size"}))},E=(e,t)=>{let{allowedMimeTypes:a,maxFileSize:r}=t,l=e instanceof File?e.type:S(e),n=e instanceof File?e.size:atob(e.split(",")[1]).length;return{isValidType:0===a.length||a.includes(l)||a.includes("".concat(l.split("/")[0],"/*")),isValidSize:!r||n<=r}},S=e=>{let t=e.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);return t&&t.length>1?t[1]:"unknown"},I=e=>{if(e.startsWith("data:")){let t=e.match(/^data:[^;]+;base64,(.+)$/);if(!t||!t[1])return!1;e=t[1]}try{return btoa(atob(e))===e}catch(e){return!1}},P=(e,t)=>{let a=[],r=[];return e.forEach(e=>{let l="src"in e?e.src:e;l instanceof File?C(l,t,e,a,r):"string"==typeof l&&(I(l)?t.allowBase64?C(l,t,e,a,r):r.push({file:l,reason:"base64NotAllowed"}):j(l,{allowBase64:t.allowBase64})?a.push(e):r.push({file:l,reason:"invalidBase64"}))}),[a,r]},R=e=>{let{key:t,editor:a,onPaste:r,onDrop:l,onValidationError:n,allowedMimeTypes:i,maxFileSize:s}=e;return new k.k_({key:t||new k.hs("fileHandler"),props:{handleDrop(t,r){r.preventDefault(),r.stopPropagation();let{dataTransfer:o}=r;if(!(null==o?void 0:o.files.length))return;let d=t.posAtCoords({left:r.clientX,top:r.clientY}),[c,u]=P(Array.from(o.files),{allowedMimeTypes:i,maxFileSize:s,allowBase64:e.allowBase64});if(u.length>0&&n&&n(u),c.length>0&&l){var m;l(a,c,null!=(m=null==d?void 0:d.pos)?m:0)}},handlePaste(t,l){l.preventDefault(),l.stopPropagation();let{clipboardData:o}=l;if(!(null==o?void 0:o.files.length))return;let[d,c]=P(Array.from(o.files),{allowedMimeTypes:i,maxFileSize:s,allowBase64:e.allowBase64}),u=o.getData("text/html");c.length>0&&n&&n(c),d.length>0&&r&&r(a,d,u)}}})};u.YY.create({name:"fileHandler",addOptions:()=>({allowBase64:!1,allowedMimeTypes:[],maxFileSize:0}),addProseMirrorPlugins(){return[R({key:new k.hs(this.name),editor:this.editor,...this.options})]}});let q=a(40951).d.extend({addKeyboardShortcuts(){return{"Mod-Alt--":()=>this.editor.commands.insertContent({type:this.name})}}});var V=a(81891),B=a(59434),O=a(79651);let z=e=>{let{node:t}=e,{src:a,alt:l,alignment:n="center",caption:i,cropLayout:s}=t.attrs,d=c.useMemo(()=>s&&"top"!==s?"left"===s||"right"===s?"1/1":s.replace(":","/"):"16/9",[s]);return(0,r.jsx)(o.VR,{className:"react-renderer node-image block-node",children:(0,r.jsxs)("div",{"data-node-view-wrapper":"",style:{whiteSpace:"normal"},className:(0,B.cn)("image-wrapper group/node relative w-full overflow-hidden mb-4 select-text","left"===n?"md:float-left md:mb-0 md:mr-4 md:max-w-[50%]":"right"===n?"md:float-right md:mb-0 md:ml-4 md:max-w-[50%]":"mx-auto block"),children:[(0,r.jsx)("div",{className:"relative w-full",style:{aspectRatio:d},children:(0,r.jsx)(O.default,{src:a,alt:l||"lopinion.disrupt-agency.com",fill:!0,sizes:"(max-width: 1024px) 100vw, 75rem",className:"w-full h-full object-cover",draggable:!1,quality:90,priority:!0})}),i&&(0,r.jsx)("div",{className:"text-left text-[12px] text-muted-foreground leading-snug border-b border-muted p-2 italic bg-background-secondary",children:i})]})})};var D=a(808);let F=(e,t,a)=>{let r=e instanceof Error?e:Error("Unknown error");null==a||a(r,t)},K=e=>{let[t,a]=e.split(","),r=t.split(":")[1].split(";")[0],l=r.split("/")[1],n=atob(a),i=new Uint8Array(n.length);for(let e=0;e<n.length;e++)i[e]=n.charCodeAt(e);return{blob:new Blob([i],{type:r}),extension:l}},U=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch image");let a=await t.blob(),r=a.type.split(/\/|\+/)[1];return{blob:a,extension:r}},Y=async e=>e.startsWith("data:")?K(e):U(e),_=async(e,t,a)=>{let r=URL.createObjectURL(e),l=document.createElement("a");l.href=r,l.download="".concat(t,".").concat(a),document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(r)},W=async(e,t)=>{let{src:a,alt:r}=e;try{var l;let{blob:n,extension:i}=await Y(a);await _(n,r||"image",i),null==(l=t.onActionSuccess)||l.call(t,{...e,action:"download"})}catch(a){F(a,{...e,action:"download"},t.onActionError)}},J=async(e,t)=>{let{src:a}=e;try{var r;let l=await fetch(a),n=await l.blob();await navigator.clipboard.write([new ClipboardItem({[n.type]:n})]),null==(r=t.onActionSuccess)||r.call(t,{...e,action:"copyImage"})}catch(a){F(a,{...e,action:"copyImage"},t.onActionError)}},Z=async(e,t)=>{let{src:a}=e;try{var r;await navigator.clipboard.writeText(a),null==(r=t.onActionSuccess)||r.call(t,{...e,action:"copyLink"})}catch(a){F(a,{...e,action:"copyLink"},t.onActionError)}},Q=V._V.extend({atom:!0,addOptions(){var e;return{...null==(e=this.parent)?void 0:e.call(this),allowedMimeTypes:[],maxFileSize:0,uploadFn:void 0,onToggle:void 0,downloadImage:void 0,copyImage:void 0,copyLink:void 0,alignment:"center"}},addAttributes(){var e;return{...null==(e=this.parent)?void 0:e.call(this),alignment:{parseHTML(e){let t=e.getAttribute("class")||e.getAttribute("alignment"),a=(null==t?void 0:t.includes("left"))||(null==t?void 0:t.includes("float-left"))?"left":(null==t?void 0:t.includes("right"))||(null==t?void 0:t.includes("float-right"))?"right":"center";return e.getAttribute("alignment")||a},default:"center",rendered:!0},src:{default:null},alt:{default:null},title:{default:null},id:{default:null},width:{default:null},height:{default:null},fileName:{default:null},originalSrc:{default:null},cropLayout:{default:"16:9"},caption:{default:null}}},addCommands(){return{setImageAlignment:e=>t=>{let{commands:a}=t;return a.updateAttributes(this.name,{alignment:e})},setImages:e=>t=>{let{commands:a}=t;return e.every(e=>{let{src:t,alt:r,title:l,originalSrc:n,cropLayout:i,caption:s=null}=e,o={id:N(),src:"string"==typeof t?t:URL.createObjectURL(t),alt:null!=r?r:null,title:null!=l?l:null,originalSrc:null!=n?n:null,cropLayout:null!=i?i:"16:9",caption:null!=s?s:null,class:"text-node"};return a.insertContent({type:this.name,attrs:o})})},downloadImage:e=>()=>((this.options.downloadImage||W)({...e,action:"download"},this.options),!0),copyImage:e=>()=>((this.options.copyImage||J)({...e,action:"copyImage"},this.options),!0),copyLink:e=>()=>((this.options.copyLink||Z)({...e,action:"copyLink"},this.options),!0),toggleImage:()=>e=>{var t;let{editor:a}=e,r=document.createElement("input");return r.type="file",r.accept=(null==(t=this.options.allowedMimeTypes)?void 0:t.join(","))||"",r.onchange=()=>{let e=r.files;if(!e)return;let[t,l]=P(Array.from(e),{allowedMimeTypes:this.options.allowedMimeTypes||[],maxFileSize:this.options.maxFileSize,allowBase64:this.options.allowBase64||!1});return l.length>0&&this.options.onValidationError?(this.options.onValidationError(l),!1):0!==t.length&&(this.options.onToggle&&this.options.onToggle(a,t,a.state.selection.from),!1)},r.click(),!0}}},onTransaction(e){let{transaction:t}=e;
1t.steps.forEach(e=>{e instanceof D.Ln&&0===e.slice.size&&t.before.content.cut(e.from,e.to).forEach(e=>{if("image"===e.type.name){var t,a;let r=e.attrs;null==(t=(a=this.options).onImageRemoved)||t.call(a,r)}})})},addNodeView:()=>(0,o.gu)(z,{className:"block-node"}),renderHTML(e){let{HTMLAttributes:t}=e,a=t.alignment||"center";return["div",{"data-node-view-wrapper":"",style:"white-space: normal;"},["div",{class:(0,B.cn)("image-wrapper max-w-full","left"===a?"float-left max-w-[50%]":"right"===a?"float-right max-w-[50%]":"mx-auto block max-w-[70%]")},["div",{class:"group/node relative inline-block"},["img",(0,u.KV)(t,{class:"w-full max-w-full h-auto",draggable:!1})]]]]},onPaste(e){var t,a,r;let{chain:l}=e.editor;if(null==(a=e.event.clipboardData)||null==(t=a.files)?void 0:t.length){let t=Array.from(e.event.clipboardData.files).filter(e=>e.type.startsWith("image/"));if(t.length){e.event.preventDefault();let a=t.map(e=>({src:e.name}));return l().setImages(a).run()}}let n=null==(r=e.event.clipboardData)?void 0:r.getData("text/html");if(n){let t=Array.from(new DOMParser().parseFromString(n,"text/html").querySelectorAll("img"));if(t.length){e.event.preventDefault();let a=t.map(e=>({src:e.src}));return l().setImages(a).run()}}}}),X=a(96919).Ay.extend({inclusive:!1,parseHTML:()=>[{tag:'a[href]:not([data-type="button"]):not([href *= "javascript:" i])'}],renderHTML(e){let{HTMLAttributes:t}=e;return["a",(0,u.KV)(this.options.HTMLAttributes,t),0]},addOptions(){var e;return{...null==(e=this.parent)?void 0:e.call(this),openOnClick:!1,HTMLAttributes:{class:"link"}}},addProseMirrorPlugins(){var e;let{editor:t}=this;return[...(null==(e=this.parent)?void 0:e.call(this))||[],new k.k_({props:{handleKeyDown:(e,a)=>{let{selection:r}=t.state;return"Escape"===a.key&&!0!==r.empty&&t.commands.focus(r.to,{scrollIntoView:!1}),!1},handleClick(e,t){let{schema:a,doc:r,tr:l}=e.state,n=(0,u.ve)(r.resolve(t),a.marks.link);if(!n)return;let{from:i,to:s}=n,o=Math.min(i,s),d=Math.max(i,s);if(t<o||t>d)return;let c=r.resolve(o),m=r.resolve(d),h=l.setSelection(new k.U3(c,m));e.dispatch(h)}}})]}}),$=u.bP.create({name:"quote",group:"block",content:"inline*",defining:!0,addOptions:()=>({HTMLAttributes:{class:"quote-node"}}),parseHTML:()=>[{tag:'div[data-type="quote"]'}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",{"data-type":"quote",...this.options.HTMLAttributes,...t},0]},addCommands(){return{setQuote:()=>e=>{let{commands:t}=e;return t.setNode(this.name)},unsetQuote:()=>e=>{let{commands:t}=e;return t.setNode("paragraph")},toggleQuote:()=>e=>{let{commands:t}=e;return t.toggleNode(this.name,"paragraph")}}},addKeyboardShortcuts(){return{"Mod-Shift-q":()=>this.editor.commands.toggleQuote()}}}),G=u.YY.create({name:"resetMarksOnEnter",addKeyboardShortcuts:()=>({Enter:e=>{let{editor:t}=e;return!!(t.isActive("bold")||t.isActive("italic")||t.isActive("strike")||t.isActive("underline")||t.isActive("code"))&&(t.commands.splitBlock({keepMarks:!1}),!0)}})});var ee=a(42695);u.YY.create({name:"selection",addProseMirrorPlugins(){let{editor:e}=this;return[new k.k_({key:new k.hs("selection"),props:{decorations:t=>t.selection.empty||!0===e.isFocused?null:ee.zF.create(t.doc,[ee.NZ.inline(t.selection.from,t.selection.to,{class:"selection"})])}})]}});let et=u.YY.create({addKeyboardShortcuts(){return{"Mod-\\":()=>this.editor.commands.unsetAllMarks()}}}),ea=e=>{for(let t of[/(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=([^&]+)/i,/(?:https?:\/\/)?(?:www\.)?youtube\.com\/embed\/([^/?]+)/i,/(?:https?:\/\/)?(?:www\.)?youtu\.be\/([^/?]+)/i,/(?:https?:\/\/)?(?:www\.)?youtube\.com\/v\/([^/?]+)/i]){let a=e.match(t);if(a)return a[1]}return null},er=e=>"https://www.youtube.com/embed/".concat(e),el=e=>{let{node:t}=e,{src:a,alignment:l}=t.attrs;return(0,r.jsx)(o.VR,{className:"video-wrapper mb-4 alignment-".concat(l),children:(0,r.jsx)("div",{className:"group/node relative",children:(0,r.jsx)("iframe",{src:a,className:"w-full aspect-video"})})})},en=u.bP.create({name:"video",group:"block",draggable:!0,addOptions:()=>({HTMLAttributes:{class:"block-node"}}),addAttributes:()=>({src:{default:null},alignment:{default:"center",parseHTML:e=>e.getAttribute("data-alignment"),renderHTML:e=>({"data-alignment":e.alignment})},isYoutube:{default:!1}}),parseHTML:()=>[{tag:'div[class*="video-wrapper"]',getAttrs:e=>{if("string"==typeof e||!(e instanceof HTMLElement))return{};let t=e.querySelector("iframe, video");return t?{src:t.getAttribute("src"),alignment:e.getAttribute("data-alignment")||"center"}:{}}}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",(0,u.KV)(this.options.HTMLAttributes,{class:"video-wrapper mx-auto",contenteditable:"false"}),["video",(0,u.KV)({src:t.src,class:"w-full max-w-2xl rounded-lg shadow-lg",controls:"true",preload:"metadata"})]]},addNodeView:()=>(0,o.gu)(el),addCommands(){return{setVideoAlignment:e=>t=>{let{commands:a}=t;return a.updateAttributes(this.name,{alignment:e})},setVideos:e=>t=>{let{commands:a}=t;return e.every(e=>{let{src:t}=e,r={id:N()};if("string"==typeof t){let e=ea(t);e?(r.src=er(e),r.isYoutube=!0):r.src=t}else r.src=URL.createObjectURL(t);return a.insertContent({type:this.name,attrs:r})})}}},onDestroy(){this.editor.state.doc.descendants(e=>{var t;e.type.name===this.name&&(null==(t=e.attrs.src)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.attrs.src)})}}),ei=a(4652).f4.extend({addOptions(){var e;return{...null==(e=this.parent)?void 0:e.call(this),multicolor:!0,HTMLAttributes:{class:"highlight"}}},addProseMirrorPlugins(){var e;return[...(null==(e=this.parent)?void 0:e.call(this))||[],new k.k_({props:{handleKeyDown:(e,t)=>("Enter"===t.key&&this.editor.commands.unsetHighlight(),!1)}})]}}),es=u.bP.create({name:"containerHighlight",group:"block",content:"block+",addOptions:()=>({HTMLAttributes:{class:"container-highlight"}}),addAttributes:()=>({color:{default:null,parseHTML:e=>e.getAttribute("data-color"),renderHTML:e=>e.color?{"data-color":e.color}:{}}}),parseHTML:()=>[{tag:'div[data-type="container-highlight"]'}],renderHTML(e){let{node:t,HTMLAttributes:a}=e;return["div",(0,u.KV)({"data-type":"container-highlight","data-color":t.attrs.color},this.options.HTMLAttributes,a),0]},addCommands(){return{setContainerHighlight:e=>t=>{let{commands:a}=t;return a.wrapIn(this.name,e)},unsetContainerHighlight:()=>e=>{let{commands:t}=e;return t.lift(this.name)}}},addProseMirrorPlugins(){return[new k.k_({key:new k.hs("containerHighlight"),props:{handleKeyDown:(e,t)=>"Enter"===t.key&&!!t.shiftKey&&(this.editor.commands.unsetContainerHighlight(),!0)}})]}}),eo=e=>{let t=e.toLowerCase();return t.includes("facebook.com")||t.includes("fb.com")||t.includes("fb.watch")?"facebook":t.includes("instagram.com")?"instagram":t.includes("linkedin.com")?"linkedin":t.includes("tiktok.com")||t.includes("vm.tiktok.com")?"tiktok":t.includes("twitter.com")||t.includes("x.com")?"twitter":t.includes("youtube.com")||t.includes("youtu.be")?"youtube":"unknown"},ed=e=>({facebook:"Facebook",instagram:"Instagram",linkedin:"LinkedIn",tiktok:"TikTok",twitter:"Twitter/X",youtube:"YouTube",unknown:"Unknown"})[e];var ec=a(6431),eu=a(85339);let em={top:0,left:0,bottom:0,right:0,x:0,y:0,width:0,height:0,toJSON:()=>"{}"};
1function eh(e){let[t,a]=(0,c.useState)(()=>{var t;return null!=(t=null==e?void 0:e.getBoundingClientRect())?t:em}),r=(0,c.useCallback)(()=>{if(!e)return;let t=e.getBoundingClientRect();a(e=>Math.round(e.width)===Math.round(t.width)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.x)===Math.round(t.x)&&Math.round(e.y)===Math.round(t.y)?e:t)},[e]);return(0,c.useEffect)(()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),window.addEventListener("click",r),window.addEventListener("resize",r),()=>{t.disconnect(),window.removeEventListener("click",r),window.removeEventListener("resize",r)}},[e,r]),t}let ep=e=>{let{node:t}=e,{src:a,platform:l,alignment:n}=t.attrs,[i,s]=c.useState(!1),[d,u]=c.useState(""),m=l||eo(a),h=c.useCallback(()=>{s(!0),u("Failed to load ".concat(ed(m)," embed"))},[m]),[p,g]=c.useState(null),{width:f}=eh(p);return i?(0,r.jsx)(o.VR,{className:(0,B.cn)("my-6","text-".concat(n)),children:(0,r.jsx)("div",{className:"border border-red-200 bg-red-50 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)(eu.A,{className:"h-5 w-5 text-red-600 mt-0.5 flex-shrink-0"}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h4",{className:"font-medium text-red-900",children:"Failed to load embed"}),(0,r.jsx)("p",{className:"text-sm text-red-700 mt-1",children:d})]})]})})}):(0,r.jsx)(o.VR,{className:(0,B.cn)("my-6 group relative w-full","text-".concat(n)),children:(0,r.jsx)("div",{ref:g,className:(0,B.cn)("transition-all duration-300","youtube"===m&&"aspect-video","center"===n?"mx-auto":"right"===n?"ml-auto":"mr-auto"),style:{maxWidth:"twitter"===m||"instagram"===m||"linkedin"===m?"550px":"100%"},onError:h,children:(e=>{let t={url:a,width:"100%"};try{switch(m){case"facebook":return(0,r.jsx)(ec.FacebookEmbed,{...t});case"instagram":return(0,r.jsx)(ec.InstagramEmbed,{...t});case"linkedin":return(0,r.jsx)(ec.LinkedInEmbed,{...t});case"tiktok":return(0,r.jsx)(ec.TikTokEmbed,{...t});case"twitter":return(0,r.jsx)(ec.XEmbed,{...t});case"youtube":return(0,r.jsx)(ec.YouTubeEmbed,{...t,width:"100%",height:e});default:return i||(s(!0),u("Unsupported platform")),null}}catch(e){return i||(s(!0),u(e instanceof Error?e.message:"Unknown error")),null}})(f>0?9*f/16:500)})})},eg=u.bP.create({name:"embed",group:"block",atom:!0,draggable:!0,addAttributes:()=>({src:{default:null},platform:{default:"unknown"},alignment:{default:"center"}}),parseHTML:()=>[{tag:'div[data-type="embed"]',getAttrs:e=>({src:e.getAttribute("data-src"),platform:e.getAttribute("data-platform"),alignment:e.getAttribute("data-alignment")||"center"})}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",(0,u.KV)(this.options.HTMLAttributes,{"data-type":"embed","data-src":t.src,"data-platform":t.platform,"data-alignment":t.alignment||"center",class:"embed-node"})]},addNodeView:()=>(0,o.gu)(ep),addCommands(){var e=this;return{setEmbed:function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center";return r=>{let{commands:l}=r,n=eo(t);return"unknown"!==n&&l.insertContent({type:e.name,attrs:{src:t,platform:n,alignment:a}})}}}}}),ef=e=>{let{node:t,selected:a}=e,{title:l,quote:n,authorName:i,authorTitle:s,authorImage:d,questions:c}=t.attrs,u=e=>e.replace(/"[^"]*"/g,"").trim();return(0,r.jsx)(o.VR,{className:(0,B.cn)("tiptap-interview-node",{"ProseMirror-selectednode":a}),"data-drag-handle":!0,children:(0,r.jsxs)("article",{className:"interview-section select-text font-merriweather text-start","aria-label":"Interview card",children:[l&&(0,r.jsx)("div",{className:"interview-title",children:l}),n&&(0,r.jsx)("div",{className:" interview-quote",children:(0,r.jsxs)("h3",{className:"!text-lg/6 md:!text-xl/7 xl:!text-2xl/8 font-bold font-merriweather !text-[#003f96] dark:!text-[#ffffff]",children:["“"," ",n," ","”"]})}),(i||s)&&(0,r.jsxs)("div",{className:"interview-author",children:[(0,r.jsx)("div",{className:"interview-author-image",children:d?(0,r.jsx)("img",{src:d,alt:i||"Author",className:"h-full w-full object-cover"}):(0,r.jsx)("div",{className:"interview-author-image-placeholder",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,r.jsx)("path",{d:"M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.33 0-8 2.17-8 5v1h16v-1c0-2.83-3.67-5-8-5Z"})})})}),(0,r.jsxs)("div",{className:"interview-author-details",children:[i&&(0,r.jsx)("div",{className:"interview-author-name",children:i}),s&&(0,r.jsx)("div",{className:"interview-author-title",children:s})]})]}),c&&c.length>0&&(0,r.jsx)("div",{className:"interview-questions",children:c.map((e,t)=>(0,r.jsxs)("div",{className:"interview-question-item",children:[(0,r.jsxs)("h2",{className:"text-[16px]/[26px] font-semibold text-black dark:text-white text-left",children:[t+1,".\xa0\xa0",e.question]}),(0,r.jsx)("div",{className:"interview-answer",children:u(e.answer)&&(0,r.jsx)("div",{className:"interview-answer-paragraph",children:(0,r.jsx)("p",{children:u(e.answer)})})})]},e.id||t))})]})})};ef.displayName="InterviewComponent";let eb=u.bP.create({name:"interview",addOptions:()=>({HTMLAttributes:{class:"block-node"}}),group:"block",draggable:!0,addAttributes:()=>({title:{default:"",parseHTML:e=>e.getAttribute("data-title"),renderHTML:e=>({"data-title":e.title})},quote:{default:"",parseHTML:e=>e.getAttribute("data-quote"),renderHTML:e=>({"data-quote":e.quote})},authorName:{default:"",parseHTML:e=>e.getAttribute("data-author-name"),renderHTML:e=>({"data-author-name":e.authorName})},authorTitle:{default:"",parseHTML:e=>e.getAttribute("data-author-title"),renderHTML:e=>({"data-author-title":e.authorTitle})},authorImage:{default:"",parseHTML:e=>e.getAttribute("data-author-image"),renderHTML:e=>({"data-author-image":e.authorImage})},questions:{default:[],parseHTML:e=>{let t=e.getAttribute("data-questions");return t?JSON.parse(t):[]},renderHTML:e=>({"data-questions":JSON.stringify(e.questions)})}}),parseHTML:()=>[{tag:'div[data-type="interview"]'}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",(0,u.KV)(this.options.HTMLAttributes,t,{"data-type":"interview"})]},addCommands(){return{setInterview:e=>t=>{let{commands:a}=t;return a.insertContent({type:this.name,attrs:e})}}},addNodeView:()=>(0,o.gu)(ef)});var ew=a(84109);let ev=e=>{let{node:t}=e,{title:a,content:l,src:n}=t.attrs;return(0,r.jsx)(o.VR,{className:"callout-wrapper",children:(0,r.jsxs)("div",{className:(0,B.cn)("callout-container group relative my-4 p-4","bg-background-secondary","border-t-3 border-accent"),children:[n&&(0,r.jsx)("div",{className:"callout-image-wrapper mb-3",children:(0,r.jsx)("img",{src:n,alt:"Callout image",className:"w-full h-auto "})}),a&&(0,r.jsx)("div",{className:"callout-title dark:text-white text-[#363942] font-bold text-lg mb-3",children:a}),l&&(0,r.jsx)("div",{className:"callout-content text-[#4D525E] dark:text-[#FBFBFC] text-base leading-relaxed whitespace-pre-wrap",children:l})]})})},ex=u.bP.create({name:"callout",group:"block",atom:!0,draggable:!0,addOptions:()=>({HTMLAttributes:{class:"callout-node"}}),addAttributes:()=>({title:{default:"",parseHTML:e=>e.getAttribute("data-title"),renderHTML:e=>({"data-title":e.title})},content:{default:"",parseHTML:e=>e.getAttribute("data-content"),renderHTML:e=>({"data-content":e.content})},src:{default:null,parseHTML:e=>e.getAttribute("data-src"),renderHTML:e=>({"data-src":e.src})},originalSrc:{default:null,parseHTML:e=>e.getAttribute("data-original-src"),renderHTML:e=>({"data-original-src":e.originalSrc})},cropLayout:{default:"16:9",parseHTML:e=>e.getAttribute("data-crop-layout"),renderHTML:e=>({"data-crop-layout":e.cropLayout})}}),parseHTML:()=>[{tag:'div[data-type="callout"]'}],renderHTML(e){let{HTMLAttributes:t}=e,a=[];return t.src&&a.push(["img",{class:"callout-image",src:t.src,alt:"Callout image"}]),t.title&&a.push(["div",{class:"callout-title"},t.title]),t.content&&a.push(["div",{class:"callout-content"},t.content]),["div",(0,u.KV)({"data-type":"callout"},this.options.HTMLAttributes,t),...a]},addNodeView:()=>(0,o.gu)(ev),addCommands(){return{setCallout:e=>t=>{let{commands:a}=t;return a.insertContent({type:this.name,attrs:e})},updateCallout:e=>t=>{let{commands:a}=t;return a.updateAttributes(this.name,e)}}}}),ey=e=>[eb,$.configure({HTMLAttributes:{class:"quote-node"}}),en,f.configure({HTMLAttributes:{class:"block-node"}}),d.W.configure({horizontalRule:!1,codeBlock:!1,paragraph:{HTMLAttributes:{class:"text-node"}},heading:{HTMLAttributes:{class:"heading-node"}},blockquote:{HTMLAttributes:{class:"block-node"}},bulletList:{HTMLAttributes:{class:"list-node"}},orderedList:{HTMLAttributes:{class:"list-node"}},code:{HTMLAttributes:{class:"inline",spellcheck:"false"}},dropcursor:{width:2,class:"ProseMirror-dropcursor border"}}),X,eg,s.z,Q.configure({allowedMimeTypes:["image/*"],maxFileSize:5242880,allowBase64:!0}),ex,M,n.x.configure({}),ei,es,i.o5,et,q,G,x,l.O.configure({placeholder:()=>e}),ew.n.configure({types:["heading","paragraph","blockquote","quote","listItem"],alignments:["left","center","right","justify"],defaultAlignment:"justify"})],ek=e=>{let{value:t,output:a="html",placeholder:r="",editorClassName:l,throttleDelay:n=0,onUpdate:i,onBlur:s,...d}=e,u=function(e,t){let a=(0,c.useRef)(Date.now()),r=(0,c.useRef)(null);return(0,c.useCallback)(function(){for(var l=arguments.length,n=Array(l),i=0;i<l;i++)n[i]=arguments[i];Date.now()-a.current>=t?(e(...n),a.current=Date.now()):(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e(...n),a.current=Date.now()},t-(Date.now()-a.current)))},[e,t])}(e=>null==i?void 0:i(e),n),m=c.useCallback(e=>u(A(e,a)),[a,u]),h=c.useCallback(e=>{t&&e.isEmpty&&e.commands.setContent(t)},[t]),p=c.useCallback(e=>null==s?void 0:s(A(e,a)),[a,s]);return(0,o.hG)({extensions:ey(r),editorProps:{attributes:{autocomplete:"off",spellcheck:"false",autocorrect:"off",autocapitalize:"off",class:(0,B.cn)("focus:outline-none",l)}},onUpdate:e=>{let{editor:t}=e;return m(t)},onCreate:e=>{let{editor:t}=e;return h(t)},onBlur:e=>{let{editor:t}=e;return p(t)},...d})};a(1160);var eM=a(4844);function eL(e){let{delayDuration:t=0,...a}=e;return(0,r.jsx)(eM.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...a})}let eT=c.forwardRef((e,t)=>
1{let{as:a,name:l,children:n,style:i={},...s}=e,o=c.useRef(null),d=eh(o.current);c.useImperativeHandle(t,()=>o.current);let u={["--".concat(l,"-width")]:"".concat(d.width,"px"),["--".concat(l,"-height")]:"".concat(d.height,"px")};return(0,r.jsx)(a,{...s,ref:o,style:{...u,...i},children:n})});eT.displayName="MeasuredContainer";let eA=c.forwardRef((e,t)=>{let{value:a,onChange:l,className:n,editorContentClassName:i,isDisabled:s,...d}=e,c=ek({value:a,onUpdate:l,editable:!s,...d});return c?(0,r.jsx)(eL,{children:(0,r.jsx)(eT,{as:"div",name:"editor",ref:t,className:(0,B.cn)("flex h-auto w-full flex-col",n,"max-w-full"),children:(0,r.jsx)(o.$Z,{editor:c,className:(0,B.cn)("minimal-tiptap-editor mx-auto overflow-hidden w-full",i)})})}):null});eA.displayName="MinimalTiptapThree";let eH=eA}}]);

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.