PageSourceSearch

https://www.banabak.com/dist/gf-jss/static/js/IconwithCta.9e2ad556.chunk.js

js banabak.com collected 2026-10-10 00:35:15 UTC 2,764 bytes, 19 lines download raw bytes

1"use strict";(globalThis.webpackChunkgrowingfamilies=globalThis.webpackChunkgrowingfamilies||[]).push([[3566],{73457(e,t,n){n.r(t),n.d(t,{default:()=>f});var i=n(88094),l=n(39653),a=n(63856),o=n.n(a),r=n(48),s=n(3143),d=n(90984),u=n(56833);var c=n(54343);const v=n(25173).Ay.div.withConfig({shouldForwardProp:e=>!["position","link"].includes(e)})`
2  display: flex;
3  justify-content: ${e=>{let{position:t}=e;return t}};
4
5  ${e=>{let{position:t}=e;return"center"===t&&"margin: auto;"}}
6  ${e=>{let{position:t}=e;return"right"===t&&"margin: auto;text-align:right;display:block;"}}
7
8   img {
9    width: 130px;
10    height: 130px;
11    @media ${e=>{let{theme:t}=e;return t.device.mobileOnly}} {
12      width: 80px;
13      height: 80px;
14    }
15
16    cursor: ${e=>{let{link:t}=e;return t?"pointer":"default"}};
17    pointer-events: ${e=>{let{link:t}=e;return t?"auto":"none"}};
18  }
19`;var h=n(15678);const f=e=>{var t,n,a;let{fields:f}=e;const{pageEditing:g,route:p}=(0,r.i)(),{Link:m,Position:k,Event:x}=f||{},w="dynamic-analytics-token",_=null===f||void 0===f||null===(t=f.Link.value)||void 0===t?void 0:t.class,$=null===f||void 0===f||null===(n=f.Link.value)||void 0===n?void 0:n.href;var y,b;y=w,b=null===p||void 0===p?void 0:p.templateId,(0,i.useEffect)(()=>{const e=document.querySelectorAll(`[data-action-detail='${y}']`);if(e){let t=(0,d.JE)(d.ZF);b===u.yJ&&(t+=" - alternate_registration_flow"),e.forEach((n,i)=>e[i].dataset.actionDetail=t)}},[y]);const[C,A]=(0,i.useState)(!1);(0,i.useEffect)(()=>A(!0),[]);const D=(0,i.useMemo)(()=>{var e;const{value:{text:t,href:n}}=m||{value:{}};switch(null===x||void 0===x||null===(e=x.fields)||void 0===e?void 0:e.Setting.value){case"register":return{className:{internal:"event_profile_register",external:"event_outbound_link"},dataActionDetail:{internal:w,external:`${n||""}`}};case"login":return{className:{internal:"event_profile_login",external:"event_outbound_link"},dataActionDetail:{internal:w,external:`${n||""}`}};default:return{className:{internal:""!=n?"event_internal_link":"",external:""!=n?"event_outbound_link":""},dataActionDetail:{internal:`${t||""} - ${n||""}`,external:`${t||""} - ${n||""}`}}}},[m,x]),{className:E,dataActionDetail:N}=D||{};if(!g&&!f)return null;const j=()=>{window.location.href=$};return(0,h.jsx)(s.wn,{as:"div",children:(0,h.jsx)(s.mc,{"data-component":"IconwithCta-container",fullWidth:"always",children:(0,h.jsxs)(v,{position:null===k||void 0===k||null===(a=k.fields)||void 0===a?void 0:a.Setting.value,link:!!$,children:[g&&!f&&"No datasource",(0,h.jsx)(l._,{tabIndex:"0",field:null===f||void 0===f?void 0:f.Icon,"data-component":"iconwithCta",className:C?o()(_,(0,c.aX)($,E)):void 0,onClick:()=>j(),onKeyDown:e=>{13===e.keyCode&&j()},"data-action-detail":C&&(0,c.aX)($,N)})]})})})}}}]);

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.