PageSourceSearch

https://techsafetylines.netlify.app/_next/static/chunks/5757.0669e482187d01bb.js

js techsafetylines.netlify.app collected 2026-10-03 11:29:43 UTC 19,445 bytes, 352 lines download raw bytes

1(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[5757],{
2
3/***/ 65757:
4/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5
6"use strict";
7// ESM COMPAT FLAG
8__webpack_require__.r(__webpack_exports__);
9
10// EXPORTS
11__webpack_require__.d(__webpack_exports__, {
12  "default": function() { return /* binding */ slices_Contact; }
13});
14
15// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
16var jsx_runtime = __webpack_require__(85893);
17// EXTERNAL MODULE: ./components/index.js + 43 modules
18var components = __webpack_require__(69723);
19// EXTERNAL MODULE: ./node_modules/@prismicio/next/dist/index.cjs
20var dist = __webpack_require__(65217);
21// EXTERNAL MODULE: ./node_modules/@prismicio/react/dist/PrismicRichText.js + 14 modules
22var PrismicRichText = __webpack_require__(89102);
23// EXTERNAL MODULE: ./slices/Contact/Contact.module.css
24var Contact_module = __webpack_require__(59145);
25var Contact_module_default = /*#__PURE__*/__webpack_require__.n(Contact_module);
26;// CONCATENATED MODULE: ./slices/Contact/Default.jsx
27
28
29
30
31
32const Default = (param)=>{
33    let { primary, items } = param;
34    var _primary, _primary1, _primary2, _primary3;
35    return /*#__PURE__*/ (0,jsx_runtime.jsxs)("section", {
36        className: (Contact_module_default()).wrapper,
37        children: [
38            /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
39                className: (Contact_module_default()).background,
40                "data-background": (_primary = primary) === null || _primary === void 0 ? void 0 : _primary.no_background_image,
41                children: [
42                    /*#__PURE__*/ (0,jsx_runtime.jsx)(dist.PrismicNextImage, {
43                        field: (_primary1 = primary) === null || _primary1 === void 0 ? void 0 : _primary1.background_image,
44                        className: (Contact_module_default()).backgroundImage
45                    }),
46                    /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
47                        className: (Contact_module_default()).overlay,
48                        children: /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
49                            className: (Contact_module_default()).container,
50                            "data-contain": "true",
51                            children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
52                                className: (Contact_module_default()).col,
53                                children: [
54                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
55                                        className: (Contact_module_default()).heading,
56                                        children: /*#__PURE__*/ (0,jsx_runtime.jsx)(PrismicRichText/* PrismicRichText */.v, {
57                                            field: (_primary2 = primary) === null || _primary2 === void 0 ? void 0 : _primary2.heading
58                                        })
59                                    }),
60                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
61                                        className: (Contact_module_default()).description,
62                                        children: /*#__PURE__*/ (0,jsx_runtime.jsx)(PrismicRichText/* PrismicRichText */.v, {
63                                            field: (_primary3 = primary) === null || _primary3 === void 0 ? void 0 : _primary3.description
64                                        })
65                                    })
66                                ]
67                            })
68                        })
69                    })
70                ]
71            }),
72            /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
73                className: (Contact_module_default()).container,
74                "data-contain": "true",
75                children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
76                    className: (Contact_module_default()).innerContainer,
77                    children: [
78                        /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
79                            className: (Contact_module_default()).col,
80                            children: items.length > 0 && /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
81                                children: [
82                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("h4", {
83                                        className: (Contact_module_default()).locationHeading,
84                                        children: "Locations"
85                                    }),
86                                    items.map((item, index)=>{
87                                        var _item;
88                                        return /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
89                                            className: (Contact_module_default()).location,
90                                            children: /*#__PURE__*/ (0,jsx_runtime.jsx)(PrismicRichText/* PrismicRichText */.v, {
91                                                field: (_item = item) === null || _item === void 0 ? void 0 : _item.location
92                                            })
93                                        }, index);
94                                    })
95                                ]
96                            })
97                        }),
98                        /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
99                            className: (Contact_module_default()).col,
100                            children: /*#__PURE__*/ (0,jsx_runtime.jsx)(components/* ContactForm */.t, {})
101                        })
102                    ]
103                })
104            })
105        ]
106    });
107};
108/* harmony default export */ var Contact_Default = (Default);
109
110// EXTERNAL MODULE: ./node_modules/react/index.js
111var react = __webpack_require__(67294);
112// EXTERNAL MODULE: ./slices/Contact/LeadMagnet.module.css
113var LeadMagnet_module = __webpack_require__(55274);
114var LeadMagnet_module_default = /*#__PURE__*/__webpack_require__.n(LeadMagnet_module);
115// EXTERNAL MODULE: ./components/ContactForm/Select/Select.jsx
116var Select = __webpack_require__(11360);
117;// CONCATENATED MODULE: ./slices/Contact/LeadMagnet.jsx
118
119
120
121
122
123
124const LeadMagnet = (param)=>{
125    let { primary } = param;
126    var _primary_background_image, _primary, _primary1, _primary2, _primary3, _primary4, _primary5;
127    const formRef = (0,react.useRef)(null);
128    const handleSubmit = (event)=>{
129        var _primary;
130        event.preventDefault();
131        // Download the file
132        if ((_primary = primary) === null || _primary === void 0 ? void 0 : _primary.media_link) {
133            var _primary_media_link, _primary1, _primary_media_link1, _primary2;
134            const link = document.createElement("a");
135            link.href = (_primary1 = primary) === null || _primary1 === void 0 ? void 0 : (_primary_media_link = _primary1.media_link) === null || _primary_media_link === void 0 ? void 0 : _primary_media_link.url;
136            link.download = (_primary2 = primary) === null || _primary2 === void 0 ? void 0 : (_primary_media_link1 = _primary2.media_link) === null || _primary_media_link1 === void 0 ? void 0 : _primary_media_link1.name;
137            link.target = "_blank";
138            link.rel = "noopener noreferrer";
139            document.body.appendChild(link);
140            link.click();
141            document.body.removeChild(link);
142        }
143        formRef.current && formRef.current.submit();
144        // Fire GTM event
145        window.dataLayer = window.dataLayer || [];
146        window.dataLayer.push({
147            event: "lead_magnet_form_submit",
148            pageTitle: document.title,
149            pageUrl: window.location.href
150        });
151    };
152    return /*#__PURE__*/ (0,jsx_runtime.jsx)("section", {
153        className: (LeadMagnet_module_default()).wrapper,
154        style: {
155            backgroundImage: ((_primary = primary) === null || _primary === void 0 ? void 0 : (_primary_background_image = _primary.background_image) === null || _primary_background_image === void 0 ? void 0 : _primary_background_image.url) ? "url(".concat(primary.background_image.url, ")") : undefined
156        },
157        children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
158            className: (LeadMagnet_module_default()).container,
159            "data-contain": "true",
160            children: [
161                /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
162                    className: (LeadMagnet_module_default()).col,
163                    children: [
164                        /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
165                            className: (LeadMagnet_module_default()).heading,
166                            children: /*#__PURE__*/ (0,jsx_runtime.jsx)(PrismicRichText/* PrismicRichText */.v, {
167                                field: (_primary1 = primary) === null || _primary1 === void 0 ? void 0 : _primary1.heading
168                            })
169                        }),
170                        /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
171                            className: (LeadMagnet_module_default()).description,
172                            children: /*#__PURE__*/ (0,jsx_runtime.jsx)(PrismicRichText/* PrismicRichText */.v, {
173                                field: (_primary2 = primary) === null || _primary2 === void 0 ? void 0 : _primary2.description
174                            })
175                        })
176                    ]
177                }),
178                /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
179                    className: (LeadMagnet_module_default()).col,
180                    children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
181                        className: (LeadMagnet_module_default()).box,
182                        children: [
183                            /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
184                                className: (LeadMagnet_module_default()).formHeading,
185                                children: /*#__PURE__*/ (0,jsx_runtime.jsx)("h4", {
186                                    children: (_primary3 = primary) === null || _primary3 === void 0 ? void 0 : _primary3.form_heading
187                                })
188                            }),
189                            /*#__PURE__*/ (0,jsx_runtime.jsx)("span", {
190                                className: (LeadMagnet_module_default()).formDescription,
191                                children: /*#__PURE__*/ (0,jsx_runtime.jsx)(PrismicRichText/* PrismicRichText */.v, {
192                                    field: (_primary4 = primary) === null || _primary4 === void 0 ? void 0 : _primary4.form_description
193                                })
194                            }),
195                            /*#__PURE__*/ (0,jsx_runtime.jsxs)("form", {
196                                className: (LeadMagnet_module_default()).form,
197                                ref: formRef,
198                                onSubmit: handleSubmit,
199                                "data-form": "true",
200                                name: "lead-magnet-form-cmp",
201                                id: "lead-magnet-form",
202                                children: [
203                                    /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
204                                        className: "formRow",
205                                        children: [
206                                            /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
207                                                className: "formGroup",
208                                                children: [
209                                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("label", {
210                                                        htmlFor: "first-name",
211                                                        children: "First Name"
212                                                    }),
213                                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
214                                                        id: "first-name",
215                                                        type: "text",
216                                                        placeholder: "Enter your first name",
217                                                        required: true
218                                                    })
219                                                ]
220                                            }),
221                                            /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
222                                                className: "formGroup",
223                                                children: [
224                                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("label", {
225                                                        htmlFor: "last-name",
226                                                        children: "Last Name"
227                                                    }),
228                                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
229                                                        id: "last-name",
230                                                        type: "text",
231                                                        placeholder: "Enter your last name",
232                                                        required: true
233                                                    })
234                                                ]
235                                            })
236                                        ]
237                                    }),
238                                    /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
239                                        className: "formRow",
240                                        children: [
241                                            /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
242                                                className: "formGroup",
243                                                children: [
244                                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("label", {
245                                                        htmlFor: "email",
246                                                        children: "Email"
247                                                    }),
248                                                    /*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
249                                                        id: "email",
250                                                        type: "email",
251                                                        placeholder: "Enter your email",
252                                                        required: true
253                                                    })
254                                                ]
255                                            }),
256                                            /*#__PURE__*/ (0,jsx_runtime.jsx)(Select/* default */.Z, {
257                                                label: "Industry",
258                                                name: "primary_industry",
259                                                options: [
260                                                    {
261                                                        label: "Wind Energy",
262                                                        value: "Wind Energy"
263                                                    },
264                                                    {
265                                                        label: "Utility",
266                                                        value: "Utility"
267                                                    },
268                                                    {
269                                                        label: "Telecommunications",
270                                                        value: "Telecommunications"
271                                                    },
272                                                    {
273                                                        label: "Construction",
274                                                        value: "Construction"
275                                                    },
276                                                    {
277                                                        label: "Oil & Gas",
278                                                        v
278alue: "Oil & Gas"
279                                                    },
280                                                    {
281                                                        label: "Other",
282                                                        value: "Other"
283                                                    }
284                                                ]
285                                            })
286                                        ]
287                                    }),
288                                    /*#__PURE__*/ (0,jsx_runtime.jsx)(components/* Button */.zx, {
289                                        type: "submit",
290                                        submit: true,
291                                        label: ((_primary5 = primary) === null || _primary5 === void 0 ? void 0 : _primary5.submit_label) || "Submit",
292                                        variant: "primary"
293                                    })
294                                ]
295                            })
296                        ]
297                    })
298                })
299            ]
300        })
301    });
302};
303/* harmony default export */ var Contact_LeadMagnet = (LeadMagnet);
304
305;// CONCATENATED MODULE: ./slices/Contact/index.js
306
307
308
309/**
310 * @typedef {import("@prismicio/client").Content.ContactSlice} ContactSlice
311 * @typedef {import("@prismicio/react").SliceComponentProps<ContactSlice>} ContactProps
312 * @param {ContactProps}
313 */ const Contact = (param)=>{
314    let { slice: { variation, primary, items } } = param;
315    switch(variation){
316        case "default":
317            return /*#__PURE__*/ (0,jsx_runtime.jsx)(Contact_Default, {
318                primary: primary,
319                items: items
320            });
321        case "leadMagnet":
322            return /*#__PURE__*/ (0,jsx_runtime.jsx)(Contact_LeadMagnet, {
323                primary: primary,
324                items: items
325            });
326        default:
327            return null;
328    }
329};
330/* harmony default export */ var slices_Contact = (Contact);
331
332
333/***/ }),
334
335/***/ 59145:
336/***/ (function(module) {
337
338// extracted by mini-css-extract-plugin
339module.exports = {"wrapper":"Contact_wrapper__8qcwB","background":"Contact_background__O5MlW","backgroundImage":"Contact_backgroundImage__KJkAI","overlay":"Contact_overlay__6ngWj","container":"Contact_container__HXXY4","innerContainer":"Contact_innerContainer__MCF3I","col":"Contact_col__7ClUi","locationHeading":"Contact_locationHeading__P9eB_","location":"Contact_location__Ma6_4","heading":"Contact_heading__Oynce","description":"Contact_description__kKxA7"};
340
341/***/ }),
342
343/***/ 55274:
344/***/ (function(module) {
345
346// extracted by mini-css-extract-plugin
347module.exports = {"wrapper":"LeadMagnet_wrapper__nNsC3","container":"LeadMagnet_container__FZ6nX","col":"LeadMagnet_col__rHTFY","heading":"LeadMagnet_heading__SCqWu","description":"LeadMagnet_description__OqVlf","box":"LeadMagnet_box__g6Cb6","formHeading":"LeadMagnet_formHeading__IayzW","form":"LeadMagnet_form__v9ewN"};
348
349/***/ })
350
351}]);
352//# sourceMappingURL=5757.0669e482187d01bb.js.map

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.