1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6347],{2350:function(){},65936:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/event/qr-codes-print",function(){return r(43636)}])},82470:function(e,t,r){var n=r(83454);r(2350);var i=r(67294),s=i&&"object"==typeof i&&"default"in i?i:{default:i};function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=void 0!==n&&n.env&&!0,c=function(e){return"[object String]"===Object.prototype.toString.call(e)},d=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,s=void 0===i?a:i;l(c(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",l("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o=document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(l(c(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];l(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&l(c(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},o(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),t&&o(e,t),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},h={};function p(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return h[n]||(h[n]="jsx-"+u(e+"-"+r)),h[n]}function f(e,t){var r=e+t;return h[r]||(h[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=n||new d({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=s,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return Boolean(e[1])}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=p(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:p(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),b=i.createContext(null);b.displayName="StyleSheetContext";var _=s.default.useInsertionEffect||s.default.useLayoutEffect,x=new m;function g(e){var t=x||i.useContext(b);return t&&_(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}g.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},t.style=g},51857:function(e,t,r){"use strict";e.exports=r(82470).style},43636:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return h}});
1var n=r(85893),i=r(51857),s=r.n(i),o=r(67294),a=r(11163),c=r(1653),d=r(9008),l=r.n(d);let u=()=>{let e=(0,a.useRouter)(),[t,r]=(0,o.useState)([]),[i,d]=(0,o.useState)(!0);return((0,o.useEffect)(()=>{(()=>{try{if(e.query.environments){let t=decodeURIComponent(e.query.environments),n=JSON.parse(t);r(n),d(!1);return}let t=localStorage.getItem("qr-codes-environments");if(t){let e=JSON.parse(t);r(e)}d(!1)}catch(e){console.error("Erro ao carregar ambientes:",e),d(!1)}})()},[e.query]),(0,o.useEffect)(()=>{!i&&t.length>0&&setTimeout(()=>{window.print()},1e3)},[i,t]),i)?(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontSize:"18px"},children:"Carregando QR Codes..."}):0===t.length?(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontSize:"18px",textAlign:"center"},children:(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"Nenhum ambiente encontrado."}),(0,n.jsx)("p",{children:"Volte \xe0 p\xe1gina anterior e tente novamente."})]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("title",{children:"QR Codes dos Ambientes - Impress\xe3o"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"})]}),(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec qr-codes-print-page",children:[(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec header",children:[(0,n.jsx)("h1",{className:"jsx-5563b84b1877a6ec",children:"QR Codes dos Ambientes"}),(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec date",children:["Data: ",new Date().toLocaleDateString("pt-BR")]})]}),(0,n.jsx)("div",{className:"jsx-5563b84b1877a6ec qr-codes-grid",children:t.map((e,t)=>(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec qr-code-item",children:[(0,n.jsx)("div",{className:"jsx-5563b84b1877a6ec qr-code-container",children:(0,n.jsx)(c.ZP,{value:"https://apiv2.appcasacor.com.br/deeplink?environment/".concat(e.id),size:200,style:{height:"auto",maxWidth:"100%",width:"100%"},viewBox:"0 0 200 200",bgColor:"#ffffff",fgColor:"#000000",level:"M"})}),(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec qr-code-title",children:[e.title," (Ordem: ",t+1,")"]}),(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec qr-code-id",children:["ID: ",e.id]}),(0,n.jsxs)("div",{className:"jsx-5563b84b1877a6ec qr-code-url",children:["https://apiv2.appcasacor.com.br/deeplink?environment/",e.id]})]},e.id))}),(0,n.jsx)(s(),{id:"5563b84b1877a6ec",children:".qr-codes-print-page.jsx-5563b84b1877a6ec{font-family:Arial,sans-serif;margin:0;padding:20px;background-color:white;min-height:100vh}.header.jsx-5563b84b1877a6ec{text-align:center;margin-bottom:30px;page-break-inside:avoid}.header.jsx-5563b84b1877a6ec h1.jsx-5563b84b1877a6ec{font-size:28px;color:#333;margin:0 0 10px 0}.header.jsx-5563b84b1877a6ec .date.jsx-5563b84b1877a6ec{font-size:16px;color:#666}.qr-codes-grid.jsx-5563b84b1877a6ec{display:grid;grid-template-columns:repeat(2,1fr);gap:40px;max-width:800px;margin:0 auto}.qr-code-item.jsx-5563b84b1877a6ec{text-align:center;padding:20px;border:1px solid#ddd;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;background-color:#f9f9f9;page-break-inside:avoid}.qr-code-container.jsx-5563b84b1877a6ec{margin-bottom:15px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:10px;background:white;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;border:1px solid#dee2e6}.qr-code-title.jsx-5563b84b1877a6ec{font-weight:bold;font-size:16px;color:#333;margin-bottom:8px;line-height:1.3}.qr-code-id.jsx-5563b84b1877a6ec{font-size:14px;color:#666;margin-bottom:5px}.qr-code-url.jsx-5563b84b1877a6ec{font-size:12px;color:#999;word-break:break-all;line-height:1.2}@media print{body.jsx-5563b84b1877a6ec{margin:0;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.qr-codes-print-page.jsx-5563b84b1877a6ec{padding:0}.qr-codes-grid.jsx-5563b84b1877a6ec{gap:20px}.qr-code-item.jsx-5563b84b1877a6ec{border:1px solid#000;background-color:white;-webkit-column-break-inside:avoid;page-break-inside:avoid;break-inside:avoid}.qr-code-container.jsx-5563b84b1877a6ec{background:white;border:1px solid#000}}@media screen and (max-width:768px){.qr-codes-grid.jsx-5563b84b1877a6ec{grid-template-columns:1fr;gap:20px}}"})]})]})};var h=!0;t.default=u},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,s,o){if(o!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){e.O(0,[1653,9774,2888,179],function(){return e(e.s=65936)}),_N_E=e.O()}]);
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.