PageSourceSearch

https://admin.easystore.blue/assets/RedirectDialog-D9su00C5.js

js easystore.blue collected 2026-10-09 02:57:09 UTC 3,831 bytes, 1 lines download raw bytes

1import{_,j as m,g as f,l as b}from"./index-BykrHpuN.js";import{_ as g}from"./FacilForm-DTH0MnIg.js";import{_ as v}from"./FacilText-BXfmwWrY.js";import{o as y,H as k,P as a,w as s,J as r,N as o,Q as I,ee as V}from"./vendor-BehnxqKh.js";import"./FacilSelectJSX-DTFqQm-x.js";import"./dom-BIOseQp1.js";import"./FacilSelect-Cszt8m7h.js";import"./FacilChip-DK7QP7d6.js";import"./FacilDivider-Dw9FXdWQ.js";import"./device-DCkCH9Bp.js";import"./debounce-CTH0wqy2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"chinhong93@[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d44842eb-23ae-4393-a299-4fb37f50639d",e._sentryDebugIdIdentifier="sentry-dbid-d44842eb-23ae-4393-a299-4fb37f50639d")}catch{}})();const w={props:{visible:Boolean,redirectId:Number,oldUrl:String,redirectUrl:String,linkOption:String,redirects:Array},emits:["completed","update:visible"],data(){return{data:{redirect_id:null,old_url:"",redirect_url:"",link_option:"/",handle:""}}},computed:{global(){return b()}},methods:{onOpen(){if(this.redirectId!=null){var e=this.redirectId,t=this.redirects.find(c=>c.id===e);this.data=f(t);var i=this.data.redirect_url;i.substring(0,1)==="/"?this.data.link_option="/":i.indexOf("https://")>-1?this.data.link_option="https://":this.data.link_option="http://",this.data.redirect_url=i.substring(this.data.link_option.length,i.length)}else this.data.redirect_id=null,this.data.old_url="",this.data.redirect_url="",this.data.link_option="/",this.data.handle=""},onClose(){this.data.redirect_id=null,this.$emit("update:visible",!1)},validateInput(){this.$refs.checkValidation.validate().then(e=>{e&&(this.redirect_id!=null?this.$api.channel.updateRedirects(this.redirect_id,this.data).then(t=>(this.$emit("completed",!0),this.onClose(),this.submitHandler(t,{showToastr:!0,successMessage:this.$tt("content.redirects.edit_redirect_success")}))):this.$api.channel.createRedirects(this.data).then(t=>(this.$emit("completed",!0),this.onClose(),this.submitHandler(t,{showToastr:!0,successMessage:this.$tt("content.redirects.add_redirect_success")}))))})}}},C=["innerHTML"];function D(e,t,i,c,l,n){const p=v,u=g,h=m;return y(),k("div",null,[a(h,{title:i.redirectId==null?e.$tt("content.redirects.add_redirect"):e.$tt("content.redirects.edit_redirect"),visible:i.visible,"primary-action":{text:e.$tt("buttons.confirm"),onAction:n.validateInput},onOpen:n.onOpen,onClose:n.onClose},{default:s(()=>[r("p",null,o(e.$tt("content.redirects.edit.description")),1),a(u,{ref:"checkValidation"},{default:s(()=>[a(p,{modelValue:l.data.old_url,"onUpdate:modelValue":t[0]||(t[0]=d=>l.data.old_url=d),label:e.$tt("content.redirects.edit.path"),prefix:n.global.store.domain_url+"/",type:"text",placeholder:e.$tt("content.redirects.edit.old_path_placeholder")},null,8,["modelValue","label","prefix","placeholder"]),r("p",{innerHTML:e.$tt("content.redirects.edit.old_path_example",{url:n.global.store.domain_url})},null,8,C),a(p,{modelValue:l.data.redirect_url,"onUpdate:modelValue":t[2]||(t[2]=d=>l.data.redirect_url=d),type:"text",placeholder:e.$tt("content.redirects.edit.redirect_path_placeholder")},{prepend:s(()=>[I(r("select",{"onUpdate:modelValue":t[1]||(t[1]=d=>l.data.link_option=d),class:"facil__control"},[...t[3]||(t[3]=[r("option",{value:"/"},o("/"),-1),r("option",{value:"https://"},o("https://"),-1),r("option",{value:"http://"},o("http://"),-1)])],512),[[V,l.data.link_option]])]),_:1},8,["modelValue","placeholder"]),r("p",null,o(e.$tt("content.redirects.edit.redirect_path_example")),1)]),_:1},512)]),_:1},8,["title","visible","primary-action","onOpen","onClose"])])}const B=_(w,[["render",D],["__file","RedirectDialog.vue"]]);export{B 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.