PageSourceSearch

https://rebuyengine.com/admin/_next/static/chunks/1927.939ab116822a2b44.js

js rebuyengine.com collected 2026-10-02 06:06:23 UTC 5,013 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1927],{21927:(e,t,s)=>{s.r(t),s.d(t,{CABEditSideList:()=>E});var i=s(95155),n=s(18276),d=s(21739),r=s(40160),a=s(67242),o=s(60559),l=s(49820),c=s(12115),u=s(99003),x=s(37269),g=s(41504),p=s(63512),h=s(6141),m=s(17787),K=s(48477),f=s(35350),y=s(72834),A=s(82824),X=s(19268);let j=e=>{let{addSection:t}=(0,p.S)(),{formData:s}=(0,x.m)(),{offersSection:n}=(0,g.A)(),r=(0,d.Kxd)(n),{hasPrivKey:a}=(0,A.c)(y.L.CAB_OFFERS),{hasPrivKey:o}=(0,A.c)(y.L.CHECKOUT_BUTTON_WIDGET),{hasPrivKey:l}=(0,A.c)(y.L.CAB_CART_LINE_SECTION),u=!!(0,h.k)((0,m.S)({input:s,sectionId:e.sectionId}),s,d.JLV),j=l&&!!(0,h.k)((0,m.S)({input:s,sectionId:e.sectionId}),s,d.pym),v=(0,d.JLV)(e)&&e.sections.some(d.Kxd),C=(0,c.useMemo)(()=>{switch(e.sectionType){case d.gXK.carousel:return[...o?[d.gXK.banner,d.gXK.button]:[],d.gXK.image,d.gXK.layout,...v?[]:[d.gXK.offers],d.gXK.text];case d.gXK.offers:case d.gXK.cartLine:return[...o?[d.gXK.banner,d.gXK.button]:[],d.gXK.image,d.gXK.layout,d.gXK.quantity,d.gXK.reviews,d.gXK.text,d.gXK.variants];case d.gXK.banner:case d.gXK.layout:return[...o?[d.gXK.banner,d.gXK.button]:[],...!a||r||u||j?[]:[d.gXK.carousel],d.gXK.image,d.gXK.layout,...r?[d.gXK.quantity,d.gXK.reviews,d.gXK.variants]:[],d.gXK.text];default:return[]}},[v,o,a,u,j,r,e.sectionType]);return(0,i.jsxs)("div",{className:"flex items-center gap-x-2.5","data-testid":"CABEditSideListAdd","data-sentry-component":"CABEditSideListAdd","data-sentry-source-file":"CABEditSideListAdd.tsx",children:[(0,i.jsx)("div",{className:"grow truncate text-start",children:"Sections"}),(0,i.jsxs)(f.m,{"data-sentry-element":"Tooltip","data-sentry-source-file":"CABEditSideListAdd.tsx",children:[(0,i.jsx)(f.m.Trigger,{asChild:!0,"data-sentry-element":"Tooltip.Trigger","data-sentry-source-file":"CABEditSideListAdd.tsx",children:(0,i.jsxs)("div",{className:"relative grid place-items-center rounded outline-2 -outline-offset-2 outline-primary-default focus-within:outline",children:[(0,i.jsx)(K.Z,{className:"!text-xl",icon:"add","data-sentry-element":"MaterialIcon","data-sentry-source-file":"CABEditSideListAdd.tsx"}),(0,i.jsx)("select",{className:"absolute size-full cursor-pointer opacity-0",name:"add-section",onChange:s=>t({sectionId:e.sectionId,sectionType:s.target.value}),tabIndex:0,value:"",children:(0,i.jsxs)("optgroup",{label:"Add Section",children:[(0,i.jsx)("option",{disabled:!0,hidden:!0,value:"",children:"Add Section"}),(0,X.$)(C).map(e=>{let{label:t,value:s}=e;return(0,i.jsx)("option",{value:s,children:t},s)})]})})]})}),(0,i.jsx)(f.m.Content,{"data-sentry-element":"Tooltip.Content","data-sentry-source-file":"CABEditSideListAdd.tsx",children:"Add Section"})]})]})};var v=s(61706),C=s(15513),S=s(46021),L=s(47634),I=s(15768),b=s(47678);let E=e=>{let t=(0,L.L)(e.prefixPath,"sections"),s=(0,c.useMemo)(()=>(0,r.A)(e.sections,e=>e.sectionType!==d.gXK.dataSource&&e.sectionType!==d.gXK.products),[e.sections]),{control:g}=(0,x.m)(),{move:h}=(0,u.jz)({control:g,name:t}),{cloneSection:m,moveSection:K,removeSection:f}=(0,p.S)(),y=(e=>{let{cloneSection:t,input:s,prefixPath:n,removeSection:r}=e;return function(e,a,o){let{draggableProps:l,dragHandleProps:c,innerRef:u}=e,{draggableId:x}=o,g=s.sections.findIndex(e=>{let{sectionId:t}=e;return t===x}),p=s.sections[g];if(!p)return null;let h=(0,d.JLV)(s)&&(0,d.Kxd)(p)||(0,d.pym)(p),m=(0,S.W)(p)||(0,d._zG)(p);return(0,i.jsx)("div",{...l,ref:u,children:(0,i.jsx)(C.F,{...p,cloneSection:h||m?void 0:t,dragHandleProps:c,removeSection:h?void 0:r,children:(0,i.jsx)(v._,{...p,fieldArrayPath:n,index:g,parent:s.sections,parentId:s.sectionId,prefixPath:(0,L.L)(n,g)})})})}})({cloneSection:m,input:e,prefixPath:t,removeSection:f}),A=(0,c.useCallback)(e=>{let{destination:t,draggableId:s,source:i}=e;!t||(0,a.A)(t,i)||(t.droppableId===i.droppableId?h(i.index,t.index):K({destination:t,draggableId:s,source:i}))},[h,K]);return(0,i.jsx)(I.w,{title:(0,i.jsx)(j,{...e}),"data-sentry-element":"SideGroup","data-sentry-component":"CABEditSideList","data-sentry-source-file":"CABEditSideList.tsx",children:(0,o.A)(s)?(0,i.jsxs)("div",{className:"flex h-11 items-center justify-between",children:[(0,i.jsx)("div",{children:"Add a section to get started"}),(0,i.jsx)("div",{className:"size-9",children:(0,i.jsx)("svg",{viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"m64 48 20-16 20 16M16 88c72 0 68-28 68-56",fill:"none",stroke:"#e03c31",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"14"})})})]}):(0,i.jsx)(n.JY,{onDragEnd:A,children:(0,i.jsx)(n.gL,{droppableId:t,renderClone:y,children:(e,t)=>{let{droppableProps:r,innerRef:a,placeholder:o}=e,{isDraggingOver:c}=t;return(0,i.jsxs)("div",{...r,className:(0,b.cn)("flex flex-col gap-y-2.5 rounded-sm",c&&"outline outline-1 outline-offset-4 outline-grey-400"),ref:a,children:[(0,l.A)(s,(e,t)=>(0,i.jsx)(n.sx,{draggableId:e.sectionId,index:t,isDragDisabled:(0,S.W)(e)||(0,d._zG)(e),children:y},e.sectionId)),o]})}})})},e.sectionId)}}}]);

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.