PageSourceSearch

https://panel.whogohost.com/_nuxt/MX15UyKl.js

js whogohost.com collected 2026-09-25 19:42:01 UTC 3,472 bytes, 1 lines download raw bytes

1import{_ as A}from"./DvQu0rPC.js";import{ba as N,bH as T,bI as j,cx as F,U as O,f as p,j as v,w as n,n as x,q as r,t as l,k as s,aX as W,g as I,F as z,D as E,ay as R,aA as $,aB as U,r as y,s as q,h as P,a3 as H,M as m}from"./Be4KCvjK.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new i.Error().stack;u&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[u]="178c5c40-5de2-4635-8ec6-18c22efb4cb3",i._sentryDebugIdIdentifier="sentry-dbid-178c5c40-5de2-4635-8ec6-18c22efb4cb3")}catch{}})();const M={class:"text-subtitle-2 mb-6"},X={key:0,class:"d-flex justify-end mt-2"},G=N({__name:"DomainWarranty",emits:["initiateOrder"],setup(i,{emit:u}){const _=u,a=T(),f=j(),g=F(),k=m(()=>({taxlessPrices:!!g.taxSettings?.taxlessPrices,taxRate:Number(g.taxSettings?.taxRate??g.taxSettings?.rate??0)||0})),w=e=>{const t=a.domainAddons?.config?.IDprotection;if(!t)return"ID Protection";const d="."+String(e?.domain||"").split(".").slice(1).join(".");return t.variantEnabled&&t.variantTLDs?.includes(d)?t.variant?.rename||t.rename||"ID Protection":t.rename||"ID Protection"},S=e=>{const t=parseFloat(String(a.domainAddons?.addons?.IDprotection??0))||0,d=Number(e?.regPeriod||1);return t*d},c=m(()=>f.domains.filter(e=>(e.addons?.idprotection===1||e.addons?.idprotection===!0)&&!e.IDprotection).map(e=>({...e,protectionLabel:w(e),protectionPrice:S(e)}))),D=m(()=>{const e=Array.from(new Set(c.value.map(t=>t.protectionLabel).filter(Boolean)));return e.length===1&&e[0]||"domain protection addon"}),h=m(()=>`We suggest adding ${D.value}`),L=e=>{f.updateDomain(e.domain,{IDprotection:!0})},b=()=>{a.warrantyDialog=!1,_("initiateOrder")},V=()=>{for(const e of c.value)f.updateDomain(e.domain,{IDprotection:!0});b()},B=()=>{a.warrantyRejected=!0,b()};return O(()=>[a.warrantyDialog,c.value.length],([e,t])=>{e&&t===0&&b()}),(e,t)=>{const d=A,C=H;return p(),v(C,{modelValue:P(a).warrantyDialog,"onUpdate:modelValue":t[0]||(t[0]=o=>P(a).warrantyDialog=o),"max-width":"700",persistent:"",title:h.value,icon:"$shieldIcon","icon-color":"primary-dark","show-close":!1},{footer:n(()=>[s(y,{color:"secondaryButtons",variant:"outlined","min-width":"80",onClick:B},{default:n(()=>[...t[4]||(t[4]=[r(" No Thanks ",-1)])]),_:1})]),default:n(()=>[x("p",M,[t[1]||(t[1]=r(" Some of your domains don't have ",-1)),x("strong",null,l(D.value),1),t[2]||(t[2]=r(" enabled. ",-1))]),s(W,{density:"compact","bg-color":"transparent",class:"pa-0"},{default:n(()=>[(p(!0),I(z,null,E(c.value,o=>(p(),v(R,{key:o.domain,class:"py-2 px-4 border-thin rounded-lg mb-2"},{append:n(()=>[s(y,{size:"small",color:"primaryButtons",variant:"tonal",onClick:J=>L(o)},{default:n(()=>[r(" Add "+l(o.protectionLabel),1)]),_:2},1032,["onClick"])]),default:n(()=>[s($,{class:"text-body-2"},{default:n(()=>[r(l(o.domain),1)]),_:2},1024),s(U,{class:"text-caption opacity-80"},{default:n(()=>[r(l(o.protectionLabel)+" for "+l(o.regPeriod||1)+" "+l(Number(o.regPeriod||1)===1?"year":"years")+" - ",1),s(d,{size:"body-2",value:o.protectionPrice,"tax-config":k.value},null,8,["value","tax-config"])]),_:2},1024)]),_:2},1024))),128))]),_:1}),c.value.length>1?(p(),I("div",X,[s(y,{color:"primaryButtons",variant:"flat",size:"small",onClick:V},{default:n(()=>[...t[3]||(t[3]=[r(" Apply to all domains ? ",-1)])]),_:1})])):q("",!0)]),_:1},8,["modelValue","title"])}}}),Y=Object.assign(G,{__name:"CheckoutDialogsDomainWarranty"});export{Y 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.