PageSourceSearch

https://www.tranmererovers.co.uk/_nuxt/lCNr2FjJ.js

js tranmererovers.co.uk collected 2026-09-24 21:33:02 UTC 3,716 bytes, 1 lines download raw bytes

1import{PageElementBase as s}from"./CdQXFjpm.js";import{d as l}from"./BWnLKv5K.js";import{G as r}from"./DA0pkXRu.js";import{t as p}from"./CATxlt2j.js";import"./CXTOca8g.js";import"./0xmjySIm.js";import"./DhOWJ3tu.js";import"./WUj_y4n6.js";import"./CrX2__Gh.js";import"./T-kpnD9n.js";import"./C8oKskU6.js";import"./BOOAH9R7.js";class d extends s{constructor(i="root",t){super(i,t),this.widgetType="ProfileRetail",this.widgetName="Retail",this.component="ProfileRetail",this.icon={icon:"product",pack:"cms"},this.pseudoWidgetType="widget",this.products=[{link:"",title:"",price:"",description:"",image:new r}],this.productSidebarComponents=[],this.title="Shop Kits",this.actions=[{title:"Visit Store",action:"",linkType:"external",type:"primary",icon:{pack:"fan",icon:"bag"},display:!0}],this.theme="light",this.buildContentFields=e=>[{heading:"Default Products",options:[{type:"card-sorter",attributeKey:["productSidebarComponents"],modalTitle:"Add Product",modalFields:[{options:[{type:"image-picker",heading:"Product Image",attributeKey:["element","image"]},{type:"input",heading:"Product name",attributeKey:["element","title"]},{type:"input",heading:"Price",attributeKey:["element","price"]},{type:"input",heading:"Link",attributeKey:["element","link"]}]}],callback:n=>{e.productSidebarComponents=n,e.productSidebarComponents.forEach(o=>{const a=o.element;o.name=a.title,o.image=a.image.image}),e.products=e.productSidebarComponents.filter(o=>o.active).map(o=>o.element)}},{type:"external-selector",attributeKey:null,label:"Add Product",link:{type:"function",value:""},callback:()=>{e.productSidebarComponents.push({id:`product-${e.productSidebarComponents.length}`,element:{link:"",title:"",description:"",image:new r},name:"",type:"Product",description:"",image:"",active:!0,hideToggle:!0,deletable:!0,editable:!0})}}]},{heading:"Store Button",toggleable:!0,toggleAttributeKey:["actions","0","display"],options:[{heading:"Label",type:"input",attributeKey:["actions","0","title"],placeholder:"Button Text"},{heading:"Link",type:"action-input",disabledLinkTypes:["file","tel","email"],attributeKey:["actions","0"],placeholder:"Button Link"},{heading:"Icon",type:"icon-selector",attributeKey:["actions","0","icon","icon"]},{heading:"Button Theme",type:"select",attributeKey:["actions","0","type"],items:[{name:"Primary",id:"primary"},{name:"Secondary",id:"secondary"},{name:"Tertiary",id:"tertiary"}]}]}],this.buildStyleFields=()=>[{heading:"Theme",options:[{type:"radio",subType:"list",attributeKey:"theme",options:[{label:"Light",id:"light"},{label:"Dark",id:"dark"},{label:"Accent",id:"club"}]}]}],this.getSidebarTabs=e=>[{name:"Layout",fields:this.buildLayoutFields(),disabled:!0},{name:"Content",fields:this.buildContentFields(e),default:!0},{name:"Style",fields:this.buildStyleFields()}],Object.assign(this,p(t)),this.productSidebarComponents=this.mapProductsToSidebarComponents(this.products),t!=null&&t.actions&&(this.actions=l(t.actions))}mapProductsToSidebarComponents(i){return i.map((t,e)=>{var n;return{id:`product-${e}`,element:t,name:t.title,type:"Product",description:t.description,image:(n=t.image)==null?void 0:n.image,active:!0,hideToggle:!0,deletable:!0,editable:!0}})}mapSidebarComponentsToProducts(i){return i.map(t=>{const e=t.element;return{link:e.link,title:e.title,description:e.description,price:e.price,image:e.image}})}serializeElement(){return{...super.serializeBaseElement(),theme:this.theme,products:this.mapSidebarComponentsToProducts(this.productSidebarComponents.filter(i=>i.active)),title:this.title,actions:this.actions}}duplicateElement(){return new d(this.parentID,{...this,uuid:void 0})}pageActionOverrides(){return{delete:{hidden:!0},copy:{hidden:!0}}}}export{d as default};

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.