PageSourceSearch

https://www.claropar.com.br/_next/static/chunks/8494.fbbb0f7735934398.js

js claropar.com.br collected 2026-10-07 22:50:24 UTC 2,488 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8494],{18494:(e,a,l)=>{l.r(a),l.d(a,{default:()=>i});var t=l(37876),n=l(14232),s=l(4270),c=l(82845),o=l(72229);let i=e=>{var a,l;let{data:i}=(0,s.A)("/cities.json"),r=window.localStorage.getItem("catalogCity"),[d,u]=(0,n.useState)((null==r?void 0:r.split("-").slice(-1)[0])||"SP"),[m]=(0,n.useState)(r||"s\xe3o-paulo-SP"),p=(null==i?void 0:i.reduce((e,a)=>{let l=e&&(null==e?void 0:e.find(e=>e.uf===a.uf));return l?l.options.push({name:"".concat(a.name,"/").concat(a.uf),value:a.slug}):e.push({uf:a.uf,label:a.uf,options:[{name:"".concat(a.name,"/").concat(a.uf),value:a.slug}]}),e},[]))||null,v=(null==p?void 0:p.map(e=>({name:e.uf,value:e.uf})))||null,h=(0,n.useRef)(null);if(!e)return null;let j=(0,t.jsxs)("table",{className:"cms-CatalogVariables-table",children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:"Variavel"}),(0,t.jsx)("th",{children:"Valor"})]}),(0,t.jsxs)("tbody",{children:[null==(a=Object.keys(e))?void 0:a.map(a=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{className:"cms-Variable-name",onClick:()=>(e=>{alert("Vari\xe1vel: {{".concat(e,"}} copiada para \xe1rea de transfer\xeancia!")),h.current&&(h.current.value="{{".concat(e,"}}"),h.current.select(),document.execCommand("copy"))})(a),children:["{{".concat(a,"}}"),(0,t.jsx)("span",{className:"mdn-Icon-quadrados-copiar mdn-Icon--sm",title:"Clique para copiar a vari\xe1vel {{".concat(a,"}}")})]}),(0,t.jsx)("td",{children:String(e[a])})]},a)),(0,t.jsx)("input",{ref:h,value:null==h||null==(l=h.current)?void 0:l.value,className:"cms-Hidden-copy-input"})]})]});return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("section",{className:"sectionComponent editMode RichSnippets--Accordion cms-Accordion cms-spacing-top--md",children:[p&&(0,t.jsxs)("div",{className:"mdn-Container",children:[(0,t.jsx)(o.uH.Select,{id:"estado",label:"Estado",options:v.sort((e,a)=>e.name.localeCompare(a.name)),native:!0,selectProps:{onChange:e=>{u(e.target.value)}},defaultValue:d}),(0,t.jsx)(o.uH.Select,{id:"cidade",label:"Cidade",options:null==p?void 0:p.filter(e=>{let{uf:a}=e;return a.toLowerCase()===d.toLowerCase()}),native:!0,defaultValue:m,selectProps:{onChange:e=>{window.localStorage.setItem("catalogCity",e.target.value),window.location.reload()}}})]}),!c.Ay.isEmptyObject(e)&&(0,t.jsx)("div",{className:"mdn-Container cms-spacing-top--md",children:(0,t.jsx)(o.j$.Accordion,{data:[{isOpen:!0,title:"Vari\xe1veis Catalogos",content:j}]})})]})})}}}]);

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.