Files
klz-cables.com/.pnpm-store/v10/files/98/7c78c8434875ac04d745028bdee666b38930da13ca35571456e696b658ad544cd7a230e371b294a5057c5b581ef94e7db4aacfc51df8ac443f35a5bf7820cb
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

10 lines
1.1 KiB
Plaintext

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
"use strict";var e=require("lexical");exports.registerDragonSupport=function(t){const n=window.location.origin,o=o=>{if(o.origin!==n)return;const i=t.getRootElement();if(document.activeElement!==i)return;const s=o.data;if("string"==typeof s){let n;try{n=JSON.parse(s)}catch(e){return}if(n&&"nuanria_messaging"===n.protocol&&"request"===n.type){const i=n.payload;if(i&&"makeChanges"===i.functionId){const n=i.args;if(n){const[i,s,r,a,c,g]=n;t.update((()=>{const t=e.$getSelection();if(e.$isRangeSelection(t)){const n=t.anchor;let g=n.getNode(),d=0,u=0;if(e.$isTextNode(g)&&i>=0&&s>=0&&(d=i,u=i+s,t.setTextNodeRange(g,d,g,u)),d===u&&""===r||(t.insertRawText(r),g=n.getNode()),e.$isTextNode(g)){d=a,u=a+c;const e=g.getTextContentSize();d=d>e?e:d,u=u>e?e:u,t.setTextNodeRange(g,d,g,u)}o.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",o,!0),()=>{window.removeEventListener("message",o,!0)}};