PageSourceSearch

https://k4.map.is/build/assets/InformationBannerSettingsNewBanner-D4CXI0W2.js

js map.is collected 2026-10-02 16:34:50 UTC 16,465 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c804ca69-6b37-58d4-9e18-d71fdb2d3326")}catch(e){}}();
3import{s as ke}from"./index-M1GPBoqK.js";import{s as Fe}from"./index-Be8dx2fo.js";import{s as Se}from"./index-CmRIpOsl.js";import{s as Te}from"./index-yLcm6E_N.js";import{s as Ue}from"./index-v3DotIqS.js";import{s as Le}from"./index-o8dsYttc.js";import{s as De}from"./index-DRzaG7dr.js";import{s as Ce}from"./index-HpDpzfMB.js";import{s as Ie}from"./index-DZHlok7V.js";import{s as Ee}from"./index-BOQwcLth.js";import{s as $e}from"./index-CTWRs3dv.js";import{_ as A}from"./CollapsiblePanel-D8Mo_Zmn.js";import{_ as ze}from"./LM_Dialog-DqLifID4.js";import{_ as Ne}from"./InformationBannerBlockBuilder-CmGT9W18.js";import Oe from"./InformationBannerSettingsPreview-BaBTntOV.js";import{p as Me,q as je,v as i,h as v,i as me,H as qe,r as Re,c as f,d as t,w as u,a as l,b as o,t as r,e as T,o as p,z as g,g as j,f as q,D as Ye}from"./app-DQdqKDtP.js";import{c as R,m as He,a as Ge}from"./index.esm-DKWgy8vT.js";import{_ as Je}from"./_plugin-vue_export-helper-DtMJR465.js";import"./index-Ct4I9457.js";import"./index-Bhk4QSpS.js";import"./index-CUth0Rgj.js";import"./index-Blrf7kfc.js";import"./index-CshIE8BL.js";import"./index-Crt50yH7.js";import"./index-DKmWS2K2.js";import"./index-Gnch7sX6.js";import"./index-BEd54w94.js";import"./index-C5A8NZLd.js";import"./index-DGd7ZVyJ.js";import"./index-CkigywlA.js";import"./index-CdVJ02iz.js";import"./index-Wq3cIFz0.js";import"./index-C3PMcsd9.js";import"./index-BDe84LWx.js";import"./index-CWlmEo_T.js";import"./index-D8sVvoAQ.js";import"./index--hOZSaO6.js";import"./vuedraggable.umd-DcVBg7vv.js";import"./index-D-6TNtwS.js";import"./themedImage-GqGpqEP2.js";import"./themeStore-DPut-iuA.js";(function(){try{var _=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_.SENTRY_RELEASE={id:"09ecda379ca237f7c7b59168e719cead1b55c064"}}catch{}})();try{(function(){var _=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},V=new _.Error().stack;V&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[V]="35b04e3c-0ae2-4011-92e5-c87dccfcc1c4",_._sentryDebugIdIdentifier="sentry-dbid-35b04e3c-0ae2-4011-92e5-c87dccfcc1c4")})()}catch{}const Ke={class:"flex flex-col gap-2"},Qe={key:0,class:"text-xs text-surface-400"},We={class:"flex flex-col gap-2"},Xe={class:"flex items-center"},Ze={class:"text-sm"},ea={class:"flex flex-col gap-0.5 text-xs text-surface-400 dark:text-surface-500"},aa={class:"font-medium text-surface-500 dark:text-surface-400"},na={class:"font-medium text-surface-500 dark:text-surface-400"},la={key:0,class:"text-xs text-surface-400"},ta={class:"flex flex-col gap-3"},sa={class:"flex flex-col gap-1"},oa={class:"text-xs text-surface-500 dark:text-surface-400"},ra={for:"newBannerContent"},ia={key:1,class:"flex flex-col gap-1"},ua={class:"text-xs text-surface-500 dark:text-surface-400"},da={key:0,class:"flex items-center gap-1.5 text-xs text-surface-400"},ma={class:"flex flex-col gap-2"},pa={class:"flex items-center justify-center gap-1.5 w-1 md:w-full"},ca={class:"text-xs md:text-sm"},va={class:"text-xs text-surface-400 dark:text-surface-500"},fa={key:0,class:"text-xs text-surface-400"},ga={class:"grid grid-cols-2 gap-3"},_a={class:"flex flex-col gap-1"},ba={class:"text-xs text-surface-500 dark:text-surface-400"},xa={class:"flex flex-col gap-1"},ya={class:"text-xs text-surface-500 dark:text-surface-400"},wa={key:0,class:"text-xs text-surface-400"},Ba={key:0,class:"text-xs text-surface-400"},Pa={class:"flex items-center"},ha={class:"text-sm"},Aa={class:"flex flex-wrap gap-x-5 gap-y-2 px-1"},Va={class:"flex items-center gap-2"},ka={class:"text-xs"},Fa={key:0,class:"flex items-center gap-2"},Sa={class:"text-xs"},Ta={key:1,class:"flex items-center gap-2"},Ua={class:"text-xs"},La={key:2,class:"flex items-center gap-2"},Da={class:"text-xs"},Ca={class:"flex items-center gap-2"},Ia={class:"text-xs"},Ea={key:3,class:"flex items-center gap-2"},$a={class:"text-xs"},za={class:"flex items-center justify-between gap-2"},Na={class:"flex gap-2"},Oa={__name:"InformationBannerSettingsNewBanner",props:{visible:{type:Boolean,default:!1}},emits:["update:visible"],setup(_,{emit:V}){const{t:a}=Me(),Y=je(),pe=_,ce=V,z=i(!1),N=i(!1),k=i(""),y=i(""),U=i([]),m=i("banner"),w=i("info"),L=i(!1),D=i(!1),C=i(!0),F=i("top"),I=i(!0),E=i(!1),S=i(null),x=i(null),B=i(null),H=i(!0),G=i(!0),J=i(!0),K=i(!0),Q=i(!0),W=i(!0),X=v(()=>{var s;return((s=se.value.find(e=>e.value===m.value))==null?void 0:s.label)??null}),Z=v(()=>{var e;const s=(e=k.value)==null?void 0:e.trim();return s?s.length>45?s.slice(0,45)+"…":s:null}),ee=v(()=>{var s;return((s=re.value.find(e=>e.value===w.value))==null?void 0:s.label)??null}),ae=v(()=>{var s;return((s=oe.value.find(e=>e.value===F.value))==null?void 0:s.label)??null}),ne=v(()=>{if(!x.value&&!B.value)return null;const s=e=>{if(!e)return"…";const b=e instanceof Date?e:new Date(e);return`${String(b.getDate()).padStart(2,"0")}.${String(b.getMonth()+1).padStart(2,"0")}.${b.getFullYear()}`};return`${s(x.value)} – ${s(B.value)}`}),ve=v(()=>me().props.client),le=v(()=>me().props.clientLayers??[]),te=v(()=>{var s;return S.value?((s=le.value.find(e=>e.id===S.value))==null?void 0:s.name_is)??null:null}),$=v({get:()=>pe.visible,set:s=>ce("update:visible",s)}),fe=v(()=>({title:k.value,content:y.value,content_blocks:U.value,display_type:m.value,severity:w.value,allow_dismiss:L.value,show_dont_show_again:D.value,show_title:C.value,position:F.value,modal_backdrop:I.value,modal_draggable:E.value,starts_at:x.value,ends_at:B.value})),se=v(()=>[{label:a("superAdminPage.infoBannerPage.displayTypes.banner"),value:"banner"},{label:a("superAdminPage.infoBannerPage.displayTypes.modal"),value:"modal"}]),oe=v(()=>m.value==="modal"?[{label:a("superAdminPage.infoBannerPage.newBannerForm.positions.top"),value:"top"},{label:a("superAdminPage.infoBannerPage.newBannerForm.positions.center"),value:"center"},{label:a("superAdminPage.infoBannerPage.newBannerForm.positions.bottom"),value:"bottom"}]:[{label:a("superAdminPage.infoBannerPage.newBannerForm.positions.top"),value:"top"},{label:a("superAdminPage.infoBannerPage.newBannerForm.positions.bottom"),value:"bottom"}]),re=v(()=>[{label:a("superAdminPage.infoBannerPage.severities.normal"),value:"normal"},{label:a("superAdminPage.infoBannerPage.severities.info"),value:"info"},{label:a("superAdminPage.infoBannerPage.severities.warning"),value:"warning"},{label:a("superAdminPage.infoBannerPage.severities.success"),value:"success"},{label:a("superAdminPage.infoBannerPage.severities.danger"),value:"danger"}]),ie={normal:"bg-surface-400",info:"bg-blue-500",warning:"bg-amber-500",success:"bg-green-500",danger:"bg-red-500"},ge={option:({context:s})=>{var e;return{"data-severity":(e=s.option)==null?void 0:e.value}}},_e={title:"",content:"",is_active:!0,allow_dismiss:!1},be=v(()=>{const s=m.value==="banner"?R().required(a("superAdminPage.infoBannerPage.newBannerForm.contentError")).max(200,a("superAdminPage.infoBannerPage.newBannerForm.contentMaxLengthError")):R().nullable().optional();return He(Ge().shape({title:R().required(a("superAdminPage.infoBannerPage.newBannerForm.titleError")),content:s}))}),d=qe({title:"",content:"",content_blocks:[],display_type:"banner",severity:"info",is_active:!0,allow_dismiss:!1,show_dont_show_again:!1,show_title:!0,position:"top",modal_backdrop:!0,modal_draggable:!1,
3client_layer_id:null,starts_at:null,ends_at:null});function xe({values:s,valid:e}){e&&(z.value=!0,d.title=k.value,d.content=m.value==="banner"?y.value:"",d.is_active=s.is_active??!0,d.display_type=m.value,d.severity=w.value,d.allow_dismiss=L.value,d.show_dont_show_again=D.value,d.show_title=C.value,d.position=F.value,d.modal_backdrop=I.value,d.modal_draggable=E.value,d.client_layer_id=S.value,d.starts_at=x.value,d.ends_at=B.value,d.content_blocks=m.value==="modal"?U.value:[],d.post(route("client.admin.information-banner.store",{client:ve.value.locode}),{onSuccess:()=>{Y.add({severity:"success",summary:a("superAdminPage.infoBannerPage.newBannerForm.createdSuccess"),life:3e3}),$.value=!1},onError:b=>{Object.values(b).forEach(O=>{Y.add({severity:"error",summary:O,life:8e3})})},onFinish:()=>{z.value=!1}}))}return(s,e)=>{const b=$e,O=Ee,ue=Ie,ye=Ce,we=De,de=Le,Be=Ue,P=Te,Pe=Se,he=Fe,Ae=Re("FontAwesomeIcon"),M=ke;return p(),f(Ye,null,[t(ze,{visible:$.value,"onUpdate:visible":e[22]||(e[22]=c=>$.value=c),modal:"",header:o(a)("superAdminPage.infoBannerPage.newBannerForm.header"),width:50,breakpoints:{"1199px":"50rem","575px":"90vw"}},{footer:u(()=>[t(he),l("div",za,[t(M,{variant:"text",title:o(a)("superAdminPage.infoBannerPage.preview.header"),onClick:e[20]||(e[20]=c=>N.value=!0)},{icon:u(()=>[t(Ae,{icon:["fas","eye"]})]),_:1},8,["title"]),l("div",Na,[t(M,{label:o(a)("superAdminPage.infoBannerPage.newBannerForm.cancelButton"),variant:"outlined",onClick:e[21]||(e[21]=c=>$.value=!1)},null,8,["label"]),t(M,{form:"newBannerForm",label:o(a)("superAdminPage.infoBannerPage.newBannerForm.saveButton"),loading:z.value,type:"submit"},null,8,["label","loading"])])])]),default:u(()=>[t(Pe,{id:"newBannerForm","initial-values":_e,resolver:be.value,validateOnValueUpdate:!0,validateOnBlur:!0,validateOnSubmit:!0,onSubmit:xe},{default:u(c=>[l("div",Ke,[t(A,{collapsed:H.value,"onUpdate:collapsed":e[1]||(e[1]=n=>H.value=n),label:o(a)("superAdminPage.infoBannerPage.columns.displayType")},{summary:u(()=>[X.value?(p(),f("span",Qe,r(X.value),1)):g("",!0)]),default:u(()=>[l("div",We,[t(b,{modelValue:m.value,"onUpdate:modelValue":e[0]||(e[0]=n=>m.value=n),options:se.value,optionLabel:"label",optionValue:"value",allowEmpty:!1},{option:u(({option:n})=>[l("div",Xe,[l("span",Ze,r(n.label),1)])]),_:1},8,["modelValue","options"]),l("div",ea,[l("span",null,[l("span",aa,r(o(a)("superAdminPage.infoBannerPage.displayTypes.banner"))+":",1),T(" "+r(o(a)("superAdminPage.infoBannerPage.newBannerForm.displayTypeBannerInfo")),1)]),l("span",null,[l("span",na,r(o(a)("superAdminPage.infoBannerPage.displayTypes.modal"))+":",1),T(" "+r(o(a)("superAdminPage.infoBannerPage.newBannerForm.displayTypeModalInfo")),1)])])])]),_:1},8,["collapsed","label"]),t(A,{collapsed:G.value,"onUpdate:collapsed":e[5]||(e[5]=n=>G.value=n),label:o(a)("superAdminPage.infoBannerPage.columns.title")},{summary:u(()=>[Z.value?(p(),f("span",la,r(Z.value),1)):g("",!0)]),default:u(()=>{var n;return[l("div",ta,[l("div",sa,[l("span",oa,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.titleLabel")),1),t(O,{modelValue:k.value,"onUpdate:modelValue":e[2]||(e[2]=h=>k.value=h),name:"title",id:"newBannerTitle",size:"small",fluid:""},null,8,["modelValue"]),(n=c==null?void 0:c.title)!=null&&n.error?(p(),j(ue,{key:0,size:"small",severity:"error",variant:"simple"},{default:u(()=>[T(r(c.title.error.message),1)]),_:2},1024)):g("",!0)]),m.value==="banner"?(p(),j(we,{key:0,variant:"in"},{default:u(()=>{var h;return[t(ye,{modelValue:y.value,"onUpdate:modelValue":e[3]||(e[3]=Ve=>y.value=Ve),name:"content",id:"newBannerContent",size:"small",fluid:"",autoResize:"",rows:"2",class:"pb-5"},null,8,["modelValue"]),l("label",ra,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.contentLabel")),1),l("span",{class:q(["pointer-events-none absolute bottom-1.5 right-2 text-[10px]",y.value.length>200?"text-red-500 dark:text-red-400":"text-surface-400"])},r(y.value.length)+" / 200",3),(h=c==null?void 0:c.content)!=null&&h.error?(p(),j(ue,{key:0,size:"small",severity:"error",variant:"simple"},{default:u(()=>[T(r(c.content.error.message),1)]),_:2},1024)):g("",!0)]}),_:2},1024)):(p(),f("div",ia,[l("span",ua,r(o(a)("superAdminPage.infoBannerPage.blockBuilder.label")),1),t(Ne,{modelValue:U.value,"onUpdate:modelValue":e[4]||(e[4]=h=>U.value=h)},null,8,["modelValue"])]))])]}),_:2},1032,["collapsed","label"]),t(A,{collapsed:J.value,"onUpdate:collapsed":e[7]||(e[7]=n=>J.value=n),label:o(a)("superAdminPage.infoBannerPage.columns.severity")},{summary:u(()=>[ee.value?(p(),f("div",da,[l("span",{class:q(["h-2 w-2 shrink-0 rounded-full",ie[w.value]])},null,2),T(" "+r(ee.value),1)])):g("",!0)]),default:u(()=>[l("div",ma,[t(b,{modelValue:w.value,"onUpdate:modelValue":e[6]||(e[6]=n=>w.value=n),options:re.value,optionLabel:"label",optionValue:"value",allowEmpty:!1,fluid:"",pt:ge},{option:u(({option:n})=>[l("div",pa,[l("span",{class:q(["h-2 w-2 shrink-0 rounded-full",ie[n.value]])},null,2),l("span",ca,r(n.label),1)])]),_:1},8,["modelValue","options"]),l("p",va,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.severityInfo")),1)])]),_:1},8,["collapsed","label"]),t(A,{collapsed:K.value,"onUpdate:collapsed":e[10]||(e[10]=n=>K.value=n),label:o(a)("superAdminPage.infoBannerPage.columns.timeframe")},{summary:u(()=>[ne.value?(p(),f("span",fa,r(ne.value),1)):g("",!0)]),default:u(()=>[l("div",ga,[l("div",_a,[l("span",ba,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.startsAtLabel")),1),t(de,{modelValue:x.value,"onUpdate:modelValue":e[8]||(e[8]=n=>x.value=n),showTime:"",hourFormat:"24",fluid:"",size:"small",dateFormat:"dd/mm/yy"},null,8,["modelValue"])]),l("div",xa,[l("span",ya,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.endsAtLabel")),1),t(de,{modelValue:B.value,"onUpdate:modelValue":e[9]||(e[9]=n=>B.value=n),showTime:"",hourFormat:"24",fluid:"",size:"small",dateFormat:"dd/mm/yy",minDate:x.value??void 0},null,8,["modelValue","minDate"])])])]),_:1},8,["collapsed","label"]),t(A,{collapsed:Q.value,"onUpdate:collapsed":e[12]||(e[12]=n=>Q.value=n),label:o(a)("superAdminPage.infoBannerPage.columns.layerTrigger")},{summary:u(()=>[te.value?(p(),f("span",wa,r(te.value),1)):g("",!0)]),default:u(()=>[t(Be,{modelValue:S.value,"onUpdate:modelValue":e[11]||(e[11]=n=>S.value=n),options:le.value,optionLabel:"name_is",optionValue:"id",placeholder:o(a)("superAdminPage.infoBannerPage.newBannerForm.layerTriggerPlaceholder"),showClear:"",fluid:"",size:"small",filter:""},null,8,["modelValue","options","placeholder"])]),_:1},8,["collapsed","label"]),t(A,{collapsed:W.value,"onUpdate:collapsed":e[14]||(e[14]=n=>W.value=n),label:o(a)("superAdminPage.infoBannerPage.newBannerForm.positionLabel")},{summary:u(()=>[ae.value?(p(),f("span",Ba,r(ae.value),1)):g("",!0)]),default:u(()=>[t(b,{modelValue:F.value,"onUpdate:modelValue":e[13]||(e[13]=n=>F.value=n),options:oe.value,optionLabel:"label",optionValue:"value",allowEmpty:!1},{option:u(({option:n})=>[l("div",Pa,[l("span",ha,r(n.label),1)])]),_:1},8,["modelValue","options"])]),_:1},8,["collapsed","label"]),l("div",Aa,[l("div",Va,[t(P,{name:"is_active"}),l("span",ka,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.isActiveLabel")),1)]),m.value==="banner"?(p(),f("div",Fa,[t(P,{modelValue:C.value,"onUpdate:modelValue":e[15]||(e[15]=n=>C.value=n),name:"show_title"},null,8,["modelValue"]),l("span",Sa,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.showTitleLabel")),1)])):g("",!0),m.value==="modal"?(p(),f("div",Ta,[t(P,{modelValue:I.value,"onUpdate:modelValue":e[16]||(e[16]=n=>I.value=n),name:"modal_backdrop"},null,8,["modelValue"]),l("span",Ua,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.modalBackdropLabel")),1)])):g("",!0),m.value==="modal"?(p(),f("div",La,[t(P,{modelValue:E.value,"onUpdate:modelValue":e[17]||(e[17]=n=>E.value=n),name:"modal_draggable"},null,8,["modelValue"]),l("span",Da,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.modalDraggableLabel")),1)])):g("",!0),l("div",Ca,[t(P,{modelValue:L.value,"onUpdate:modelValue":e[18]||(e[18]=n=>L.value=n),name:"allow_dismiss"},null,8,["modelValue"]),l("span",Ia,r(m.value==="modal"?o(a)("superAdminPage.infoBannerPage.newBannerForm.allowDismissLabel"):o(a)("superAdminPage.infoBannerPage.newBannerForm.allowCloseLabel")),1)]),m.value==="banner"?(p(),f("div",Ea,[t(P,{modelValue:D.value,"onUpdate:modelValue":e[19]||(e[19]=n=>
3D.value=n),name:"show_dont_show_again"},null,8,["modelValue"]),l("span",$a,r(o(a)("superAdminPage.infoBannerPage.newBannerForm.showDontShowAgainLabel")),1)])):g("",!0)])])]),_:1},8,["resolver"])]),_:1},8,["visible","header"]),t(Oe,{visible:N.value,"onUpdate:visible":e[23]||(e[23]=c=>N.value=c),banner:fe.value},null,8,["visible","banner"])],64)}}},Sn=Je(Oa,[["__scopeId","data-v-cd2c9abc"]]);export{Sn as default};
4
5//# debugId=c804ca69-6b37-58d4-9e18-d71fdb2d3326

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.