PageSourceSearch

https://app.kargoentegrator.com/build/assets/DefaultBarcode-DH29ZJc8.js

js kargoentegrator.com collected 2026-10-02 03:54:27 UTC 6,527 bytes, 1 lines download raw bytes

1import{_ as U,a as G,b as B}from"./DefaultCargoCompany-CcHCeZNT.js";import{_}from"./DefaultNameModify-B-odTCe0.js";import{_ as f}from"./DefaultHideShow-CptTXohX.js";import{_ as $}from"./PrimaryButton-zWC0Uvmt.js";import{T as S,j as V,f as i,o as r,a as y,c as s,g as o,w as n,u as l,d as m,F as p,b as u,m as A}from"./app-BlQ0mvsC.js";import{_ as b}from"./CardLayout-Dc2qKDOC.js";import{_ as N}from"./MdrToggle-Cn4skzOv.js";import"./MdrTooltip-BFpgeSSj.js";import"./BaseButton-BBZqab5B.js";import"./alert-DNM9Vihs.js";const C={class:"flex items-center gap-4"},E={class:"text-sm text-slate-500 mt-2"},F={key:0,class:"flex px-4 py-5 gap-8 w-full flex-wrap sm:flex-nowrap"},Y={class:"flex flex-col gap-5 w-full sm:w-1/2"},j={class:"w-full sm:w-1/2 grid grid-cols-2 gap-6"},K={key:1,class:"flex justify-start"},T=["src"],Q={__name:"DefaultBarcode",props:{integration:{type:Object,required:!0}},setup(v){const c=v,a=S(c.integration.print_settings?c.integration.print_settings:{active:!1,style:"default",cargo_company:"text",customer_fullname:"show",sender_fullname:"show",product_name:"show",sender:"show",email:"show",note:"hide",product_img:"hide",description:"hide",platform_d_id:"hide",barcode_type:"C128",desi:"hide"}),k=[{style:"default",desc:"Varsayılan A5 barkod tasarımıdır.",name:"Varsayılan",customize:[],customable:!1},{style:"waybill",desc:"Gönderi içerisindeki ürünlerin listesinin yer aldığı barkod tasarımıdır.",name:"İrsaliyeli tasarım",customize:["platform_d_id","cargo_company","note","customer_fullname","email","product_name","product_img","description","barcode_type","sender_fullname","sender"],customable:!0},{style:"yurtici",desc:"Yatay barkod yazıcıları için uygun barkod tasarımı. Yurtiçi kargo kullanıcıları için önerilen tasarımdır.",name:"Tek barkod tasarımı",customize:["platform_d_id","customer_fullname","barcode_type","desi"],customable:!0},{style:"square",desc:"Zebra gibi kare barkod yazıcıları için uygun, yüksekliği ve genişliği eşit barkod yapısıdır.",name:"Kare barkod tasarımı",customize:["platform_d_id","customer_fullname","barcode_type","product_name","desi"],customable:!0}],z=()=>{a.post(route("cargo.print-settings.update",c.integration.id),{preserveScroll:!0})},d=V(()=>k.find(g=>a.style===g.style)),x=()=>{a.post(route("cargo.print-settings.update",c.integration.id),{preserveScroll:!0})},w=V(()=>route("preview-barcode",{...a.data(),company_id:c.integration.company_id,create_fake:1,shipments:[]}));return(g,e)=>(r(),i(p,null,[y(b,null,{title:n(()=>[m("div",C,[e[13]||(e[13]=m("h2",{class:"text-lg font-semibold"},"Yazdırma Ayarı",-1)),y(N,{modelValue:l(a).active,"onUpdate:modelValue":[e[0]||(e[0]=t=>l(a).active=t),x]},null,8,["modelValue"])])]),description:n(()=>[e[16]||(e[16]=m("p",{class:"text-sm text-slate-500"}," Kargo entegrasyonuna özel yazdırma ayarıdır. Eğer birden fazla entegrasyon kullanıyorsanız barkod tasarımınızı buradan düzenleyebilirsiniz. ",-1)),m("p",E,[l(a).active?(r(),i(p,{key:0},[u(" Bu ayar açık olduğu için bu hesaptan alınan barkodlarda ")],64)):(r(),i(p,{key:1},[u(" Bu ayar kapalı olduğu için bu hesapta ")],64)),y(l(A),{href:g.route("print-settings.edit"),class:"text-primary-700 underline font-medium"},{default:n(()=>[...e[14]||(e[14]=[u(" Barkod Yazdırma Ayarları ",-1)])]),_:1},8,["href"]),e[15]||(e[15]=u(" sayfasındaki ayarlar ",-1)),l(a).active?(r(),i(p,{key:2},[u("geçerli değildir.")],64)):(r(),i(p,{key:3},[u("geçerlidir.")],64))])]),default:n(()=>[l(a).active?(r(),i("div",F,[m("div",Y,[y(U,{barcodes:k,modelValue:l(a).style,"onUpdate:modelValue":e[1]||(e[1]=t=>l(a).style=t),customExists:!1},null,8,["modelValue"])]),m("div",j,[d.value.customable?(r(),i(p,{key:0},[d.value.customize.includes("barcode_type")?(r(),s(G,{key:0,header:"Barkod tipi",modelValue:l(a).barcode_type,"onUpdate:modelValue":e[2]||(e[2]=t=>l(a).barcode_type=t)},null,8,["modelValue"])):o("",!0),d.value.customize.includes("cargo_company")?(r(),s(B,{key:1,header:"Firma Bilgisi",modelValue:l(a).cargo_company,"onUpdate:modelValue":e[3]||(e[3]=t=>l(a).cargo_company=t)},null,8,["modelValue"])):o("",!0),d.value.customize.includes("customer_fullname")?(r(),s(_,{key:2,header:"Müşteri Adı",modelValue:l(a).customer_fullname,"onUpdate:modelValue":e[4]||(e[4]=t=>l(a).customer_fullname=t),radioGroup:"customer_fullname"},null,8,["modelValue"])):o("",!0),d.value.customize.includes("email")?(r(),s(_,{key:3,header:"Müşteri E-posta",modelValue:l(a).email,"onUpdate:modelValue":e[5]||(e[5]=t=>l(a).email=t),radioGroup:"email"},null,8,["modelValue"])):o("",!0),d.value.customize.includes("platform_d_id")?(r(),s(f,{key:4,header:"Sipariş Numarası",radioGroup:"platform_d_id",modelValue:l(a).platform_d_id,"onUpdate:modelValue":e[6]||(e[6]=t=>l(a).platform_d_id=t)},null,8,["modelValue"])):o("",!0),d.value.customize.includes("note")?(r(),s(f,{key:5,header:"Sipariş Notu",radioGroup:"note",modelValue:l(a).note,"onUpdate:modelValue":e[7]||
1(e[7]=t=>l(a).note=t)},null,8,["modelValue"])):o("",!0),d.value.customize.includes("desi")?(r(),s(f,{key:6,header:"Desi",radioGroup:"desi",modelValue:l(a).desi,"onUpdate:modelValue":e[8]||(e[8]=t=>l(a).desi=t)},null,8,["modelValue"])):o("",!0),d.value.customize.includes("sender_fullname")?(r(),s(_,{key:7,header:"Gönderici Adı",modelValue:l(a).sender_fullname,"onUpdate:modelValue":e[9]||(e[9]=t=>l(a).sender_fullname=t),radioGroup:"sender_fullname"},null,8,["modelValue"])):o("",!0),d.value.customize.includes("sender")?(r(),s(f,{key:8,header:"Gönderici",modelValue:l(a).sender,"onUpdate:modelValue":e[10]||(e[10]=t=>l(a).sender=t),radioGroup:"sender"},null,8,["modelValue"])):o("",!0),d.value.customize.includes("product_name")?(r(),s(_,{key:9,header:"Ürün Adı",modelValue:l(a).product_name,"onUpdate:modelValue":e[11]||(e[11]=t=>l(a).product_name=t),radioGroup:"product_name"},null,8,["modelValue"])):o("",!0),d.value.customize.includes("product_img")?(r(),s(f,{key:10,header:"Ürün Fotoğrafı",modelValue:l(a).product_img,"onUpdate:modelValue":e[12]||(e[12]=t=>l(a).product_img=t),radioGroup:"product_img"},null,8,["modelValue"])):o("",!0)],64)):o("",!0)])])):o("",!0),l(a).active?(r(),i("div",K,[y($,{onClick:z,disabled:l(a).processing},{default:n(()=>[...e[17]||(e[17]=[u(" Kaydet ",-1)])]),_:1},8,["disabled"])])):o("",!0)]),_:1}),l(a).active?(r(),s(b,{key:0},{title:n(()=>[...e[18]||(e[18]=[u(" Önizleme ",-1)])]),default:n(()=>[m("iframe",{src:w.value,class:"w-full h-[600px]"},null,8,T)]),_:1})):o("",!0)],64))}};export{Q 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.