PageSourceSearch

https://findahelpline.com/_next/static/chunks/pages/[host]/countri…/[subdivisionCode]-02995f2143558d3a.js

js findahelpline.com collected 2026-09-24 08:45:03 UTC 3,760 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7958],{18273:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(54066),o=n(77766),i=n(66232),u=n(52210);let c="function"==typeof(0,n(2605).n)(()=>window.document.createElement)?o.useLayoutEffect:o.useEffect;var a=n(69231),l=n(31721);let s=function(e,t){var n;let s,m,f=(n=t?.client,s=o.useContext((0,l.l)()),m=n||s.client,(0,a.V1)(!!m,28),m),[v,p]=o.useState(()=>d(f)),b=o.useRef({result:v,mutationId:0,isMounted:!0,client:f,mutation:e,options:t});c(()=>{Object.assign(b.current,{client:f,options:t,mutation:e})});let h=o.useCallback((e={})=>{let{options:t,mutation:n}=b.current,o={...t,mutation:n},c=e.client||b.current.client,a="function"==typeof e.context?e.context(t?.context):e.context;!b.current.result.loading&&b.current.isMounted&&p(b.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:c});let l=++b.current.mutationId,s=(0,i.l)(o,{...e,context:a});return(0,u.X)(c.mutate(s).then(t=>{let{data:n,error:o}=t,i=e.onError||b.current.options?.onError;if(o&&i&&i(o,s),l===b.current.mutationId){let e={called:!0,loading:!1,data:n,error:o,client:c};b.current.isMounted&&!(0,r.L)(b.current.result,e)&&p(b.current.result=e)}let u=e.onCompleted||b.current.options?.onCompleted;return o||u?.(t.data,s),t},t=>{if(l===b.current.mutationId&&b.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:c};(0,r.L)(b.current.result,e)||p(b.current.result=e)}let n=e.onError||b.current.options?.onError;throw n&&n(t,s),t}))},[]),C=o.useCallback(()=>{if(b.current.isMounted){let e=d(b.current.client);Object.assign(b.current,{mutationId:0,result:e}),p(e)}},[]);return o.useEffect(()=>{let e=b.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[h,{reset:C,...v}]};function d(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}},28759:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(57949),o=n(77766);let i=()=>{var e;let t=null==(e=(0,r.useRouter)().query)?void 0:e.topics;return(0,o.useMemo)(()=>[t].flat().filter(e=>e).map(e=>{let[t,...n]=e;return[t.toUpperCase(),...n].join("")}),[t])}},28994:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[host]/countries/[countryCode]/[subdivisionCode]",function(){return n(41297)}])},41297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>v,default:()=>p});var r=n(49222),o=n(18273),i=n(59915),u=n(19270),c=n(77766),a=n(48676),l=n(10873),s=n(53484),d=n(94963),m=n(28759);let f=(0,n(83357).J)("\n    mutation SubdivisionCodePageView($input: CountrySubdivisionIncrementCountMutationInput!) {\n        countrySubdivisionIncrementCount(input: $input) {\n            subdivision {\n                id\n            }\n        }\n    }\n");var v=!0;let p=e=>{let{searchResults:t,noResults:n=!1}=e,{t:v}=(0,i.Bd)(),{country:p,subdivision:b,heading:h}=(0,l.HZ)(),C=(0,m.A)(),N=h?h.title:v("{{subdivisionName}}, {{countryName}} helplines and hotlines",{subdivisionName:b.localizedName,countryName:p.localizedName,context:"Placeholder values will be in nominative case. {{subdivisionName}} is the name of a region inside {{countryName}}."}),[_]=(0,o.n)(f);return(0,c.useEffect)(()=>{_({variables:{input:{countryCode:p.code,code:b.code}}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.bV,{title:N,canonical:"https://findahelpline.com/countries/".concat(p.code.toLocaleLowerCase(),"/").concat(b.code.toLocaleLowerCase()),noindex:n}),(0,r.jsx)(a.A,{footer:!0,children:(0,r.jsx)(s.Ay,{countryName:p.name,subdivisionName:b.name,initialTopics:C,ruleContexts:["webapp"],limit:100,initialData:C.length>0?void 0:t,children:(0,r.jsx)(d.A,{countryName:p.name,heading:null==h?void 0:h.heading})})})]})}}},e=>{e.O(0,[8418,5439,9661,3363,2982,5562,719,3180,8676,1757,4057,3769,6917,4963,636,6593,8792],()=>e(e.s=28994)),_N_E=e.O()}]);

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.