PageSourceSearch

https://www.cbrbatam.com/build/assets/Form-I01GlVpl.js

js cbrbatam.com collected 2026-10-06 12:53:52 UTC 8,978 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SectionOne-CrKyfH7G.js","assets/app-F2FEa5r7.js","assets/app-G1YwVE05.css","assets/TextInput-C7eFgqom.js","assets/InputError-BinYMmYD.js","assets/CloseLine-DTuPBmKu.js","assets/SectionEight-Cm9q77r_.js","assets/InputLabel-CnDalI_S.js","assets/PrimaryButton-YxhK2Dnj.js","assets/helpers-VCav7ddT.js","assets/Form-BHj-9paQ.css","assets/SectionFive-DXuqZ8c9.js","assets/SecondaryButton-BpZlbSk9.js","assets/SectionFour-CmpqIc9t.js","assets/SectionNine-CRFsmsjV.js","assets/SectionSeven-DG0zP8jM.js","assets/SectionSix-C-OpXnk5.js","assets/SectionThree-D1MkxyOK.js","assets/SectionTwo-D1_Y9ueB.js"])))=>i.map(i=>d[i]);
2import{h as M,_ as d,U as $,x as B,r as S,d as I,o as L,a as l,b as P,q,k as u,w as O,f as R,t as _,n as p,c as U,D as W}from"./app-F2FEa5r7.js";import{_ as H}from"./DialogModal-CumzyMB1.js";import{_ as G}from"./SecondaryButton-BpZlbSk9.js";import{_ as J}from"./PrimaryButton-YxhK2Dnj.js";import{d as V,e as Q}from"./helpers-VCav7ddT.js";import"./Modal-C5GzhsIX.js";const X=(a,C,D)=>{const t=a[C];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((e,E)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(E.bind(null,new Error("Unknown variable dynamic import: "+C+(C.split("/").length!==D?". Note that variables only represent file names one level deep.":""))))})},Y={class:"mt-4 overflow-x-auto"},Z={class:"flex gap-2"},ce={__name:"Form",props:{trans:Object,id:String,current_lang:String},emits:["reload"],setup(a,{emit:C}){const D=C,t=a;M(()=>{d(()=>import("./SectionOne-CrKyfH7G.js"),__vite__mapDeps([0,1,2,3,4,5])).then(s=>{w.value=s.default})});const e=B({banners:[],authorized_dealers:[],promotions:[],home_product_1:{},home_product_2:{},online_shop:{},why_choose_us:{},testimonies:[],get_promotion:{},errors:{},processing:!1}),E=S(!1),m=S("bg-red-800 text-white"),n=S("section_1"),k=S(null),A=S("Oops! Something went wrong, please try again later."),T=S({section_1:{create:route("home_section_1.store"),edit:t.id?route("home_section_1.update",{home:t.id}):null,key:"banners",is_array:!0},section_2:{create:route("home_section_2.store"),edit:t.id?route("home_section_2.update",{home:t.id}):null,key:"authorized_dealers",is_array:!0},section_3:{create:route("home_section_3.store"),edit:t.id?route("home_section_3.update",{home:t.id}):null,key:"promotions",is_array:!0},section_4:{create:route("home_section_4.store"),edit:t.id?route("home_section_4.update",{home:t.id}):null,key:"home_product_1",is_array:!1},section_5:{create:route("home_section_5.store"),edit:t.id?route("home_section_5.update",{home:t.id}):null,key:"home_product_2",is_array:!1},section_6:{create:route("home_section_6.store"),edit:t.id?route("home_section_6.update",{home:t.id}):null,key:"online_shop",is_array:!1},section_7:{create:route("home_section_7.store"),edit:t.id?route("home_section_7.update",{home:t.id}):null,key:"why_choose_us",is_array:!1},section_8:{create:route("home_section_8.store"),edit:t.id?route("home_section_8.update",{home:t.id}):null,key:"testimonies",is_array:!1},section_9:{create:route("home_section_9.store"),edit:t.id?route("home_section_9.update",{home:t.id}):null,key:"get_promotion",is_array:!1}}),w=$(""),j=()=>{E.value=!0,t.id&&axios.get(V(route("home.edit",{home:t.id}),t.current_lang)).then(s=>{k.value=s.data.values}).catch(s=>{alert(A.value)})},N=()=>{e.processing=!0,e.errors={};const s=T.value[n.value].key;let g=V(T.value[n.value].create,t.current_lang);var r=T.value[n.value].is_array?e:e[s];t.id&&(g=V(T.value[n.value].edit,t.current_lang),r._method="PUT");const b=new FormData;Object.keys(r).map((o,x)=>{typeof r[o]=="object"&&!(r[o]instanceof File)?Object.keys(r[o]).map((h,i)=>{typeof r[o][i]=="object"&&!(r[o][i]instanceof File)?Object.keys(r[o][i]).map((c,K)=>{typeof r[o][i][c]=="object"&&!(r[o][i][c]instanceof File)?Object.keys(r[o][i][c]).map((f,ee)=>{typeof r[o][i][c][f]&&!(r[o][i][c]instanceof File)?Object.keys(r[o][i][c][f]).map((F,te)=>{b.append(o+"["+h+"]["+c+"]["+f+"]["+F+"]",r[o][i][c][f][F])}):b.append(o+"["+h+"]["+c+"]["+f+"]",r[o][i][c][f])}):b.append(o+"["+h+"]["+c+"]",r[o][i][c])}):b.append(o+"["+h+"]",r[o][h])}):b.append(o,r[o])}),axios.post(g,b).then(o=>{const{title:x,message:h}=o.data;D("reload",x,h),e.processing=!1,y()}).catch(o=>{try{const{data:x,status:h}=o.response;h!=422?alert(x.message):e.errors=Q(x.errors)}catch{alert(A.value)}e.processing=!1})},z=(s,g)=>{e[g]=s},y=()=>{E.value=!1,e.banners=[],e.authorized_dealers=[],e.promotions=[],e.home_product_1={},e.home_product_2={},e.online_shop={},e.why_choose_us={},e.testimonies=[],e.get_promotion={},e.processing=!1,e.errors={},n.value="section_1",d(()=>import("./SectionOne-CrKyfH7G.js"),__vite__mapDeps([0,1,2,3,4,5])).then(s=>{w.value=s.default})},v=s=>{n.value=s.currentTarget.getAttribute("data-attr");const g=s.currentTarget.getAttribute("data-component");X(Object.assign({
2"./Contents/SectionEight.vue":()=>d(()=>import("./SectionEight-Cm9q77r_.js"),__vite__mapDeps([6,1,2,3,4,7,8,5,9,10])),
2"./Contents/SectionFive.vue":()=>d(()=>import("./SectionFive-DXuqZ8c9.js"),__vite__mapDeps([11,1,2,3,4,7,5,12,9])),
2"./Contents/SectionFour.vue":()=>d(()=>import("./SectionFour-CmpqIc9t.js"),__vite__mapDeps([13,1,2,3,4,7,5,12,9])),
2"./Contents/SectionNine.vue":()=>d(()=>import("./SectionNine-CRFsmsjV.js"),__vite__mapDeps([14,1,2,3,4,7,9])),
2"./Contents/SectionOne.vue":()=>d(()=>import("./SectionOne-CrKyfH7G.js"),__vite__mapDeps([0,1,2,3,4,5])),
2"./Contents/SectionSeven.vue":()=>d(()=>import("./SectionSeven-DG0zP8jM.js"),__vite__mapDeps([15,1,2,3,4,7,5,12,9])),
2"./Contents/SectionSix.vue":()=>d(()=>import("./SectionSix-C-OpXnk5.js"),__vite__mapDeps([16,1,2,3,4,7,5,12,9])),
2"./Contents/SectionThree.vue":()=>d(()=>import("./SectionThree-D1MkxyOK.js"),__vite__mapDeps([17,1,2,3,7,5,9])),
2"./Contents/SectionTwo.vue":()=>d(()=>import("./SectionTwo-D1_Y9ueB.js"),__vite__mapDeps([18,1,2,3,7,5,9]))
2}),`./Contents/${g}.vue`,3).then(r=>{w.value=r.default}),e.banners=[],e.authorized_dealers=[],e.promotions=[],e.home_product_1={},e.home_product_2={},e.online_shop={},e.why_choose_us={},e.testimonies=[],e.get_promotion={},e.errors={},e.processing=!1};return(s,g)=>(L(),I("span",null,[l("span",{onClick:u(j,["prevent"])},[q(s.$slots,"default")]),P(H,{show:E.value,onClose:y,closeable:!1,maxWidth:"4xl"},{title:O(()=>[R(_(a.id?a.trans.edit_home:a.trans.create_home)+" ",1),l("div",Y,[l("ul",Z,[l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_1"?m.value:""]),"data-component":"SectionOne","data-attr":"section_1",onClick:u(v,["prevent"])},_(a.trans.section+" 1"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_2"?m.value:""]),"data-component":"SectionTwo","data-attr":"section_2",onClick:u(v,["prevent"])},_(a.trans.section+" 2"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_3"?m.value:""]),"data-component":"SectionThree","data-attr":"section_3",onClick:u(v,["prevent"])},_(a.trans.section+" 3"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_4"?m.value:""]),"data-component":"SectionFour","data-attr":"section_4",onClick:u(v,["prevent"])},_(a.trans.section+" 4"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_5"?m.value:""]),"data-component":"SectionFive","data-attr":"section_5",onClick:u(v,["prevent"])},_(a.trans.section+" 5"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_6"?m.value:""]),"data-component":"SectionSix","data-attr":"section_6",onClick:u(v,["prevent"])},_(a.trans.section+" 6"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_7"?m.value:""]),"data-component":"SectionSeven","data-attr":"section_7",onClick:u(v,["prevent"])},_(a.trans.section+" 7"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_8"?m.value:""]),"data-component":"SectionEight","data-attr":"section_8",onClick:u(v,["prevent"])},_(a.trans.section+" 8"),3),l("li",{class:p(["border border-gray-400 px-2 py-1 md:px-4 text-xs hover:cursor-pointer",n.value=="section_9"?m.value:""]),"data-component":"SectionNine","data-attr":"section_9",onClick:u(v,["prevent"])},_(a.trans.section+" 9"),3)])])]),content:O(()=>[(L(),U(W(w.value),{trans:a.trans,home:k.value,errors:e.errors,current_lang:a.current_lang,id:a.id,onSetData:z},null,40,["trans","home","errors","current_lang","id"]))]),footer:O(()=>[P(G,{onClick:u(y,["prevent"])},{default:O(()=>[R(_(a.trans.cancel),1)]),_:1}),P(J,{class:p(["ml-3",{"opacity-25":e.processing}]),disabled:e.processing,onClick:u(N,["prevent"])},{default:O(()=>[R(_(a.trans.submit),1)]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{ce 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.