PageSourceSearch

https://petwellhk.com/assets/reportService-tEzofQZ6.js

js petwellhk.com collected 2026-10-06 05:23:53 UTC 2,620 bytes, 16 lines download raw bytes

1import{a4 as c}from"./main-m_sUF2N4.js";const n=`
2  mutation CreateReport($input: CreateReportInput!) {
3    createReport(input: $input) {
4      id
5      reportType
6      placeType
7      placeId
8      placeName
9      correctionField
10      message
11      createdAt
12    }
13  }
14`,d={clinic:"CLINIC",salon:"SALON",lodging:"LODGING",restaurant:"RESTAURANT",homeVisit:"HOME_VISIT_PROVIDER"},p=new Set(["clinic","salon","lodging","restaurant","mall","homeVisit"]);function i(e){const t=[`Category: ${p.has(e.category)?e.category:"restaurant"}`],o=(e.address||"").trim(),s=(e.notes||"").trim();return o&&t.push(`Address: ${o}`),s&&t.push(`Notes: ${s}`),t.join(`
15`)}const m=e=>e?"userPool":"apiKey",I=e=>{const r=e instanceof Error?e.message:String(e);return r.includes("reporterName")||r.includes("reporterEmail")||r.includes("reporterPhone")||r.includes("FieldUndefined")||r.includes("not defined for input object type 'CreateReportInput'")||r.includes('not defined for input object type "CreateReportInput"')||r.includes("The variables input contains a field that is not defined")},g=(e,r)=>["[Reporter Contact]",`Name: ${r.reporterName}`,`Email: ${r.reporterEmail}`,`Phone: ${r.reporterPhone}`,"","[Report Details]",e].join(`
16`);async function a(e,r,t){const o=m(r),s={...e,reporterName:t.reporterName,reporterEmail:t.reporterEmail,reporterPhone:t.reporterPhone};try{return await c(n,{input:s},{authMode:o})}catch(l){if(!I(l))throw l;return c(n,{input:{...e,message:g(String(e.message||""),t)}},{authMode:o})}}async function y(e){return a({reportType:"INFORMATION_CORRECTION",reporterId:e.reporterId||null,placeType:d[e.placeType],placeId:e.placeId,placeName:e.placeName,correctionField:e.correctionField,message:e.message},e.reporterId,e.contact)}async function E(e){return a({reportType:"GENERAL_FEEDBACK",reporterId:e.reporterId||null,feedbackCategory:e.feedbackCategory,message:e.message},e.reporterId,e.contact)}async function T(e){return a({reportType:"CONTACT_US",reporterId:e.reporterId||null,message:e.message},e.reporterId,e.contact)}async function N(e){const r=e.placeName.trim();return a({reportType:"INFORMATION_CORRECTION",reporterId:e.reporterId||null,placeType:"SUGGEST_NEW",placeName:r,message:i({category:e.category,address:e.address,notes:e.notes})},e.reporterId,e.contact)}async function u(e){const r={reportType:"REVIEW_REPORT",reporterId:e.reporterId||null,placeName:e.placeName||null,relatedReviewId:e.relatedReviewId,message:e.message};if(e.contact)return a(r,e.reporterId,e.contact);const t=e.reporterId?"userPool":"apiKey";return c(n,{input:r},{authMode:t})}export{N as a,E as b,y as c,T as d,u as e};

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.