PageSourceSearch

https://pricelink.io/_next/static/chunks/8705.c6dccf450c26b8bc.js

js pricelink.io collected 2026-09-24 12:24:14 UTC 3,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8705],{29703:function(e,r,t){t.d(r,{U:function(){return n},q:function(){return s}});let n="List is successfully created",s="Default"},38705:function(e,r,t){t.r(r),t.d(r,{CreateListModal:function(){return g}});var n=t(27573);t(7653);var s=t(85569),i=t(58489),o=t(60127),a=t(93045),l=t(93351),u=t(18113),c=t(15574),d=t(72659),f=t(41270);let m=f.Ry({name:f.Z_().min(3).max(30)});var h=t(35757),p=t(29703),x=t(44992);function g(e){let{showModal:r,setShowModal:t,onClose:f,onSuccess:g}=e,v=(0,l.cI)({resolver:(0,u.F)(m),defaultValues:{name:""}});async function y(e){await v.trigger();let r=await (0,h.MZ)(e);if((0,x.R)(r)){(0,s._N)(r.error);return}f&&f(),v.reset(),(0,s.x9)(p.U),g&&g()}return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d.u,{showModal:r,setShowModal:t,onClose:f,className:"sm:max-w-[600px] p-5",children:(0,n.jsx)(i.Form,{...v,children:(0,n.jsxs)("form",{onSubmit:v.handleSubmit(y),children:[(0,n.jsxs)(a.DialogHeader,{children:[(0,n.jsx)(a.DialogTitle,{children:"Create List"}),(0,n.jsx)(a.DialogDescription,{children:"Here you can manually create a list for products."})]}),(0,n.jsx)("div",{className:"flex flex-col gap-4 py-4",children:(0,n.jsx)(i.FormField,{control:v.control,name:"name",render:e=>{let{field:r}=e;return(0,n.jsxs)(i.FormItem,{children:[(0,n.jsx)(i.FormLabel,{children:" List name "}),(0,n.jsx)(i.FormControl,{children:(0,n.jsx)(o.I,{placeholder:"List name",...r})}),(0,n.jsx)(i.FormMessage,{})]})}})}),(0,n.jsx)(a.DialogFooter,{children:(0,n.jsx)(c.Z,{className:"w-full",type:"submit",loading:v.formState.isSubmitting,children:"Create"})})]})})})})}},60127:function(e,r,t){t.d(r,{I:function(){return o}});var n=t(27573),s=t(7653),i=t(29986);let o=s.forwardRef((e,r)=>{let{className:t,type:s,...o}=e;return(0,n.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...o})});o.displayName="Input"},18113:function(e,r,t){t.d(r,{F:function(){return u}});var n=t(93351);let s=(e,r,t)=>{if(e&&"reportValidity"in e){let s=(0,n.U2)(t,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=(e,r)=>{for(let t in r.fields){let n=r.fields[t];n&&n.ref&&"reportValidity"in n.ref?s(n.ref,t,e):n.refs&&n.refs.forEach(r=>s(r,t,e))}},o=(e,r)=>{r.shouldUseNativeValidation&&i(e,r);let t={};for(let s in e){let i=(0,n.U2)(r.fields,s),o=Object.assign(e[s]||{},{ref:i&&i.ref});if(a(r.names||Object.keys(e),s)){let e=Object.assign({},(0,n.U2)(t,s));(0,n.t8)(e,"root",o),(0,n.t8)(t,s,e)}else(0,n.t8)(t,s,o)}return t},a=(e,r)=>e.some(e=>e.startsWith(r+"."));var l=function(e,r){for(var t={};e.length;){var s=e[0],i=s.code,o=s.message,a=s.path.join(".");if(!t[a]){if("unionErrors"in s){var l=s.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:o,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return e.push(r)})}),r){var u=t[a].types,c=u&&u[s.code];t[a]=(0,n.KN)(a,r,t,i,c?[].concat(c,s.message):s.message)}e.shift()}return t},u=function(e,r,t){return void 0===t&&(t={}),function(n,s,a){try{return Promise.resolve(function(s,o){try{var l=Promise.resolve(e["sync"===t.mode?"parse":"parseAsync"](n,r)).then(function(e){return a.shouldUseNativeValidation&&i({},a),{errors:{},values:t.raw?n:e}})}catch(e){return o(e)}return l&&l.then?l.then(void 0,o):l}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:o(l(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e}))}catch(e){return Promise.reject(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.