PageSourceSearch

https://mmmerch.co.uk/assets/AnnouncementEditor.ba51ff13.js

js mmmerch.co.uk collected 2026-09-28 06:30:39 UTC 3,342 bytes, 2 lines download raw bytes

1import{_ as y,aU as v,bp as b}from"./index.b39fe1b1.js";import{F as g}from"./index.42dae36b.js";import{e as C}from"./editorMixin.7e61341c.js";import{N as n,D as d,W as h,U as i,f as a,S as s,E as A,Q as P}from"./vue.00f7c436.js";import{B as S,I as k,U as w,P as B,T,L as x,D as E,H as _}from"./tiptap-extension-underline.esm.60564cbc.js";import{L as H}from"./Link.5a99afe6.js";import{T as N}from"./tiptap-extension-text-style.esm.bf7b0ebd.js";import"./sentry.09480738.js";import"./faSlidersH.ad74e57e.js";import"./faCopy.38f9d2ec.js";import"./faFloppyDisk.3e6f3d05.js";import"./isEqual.7a4a4211.js";import"./formConfig.a1ad88ef.js";import"./faCircle.bfdafcd9.js";import"./faAlignCenter.2ec5515f.js";import"./faArrowDown.54f3a258.js";import"./faArrowRight.97fd3c4b.js";const R={name:"AnnouncementV2TemplateEditor",components:{FormBuilder:g},mixins:[C],data(){return{faTimes:v.faTimes,extensions:[S,k,w,H,B,T,N,x,E,_]}},computed:{getAction(){const e=this.getProperty("action",{});return typeof e=="string"?JSON.parse(e):e}},methods:{isTransparent:b,setAction(e,o){const l=this.getAction;l[e]=o,this.setProperty("action",{value:l})}}},F={class:"flex justify-between mb-4"},I=s("h5",{class:"inline"}," Action ",-1),L={key:0};function O(e,o,l,U,m,r){const u=n("tml-input"),c=n("tml-link-selector"),p=n("form-builder"),f=n("template-editor-layout");return d(),h(f,null,{advanced:i(()=>[a(p,{value:e.template.data.properties,fields:{borderRadius:e.config.borderRadius,actionStyle:{type:"selector",label:"Action Style",options:[{text:"Primary",value:"primary"},{text:"Secondary",value:"secondary"},{text:"None",value:"none"}]},buttonBorderRadius:{...e.config.borderRadius,label:"Button Corners",when:e.getProperty("actionStyle")!=="none"},overlayColorStart:{type:"color",label:"Gradient Start Colour",showClearOption:!0},overlayColorEnd:{type:"color",label:"Gradient End Colour",showClearOption:!0},backgroundColor:{...e.config.boxColor,when:r.isTransparent(e.getProperty("overlayColorStart"))||r.isTransparent(e.getProperty("overlayColorEnd"))},...e.globalFields},groups:{Action:["actionStyle","buttonBorderRadius"],Gradient:["overlayColorStart","overlayColorEnd","overlayOpacity"],Block:["fullBackgroundColor","borderRadius","fullWidth","backgroundColor"]},"pre-process-field":e.onProcessField,onSet:o[3]||(o[3]=t=>e.setProperty(t.name,t.value))},null,8,["value","fields","pre-process-field"])]),default:i(()=>[a(p,{value:e.template.data.properties,fields:{icon:"icon",text:{type:"html",previewHost:e.linkPreviewHost,label:"Announcement",style:{minHeight:"10vh"},extensions:m.extensions},textColor:{type:"color",label:"Colour"},action:"custom"},"pre-process-field":e.onProcessField,onSet:o[2]||(o[2]=t=>e.setProperty(t.name,t.value))},{action:i(()=>[s("div",F,[s("div",null,[I,r.getAction.text?P("",!0):(d(),A("span",L,"(none)"))])]),a(u,{"field-name":"action-text",placeholder:"Text",value:r.getAction.text,onInput:o[0]||(o[0]=t=>r.setAction("text",t))},null,8,["value"]),a(c,{"field-name":"action-href",value:r.getAction.href,"preview-host":e.linkPreviewHost,"show-clear":"","value-after-cleared":"#",onInput:o[1]||(o[1]=t=>r.setAction("href",t))},null,8,["value","preview-host"])]),_:1},8,["value","fields","pre-process-field"])]),_:1})}const te=y(R,[["render",O]]);export{te as default};
2//# sourceMappingURL=AnnouncementEditor.ba51ff13.js.map

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.