PageSourceSearch

https://app.kargoentegrator.com/build/assets/AddPartnerWhatsapp-CDRGVm1K.js

js kargoentegrator.com collected 2026-10-02 03:54:43 UTC 3,030 bytes, 1 lines download raw bytes

1import{_ as z}from"./MdrModal-CMOQ5_DP.js";import{_ as y}from"./MdrCheckboxField-mIZPGm62.js";import{_ as A}from"./PrimaryButton-zWC0Uvmt.js";import{_ as w}from"./SecondaryButton-CN0sVJ8S.js";import{r as _,N as V,T as W,e as E,f as u,o as l,c as h,g,a as d,u as a,w as n,b as i,d as t,t as c,F as H}from"./app-BlQ0mvsC.js";import"./BaseButton-BBZqab5B.js";import"./alert-DNM9Vihs.js";const $={class:"flex flex-col gap-5 px-4 pb-4"},C={key:0,class:"flex items-start gap-2 p-4 text-sm border rounded-lg bg-amber-50 border-amber-300 text-amber-900"},K=["href"],N={class:"text-sm"},S=["innerHTML"],T={class:"flex flex-col gap-2"},B={key:0,class:"text-sm text-red-600"},M={class:"flex justify-center mt-4"},q={__name:"AddPartnerWhatsapp",setup(j){const s=_(!1),m=_(!1),{notificationIntegrations:v,whatsappContract:b,brandSettings:p}=V.page.props,o=W({name:"Kargo Entegratör WhatsApp Hizmeti",service_id:"partner_whatsapp",type:"whatsapp",api_settings:{}}),k=()=>{o.post(route("notification.store"),{onSuccess:()=>{location.reload()}})};return(f,e)=>{const x=E("exclamation-triangle-icon");return l(),u(H,null,[a(v).map(r=>r.service_id).includes("partner_whatsapp")?g("",!0):(l(),h(w,{key:0,onClick:e[0]||(e[0]=r=>s.value=!s.value)},{default:n(()=>[...e[4]||(e[4]=[i(" WhatsApp Hizmetini Hemen Aktif Et ",-1)])]),_:1})),d(z,{modelValue:s.value,"onUpdate:modelValue":e[3]||(e[3]=r=>s.value=r),size:"w-full max-w-2xl"},{title:n(()=>[...e[5]||(e[5]=[t("h1",null,"Kargo Entegratör WhatsApp Hizmeti Sözleşmesi",-1)])]),default:n(()=>[t("div",$,[a(p)?g("",!0):(l(),u("div",C,[d(x,{class:"w-5 h-5 shrink-0"}),t("span",null,[e[6]||(e[6]=i(" WhatsApp hizmetini aktifleştirmeden önce ",-1)),t("a",{href:f.route("brand.edit"),class:"font-semibold underline"},"marka ayarlarınızı",8,K),e[7]||(e[7]=i(" tamamlamalısınız. ",-1))])])),t("div",N,[e[8]||(e[8]=i(" WhatsApp bildirimlerinizi kendi Meta uygulamanızı kurmadan göndermek için Kargo Entegratör'ün WhatsApp hizmetini kullanabilirsiniz. ",-1)),t("strong",null," 1 mesaj ücreti "+c(f.$page.props.localizeData.partnerWhatsappAmount)+" TL ",1),e[9]||(e[9]=i(" 'dir. Gönderici numarası Kargo Entegratör'e ait olacaktır. Mesaj şablonları Kargo Entegratör tarafından tanımlanır ve değiştirilemez; içeriklerini bilgilendirme ayarlarınızdan görüntüleyebilirsiniz. ",-1))]),t("div",{class:"bg-gray-50 rounded h-96 overflow-auto p-2",innerHTML:a(b)},null,8,S),t("div",T,[d(y,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=r=>m.value=r),disabled:!a(p)},{label:n(()=>[...e[10]||(e[10]=[t("strong",null," Kargo Entegratör WhatsApp Hizmeti Sözleşmesini ",-1),i(" okudum, anladım, onaylıyorum. ",-1)])]),_:1},8,["modelValue","disabled"]),a(o).errors.service_id?(l(),u("div",B,c(a(o).errors.service_id),1)):g("",!0),t("div",M,[d(A,{disabled:!m.value||!a(p),loading:a(o).processing,onClick:e[2]||(e[2]=r=>k())},{default:n(()=>[...e[11]||(e[11]=[i("Aktifleştir",-1)])]),_:1},8,["disabled","loading"])])])])]),_:1},8,["modelValue"])],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.