1"use strict";((self||this).webpackChunk=(self||this).webpackChunk||[]).push([[1617],{11617:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});const i={name:"LinkSetting",components:{},props:{menu:Object,target:String},data:function(){return{link:this.menu.link,news_id:this.menu.news_id?this.menu.news.id:null}},methods:{deleteNews:function(){this.$inertia.delete(this.route("news.item.delete",{news:this.news_id}),{replace:!1,preserveState:!0,preserveScroll:!0})},submitChange:function(){"element"===this.target?this.$inertia.post(this.route("menu.element.update",{menu:this.menu.id}),{page_id:null,menu_section_id:this.menu.menu_section_id,label:this.menu.name,link:this.link?this.link:"#",order:this.menu.order,deletable:this.menu.deletable,news_id:null},{replace:!1,preserveState:!1,preserveScroll:!0}):this.$inertia.post(this.route("menu.section.update",{menu:this.menu.id}),{page_id:null,menu_id:this.menu.menu_id,name:this.menu.name,link:this.link?this.link:"#",order:this.menu.order,news_id:null},{replace:!1,preserveState:!1,preserveScroll:!0}),document.getElementById("link-modal-close-button-"+this.target+"-"+("section"===this.target?this.menu.id:this.menu.nest_id)).click()}}};const s=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal fade",attrs:{id:"link-setting-"+t.target+"-"+("section"===t.target?t.menu.id:t.menu.nest_id),tabindex:"-1",role:"dialog","aria-labelledby":"ModalCenterTitle","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog modal-dialog-centered modal-lg",attrs:{role:"document"}},[e("div",{staticClass:"modal-content rounded"},[e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"ModalLongTitle"}},[t._v("\n "+t._s(t.menu.name)+" - Link\n ")]),t._v(" "),e("button",{staticClass:"btn-close",attrs:{id:"link-modal-close-button-"+t.target+"-"+("section"===t.target?t.menu.id:t.menu.nest_id),type:"button","data-bs-dismiss":"modal","aria-label":"Close"}})]),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"input-group"},[e("label",{attrs:{for:"input-group-"+t.menu.nest_id}},[t._v("Link - Se si vuole un megamenù lasciare il campo\n vuoto")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.link,expression:"link"}],staticClass:"form-control border rounded-3",attrs:{id:"input-group-"+t.menu.nest_id,type:"text",placeholder:"Es. 'https://esempio.it'",name:"input-group-"+t.menu.nest_id},domProps:{value:t.link},on:{input:function(e){e.target.composing||(t.link=e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"col-12"},[e("div",{staticClass:"form-row"},[e("div",{staticClass:"col text-end py-3"},[e("button",{staticClass:"btn btn-sm bg-dark text-white rounded-3",attrs:{id:"button-1",type:"button"},on:{click:t.submitChange}},[t._v("\n Aggiorna\n "),e("font-awesome-icon",{staticClass:"ms-2",attrs:{icon:["fas","save"]}})],1)])])])])])])])])])}),[],!1,null,null,null).exports},51900:(t,e,n)=>{function i(t,e,n,i,s,a,o,l){var r,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),o?(r=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=r):s&&(r=l?function(){s.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:s),r)if(d.functional){d._injectStyles=r;var u=d.render;d.render=function(t,e){return r.call(e),u(t,e)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,r):[r]}return{exports:t,options:d}}n.d(e,{Z:()=>i})}}]);
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.