1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7167,7571],{7167:(e,t,n)=>{"use strict";n.d(t,{D3:()=>l,JC:()=>c,Ri:()=>s,TV:()=>o,U9:()=>d,bH:()=>m,c9:()=>a,submitClue:()=>u,up:()=>r});let i="https://static.to8to.com/gb_js/landing-utils.min.js?v=1.0.3",c="https://img.to8to.com/to8to_img/zxbj/pc_default_qrcode.png?20220324";function l(){return window.LandingUtils?Promise.resolve(window.LandingUtils):new Promise((e,t)=>{let n=document.querySelector('script[src="'.concat(i,'"]'));n||((n=document.createElement("script")).src=i,document.head.appendChild(n)),n.addEventListener("load",()=>e(window.LandingUtils)),n.addEventListener("error",()=>t(Error("landing-utils load failed")))})}function s(e){let t=document.cookie.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):""}function o(e,t,n,i){let c="";if(n){let e=new Date;e.setTime(e.getTime()+n),c="; expires="+e.toUTCString()}document.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+(i?"; domain=".concat(i):"")}function r(e){let t=String(Math.floor(e/1e4*10)/10);return -1!==t.indexOf(".")?t:t+".0"}async function a(e){try{let t=await fetch("https://apigw.to8to.com/cgi/views/assign/getContactWay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();return n&&n.result&&n.result.qrCode||""}catch(e){return""}}async function d(e){try{let t=await fetch("https://apigw.to8to.com/cgi/cls/clue/offer",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,calcDetail:1})}),n=await t.json();return(null==n?void 0:n.result)||{}}catch(e){return{}}}async function u(e){let t=await l(),n=e.buildData?e.buildData(t,e.data):e.data;new t.ClueUtils({customCommonParams:e.customCommonParams}).submitClueInfo({data:n,callback:e.callback})}async function m(e){new(await l()).ClueUtils({customCommonParams:e.customCommonParams}).updateClueInfo({data:e.data,callback:e.callback})}},30695:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(95155),c=n(12115);n(41320);let l=null;async function s(e){try{var t;let n=new URLSearchParams;n.append("args",JSON.stringify({searchDTO:{townIdList:[e]}}));let i=await fetch("https://apigw.to8to.com/cgi/v2/areaRelationship/getByBusinessDistrict",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString()}),c=await i.json(),l=null==c||null==(t=c.result)?void 0:t[0];if((null==c?void 0:c.status)===200&&(null==l?void 0:l.standardCityName))return{prov:l.standardProvinceName||"",city:String(l.standardCityName).replace(/å¸$/,"")};return null}catch(e){return console.error("[DistrictSelect] é¢å¡«åå¸å¤±è´¥:",e),null}}function o(e){var t,n,o;let{onChange:r,defaultValue:a,needDefault:d=!0,invalid:u=!1,placeholder:m="è¯·éæ©æ¨çåå¸",className:h,disabled:v=!1}=e,[p,f]=(0,c.useState)(null),[w,x]=(0,c.useState)((null==a?void 0:a.province)||""),[y,j]=(0,c.useState)((null==a?void 0:a.city)||""),[g,N]=(0,c.useState)((null==a?void 0:a.town)||""),[C,b]=(0,c.useState)(!1),[E,S]=(0,c.useState)(""),[k,T]=(0,c.useState)(""),[q,P]=(0,c.useState)(""),U=(0,c.useRef)(!1),L=(0,c.useRef)(null);function R(e){var t;let n=null==p||null==(t=p.cities)?void 0:t[e];return n&&n[0]?n[0]:""}function D(e,t){var n,i;let c=null==p||null==(i=p.towns)||null==(n=i[e])?void 0:n[t];return c&&c[0]?c[0]:""}function O(){if(v)return;if(C)return void b(!1);if(!p||0===p.provinces.length)return;let e=w||p.provinces[0],t=y||R(e);S(e),T(t),P(g||D(e,t)),b(!0)}(0,c.useEffect)(()=>{let e=!1;return(!l&&(l=fetch("https://pic.to8to.com/ts/districtTree/standardAndBusinessProvinceCityTownTree.json").then(e=>e.json()).then(e=>(function(e){let t=[],n={},i={},c={},l=null==e?void 0:e.data;if(!l||!Array.isArray(l))throw Error("çå¸åºæ°æ®æ ¼å¼ä¸æ£ç¡®");return l.forEach(e=>{if(1!==e.level)return;let l=e.shortName||e.name,s=(e.jianpin||"").toUpperCase();t.push(l),c[l]=s,n[l]=[],i[l]={},(e.children||[]).forEach(e=>{if(2!==e.level)return;let t=e.shortName||e.name;n[l].push(t),i[l][t]=[],(e.children||[]).forEach(e=>{3===e.level&&i[l][t].push(e.name)})})}),t.sort((e,t)=>(c[e]||e).localeCompare(c[t]||t)),{provinces:t,cities:n,towns:i,symbols:c}})(e)).catch(e=>(console.error("[DistrictSelect] çå¸åºæ°æ®å 载失败:",e),{provinces:[],cities:{},towns:{},symbols:{}}))),l).then(t=>{var n;!e&&(f(t),(null==a?void 0:a.province)&&(null==a?void 0:a.city)&&!(null==(n=t.cities[a.province])?void 0:n.includes(a.city))&&(x(""),j(""),N("")))}),()=>{e=!0}},[]),(0,c.useEffect)(()=>
1{if(!d||U.current||(null==a?void 0:a.province)||!p)return;let e=function(e){let t=document.cookie.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):""}("to8to_townid");e&&(U.current=!0,s(e).then(e=>{var t;if(!e)return;let n=p.provinces.find(t=>e.prov.includes(t)||t.includes(e.prov));if(!n)return;let i=null==(t=p.cities[n])?void 0:t.find(t=>t===e.city||e.city.includes(t));x(n),j(i||""),N(""),i&&(null==r||r({province:n,city:i,town:""}))}))},[d,p,null==a?void 0:a.province,r]),(0,c.useEffect)(()=>{if(C)return document.addEventListener("click",e),window.addEventListener("scroll",t),()=>{document.removeEventListener("click",e),window.removeEventListener("scroll",t)};function e(e){L.current&&!L.current.contains(e.target)&&b(!1)}function t(){b(!1)}},[C]),(0,c.useEffect)(()=>{if(!C||!L.current)return;let e=setTimeout(()=>{var e;null==(e=L.current)||e.querySelectorAll(".district-province .on, .district-city .on, .district-town .on").forEach(e=>{let t=e.closest("ul");t&&t.scrollHeight>t.clientHeight&&(t.scrollTop=Math.max(0,e.offsetTop-t.clientHeight/2))})},60);return()=>clearTimeout(e)},[C,E,k,q]);let _=[w,y,g].filter(Boolean).join(" ");return(0,i.jsxs)("div",{ref:L,className:"district-select".concat(u?" invalid":""," ").concat(h||""),children:[(0,i.jsx)("input",{type:"text",readOnly:!0,value:_,placeholder:m,onClick:O,disabled:v}),(0,i.jsx)("span",{className:"district-drop-down-icon",onClick:O}),C&&(0,i.jsxs)("div",{className:"district-select-box",children:[(0,i.jsx)("div",{className:"district-province",children:(0,i.jsx)("ul",{className:"district-select-province",children:((null==p?void 0:p.provinces)||[]).map(e=>{var t;return(0,i.jsx)("li",{"data-handle":e,className:e===E?"on":"",children:(0,i.jsx)("div",{className:"district-select-option",onClick:()=>(function(e){let t=R(e);S(e),T(t),P(D(e,t))})(e),children:(0,i.jsxs)("span",{children:[(null==p||null==(t=p.symbols)?void 0:t[e])?p.symbols[e].charAt(0):e.charAt(0)," ",e]})})},e)})})}),(0,i.jsx)("div",{className:"district-city",children:(0,i.jsx)("ul",{className:"district-select-city",children:((null==p||null==(t=p.cities)?void 0:t[E])||[]).map(e=>(0,i.jsx)("li",{className:e===k?"on":"",children:(0,i.jsx)("div",{className:"district-select-option",onClick:()=>{T(e),P(D(E,e))},children:e})},e))})}),(0,i.jsx)("div",{className:"district-town",children:(0,i.jsx)("ul",{className:"district-select-town",children:((null==p||null==(o=p.towns)||null==(n=o[E])?void 0:n[k])||[]).map(e=>(0,i.jsx)("li",{className:e===q?"on":"",children:(0,i.jsx)("div",{className:"district-select-option",onClick:()=>{x(E),j(k),N(e),null==r||r({province:E,city:k,town:e}),b(!1)},children:e})},e))})})]})]})}},41320:()=>{},81336:()=>{},91903:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(95155),c=n(12115),l=n(47650);function s(e){let{open:t,qrCode:n,title:s="æ¨çæ¥ä»·å·²çæ",subTitle:o="微信æ«ç èªå¨å鿥价",onClose:r}=e,[a,d]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{d(!0)},[]),(0,c.useEffect)(()=>{if(!t)return;let e=document.documentElement,n=e.style.overflowY;return e.style.overflowY="hidden",e.style.height="100%",()=>{e.style.overflowY="hidden"===n?"scroll":n||"scroll",e.style.height="100%"}},[t]),a)?(0,l.createPortal)((0,i.jsxs)("div",{className:"c-wx-qrcode-pop".concat(t?" active":""),children:[(0,i.jsx)("div",{className:"c-wx-qrcode-mask",onClick:r}),(0,i.jsxs)("div",{className:"c-wx-qrcode-body",children:[(0,i.jsx)("i",{className:"c-wx-qrcode-close",onClick:r}),(0,i.jsxs)("div",{className:"c-wx-qrcode-content",children:[(0,i.jsx)("h4",{className:"c-wx-qrcode-title",children:s}),(0,i.jsx)("h2",{className:"c-wx-qrcode-subtitle",children:o}),(0,i.jsxs)("div",{className:"c-wx-qrcode-btm",children:[(0,i.jsxs)("div",{className:"c-wx-qrcode-btm-box",children:[(0,i.jsx)("i",{className:"wximg-conner left-top"}),(0,i.jsx)("i",{className:"wximg-conner right-top"}),(0,i.jsx)("i",{className:"wximg-conner left-bottom"}),(0,i.jsx)("i",{className:"wximg-conner right-bottom"}),(0,i.jsx)("img",{className:"c-wx-qrcode-btm-qr",src:n,alt:"å å¾®äºç»´ç "})]}),(0,i.jsx)("div",{className:"c-wx-qrcode-btm-line",children:(0,i.jsx)("p",{className:"c-wx-qrcode-btm-tip",children:"æå¼å¾®ä¿¡æ«ä¸æ«"})})]})]})]})]}),document.body):null}n(81336)}}]);
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.