Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Show-df5a5d4a.js

import{T as f,m as w,i as c,g as p,o as h,a as t,t as r,f as l,u as n,l as v,n as b,h as x}from"./app-f1493ab2.js";import y from"./App-bc062293.js";import{_ as k}from"./FormInput-b3450213.js";import{Q as $}from"./vue-quill.snow-92980b7b.js";import"./App-6e8cb8a8.js";import"./Sidebar-b962a0c1.js";import"./Menu-45912eaa.js";import"./ProfileModal-09ae28bb.js";import"./tabs-80627b62.js";import"./hidden-f79cef22.js";import"./micro-task-89dcd6af.js";import"./transition-f32a8133.js";import"./use-outside-click-92c6377f.js";import"./LangToggle-d2b58a25.js";import"./MobileSidebar-5b51f786.js";import"./index-114bea05.js";/* empty css              */import"./Sidebar-10203eb5.js";const V={class:"flex justify-between"},_={class:"text-xl mb-1"},B={class:"mb-6 flex items-center text-sm leading-6 text-gray-600"},C={class:"ml-1 mt-1"},S={class:"flex items-center space-x-2"},H={class:"text-sm mb-4 mt-3 rounded-md bg-gray-200 px-1 w-fit"},M={class:"bg-white"},K={__name:"Show",props:{page:Object},setup(d){const a=d,o=f({_method:"put",name:a.page.name,content:a.page.content}),m=async()=>{const s=window.location.pathname;o.put(s,{preserveScroll:!0})},u=async()=>{const s=window.location.pathname;o.delete(s,{onBefore:()=>confirm("Are you sure you want to delete this page?"),preserveScroll:!0})},g=w(()=>o.name.trim().toLowerCase().replace(/\s+/g,"-"));return(s,e)=>(h(),c(y,null,{default:p(()=>[t("div",V,[t("div",null,[t("h2",_,r(s.$t("Frontend pages"))+" | "+r(s.$t("Edit")),1),t("p",B,[e[5]||(e[5]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18Zm.05-13v.1h-.1V8h.1Z"})],-1)),t("span",C,r(s.$t("Configure pages")),1)])]),t("div",S,[l(n(v),{href:"/admin/settings/pages",class:"hover:bg-white rounded-full p-1"},{default:p(()=>e[6]||(e[6]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"black",d:"M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23a1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2"})],-1)])),_:1}),t("button",{onClick:e[0]||(e[0]=i=>u()),class:"hover:bg-white rounded-full p-1"},e[7]||(e[7]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{fill:"red",d:"M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM8 9h8v10H8zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"})],-1)])),t("button",{onClick:e[1]||(e[1]=i=>m()),class:"rounded-md bg-indigo-600 px-3 py-1 text-sm text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},r(s.$t("Save")),1)])]),t("form",{onSubmit:e[4]||(e[4]=x(i=>m(),["prevent"]))},[l(k,{modelValue:n(o).name,"onUpdate:modelValue":e[2]||(e[2]=i=>n(o).name=i),name:"",error:n(o).errors.name,type:"text",class:b("sm:col-span-6")},null,8,["modelValue","error"]),t("div",H,"Slug: /"+r(g.value),1),t("div",M,[l(n($),{content:n(o).content,"onUpdate:content":e[3]||(e[3]=i=>n(o).content=i),toolbar:"essential",contentType:"html",theme:"snow"},null,8,["content"])])],32)]),_:1}))}};export{K as default};