1import"./chunk-7UZYWCAJ.js";import{c as O,d as h,g as r,i as w,j as a,k as S}from"./chunk-OCAOS45R.js";import{b as H,g as J,i as K}from"./chunk-IDR3WXHB.js";import{b as $,c as q,d as B,g as G}from"./chunk-XTVRUF3H.js";import"./chunk-6YT4DBB3.js";import"./chunk-OOFWHVGZ.js";import{v as X}from"./chunk-3EJH3FIC.js";import{Bb as f,Ca as d,Fa as U,Hb as N,Hc as u,Kc as p,Mc as R,Wc as C,Yb as V,_b as z,dc as m,ec as s,fc as o,gc as g,hb as k,hc as I,ia as x,ic as A,jc as L,kc as j,lb as n,lc as F,oc as _,qa as b,ra as v,rb as P,sa as M,tc as y,va as D,vc as l}from"./chunk-XGY6NSAN.js";import{g as T}from"./chunk-GAL4ENT6.js";var Q=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=f({type:i,selectors:[["adk-icon-check"],["","adk-icon-check",""]],hostAttrs:[1,"icon","icon--check"],decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32","fill","none"],[1,"check"],["stroke","currentColor","stroke-width","1.5","d","M7 11.9007L16.8813 22L27 6",1,"stroke-thick"]],template:function(t,c){t&1&&(M(),I(0,"svg",0)(1,"g",1),L(2,"path",2),A()())},encapsulation:2})}}return i})();function Y(i,E){if(i&1){let e=_();s(0,"ul",6)(1,"li",7)(2,"a",8),p(3,"Facebook"),o()(),s(4,"li",7)(5,"a",8),p(6,"E-Mail"),o()(),s(7,"li",9)(8,"button",10),y("click",function(){b(e);let c=l(2);return v(c.copyLink())}),p(9),o(),g(10,"adk-icon-check",11),o()()}if(i&2){let e=l().$implicit,t=l();m("@listAnimationTrigger",void 0),n(2),m("href",C("https://www.facebook.com/sharer/sharer.php?u=",t.absoluteUrl()),k),n(3),m("href",C("mailto:?subject=I wanted you to see this site&body=Check out this site ",t.absoluteUrl()),k),n(3),u("!bg-green-yellow",t.copied()),n(),R(" ",e("buttons.copy-link")," "),n(),u("visible",t.copied())("invisible",!t.copied())}}function Z(i,E){if(i&1){let e=_();j(0),g(1,"div",1),s(2,"div",2)(3,"button",3),y("click",function(){b(e);let c=l();return v(c.toggleShare())}),s(4,"span",4),p(5,"+"),o(),g(6,"span",5),o(),V(7,Y,11,12,"ul",6),o(),F()}if(i&2){let e=E.$implicit,t=l();n(4),u("rotate-45",t.showShare())("scale-110",t.showShare()),n(2),m("innerText",e("buttons.share-page")),n(),z(t.showShare()?7:-1)}}var pe=(()=>{class i{#e;#t;#i;constructor(){this.#e=x(D),this.#t=x(G),this.#i=H(this.#t.events),this.absoluteUrl=d(""),this.showShare=d(!1),this.copied=d(!1),U(()=>{let e=this.#i();(e instanceof $||e instanceof B)&&this.toggleShare(!1),e instanceof q&&this.absoluteUrl.set(this.#e.location.href)}),P(()=>{this.absoluteUrl.set(this.#e.location.href)})}toggleShare(e=!this.showShare()){this.showShare.set(e)}copyLink(){return T(this,null,function*(){try{yield navigator.clipboard.writeText(this.absoluteUrl()),this.copied.set(!0),setTimeout(()=>{this.copied.set(!1)},2e3)}catch(e){console.error(e)}})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=f({type:i,selectors:[["adk-share-page"]],hostAttrs:[1,"block","min-h-[35svh]","relative","mt-16","p-4","text-center","text-lg-a11y","md:text-lg-a11y","lg:mt-20","lg:p-8","xl:p-16","2xl:text-xl-a11y"],decls:1,vars:0,consts:[[4,"transloco"],["aria-hidden","true",1,"skin-fade","skin-fade--top","absolute","inset-0"],[1,"sticky","top-1/2","mb-[9rem]","inline-block","supports-[top:50svh]:top-[50svh]"],[1,"relative","inline-block","px-[1em]","py-2","!text-left","!leading-tight","transition-all","duration-150","ease-smooth","hover:text-skin-link-inspect",3,"click"],["aria-hidden","true",1,"absolute","left-0","top-1/2","inline-block","-translate-y-1/2","!leading-none","transition-transform"],[3,"innerText"],[1,"absolute","left-0","top-full","whitespace-nowrap","px-[1em]","text-left"],[1,"my-2"],["target","_blank","rel","noopener noreferrer",1,"navlink","inline-block","!text-left","!leading-tight",3,"href"],[1,"my-2","flex","items-center","justify-between"],["id","copy-link",1,"navlink","!leading-tight",3,"click"],["aria-hidden","true",1,"ml-2"]],template:function(t,c){t&1&&N(0,Z,8,6,"ng-container",0)},dependencies:[X,K,J,Q],encapsulation:2,data:{animation:[O("listAnimationTrigger",[w(":enter",[a(":self",r({height:0})),a("li",r({opacity:0,transform:"translateX(-1rem)"})),a(":self",h("300ms cubic-bezier(0.645, 0.045, 0.355, 1)",r({height:"*"}))),a("li",S("150ms",[h("300ms cubic-bezier(0.645, 0.045, 0.355, 1)",r({opacity:1,transform:"translateX(0)"}))]))]),w(":leave",[a("li",S("150ms",[h("300ms cubic-bezier(0.645, 0.045, 0.355, 1)",r({opacity:0,transform:"translateX(1rem)"}))])),a(":self",h("300ms cubic-bezier(0.645, 0.045, 0.355, 1)",r({height:0})))])])]},changeDetection:0})}}return i})();export{pe as SharePageComponent};
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.