PageSourceSearch

https://visitdetroit.com/dist/scripts/SaveButton.92cd4ae1c76bea347d67.min.js

js visitdetroit.com collected 2026-09-24 08:51:02 UTC 1,953 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8180],{474:function(e,a,t){t.r(a),t.d(a,{default:function(){return u}});var r=t(6252),n=t(6612),i=["data-href","aria-label","data-entry-id","data-type","data-text-before","data-text-after"],o=(0,r._)("svg",{class:"icon icon-save","aria-label":"save icon",role:"img"},[(0,r._)("use",{href:"#save"})],-1),s=(0,r._)("svg",{class:"icon icon-saved","aria-label":"save icon",role:"img"},[(0,r._)("use",{href:"#saved"})],-1),d=["textContent"];var l=t(9713),v=t.n(l),c={mixins:[],props:{entryId:{type:[String,Number],default:null},type:{type:String,default:"itinerary"}},data:function(){return{isSaved:!1,saveLabel:"Save",saveAriaLabel:"Save to your saved items",removeLabel:"Saved",removeAriaLabel:"Saved to your saved items"}},methods:{checkIfIsSaved:function(){var e,a=this;fetch(window.itineraryCheckUrl,{method:"POST",body:JSON.stringify((e={},v()(e,window.csrfTokenName,window.csrfTokenValue),v()(e,"entry_id",this.entryId),e)),headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){a.isSaved=(null==e?void 0:e.exists)||!1})).catch((function(e){console.error(e)}))}},computed:{itineraryAddUrl:function(){return window.itineraryAddUrl},itineraryRemoveUrl:function(){return window.itineraryRemoveUrl}},created:function(){this.checkIfIsSaved()}};var u=(0,t(3744).Z)(c,[["render",function(e,a,t,l,v,c){return(0,r.wg)(),(0,r.iD)("button",{class:"icon-button icon-button--save hover-label",type:"button","data-href":v.isSaved?c.itineraryRemoveUrl:c.itineraryAddUrl,"aria-label":v.isSaved?v.removeAriaLabel:v.saveAriaLabel,"data-entry-id":t.entryId,"data-type":t.type,"data-text-before":v.isSaved?v.removeLabel:v.saveLabel,"data-text-after":v.isSaved?v.saveLabel:v.removeLabel,"data-save-btn":""},[o,s,(0,r._)("span",{class:"hover-label__label","data-saved-item-text":"",textContent:(0,n.zw)(v.isSaved?v.removeLabel:v.saveLabel)},null,8,d)],8,i)}]])}}]);

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.