PageSourceSearch

https://www.doc.govt.nz/static/doc-front-end/chunks/js/AbnActionCard.async-DDPQ1VVz.js

js doc.govt.nz collected 2026-09-24 08:27:23 UTC 2,338 bytes, 1 lines download raw bytes

1import{d as v,T as w,v as y,a as d,o as l,e as u,k as s,g as C,t as k,f as n,U as f,j as r,r as m,m as g,w as p,h as a,V as A,W as j,s as _,X as b,Y as I,n as L,Z as T}from"../../entry/js/main-DqXmKUqu.js";const N=["card-id"],S={class:"action-card-content__main flex flex-grow flex-col gap-4 p-4 lg:flex-row"},V={class:"area-a w-full lg:w-1/2"},z={key:0,class:"card-title mb-3 text-abn-off-black"},$={class:"area-b w-full lg:w-1/2"},U={class:"b-content ml-auto mr-auto flex h-full flex-col justify-between justify-self-center lg:w-[188px]"},O={class:"mb-2 lg:overflow-clip"},D={class:"area-b__buttons flex flex-col gap-1 sm:flex-row lg:mb-5 lg:flex-col"},E=s("div",{class:"h-[64px]"},null,-1),X=v({__name:"AbnActionCard.async",props:{cardId:{},cardTitle:{},tags:{},backgroundColour:{},contentButtonALabel:{},contentButtonACompleteLabel:{},contentButtonBLabel:{},contentButtonBUrl:{}},setup(h){const t=h,i=w(t.backgroundColour),o=y(!1),x=d(()=>o.value?t.contentButtonACompleteLabel:t.contentButtonALabel),B=()=>{o.value=!0},c=d(()=>Array.isArray(t.tags)?t.tags:typeof t.tags=="string"?t.tags.split(",").map(e=>e.trim()).filter(e=>e):[]);return(e,P)=>(l(),u("div",{class:L(["action-card mb-2 flex w-[288px] flex-col justify-self-center rounded-xl sm:w-[448px] md:min-h-[456px] md:max-w-[960px] lg:w-[960px]",a(i).bgClass.value]),style:T(a(i).bgStyle.value),"card-id":e.cardId},[s("div",S,[s("div",V,[e.cardTitle||c.value?(l(),u("div",z,[C(k(e.cardTitle)+" ",1),n(f,{tags:c.value,klass:"tag-area sm:w-full  justify-self-end overflow-hidden lg:hidden flex justify-end"},null,8,["tags"])])):r("",!0),m(e.$slots,"area-a")]),s("div",$,[n(f,{tags:c.value,klass:" tag-area mb-3 max-w-full justify-self-end overflow-hidden hidden lg:flex justify-end"},null,8,["tags"]),s("div",U,[s("div",O,[m(e.$slots,"area-b")]),s("div",D,[e.contentButtonALabel?(l(),g(b,{key:0,id:"AcCd_dothis_"+t.cardId,theme:"secondary",text:x.value,onClick:B},{"right-icon":p(()=>[n(a(_),{name:o.value?a(A):a(j),size:"abn"},null,8,["name"])]),_:1},8,["id","text"])):r("",!0),e.contentButtonBLabel?(l(),g(b,{key:1,id:"AcCd_more_"+t.cardId,class:"",as:"a",href:t.contentButtonBUrl,theme:"tertiary",text:e.contentButtonBLabel},{"right-icon":p(()=>[n(a(_),{name:a(I),size:"abn"},null,8,["name"])]),_:1},8,["id","href","text"])):r("",!0)])])])]),E],14,N))}});export{X 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.