Files
klz-cables.com/.pnpm-store/v10/files/06/96f08c523b0bd28b5b4f15d6213310b666089549ac44b76a1b2be274539e00989e1192e98809f3f958c2485872d2af86284c1feac7ace724c86589b4b86cdd
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

66 lines
1.4 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { Fragment } from 'react';
import { useDraggableSortable } from '../useDraggableSortable/index.js';
export const DraggableSortableItem = props => {
const $ = _c(12);
const {
id,
children,
disabled
} = props;
let t0;
if ($[0] !== disabled || $[1] !== id) {
t0 = {
id,
disabled
};
$[0] = disabled;
$[1] = id;
$[2] = t0;
} else {
t0 = $[2];
}
const {
attributes,
isDragging,
listeners,
setNodeRef,
transform,
transition
} = useDraggableSortable(t0);
const t1 = isDragging ? "grabbing" : "grab";
let t2;
if ($[3] !== attributes || $[4] !== children || $[5] !== isDragging || $[6] !== listeners || $[7] !== setNodeRef || $[8] !== t1 || $[9] !== transform || $[10] !== transition) {
t2 = _jsx(Fragment, {
children: children({
attributes: {
...attributes,
style: {
cursor: t1
}
},
isDragging,
listeners,
setNodeRef,
transform,
transition
})
});
$[3] = attributes;
$[4] = children;
$[5] = isDragging;
$[6] = listeners;
$[7] = setNodeRef;
$[8] = t1;
$[9] = transform;
$[10] = transition;
$[11] = t2;
} else {
t2 = $[11];
}
return t2;
};
//# sourceMappingURL=index.js.map