1import{s as e}from"./BdOgpimk.js";function t(){return{name:``,email:``,password:``,confirmationPassword:``,remember:!1}}function n(e){return Array.isArray(e)?n(e[0]):typeof e==`string`?e.trim():``}function r(e,t={}){let n={name:e.name.trim(),email:e.email.trim(),password:e.password,confirmationPassword:e.confirmationPassword,remember:e.remember},r=t.shopId?.trim()??``,i=t.code?.trim()??``;return r!==``&&(n.shopId=r),i!==``&&(n.code=i),n}var i={name:`name`,email:`email`,password:`password`,confirmationPassword:`confirmationPassword`};function a(t,n){let r={},a=[];if(e(t))for(let[e,n]of Object.entries(t.validationErrors??{})){let t=n?.[0];if(typeof t!=`string`||t===``)continue;let o=i[e];o?r[o]??=t:a.push(t)}return a.length>0?{fields:r,message:a[0]??n}:Object.keys(r).length>0?{fields:r,message:null}:{fields:r,message:o(t)??n}}function o(t){return!e(t)||typeof t.data?.message!=`string`||t.data.message===``?null:t.data.message}var s=`shoper_connection_success`;function c(e,t,n=new Date){let r=e.shoper_shop;if(e.registration_type!==`shoper_shop`||!r)return null;let i=l(r.url)??l(t?.shop_url)??``;return{shop_url:i,shop_name:l(r.name)??l(t?.shop_name)??i,connected_at:n.toISOString()}}function l(e){return typeof e==`string`&&e.trim()!==``?e:null}export{c as a,n as i,t as n,r as o,a as r,s as t};
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.