PageSourceSearch

https://parceiro.cupomverde.com.br/js/4392.563352f5.js

js cupomverde.com.br collected 2026-10-01 23:51:03 UTC 3,736 bytes, 1 lines download raw bytes

1"use strict";(globalThis["webpackChunkcupom_verde_portal_integrador"]||=[]).push([[4392],{54392(e,r,i){i.r(r),i.d(r,{default:()=>w});var a=i(61758),n=i(38734),t=i(44114),l=i(3657),s=i(26191),o=i(66231),c=i(52450),d=i(96522),v=i(60455),u=i(36980);const p={class:"green-printer-device-form"},m={class:"green-printer-device-form__header"},g={class:"green-printer-device-form__body"},_={class:"green-printer-device-form__card"},f={key:0,class:"green-printer-device-form__loading"},b={key:1,class:"green-printer-device-form__card-content"},k={class:"green-printer-device-form__footer"},h={key:0,class:"green-printer-device-form__saving-state"},y={__name:"GreenPrinterDeviceForm",setup(e){const r=(0,v.rd)(),i=(0,u.Pj)(),y=(0,n.KR)(!1),C=(0,n.KR)(null),V=(0,n.KR)(null),F=(0,n.KR)([]),K=(0,n.KR)(null),L=(0,n.KR)([]),R=[d.Kf],w=(0,a.EW)(()=>{const e=C.value&&R.every(e=>!0===e(C.value)),r=!!V.value?.id,a=!!K.value?.id,n=i.getters["green-printer-device/isCreating"];return e&&r&&a&&!n});function A(){r.push({name:"adminGreenPrinterDeviceList"})}async function D(e){if(K.value=null,L.value=[],e?.id)try{const r=await(0,o.Jm)(e.id);L.value=r||[]}catch{L.value=[]}}async function E(){try{const e=await i.dispatch("green-printer-device/createDevice",{name:C.value,retailerId:V.value.id,storeId:K.value.id});i.getters["green-printer-device/error"]||((0,c.RN)("Dispositivo criado com sucesso"),e?.id?r.push({name:"adminGreenPrinterDeviceList",params:{id:e.id}}):A())}catch{}}return(0,a.wB)(()=>i.getters["green-printer-device/error"],e=>{e&&(0,c.Oo)(e)}),(0,a.sV)(async()=>{y.value=!0,i.getters["apiKeySoftwareHouse/retailers"]?.length||await i.dispatch("apiKeySoftwareHouse/fetchRetailers"),F.value=i.getters["apiKeySoftwareHouse/retailers"]||[],y.value=!1}),(e,r)=>{const o=(0,a.g2)("q-icon"),c=(0,a.g2)("q-spinner");return(0,a.uX)(),(0,a.CE)("div",p,[(0,a.Lk)("div",m,[(0,a.bF)(o,{onClick:A,name:"img:back.svg",class:"green-printer-device-form__back-button",size:"md"}),r[3]||(r[3]=(0,a.Lk)("div",{class:"green-printer-device-form__title"}," Cadastrar dispositivo ",-1))]),(0,a.Lk)("div",g,[(0,a.Lk)("div",_,[r[4]||(r[4]=(0,a.Lk)("div",{class:"green-printer-device-form__card-title"}," Dados do dispositivo ",-1)),y.value?((0,a.uX)(),(0,a.CE)("div",f,[(0,a.bF)(c,{size:"32px",color:"cpv-coral"})])):((0,a.uX)(),(0,a.CE)("div",b,[(0,a.bF)(l.A,{modelValue:C.value,"onUpdate:modelValue":r[0]||(r[0]=e=>C.value=e),rules:R,label:"Nome do dispositivo",hint:"Digite o nome do dispositivo","max-length":120,class:"green-printer-device-form__input"},null,8,["modelValue"]),(0,a.bF)(s.A,{searchable:"",modelValue:V.value,"onUpdate:modelValue":[r[1]||(r[1]=e=>V.value=e),D],options:F.value,"option-label":"nomeFantasia",label:"Varejista",class:"green-printer-device-form__select--retailer"},null,8,["modelValue","options"]),(0,a.bF)(s.A,{searchable:"",modelValue:K.value,"onUpdate:modelValue":r[2]||(r[2]=e=>K.value=e),options:L.value,"option-label":"nomeFantasia",label:"Loja",disable:!V.value?.id,class:"green-printer-device-form__select--store"},null,8,["modelValue","options","disable"])]))])]),(0,a.Lk)("div",k,[(0,a.bF)(t.A,{secondary:"",label:"Cancelar",class:"green-printer-device-form__cancel-button",onClick:A}),(0,a.bF)(t.A,{label:"Criar o dispositivo",disable:!w.value,onClick:E,class:"green-printer-device-form__save-button"},null,8,["disable"])]),(0,n.R1)(i).getters["green-printer-device/isCreating"]?((0,a.uX)(),(0,a.CE)("div",h,[...r[5]||(r[5]=[(0,a.Lk)("div",{class:"green-printer-device-form__saving-state-title"}," Salvando o dispositivo... ",-1)])])):(0,a.Q3)("",!0)])}}};var C=i(12807),V=i(50492),F=i(58210),K=i(98582),L=i.n(K);const R=(0,C.A)(y,[["__scopeId","data-v-87f5a524"]]),w=R;L()(y,"components",{QIcon:V.A,QSpinner:F.A})}}]);

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.